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 II rowsort
SELECT DISTINCT 92, col0 FROM tab2
----
92
46
92
64
92
75

query I rowsort
SELECT 73 * + - col0 + - col2 FROM tab1
----
-3819
-6264
-6711

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

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

query I rowsort
SELECT - 86 + + - col2 + + col0 AS col0 FROM tab1
----
-131
-60
-63

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

skipif mysql # not compatible
query I rowsort label-4
SELECT DISTINCT COUNT ( * ) / 72 + + COUNT ( * ) FROM tab1
----
3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6
SELECT ALL - COUNT( * ), CAST( NULL AS SIGNED ) * - - 37 AS col1 FROM tab2
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-6
SELECT ALL - COUNT ( * ), CAST ( NULL AS INTEGER ) * - - 37 AS col1 FROM tab2
----
-3
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8
SELECT ALL CAST( - - col1 AS SIGNED ) col0, 16 * col1 + + - col0 FROM tab1
----
14
173
47
661
5
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8
SELECT ALL CAST ( - - col1 AS INTEGER ) col0, 16 * col1 + + - col0 FROM tab1
----
14
173
47
661
5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9
SELECT - CAST( NULL AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + 30 * 35 AS col1 FROM tab0 AS cor0
----
1050
1050
1050

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-11
SELECT 86 * + ( - - col0 ), - col2 + CAST( ( ( - col1 ) ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1290
-128
7482
-31
8342
-100

skipif mysql # not compatible
query II rowsort label-11
SELECT 86 * + ( - - col0 ), - col2 + CAST ( ( ( - col1 ) ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1290
-128
7482
-31
8342
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-12
SELECT + 67 + + + col1 - + col0 AS col2 FROM tab1 AS cor0 WHERE NOT 37 / + - 75 IN ( + 2, col1 * col0 * CAST( NULL AS SIGNED ), - - col0, + - 37, + - 24 )
----

skipif mysql # not compatible
query I rowsort label-12
SELECT + 67 + + + col1 - + col0 AS col2 FROM tab1 AS cor0 WHERE NOT 37 / + - 75 IN ( + 2, col1 * col0 * CAST ( NULL AS INTEGER ), - - col0, + - 37, + - 24 )
----

query II rowsort
SELECT + 44 AS col0, 71 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
44
71
44
71
44
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-14
SELECT DISTINCT + col0 + - - CAST( - ( col0 ) AS SIGNED ) * - col0 AS col1 FROM tab2 AS cor0
----
2162
4160
5700

skipif mysql # not compatible
query I rowsort label-14
SELECT DISTINCT + col0 + - - CAST ( - ( col0 ) AS INTEGER ) * - col0 AS col1 FROM tab2 AS cor0
----
2162
4160
5700

query I rowsort
SELECT + - col1 * - + col2 * col2 + 17 FROM tab0 AS cor0
----
178946
2117
9818

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-17
SELECT + 61 / - CAST( NULL AS SIGNED ) + - - 66 * - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-17
SELECT + 61 / - CAST ( NULL AS INTEGER ) + - - 66 * - col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 68 * + col1 FROM tab2
----
3468
4556
5236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-19
SELECT SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-19
SELECT SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 31, - 94 col2 FROM tab2 AS cor0
----
31
-94
31
-94
31
-94

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

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

query I rowsort
SELECT ALL ( - col2 ) - - col1 * - col2 * + col1 AS col0 FROM tab2
----
-237200
-260420
-59846

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

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

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

query I rowsort
SELECT - 90 + + col0 AS col1 FROM tab0 AS cor0
----
-3
-75
7

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

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

query I rowsort
SELECT ALL - - col0 - - 32 AS col0 FROM tab1 AS cor0
----
117
123
83

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT - SUM( + 27 ) FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-29
SELECT - SUM ( + 27 ) FROM tab1 AS cor0
----
-81

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-32
SELECT DISTINCT * FROM tab0 WHERE CAST( + 99 AS SIGNED ) BETWEEN - 47 AND + col2
----
97
1
99

skipif mysql # not compatible
query III rowsort label-32
SELECT DISTINCT * FROM tab0 WHERE CAST ( + 99 AS INTEGER ) BETWEEN - 47 AND + col2
----
97
1
99

query I rowsort
SELECT + + 38 FROM tab0 WHERE NOT + 75 <= + col1
----
38
38

query III rowsort
SELECT * FROM tab1 WHERE NOT + 76 - 28 + + col1 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-37
SELECT + 19, 43 * - + 53 / ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
19
NULL
19
NULL
19
NULL

skipif mysql # not compatible
query II rowsort label-37
SELECT + 19, 43 * - + 53 / ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
19
NULL
19
NULL
19
NULL

query II rowsort
SELECT ALL col0, - col1 * + - col2 FROM tab0 AS cor0
----
15
3807
87
210
97
99

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

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

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

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

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

query I rowsort
SELECT - 89 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT ALL - col2 * 83 AS col0 FROM tab0
----
-3901
-8217
-830

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

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

query I rowsort
SELECT col1 + 71 AS col1 FROM tab2 cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-47
SELECT + col0 AS col0, 25 FROM tab2 AS cor0 WHERE NOT - col1 * + - col2 / - CAST( - - 24 AS DECIMAL ) = 3
----
46
25
64
25
75
25

skipif mysql # not compatible
query II rowsort label-47
SELECT + col0 AS col0, 25 FROM tab2 AS cor0 WHERE NOT - col1 * + - col2 / - CAST ( - - 24 AS REAL ) = 3
----
46
25
64
25
75
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-48
SELECT ALL 88 * + CAST( - col1 AS SIGNED ) AS col0 FROM tab0
----
-1848
-7128
-88

skipif mysql # not compatible
query I rowsort label-48
SELECT ALL 88 * + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0
----
-1848
-7128
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT DISTINCT + ( + 52 ) + - COUNT( * ) AS col2 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-49
SELECT DISTINCT + ( + 52 ) + - COUNT ( * ) AS col2 FROM tab2
----
49

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) > + col1 / - col0 + col2
----

query I rowsort
SELECT DISTINCT - 62 * + col0 AS col1 FROM tab1
----
-3162
-5270
-5642

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col1 * + 90 ) = 36
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-57
SELECT DISTINCT 49 DIV + 74 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-57
SELECT DISTINCT 49 / + 74 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT - 48 + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND + + col2
----
-48

skipif mysql # not compatible
query I rowsort label-58
SELECT - 48 + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND + + col2
----
-48

query II rowsort
SELECT DISTINCT + 5 AS col0, col1 + col1 * + col0 AS col1 FROM tab0 AS cor0
----
5
1296
5
1848
5
98

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

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

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT - - 64 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # DIV for integer division: 
query I rowsort label-63
SELECT col2 DIV - 33 AS col1 FROM tab1
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-63
SELECT col2 / - 33 AS col1 FROM tab1
----
-1
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT ALL + - COUNT( * ) FROM tab2 WHERE NOT 42 * col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-64
SELECT ALL + - COUNT ( * ) FROM tab2 WHERE NOT 42 * col0 <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT ALL SUM( - + 45 ) FROM tab2
----
-135

skipif mysql # not compatible
query I rowsort label-65
SELECT ALL SUM ( - + 45 ) FROM tab2
----
-135

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

query I rowsort
SELECT DISTINCT + 82 * 6 * - + col2 - - 4 AS col2 FROM tab2 AS cor0
----
-11312
-19676
-28532

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab1 AS cor0 WHERE NOT + col2 * + col0 <> NULL
----

query II rowsort
SELECT ALL col1, col1 + + col1 FROM tab0
----
1
2
21
42
81
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, - 60 + 27 + - - col0 + col2 * - 85 AS col2 FROM tab0
----
10
-796
47
-4013
99
-8351

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= - - 66 * + 5
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, + col1 * - + col1 AS col0 FROM tab2 AS cor0
----
23
-2601
40
-5929
58
-4489

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-74
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 / + CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-74
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 / + CAST ( NULL AS INTEGER ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-75
SELECT * FROM tab0 WHERE NULL NOT IN ( col2, + 84, CAST( col0 AS SIGNED ) * + col0 + + col1, - col1, + col2 - + col2 * 9 )
----

skipif mysql # not compatible
query III rowsort label-75
SELECT * FROM tab0 WHERE NULL NOT IN ( col2, + 84, CAST ( col0 AS INTEGER ) * + col0 + + col1, - col1, + col2 - + col2 * 9 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-76
SELECT - COUNT ( * ) col1 FROM tab0 WHERE + col1 + + col2 * col0 + + col1 IS NOT NULL
----
-3

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

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

query I rowsort
SELECT + 61 AS col0 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-79
SELECT ALL COUNT( - col0 ) + 63 + + COUNT( * ) * COUNT( * ) DIV SUM( 23 ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-79
SELECT ALL COUNT ( - col0 ) + 63 + + COUNT ( * ) * COUNT ( * ) / SUM ( 23 ) FROM tab0
----
66

query I rowsort
SELECT DISTINCT col0 - col2 * + 54 * - ( + - col2 ) FROM tab2
----
-181581
-28520
-86336

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT - - SUM( ALL 50 ) FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-81
SELECT - - SUM ( ALL 50 ) FROM tab2 AS cor0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT + 41 * + - 72 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-2955

skipif mysql # not compatible
query I rowsort label-82
SELECT + 41 * + - 72 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-2955

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT DISTINCT + - MIN( - col1 ) * - COUNT( ALL - 52 ) + SUM( - col2 ) AS col0 FROM tab0 cor0
----
-399

skipif mysql # not compatible
query I rowsort label-83
SELECT DISTINCT + - MIN ( - col1 ) * - COUNT ( ALL - 52 ) + SUM ( - col2 ) AS col0 FROM tab0 cor0
----
-399

onlyif mysql # DIV for integer division: 
query II rowsort label-84
SELECT DISTINCT + col0 DIV - 29, - col2 - - - col2 AS col1 FROM tab2 AS cor0
----
-1
-46
-2
-116
-2
-80

skipif mysql # not compatible
query II rowsort label-84
SELECT DISTINCT + col0 / - 29, - col2 - - - col2 AS col1 FROM tab2 AS cor0
----
-1
-46
-2
-116
-2
-80

query I rowsort
SELECT + 90 / + + col0 + 51 + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

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

query II rowsort
SELECT - col0, - col2 * col0 AS col1 FROM tab1
----
-51
-4896
-85
-5015
-91
-6188

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

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

skipif mysql # not compatible
query I rowsort label-89
SELECT ALL - CAST ( - CAST ( ( - - 23 ) AS INTEGER ) AS INTEGER ) FROM tab2
----
23
23
23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-90
SELECT - col2 DIV - - CAST( + - 63 AS SIGNED ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-90
SELECT - col2 / - - CAST ( + - 63 AS INTEGER ) AS col1 FROM tab2
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-91
SELECT DISTINCT + COUNT ( * ) * + 78 AS col2 FROM tab0
----
234

query I rowsort
SELECT ALL - 23 - - ( 35 ) FROM tab0 AS cor0 WHERE ( - + col2 <> NULL )
----

query I rowsort
SELECT + col1 * col0 + + - col0 AS col2 FROM tab0
----
0
1200
1740

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT - + 43 * - COUNT( * ) + - 41 FROM tab0 AS cor0 WHERE 97 IS NOT NULL
----
88

skipif mysql # not compatible
query I rowsort label-97
SELECT - + 43 * - COUNT ( * ) + - 41 FROM tab0 AS cor0 WHERE 97 IS NOT NULL
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT DISTINCT + 84 + - - MIN( col1 ) FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-98
SELECT DISTINCT + 84 + - - MIN ( col1 ) FROM tab2
----
135

query I rowsort
SELECT col1 + - - 77 FROM tab1
----
124
82
91

query II rowsort
SELECT DISTINCT col0 + - - col2 * - - col1 AS col1, + 24 FROM tab0
----
196
24
297
24
3822
24

query I rowsort
SELECT + col1 + + 33 AS col0 FROM tab0
----
114
34
54

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE + 12 BETWEEN - ( - col2 ) / ( - + col0 ) AND - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 42 < - 6
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-104
SELECT 61 DIV - col2 col1 FROM tab0 cor0
----
-1
-6
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-104
SELECT 61 / - col2 col1 FROM tab0 cor0
----
-1
-6
0

query I rowsort
SELECT DISTINCT 14 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
14

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-108
SELECT ALL * FROM tab2 AS cor0 WHERE + 93 + - 0 + + - 48 BETWEEN + col1 AND + CAST( col2 AS SIGNED ) * + ( - + col1 )
----

skipif mysql # not compatible
query III rowsort label-108
SELECT ALL * FROM tab2 AS cor0 WHERE + 93 + - 0 + + - 48 BETWEEN + col1 AND + CAST ( col2 AS INTEGER ) * + ( - + col1 )
----

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

query I rowsort
SELECT DISTINCT - col0 * - - 65 AS col1 FROM tab2 AS cor0
----
-2990
-4160
-4875

query I rowsort
SELECT ALL + 91 * - ( + col1 ) FROM tab1 AS cor0
----
-1274
-4277
-455

query I rowsort
SELECT 82 * col0 FROM tab0 AS cor0
----
1230
7134
7954

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-114
SELECT - + CAST ( - col1 AS INTEGER ) col0 FROM tab1 cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - ( - col1 ) col0 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT - SUM( ALL - 19 ) AS col2 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-116
SELECT - SUM ( ALL - 19 ) AS col2 FROM tab0
----
57

onlyif mysql # DIV for integer division: 
query II rowsort label-117
SELECT ( - 21 ) AS col1, 45 DIV 45 + - col1 FROM tab0
----
-21
-20
-21
-80
-21
0

skipif mysql # not compatible
query II rowsort label-117
SELECT ( - 21 ) AS col1, 45 / 45 + - col1 FROM tab0
----
-21
-20
-21
-80
-21
0

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT DISTINCT - MAX( ALL 6 ) AS col1 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-118
SELECT DISTINCT - MAX ( ALL 6 ) AS col1 FROM tab1
----
-6

query II rowsort
SELECT ALL - 80 * + col1 AS col0, + 25 FROM tab2
----
-4080
25
-5360
25
-6160
25

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

query I rowsort
SELECT 70 * + col1 * + col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
182070
314230
415030

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-122
SELECT ALL + MIN( ALL + + 37 ) DIV - - 30 AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-122
SELECT ALL + MIN ( ALL + + 37 ) / - - 30 AS col2 FROM tab2 AS cor0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT + MAX( DISTINCT + 44 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
44

skipif mysql # not compatible
query I rowsort label-124
SELECT + MAX ( DISTINCT + 44 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 + - ( col2 ) col0, + col2 col0 FROM tab2 AS cor0
----
-104
40
-133
58
-69
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-126
SELECT * FROM tab0 AS cor0 WHERE + col0 NOT IN ( - CAST( - - 83 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-126
SELECT * FROM tab0 AS cor0 WHERE + col0 NOT IN ( - CAST ( - - 83 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 + + ( - col2 ) * col2 * - 12 * + col2 FROM tab1 AS cor0
----
10616883
2464633
3773275

query I rowsort
SELECT + col1 + + + 20 FROM tab0 AS cor0
----
101
21
41

query I rowsort
SELECT - col0 + 20 AS col1 FROM tab0 AS cor0
----
-67
-77
5

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

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

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

skipif mysql # not compatible
query I rowsort label-132
SELECT DISTINCT + + COUNT ( * ) + - + ( + + COUNT ( * ) ) / + 82 FROM tab1 AS cor0
----
3

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-135
SELECT - - col2 + - 95 + + + 73 DIV col2 AS col2 FROM tab0 AS cor0
----
-47
-78
4

skipif mysql # not compatible
query I rowsort label-135
SELECT - - col2 + - 95 + + + 73 / col2 AS col2 FROM tab0 AS cor0
----
-47
-78
4

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-136
SELECT * FROM tab1 WHERE + col2 NOT BETWEEN + ( CAST( NULL AS DECIMAL ) ) AND col2 + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-136
SELECT * FROM tab1 WHERE + col2 NOT BETWEEN + ( CAST ( NULL AS REAL ) ) AND col2 + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + 81 ) AS col2 FROM tab1
----
-81
-81
-81

query II rowsort
SELECT ALL col0 - - col2, ( col1 ) FROM tab0
----
196
1
62
81
97
21

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

query I rowsort
SELECT ALL col0 - - 88 + - + 31 FROM tab2 AS cor0
----
103
121
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-141
SELECT + CAST( - COUNT( * ) AS SIGNED ) - - ( + 23 ) * + 62 AS col0 FROM tab2 AS cor0
----
1423

skipif mysql # not compatible
query I rowsort label-141
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) - - ( + 23 ) * + 62 AS col0 FROM tab2 AS cor0
----
1423

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

skipif mysql # not compatible
query I rowsort label-142
SELECT 10 + - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL NOT BETWEEN NULL AND - - col2 )
----
10

query I rowsort
SELECT - 35 + 69 + + col1 FROM tab2 cor0
----
101
111
85

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT + MIN( 12 ) + - 76 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-64

skipif mysql # not compatible
query I rowsort label-144
SELECT + MIN ( 12 ) + - 76 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-64

query I rowsort
SELECT DISTINCT 60 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
60

query I rowsort
SELECT DISTINCT 82 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
82

query I rowsort
SELECT + - col2 * - col0 * + col1 FROM tab1 AS cor0
----
25075
290836
68544

onlyif mysql # DIV for integer division: 
query I rowsort label-148
SELECT DISTINCT 91 * 66 DIV - col1 FROM tab0 AS cor0
----
-286
-6006
-74

skipif mysql # not compatible
query I rowsort label-148
SELECT DISTINCT 91 * 66 / - col1 FROM tab0 AS cor0
----
-286
-6006
-74

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-152
SELECT ALL - SUM ( - - col0 ) FROM tab2
----
-185

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

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT ALL + COUNT( * ) * - 76 AS col2 FROM tab1
----
-228

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL + COUNT ( * ) * - 76 AS col2 FROM tab1
----
-228

onlyif mysql # aggregate syntax: 
query II rowsort label-155
SELECT COUNT( * ) AS col0, 78 AS col0 FROM tab1
----
3
78

skipif mysql # not compatible
query II rowsort label-155
SELECT COUNT ( * ) AS col0, 78 AS col0 FROM tab1
----
3
78

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT DISTINCT + 45 * + COUNT( * ) FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-156
SELECT DISTINCT + 45 * + COUNT ( * ) FROM tab2
----
135

query II rowsort
SELECT ALL col0, + 6 + col0 AS col2 FROM tab0 AS cor0
----
15
21
87
93
97
103

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT ALL + SUM( + 62 ) FROM tab2 cor0
----
186

skipif mysql # not compatible
query I rowsort label-158
SELECT ALL + SUM ( + 62 ) FROM tab2 cor0
----
186

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

query I rowsort
SELECT - 43 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT col1 * 3 AS col1 FROM tab2 AS cor0 WHERE 33 IN ( - col2 - - - col1 * col1 - col0 + 28, 88 + - 83 )
----

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

query I rowsort
SELECT DISTINCT 58 * - + col2 AS col0 FROM tab2 cor0
----
-1334
-2320
-3364

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

query I rowsort
SELECT + col1 - 42 FROM tab1
----
-28
-37
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 + col1 col2 FROM tab1
----
1
10
43

query I rowsort
SELECT col0 * 63 * + + col0 * - col1 + - col1 AS col0 FROM tab2
----
-19869773
-23743192
-6798759

query I rowsort
SELECT ALL - 55 - col1 AS col2 FROM tab0 cor0
----
-136
-56
-76

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

query I rowsort
SELECT + 70 * - ( - col0 ) FROM tab1
----
3570
5950
6370

query I rowsort
SELECT - col0 * - - col0 AS col1 FROM tab2
----
-2116
-4096
-5625

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

skipif mysql # not compatible
query II rowsort label-172
SELECT ALL + - COUNT ( ALL + col2 ) AS col1, - 57 FROM tab2 AS cor0
----
-3
-57

query I rowsort
SELECT DISTINCT - 82 FROM tab1 AS cor0 WHERE + 30 IS NULL
----

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT col0 <= - - col2
----
47
5

query I rowsort
SELECT DISTINCT - - col0 * + 98 + + - col2 FROM tab2 AS cor0 WHERE 42 + + 76 IS NOT NULL
----
4485
6232
7292

query I rowsort
SELECT - + col2 * - - 6 AS col0 FROM tab0 AS cor0
----
-282
-594
-60

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-177
SELECT DISTINCT CAST ( + col0 AS INTEGER ) col1 FROM tab1
----
51
85
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT COUNT( * ) + - + MAX( ALL + col1 ) AS col2 FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-179
SELECT COUNT ( * ) + - + MAX ( ALL + col1 ) AS col2 FROM tab0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT DISTINCT - MIN( DISTINCT + + 54 ) FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-180
SELECT DISTINCT - MIN ( DISTINCT + + 54 ) FROM tab0
----
-54

query I rowsort
SELECT DISTINCT col2 + - 74 FROM tab1
----
-15
-6
22

onlyif mysql # aggregate syntax: 
query II rowsort label-182
SELECT DISTINCT + 55, COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT 22 IS NOT NULL
----
55
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-182
SELECT DISTINCT + 55, COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT 22 IS NOT NULL
----
55
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-184
SELECT DISTINCT - + SUM( + 37 ) FROM tab2 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-184
SELECT DISTINCT - + SUM ( + 37 ) FROM tab2 AS cor0
----
-111

query II rowsort
SELECT DISTINCT - ( col0 ) * ( ( - 24 ) ), 81 + col2 AS col1 FROM tab0 AS cor0
----
2088
91
2328
180
360
128

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-186
SELECT + CAST( NULL AS SIGNED ) / - col2 * + + col0 AS col1, + 28 AS col2 FROM tab1 AS cor0
----
NULL
28
NULL
28
NULL
28

skipif mysql # not compatible
query II rowsort label-186
SELECT + CAST ( NULL AS INTEGER ) / - col2 * + + col0 AS col1, + 28 AS col2 FROM tab1 AS cor0
----
NULL
28
NULL
28
NULL
28

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT ( NOT + 92 * - col2 IS NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-188
SELECT + + col2 / 23 + 90 + + CAST( NULL AS SIGNED ) * + + col2 * + 69 * 15 * + - col2 / col1 AS col0 FROM tab1 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-188
SELECT + + col2 / 23 + 90 + + CAST ( NULL AS INTEGER ) * + + col2 * + 69 * 15 * + - col2 / col1 AS col0 FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT + 88 * - - col0 + - col0 AS col1 FROM tab1 WHERE + col1 * - 16 IS NOT NULL
----
4437
7395
7917

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-191
SELECT DISTINCT 65 + - 84 + + 34 DIV - 81 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-191
SELECT DISTINCT 65 + - 84 + + 34 / - 81 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-19

query I rowsort
SELECT ALL + col2 * - 33 AS col1 FROM tab2 AS cor0
----
-1320
-1914
-759

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-193
SELECT + col1 * - 44 + + - 69 * + 60 + + - 86 + + 91, CAST( NULL AS SIGNED ) * 62 AS col1 FROM tab2 AS cor0
----
-6379
NULL
-7083
NULL
-7523
NULL

skipif mysql # not compatible
query II rowsort label-193
SELECT + col1 * - 44 + + - 69 * + 60 + + - 86 + + 91, CAST ( NULL AS INTEGER ) * 62 AS col1 FROM tab2 AS cor0
----
-6379
NULL
-7083
NULL
-7523
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-194
SELECT DISTINCT - COUNT( * ) - + COUNT( * ) + SUM( ALL - col2 ) + SUM( ALL - - CAST( NULL AS SIGNED ) ) col0 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT col0 + - 58 AS col2 FROM tab2 AS cor0
----
-12
17
6

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-197
SELECT DISTINCT - col2 / + CAST( NULL AS DECIMAL ) / + - 7 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-197
SELECT DISTINCT - col2 / + CAST ( NULL AS REAL ) / + - 7 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 66 * + col2 - + col2 AS col2 FROM tab2
----
1495
2600
3770

query I rowsort
SELECT DISTINCT - - col0 * + col1 + - + 22 AS col1 FROM tab2 cor0
----
2324
4906
5003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-200
SELECT + 53 * - CAST( COUNT( * ) AS SIGNED ) col0 FROM tab0
----
-159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-200
SELECT + 53 * - CAST ( COUNT ( * ) AS INTEGER ) col0 FROM tab0
----
-159

query II rowsort
SELECT + 74, + col1 * + col1 * + 26 + col1 + - col0 + + + col0 AS col1 FROM tab2
----
74
116781
74
154231
74
67677

query I rowsort
SELECT - 57 * col1 * + 34 * + ( - col0 ) + ( col2 ) AS col2 FROM tab1 AS cor0
----
1383828
823709
8288894

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

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

query I rowsort
SELECT + col2 * + col1 + 35 AS col1 FROM tab1 AS cor0
----
1379
3231
330

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

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

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

query II rowsort
SELECT ALL + 95 AS col0, 50 * - + 83 AS col1 FROM tab1 cor0
----
95
-4150
95
-4150
95
-4150

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 + ( - + ( 9 ) ) + + 90 + + 12 * + col2 / col2 + + 64 BETWEEN - 28 - - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-209
SELECT ALL 71 col1, + col2 DIV + 25 AS col1 FROM tab0 AS cor0
----
71
0
71
1
71
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-209
SELECT ALL 71 col1, + col2 / + 25 AS col1 FROM tab0 AS cor0
----
71
0
71
1
71
3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col1 FROM tab1 WHERE NULL > + col1 / + col0 + - + 13
----

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE + col2 NOT BETWEEN NULL AND + 54
----
58

query II rowsort
SELECT ALL col2 + - col1, + col1 + + - 61 AS col0 FROM tab1
----
21
-14
54
-56
82
-47

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

query II rowsort
SELECT DISTINCT 58 + col2 AS col0, col1 AS col2 FROM tab0
----
105
81
157
1
68
21

query I rowsort
SELECT DISTINCT + col1 + col2 + col1 FROM tab0
----
101
209
52

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + 70
----

query I rowsort
SELECT DISTINCT - 15 * col1 * + 74 + + 0 + col1 * ( - col1 ) FROM tab2 AS cor0
----
-59211
-78859
-91399

query I rowsort
SELECT DISTINCT - - col2 * - 48 + - col2 * - col0 FROM tab0 AS cor0
----
-1551
390
4851

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT DISTINCT - + MIN( + col0 ) + 52 * SUM( - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT 25 > - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-220
SELECT DISTINCT - + MIN ( + col0 ) + 52 * SUM ( - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT 25 > - col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * - 88 col1 FROM tab0 AS cor0
----
-4136
-8712
-880

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 39 IN ( + 18, ( - - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT - 20 - + COUNT( DISTINCT - + col1 ) - + 60 FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-223
SELECT - 20 - + COUNT ( DISTINCT - + col1 ) - + 60 FROM tab2 AS cor0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT DISTINCT 95 * + + COUNT( * ) AS col2 FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-224
SELECT DISTINCT 95 * + + COUNT ( * ) AS col2 FROM tab1
----
285

query I rowsort
SELECT - col2 * col0 * 54 AS col0 FROM tab2
----
-138240
-234900
-57132

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT DISTINCT ( - - MAX( ALL 61 ) ) FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-226
SELECT DISTINCT ( - - MAX ( ALL 61 ) ) FROM tab0
----
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT DISTINCT - COUNT( * ) * - 7 AS col1 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-228
SELECT DISTINCT - COUNT ( * ) * - 7 AS col1 FROM tab1
----
21

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

query I rowsort
SELECT DISTINCT + 75 * + 60 * col1 * + - 90 FROM tab1
----
-19035000
-2025000
-5670000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-231
SELECT + COUNT( 61 ) FROM tab1 AS cor0 WHERE NOT ( + CAST( - ( + - col0 ) AS SIGNED ) + + 45 ) = 32
----
3

skipif mysql # not compatible
query I rowsort label-231
SELECT + COUNT ( 61 ) FROM tab1 AS cor0 WHERE NOT ( + CAST ( - ( + - col0 ) AS INTEGER ) + + 45 ) = 32
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + ( ( - col2 ) ) * - col2 * - - 49 * + + col2 col0 FROM tab1 cor0
----
-50317855
-606928896
-724136896

onlyif mysql # DIV for integer division: 
query I rowsort label-233
SELECT ALL + 27 DIV col1 AS col1 FROM tab0 AS cor0
----
0
1
27

skipif mysql # not compatible
query I rowsort label-233
SELECT ALL + 27 / col1 AS col1 FROM tab0 AS cor0
----
0
1
27

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT ALL - MIN( ALL - col2 ) AS col0 FROM tab2 WHERE NOT + + ( + col0 ) - col2 >= col2
----
58

skipif mysql # not compatible
query I rowsort label-234
SELECT ALL - MIN ( ALL - col2 ) AS col0 FROM tab2 WHERE NOT + + ( + col0 ) - col2 >= col2
----
58

query I rowsort
SELECT col1 * + col0 * - ( col1 ) FROM tab2 AS cor0
----
-119646
-336675
-379456

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

query I rowsort
SELECT - - col1 + + + 54 + - col0 FROM tab1 AS cor0
----
-26
10
17

query I rowsort
SELECT + + 44 + - - 86 FROM tab2 AS cor0
----
130
130
130

query II rowsort
SELECT DISTINCT + col2 AS col1, + col2 * - - col0 FROM tab0
----
10
870
47
705
99
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-240
SELECT + 95 FROM tab1 WHERE - col2 - + + 91 + + + col1 - + - CAST( + 67 AS SIGNED ) * - + col1 * 48 IS NULL
----

skipif mysql # not compatible
query I rowsort label-240
SELECT + 95 FROM tab1 WHERE - col2 - + + 91 + + + col1 - + - CAST ( + 67 AS INTEGER ) * - + col1 * 48 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-241
SELECT DISTINCT + COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-241
SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-242
SELECT ALL - COUNT( * ) AS col2, CAST( NULL AS SIGNED ) * COUNT( - 10 ) AS col0 FROM tab1 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-242
SELECT ALL - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) * COUNT ( - 10 ) AS col0 FROM tab1 AS cor0
----
-3
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < 89 * - col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 5 * col0 IN ( 18 * 56 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-245
SELECT col2 DIV + col1 + + 61 FROM tab0
----
160
61
61

skipif mysql # not compatible
query I rowsort label-245
SELECT col2 / + col1 + + 61 FROM tab0
----
160
61
61

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

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

query I rowsort
SELECT ALL 99 + col1 AS col0 FROM tab2
----
150
166
176

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT ALL COUNT( * ) FROM tab0 WHERE NULL <> ( col1 / col2 )
----
0

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL COUNT ( * ) FROM tab0 WHERE NULL <> ( col1 / col2 )
----
0

query I rowsort
SELECT ALL 51 * col0 + - col1 FROM tab0 WHERE + col0 - 6 IS NOT NULL
----
4416
4946
684

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-252
SELECT + MAX( DISTINCT 69 ) * 12 FROM tab1
----
828

skipif mysql # not compatible
query I rowsort label-252
SELECT + MAX ( DISTINCT 69 ) * 12 FROM tab1
----
828

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-253
SELECT + col0 * CAST( NULL AS DECIMAL ) AS col2 FROM tab2 WHERE - col2 - - col2 / - col2 NOT BETWEEN NULL AND + 90
----

skipif mysql # not compatible
query I rowsort label-253
SELECT + col0 * CAST ( NULL AS REAL ) AS col2 FROM tab2 WHERE - col2 - - col2 / - col2 NOT BETWEEN NULL AND + 90
----

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

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

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

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

query I rowsort
SELECT DISTINCT 96 * + col2 AS col1 FROM tab1
----
5664
6528
9216

query I rowsort
SELECT DISTINCT col1 + + ( - col2 + + col0 ) AS col1 FROM tab1
----
-31
31
70

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT 64 * + MAX( DISTINCT - 19 ) FROM tab2
----
-1216

skipif mysql # not compatible
query I rowsort label-258
SELECT 64 * + MAX ( DISTINCT - 19 ) FROM tab2
----
-1216

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-263
SELECT DISTINCT + 58 DIV col0 AS col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-263
SELECT DISTINCT + 58 / col0 AS col1 FROM tab1
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-264
SELECT MAX( ALL + 94 ) AS col1 FROM tab0 WHERE NULL NOT BETWEEN + CAST( NULL AS SIGNED ) AND ( - 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-264
SELECT MAX ( ALL + 94 ) AS col1 FROM tab0 WHERE NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) AND ( - 81 )
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 IN ( 34 )
----

query I rowsort
SELECT DISTINCT 3 AS col1 FROM tab1 WHERE NULL >= - 32 + col1
----

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + 40 - - col2 / col0 > + 26 + 31
----

query I rowsort
SELECT col0 * - 64 + - 55 AS col2 FROM tab2
----
-2999
-4151
-4855

query I rowsort
SELECT ALL - ( 69 ) * + 34 AS col1 FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND ( col1 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-273
SELECT col1 * + CAST ( ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + 4 col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * - 88 FROM tab0
----
4136
8712
880

query I rowsort
SELECT ALL + 75 * + col0 AS col2 FROM tab1 WHERE 55 IS NOT NULL
----
3825
6375
6825

onlyif mysql # DIV for integer division: 
query I rowsort label-276
SELECT DISTINCT col2 DIV - 18 AS col1 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-276
SELECT DISTINCT col2 / - 18 AS col1 FROM tab2
----
-1
-2
-3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-278
SELECT DISTINCT col1 DIV 21 FROM tab2 AS cor0
----
2
3

skipif mysql # not compatible
query I rowsort label-278
SELECT DISTINCT col1 / 21 FROM tab2 AS cor0
----
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT - 97 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-279
SELECT - 97 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
291

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN - col0 - + col2 AND col1
----
15
81
47

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-283
SELECT * FROM tab0 AS cor0 WHERE - ( CAST( - 67 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-283
SELECT * FROM tab0 AS cor0 WHERE - ( CAST ( - 67 AS INTEGER ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-284
SELECT DISTINCT ( ( + col0 ) ) DIV ( col1 * + col1 ) AS col2 FROM tab0 AS cor0
----
0
97

skipif mysql # not compatible
query I rowsort label-284
SELECT DISTINCT ( ( + col0 ) ) / ( col1 * + col1 ) AS col2 FROM tab0 AS cor0
----
0
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 67 NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT ALL + - 31 + 62 AS col2 FROM tab2 AS cor0
----
31
31
31

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 * - col0 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT + MIN( + 33 ) FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-288
SELECT + MIN ( + 33 ) FROM tab2
----
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT + COUNT( * ) FROM tab2 WHERE NULL IS NULL OR NOT - col2 < 88 + - 81
----
3

skipif mysql # not compatible
query I rowsort label-290
SELECT + COUNT ( * ) FROM tab2 WHERE NULL IS NULL OR NOT - col2 < 88 + - 81
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 <> col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT ALL 12 + + SUM( ALL col2 ) FROM tab1
----
235

skipif mysql # not compatible
query I rowsort label-292
SELECT ALL 12 + + SUM ( ALL col2 ) FROM tab1
----
235

query I rowsort
SELECT - col2 + - + col0 AS col1 FROM tab0
----
-196
-62
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 NOT BETWEEN NULL AND ( 53 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT + 35 + COUNT( * ) AS col2 FROM tab2 WHERE ( col1 * + 52 + + col0 ) = ( - ( + col0 ) / + col2 + col2 )
----
35

skipif mysql # not compatible
query I rowsort label-295
SELECT + 35 + COUNT ( * ) AS col2 FROM tab2 WHERE ( col1 * + 52 + + col0 ) = ( - ( + col0 ) / + col2 + col2 )
----
35

query I rowsort
SELECT col1 + 39 FROM tab0
----
120
40
60

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 59 + 44 > NULL
----

query I rowsort
SELECT ALL col2 * + col1 + 28 FROM tab1
----
1372
3224
323

query I rowsort
SELECT - 85 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT DISTINCT + col1 * + col1 + - + 36 * - col0 AS col2 FROM tab0
----
3493
3573
7101

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

skipif mysql # not compatible
query I rowsort label-301
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 WHERE ( ( NULL ) > ( NULL ) )
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT ALL + col0 + - col1 * + col1 FROM tab2
----
-2555
-4414
-5865

onlyif mysql # DIV for integer division: 
query I rowsort label-304
SELECT DISTINCT col0 DIV + 57 AS col0 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-304
SELECT DISTINCT col0 / + 57 AS col0 FROM tab1 cor0
----
0
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-306
SELECT * FROM tab1 cor0 WHERE NOT col2 / + 64 + - CAST( NULL AS SIGNED ) IN ( - 30 )
----

skipif mysql # not compatible
query III rowsort label-306
SELECT * FROM tab1 cor0 WHERE NOT col2 / + 64 + - CAST ( NULL AS INTEGER ) IN ( - 30 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-308
SELECT - MAX( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-308
SELECT - MAX ( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
-58

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( - 12 ) NOT IN ( 98 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-312
SELECT + 70 AS col2, + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
70
NULL
70
NULL
70
NULL

skipif mysql # not compatible
query II rowsort label-312
SELECT + 70 AS col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
70
NULL
70
NULL
70
NULL

query I rowsort
SELECT + + 78 * col1 AS col1 FROM tab0 AS cor0
----
1638
6318
78

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT - COUNT( * ) * 42 FROM tab1
----
-126

skipif mysql # not compatible
query I rowsort label-314
SELECT - COUNT ( * ) * 42 FROM tab1
----
-126

query I rowsort
SELECT - 39 + - col2 FROM tab1 WHERE NOT NULL > + col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT DISTINCT ( - COUNT( * ) ) col2 FROM tab1
----
-3

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= - + col0 + + - col1
----

query I rowsort
SELECT ALL + 70 * + 43 AS col2 FROM tab2
----
3010
3010
3010

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

skipif mysql # not compatible
query I rowsort label-323
SELECT - - COUNT ( * ) * - + CAST ( - COUNT ( * ) AS INTEGER ) + + COUNT ( * ) - + + COUNT ( * ) + 5 AS col2 FROM tab2 AS cor0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-324
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT ( + + 14 / + 0 * + 90 - + 84 / + 67 ) < ( NULL ) AND NOT CAST( col2 AS SIGNED ) = NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL handles NULL in DIV/0 by differently
query I rowsort label-324
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT ( + + 14 / + 0 * + 90 - + 84 / + 67 ) < ( NULL ) AND NOT CAST ( col2 AS INTEGER ) = NULL
----

query I rowsort
SELECT ALL + - 42 * - + 27 * - ( col0 ) AS col1 FROM tab0 AS cor0
----
-109998
-17010
-98658

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - 67 + col1 col0 FROM tab1 AS cor0
----
3196
340
952

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-328
SELECT - ( - COUNT( * ) ) DIV + 98 + - + 21 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-328
SELECT - ( - COUNT ( * ) ) / + 98 + - + 21 FROM tab1 AS cor0
----
-21

query I rowsort
SELECT - col0 * + 54 + - - 55 + + 85 * col1 + col2 + col2 AS col0 FROM tab1 AS cor0
----
-1317
-3992
-728

onlyif mysql # DIV for integer division: 
query I rowsort label-330
SELECT + ( + col2 ) DIV col2 + + col1 + + + col1 AS col1 FROM tab0 AS cor0
----
163
3
43

skipif mysql # not compatible
query I rowsort label-330
SELECT + ( + col2 ) / col2 + + col1 + + + col1 AS col1 FROM tab0 AS cor0
----
163
3
43

query I rowsort
SELECT + - 4 + + col2 FROM tab0 cor0
----
43
6
95

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT ALL COUNT( DISTINCT - col1 ) + 32 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-332
SELECT ALL COUNT ( DISTINCT - col1 ) + 32 FROM tab2
----
35

query I rowsort
SELECT DISTINCT - col2 * - col1 + - - col0 * - - col0 FROM tab1
----
11477
3945
7520

query I rowsort
SELECT col0 * col1 - + 23 AS col0 FROM tab1 WHERE NULL <= + - 77 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT ALL + COUNT( ALL - 78 ) FROM tab0 WHERE - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-335
SELECT ALL + COUNT ( ALL - 78 ) FROM tab0 WHERE - col1 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT col2 * + 51 + + + 90 AS col2 FROM tab0
----
2487
5139
600

query II rowsort
SELECT + col2, + col0 - - + 90 FROM tab2
----
23
136
40
154
58
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - col1 col0 FROM tab1
----
1344
295
3196

query I rowsort
SELECT ALL 12 + - col1 AS col1 FROM tab1 AS cor0
----
-2
-35
7

query I rowsort
SELECT ALL + col0 - 77 + ( col2 ) FROM tab2 AS cor0
----
-8
27
56

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

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

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

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

skipif mysql # not compatible
query I rowsort label-343
SELECT DISTINCT - 43 - col1 + + col0 * + col2 / + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 * + col2 * - + 17 col2 FROM tab1 AS cor0 WHERE ( col1 * ( + - col2 ) ) IS NULL
----

query I rowsort
SELECT DISTINCT + 53 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-348
SELECT ALL col2 DIV - + col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-348
SELECT ALL col2 / - + col0 FROM tab0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT 47 * + + COUNT( * ) col0 FROM tab1
----
141

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-350
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, col0 * - - col1 FROM tab1
----
NULL
425
NULL
4277
NULL
714

skipif mysql # not compatible
query II rowsort label-350
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, col0 * - - col1 FROM tab1
----
NULL
425
NULL
4277
NULL
714

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT MAX( DISTINCT + 54 ) AS col1 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-352
SELECT MAX ( DISTINCT + 54 ) AS col1 FROM tab1
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab0 WHERE NOT + + 60 IS NULL
----
1
21
81

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

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

query I rowsort
SELECT 96 * + 76 FROM tab0
----
7296
7296
7296

query II rowsort
SELECT - 2, col2 FROM tab1
----
-2
59
-2
68
-2
96

query I rowsort
SELECT - col0 * col2 * - col2 FROM tab2
----
102400
24334
252300

query II rowsort
SELECT DISTINCT + col1, - 67 FROM tab0
----
1
-67
21
-67
81
-67

query I rowsort
SELECT col2 * 65 AS col2 FROM tab0 AS cor0
----
3055
6435
650

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 13 * + 39 NOT IN ( + + col0 )
----

query II rowsort
SELECT ALL + 55 AS col1, + col2 FROM tab2 AS cor0 WHERE NOT col2 + 47 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-362
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL BETWEEN ( NULL ) AND ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-362
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL BETWEEN ( NULL ) AND ( CAST ( NULL AS INTEGER ) )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-363
SELECT - - MAX ( - col1 ) col0 FROM tab1 AS cor0
----
-5

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

query I rowsort
SELECT DISTINCT - col2 + - col2 * - 33 FROM tab0 AS cor0
----
1504
3168
320

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 13
----

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT col0 / + col2 + - 31 * + ( + col1 ) > col0
----
-51
-85
-91

query I rowsort
SELECT - + ( 96 ) * 88 FROM tab0 AS cor0
----
-8448
-8448
-8448

onlyif mysql # DIV for integer division: 
query I rowsort label-369
SELECT + col1 - - 36 + + ( + col0 ) DIV - 80 + - - col0 AS col2 FROM tab2 AS cor0
----
133
177
178

skipif mysql # not compatible
query I rowsort label-369
SELECT + col1 - - 36 + + ( + col0 ) / - 80 + - - col0 AS col2 FROM tab2 AS cor0
----
133
177
178

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

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

query I rowsort
SELECT DISTINCT ( - 40 ) AS col0 FROM tab1 cor0
----
-40

query I rowsort
SELECT DISTINCT + 98 + 23 AS col0 FROM tab0 AS cor0
----
121

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

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - 1 AND NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-376
SELECT 94 + + CAST( col0 AS SIGNED ) + + - col1 * + + col1 * + + col1 AS col0 FROM tab1
----
-103638
-2599
54

skipif mysql # not compatible
query I rowsort label-376
SELECT 94 + + CAST ( col0 AS INTEGER ) + + - col1 * + + col1 * + + col1 AS col0 FROM tab1
----
-103638
-2599
54

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT - 17 * - - SUM( DISTINCT + + col0 ) col1 FROM tab2 WHERE - ( + 51 ) * col0 + + 86 IS NOT NULL
----
-3145

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-377
SELECT - 17 * - - SUM ( DISTINCT + + col0 ) col1 FROM tab2 WHERE - ( + 51 ) * col0 + + 86 IS NOT NULL
----
-3145

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT + 75 * COUNT( - - col0 ) FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-383
SELECT + 75 * COUNT ( - - col0 ) FROM tab0 AS cor0
----
225

query I rowsort
SELECT ALL - 65 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT - 91 * col2 AS col0 FROM tab1
----
-5369
-6188
-8736

query I rowsort
SELECT + + 74 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

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

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

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

query I rowsort
SELECT DISTINCT + 97 * + 84 FROM tab2 AS cor0
----
8148

onlyif mysql # aggregate syntax: 
query II rowsort label-390
SELECT - MAX( + + col1 ), + MAX( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT 78 = NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-390
SELECT - MAX ( + + col1 ), + MAX ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT 78 = NULL
----
NULL
NULL

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

query II rowsort
SELECT ALL 79, col1 FROM tab1 AS cor0
----
79
14
79
47
79
5

query II rowsort
SELECT DISTINCT - 61 AS col0, + 87 FROM tab2 AS cor0
----
-61
87

query II rowsort
SELECT DISTINCT - - 16 AS col1, - col1 * - col0 * - 52 FROM tab2 AS cor0
----
16
-121992
16
-256256
16
-261300

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

onlyif mysql # DIV for integer division: 
query I rowsort label-396
SELECT DISTINCT + 74 DIV - col0 FROM tab0 AS cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-396
SELECT DISTINCT + 74 / - col0 FROM tab0 AS cor0
----
-4
0

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

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

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

skipif mysql # not compatible
query I rowsort label-398
SELECT CAST ( + - ( col0 ) AS INTEGER ) AS col2 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT COUNT( * ) * + 46 * - - MIN( - col1 ) FROM tab0
----
-11178

skipif mysql # not compatible
query I rowsort label-399
SELECT COUNT ( * ) * + 46 * - - MIN ( - col1 ) FROM tab0
----
-11178

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

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

query I rowsort
SELECT ALL - 36 + + 96 + col2 * - ( + col2 ) + + col0 AS col1 FROM tab2 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT DISTINCT + 99 FROM tab2, tab1 cor0
----
99

query I rowsort
SELECT DISTINCT - 76 + - col1 AS col1 FROM tab0
----
-157
-77
-97

query I rowsort
SELECT DISTINCT col0 * + 27 * - 95 + - col2 FROM tab2
----
-118013
-164200
-192433

query III rowsort
SELECT * FROM tab0 WHERE + + col0 + col2 - + col1 / - - col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-407
SELECT ALL * FROM tab0 WHERE NOT - col2 IS NULL AND NOT + 11 - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-407
SELECT ALL * FROM tab0 WHERE NOT - col2 IS NULL AND NOT + 11 - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 43 + + + 35 - col0 FROM tab0 AS cor0
----
-105
-23
-95

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-410
SELECT col1 + + CAST( - 1 AS SIGNED ) * + 85 AS col2, 31 AS col0 FROM tab2 AS cor0
----
-18
31
-34
31
-8
31

skipif mysql # not compatible
query II rowsort label-410
SELECT col1 + + CAST ( - 1 AS INTEGER ) * + 85 AS col2, 31 AS col0 FROM tab2 AS cor0
----
-18
31
-34
31
-8
31

query I rowsort
SELECT + 6 + - col2 AS col0 FROM tab2 cor0
----
-17
-34
-52

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) > 76 * - 0
----

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

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

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

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

query I rowsort
SELECT ALL + 97 + - + col0 FROM tab0
----
0
10
82

query I rowsort
SELECT DISTINCT ( - + col2 ) + 0 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT ALL - 11 * + COUNT( * ) + - 72 FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-417
SELECT ALL - 11 * + COUNT ( * ) + - 72 FROM tab2
----
-105

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

query I rowsort
SELECT + col1 - + 53 + + col0 * 75 AS col0 FROM tab0
----
1153
6493
7223

query I rowsort
SELECT DISTINCT + col1 + - col1 * + 58 FROM tab1
----
-2679
-285
-798

query I rowsort
SELECT 73 - + 73 + - + 67 AS col2 FROM tab2 AS cor0
----
-67
-67
-67

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - col2 ) col2 FROM tab2 WHERE NOT 69 + + + ( + 88 ) / + 75 IS NULL
----
-23
-40
-58

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-426
SELECT DISTINCT + 47 * - - CAST ( NULL AS INTEGER ) * - - 21, + COUNT ( * ) col1 FROM tab2
----
NULL
3

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-428
SELECT - ( col0 ) DIV CAST( + 77 AS SIGNED ) - 97 col0 FROM tab2 AS cor0
----
-97
-97
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-428
SELECT - ( col0 ) / CAST ( + 77 AS INTEGER ) - 97 col0 FROM tab2 AS cor0
----
-97
-97
-97

query I rowsort
SELECT ALL 22 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1 AS col2, col2 / col0 * + col0 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

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

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

query I rowsort
SELECT ALL col0 * + 74 FROM tab0
----
1110
6438
7178

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

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

query I rowsort
SELECT ALL 72 * - + 76 * - - 56 AS col1 FROM tab2 AS cor0
----
-306432
-306432
-306432

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-435
SELECT - 43 + + COUNT( ALL - - CAST( + - col0 AS DECIMAL ) ) * + + MIN( + col2 ) FROM tab1 AS cor0
----
134

skipif mysql # not compatible
query I rowsort label-435
SELECT - 43 + + COUNT ( ALL - - CAST ( + - col0 AS REAL ) ) * + + MIN ( + col2 ) FROM tab1 AS cor0
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-436
SELECT ALL col2 DIV 91 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-436
SELECT ALL col2 / 91 AS col0 FROM tab1 AS cor0
----
0
0
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-438
SELECT ALL 0 col0, 8 DIV - - COUNT( * ) FROM tab1 cor0
----
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-438
SELECT ALL 0 col0, 8 / - - COUNT ( * ) FROM tab1 cor0
----
0
2

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

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

query I rowsort
SELECT ALL + col2 + col1 + + col2 + - 36 FROM tab0 cor0
----
139
163
5

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT DISTINCT 98 - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-441
SELECT DISTINCT 98 - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
95

query I rowsort
SELECT ALL + + 78 - - + ( - - col2 ) FROM tab1 AS cor0
----
137
146
174

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-443
SELECT DISTINCT ( MIN ( ALL col0 ) ) col2 FROM tab0
----
15

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 - col0 * col2 * - col0 + - 66 col1 FROM tab0
----
10539
75798
931619

query I rowsort
SELECT col2 + + col2 - 21 - + 71 AS col2 FROM tab2
----
-12
-46
24

onlyif mysql # aggregate syntax: 
query II rowsort label-447
SELECT DISTINCT - 12, COUNT( * ) AS col1 FROM tab2
----
-12
3

skipif mysql # not compatible
query II rowsort label-447
SELECT DISTINCT - 12, COUNT ( * ) AS col1 FROM tab2
----
-12
3

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

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

query I rowsort
SELECT ALL col0 * - col2 + - col0 AS col0 FROM tab0 AS cor0
----
-720
-957
-9700

query I rowsort
SELECT DISTINCT + 90 FROM tab2 AS cor0 WHERE col0 = ( - + col1 )
----

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

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

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

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

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE NOT NULL = 82 * 34 * + 74 AND NOT col0 * col2 IS NOT NULL
----

query I rowsort
SELECT + 62 * - col0 + ( + col0 ) AS col2 FROM tab0 cor0 WHERE NOT 20 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab1 AS cor0 WHERE NOT + col0 * - + col1 / col0 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT ALL + 8 * MAX( ALL - 2 ) FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-457
SELECT ALL + 8 * MAX ( ALL - 2 ) FROM tab2 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-458
SELECT 7 + - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NOT ( + + col2 ) <> NULL )
----
7

skipif mysql # not compatible
query I rowsort label-458
SELECT 7 + - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NOT ( + + col2 ) <> NULL )
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 + + 23 + - col2 col1 FROM tab2 AS cor0
----
-102
-120
-85

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

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

query I rowsort
SELECT ( - col1 ) * + + col2 + - col0 FROM tab0 AS cor0
----
-196
-297
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT 62 * - COUNT( * ) + - - 74 FROM tab0
----
-112

skipif mysql # not compatible
query I rowsort label-462
SELECT 62 * - COUNT ( * ) + - - 74 FROM tab0
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT ALL - COUNT( * ) AS col0 FROM tab2 WHERE - 87 + + col1 + col1 * - col0 * + col1 BETWEEN - col0 AND - col0 + + ( + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-463
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 WHERE - 87 + + col1 + col1 * - col0 * + col1 BETWEEN - col0 AND - col0 + + ( + + col1 )
----
0

query I rowsort
SELECT ALL + 8 + - - col0 FROM tab2
----
54
72
83

query I rowsort
SELECT DISTINCT - col2 * + - 61 FROM tab1
----
3599
4148
5856

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-469
SELECT DISTINCT * FROM tab2 WHERE + col1 * + + col0 + - - CAST( - col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-469
SELECT DISTINCT * FROM tab2 WHERE + col1 * + + col0 + - - CAST ( - col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-470
SELECT 82 + CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-470
SELECT 82 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 84 + + col0 col0 FROM tab2 AS cor0
----
-20
-38
-9

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 94 - + 95 * col1 * col1 col2, + col0 AS col0 FROM tab1 AS cor0
----
-18526
51
-209761
91
-2281
85

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

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

query II rowsort
SELECT - 6 AS col0, + col2 * - col2 FROM tab0 AS cor0
----
-6
-100
-6
-2209
-6
-9801

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

query I rowsort
SELECT ALL - ( + col1 ) * - 55 FROM tab0
----
1155
4455
55

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

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

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT NULL <> ( - ( - - ( 80 ) ) * - + col2 )
----

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 41 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-484
SELECT ALL - CAST( - + col2 AS SIGNED ) AS col1, col0 AS col2 FROM tab2 AS cor0
----
23
46
40
64
58
75

skipif mysql # not compatible
query II rowsort label-484
SELECT ALL - CAST ( - + col2 AS INTEGER ) AS col1, col0 AS col2 FROM tab2 AS cor0
----
23
46
40
64
58
75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 >= + col2 * - + col1 - - + 3
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 74 * + + col1 FROM tab2
----
3774
4958
5698

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT + COUNT( * ) + - - SUM( ALL + 74 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
675

skipif mysql # not compatible
query I rowsort label-487
SELECT + COUNT ( * ) + - - SUM ( ALL + 74 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
675

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-488
SELECT ALL CAST( NULL AS SIGNED ) AS col1, - 92 - - + col2 FROM tab1
----
NULL
-24
NULL
-33
NULL
4

skipif mysql # not compatible
query II rowsort label-488
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, - 92 - - + col2 FROM tab1
----
NULL
-24
NULL
-33
NULL
4

onlyif mysql # DIV for integer division: 
query I rowsort label-489
SELECT + 58 DIV 85 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-489
SELECT + 58 / 85 AS col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-490
SELECT + col1 DIV ( - 89 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-490
SELECT + col1 / ( - 89 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-491
SELECT - ( - 32 ) DIV + col2 AS col2 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-491
SELECT - ( - 32 ) / + col2 AS col2 FROM tab0 AS cor0
----
0
0
3

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

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

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 AS cor0 WHERE NULL <> col0 / + + col1 * - col1
----

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

query I rowsort
SELECT DISTINCT - ( - 28 ) FROM tab0
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( 94 ) + col2 * - col0 + + col2 * - 25 - + col2 col2, + col2 * + col0 * + + ( + ( - col2 ) ) + - 7 AS col0 FROM tab2
----
-1750
-24341
-3694
-102407
-5952
-252307

query I rowsort
SELECT 47 * - 20 + - col0 AS col1 FROM tab2
----
-1004
-1015
-986

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NULL <= NULL
----

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

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

query I rowsort
SELECT + 73 AS col0 FROM tab1 WHERE 3 * 7 * + - col2 * - ( + col1 ) BETWEEN - col2 AND - 42 + - + col1
----

query I rowsort
SELECT DISTINCT ( + 55 ) - - col2 AS col2 FROM tab2 AS cor0
----
113
78
95

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

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

skipif mysql # not compatible
query I rowsort label-504
SELECT DISTINCT COUNT ( * ) + - MAX ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT ALL COUNT( * ) * - - 75 AS col1 FROM tab1 cor0
----
225

skipif mysql # not compatible
query I rowsort label-505
SELECT ALL COUNT ( * ) * - - 75 AS col1 FROM tab1 cor0
----
225

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT DISTINCT MIN( ALL 19 ) AS col0 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-508
SELECT DISTINCT MIN ( ALL 19 ) AS col0 FROM tab0 AS cor0
----
19

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

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

query I rowsort
SELECT col1 * + + 48 AS col2 FROM tab2
----
2448
3216
3696

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

skipif mysql # not compatible
query I rowsort label-511
SELECT DISTINCT - col0 / + 77 FROM tab1
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-512
SELECT - 17 DIV + + col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-512
SELECT - 17 / + + col0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-513
SELECT ALL col2 DIV + - col1 AS col1 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-513
SELECT ALL col2 / + - col1 AS col1 FROM tab0
----
-99
0
0

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

query I rowsort
SELECT - - col1 AS col0 FROM tab2 WHERE NOT + col2 IS NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT col2 * + col2 AS col0, ( - - col2 ) AS col0, - col1 col2 FROM tab2 AS cor0
----
9 values hashing to 7fe59ada64a9ecabdbd77325798778d7

query I rowsort
SELECT ALL + 4 + + + 95 + - 33 FROM tab2
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT 22 * - MIN( ALL - 87 ) * + 78 AS col2 FROM tab0
----
149292

skipif mysql # not compatible
query I rowsort label-518
SELECT 22 * - MIN ( ALL - 87 ) * + 78 AS col2 FROM tab0
----
149292

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT col1 >= col1
----

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

query I rowsort
SELECT + + col2 + + 38 FROM tab0 cor0
----
137
48
85

query I rowsort
SELECT + 37 + + col1 FROM tab2 AS cor0
----
104
114
88

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT - - MAX( ALL + 7 ) + + COUNT( * ) * - ( + 62 ) col1 FROM tab0 cor0
----
-179

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-523
SELECT - - MAX ( ALL + 7 ) + + COUNT ( * ) * - ( + 62 ) col1 FROM tab0 cor0
----
-179

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 > + ( 93 ) AND NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 81 + col2 FROM tab2
----
-23
-41
-58

query I rowsort
SELECT DISTINCT 63 + + + col2 FROM tab2
----
103
121
86

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

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

query II rowsort
SELECT ALL col0 AS col1, 4 FROM tab1 AS cor0
----
51
4
85
4
91
4

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT ALL COUNT( * ) - - 35 AS col1 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-529
SELECT ALL COUNT ( * ) - - 35 AS col1 FROM tab2 AS cor0
----
38

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

skipif mysql # not compatible
query I rowsort label-530
SELECT - MIN ( DISTINCT 20 ) - + 11 * + 33 AS col0 FROM tab1 cor0
----
-383

onlyif mysql # DIV for integer division: 
query II rowsort label-531
SELECT + col0 - col2 DIV - col2 AS col0, - col2 + - col0 FROM tab1 AS cor0
----
52
-147
86
-144
92
-159

skipif mysql # not compatible
query II rowsort label-531
SELECT + col0 - col2 / - col2 AS col0, - col2 + - col0 FROM tab1 AS cor0
----
52
-147
86
-144
92
-159

query I rowsort
SELECT ALL ( - 75 ) + + 98 + + - col1 AS col2 FROM tab2
----
-28
-44
-54

onlyif mysql # DIV for integer division: 
query II rowsort label-533
SELECT + 24 DIV + 16, + ( - col1 ) AS col0 FROM tab1 AS cor0
----
1
-14
1
-47
1
-5

skipif mysql # not compatible
query II rowsort label-533
SELECT + 24 / + 16, + ( - col1 ) AS col0 FROM tab1 AS cor0
----
1
-14
1
-47
1
-5

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col1 - 12 >= - 38
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 * + col0 + col2 AS col2 FROM tab0 AS cor0
----
-658
-860
-9504

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT ALL + SUM( ALL - + 33 ) FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-536
SELECT ALL + SUM ( ALL - + 33 ) FROM tab1 AS cor0
----
-99

query I rowsort
SELECT DISTINCT 82 * + col2 * + + ( 71 ) FROM tab0
----
273634
576378
58220

onlyif mysql # DIV for integer division: 
query I rowsort label-538
SELECT 89 DIV - 17 FROM tab0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-538
SELECT 89 / - 17 FROM tab0
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT - MAX( ALL - col1 ) col1 FROM tab0
----
1

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 45 * col1 - + col1 + col0 < - 70
----

query I rowsort
SELECT DISTINCT + 16 * + col0 AS col1 FROM tab1 AS cor0
----
1360
1456
816

query I rowsort
SELECT ALL - - ( - 36 ) AS col0 FROM tab0 AS cor0
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT DISTINCT COUNT( ALL 33 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-543
SELECT DISTINCT COUNT ( ALL 33 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

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

query I rowsort
SELECT DISTINCT - col2 * + - col1 + - col1 FROM tab2
----
1122
3003
3819

query I rowsort
SELECT DISTINCT + 81 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
81

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

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

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

query II rowsort
SELECT - 0, - col1 AS col2 FROM tab1 AS cor0
----
0
-14
0
-47
0
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT ALL + COUNT( DISTINCT - 71 ) + + 16 col2 FROM tab0 AS cor0
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-550
SELECT ALL + COUNT ( DISTINCT - 71 ) + + 16 col2 FROM tab0 AS cor0
----
17

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT + - 88 = 19 )
----

query I rowsort
SELECT 80 + - col0 FROM tab0
----
-17
-7
65

query I rowsort
SELECT + col2 * - 29 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * col2 * - 49 FROM tab2
----
-150920
-190414
-57477

query I rowsort
SELECT - 1 + + + col0 AS col1 FROM tab0
----
14
86
96

query I rowsort
SELECT ALL + - col0 + + col2 * col1 FROM tab0 WHERE NULL < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT DISTINCT - MAX( - col2 ) + + + 62 FROM tab1
----
121

skipif mysql # not compatible
query I rowsort label-558
SELECT DISTINCT - MAX ( - col2 ) + + + 62 FROM tab1
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-559
SELECT DISTINCT * FROM tab2 WHERE + CAST( - + 30 AS SIGNED ) + - 10 * - col1 * - col2 IN ( col0 - + - col1 * ( - + 58 ) - col2 )
----

skipif mysql # not compatible
query III rowsort label-559
SELECT DISTINCT * FROM tab2 WHERE + CAST ( - + 30 AS INTEGER ) + - 10 * - col1 * - col2 IN ( col0 - + - col1 * ( - + 58 ) - col2 )
----

query I rowsort
SELECT ALL ( + col0 ) + + ( + 21 ) AS col1 FROM tab0
----
108
118
36

query I rowsort
SELECT + col1 + + ( + ( 61 ) ) FROM tab0
----
142
62
82

query I rowsort
SELECT 29 + - 66 AS col0 FROM tab1
----
-37
-37
-37

query I rowsort
SELECT ALL + 47 + - 8 * 62 * 26 AS col2 FROM tab2
----
-12849
-12849
-12849

query I rowsort
SELECT - col0 * - col2 + + - 51 + + + col1 FROM tab2
----
1058
2586
4366

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-565
SELECT col2 + + CAST( - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-565
SELECT col2 + + CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT ALL col2 - + + col1 FROM tab2 AS cor0
----
-28
-37
-9

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

query I rowsort
SELECT ALL + - ( 69 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT DISTINCT + 16 AS col0 FROM tab0, tab2 AS cor0
----
16

query I rowsort
SELECT ALL + 22 * - 88 FROM tab2 AS cor0
----
-1936
-1936
-1936

query I rowsort
SELECT ( - - 61 ) FROM tab1 cor0
----
61
61
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 20 + - + col2 col0 FROM tab0 AS cor0
----
-119
-1667
-430

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

query I rowsort
SELECT + ( - + col2 ) * + + col2 * - col1 FROM tab0 AS cor0
----
178929
2100
9801

query II rowsort
SELECT ALL col2 * col1 AS col1, col2 FROM tab2
----
1173
23
3080
40
3886
58

query I rowsort
SELECT + 31 * - 26 FROM tab0
----
-806
-806
-806

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

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

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

query II rowsort
SELECT + col2 * + col0, col0 + ( - col2 ) AS col0 FROM tab1 AS cor0
----
4896
-45
5015
26
6188
23

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT ALL + 40 * - ( 97 ) + - COUNT( * ) + - 6 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-3895

skipif mysql # not compatible
query I rowsort label-580
SELECT ALL + 40 * - ( 97 ) + - COUNT ( * ) + - 6 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-3895

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT + SUM( ALL + - col1 ) + - 49 AS col0 FROM tab1 cor0
----
-115

skipif mysql # not compatible
query I rowsort label-581
SELECT + SUM ( ALL + - col1 ) + - 49 AS col0 FROM tab1 cor0
----
-115

query I rowsort
SELECT - col2 + - col2 * - col0 + + - 48 AS col0 FROM tab0 AS cor0
----
610
812
9456

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-583
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-583
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT + 83 * + COUNT( * ) + - - MIN( + col1 ) + - 8 AS col1 FROM tab0 AS cor0
----
242

skipif mysql # not compatible
query I rowsort label-584
SELECT + 83 * + COUNT ( * ) + - - MIN ( + col1 ) + - 8 AS col1 FROM tab0 AS cor0
----
242

query I rowsort
SELECT - ( + col0 ) + + col1 - + col1 * - col2 * + col1 * + col2 FROM tab1 AS cor0
----
10214372
1806299
86945

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

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

query I rowsort
SELECT + col0 + - ( + - 25 ) * + col0 FROM tab0 AS cor0
----
2262
2522
390

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-589
SELECT ALL col1 * CAST( - col1 AS SIGNED ) - + 89 FROM tab0
----
-530
-6650
-90

skipif mysql # not compatible
query I rowsort label-589
SELECT ALL col1 * CAST ( - col1 AS INTEGER ) - + 89 FROM tab0
----
-530
-6650
-90

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE - ( - + 23 ) IS NOT NULL
----
-51
-85
-91

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

skipif mysql # not compatible
query I rowsort label-591
SELECT MIN ( + - 50 ) AS col2 FROM tab2
----
-50

query I rowsort
SELECT - col0 - 66 AS col0 FROM tab1
----
-117
-151
-157

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

query I rowsort
SELECT DISTINCT 23 - + 91 * + col1 FROM tab1 AS cor0
----
-1251
-4254
-432

query I rowsort
SELECT ALL + 26 - 39 FROM tab0 AS cor0
----
-13
-13
-13

query I rowsort
SELECT + ( - + 78 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

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

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

query I rowsort
SELECT - ( + 87 ) AS col1 FROM tab1
----
-87
-87
-87

query I rowsort
SELECT ( - 78 ) * - col0 AS col1 FROM tab2
----
3588
4992
5850

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + ( - 28 ) + col2 col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL 45 * - - 31 - - - col2 AS col1 FROM tab2 AS cor0
----
1337
1355
1372

query I rowsort
SELECT DISTINCT - + 58 FROM tab0 cor0
----
-58

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT + COUNT( + - 1 ) * + MIN( DISTINCT - ( - col0 ) ) FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-606
SELECT + COUNT ( + - 1 ) * + MIN ( DISTINCT - ( - col0 ) ) FROM tab1
----
153

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-608
SELECT DISTINCT 22 + - CAST( + col0 AS SIGNED ) AS col1 FROM tab2
----
-24
-42
-53

skipif mysql # not compatible
query I rowsort label-608
SELECT DISTINCT 22 + - CAST ( + col0 AS INTEGER ) AS col1 FROM tab2
----
-24
-42
-53

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

query I rowsort
SELECT - 93 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT DISTINCT + + 93 + + - col2 * + + col0 FROM tab2 cor0
----
-2467
-4257
-965

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-612
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN + col2 * 81 - col0 * - CAST( NULL AS SIGNED ) AND + - col1 + + col1
----

skipif mysql # not compatible
query III rowsort label-612
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN + col2 * 81 - col0 * - CAST ( NULL AS INTEGER ) AND + - col1 + + col1
----

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

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

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

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

query I rowsort
SELECT ALL 92 * + - col0 * - 0 FROM tab1
----
0
0
0

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

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

query I rowsort
SELECT ALL + col0 + + 95 AS col0 FROM tab2
----
141
159
170

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT ALL 13 + + SUM( + + ( + 97 ) ) FROM tab2
----
304

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL 13 + + SUM ( + + ( + 97 ) ) FROM tab2
----
304

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT + MAX( + 29 ) FROM tab2 cor0
----
29

skipif mysql # not compatible
query I rowsort label-622
SELECT + MAX ( + 29 ) FROM tab2 cor0
----
29

query I rowsort
SELECT - 42 * + + col0 FROM tab1 AS cor0
----
-2142
-3570
-3822

onlyif mysql # aggregate syntax: 
query II rowsort label-624
SELECT + 84, + COUNT( * ) col1 FROM tab0 AS cor0
----
84
3

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-626
SELECT ALL ( - COUNT( * ) ) + - + MIN( - + 86 ) DIV 75 AS col2 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-626
SELECT ALL ( - COUNT ( * ) ) + - + MIN ( - + 86 ) / 75 AS col2 FROM tab2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT ALL - COUNT( * ) + + - 98 FROM tab2
----
-101

skipif mysql # not compatible
query I rowsort label-627
SELECT ALL - COUNT ( * ) + + - 98 FROM tab2
----
-101

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 WHERE NOT 3 + col2 * col0 IS NULL
----
-46
-64
-75

query I rowsort
SELECT + col2 * + + 55 AS col2 FROM tab0 AS cor0
----
2585
5445
550

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-631
SELECT + + 45 DIV - + 17 FROM tab2 cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-631
SELECT + + 45 / - + 17 FROM tab2 cor0
----
-2
-2
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT DISTINCT + MIN( DISTINCT - 57 ) + COUNT( * ) AS col0 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-633
SELECT DISTINCT + MIN ( DISTINCT - 57 ) + COUNT ( * ) AS col0 FROM tab1
----
-54

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-635
SELECT ALL - col2 * + col2 AS col0, - 27 * - CAST( - + 72 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1600
-1944
-3364
-1944
-529
-1944

skipif mysql # not compatible
query II rowsort label-635
SELECT ALL - col2 * + col2 AS col0, - 27 * - CAST ( - + 72 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1600
-1944
-3364
-1944
-529
-1944

query I rowsort
SELECT ALL 27 - + col1 AS col2 FROM tab0 AS cor0
----
-54
26
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 * - col1 col2 FROM tab0 AS cor0
----
-12
-252
-972

onlyif mysql # DIV for integer division: 
query I rowsort label-638
SELECT ALL col1 DIV - - col0 + + 72 * + col0 FROM tab0 AS cor0
----
1085
6264
6984

skipif mysql # not compatible
query I rowsort label-638
SELECT ALL col1 / - - col0 + + 72 * + col0 FROM tab0 AS cor0
----
1085
6264
6984

onlyif mysql # DIV for integer division: 
query I rowsort label-639
SELECT DISTINCT - 71 DIV + col1 FROM tab0 AS cor0
----
-3
-71
0

skipif mysql # not compatible
query I rowsort label-639
SELECT DISTINCT - 71 / + col1 FROM tab0 AS cor0
----
-3
-71
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT + ( + 55 ) * MAX( ALL 92 ) * MIN( ALL - 20 ) AS col0 FROM tab2
----
-101200

skipif mysql # not compatible
query I rowsort label-642
SELECT + ( + 55 ) * MAX ( ALL 92 ) * MIN ( ALL - 20 ) AS col0 FROM tab2
----
-101200

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT ALL 23 * - + SUM( DISTINCT + 22 ) FROM tab2
----
-506

skipif mysql # not compatible
query I rowsort label-643
SELECT ALL 23 * - + SUM ( DISTINCT + 22 ) FROM tab2
----
-506

query I rowsort
SELECT DISTINCT - col1 * - 25 AS col2 FROM tab2
----
1275
1675
1925

query I rowsort
SELECT DISTINCT - col1 + + 61 * ( + 47 ) FROM tab1
----
2820
2853
2862

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

query I rowsort
SELECT 41 - - - 52 - - - 64 FROM tab2
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT DISTINCT MIN( + col2 ) + + - 46 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-648
SELECT DISTINCT MIN ( + col2 ) + + - 46 FROM tab0
----
-36

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

query II rowsort
SELECT + col1 * + col2 AS col1, 78 AS col1 FROM tab1
----
1344
78
295
78
3196
78

onlyif mysql # DIV for integer division: 
query I rowsort label-651
SELECT + 77 DIV + + col1 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-651
SELECT + 77 / + + col1 AS col1 FROM tab2 AS cor0
----
1
1
1

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-653
SELECT ALL 72 + + - ( + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + + ( - col0 ) ) NOT IN ( + ( + col0 ), + CAST( NULL AS DECIMAL ), + col1 + + col2, - - col1 / col2, + 77 * - col1 )
----

skipif mysql # not compatible
query I rowsort label-653
SELECT ALL 72 + + - ( + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + + ( - col0 ) ) NOT IN ( + ( + col0 ), + CAST ( NULL AS REAL ), + col1 + + col2, - - col1 / col2, + 77 * - col1 )
----

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

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

query I rowsort
SELECT DISTINCT + 7 * - + 35 FROM tab2 AS cor0
----
-245

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + ( col1 ) + - col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-98
11
34

onlyif mysql # DIV for integer division: 
query II rowsort label-661
SELECT col0, col1 DIV - + ( 99 ) AS col2 FROM tab2
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-661
SELECT col0, col1 / - + ( 99 ) AS col2 FROM tab2
----
46
0
64
0
75
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col2, + 34 * + 70 * col0 col0 FROM tab1
----
59
202300
68
216580
96
121380

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT 19 * - 93 * + COUNT( + - col2 ) AS col2 FROM tab1
----
-5301

skipif mysql # not compatible
query I rowsort label-665
SELECT 19 * - 93 * + COUNT ( + - col2 ) AS col2 FROM tab1
----
-5301

query I rowsort
SELECT 37 + + - col1 FROM tab2
----
-14
-30
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-667
SELECT + CAST( + 87 AS SIGNED ) * + 82 - - col2 + col1 FROM tab0
----
7165
7234
7262

skipif mysql # not compatible
query I rowsort label-667
SELECT + CAST ( + 87 AS INTEGER ) * + 82 - - col2 + col1 FROM tab0
----
7165
7234
7262

query I rowsort
SELECT - 15 + - + 20 FROM tab0
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT 92 + 82 * COUNT( * ) FROM tab2 AS cor0
----
338

skipif mysql # not compatible
query I rowsort label-669
SELECT 92 + 82 * COUNT ( * ) FROM tab2 AS cor0
----
338

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

onlyif mysql # aggregate syntax: 
query II rowsort label-671
SELECT ALL + 99 - MIN( 50 ), MAX( + col1 ) AS col0 FROM tab0 AS cor0
----
49
81

skipif mysql # not compatible
query II rowsort label-671
SELECT ALL + 99 - MIN ( 50 ), MAX ( + col1 ) AS col0 FROM tab0 AS cor0
----
49
81

onlyif mysql # aggregate syntax: 
query II rowsort label-672
SELECT 35 + + COUNT( ALL + + col1 ) AS col1, COUNT( * ) FROM tab0 cor0
----
38
3

skipif mysql # not compatible
query II rowsort label-672
SELECT 35 + + COUNT ( ALL + + col1 ) AS col1, COUNT ( * ) FROM tab0 cor0
----
38
3

query I rowsort
SELECT - + col2 * - ( 96 ) + + 8 AS col1 FROM tab2 AS cor0
----
2216
3848
5576

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT 3 * 19 * SUM( ALL + - 56 ) * COUNT( * ) AS col2 FROM tab0
----
-28728

skipif mysql # not compatible
query I rowsort label-674
SELECT 3 * 19 * SUM ( ALL + - 56 ) * COUNT ( * ) AS col2 FROM tab0
----
-28728

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT DISTINCT MIN( ALL - - ( - 58 ) ) * + + COUNT( * ) AS col0 FROM tab0
----
-174

skipif mysql # not compatible
query I rowsort label-675
SELECT DISTINCT MIN ( ALL - - ( - 58 ) ) * + + COUNT ( * ) AS col0 FROM tab0
----
-174

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-676
SELECT - 20 * 15 * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-676
SELECT - 20 * 15 * CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT SUM( ALL col0 ) AS col0 FROM tab0 WHERE NOT ( NOT NULL NOT BETWEEN col0 AND + 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-678
SELECT SUM ( ALL col0 ) AS col0 FROM tab0 WHERE NOT ( NOT NULL NOT BETWEEN col0 AND + 2 )
----
NULL

query I rowsort
SELECT DISTINCT col2 * 72 * - col1 FROM tab1 cor0
----
-21240
-230112
-96768

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT + - COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT + col1 NOT BETWEEN 61 * + col1 AND - + 49
----
0

skipif mysql # not compatible
query I rowsort label-680
SELECT + - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT + col1 NOT BETWEEN 61 * + col1 AND - + 49
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-681
SELECT ALL + ( col2 ) DIV + col1 AS col2, + col1 FROM tab0 AS cor0
----
0
21
0
81
99
1

skipif mysql # not compatible
query II rowsort label-681
SELECT ALL + ( col2 ) / + col1 AS col2, + col1 FROM tab0 AS cor0
----
0
21
0
81
99
1

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

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

query II rowsort
SELECT + col0, - 5 * + + col1 + col1 AS col1 FROM tab1 AS cor0
----
51
-56
85
-20
91
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT ALL 58 + + MAX( ALL col2 ) AS col0 FROM tab1
----
154

skipif mysql # not compatible
query I rowsort label-684
SELECT ALL 58 + + MAX ( ALL col2 ) AS col0 FROM tab1
----
154

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 col1 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE 41 + + 90 IN ( + col0 / col0 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL > + col0
----
0

skipif mysql # not compatible
query I rowsort label-691
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL > + col0
----
0

query I rowsort
SELECT ALL - col0 - col0 * - 52 FROM tab2
----
2346
3264
3825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-693
SELECT ( ( ( - col1 ) ) ) * ( CAST( CAST( 40 AS SIGNED ) AS SIGNED ) ) FROM tab1
----
-1880
-200
-560

skipif mysql # not compatible
query I rowsort label-693
SELECT ( ( ( - col1 ) ) ) * ( CAST ( CAST ( 40 AS INTEGER ) AS INTEGER ) ) FROM tab1
----
-1880
-200
-560

query I rowsort
SELECT col0 * 98 AS col1 FROM tab2
----
4508
6272
7350

query I rowsort
SELECT 55 * + col1 FROM tab0
----
1155
4455
55

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT COUNT( + col0 ) * 6 AS col1 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-696
SELECT COUNT ( + col0 ) * 6 AS col1 FROM tab1
----
18

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

query III rowsort
SELECT * FROM tab0 WHERE + col2 / col1 >= col2
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-699
SELECT * FROM tab0 WHERE NOT CAST( 14 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-699
SELECT * FROM tab0 WHERE NOT CAST ( 14 AS INTEGER ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 84 >= NULL
----

query I rowsort
SELECT - 70 * 89 FROM tab2
----
-6230
-6230
-6230

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT COUNT( * ) + COUNT( * ) * SUM( - col2 ) FROM tab1
----
-666

skipif mysql # not compatible
query I rowsort label-702
SELECT COUNT ( * ) + COUNT ( * ) * SUM ( - col2 ) FROM tab1
----
-666

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-704
SELECT DISTINCT - col2 + 54 DIV + 74 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-704
SELECT DISTINCT - col2 + 54 / + 74 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 14 ) > NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT DISTINCT + 25 + - COUNT( * ) FROM tab2 WHERE NOT - 7 IS NULL
----
22

skipif mysql # not compatible
query I rowsort label-707
SELECT DISTINCT + 25 + - COUNT ( * ) FROM tab2 WHERE NOT - 7 IS NULL
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-708
SELECT + col1 + + col0 DIV - col2 FROM tab2
----
49
66
76

skipif mysql # not compatible
query I rowsort label-708
SELECT + col1 + + col0 / - col2 FROM tab2
----
49
66
76

query I rowsort
SELECT ALL col2 * col0 FROM tab1 AS cor0 WHERE col1 * - col1 - + col0 IS NOT NULL
----
4896
5015
6188

query I rowsort
SELECT col1 * + 35 FROM tab0 AS cor0
----
2835
35
735

query I rowsort
SELECT + 31 AS col1 FROM tab0 cor0 WHERE NULL <> col0 * + 95 + - col2
----

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

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

query I rowsort
SELECT - ( + col0 ) FROM tab1 cor0 WHERE 82 / - col1 + - 59 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT DISTINCT + MIN( ALL - 88 ) * 61 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
-5368

skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT + MIN ( ALL - 88 ) * 61 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
-5368

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

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT + COUNT( * ) + 19 * + 31 FROM tab1
----
592

skipif mysql # not compatible
query I rowsort label-717
SELECT + COUNT ( * ) + 19 * + 31 FROM tab1
----
592

query I rowsort
SELECT DISTINCT + 53 + col0 FROM tab0 WHERE col2 IS NOT NULL
----
140
150
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-719
SELECT ( - CAST( + MAX( DISTINCT col2 ) AS SIGNED ) ) FROM tab1
----
-96

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

query I rowsort
SELECT ALL + + col0 - - 34 FROM tab2 AS cor0
----
109
80
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-721
SELECT COUNT( * ) + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col2 IN ( + CAST( - ( col0 ) AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-721
SELECT COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col2 IN ( + CAST ( - ( col0 ) AS INTEGER ) )
----
0

query I rowsort
SELECT ALL + - 26 - - col0 * + 58 AS col0 FROM tab2 AS cor0
----
2642
3686
4324

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-723
SELECT + CAST( NULL AS DECIMAL ) * SUM( DISTINCT 47 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-723
SELECT + CAST ( NULL AS REAL ) * SUM ( DISTINCT 47 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col1 * col1 + - 70 AS col1 FROM tab1 AS cor0 WHERE NOT ( - 96 * + col2 ) IS NULL
----
-2279
-266
-95

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

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

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

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <> col1
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT 72 * + + COUNT( * ) FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-731
SELECT 72 * + + COUNT ( * ) FROM tab0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT MAX( - 83 ) * + 66 FROM tab1
----
-5478

skipif mysql # not compatible
query I rowsort label-732
SELECT MAX ( - 83 ) * + 66 FROM tab1
----
-5478

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

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NOT col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT COUNT( * ) * ( 50 ) * - 53 col2 FROM tab1
----
-7950

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-735
SELECT COUNT ( * ) * ( 50 ) * - 53 col2 FROM tab1
----
-7950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-736
SELECT DISTINCT CAST( col1 AS SIGNED ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-736
SELECT DISTINCT CAST ( col1 AS INTEGER ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT SUM( ( + col2 ) ) * + 80 AS col1 FROM tab2
----
9680

skipif mysql # not compatible
query I rowsort label-737
SELECT SUM ( ( + col2 ) ) * + 80 AS col1 FROM tab2
----
9680

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

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 79 + + 16 * col1 NOT BETWEEN NULL AND ( NULL )
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-742
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - col2 col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ( + + 78 ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT ALL - ( + 38 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

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

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT MIN( 31 ) FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-746
SELECT MIN ( 31 ) FROM tab0 AS cor0
----
31

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

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

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( - col1 ) <= NULL OR - col0 IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-749
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col2 ) BETWEEN ( + col1 * + col1 + CAST( NULL AS DECIMAL ) ) AND col0
----
15
81
47
97
1
99

skipif mysql # not compatible
query III rowsort label-749
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col2 ) BETWEEN ( + col1 * + col1 + CAST ( NULL AS REAL ) ) AND col0
----
15
81
47
97
1
99

query I rowsort
SELECT ALL - 24 FROM tab2 AS cor0 WHERE 41 * col0 NOT IN ( 95 + 25 / + col0 )
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-751
SELECT DISTINCT + + 45, COUNT( ALL + 22 ) col1 FROM tab2 AS cor0
----
45
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-751
SELECT DISTINCT + + 45, COUNT ( ALL + 22 ) col1 FROM tab2 AS cor0
----
45
3

onlyif mysql # DIV for integer division: 
query I rowsort label-752
SELECT DISTINCT col2 DIV + 21 + - - col0 FROM tab0 AS cor0
----
101
17
87

skipif mysql # not compatible
query I rowsort label-752
SELECT DISTINCT col2 / + 21 + - - col0 FROM tab0 AS cor0
----
101
17
87

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

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

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT + col2 * + - col1 * col2 + + 42 FROM tab0 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT + MIN( ALL - ( col1 ) ) * - 24 FROM tab2 WHERE 4 * + + col2 * + col1 + 69 * - col2 + + col2 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-756
SELECT + MIN ( ALL - ( col1 ) ) * - 24 FROM tab2 WHERE 4 * + + col2 * + col1 + 69 * - col2 + + col2 <= NULL
----
NULL

query I rowsort
SELECT ALL - col1 + - + 27 AS col0 FROM tab2
----
-104
-78
-94

query I rowsort
SELECT ( - col1 ) + 89 AS col0 FROM tab2
----
12
22
38

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

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

query III rowsort
SELECT * FROM tab0 WHERE - col0 IN ( + + col0 )
----

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

query I rowsort
SELECT ALL col2 + 28 * - 84 FROM tab0 AS cor0 WHERE NOT - 19 - + col0 - + col2 >= NULL
----

query I rowsort
SELECT + 1 * ( 58 ) FROM tab2 AS cor0
----
58
58
58

query I rowsort
SELECT 72 + col0 AS col2 FROM tab0 cor0 WHERE - col0 - + - col1 IS NOT NULL
----
159
169
87

onlyif mysql # aggregate syntax: 
query II rowsort label-765
SELECT ALL 34, MAX( - col1 ) * - COUNT( * ) AS col2 FROM tab2
----
34
153

skipif mysql # not compatible
query II rowsort label-765
SELECT ALL 34, MAX ( - col1 ) * - COUNT ( * ) AS col2 FROM tab2
----
34
153

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT DISTINCT - + MAX( ALL 72 ) + - 54 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-126

skipif mysql # not compatible
query I rowsort label-766
SELECT DISTINCT - + MAX ( ALL 72 ) + - 54 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-126

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

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

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

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

query I rowsort
SELECT ALL - 40 AS col1 FROM tab0 cor0
----
-40
-40
-40

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

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

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

query II rowsort
SELECT DISTINCT + - ( - ( + col1 ) ) AS col1, - col2 AS col0 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT + COUNT( * ) * 62 FROM tab2 cor0
----
186

skipif mysql # not compatible
query I rowsort label-774
SELECT + COUNT ( * ) * 62 FROM tab2 cor0
----
186

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= - col1 + - col1 * 65 - col0 + + col0 * - col1
----

query I rowsort
SELECT DISTINCT ( + col0 ) * 64 - + ( 38 ) + - col2 FROM tab2
----
2883
4018
4704

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 34 col1 FROM tab0
----
-2754
-34
-714

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

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

query I rowsort
SELECT DISTINCT + col0 * - + col2 FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * - col2 - - col1 <= - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * 65 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-784
SELECT DISTINCT + col1 DIV + + 20 AS col2 FROM tab1 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-784
SELECT DISTINCT + col1 / + + 20 AS col2 FROM tab1 AS cor0
----
0
2

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL <> + ( + 64 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 + + col0 + - col0 * - col0 + 37 col0 FROM tab0 cor0
----
-938
5866
9446

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT ALL + ( + + 89 ) * + MIN( - + 12 ) FROM tab0 cor0
----
-1068

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL + ( + + 89 ) * + MIN ( - + 12 ) FROM tab0 cor0
----
-1068

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

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

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

query I rowsort
SELECT - 41 + - - col2 AS col2 FROM tab0 cor0
----
-31
58
6

query I rowsort
SELECT ALL - col2 * 89 - col1 AS col1 FROM tab0 AS cor0
----
-4264
-8812
-911

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

skipif mysql # not compatible
query I rowsort label-794
SELECT ( - MIN ( + col0 ) ) AS col0 FROM tab1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-795
SELECT ALL ( col1 ) - col0 DIV - - 65 FROM tab1
----
14
4
46

skipif mysql # not compatible
query I rowsort label-795
SELECT ALL ( col1 ) - col0 / - - 65 FROM tab1
----
14
4
46

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-797
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( CAST( NULL AS SIGNED ) * + 70 ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-797
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( CAST ( NULL AS INTEGER ) * + 70 ) IS NOT NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT - COUNT( * ) * 93 FROM tab2 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-800
SELECT - COUNT ( * ) * 93 FROM tab2 AS cor0
----
-279

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL <= NULL OR NOT col0 * - - col0 * col0 * 28 + - + col2 < - 11
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-803
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= ( CAST( + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-803
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= ( CAST ( + col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT - COUNT( ALL - - col0 ) * - 64 * - 67 FROM tab1 WHERE NOT NULL = + - col1 * - - col1 * + - 69 + - - col1
----
0

skipif mysql # not compatible
query I rowsort label-804
SELECT - COUNT ( ALL - - col0 ) * - 64 * - 67 FROM tab1 WHERE NOT NULL = + - col1 * - - col1 * + - 69 + - - col1
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 33 > NULL
----

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 * - col0 <= col2
----
97
1
99

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 / 61 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-809
SELECT CAST( + MIN( DISTINCT + 24 ) AS SIGNED ) FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-809
SELECT CAST ( + MIN ( DISTINCT + 24 ) AS INTEGER ) FROM tab0
----
24

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

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

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

query I rowsort
SELECT DISTINCT - 67 + + col1 AS col0 FROM tab1
----
-20
-53
-62

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

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

query I rowsort
SELECT DISTINCT - + col0 + - col1 + - col2 * - col2 AS col2 FROM tab1 AS cor0
----
3391
4486
9151

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

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

query I rowsort
SELECT + col1 * - col1 AS col2 FROM tab1 AS cor0 WHERE 98 >= + col1
----
-196
-2209
-25

query I rowsort
SELECT + col1 - col1 + - - col1 FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT ( ( col0 ) IS NULL )
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-820
SELECT + 43 + col2 DIV + + col2 + + - col1 FROM tab2
----
-23
-33
-7

skipif mysql # not compatible
query I rowsort label-820
SELECT + 43 + col2 / + + col2 + + - col1 FROM tab2
----
-23
-33
-7

query I rowsort
SELECT ALL 83 + - col2 * - col0 * + col0 FROM tab1
----
249779
426358
563191

query I rowsort
SELECT + 61 + col0 FROM tab2
----
107
125
136

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT DISTINCT - 44 * MIN( col2 ) FROM tab2
----
-1012

skipif mysql # not compatible
query I rowsort label-823
SELECT DISTINCT - 44 * MIN ( col2 ) FROM tab2
----
-1012

query I rowsort
SELECT ALL 10 + 62 AS col2 FROM tab0
----
72
72
72

query II rowsort
SELECT ALL + col0 + + - col1 AS col0, + col2 FROM tab1
----
37
96
44
68
80
59

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 * 64 * col0 >= + col1 * - + ( - col1 )
----

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

skipif mysql # not compatible
query I rowsort label-827
SELECT DISTINCT - + col2 * + + CAST ( NULL AS REAL ) + + + 15 AS col0 FROM tab1 AS cor0
----
NULL

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

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

query I rowsort
SELECT ALL col1 * - col2 FROM tab0 WHERE NOT ( NULL ) IN ( - 56 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT DISTINCT + SUM( DISTINCT - col2 ) AS col2 FROM tab1 WHERE - 44 * - col1 + - - 82 BETWEEN NULL AND + col2 / - + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-830
SELECT DISTINCT + SUM ( DISTINCT - col2 ) AS col2 FROM tab1 WHERE - 44 * - col1 + - - 82 BETWEEN NULL AND + col2 / - + col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT ALL - MIN( + 71 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-71

skipif mysql # not compatible
query I rowsort label-831
SELECT ALL - MIN ( + 71 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-71

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-835
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 = - + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-835
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 = - + CAST ( - CAST ( NULL AS INTEGER ) AS REAL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-836
SELECT DISTINCT - 66 DIV + - 9 col2 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-836
SELECT DISTINCT - 66 / + - 9 col2 FROM tab0 AS cor0
----
7

query I rowsort
SELECT - + 86 * - 69 FROM tab2 AS cor0
----
5934
5934
5934

query I rowsort
SELECT ALL - ( + col1 ) * col1 * 90 AS col0 FROM tab0 AS cor0
----
-39690
-590490
-90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT ALL - COUNT( * ) col1 FROM tab0 WHERE NOT NULL <= col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-841
SELECT ALL - COUNT ( * ) col1 FROM tab0 WHERE NOT NULL <= col0
----
0

query I rowsort
SELECT + col1 * - - col1 * col1 FROM tab0
----
1
531441
9261

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

onlyif mysql # DIV for integer division: 
query I rowsort label-844
SELECT + + col1 * col0 DIV + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
182
25

skipif mysql # not compatible
query I rowsort label-844
SELECT + + col1 * col0 / + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
182
25

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-847
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= col2 * + 92 * + ( - CAST( + col2 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-847
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= col2 * + 92 * + ( - CAST ( + col2 AS INTEGER ) )
----
0

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

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

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

query I rowsort
SELECT DISTINCT col2 * 61 + + 57 * + + 18 FROM tab1
----
4625
5174
6882

query I rowsort
SELECT - ( 10 ) + - col0 AS col0 FROM tab0
----
-107
-25
-97

query I rowsort
SELECT ALL col2 - + col1 AS col1 FROM tab2 AS cor0
----
-28
-37
-9

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

query I rowsort
SELECT DISTINCT + ( + col0 ) * + + col0 + 32 + 17 + - col2 FROM tab2 AS cor0
----
2142
4105
5616

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

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT ALL MIN( - - col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-856
SELECT ALL MIN ( - - col2 ) FROM tab0
----
10

query II rowsort
SELECT DISTINCT - 41, - col0 AS col0 FROM tab2 WHERE NULL <> - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 95 col0 FROM tab2 WHERE NULL IS NULL
----
-95
-95
-95

query I rowsort
SELECT ALL col2 + + + 11 FROM tab2
----
34
51
69

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT - MIN( + col2 ) - - COUNT( ALL + col2 ) FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-860
SELECT - MIN ( + col2 ) - - COUNT ( ALL + col2 ) FROM tab0
----
-7

query I rowsort
SELECT ALL - 27 - - col1 + 76 AS col1 FROM tab0
----
130
50
70

query I rowsort
SELECT DISTINCT + - col0 * + col0 + 95 AS col2 FROM tab2 AS cor0
----
-2021
-4001
-5530

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT 88 * + - MIN( - col1 ) AS col1 FROM tab1 AS cor0
----
4136

skipif mysql # not compatible
query I rowsort label-863
SELECT 88 * + - MIN ( - col1 ) AS col1 FROM tab1 AS cor0
----
4136

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

onlyif mysql # DIV for integer division: 
query I rowsort label-865
SELECT ALL 34 DIV - col1 FROM tab0 AS cor0
----
-1
-34
0

skipif mysql # not compatible
query I rowsort label-865
SELECT ALL 34 / - col1 FROM tab0 AS cor0
----
-1
-34
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-866
SELECT ALL + 59 * + col1 + - col0 + - 28 * CAST( - col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
4391
5754
6635

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-866
SELECT ALL + 59 * + col1 + - col0 + - 28 * CAST ( - col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
4391
5754
6635

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + col0 + - + col0 + + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * - 29 * + col2 FROM tab2 AS cor0
----
112694
34017
89320

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-871
SELECT ALL + CAST( - + ( + AVG ( ALL + - 5 ) ) AS SIGNED ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-871
SELECT ALL + CAST ( - + ( + AVG ( ALL + - 5 ) ) AS INTEGER ) FROM tab1 AS cor0
----
5

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

skipif mysql # not compatible
query I rowsort label-872
SELECT DISTINCT MIN ( ALL + ( + col1 ) ) / + COUNT ( * ) FROM tab1 cor0
----
1

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE col2 + col0 <> + col2
----
59
68
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 53 / + col0 AND + 12 - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-875
SELECT - CAST( NULL AS SIGNED ) AS col1, + col0 * - col2 col2 FROM tab2
----
NULL
-1058
NULL
-2560
NULL
-4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-875
SELECT - CAST ( NULL AS INTEGER ) AS col1, + col0 * - col2 col2 FROM tab2
----
NULL
-1058
NULL
-2560
NULL
-4350

query I rowsort
SELECT DISTINCT - + col1 + + - 12 FROM tab2 WHERE - - col1 IS NOT NULL
----
-63
-79
-89

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

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

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

query I rowsort
SELECT col2 * + 83 FROM tab0
----
3901
8217
830

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

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT - SUM( - col2 ) FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
223

skipif mysql # not compatible
query I rowsort label-881
SELECT - SUM ( - col2 ) FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
223

query II rowsort
SELECT - 30, ( + 34 ) + - + 16 * + col2 AS col1 FROM tab0
----
-30
-126
-30
-1550
-30
-718

onlyif mysql # DIV for integer division: 
query I rowsort label-883
SELECT ALL - 94 DIV + col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-883
SELECT ALL - 94 / + col0 FROM tab2
----
-1
-1
-2

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

query I rowsort
SELECT 33 + + 60 FROM tab0 AS cor0
----
93
93
93

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

onlyif mysql # DIV for integer division: 
query I rowsort label-887
SELECT ALL col1 DIV - 34 FROM tab0 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-887
SELECT ALL col1 / - 34 FROM tab0 cor0
----
-2
0
0

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE + 64 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-889
SELECT DISTINCT + 9 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-889
SELECT DISTINCT + 9 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NULL IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 - - - col0 / + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + - 66 FROM tab0 cor0
----
-19
-56
33

query I rowsort
SELECT DISTINCT + col2 - - ( + + col2 ) FROM tab2 AS cor0
----
116
46
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-893
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( + 68 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-893
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( + 68 AS INTEGER ) < NULL
----

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

query I rowsort
SELECT DISTINCT + + col2 * + col2 - + col0 FROM tab0 cor0
----
13
2194
9704

query I rowsort
SELECT - 56 + 88 AS col2 FROM tab2
----
32
32
32

query I rowsort
SELECT ALL - col2 + - col1 + + 68 AS col2 FROM tab1
----
-42
-47
4

query I rowsort
SELECT col1 + + 98 AS col2 FROM tab1
----
103
112
145

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

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

query I rowsort
SELECT DISTINCT 41 * + col2 FROM tab1 AS cor0
----
2419
2788
3936

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 >= - col1
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query II rowsort label-903
SELECT - COUNT( * ) AS col0, 12 FROM tab1
----
-3
12

skipif mysql # not compatible
query II rowsort label-903
SELECT - COUNT ( * ) AS col0, 12 FROM tab1
----
-3
12

onlyif mysql # DIV for integer division: 
query I rowsort label-904
SELECT + col2 * 34 DIV + col2 FROM tab2
----
34
34
34

skipif mysql # not compatible
query I rowsort label-904
SELECT + col2 * 34 / + col2 FROM tab2
----
34
34
34

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 66 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT ALL COUNT( * ) * 80 col2 FROM tab0
----
240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-906
SELECT ALL COUNT ( * ) * 80 col2 FROM tab0
----
240

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

onlyif mysql # DIV for integer division: 
query I rowsort label-908
SELECT ALL 63 * + - ( + col0 ) DIV + - col0 - + - col2 FROM tab2 AS cor0
----
103
121
86

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL 63 * + - ( + col0 ) / + - col0 - + - col2 FROM tab2 AS cor0
----
103
121
86

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 1 BETWEEN NULL AND NULL
----

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

skipif mysql # not compatible
query II rowsort label-911
SELECT - MIN ( - + col0 ) AS col0, + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
97
3

query I rowsort
SELECT - 48 + + - col0 AS col2 FROM tab2 AS cor0
----
-112
-123
-94

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-914
SELECT DISTINCT - 32 DIV - col0 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-914
SELECT DISTINCT - 32 / - col0 FROM tab0 AS cor0
----
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 + col0 col1 FROM tab0
----
-45
27
37

query I rowsort
SELECT ALL + ( - col0 ) + 95 FROM tab2
----
20
31
49

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 - 72 IN ( 15 * - col1 * - col1 * col1, 14, + - col1 )
----

query I rowsort
SELECT DISTINCT + - ( + col2 ) FROM tab0 WHERE NOT - col1 + - 81 * + 85 IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT ALL + + 97 + MIN( DISTINCT - + 23 ) AS col2 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL + + 97 + MIN ( DISTINCT - + 23 ) AS col2 FROM tab1 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-920
SELECT DISTINCT + + 66 + - COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-920
SELECT DISTINCT + + 66 + - COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-921
SELECT - 93 + - - 39 + 47 DIV - COUNT( - + col0 ) AS col0 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-921
SELECT - 93 + - - 39 + 47 / - COUNT ( - + col0 ) AS col0 FROM tab0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT DISTINCT - + 56 - - - COUNT( * ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-922
SELECT DISTINCT - + 56 - - - COUNT ( * ) FROM tab1 cor0
----
-59

query I rowsort
SELECT DISTINCT 71 + - - col0 FROM tab1 AS cor0
----
122
156
162

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT ALL - COUNT( * ) - + COUNT( * ) * + COUNT( * ) * - ( - 57 ) - - COUNT( * ) FROM tab0 AS cor0
----
-513

skipif mysql # not compatible
query I rowsort label-924
SELECT ALL - COUNT ( * ) - + COUNT ( * ) * + COUNT ( * ) * - ( - 57 ) - - COUNT ( * ) FROM tab0 AS cor0
----
-513

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-925
SELECT DISTINCT - - CAST( + 90 AS SIGNED ) - + 3 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-925
SELECT DISTINCT - - CAST ( + 90 AS INTEGER ) - + 3 FROM tab2 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT COUNT( * ) - COUNT( ALL - + 51 ) * - - 9 col0 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-926
SELECT COUNT ( * ) - COUNT ( ALL - + 51 ) * - - 9 col0 FROM tab2 AS cor0
----
-24

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

query I rowsort
SELECT + ( col0 ) * + 39 * - col2 FROM tab1
----
-190944
-195585
-241332

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + 7 + - col2 * + + 39 / + + col1 = - col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) >= - + 27 / + col1
----

query I rowsort
SELECT ALL + 95 AS col1 FROM tab0 cor0
----
95
95
95

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

query II rowsort
SELECT col1, 51 FROM tab0
----
1
51
21
51
81
51

query I rowsort
SELECT + 58 * + - col2 + + + col0 - - + col0 AS col2 FROM tab1 cor0
----
-3252
-3762
-5466

query I rowsort
SELECT ALL 34 * - col1 - + 82 * col1 + col2 FROM tab0 AS cor0
----
-17
-2426
-9349

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-938
SELECT DISTINCT + 70 + 72 DIV 6 * + col1 col1 FROM tab2 cor0
----
682
874
994

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-938
SELECT DISTINCT + 70 + 72 / 6 * + col1 col1 FROM tab2 cor0
----
682
874
994

query I rowsort
SELECT ALL col0 + - + 97 FROM tab1
----
-12
-46
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 5 * col2 col1, - ( - 94 ) - - - 35 AS col2 FROM tab1
----
295
59
340
59
480
59

query I rowsort
SELECT DISTINCT - 0 + - col1 AS col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL col1 * + ( col2 ) AS col1 FROM tab0 WHERE NULL <= NULL
----

query I rowsort
SELECT - col0 + + col1 + + 52 + - + col1 FROM tab1
----
-33
-39
1

query I rowsort
SELECT DISTINCT 90 + + col1 + - + col2 AS col1 FROM tab0
----
-8
101
124

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT - - COUNT( * ) * + + 62 + 9 + + COUNT( * ) FROM tab0 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-945
SELECT - - COUNT ( * ) * + + 62 + 9 + + COUNT ( * ) FROM tab0 AS cor0
----
198

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 + col2 col0 FROM tab1 AS cor0
----
-3422
-4556
-9120

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-948
SELECT - + col2 / + + col0 col0 FROM tab0 AS cor0
----
-1
-3
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-949
SELECT ALL + 76 * + SUM( ALL - ( CAST( - 40 AS SIGNED ) ) ) FROM tab0
----
9120

skipif mysql # not compatible
query I rowsort label-949
SELECT ALL + 76 * + SUM ( ALL - ( CAST ( - 40 AS INTEGER ) ) ) FROM tab0
----
9120

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT + ( - MIN( ALL + ( + col2 ) ) ) + - ( - 86 ) AS col2 FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-950
SELECT + ( - MIN ( ALL + ( + col2 ) ) ) + - ( - 86 ) AS col2 FROM tab0 AS cor0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT + COUNT( ( col0 ) ) * 84 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
756

skipif mysql # not compatible
query I rowsort label-951
SELECT + COUNT ( ( col0 ) ) * 84 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
756

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 + + - 84 + - + 60 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT MAX( DISTINCT - 14 ) AS col0 FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-954
SELECT MAX ( DISTINCT - 14 ) AS col0 FROM tab2 AS cor0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-955
SELECT + col0 * - - CAST( - + 10 AS SIGNED ) AS col0, - col0 + - 6 + - col1 AS col0 FROM tab1
----
-510
-71
-850
-96
-910
-144

skipif mysql # not compatible
query II rowsort label-955
SELECT + col0 * - - CAST ( - + 10 AS INTEGER ) AS col0, - col0 + - 6 + - col1 AS col0 FROM tab1
----
-510
-71
-850
-96
-910
-144

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-956
SELECT 75 * + - ( 73 ) AS col0, + CAST( NULL AS SIGNED ) AS col0, col2 FROM tab2
----
9 values hashing to ebc6054aecf868683b328990b7d4e94f

skipif mysql # not compatible
query III rowsort label-956
SELECT 75 * + - ( 73 ) AS col0, + CAST ( NULL AS INTEGER ) AS col0, col2 FROM tab2
----
9 values hashing to ebc6054aecf868683b328990b7d4e94f

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 6 IS NOT NULL
----

query I rowsort
SELECT ALL + + col0 AS col2 FROM tab1 WHERE NOT 89 <> 38
----

query I rowsort
SELECT - + 21 * - 2 FROM tab2 AS cor0
----
42
42
42

query II rowsort
SELECT + col1 AS col1, - col1 + - 62 FROM tab0 AS cor0
----
1
-63
21
-83
81
-143

query I rowsort
SELECT ALL 28 + - col2 FROM tab1
----
-31
-40
-68

query I rowsort
SELECT DISTINCT - + ( + 70 ) + 26 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-964
SELECT + 98 + - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
21
31
47

skipif mysql # not compatible
query I rowsort label-964
SELECT + 98 + - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
21
31
47

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

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

query I rowsort
SELECT + col1 + - 88 + col0 AS col1 FROM tab0 AS cor0
----
10
20
8

query II rowsort
SELECT col2, col0 FROM tab1 AS cor0 WHERE 3 >= + - col1 + + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-968
SELECT col2 + + col1 + - + col1 * + 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-968
SELECT col2 + + col1 + - + col1 * + CAST ( NULL AS INTEGER ), col1 AS col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

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

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( col2, - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col1 * + col0 * col0 >= + - col1 / col0 )
----

query I rowsort
SELECT DISTINCT + col1 * - ( + + 82 ) + - - col2 AS col0 FROM tab0
----
-1712
-6595
17

query I rowsort
SELECT DISTINCT AVG ( col1 ) + 8 FROM tab2 AS cor0 WHERE NOT + 44 + 46 IS NOT NULL
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT 22 * + 23 + COUNT( * ) FROM tab2
----
509

skipif mysql # not compatible
query I rowsort label-976
SELECT 22 * + 23 + COUNT ( * ) FROM tab2
----
509

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 + + - 12 col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e2b4facad736216c70d28e44e6731f5c

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

query II rowsort
SELECT DISTINCT 82 AS col0, - col1 * + col2 + + col1 AS col2 FROM tab2 AS cor0
----
82
-1122
82
-3003
82
-3819

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

skipif mysql # not compatible
query I rowsort label-980
SELECT DISTINCT - SUM ( DISTINCT - 27 ) FROM tab2 AS cor0
----
27

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

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

query I rowsort
SELECT ALL - + 70 * + col1 + col1 FROM tab1 AS cor0
----
-3243
-345
-966

query I rowsort
SELECT DISTINCT - col1 * + + 1 FROM tab1 AS cor0
----
-14
-47
-5

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

skipif mysql # not compatible
query II rowsort label-984
SELECT DISTINCT - col1 / + 50, CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
-1
NULL

query I rowsort
SELECT ALL + + 30 FROM tab2 WHERE NOT 13 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 WHERE - 35 = NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-988
SELECT - CAST( ( - col2 ) AS SIGNED ) DIV - 96 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-988
SELECT - CAST ( ( - col2 ) AS INTEGER ) / - 96 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT - 28 * MIN( DISTINCT ( + col0 ) ) * - - 63 + - COUNT( * ) AS col1 FROM tab0 WHERE NOT - ( - - col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-989
SELECT - 28 * MIN ( DISTINCT ( + col0 ) ) * - - 63 + - COUNT ( * ) AS col1 FROM tab0 WHERE NOT - ( - - col1 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-990
SELECT COUNT( * ) * + COUNT( * ) * - CAST( + ( + 76 ) AS SIGNED ) AS col2 FROM tab2
----
-684

skipif mysql # not compatible
query I rowsort label-990
SELECT COUNT ( * ) * + COUNT ( * ) * - CAST ( + ( + 76 ) AS INTEGER ) AS col2 FROM tab2
----
-684

query I rowsort
SELECT DISTINCT 35 FROM tab1 cor0 WHERE NOT - col2 <> NULL
----

query I rowsort
SELECT + + col1 * 66 FROM tab1 AS cor0
----
3102
330
924

query I rowsort
SELECT 58 + + col1 * + - ( + col1 ) FROM tab2 cor0
----
-2543
-4431
-5871

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT SUM( DISTINCT 43 ) AS col2 FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-994
SELECT SUM ( DISTINCT 43 ) AS col2 FROM tab2
----
43

query III rowsort
SELECT * FROM tab1 WHERE ( 68 / + ( + 52 ) / + ( 17 ) IS NULL )
----

query II rowsort
SELECT DISTINCT - 66 * - 40 + col0 * ( + 61 ) * + - col0, 1 * 42 AS col1 FROM tab0
----
-11085
42
-459069
42
-571309
42

query II rowsort
SELECT + col2 AS col1, 97 AS col2 FROM tab1 AS cor0
----
59
97
68
97
96
97

query I rowsort
SELECT ALL + 44 * ( col0 ) + + col1 FROM tab2 AS cor0
----
2075
2893
3367

query I rowsort
SELECT ALL 71 + - col0 FROM tab2 cor0
----
-4
25
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT DISTINCT + SUM( ALL + 53 ) AS col0 FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-1000
SELECT DISTINCT + SUM ( ALL + 53 ) AS col0 FROM tab1 AS cor0
----
159

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 + - + col2 col0 FROM tab1
----
-13
-22
-50

query I rowsort
SELECT + col1 + - ( - col1 ) + - 3 FROM tab2
----
131
151
99

query I rowsort
SELECT DISTINCT col1 + - + 88 * - - col2 + + - col1 * 29 AS col0 FROM tab0
----
-1468
-6404
-8740

query I rowsort
SELECT col1 * 63 + 91 FROM tab2
----
3304
4312
4942

query I rowsort
SELECT + 45 + + col1 * + - 41 FROM tab1
----
-160
-1882
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT ALL + COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL BETWEEN - + ( + - col0 ) * + 96 AND - 55 - + col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1007
SELECT ALL + COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL BETWEEN - + ( + - col0 ) * + 96 AND - 55 - + col1 )
----
0

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

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

query II rowsort
SELECT ALL - col1 * ( - ( 79 ) ) * - 75, col1 AS col2 FROM tab2
----
-302175
51
-396975
67
-456225
77

query II rowsort
SELECT DISTINCT + - 92, - 27 AS col0 FROM tab1 AS cor0
----
-92
-27

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

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

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

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

query I rowsort
SELECT - 82 * col2 - + - ( + - 4 ) * + 27 AS col1 FROM tab1 AS cor0
----
-4946
-5684
-7980

query I rowsort
SELECT DISTINCT - + 96 * - - 67 FROM tab0 AS cor0
----
-6432

query I rowsort
SELECT DISTINCT - col2 * + + 43 + 64 + + - 25 - - 0 / + 80 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT + COUNT( * ) * - + 99 AS col0 FROM tab1 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-1018
SELECT + COUNT ( * ) * - + 99 AS col0 FROM tab1 AS cor0
----
-297

onlyif mysql # aggregate syntax: 
query III rowsort label-1019
SELECT + COUNT( * ) col2, MAX( + col1 ) + 48 AS col0, + + 88 FROM tab2
----
3
125
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-1019
SELECT + COUNT ( * ) col2, MAX ( + col1 ) + 48 AS col0, + + 88 FROM tab2
----
3
125
88

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

query I rowsort
SELECT ALL - - col0 AS col0 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 76 * 31 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1023
SELECT 49, + MAX( ALL 47 ) * 15 * + 50 AS col2 FROM tab1 AS cor0
----
49
35250

skipif mysql # not compatible
query II rowsort label-1023
SELECT 49, + MAX ( ALL 47 ) * 15 * + 50 AS col2 FROM tab1 AS cor0
----
49
35250

onlyif mysql # DIV for integer division: 
query II rowsort label-1024
SELECT 53 AS col1, col1 + 2 DIV + ( 61 ) FROM tab1 cor0
----
53
14
53
47
53
5

skipif mysql # not compatible
query II rowsort label-1024
SELECT 53 AS col1, col1 + 2 / + ( 61 ) FROM tab1 cor0
----
53
14
53
47
53
5

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1026
SELECT + col1 * col0 DIV + 95 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 + - - col0 * + CAST( NULL AS SIGNED ) IS NOT NULL
----
24
51
52

skipif mysql # not compatible
query I rowsort label-1026
SELECT + col1 * col0 / + 95 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 + - - col0 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
24
51
52

query I rowsort
SELECT - 80 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

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

query I rowsort
SELECT + + 57 + col1 AS col0 FROM tab1 cor0
----
104
62
71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1030
SELECT DISTINCT - ( col1 ) DIV col0 * + CAST( - 9 AS SIGNED ) col1 FROM tab0 AS cor0
----
0
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1030
SELECT DISTINCT - ( col1 ) / col0 * + CAST ( - 9 AS INTEGER ) col1 FROM tab0 AS cor0
----
0
45

query II rowsort
SELECT + col1 + + col1 AS col1, - col2 AS col1 FROM tab1 AS cor0
----
10
-59
28
-96
94
-68

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

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

query I rowsort
SELECT - col1 * col2 + + + col2 + 57 FROM tab0 AS cor0
----
-143
-3703
57

query I rowsort
SELECT + 76 + col0 + col1 + col1 FROM tab0 AS cor0
----
175
205
253

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT col2 = + + col0
----
1
21
81

query II rowsort
SELECT + - 33 * col0 AS col0, col0 AS col1 FROM tab2 AS cor0
----
-1518
46
-2112
64
-2475
75

query II rowsort
SELECT 65, 12 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1038
SELECT - COUNT( * ) * - + COUNT( * ) col1, MAX( DISTINCT col1 ) FROM tab0 AS cor0
----
9
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1038
SELECT - COUNT ( * ) * - + COUNT ( * ) col1, MAX ( DISTINCT col1 ) FROM tab0 AS cor0
----
9
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT - - COUNT( DISTINCT + col2 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1039
SELECT - - COUNT ( DISTINCT + col2 ) FROM tab1 cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 66 BETWEEN NULL AND + - col1
----
64
77
40
75
67
58

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

query I rowsort
SELECT - 62 - + + col2 - + col0 FROM tab0
----
-124
-159
-258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1043
SELECT DISTINCT + col0 + - CAST( - col0 AS SIGNED ) FROM tab0
----
174
194
30

skipif mysql # not compatible
query I rowsort label-1043
SELECT DISTINCT + col0 + - CAST ( - col0 AS INTEGER ) FROM tab0
----
174
194
30

query I rowsort
SELECT + - col2 * + - 69 + 29 * - + col0 - 15 FROM tab1 AS cor0
----
1591
2038
5130

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT - COUNT( - col0 ) col0 FROM tab2
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT ALL SUM( ALL - - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT + 21 BETWEEN + col1 AND NULL
----
47

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL SUM ( ALL - - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT + 21 BETWEEN + col1 AND NULL
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT + - 83 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-1048
SELECT + - 83 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1049
SELECT + COUNT( ALL 19 ), + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-1049
SELECT + COUNT ( ALL 19 ), + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3
NULL

query I rowsort
SELECT ALL 63 * col1 * + - col1 AS col1 FROM tab2 AS cor0
----
-163863
-282807
-373527

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1051
SELECT DISTINCT - CAST( - col0 AS SIGNED ) * - 7 * col0 FROM tab1 AS cor0 WHERE + 61 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-1051
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * - 7 * col0 FROM tab1 AS cor0 WHERE + 61 NOT BETWEEN NULL AND NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1055
SELECT ALL + MAX( DISTINCT ( + col1 ) ) DIV COUNT( * ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL + MAX ( DISTINCT ( + col1 ) ) / COUNT ( * ) FROM tab0 AS cor0
----
27

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1057
SELECT ALL 80 + + COUNT( * ) DIV + CAST( - 74 AS SIGNED ) AS col1 FROM tab1 WHERE NOT - 79 IS NULL
----
80

skipif mysql # not compatible
query I rowsort label-1057
SELECT ALL 80 + + COUNT ( * ) / + CAST ( - 74 AS INTEGER ) AS col1 FROM tab1 WHERE NOT - 79 IS NULL
----
80

query I rowsort
SELECT ALL + col2 * + 24 FROM tab2
----
1392
552
960

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT 44 * - + 32 * + ( - + COUNT( * ) ) AS col2 FROM tab0
----
4224

skipif mysql # not compatible
query I rowsort label-1060
SELECT 44 * - + 32 * + ( - + COUNT ( * ) ) AS col2 FROM tab0
----
4224

query I rowsort
SELECT DISTINCT - 15 * + - col0 / + 28 + + col1 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT col2 + col1 - - + 14 + - col2 AS col2 FROM tab0 AS cor0
----
15
35
95

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 90 * + ( + col2 ) IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT ALL - 95 * + + 20 - - - COUNT( * ) FROM tab0 cor0
----
-1903

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL - 95 * + + 20 - - - COUNT ( * ) FROM tab0 cor0
----
-1903

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1067
SELECT DISTINCT - + 37 + - CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-105
-133
-96

skipif mysql # not compatible
query I rowsort label-1067
SELECT DISTINCT - + 37 + - CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-105
-133
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT + - MAX( ALL - 70 ) + - 42 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-1068
SELECT + - MAX ( ALL - 70 ) + - 42 FROM tab0 AS cor0
----
28

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

skipif mysql # not compatible
query I rowsort label-1069
SELECT DISTINCT COUNT ( * ) * + ( 16 ) FROM tab0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1070
SELECT col2 + CAST( + col1 AS SIGNED ) * - 35 AS col2 FROM tab0
----
-2788
-725
64

skipif mysql # not compatible
query I rowsort label-1070
SELECT col2 + CAST ( + col1 AS INTEGER ) * - 35 AS col2 FROM tab0
----
-2788
-725
64

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 WHERE NOT col1 * 41 <= - col2
----
51
85
91

query I rowsort
SELECT - col2 + - col1 * - col2 AS col2 FROM tab1
----
1248
236
3128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1073
SELECT col2 + - CAST( 93 AS SIGNED ) AS col0 FROM tab0
----
-46
-83
6

skipif mysql # not compatible
query I rowsort label-1073
SELECT col2 + - CAST ( 93 AS INTEGER ) AS col0 FROM tab0
----
-46
-83
6

query I rowsort
SELECT col0 * - 29 * - col0 + col0 + - + col1 AS col0 FROM tab2
----
118771
163133
61359

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1075
SELECT COUNT( - CAST( 99 AS SIGNED ) ) + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1075
SELECT COUNT ( - CAST ( 99 AS INTEGER ) ) + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1076
SELECT DISTINCT col2 * 48 + + CAST( col1 AS SIGNED ) AS col0 FROM tab1
----
2837
3311
4622

skipif mysql # not compatible
query I rowsort label-1076
SELECT DISTINCT col2 * 48 + + CAST ( col1 AS INTEGER ) AS col0 FROM tab1
----
2837
3311
4622

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1077
SELECT DISTINCT - ( + - col2 ) - - - CAST( + ( - col1 ) AS SIGNED ) AS col1 FROM tab0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-1077
SELECT DISTINCT - ( + - col2 ) - - - CAST ( + ( - col1 ) AS INTEGER ) AS col1 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT + + MAX( DISTINCT - 23 ) FROM tab1 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-1078
SELECT + + MAX ( DISTINCT - 23 ) FROM tab1 cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT + - ( - - MIN( ALL 95 ) ) FROM tab0 cor0
----
-95

skipif mysql # not compatible
query I rowsort label-1079
SELECT + - ( - - MIN ( ALL 95 ) ) FROM tab0 cor0
----
-95

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

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

query II rowsort
SELECT - + col0 * + 32, col0 FROM tab1 AS cor0
----
-1632
51
-2720
85
-2912
91

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

skipif mysql # not compatible
query I rowsort label-1082
SELECT DISTINCT COUNT ( * ) * - + 72 FROM tab1
----
-216

query I rowsort
SELECT - ( 27 ) AS col1 FROM tab1
----
-27
-27
-27

query I rowsort
SELECT - 4 * col2 FROM tab2
----
-160
-232
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, - 72 * + - col0 * col0 + - - 59 col2 FROM tab0
----
10
545027
47
16259
99
677507

query II rowsort
SELECT - + col2 AS col2, + 54 FROM tab0 AS cor0
----
-10
54
-47
54
-99
54

query II rowsort
SELECT + col2 * - - col1 + col2 AS col2, + col2 * - col0 AS col2 FROM tab2 AS cor0
----
1196
-1058
3120
-2560
3944
-4350

query I rowsort
SELECT - - 98 + - - ( 82 ) + - col0 AS col2 FROM tab0 cor0
----
165
83
93

query I rowsort
SELECT DISTINCT ( - 32 ) AS col2 FROM tab1 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT ALL - SUM( DISTINCT + - col0 ) * 83 FROM tab0 WHERE NULL IS NULL
----
16517

skipif mysql # not compatible
query I rowsort label-1090
SELECT ALL - SUM ( DISTINCT + - col0 ) * 83 FROM tab0 WHERE NULL IS NULL
----
16517

query I rowsort
SELECT DISTINCT + col2 - - 84 + - col2 AS col2 FROM tab2 WHERE NOT NULL <> - 82
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 * - - col1 - 34 < NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1093
SELECT DISTINCT COUNT ( * ) * - 59 + - CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL

query I rowsort
SELECT + 92 * 15 - + 81 AS col2 FROM tab2 AS cor0
----
1299
1299
1299

query I rowsort
SELECT - col1 * - + 53 AS col0 FROM tab0 AS cor0
----
1113
4293
53

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1098
SELECT DISTINCT col0 + + col0 DIV 75 FROM tab0 AS cor0
----
15
88
98

skipif mysql # not compatible
query I rowsort label-1098
SELECT DISTINCT col0 + + col0 / 75 FROM tab0 AS cor0
----
15
88
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT ALL + COUNT( * ) + + 23 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
26

skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL + COUNT ( * ) + + 23 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
26

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

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

query I rowsort
SELECT 90 * + - 66 * - 35 + col1 * + col1 FROM tab0 cor0
----
207901
208341
214461

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

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

query I rowsort
SELECT ALL - col0 * - col1 - - - 8 FROM tab0 AS cor0
----
1207
1819
89

query I rowsort
SELECT + col0 * 71 * + - col2 FROM tab0 AS cor0
----
-50055
-61770
-681813

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1105
SELECT col0 * + CAST( + 77 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1155
6699
7469

skipif mysql # not compatible
query I rowsort label-1105
SELECT col0 * + CAST ( + 77 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1155
6699
7469

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

query I rowsort
SELECT 97 - ( - + col1 ) + + col1 * 81 FROM tab0
----
179
1819
6739

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

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

query II rowsort
SELECT DISTINCT 69 + + - col1, ( - col1 ) * + col1 + + col1 AS col0 FROM tab1
----
22
-2162
55
-182
64
-20

onlyif mysql # DIV for integer division: 
query II rowsort label-1110
SELECT DISTINCT 60, 84 + 49 + + col2 - 41 * + - col2 * col2 DIV ( - col2 ) * - col2 + - 38 AS col2 FROM tab1
----
60
142875
60
189747
60
378047

skipif mysql # not compatible
query II rowsort label-1110
SELECT DISTINCT 60, 84 + 49 + + col2 - 41 * + - col2 * col2 / ( - col2 ) * - col2 + - 38 AS col2 FROM tab1
----
60
142875
60
189747
60
378047

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

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

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

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

query I rowsort
SELECT - col2 * 9 AS col0 FROM tab0
----
-423
-891
-90

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 93, ( + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT SUM( + 26 ) AS col1 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-1118
SELECT SUM ( + 26 ) AS col1 FROM tab1
----
78

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 37 col0 FROM tab2 AS cor0
----
27
38
9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 56 * ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 * - - col2 * - - 44 NOT BETWEEN NULL AND ( + - 36 - - + 25 * - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1122
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 * - - col2 * - - 44 NOT BETWEEN NULL AND ( + - 36 - - + 25 * - col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT ALL MAX( col0 ) * COUNT( * ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-1123
SELECT ALL MAX ( col0 ) * COUNT ( * ) FROM tab1
----
273

query I rowsort
SELECT DISTINCT col1 * + 34 FROM tab1
----
1598
170
476

query III rowsort
SELECT * FROM tab0 WHERE NOT - 23 >= col0 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT - col2 * + 75 FROM tab1 WHERE + 86 + col1 / col2 = ( col0 )
----

query I rowsort
SELECT ALL + 8 * - col1 FROM tab2
----
-408
-536
-616

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1129
SELECT - SUM( 11 ) DIV 18 AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1129
SELECT - SUM ( 11 ) / 18 AS col2 FROM tab2
----
-1

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

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

query I rowsort
SELECT + 25 - col0 AS col0 FROM tab1
----
-26
-60
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT + MIN( DISTINCT + col2 ) - - COUNT( DISTINCT - col2 + - 36 ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-1132
SELECT + MIN ( DISTINCT + col2 ) - - COUNT ( DISTINCT - col2 + - 36 ) FROM tab0
----
13

query I rowsort
SELECT DISTINCT - ( + col1 ) + col2 AS col2 FROM tab2
----
-28
-37
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-1134
SELECT + 97 DIV - 89 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1134
SELECT + 97 / - 89 AS col0 FROM tab0
----
-1
-1
-1

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

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

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

query I rowsort
SELECT col1 + 28 AS col2 FROM tab2 WHERE 97 IS NULL
----

query I rowsort
SELECT DISTINCT 43 + + 99 FROM tab1
----
142

query I rowsort
SELECT DISTINCT - col2 * + 51 + - 84 FROM tab2
----
-1257
-2124
-3042

onlyif mysql # DIV for integer division: 
query I rowsort label-1140
SELECT DISTINCT - 20 DIV col0 AS col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1140
SELECT DISTINCT - 20 / col0 AS col0 FROM tab0
----
-1
0

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

query I rowsort
SELECT col1 * - 47 AS col0 FROM tab2
----
-2397
-3149
-3619

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

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

query I rowsort
SELECT - col1 + 49 FROM tab2
----
-18
-2
-28

query I rowsort
SELECT col0 + + 63 FROM tab0
----
150
160
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT + MAX( + 33 ) FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-1147
SELECT + MAX ( + 33 ) FROM tab2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT DISTINCT - MIN( - col2 ) * - MIN( - ( + col1 ) * - col0 ) + + 43 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-40757

skipif mysql # not compatible
query I rowsort label-1148
SELECT DISTINCT - MIN ( - col2 ) * - MIN ( - ( + col1 ) * - col0 ) + + 43 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-40757

query I rowsort
SELECT DISTINCT 90 FROM tab1 AS cor0 WHERE NULL >= col0
----

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

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

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

query I rowsort
SELECT col0 * 61 AS col1 FROM tab1
----
3111
5185
5551

query I rowsort
SELECT 79 - col2 FROM tab0 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE NOT NULL <= ( NULL )
----

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

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

query I rowsort
SELECT DISTINCT 64 * - col1 AS col2 FROM tab0 cor0
----
-1344
-5184
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1158
SELECT DISTINCT ( + MIN( ALL col1 ) ) DIV + COUNT( * ) AS col0 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-1158
SELECT DISTINCT ( + MIN ( ALL col1 ) ) / + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
17

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 14 * + 43 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col1 * 51 + 81 FROM tab0 cor0
----
-4050
-990
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT + COUNT( * ) + 96 FROM tab1 cor0
----
99

skipif mysql # not compatible
query I rowsort label-1162
SELECT + COUNT ( * ) + 96 FROM tab1 cor0
----
99

query I rowsort
SELECT ALL + col2 + - 41 AS col0 FROM tab0 AS cor0
----
-31
58
6

query I rowsort
SELECT 92 + col1 AS col0 FROM tab0 AS cor0
----
113
173
93

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

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

query I rowsort
SELECT ALL col0 + + 6 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
103
21
93

query I rowsort
SELECT + col1 + 51 FROM tab2 AS cor0
----
102
118
128

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT + ( 56 ) * 36 + + COUNT( * ) FROM tab1 AS cor0
----
2019

skipif mysql # not compatible
query I rowsort label-1168
SELECT + ( 56 ) * 36 + + COUNT ( * ) FROM tab1 AS cor0
----
2019

query I rowsort
SELECT ALL col2 + + col2 + - col1 * 79 AS col2 FROM tab1
----
-277
-3577
-914

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1171
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE - col1 BETWEEN ( col1 ) AND CAST( NULL AS SIGNED ) * + col2
----
0

skipif mysql # not compatible
query I rowsort label-1171
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE - col1 BETWEEN ( col1 ) AND CAST ( NULL AS INTEGER ) * + col2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT ALL - 41 * + SUM( col1 ) + - SUM( DISTINCT + 65 ) AS col1 FROM tab2
----
-8060

skipif mysql # not compatible
query I rowsort label-1173
SELECT ALL - 41 * + SUM ( col1 ) + - SUM ( DISTINCT + 65 ) AS col1 FROM tab2
----
-8060

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT SUM( ALL - - 90 ) FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-1174
SELECT SUM ( ALL - - 90 ) FROM tab0
----
270

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 70 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

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

skipif mysql # not compatible
query I rowsort label-1178
SELECT DISTINCT - COUNT ( * ) + - MIN ( DISTINCT - col1 ) AS col2 FROM tab0
----
78

query II rowsort
SELECT 38 AS col0, - col1 - col1 AS col1 FROM tab0 AS cor0
----
38
-162
38
-2
38
-42

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

query I rowsort
SELECT DISTINCT - col0 * - - col0 AS col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

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

query I rowsort
SELECT DISTINCT + 49 + + col0 FROM tab2 AS cor0 WHERE ( + col2 * 93 ) < NULL OR NOT NULL IS NULL
----

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

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

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

query I rowsort
SELECT ALL col2 * + 69 FROM tab0 AS cor0
----
3243
6831
690

query I rowsort
SELECT ALL + ( col0 ) + col2 * 15 AS col2 FROM tab0 AS cor0 WHERE NULL <> - 42
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1189
SELECT ALL - col2 AS col2, col2 DIV - col0 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

skipif mysql # not compatible
query II rowsort label-1189
SELECT ALL - col2 AS col2, col2 / - col0 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT DISTINCT MAX( ALL - + 20 ) FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-1190
SELECT DISTINCT MAX ( ALL - + 20 ) FROM tab1
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1191
SELECT col2 AS col2 FROM tab1 WHERE NOT + - CAST( NULL AS SIGNED ) * + - col2 + 6 * - col2 IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1191
SELECT col2 AS col2 FROM tab1 WHERE NOT + - CAST ( NULL AS INTEGER ) * + - col2 + 6 * - col2 IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL - 40 * - - col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-2040
-2680
-3080

query I rowsort
SELECT - col2 * - - 36 FROM tab2
----
-1440
-2088
-828

query II rowsort
SELECT - col2 * col2 AS col0, - ( col1 ) * 20 FROM tab2
----
-1600
-1540
-3364
-1340
-529
-1020

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

query II rowsort
SELECT ALL col2 * + - 0, - 59 + + - col1 + col2 AS col2 FROM tab0
----
0
-70
0
-93
0
39

query I rowsort
SELECT - 61 * + + 39 * - col1 FROM tab2
----
121329
159393
183183

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT ( - MAX( + - col1 ) ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-1198
SELECT ( - MAX ( + - col1 ) ) FROM tab1 cor0
----
5

query I rowsort
SELECT 84 AS col2 FROM tab2 AS cor0 WHERE NOT ( 96 / - 86 + - + 62 + col0 / + 60 ) < ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1200
SELECT ALL - - 98 DIV + col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL - - 98 / + col1 FROM tab2 AS cor0
----
1
1
1

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

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 67 * col0 * + + col1 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT ALL 82 + - MAX( DISTINCT - col1 ) FROM tab2 AS cor0
----
133

skipif mysql # not compatible
query I rowsort label-1205
SELECT ALL 82 + - MAX ( DISTINCT - col1 ) FROM tab2 AS cor0
----
133

query I rowsort
SELECT DISTINCT + col2 * - 26 * - + col2 AS col0 FROM tab2
----
13754
41600
87464

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1210
SELECT ALL - 70 DIV + 98 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1210
SELECT ALL - 70 / + 98 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1211
SELECT ALL - col0 DIV + 36 FROM tab0 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL - col0 / + 36 FROM tab0 AS cor0
----
-2
-2
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IN ( - 16 )
----
0

skipif mysql # not compatible
query I rowsort label-1213
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IN ( - 16 )
----
0

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

query I rowsort
SELECT - col1 FROM tab0 WHERE ( col2 ) IS NOT NULL
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-1216
SELECT ALL - col0 + col1 DIV col1 AS col2 FROM tab2
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-1216
SELECT ALL - col0 + col1 / col1 AS col2 FROM tab2
----
-45
-63
-74

query I rowsort
SELECT col0 * - 64 + - col0 FROM tab0
----
-5655
-6305
-975

query I rowsort
SELECT DISTINCT 66 FROM tab0 WHERE NOT + 10 BETWEEN + - col0 AND + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1219
SELECT + 82 * + col1 + + 1 + 63 + + - col2 * - col1 + - 46 DIV - col0 col0 FROM tab2
----
5420
9444
9458

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1219
SELECT + 82 * + col1 + + 1 + 63 + + - col2 * - col1 + - 46 / - col0 col0 FROM tab2
----
5420
9444
9458

query I rowsort
SELECT ALL - col1 * + col1 + - col2 * - 24 AS col2 FROM tab2 WHERE 96 + - ( - - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1221
SELECT MAX( - 75 ) AS col0 FROM tab1, tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-1221
SELECT MAX ( - 75 ) AS col0 FROM tab1, tab1 AS cor0
----
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT COUNT( * ) + + MIN( DISTINCT - 23 ) FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-1223
SELECT COUNT ( * ) + + MIN ( DISTINCT - 23 ) FROM tab2
----
-20

query I rowsort
SELECT DISTINCT + 2 + - + col2 AS col0 FROM tab0
----
-45
-8
-97

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE 64 IS NULL
----

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

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

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

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

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

query II rowsort
SELECT col2 * - + col2 AS col2, ( + - col2 ) AS col2 FROM tab1
----
-3481
-59
-4624
-68
-9216
-96

query I rowsort
SELECT - 70 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT 80 * 98 - COUNT( * ) FROM tab1
----
7837

skipif mysql # not compatible
query I rowsort label-1232
SELECT 80 * 98 - COUNT ( * ) FROM tab1
----
7837

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1235
SELECT 66 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT ( ( - 47 * - 13 * + col1 ) NOT IN ( 86 ) )
----

skipif mysql # not compatible
query I rowsort label-1235
SELECT 66 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT ( ( - 47 * - 13 * + col1 ) NOT IN ( 86 ) )
----

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

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

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

query II rowsort
SELECT ALL - + ( 58 ), 73 AS col0 FROM tab0 AS cor0
----
-58
73
-58
73
-58
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT - MIN( DISTINCT - 73 ) FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-1240
SELECT - MIN ( DISTINCT - 73 ) FROM tab1 AS cor0
----
73

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col1 > + - 56
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT + + MAX( - col1 ) * + - 92 * + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-1242
SELECT + + MAX ( - col1 ) * + - 92 * + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
276

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1244
SELECT DISTINCT + COUNT( * ) AS col1, - MIN( ALL + - 55 ) FROM tab1
----
3
55

skipif mysql # not compatible
query II rowsort label-1244
SELECT DISTINCT + COUNT ( * ) AS col1, - MIN ( ALL + - 55 ) FROM tab1
----
3
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT + SUM( DISTINCT col2 ) FROM tab1 WHERE NOT + - col1 * + ( - - 83 ) + col0 + - - col1 * col1 * col2 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1245
SELECT + SUM ( DISTINCT col2 ) FROM tab1 WHERE NOT + - col1 * + ( - - 83 ) + col0 + - - col1 * col1 * col2 < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT ALL 4 * MAX( 73 ) * COUNT( * ) col1 FROM tab0
----
876

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1246
SELECT ALL 4 * MAX ( 73 ) * COUNT ( * ) col1 FROM tab0
----
876

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1247
SELECT DISTINCT - CAST( - col2 AS SIGNED ) DIV - - col1 AS col0, + 0 + 8 + - - CAST( NULL AS SIGNED ) * + + ( - 71 ) * 24 FROM tab1
----
1
NULL
11
NULL
6
NULL

skipif mysql # not compatible
query II rowsort label-1247
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) / - - col1 AS col0, + 0 + 8 + - - CAST ( NULL AS INTEGER ) * + + ( - 71 ) * 24 FROM tab1
----
1
NULL
11
NULL
6
NULL

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

query I rowsort
SELECT + + col1 * - - 28 FROM tab2 AS cor0
----
1428
1876
2156

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

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

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL + SUM ( DISTINCT + col1 ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
198

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

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

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

query II rowsort
SELECT DISTINCT ( + + col2 ), + col2 AS col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT ALL COUNT( * ) col1 FROM tab1 AS cor0 WHERE NOT 89 > NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1255
SELECT ALL COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT 89 > NULL
----
0

query I rowsort
SELECT - ( - col1 ) + - col2 + col1 + 3 AS col1 FROM tab0 AS cor0
----
-94
118
35

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1259
SELECT DISTINCT + + col0 - + + CAST( + 35 AS SIGNED ) FROM tab0 AS cor0
----
-20
52
62

skipif mysql # not compatible
query I rowsort label-1259
SELECT DISTINCT + + col0 - + + CAST ( + 35 AS INTEGER ) FROM tab0 AS cor0
----
-20
52
62

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1260
SELECT - 68 + - ( - + COUNT ( * ) ) col1 FROM tab0 AS cor0
----
-65

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col1 >= - + 59 * + + 10 * - col2 * + - col0 + - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1262
SELECT DISTINCT COUNT( * ) DIV + CAST( + 97 AS SIGNED ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1262
SELECT DISTINCT COUNT ( * ) / + CAST ( + 97 AS INTEGER ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT - + 12 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1264
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( CAST( NULL AS SIGNED ) + + + 0 ) BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-1264
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( CAST ( NULL AS INTEGER ) + + + 0 ) BETWEEN ( NULL ) AND NULL
----

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

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

skipif mysql # not compatible
query II rowsort label-1266
SELECT ALL - 25 AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-25
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 67 + + 39 / 21 * + ( + col0 ) + - 30 + + 74 * - 71 = + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

query I rowsort
SELECT ALL - - col1 * + col2 * + 13 FROM tab0 WHERE NOT - ( + + 95 ) NOT BETWEEN col1 AND NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT + - COUNT( * ) - - 54 * - 1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-63

skipif mysql # not compatible
query I rowsort label-1273
SELECT + - COUNT ( * ) - - 54 * - 1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT ALL + MIN( + - 46 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-46

skipif mysql # not compatible
query I rowsort label-1274
SELECT ALL + MIN ( + - 46 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-46

query I rowsort
SELECT 65 * - + col1 FROM tab0
----
-1365
-5265
-65

query I rowsort
SELECT - ( + - col1 ) * col1 - 57 AS col0 FROM tab0 AS cor0
----
-56
384
6504

query I rowsort
SELECT + - ( + - 41 ) FROM tab1 cor0
----
41
41
41

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

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

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

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

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

query III rowsort
SELECT DISTINCT + - 82 AS col2, + 2 + - + ( col2 ), + ( + 33 ) AS col0 FROM tab1 AS cor0
----
9 values hashing to 44d713b0f7fa2bc8514ade9e9a5ad4e0

query I rowsort
SELECT ALL col1 + - 79 FROM tab0 cor0
----
-58
-78
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1284
SELECT - + 82 + - - col0 + + - 31 * + col1 * + col1 - col2 - - CAST( + + 96 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-13580
-19
-203409

skipif mysql # not compatible
query I rowsort label-1284
SELECT - + 82 + - - col0 + + - 31 * + col1 * + col1 - col2 - - CAST ( + + 96 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-13580
-19
-203409

query II rowsort
SELECT DISTINCT + + 88 / + - col2, + col2 + + col0 - col0 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 < NULL
----

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

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

query II rowsort
SELECT ALL col2 + - 69 + - 1 * 84, + 38 + - + col1 AS col1 FROM tab0
----
-106
-43
-143
17
-54
37

query III rowsort
SELECT * FROM tab0 WHERE 30 IN ( - 88 - + - col0, 39 / + + 14 - 98 )
----

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

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

query I rowsort
SELECT DISTINCT col0 * - col2 + 51 FROM tab0
----
-654
-819
-9552

onlyif mysql # DIV for integer division: 
query I rowsort label-1292
SELECT DISTINCT - + col1 - - 76 DIV + col2 col2 FROM tab1 AS cor0
----
-14
-4
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1292
SELECT DISTINCT - + col1 - - 76 / + col2 col2 FROM tab1 AS cor0
----
-14
-4
-46

query I rowsort
SELECT 23 * + 25 AS col1 FROM tab0
----
575
575
575

query II rowsort
SELECT + - 13 AS col0, + ( - - col0 ) FROM tab0 AS cor0
----
-13
15
-13
87
-13
97

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1298
SELECT + + col2 DIV col2 * + 41 AS col2 FROM tab0 AS cor0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-1298
SELECT + + col2 / col2 * + 41 AS col2 FROM tab0 AS cor0
----
41
41
41

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT - 16 = NULL
----

query II rowsort
SELECT + 97 AS col2, col2 FROM tab1 AS cor0
----
97
59
97
68
97
96

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

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

skipif mysql # not compatible
query I rowsort label-1302
SELECT DISTINCT + COUNT ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
0

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

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

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

query II rowsort
SELECT ALL + col0, 95 FROM tab1
----
51
95
85
95
91
95

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

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

query I rowsort
SELECT ALL - col0 + - + 30 * - col2 FROM tab0
----
1395
213
2873

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

query I rowsort
SELECT ALL + col2 + - 41 - + 31 * col1 + + 63 + - col0 FROM tab1
----
-1458
-159
-367

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT DISTINCT + COUNT( * ) + 74 AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-1311
SELECT DISTINCT + COUNT ( * ) + 74 AS col2 FROM tab2 AS cor0
----
77

query I rowsort
SELECT + 43 * - + 87 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d82a3be6a7b0ccd495d255fa9289974f

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1314
SELECT ALL - CAST ( NULL AS INTEGER ) - - COUNT ( * ) + AVG ( - 61 ) + 19 col1 FROM tab1 AS cor0
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT MIN( DISTINCT - col1 ) * - SUM( ALL + - col0 ) + + + MAX( ALL - col0 ) * + SUM( ALL - - col2 ) FROM tab2 AS cor0
----
-19811

skipif mysql # not compatible
query I rowsort label-1317
SELECT MIN ( DISTINCT - col1 ) * - SUM ( ALL + - col0 ) + + + MAX ( ALL - col0 ) * + SUM ( ALL - - col2 ) FROM tab2 AS cor0
----
-19811

query II rowsort
SELECT ALL - col1 * - + col1, 15 + - col1 AS col1 FROM tab2 AS cor0
----
2601
-36
4489
-52
5929
-62

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1320
SELECT + AVG ( ( + col0 ) ) FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) + - col2 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1320
SELECT + AVG ( ( + col0 ) ) FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - col2 <= NULL
----
NULL

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

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

query I rowsort
SELECT ALL + + col1 + + col2 FROM tab0 WHERE NOT ( NOT NULL = col1 )
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1325
SELECT + CAST( + - ( - + 49 ) AS SIGNED ) * 24 - col2 FROM tab1
----
1080
1108
1117

skipif mysql # not compatible
query I rowsort label-1325
SELECT + CAST ( + - ( - + 49 ) AS INTEGER ) * 24 - col2 FROM tab1
----
1080
1108
1117

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

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT NULL >= col2 + - col1 + + 7 + 58 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT ALL 96 + + MAX( ALL + + ( - col0 ) ) AS col1 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL 96 + + MAX ( ALL + + ( - col0 ) ) AS col1 FROM tab1
----
45

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

skipif mysql # not compatible
query I rowsort label-1329
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NULL BETWEEN ( NULL ) AND + + 30 * - + col0 * + - col0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < NULL OR NOT ( - col2 ) <= - col1 * + col1
----
51
14
96
91
47
68

query II rowsort
SELECT 11 AS col2, + col1 + - 19 AS col2 FROM tab0 AS cor0
----
11
-18
11
2
11
62

onlyif mysql # aggregate syntax: 
query II rowsort label-1332
SELECT + ( COUNT( * ) ) * COUNT( * ) col0, + COUNT( * ) FROM tab2 AS cor0
----
9
3

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 > + col1 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT - 26 IS NOT NULL
----

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

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

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

query I rowsort
SELECT DISTINCT - ( + 76 ) * + ( - col2 ) FROM tab0 AS cor0
----
3572
7524
760

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL BETWEEN - + col2 AND + 46 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1339
SELECT 54 DIV col1 * 52 * col1 AS col2 FROM tab0 AS cor0
----
0
2184
2808

skipif mysql # not compatible
query I rowsort label-1339
SELECT 54 / col1 * 52 * col1 AS col2 FROM tab0 AS cor0
----
0
2184
2808

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

query I rowsort
SELECT ALL + col2 * + 28 AS col2 FROM tab2 AS cor0
----
1120
1624
644

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL = col1 )
----

query I rowsort
SELECT col1 * + 70 AS col0 FROM tab1
----
3290
350
980

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT ALL + 57 + SUM( - col0 ) * - + COUNT( * ) col2 FROM tab1
----
738

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1344
SELECT ALL + 57 + SUM ( - col0 ) * - + COUNT ( * ) col2 FROM tab1
----
738

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1345
SELECT ALL * FROM tab2 WHERE NOT col1 * - col2 * + CAST( NULL AS DECIMAL ) - + + col1 <> + + 14 + - col1 * + 66 + + 55
----

skipif mysql # not compatible
query III rowsort label-1345
SELECT ALL * FROM tab2 WHERE NOT col1 * - col2 * + CAST ( NULL AS REAL ) - + + col1 <> + + 14 + - col1 * + 66 + + 55
----

query I rowsort
SELECT DISTINCT 87 + - col2 AS col0 FROM tab0
----
-12
40
77

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

query I rowsort
SELECT col0 + + - col1 * + col2 FROM tab2
----
-1127
-3016
-3811

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1349
SELECT ALL + 45, + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
45
NULL
45
NULL
45
NULL

skipif mysql # not compatible
query II rowsort label-1349
SELECT ALL + 45, + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
45
NULL
45
NULL
45
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT + SUM( col1 ) + - SUM( ALL + + col2 ) AS col0 FROM tab1
----
-157

skipif mysql # not compatible
query I rowsort label-1350
SELECT + SUM ( col1 ) + - SUM ( ALL + + col2 ) AS col0 FROM tab1
----
-157

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

query II rowsort
SELECT + 27, col2 + col1 AS col1 FROM tab2
----
27
117
27
125
27
74

onlyif mysql # DIV for integer division: 
query I rowsort label-1353
SELECT + col1 DIV ( + col0 ) FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-1353
SELECT + col1 / ( + col0 ) FROM tab0
----
0
0
5

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

query I rowsort
SELECT DISTINCT col2 * + col0 + col2 * - col2 * + col1 + + + 67 + col0 FROM tab0 AS cor0
----
-1076
-178142
-34

query I rowsort
SELECT ALL 62 + + col1 AS col2 FROM tab0 AS cor0
----
143
63
83

query I rowsort
SELECT ALL 70 - - + 29 AS col1 FROM tab2 AS cor0
----
99
99
99

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 13 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT COUNT( * ) + + 70 * 56 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
3920

skipif mysql # not compatible
query I rowsort label-1362
SELECT COUNT ( * ) + + 70 * 56 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
3920

query I rowsort
SELECT - col0 * 16 + 13 AS col2 FROM tab1
----
-1347
-1443
-803

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT ALL + - ( - COUNT( ALL ( + - col1 ) ) ) FROM tab0 WHERE NOT col1 / - + col1 + + - col1 * + 79 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1364
SELECT ALL + - ( - COUNT ( ALL ( + - col1 ) ) ) FROM tab0 WHERE NOT col1 / - + col1 + + - col1 * + 79 IS NOT NULL
----
0

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

query I rowsort
SELECT + col2 * - 43 * + - col2 AS col1 FROM tab1
----
149683
198832
396288

query I rowsort
SELECT ALL - col0 * 92 FROM tab0 cor0
----
-1380
-8004
-8924

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - - 84
----
0

skipif mysql # not compatible
query I rowsort label-1370
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - - 84
----
0

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 21 * - col0 < col2
----

query I rowsort
SELECT col1 + - 85 + + col0 FROM tab1 AS cor0
----
-20
5
53

query II rowsort
SELECT DISTINCT + col2 + + 64 AS col0, + 34 AS col0 FROM tab0
----
111
34
163
34
74
34

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

skipif mysql # not compatible
query I rowsort label-1376
SELECT DISTINCT + COUNT ( * ) + COUNT ( + col1 ) FROM tab2
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 91 + + 32 col0 FROM tab2
----
-59

query I rowsort
SELECT ALL + + col2 AS col2 FROM tab0 WHERE ( + col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1379
SELECT ALL - col0 DIV col1 * + col2 DIV - + 32, col0 FROM tab2 AS cor0
----
0
46
0
64
1
75

skipif mysql # not compatible
query II rowsort label-1379
SELECT ALL - col0 / col1 * + col2 / - + 32, col0 FROM tab2 AS cor0
----
0
46
0
64
1
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1380
SELECT - 93 DIV - col2 AS col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1380
SELECT - 93 / - col2 AS col1 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT col0 * col2 + - - col2 - - col1 + + - col0 FROM tab1 cor0
----
4955
4994
6212

query I rowsort
SELECT - col1 + + col1 * - col2 + col0 + + col2 + col2 FROM tab2 AS cor0
----
-1132
-3013
-3762

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1384
SELECT + CAST( COUNT( * ) AS SIGNED ) FROM tab2 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1384
SELECT + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 WHERE NULL <> NULL
----
0

query I rowsort
SELECT 93 + + - col0 AS col1 FROM tab0
----
-4
6
78

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

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

query I rowsort
SELECT DISTINCT - col2 * - col2 + + col1 AS col1 FROM tab1 AS cor0
----
3486
4671
9230

onlyif mysql # DIV for integer division: 
query I rowsort label-1388
SELECT col1 DIV col1 + - col2 - + 58 * - + col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
5037
5528
824

skipif mysql # not compatible
query I rowsort label-1388
SELECT col1 / col1 + - col2 - + 58 * - + col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
5037
5528
824

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

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

query I rowsort
SELECT - 15 * + + col0 AS col0 FROM tab1 AS cor0
----
-1275
-1365
-765

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + 73 <> - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1394
SELECT DISTINCT + 64, SUM( ALL + col2 ) AS col1 FROM tab1
----
64
223

skipif mysql # not compatible
query II rowsort label-1394
SELECT DISTINCT + 64, SUM ( ALL + col2 ) AS col1 FROM tab1
----
64
223

onlyif mysql # DIV for integer division: 
query I rowsort label-1395
SELECT + col0 DIV + + ( + 64 ) AS col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1395
SELECT + col0 / + + ( + 64 ) AS col2 FROM tab1
----
0
1
1

query I rowsort
SELECT DISTINCT + 93 * + col1 + + col0 FROM tab0 WHERE - + col1 + + col2 + + + 46 * - col0 IS NOT NULL
----
190
2040
7548

onlyif mysql # DIV for integer division: 
query II rowsort label-1397
SELECT col1, 59 DIV + col1 FROM tab2
----
51
1
67
0
77
0

skipif mysql # not compatible
query II rowsort label-1397
SELECT col1, 59 / + col1 FROM tab2
----
51
1
67
0
77
0

query I rowsort
SELECT ALL - col1 * 75 AS col0 FROM tab0
----
-1575
-6075
-75

query II rowsort
SELECT ALL - col1 AS col0, - ( - col2 ) AS col0 FROM tab2 cor0 WHERE NOT col0 BETWEEN - 66 * col2 AND + - col0
----
-51
23
-67
58
-77
40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT + + ( + MIN( DISTINCT - col1 ) ) FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1401
SELECT + + ( + MIN ( DISTINCT - col1 ) ) FROM tab0 cor0
----
-81

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1405
SELECT DISTINCT 61 AS col0, + SUM( + col2 ) + - 2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
61
NULL

skipif mysql # not compatible
query II rowsort label-1405
SELECT DISTINCT 61 AS col0, + SUM ( + col2 ) + - 2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
61
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT 60 * COUNT( * ) FROM tab1, tab0 AS cor0
----
540

skipif mysql # not compatible
query I rowsort label-1406
SELECT 60 * COUNT ( * ) FROM tab1, tab0 AS cor0
----
540

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

query I rowsort
SELECT - col2 * + + col0 AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 < - - col1 / + ( - - 94 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - + 47 col1 FROM tab2
----
20
30
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 * 28 + + col1 col1 FROM tab0
----
2661
2681
2741

onlyif mysql # aggregate syntax: 
query II rowsort label-1413
SELECT - ( + 99 ) + - - COUNT( * ) col1, - COUNT( * ) * + 24 AS col2 FROM tab2
----
-96
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1413
SELECT - ( + 99 ) + - - COUNT ( * ) col1, - COUNT ( * ) * + 24 AS col2 FROM tab2
----
-96
-72

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col1 >= NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT DISTINCT MIN( - col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1420
SELECT DISTINCT MIN ( - col1 ) AS col1 FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1421
SELECT DISTINCT * FROM tab0 WHERE NOT col0 + - 53 - - col0 * + + col2 + - + 87 * - CAST( NULL AS SIGNED ) * + 27 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1421
SELECT DISTINCT * FROM tab0 WHERE NOT col0 + - 53 - - col0 * + + col2 + - + 87 * - CAST ( NULL AS INTEGER ) * + 27 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL 0 + + - col1 / - + 81 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 48 - - 34, 39 * + col0 * - 47 - col1 col2 FROM tab2 cor0
----
82
-117389
82
-137542
82
-84369

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

query I rowsort
SELECT DISTINCT col2 * - 64 AS col1 FROM tab0 cor0
----
-3008
-6336
-640

query I rowsort
SELECT DISTINCT + - col0 * + - col2 * - col2 AS col0 FROM tab0 AS cor0
----
-33135
-8700
-950697

query I rowsort
SELECT DISTINCT ( - 62 ) FROM tab2 AS cor0
----
-62

query I rowsort
SELECT + - ( + col2 ) * - 96 FROM tab0 AS cor0
----
4512
9504
960

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NOT ( col0 IN ( - col2 ) )
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT DISTINCT COUNT( - 89 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1430
SELECT DISTINCT COUNT ( - 89 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT + ( + MAX( + col2 ) ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-1431
SELECT + ( + MAX ( + col2 ) ) AS col0 FROM tab1
----
96

query II rowsort
SELECT 51 * - ( - 73 ), + col1 AS col0 FROM tab0
----
3723
1
3723
21
3723
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1433
SELECT ALL - 41 AS col2, - AVG ( ALL CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-1433
SELECT ALL - 41 AS col2, - AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
-41
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1436
SELECT 92 DIV - 37 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-1436
SELECT 92 / - 37 FROM tab0
----
-2
-2
-2

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

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

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

skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL - - CAST ( - - 33 AS INTEGER ) FROM tab0 AS cor0
----
33
33
33

query II rowsort
SELECT + col2 * col1, - 58 * + col1 FROM tab1 AS cor0 WHERE NOT col1 + + 0 = NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT - 95 + - COUNT( * ) col1 FROM tab2 AS cor0
----
-98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT - - 34 + - - MAX( ALL + col1 ) FROM tab2 cor0
----
111

skipif mysql # not compatible
query I rowsort label-1442
SELECT - - 34 + - - MAX ( ALL + col1 ) FROM tab2 cor0
----
111

query I rowsort
SELECT + - col1 + 93 FROM tab0 AS cor0
----
12
72
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT COUNT( * ) + - - SUM( + 27 ) AS col1 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-1444
SELECT COUNT ( * ) + - - SUM ( + 27 ) AS col1 FROM tab1 AS cor0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-1445
SELECT DISTINCT + - col0 DIV 90 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1445
SELECT DISTINCT + - col0 / 90 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
0

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

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

query I rowsort
SELECT + 92 * - - col2 * col0 FROM tab0 cor0 WHERE - 24 + + 66 * col1 + - col2 >= NULL
----

query I rowsort
SELECT DISTINCT ( + 88 ) * - 1 - + 25 FROM tab0
----
-113

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

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

query I rowsort
SELECT ALL - col2 * + + col0 * - col2 + col0 FROM tab2
----
102464
24380
252375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 + + 78 * + + 96 col2 FROM tab1
----
7584

query I rowsort
SELECT + + 47 + + col1 FROM tab2 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1454
SELECT 60 * COUNT( * ) - - - COUNT( + 11 ) DIV - 29 AS col1 FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-1454
SELECT 60 * COUNT ( * ) - - - COUNT ( + 11 ) / - 29 AS col1 FROM tab2 AS cor0
----
180

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

query I rowsort
SELECT 73 + - 84 FROM tab2 AS cor0
----
-11
-11
-11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT - + COUNT( ALL + 52 ) + 82 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-1458
SELECT - + COUNT ( ALL + 52 ) + 82 FROM tab1 AS cor0
----
79

query I rowsort
SELECT DISTINCT - col0 + - col0 * + - 86 AS col0 FROM tab0
----
1275
7395
8245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1460
SELECT - 98 * + CAST( - - COUNT( * ) AS SIGNED ) FROM tab1
----
-294

skipif mysql # not compatible
query I rowsort label-1460
SELECT - 98 * + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT DISTINCT - COUNT( * ) * 8 + ( + COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-63

skipif mysql # not compatible
query I rowsort label-1461
SELECT DISTINCT - COUNT ( * ) * 8 + ( + COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT ALL - 91 * SUM( + col2 ) FROM tab0 WHERE NULL IS NULL
----
-14196

skipif mysql # not compatible
query I rowsort label-1462
SELECT ALL - 91 * SUM ( + col2 ) FROM tab0 WHERE NULL IS NULL
----
-14196

query II rowsort
SELECT ALL + - col0 AS col1, + col0 * + - col0 AS col0 FROM tab0 AS cor0
----
-15
-225
-87
-7569
-97
-9409

query I rowsort
SELECT DISTINCT + + ( + + 38 ) AS col2 FROM tab2 AS cor0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1465
SELECT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-1465
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT DISTINCT + + 76 AS col1, - 36 AS col2 FROM tab2 AS cor0
----
76
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-1467
SELECT ALL col1 DIV - 74 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL col1 / - 74 AS col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + 47 / + + col0 FROM tab0 cor0 WHERE NOT NULL < NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1469
SELECT ALL + 52 * COUNT ( * ) col0 FROM tab1 AS cor0
----
156

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

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

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

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

skipif mysql # not compatible
query II rowsort label-1473
SELECT DISTINCT + SUM ( col0 ) AS col2, COUNT ( * ) AS col2 FROM tab2
----
185
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1474
SELECT ( col0 ) DIV - ( - ( + 26 ) ) FROM tab1
----
1
3
3

skipif mysql # not compatible
query I rowsort label-1474
SELECT ( col0 ) / - ( - ( + 26 ) ) FROM tab1
----
1
3
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 col0 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT 83 * + + ( + col0 ) AS col2 FROM tab2 cor0
----
3818
5312
6225

query I rowsort
SELECT + - 32 + col2 FROM tab1 AS cor0
----
27
36
64

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

skipif mysql # not compatible
query I rowsort label-1479
SELECT COUNT ( DISTINCT + ( + 40 ) ) FROM tab1
----
1

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1481
SELECT ALL - CAST ( - MIN ( + CAST ( NULL AS REAL ) ) AS REAL ) col2 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1482
SELECT * FROM tab2 AS cor0 WHERE + col1 = - - CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1482
SELECT * FROM tab2 AS cor0 WHERE + col1 = - - CAST ( - col2 AS INTEGER )
----

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL > col2 * col1 * - - col1
----

query I rowsort
SELECT DISTINCT + + 7 * - + col1 + + + 63 FROM tab2 AS cor0
----
-294
-406
-476

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

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

query I rowsort
SELECT col1 + - - col0 AS col2 FROM tab0
----
108
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + + col1 col0 FROM tab0
----
100
128
31

query II rowsort
SELECT 0 * col0 + + col1 + - - 84, col0 FROM tab2
----
135
46
151
75
161
64

query I rowsort
SELECT + ( col1 ) * - - col2 + - col0 FROM tab0
----
123
2
3792

query I rowsort
SELECT ALL - 23 - col1 FROM tab2 AS cor0
----
-100
-74
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-1492
SELECT DISTINCT - - 26, + MIN( ALL col2 ) AS col1 FROM tab1 AS cor0
----
26
59

skipif mysql # not compatible
query II rowsort label-1492
SELECT DISTINCT - - 26, + MIN ( ALL col2 ) AS col1 FROM tab1 AS cor0
----
26
59

query I rowsort
SELECT DISTINCT col2 - - + 94 AS col1 FROM tab1 AS cor0
----
153
162
190

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT DISTINCT - COUNT( * ) + - - 38 + - 91 FROM tab2 WHERE NOT 74 < NULL
----
-53

skipif mysql # not compatible
query I rowsort label-1495
SELECT DISTINCT - COUNT ( * ) + - - 38 + - 91 FROM tab2 WHERE NOT 74 < NULL
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-1496
SELECT - 7 DIV col1 * - ( - - 51 ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1496
SELECT - 7 / col1 * - ( - - 51 ) AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT COUNT( * ) * + - 33 col2 FROM tab2
----
-99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT DISTINCT - COUNT( * ) * 78 col2 FROM tab1 AS cor0
----
-234

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

query I rowsort
SELECT DISTINCT + col0 * - col1 + - col1 FROM tab0 cor0
----
-1296
-1848
-98

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

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

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

query I rowsort
SELECT ALL + 35 * + + col2 AS col2 FROM tab0
----
1645
3465
350

query I rowsort
SELECT ALL + 94 * + - col1 FROM tab1 WHERE NOT + col0 IS NULL
----
-1316
-4418
-470

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

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

query II rowsort
SELECT DISTINCT 26 AS col0, + col2 * - - col0 FROM tab1
----
26
4896
26
5015
26
6188

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 91 + - 64 <= NULL
----

query I rowsort
SELECT 50 / + - 65 + + 70 FROM tab0 WHERE NOT - ( + col2 ) > NULL
----

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

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

query I rowsort
SELECT DISTINCT - col0 + - 88 AS col0 FROM tab1 AS cor0
----
-139
-173
-179

query I rowsort
SELECT DISTINCT - 49 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-49

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

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

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

query I rowsort
SELECT ( 18 ) + col2 AS col0 FROM tab2 AS cor0
----
41
58
76

query I rowsort
SELECT - + 65 + col2 * - + col1 AS col0 FROM tab1 AS cor0
----
-1409
-3261
-360

query I rowsort
SELECT + - 96 * + - 1 * + 37 AS col2 FROM tab1 AS cor0
----
3552
3552
3552

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT - MAX( 93 ) * - ( 76 ) FROM tab0
----
7068

skipif mysql # not compatible
query I rowsort label-1516
SELECT - MAX ( 93 ) * - ( 76 ) FROM tab0
----
7068

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1519
SELECT col0 FROM tab2 WHERE NOT + 36 * - CAST( + - 85 AS DECIMAL ) + CAST( col0 AS SIGNED ) + - col2 * 55 IS NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1519
SELECT col0 FROM tab2 WHERE NOT + 36 * - CAST ( + - 85 AS REAL ) + CAST ( col0 AS INTEGER ) + - col2 * 55 IS NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query II rowsort label-1520
SELECT DISTINCT + 29 + 26 AS col0, - 37 + - + 84 DIV - - ( - + 25 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
55
-34

skipif mysql # not compatible
query II rowsort label-1520
SELECT DISTINCT + 29 + 26 AS col0, - 37 + - + 84 / - - ( - + 25 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
55
-34

onlyif mysql # DIV for integer division: 
query II rowsort label-1521
SELECT col0 col2, ( col2 ) DIV 84 FROM tab2
----
46
0
64
0
75
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1521
SELECT col0 col2, ( col2 ) / 84 FROM tab2
----
46
0
64
0
75
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT MIN( + col2 ) * + 0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1522
SELECT MIN ( + col2 ) * + 0 FROM tab2
----
0

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

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT 59 * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 IN ( - ( col1 ), + 65 * + + col1, 0 * + + 18 + + - col1 / 44, col1, - 60 * - + col0 + - 0, - col2, - + col0 * + - col1 * + + 98 + + - col2 * - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT DISTINCT 17 * - - COUNT( * ) FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1526
SELECT DISTINCT 17 * - - COUNT ( * ) FROM tab0 AS cor0
----
51

query I rowsort
SELECT DISTINCT 46 FROM tab2 AS cor0 WHERE NULL IN ( + 97 + 30, col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 + 61 * col0 + + 38 + + + col0 col1 FROM tab2 WHERE NOT + + 4 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1529
SELECT - 90 DIV + - ( - COUNT( * ) ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-1529
SELECT - 90 / + - ( - COUNT ( * ) ) FROM tab0
----
-30

query I rowsort
SELECT ALL - + 31 * + + 78 - - 60 AS col0 FROM tab0 AS cor0
----
-2358
-2358
-2358

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1531
SELECT DISTINCT - + COUNT( * ) DIV - ( + COUNT( * ) ) AS col0 FROM tab2 cor0
----
1

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

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

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE ( col0 + - + ( + - col2 ) * 20 + + + col1 / + 93 ) IS NOT NULL
----
23
40
58

query II rowsort
SELECT - 77 * - col0, col1 AS col1 FROM tab0 cor0
----
1155
81
6699
21
7469
1

query I rowsort
SELECT ALL + 7 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 52 IS NULL
----

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

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

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

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

query I rowsort
SELECT - col1 + - 69 * - - ( col2 ) FROM tab0 AS cor0
----
-3324
-6832
-711

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN - 4 / - col1 AND NULL
----

query I rowsort
SELECT ( + col0 ) + - + 18 AS col0 FROM tab2
----
28
46
57

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

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

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

skipif mysql # not compatible
query I rowsort label-1545
SELECT + col1 + - - col0 / - col0 AS col1 FROM tab0
----
0
20
80

query I rowsort
SELECT ALL 94 + - col2 - + col2 AS col0 FROM tab1
----
-24
-42
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1547
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1547
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) AS col2 FROM tab0
----
1

query I rowsort
SELECT - 56 * col1 / ( - col2 ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1549
SELECT DISTINCT col1, - col1 * + + col1 AS col2 FROM tab2 AS cor0 WHERE CAST( + - 74 AS SIGNED ) IS NOT NULL
----
51
-2601
67
-4489
77
-5929

skipif mysql # not compatible
query II rowsort label-1549
SELECT DISTINCT col1, - col1 * + + col1 AS col2 FROM tab2 AS cor0 WHERE CAST ( + - 74 AS INTEGER ) IS NOT NULL
----
51
-2601
67
-4489
77
-5929

query I rowsort
SELECT DISTINCT ( - 22 ) FROM tab2 AS cor0
----
-22

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

query I rowsort
SELECT + - 83 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1554
SELECT + - 23 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) NOT BETWEEN - col0 AND 15
----

skipif mysql # not compatible
query I rowsort label-1554
SELECT + - 23 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) NOT BETWEEN - col0 AND 15
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1556
SELECT ALL + + SUM ( ALL col2 ) col0 FROM tab0 cor0
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1557
SELECT DISTINCT CAST( NULL AS SIGNED ) * AVG ( ALL 81 ) AS col1, - COUNT( * ) AS col1 FROM tab0 cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-1557
SELECT DISTINCT CAST ( NULL AS INTEGER ) * AVG ( ALL 81 ) AS col1, - COUNT ( * ) AS col1 FROM tab0 cor0
----
NULL
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT + - COUNT( * ) * + 33 * + 55 + + MIN( ALL + col0 ) + + COUNT( * ) FROM tab1 AS cor0
----
-5391

skipif mysql # not compatible
query I rowsort label-1559
SELECT + - COUNT ( * ) * + 33 * + 55 + + MIN ( ALL + col0 ) + + COUNT ( * ) FROM tab1 AS cor0
----
-5391

query II rowsort
SELECT DISTINCT col1, 8 FROM tab1 AS cor0
----
14
8
47
8
5
8

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

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

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

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

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

query I rowsort
SELECT ALL col2 + - 18 AS col1 FROM tab2
----
22
40
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1565
SELECT - CAST( 58 AS SIGNED ) AS col1 FROM tab1
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-1565
SELECT - CAST ( 58 AS INTEGER ) AS col1 FROM tab1
----
-58
-58
-58

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

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

query I rowsort
SELECT DISTINCT col2 + - 31 * - + col1 * - - 8 AS col2 FROM tab1
----
11724
1299
3568

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1570
SELECT CAST( + COUNT( * ) AS SIGNED ), 16 - - CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
3
19

skipif mysql # not compatible
query II rowsort label-1570
SELECT CAST ( + COUNT ( * ) AS INTEGER ), 16 - - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
3
19

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1572
SELECT ALL col1 + - + 96 DIV - + col2 AS col2 FROM tab1 AS cor0
----
15
48
6

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL col1 + - + 96 / - + col2 AS col2 FROM tab1 AS cor0
----
15
48
6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT + SUM( ALL + col2 ) AS col1 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-1575
SELECT + SUM ( ALL + col2 ) AS col1 FROM tab2 cor0
----
121

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT DISTINCT + + COUNT( * ) - - 2 AS col1 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-1579
SELECT DISTINCT + + COUNT ( * ) - - 2 AS col1 FROM tab2 AS cor0
----
5

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

query II rowsort
SELECT ALL + col0 * + col0, col0 AS col0 FROM tab0 AS cor0
----
225
15
7569
87
9409
97

query II rowsort
SELECT DISTINCT - - col0 * + 20 AS col0, - ( - - 52 ) * + - col1 * - col2 AS col1 FROM tab2 AS cor0
----
1280
-160160
1500
-202072
920
-60996

query I rowsort
SELECT + col2 * - col2 AS col1 FROM tab0 WHERE NULL < - + 76
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1585
SELECT ALL COUNT( * ) col1, MAX( DISTINCT 71 ) FROM tab1
----
3
71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT - SUM( - 51 ) FROM tab1 cor0
----
153

skipif mysql # not compatible
query I rowsort label-1586
SELECT - SUM ( - 51 ) FROM tab1 cor0
----
153

query II rowsort
SELECT col1 AS col1, + col2 FROM tab2 cor0 WHERE NOT - col2 IS NULL
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1588
SELECT DISTINCT * FROM tab2 cor0 WHERE - 46 BETWEEN 17 + + + col2 + CAST( NULL AS SIGNED ) AND - - col2 + - + 34 + + col0 / col1
----

skipif mysql # not compatible
query III rowsort label-1588
SELECT DISTINCT * FROM tab2 cor0 WHERE - 46 BETWEEN 17 + + + col2 + CAST ( NULL AS INTEGER ) AND - - col2 + - + 34 + + col0 / col1
----

query II rowsort
SELECT ALL - col1 AS col0, + col1 * col1 FROM tab1 AS cor0
----
-14
196
-47
2209
-5
25

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

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

query I rowsort
SELECT + col1 * 11 - col2 FROM tab1
----
-4
449
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 col1 FROM tab2 WHERE NULL IS NULL
----
2116
4096
5625

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 WHERE NULL BETWEEN - col1 AND + col0 * 90
----
0

skipif mysql # not compatible
query I rowsort label-1594
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 WHERE NULL BETWEEN - col1 AND + col0 * 90
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1596
SELECT ALL - 1 DIV col1 - 14 * 52 AS col0 FROM tab0
----
-728
-728
-729

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL - 1 / col1 - 14 * 52 AS col0 FROM tab0
----
-728
-728
-729

query III rowsort
SELECT * FROM tab2 WHERE NULL <= col0 / - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = ( - 93 )
----

query I rowsort
SELECT ALL - 64 FROM tab1 WHERE 79 * 11 - - 48 IS NOT NULL
----
-64
-64
-64

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> col0 + 30
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1602
SELECT - COUNT( ALL - CAST( col0 AS DECIMAL ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1602
SELECT - COUNT ( ALL - CAST ( col0 AS REAL ) ) FROM tab2
----
-3

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

query III rowsort
SELECT * FROM tab0 WHERE NULL <= - ( 89 ) / - 34
----

query I rowsort
SELECT ALL 18 * col2 FROM tab0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1607
SELECT + 61 + + CAST( col1 AS SIGNED ) col1 FROM tab1 WHERE NOT - col1 NOT BETWEEN ( + col2 * + CAST( NULL AS SIGNED ) ) AND ( - 59 )
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 / + 9 = NULL
----

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

query I rowsort
SELECT ALL + 69 + + 65 * + col0 FROM tab2
----
3059
4229
4944

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT COUNT( * ) * MIN( - col1 ) AS col1 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-1613
SELECT COUNT ( * ) * MIN ( - col1 ) AS col1 FROM tab0
----
-243

query I rowsort
SELECT DISTINCT + 40 + - col0 FROM tab0 WHERE 96 NOT IN ( - 49 )
----
-47
-57
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT DISTINCT 29 + COUNT( * ) FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-1615
SELECT DISTINCT 29 + COUNT ( * ) FROM tab0
----
32

query III rowsort
SELECT * FROM tab2 WHERE col0 - 67 IN ( ( + col1 ) )
----

query I rowsort
SELECT + 11 * - col0 + 8 AS col1 FROM tab1 AS cor0
----
-553
-927
-993

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN 28 * col1 AND - 23 - col2
----
-14
-47
-5

query I rowsort
SELECT 59 AS col2 FROM tab1 WHERE NULL NOT BETWEEN 27 AND col0
----

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

skipif mysql # not compatible
query I rowsort label-1620
SELECT + COUNT ( ALL + 66 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT DISTINCT + 26 + COUNT( ALL col2 ) * MAX( ALL + col2 ) FROM tab0
----
323

skipif mysql # not compatible
query I rowsort label-1621
SELECT DISTINCT + 26 + COUNT ( ALL col2 ) * MAX ( ALL + col2 ) FROM tab0
----
323

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT - 97 - ( COUNT( * ) ) FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-1622
SELECT - 97 - ( COUNT ( * ) ) FROM tab0
----
-100

query I rowsort
SELECT ALL + 93 + - 32 FROM tab2
----
61
61
61

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

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

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

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

query I rowsort
SELECT ALL + col2 * - 77 FROM tab1 AS cor0
----
-4543
-5236
-7392

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT + col1 <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1629
SELECT col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT + 0 NOT IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-1629
SELECT col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT + 0 NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1630
SELECT ALL - + 56 DIV - COUNT( * ) FROM tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-1630
SELECT ALL - + 56 / - COUNT ( * ) FROM tab0 cor0
----
18

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

skipif mysql # not compatible
query I rowsort label-1631
SELECT + - COUNT ( * ) / + 96 AS col0 FROM tab1 AS cor0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1633
SELECT * FROM tab2 WHERE NOT col0 NOT BETWEEN ( CAST( NULL AS SIGNED ) ) AND col2
----

skipif mysql # not compatible
query III rowsort label-1633
SELECT * FROM tab2 WHERE NOT col0 NOT BETWEEN ( CAST ( NULL AS INTEGER ) ) AND col2
----

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

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

query I rowsort
SELECT ALL col2 * + col2 * ( + 17 ) FROM tab2
----
27200
57188
8993

query I rowsort
SELECT col0 FROM tab1 WHERE NOT - col0 NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT + COUNT( * ) * 40 FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-1637
SELECT + COUNT ( * ) * 40 FROM tab2
----
120

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 > + 62
----
15
81
47
87
21
10

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

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 WHERE NOT 58 IN ( + col2 )
----
-10
-47
-99

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

query I rowsort
SELECT DISTINCT - 78 * + col1 FROM tab2 cor0 WHERE col1 IS NOT NULL
----
-3978
-5226
-6006

onlyif mysql # DIV for integer division: 
query I rowsort label-1643
SELECT DISTINCT + - col0 DIV + 21 AS col2 FROM tab2 AS cor0
----
-2
-3

skipif mysql # not compatible
query I rowsort label-1643
SELECT DISTINCT + - col0 / + 21 AS col2 FROM tab2 AS cor0
----
-2
-3

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

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

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

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

query I rowsort
SELECT ALL + - 15 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1649
SELECT + CAST( ( + col2 ) AS DECIMAL ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= ( - col1 * 45 )
----

skipif mysql # not compatible
query I rowsort label-1649
SELECT + CAST ( ( + col2 ) AS REAL ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= ( - col1 * 45 )
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * - - 34 = 14
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1653
SELECT - - 21 + - CAST( + - AVG ( ALL + col1 ) AS SIGNED ) FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-1653
SELECT - - 21 + - CAST ( + - AVG ( ALL + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
43

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE 19 NOT BETWEEN ( col2 * col0 ) AND col2
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1655
SELECT DISTINCT + + 70 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
3
70

skipif mysql # not compatible
query I rowsort label-1655
SELECT DISTINCT + + 70 / + col1 AS col1 FROM tab0 AS cor0
----
0
3
70

query I rowsort
SELECT DISTINCT col0 + col1 + - col0 + - col1 * - ( - 60 * 46 + - col2 ) * col2 FROM tab1
----
-3838450
-831600
-9038241

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

query I rowsort
SELECT DISTINCT - 79 FROM tab1 WHERE ( + - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT DISTINCT + ( - 59 ) + - COUNT( * ) AS col2 FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT + ( - 59 ) + - COUNT ( * ) AS col2 FROM tab1
----
-62

query I rowsort
SELECT DISTINCT - 50 FROM tab0 WHERE NULL NOT BETWEEN ( - 15 - - 3 ) AND NULL
----

query I rowsort
SELECT + - ( ( 72 ) ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-72
-72
-72

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

query I rowsort
SELECT 77 AS col0 FROM tab1 cor0
----
77
77
77

query I rowsort
SELECT ALL + - col2 * - 34 * + ( 43 ) * + col1 AS col1 FROM tab1 AS cor0
----
1964928
431290
4672552

query I rowsort
SELECT - ( col0 ) * - 88 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col2 * ( col1 ) * 13 - 84 / - col1 AND ( NULL )
----

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

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

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

query I rowsort
SELECT DISTINCT + 76 + + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= col2 + col2
----

query I rowsort
SELECT DISTINCT + col1 * - 66 FROM tab0
----
-1386
-5346
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-1670
SELECT - 25 + - + col2 + - ( - - col0 ) + + col0 DIV col2 FROM tab2
----
-128
-157
-92

skipif mysql # not compatible
query I rowsort label-1670
SELECT - 25 + - + col2 + - ( - - col0 ) + + col0 / col2 FROM tab2
----
-128
-157
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT DISTINCT + 17 * + COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-1671
SELECT DISTINCT + 17 * + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1672
SELECT ALL + 66 DIV + SUM( ALL + col2 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1672
SELECT ALL + 66 / + SUM ( ALL + col2 ) AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL - 75 * - + col0 + col1 FROM tab0
----
1206
6546
7276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1674
SELECT ALL 80 + + ( CAST( + - 88 AS SIGNED ) ) AS col2 FROM tab0
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-1674
SELECT ALL 80 + + ( CAST ( + - 88 AS INTEGER ) ) AS col2 FROM tab0
----
-8
-8
-8

query I rowsort
SELECT ALL col2 FROM tab2 WHERE + - col2 > ( col1 * - col2 / 78 + col0 )
----

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

skipif mysql # not compatible
query I rowsort label-1676
SELECT - - SUM ( DISTINCT - - 6 ) FROM tab2 AS cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1678
SELECT + 59 AS col2, - col1 DIV + - ( + - ( + + 89 ) ) AS col0 FROM tab2 cor0
----
59
0
59
0
59
0

skipif mysql # not compatible
query II rowsort label-1678
SELECT + 59 AS col2, - col1 / + - ( + - ( + + 89 ) ) AS col0 FROM tab2 cor0
----
59
0
59
0
59
0

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE 16 < + ( - col2 ) + - col2
----

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

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

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

query I rowsort
SELECT - col0 * + + col0 AS col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

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

skipif mysql # not compatible
query II rowsort label-1683
SELECT DISTINCT COUNT ( * ) AS col0, 32 * + COUNT ( * ) AS col2 FROM tab2
----
3
96

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

query II rowsort
SELECT DISTINCT - col2 * col0, col2 AS col2 FROM tab1
----
-4896
96
-5015
59
-6188
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1686
SELECT - 34 AS col1, + CAST( - 85 AS SIGNED ) AS col2 FROM tab2
----
-34
-85
-34
-85
-34
-85

skipif mysql # not compatible
query II rowsort label-1686
SELECT - 34 AS col1, + CAST ( - 85 AS INTEGER ) AS col2 FROM tab2
----
-34
-85
-34
-85
-34
-85

query I rowsort
SELECT DISTINCT + 60 * + col2 AS col1 FROM tab1
----
3540
4080
5760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1688
SELECT DISTINCT - 55 DIV - COUNT( * ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-1688
SELECT DISTINCT - 55 / - COUNT ( * ) FROM tab0
----
18

query I rowsort
SELECT - 34 * + col1 FROM tab2 WHERE NOT ( NOT 92 IN ( - + col2 ) )
----

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

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

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

query I rowsort
SELECT ALL col1 * col1 + + + col1 + col1 FROM tab2
----
2703
4623
6083

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

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

query I rowsort
SELECT - + col2 * + - 68 AS col1 FROM tab2 AS cor0
----
1564
2720
3944

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1697
SELECT * FROM tab0 AS cor0 WHERE col2 - - - ( - 26 ) * + CAST( NULL AS SIGNED ) NOT BETWEEN ( NULL ) AND - 53
----

skipif mysql # not compatible
query III rowsort label-1697
SELECT * FROM tab0 AS cor0 WHERE col2 - - - ( - 26 ) * + CAST ( NULL AS INTEGER ) NOT BETWEEN ( NULL ) AND - 53
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1698
SELECT ALL * FROM tab0 WHERE - col2 * + col0 * + 35 * CAST( + 70 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1698
SELECT ALL * FROM tab0 WHERE - col2 * + col0 * + 35 * CAST ( + 70 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT + ( - COUNT( DISTINCT col1 ) ) FROM tab0 WHERE - 86 * - col0 * 47 + + ( - - 69 ) - + - col1 * + 50 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1699
SELECT + ( - COUNT ( DISTINCT col1 ) ) FROM tab0 WHERE - 86 * - col0 * 47 + + ( - - 69 ) - + - col1 * + 50 IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1700
SELECT DISTINCT 89 + + col0 DIV + 85 AS col2 FROM tab1
----
89
90

skipif mysql # not compatible
query I rowsort label-1700
SELECT DISTINCT 89 + + col0 / + 85 AS col2 FROM tab1
----
89
90

query I rowsort
SELECT col1 * - 26 + + col1 FROM tab1
----
-1175
-125
-350

query I rowsort
SELECT - ( + 92 ) + + col0 FROM tab0
----
-5
-77
5

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

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

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

query I rowsort
SELECT ALL - 60 + + 57 AS col1 FROM tab0
----
-3
-3
-3

query I rowsort
SELECT ALL + 85 + + - 78 AS col0 FROM tab0
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1707
SELECT DISTINCT - - CAST( - col1 AS SIGNED ) * + col0 DIV - col0 AS col0 FROM tab0 WHERE + col1 + - 41 - col0 IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1707
SELECT DISTINCT - - CAST ( - col1 AS INTEGER ) * + col0 / - col0 AS col0 FROM tab0 WHERE + col1 + - 41 - col0 IS NOT NULL
----
1
21
81

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 / col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1711
SELECT + col2 FROM tab1 AS cor0 WHERE NULL IN ( 27 / CAST( NULL AS SIGNED ) / - ( + col0 ) + - 46 + + 1 )
----

skipif mysql # not compatible
query I rowsort label-1711
SELECT + col2 FROM tab1 AS cor0 WHERE NULL IN ( 27 / CAST ( NULL AS INTEGER ) / - ( + col0 ) + - 46 + + 1 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT ALL + ( + + 64 ) - + + COUNT( * ) FROM tab1 WHERE + col2 BETWEEN ( ( - 24 ) ) AND ( NULL )
----
64

skipif mysql # not compatible
query I rowsort label-1713
SELECT ALL + ( + + 64 ) - + + COUNT ( * ) FROM tab1 WHERE + col2 BETWEEN ( ( - 24 ) ) AND ( NULL )
----
64

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1715
SELECT * FROM tab2 AS cor0 WHERE NOT + ( 53 ) + - col1 / - CAST( NULL AS SIGNED ) NOT IN ( + + col0, col0 - + - col0 + + col0 / + 38 )
----

skipif mysql # not compatible
query III rowsort label-1715
SELECT * FROM tab2 AS cor0 WHERE NOT + ( 53 ) + - col1 / - CAST ( NULL AS INTEGER ) NOT IN ( + + col0, col0 - + - col0 + + col0 / + 38 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT - MIN( + 95 ) * + 33 FROM tab2 AS cor0
----
-3135

skipif mysql # not compatible
query I rowsort label-1717
SELECT - MIN ( + 95 ) * + 33 FROM tab2 AS cor0
----
-3135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 22 col0 FROM tab2 AS cor0
----
1276
506
880

query II rowsort
SELECT ALL - 45 AS col1, 52 * + + 7 FROM tab2
----
-45
364
-45
364
-45
364

onlyif mysql # DIV for integer division: 
query II rowsort label-1720
SELECT + col0 col1, 13 DIV + 33 + + + 9 FROM tab0
----
15
9
87
9
97
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1720
SELECT + col0 col1, 13 / + 33 + + + 9 FROM tab0
----
15
9
87
9
97
9

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

skipif mysql # not compatible
query I rowsort label-1721
SELECT + COUNT ( * ) * - - 2 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT - COUNT( * ) * - + ( + 10 ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-1722
SELECT - COUNT ( * ) * - + ( + 10 ) FROM tab0
----
30

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col0 - + 95 * + + col2 <= NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 * - col1 < + + 22
----

query I rowsort
SELECT ALL col0 + + col2 * + 13 * - - col1 AS col1 FROM tab0 AS cor0
----
1384
2817
49506

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1729
SELECT + 51 * - 31 AS col1, SUM( - ( 37 ) ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
-1581
NULL

skipif mysql # not compatible
query II rowsort label-1729
SELECT + 51 * - 31 AS col1, SUM ( - ( 37 ) ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
-1581
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1733
SELECT - + 33 DIV COUNT( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-1733
SELECT - + 33 / COUNT ( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
-11

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> - + 86 + + + ( - 79 )
----

query I rowsort
SELECT + col2 * 60 AS col1 FROM tab2 WHERE - - col0 + - col0 = - + 37 * 97 / - col1 * + col2 + + col1
----

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

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

query I rowsort
SELECT DISTINCT - col1 * - + col2 * + col2 - 34 FROM tab0 AS cor0
----
178895
2066
9767

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT - COUNT( * ) + + ( + 49 ) FROM tab0 cor0
----
46

skipif mysql # not compatible
query I rowsort label-1739
SELECT - COUNT ( * ) + + ( + 49 ) FROM tab0 cor0
----
46

query I rowsort
SELECT + 70 * - col1 + + col1 + col0 AS col2 FROM tab1 AS cor0
----
-260
-3152
-915

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 <> + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - 21 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query II rowsort
SELECT col1, + 22 * + 36 - + col1 AS col0 FROM tab2
----
51
741
67
725
77
715

query II rowsort
SELECT ALL 55 AS col2, - 50 + - 82 FROM tab1
----
55
-132
55
-132
55
-132

query I rowsort
SELECT DISTINCT - col1 * - col1 * + col0 + + - 47 * + col0 FROM tab1 WHERE NULL IS NULL
----
-1870
196742
7599

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT ALL - MAX( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-1747
SELECT ALL - MAX ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
10

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

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

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

skipif mysql # not compatible
query I rowsort label-1749
SELECT DISTINCT - MIN ( DISTINCT 65 ) FROM tab2 AS cor0
----
-65

query I rowsort
SELECT DISTINCT ( - 66 ) FROM tab1 AS cor0
----
-66

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

query I rowsort
SELECT - ( + ( - col2 ) ) * - - col2 + - col0 FROM tab1 cor0
----
3396
4533
9165

query I rowsort
SELECT ALL - 97 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + + col1 + + - ( + 96 ), col1 + + 58, - - col0 * + + col0 + + 47 * - - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 30 IS NOT NULL OR NOT + + col0 - + col2 = + 41
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1755
SELECT ALL CAST( MIN( ALL col1 ) AS SIGNED ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL CAST ( MIN ( ALL col1 ) AS INTEGER ) FROM tab1
----
5

query I rowsort
SELECT 67 * + + 3 + col2 - + col1 * + col1 * - ( - + 85 ) AS col0 FROM tab1 AS cor0
----
-16363
-1865
-187496

query I rowsort
SELECT ALL + col1 + - col2 - + ( + - col1 ) FROM tab0 AS cor0 WHERE col1 >= - col0 - + - col2
----
115
32

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 + - col1 - - 20, - 72 )
----

query I rowsort
SELECT - 64 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query I rowsort
SELECT - 90 * - - col1 FROM tab2
----
-4590
-6030
-6930

query I rowsort
SELECT ALL - 55 + 32 AS col0 FROM tab2
----
-23
-23
-23

query I rowsort
SELECT ( - col2 ) * + - col0 + 41 FROM tab0
----
746
911
9644

query I rowsort
SELECT + col1 * + 23 FROM tab1 cor0
----
1081
115
322

query II rowsort
SELECT ALL - col1 AS col0, col0 AS col2 FROM tab2 AS cor0 WHERE NOT col2 * + col1 - + + col0 IS NULL
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT ALL - 4 - - COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1765
SELECT ALL - 4 - - COUNT ( * ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT - ( + + col1 ) AS col2 FROM tab2 AS cor0 WHERE NULL <= + 41
----

query I rowsort
SELECT DISTINCT - + 34 * col2 AS col2 FROM tab0 cor0
----
-1598
-3366
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT + COUNT( * ) + 97 FROM tab1 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-1768
SELECT + COUNT ( * ) + 97 FROM tab1 AS cor0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT - 63 + + MIN( ALL + + col2 ) FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-1769
SELECT - 63 + + MIN ( ALL + + col2 ) FROM tab0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT - 11 + COUNT( * ) + COUNT( * ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-1770
SELECT - 11 + COUNT ( * ) + COUNT ( * ) FROM tab1
----
-5

query I rowsort
SELECT - col2 + + 65 FROM tab2
----
25
42
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT ALL 64 + - SUM( - col2 ) AS col2 FROM tab1
----
287

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL 64 + - SUM ( - col2 ) AS col2 FROM tab1
----
287

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1773
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 75, col0 DIV - 84 AS col1 FROM tab1
----
NULL
-1
NULL
0

skipif mysql # not compatible
query II rowsort label-1773
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 75, col0 / - 84 AS col1 FROM tab1
----
NULL
-1
NULL
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN - + col1 AND - + 43
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1775
SELECT + col1 + 44 FROM tab0 WHERE - - col2 + + ( - CAST( NULL AS DECIMAL ) ) NOT IN ( - col1, 71 * - col2 + ( - - 17 ), + ( - col0 ), - col2 )
----

skipif mysql # not compatible
query I rowsort label-1775
SELECT + col1 + 44 FROM tab0 WHERE - - col2 + + ( - CAST ( NULL AS REAL ) ) NOT IN ( - col1, 71 * - col2 + ( - - 17 ), + ( - col0 ), - col2 )
----

query III rowsort
SELECT DISTINCT 9 - + col0, - col0 + - 64 AS col0, + 14 AS col2 FROM tab2
----
9 values hashing to ce1e1864c34a8433e2695fb3d039e1fd

query II rowsort
SELECT DISTINCT - col2 + + 45 AS col1, + col0 + col1 AS col1 FROM tab2
----
-13
142
22
97
5
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1778
SELECT ALL 71 FROM tab1 WHERE - 81 * - 13 + - + col0 + - + col1 <= ( - 34 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1778
SELECT ALL 71 FROM tab1 WHERE - 81 * - 13 + - + col0 + - + col1 <= ( - 34 * + CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * + col1 col1 FROM tab1 cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT DISTINCT - + SUM( DISTINCT col1 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT - + SUM ( DISTINCT col1 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - 59 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT DISTINCT + MIN( DISTINCT + + col2 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-1782
SELECT DISTINCT + MIN ( DISTINCT + + col2 ) AS col2 FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT col2 + + col1 * - - 61 - col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3111
4087
4697

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT - MAX( ALL 74 ) FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-1784
SELECT - MAX ( ALL 74 ) FROM tab1 AS cor0
----
-74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 <= ( - 59 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1786
SELECT - col1 * col0 * + col0 / + col0 * + + 57 AS col0 FROM tab0 AS cor0 WHERE NOT CAST( + - 88 AS SIGNED ) NOT IN ( 47, col0, col2, - col1 + + 52 + col0 )
----

skipif mysql # not compatible
query I rowsort label-1786
SELECT - col1 * col0 * + col0 / + col0 * + + 57 AS col0 FROM tab0 AS cor0 WHERE NOT CAST ( + - 88 AS INTEGER ) NOT IN ( 47, col0, col2, - col1 + + 52 + col0 )
----

query II rowsort
SELECT ALL 7, 3 AS col1 FROM tab1
----
7
3
7
3
7
3

query I rowsort
SELECT DISTINCT - - col1 FROM tab1 WHERE 23 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - 43 ) * + 8 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1790
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 + + col2 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1790
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 + + col2 col2 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 = - - 25
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT ALL + MIN( DISTINCT + + 12 ) AS col2 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-1792
SELECT ALL + MIN ( DISTINCT + + 12 ) AS col2 FROM tab2
----
12

query I rowsort
SELECT + col0 * 50 + + - col0 * - 16 AS col2 FROM tab1 WHERE NOT + - 23 IS NULL
----
3366
5610
6006

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1794
SELECT ALL + - 19 col2, + col2 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
-19
NULL
-19
NULL
-19
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1794
SELECT ALL + - 19 col2, + col2 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
-19
NULL
-19
NULL
-19
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 - 76 * + col1 * - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 4 * col0 FROM tab1 AS cor0
----
204
340
364

query I rowsort
SELECT - col2 + - 65 * - 93 AS col1 FROM tab1 AS cor0
----
5949
5977
5986

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT SUM( ALL - col1 ) + 36 FROM tab2 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-1799
SELECT SUM ( ALL - col1 ) + 36 FROM tab2 AS cor0
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT DISTINCT + COUNT( - + 46 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1800
SELECT DISTINCT + COUNT ( - + 46 ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE + - col1 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 35 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
35

query I rowsort
SELECT DISTINCT col2 + col2 AS col2 FROM tab1 WHERE NULL < - col0
----

query I rowsort
SELECT DISTINCT + col0 * col1 * + + col0 - - col1 * col2 * - + col2 FROM tab1 AS cor0
----
-92610
171879
18720

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 11 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 ) > - 84 + 57
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 55 AS col2 FROM tab0 AS cor0 WHERE col0 + - col1 = - 56
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1808
SELECT + col2 FROM tab1 AS cor0 WHERE - CAST( NULL AS DECIMAL ) * - col1 < NULL
----

skipif mysql # not compatible
query I rowsort label-1808
SELECT + col2 FROM tab1 AS cor0 WHERE - CAST ( NULL AS REAL ) * - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT ALL - 98 * + 32 + - SUM( DISTINCT + col1 ) * - 3 FROM tab2 AS cor0
----
-2551

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL - 98 * + 32 + - SUM ( DISTINCT + col1 ) * - 3 FROM tab2 AS cor0
----
-2551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1810
SELECT + CAST( 52 AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0
----
2444
260
728

skipif mysql # not compatible
query I rowsort label-1810
SELECT + CAST ( 52 AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0
----
2444
260
728

query I rowsort
SELECT DISTINCT + col2 * + + col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-1812
SELECT DISTINCT - col2 DIV + col0 + 15 + - col1 AS col2 FROM tab2
----
-36
-52
-62

skipif mysql # not compatible
query I rowsort label-1812
SELECT DISTINCT - col2 / + col0 + 15 + - col1 AS col2 FROM tab2
----
-36
-52
-62

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * - col1 NOT IN ( - - col2 * col1, - 66 - - + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * 37 * - + col1 - + col0 AS col0 FROM tab0
----
-134
-16404
-242772

query II rowsort
SELECT + 42, + col0 FROM tab2 WHERE NOT - 54 + + col0 IS NULL
----
42
46
42
64
42
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT DISTINCT + COUNT( * ) * ( + 3 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-1816
SELECT DISTINCT + COUNT ( * ) * ( + 3 ) FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT ALL - 87 * - COUNT( - ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-1817
SELECT ALL - 87 * - COUNT ( - ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
261

query I rowsort
SELECT ALL + ( - col0 ) AS col0 FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - 72 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT MIN( + - 22 ) AS col0 FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-1820
SELECT MIN ( + - 22 ) AS col0 FROM tab0
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1821
SELECT ALL - 54 DIV - COUNT( * ) FROM tab1, tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL - 54 / - COUNT ( * ) FROM tab1, tab2 cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1822
SELECT DISTINCT - COUNT( * ) / CAST( NULL AS SIGNED ) + 83 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1822
SELECT DISTINCT - COUNT ( * ) / CAST ( NULL AS INTEGER ) + 83 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 41 * + col0 + + col2 FROM tab2 AS cor0
----
-1863
-2584
-3017

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = 27 * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1825
SELECT ALL 28 DIV + - col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL 28 / + - col0 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1826
SELECT DISTINCT + - 81 DIV + + COUNT( * ) FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT + - 81 / + + COUNT ( * ) FROM tab0 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT COUNT( * ) + + + MIN( + 44 ) AS col1 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-1827
SELECT COUNT ( * ) + + + MIN ( + 44 ) AS col1 FROM tab0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 WHERE + 50 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1828
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 WHERE + 50 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT DISTINCT + MAX( - col0 ) + MAX( ALL - col1 ) col0 FROM tab2
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1829
SELECT DISTINCT + MAX ( - col0 ) + MAX ( ALL - col1 ) col0 FROM tab2
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-1830
SELECT DISTINCT + ( COUNT( * ) ) AS col1, COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-1830
SELECT DISTINCT + ( COUNT ( * ) ) AS col1, COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT ALL + SUM( 19 ) * 51 FROM tab1 AS cor0
----
2907

skipif mysql # not compatible
query I rowsort label-1831
SELECT ALL + SUM ( 19 ) * 51 FROM tab1 AS cor0
----
2907

onlyif mysql # DIV for integer division: 
query I rowsort label-1832
SELECT ( - col0 ) + - + col0 + - 68 DIV - + ( 46 ) AS col0 FROM tab0 AS cor0
----
-173
-193
-29

skipif mysql # not compatible
query I rowsort label-1832
SELECT ( - col0 ) + - + col0 + - 68 / - + ( 46 ) AS col0 FROM tab0 AS cor0
----
-173
-193
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1833
SELECT ALL + col0 * - - CAST( NULL 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-1833
SELECT ALL + col0 * - - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 - - - col2 + col1 FROM tab0
----
-195
-76
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT ALL - SUM( + 75 ) - + 59 FROM tab1 cor0
----
-284

skipif mysql # not compatible
query I rowsort label-1835
SELECT ALL - SUM ( + 75 ) - + 59 FROM tab1 cor0
----
-284

query I rowsort
SELECT DISTINCT - - col2 * + + col2 - - + 66 * ( col1 ) FROM tab0 AS cor0
----
1486
7555
9867

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * - 71 IS NOT NULL AND + col0 BETWEEN - - 50 AND + 71
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * + 31 / col2 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT 86 * 25 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
2147

skipif mysql # not compatible
query I rowsort label-1839
SELECT 86 * 25 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
2147

onlyif mysql # aggregate syntax: 
query II rowsort label-1840
SELECT + 44 AS col0, - 74 * - + 71 + MAX( DISTINCT + + col1 ) FROM tab2 AS cor0 WHERE + 57 NOT IN ( - 3, col2, + - col0, + + col1, - col0 / col0 )
----
44
5331

skipif mysql # not compatible
query II rowsort label-1840
SELECT + 44 AS col0, - 74 * - + 71 + MAX ( DISTINCT + + col1 ) FROM tab2 AS cor0 WHERE + 57 NOT IN ( - 3, col2, + - col0, + + col1, - col0 / col0 )
----
44
5331

query II rowsort
SELECT DISTINCT + 78 AS col1, + 11 AS col0 FROM tab1 AS cor0
----
78
11

query I rowsort
SELECT + ( col0 ) + - ( + ( + - 50 ) ) FROM tab2 AS cor0
----
114
125
96

query I rowsort
SELECT 25 FROM tab1 WHERE NOT NULL IS NOT NULL
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT + 49 * + MAX( + col0 ) FROM tab0
----
4753

skipif mysql # not compatible
query I rowsort label-1844
SELECT + 49 * + MAX ( + col0 ) FROM tab0
----
4753

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT ALL + MIN( ALL - col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-1845
SELECT ALL + MIN ( ALL - col0 ) FROM tab2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1846
SELECT + col1 AS col1, + col1 FROM tab0 AS cor0 WHERE NOT col0 IN ( - 73, ( - - col2 ) + - col1, col0 * - - CAST( NULL AS SIGNED ), + 70 )
----

skipif mysql # not compatible
query II rowsort label-1846
SELECT + col1 AS col1, + col1 FROM tab0 AS cor0 WHERE NOT col0 IN ( - 73, ( - - col2 ) + - col1, col0 * - - CAST ( NULL AS INTEGER ), + 70 )
----

query I rowsort
SELECT DISTINCT 60 * col1 AS col1 FROM tab2 AS cor0
----
3060
4020
4620

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( 67 / ( - col0 ) + - 89 * col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1848
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( 67 / ( - col0 ) + - 89 * col1 ) IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1849
SELECT DISTINCT ( + 81 ) DIV col2 * col1 * col2 AS col0 FROM tab0 AS cor0
----
0
1680
3807

skipif mysql # not compatible
query I rowsort label-1849
SELECT DISTINCT ( + 81 ) / col2 * col1 * col2 AS col0 FROM tab0 AS cor0
----
0
1680
3807

query I rowsort
SELECT ALL + + 82 AS col2 FROM tab2 AS cor0
----
82
82
82

query I rowsort
SELECT + + col2 * - + 48 FROM tab1 AS cor0
----
-2832
-3264
-4608

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT DISTINCT - - MAX( + 71 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
71

skipif mysql # not compatible
query I rowsort label-1852
SELECT DISTINCT - - MAX ( + 71 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
71

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 40 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # DIV for integer division: 
query II rowsort label-1854
SELECT ALL 89 * + col2 * + + col0 AS col0, + col0 DIV - col0 FROM tab1
----
435744
-1
446335
-1
550732
-1

skipif mysql # not compatible
query II rowsort label-1854
SELECT ALL 89 * + col2 * + + col0 AS col0, + col0 / - col0 FROM tab1
----
435744
-1
446335
-1
550732
-1

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT col2 IS NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( 56 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT + SUM( DISTINCT col2 ) + + ( + MAX( + - 56 ) ) FROM tab1 AS cor0
----
167

skipif mysql # not compatible
query I rowsort label-1858
SELECT + SUM ( DISTINCT col2 ) + + ( + MAX ( + - 56 ) ) FROM tab1 AS cor0
----
167

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1859
SELECT DISTINCT - col0 AS col2, CAST( col1 AS SIGNED ) * - 42 + + col2 * - col2 FROM tab1 AS cor0
----
-51
-9804
-85
-3691
-91
-6598

skipif mysql # not compatible
query II rowsort label-1859
SELECT DISTINCT - col0 AS col2, CAST ( col1 AS INTEGER ) * - 42 + + col2 * - col2 FROM tab1 AS cor0
----
-51
-9804
-85
-3691
-91
-6598

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT DISTINCT - + 4 + + + ( COUNT( - - col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1860
SELECT DISTINCT - + 4 + + + ( COUNT ( - - col1 ) ) FROM tab0 AS cor0
----
-1

query II rowsort
SELECT DISTINCT - col2 + - col1 AS col0, col1 * + 25 AS col0 FROM tab0
----
-100
25
-128
2025
-31
525

query II rowsort
SELECT - 91 AS col1, + 34 * - col2 FROM tab0
----
-91
-1598
-91
-3366
-91
-340

query II rowsort
SELECT DISTINCT - 90 AS col2, + col2 + - - 35 AS col2 FROM tab0
----
-90
134
-90
45
-90
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1864
SELECT DISTINCT CAST( 40 AS SIGNED ) * + col0 + - col0 + - - col1 * 75 * 54 AS col2, CAST( NULL AS SIGNED ) FROM tab2
----
208344
NULL
274275
NULL
314346
NULL

skipif mysql # not compatible
query II rowsort label-1864
SELECT DISTINCT CAST ( 40 AS INTEGER ) * + col0 + - col0 + - - col1 * 75 * 54 AS col2, CAST ( NULL AS INTEGER ) FROM tab2
----
208344
NULL
274275
NULL
314346
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT + + COUNT( * ) AS col1 FROM tab1 WHERE ( - col2 ) NOT BETWEEN NULL AND + 3
----
0

skipif mysql # not compatible
query I rowsort label-1865
SELECT + + COUNT ( * ) AS col1 FROM tab1 WHERE ( - col2 ) NOT BETWEEN NULL AND + 3
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1866
SELECT DISTINCT - + col2 + + + 63 * col2 DIV 73 + col1 AS col2 FROM tab2 AS cor0
----
47
59
71

skipif mysql # not compatible
query I rowsort label-1866
SELECT DISTINCT - + col2 + + + 63 * col2 / 73 + col1 AS col2 FROM tab2 AS cor0
----
47
59
71

query II rowsort
SELECT ALL + 58 AS col1, col2 AS col2 FROM tab0 AS cor0
----
58
10
58
47
58
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT + + 99 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-1868
SELECT + + 99 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
96

query I rowsort
SELECT ALL - col1 + + col2 + + - 32 - + 16 AS col2 FROM tab1
----
-27
34
6

query I rowsort
SELECT DISTINCT - 78 FROM tab2 WHERE NULL IN ( - - 73 * + col2, 99 )
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 62 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 / 14 * + + col2 NOT IN ( + - col2 * + col1, + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-1873
SELECT ALL + - MIN( ALL - col2 ) AS col1, ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
99
3

skipif mysql # not compatible
query II rowsort label-1873
SELECT ALL + - MIN ( ALL - col2 ) AS col1, ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
99
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT ALL MIN( ALL + + col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL MIN ( ALL + + col0 ) FROM tab2
----
46

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= - - ( + - col2 )
----

query I rowsort
SELECT ALL + 83 AS col0 FROM tab0 WHERE NOT + ( - col2 ) BETWEEN - 15 * - col0 AND + 13
----
83
83
83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1878
SELECT * FROM tab2 WHERE NOT CAST( + col0 AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-1878
SELECT * FROM tab2 WHERE NOT CAST ( + col0 AS INTEGER ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1879
SELECT + 34 DIV ( + + ( + COUNT( * ) ) ) FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-1879
SELECT + 34 / ( + + ( + COUNT ( * ) ) ) FROM tab0
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-1880
SELECT 53, 30 + - COUNT( * ) AS col0 FROM tab2
----
53
27

skipif mysql # not compatible
query II rowsort label-1880
SELECT 53, 30 + - COUNT ( * ) AS col0 FROM tab2
----
53
27

onlyif mysql # aggregate syntax: 
query II rowsort label-1881
SELECT ALL - COUNT( * ) AS col2, 64 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3
-192

skipif mysql # not compatible
query II rowsort label-1881
SELECT ALL - COUNT ( * ) AS col2, 64 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3
-192

query I rowsort
SELECT col1 * + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 7 col0, col2 - - 19 AS col1 FROM tab1 AS cor0
----
7
115
7
78
7
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT + - COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1884
SELECT + - COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1885
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1885
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT + 6 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1886
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT + 6 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT COUNT( * ) * + MAX( col2 ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-1887
SELECT COUNT ( * ) * + MAX ( col2 ) FROM tab1
----
288

onlyif mysql # DIV for integer division: 
query I rowsort label-1888
SELECT 56 DIV - 62 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1888
SELECT 56 / - 62 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1889
SELECT DISTINCT - 68 DIV + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-1889
SELECT DISTINCT - 68 / + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1890
SELECT + MAX( - col1 ) * - - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1890
SELECT + MAX ( - col1 ) * - - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 6 * - - 62 FROM tab1 AS cor0
----
372

query I rowsort
SELECT ALL - - col2 / 34 + col1 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT - 86 * - 3 AS col2 FROM tab2 AS cor0
----
258
258
258

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT - + COUNT( * ) FROM tab1 AS cor0 WHERE NULL <> - - col1 AND NOT ( NULL ) <= + - 18
----
0

skipif mysql # not compatible
query I rowsort label-1894
SELECT - + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <> - - col1 AND NOT ( NULL ) <= + - 18
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT + 97 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-1895
SELECT + 97 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
100

query II rowsort
SELECT col0 + + 89 - 11 + - 89 * 8 AS col1, - 82 * + 90 * - col2 + col1 + + - col1 AS col1 FROM tab1
----
-543
501840
-549
435420
-583
708480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1897
SELECT + col0 + CAST( - + col1 AS SIGNED ) AS col0 FROM tab2
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-1897
SELECT + col0 + CAST ( - + col1 AS INTEGER ) AS col0 FROM tab2
----
-13
-5
8

query I rowsort
SELECT DISTINCT 5 + - - col0 - - + col1 - + col0 FROM tab0
----
26
6
86

query I rowsort
SELECT DISTINCT col2 + - 11 * 29 AS col2 FROM tab0
----
-220
-272
-309

query I rowsort
SELECT DISTINCT - 81 * + 85 * - 5 FROM tab1
----
34425

query I rowsort
SELECT - col0 + - col1 + - 43 AS col0 FROM tab1
----
-108
-133
-181

query I rowsort
SELECT + col2 + + + 97 AS col1 FROM tab2
----
120
137
155

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT ALL COUNT( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL COUNT ( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT 23 - + col0, 37 + - + col2 - + - 79 AS col2 FROM tab0
----
-64
106
-74
17
8
69

query I rowsort
SELECT - col2 * - 89 AS col0 FROM tab1 WHERE - - col1 IS NOT NULL
----
5251
6052
8544

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT COUNT( * ) + - - MAX( ALL + + col2 ) FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-1907
SELECT COUNT ( * ) + - - MAX ( ALL + + col2 ) FROM tab2
----
61

query I rowsort
SELECT ALL col0 - 94 * + - 45 * + col2 AS col2 FROM tab1
----
249655
287731
406131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1909
SELECT DISTINCT + + COUNT( 97 ) DIV - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT + + COUNT ( 97 ) / - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT ALL + + ( - - SUM( ALL + 67 ) ) FROM tab0 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-1910
SELECT ALL + + ( - - SUM ( ALL + 67 ) ) FROM tab0 AS cor0
----
201

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1911
SELECT ALL col1, col2 + CAST( + + col0 AS SIGNED ) - - - col2 * + + col2 * + 46 * + col2 AS col0 FROM tab1 AS cor0 WHERE - col0 IN ( + - col1 )
----

skipif mysql # not compatible
query II rowsort label-1911
SELECT ALL col1, col2 + CAST ( + + col0 AS INTEGER ) - - - col2 * + + col2 * + 46 * + col2 AS col0 FROM tab1 AS cor0 WHERE - col0 IN ( + - col1 )
----

query I rowsort
SELECT - 91 * + ( + col1 ) AS col2 FROM tab1
----
-1274
-4277
-455

query I rowsort
SELECT 55 AS col1 FROM tab2 WHERE NOT col2 >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 62 < + col2
----

query I rowsort
SELECT + 57 * + 55 AS col2 FROM tab2
----
3135
3135
3135

query I rowsort
SELECT DISTINCT + 20 * - ( - col2 ) AS col1 FROM tab0
----
1980
200
940

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col0 + + - col1 BETWEEN ( + col0 ) AND - 50
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT MIN( ALL + col0 ) col2 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1918
SELECT MIN ( ALL + col0 ) col2 FROM tab2
----
46

query I rowsort
SELECT 32 + - col1 FROM tab0 WHERE NOT - + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1920
SELECT col2 + + col1 FROM tab2 AS cor0 WHERE NOT CAST( - 4 AS DECIMAL ) >= + - col0
----

skipif mysql # not compatible
query I rowsort label-1920
SELECT col2 + + col1 FROM tab2 AS cor0 WHERE NOT CAST ( - 4 AS REAL ) >= + - col0
----

query I rowsort
SELECT - 42 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329

query II rowsort
SELECT DISTINCT 8, - col1 AS col0 FROM tab0 AS cor0
----
8
-1
8
-21
8
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1923
SELECT DISTINCT - col2 AS col1, CAST( - + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-23
-46
-40
-64
-58
-75

skipif mysql # not compatible
query II rowsort label-1923
SELECT DISTINCT - col2 AS col1, CAST ( - + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-23
-46
-40
-64
-58
-75

query I rowsort
SELECT DISTINCT col2 + + 25 * - + col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 = + col0 + - - col2 * + 55
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT ALL ( MIN( ALL + - col1 ) ) col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1926
SELECT ALL ( MIN ( ALL + - col1 ) ) col2 FROM tab1 AS cor0
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 AS col1, col1 + col1 col2 FROM tab1 AS cor0
----
59
10
68
94
96
28

query I rowsort
SELECT DISTINCT - 98 + - col0 FROM tab1
----
-149
-183
-189

query I rowsort
SELECT ALL + col2 + - - 27 * + 66 AS col1 FROM tab2
----
1805
1822
1840

query III rowsort
SELECT ALL * FROM tab0 WHERE + + ( + col2 ) / - 58 = - 78
----

query II rowsort
SELECT + col2 AS col0, col2 * - - 10 AS col1 FROM tab0 WHERE - col0 IS NOT NULL
----
10
100
47
470
99
990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1932
SELECT ALL + CAST( NULL AS SIGNED ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL + CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + - col1 + - + col0 AS col2 FROM tab0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - 54 col1 FROM tab2
----
-105
-121
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT + - SUM( ALL + 32 ) AS col2 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1935
SELECT + - SUM ( ALL + 32 ) AS col2 FROM tab0 AS cor0
----
-96

query I rowsort
SELECT ALL + col0 * - - ( - + 48 ) FROM tab1 AS cor0
----
-2448
-4080
-4368

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT + - SUM( DISTINCT - col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-1937
SELECT + - SUM ( DISTINCT - col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT + SUM( + + col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1938
SELECT + SUM ( + + col1 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT col0 = NULL
----

query I rowsort
SELECT ALL + col1 + + 66 + + col1 AS col2 FROM tab2 WHERE ( col2 NOT BETWEEN - 55 / + + col2 * col2 AND NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1941
SELECT ALL 11, - col2 DIV 32 AS col0 FROM tab2
----
11
-1
11
-1
11
0

skipif mysql # not compatible
query II rowsort label-1941
SELECT ALL 11, - col2 / 32 AS col0 FROM tab2
----
11
-1
11
-1
11
0

query I rowsort
SELECT + 40 * + 68 FROM tab0
----
2720
2720
2720

query I rowsort
SELECT ALL 75 + - col1 + 94 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * 89 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1945
SELECT + + col0 DIV col0 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1945
SELECT + + col0 / col0 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT ALL - 41 * + + col1 AS col0 FROM tab0 AS cor0
----
-3321
-41
-861

query I rowsort
SELECT + col0 + - - 25 FROM tab1 AS cor0
----
110
116
76

query I rowsort
SELECT DISTINCT + 41 AS col0 FROM tab2 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) + + + col0 col1 FROM tab0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT 0 + 55 + + + COUNT( * ) FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-1950
SELECT 0 + 55 + + + COUNT ( * ) FROM tab1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT + 46 + - COUNT( * ) AS col2 FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-1951
SELECT + 46 + - COUNT ( * ) AS col2 FROM tab2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1952
SELECT DISTINCT CAST( NULL AS SIGNED ) / + - 53 * + 94 + + AVG ( + + 39 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1952
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + - 53 * + 94 + + AVG ( + + 39 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT ALL COUNT( * ) + - COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * - 20 + + + 64 col1, - 0 FROM tab0 AS cor0
----
-1556
0
-356
0
44
0

query I rowsort
SELECT + ( + + col0 ) * + col2 FROM tab2 AS cor0
----
1058
2560
4350

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT - 13 * - + SUM( ALL col2 ) FROM tab2
----
1573

skipif mysql # not compatible
query I rowsort label-1957
SELECT - 13 * - + SUM ( ALL col2 ) FROM tab2
----
1573

query I rowsort
SELECT + 79 * - col2 FROM tab0
----
-3713
-7821
-790

query I rowsort
SELECT 12 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

onlyif mysql # aggregate syntax: 
query II rowsort label-1960
SELECT + - MAX( + col2 ), 67 AS col2 FROM tab1 cor0
----
-96
67

skipif mysql # not compatible
query II rowsort label-1960
SELECT + - MAX ( + col2 ), 67 AS col2 FROM tab1 cor0
----
-96
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1961
SELECT - + ( COUNT( * ) ) - - + ( - + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1961
SELECT - + ( COUNT ( * ) ) - - + ( - + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT ( + + SUM( ALL + 71 ) ) FROM tab2 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-1962
SELECT ( + + SUM ( ALL + 71 ) ) FROM tab2 AS cor0
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT - 84 * - - COUNT( * ) * - 95 - + 39 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----
-39

skipif mysql # not compatible
query I rowsort label-1963
SELECT - 84 * - - COUNT ( * ) * - 95 - + 39 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----
-39

query I rowsort
SELECT ALL - 62 * + + col0 FROM tab0 cor0
----
-5394
-6014
-930

query I rowsort
SELECT ALL + + col2 * + 86 FROM tab1 AS cor0
----
5074
5848
8256

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT ALL ( MAX( DISTINCT 53 ) ) FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL ( MAX ( DISTINCT 53 ) ) FROM tab2 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT - 70 * + + COUNT( * ) FROM tab1
----
-210

skipif mysql # not compatible
query I rowsort label-1967
SELECT - 70 * + + COUNT ( * ) FROM tab1
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT DISTINCT MAX( DISTINCT - 75 ) FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT MAX ( DISTINCT - 75 ) FROM tab1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 WHERE - 16 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 WHERE - 16 IS NULL
----
0

query II rowsort
SELECT - col2 AS col1, - ( - ( - col2 ) ) FROM tab1
----
-59
-59
-68
-68
-96
-96

query III rowsort
SELECT * FROM tab2 WHERE NULL IS NOT NULL AND NOT 55 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1972
SELECT - COUNT( * ), 49 AS col2 FROM tab1
----
-3
49

skipif mysql # not compatible
query II rowsort label-1972
SELECT - COUNT ( * ), 49 AS col2 FROM tab1
----
-3
49

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 <> + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * + col1 * + 72 AS col2 FROM tab0 AS cor0
----
131544
6984
87480

onlyif mysql # aggregate syntax: 
query II rowsort label-1975
SELECT ALL - - COUNT( * ), - COUNT( * ) col0 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1975
SELECT ALL - - COUNT ( * ), - COUNT ( * ) col0 FROM tab0 AS cor0
----
3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 50 col1 FROM tab1 AS cor0
----
-50

query I rowsort
SELECT DISTINCT + col0 + - col0 / 21 + - - col2 AS col2 FROM tab2 WHERE - 98 - - - 96 / + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1978
SELECT - col2 + col0 DIV - + col2 col0 FROM tab0 AS cor0
----
-18
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1978
SELECT - col2 + col0 / - + col2 col0 FROM tab0 AS cor0
----
-18
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT ALL - COUNT( * ) + 72 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-1979
SELECT ALL - COUNT ( * ) + 72 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-219

query I rowsort
SELECT ALL - 73 * + col2 AS col1 FROM tab1 AS cor0
----
-4307
-4964
-7008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1981
SELECT - + CAST( NULL AS SIGNED ), + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1981
SELECT - + CAST ( NULL AS INTEGER ), + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + - 0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col1, col2 col0 FROM tab1 cor0
----
-51
96
-85
59
-91
68

onlyif mysql # DIV for integer division: 
query II rowsort label-1984
SELECT DISTINCT - 52, 22 DIV + + col2 AS col1 FROM tab1 AS cor0
----
-52
0

skipif mysql # not compatible
query II rowsort label-1984
SELECT DISTINCT - 52, 22 / + + col2 AS col1 FROM tab1 AS cor0
----
-52
0

query II rowsort
SELECT DISTINCT - + 24 AS col0, - col1 AS col1 FROM tab0 AS cor0
----
-24
-1
-24
-21
-24
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT + COUNT( + col1 ) * + 67 + 16 * - COUNT( * ) FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-1986
SELECT + COUNT ( + col1 ) * + 67 + 16 * - COUNT ( * ) FROM tab1 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT ALL - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 / + ( - + 11 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 / + ( - + 11 ) < NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1988
SELECT - 1 * - - col2 * col2 DIV + + col0 + + - ( col1 ) AS col0 FROM tab0 AS cor0
----
-102
-22
-228

skipif mysql # not compatible
query I rowsort label-1988
SELECT - 1 * - - col2 * col2 / + + col0 + + - ( col1 ) AS col0 FROM tab0 AS cor0
----
-102
-22
-228

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1989
SELECT ALL * FROM tab0 WHERE ( NOT ( + - col1 * - col0 * - + CAST( NULL AS SIGNED ) + - col1 * col2 / + col0 IS NULL ) )
----

skipif mysql # not compatible
query III rowsort label-1989
SELECT ALL * FROM tab0 WHERE ( NOT ( + - col1 * - col0 * - + CAST ( NULL AS INTEGER ) + - col1 * col2 / + col0 IS NULL ) )
----

query I rowsort
SELECT col2 + + col1 * - + 38 FROM tab2 AS cor0
----
-1915
-2488
-2886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1991
SELECT CAST( - MIN( ALL - CAST( NULL AS SIGNED ) ) AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1991
SELECT CAST ( - MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1992
SELECT DISTINCT + col2 AS col0, 82 DIV 76 AS col2 FROM tab0
----
10
1
47
1
99
1

skipif mysql # not compatible
query II rowsort label-1992
SELECT DISTINCT + col2 AS col0, 82 / 76 AS col2 FROM tab0
----
10
1
47
1
99
1

query I rowsort
SELECT + col1 * - col1 * + 42 FROM tab0
----
-18522
-275562
-42

query II rowsort
SELECT ALL - col2, col0 AS col1 FROM tab0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT + + col1 + + - col0 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT ALL - - COUNT( DISTINCT - + col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1996
SELECT ALL - - COUNT ( DISTINCT - + col1 ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 - + col1 + - - col2 IS NOT NULL
----

query II rowsort
SELECT - 71 AS col1, col2 AS col0 FROM tab1 cor0
----
-71
59
-71
68
-71
96

query II rowsort
SELECT - 14 AS col1, 42 AS col2 FROM tab2 AS cor0
----
-14
42
-14
42
-14
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT ALL + COUNT( - - 79 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2000
SELECT ALL + COUNT ( - - 79 ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2001
SELECT ALL - 56 DIV col1 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2001
SELECT ALL - 56 / col1 FROM tab2 cor0
----
-1
0
0

query I rowsort
SELECT ALL - + 98 AS col2 FROM tab1 AS cor0
----
-98
-98
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2003
SELECT ALL AVG ( DISTINCT - col1 ) * - + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2003
SELECT ALL AVG ( DISTINCT - col1 ) * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2004
SELECT DISTINCT - col2 + - col2 AS col2, col2 DIV col0 FROM tab0
----
-198
1
-20
0
-94
3

skipif mysql # not compatible
query II rowsort label-2004
SELECT DISTINCT - col2 + - col2 AS col2, col2 / col0 FROM tab0
----
-198
1
-20
0
-94
3

query I rowsort
SELECT ALL + col1 + - col1 * + 14 + - - col1 * + col1 AS col2 FROM tab2
----
1938
3618
4928

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT ALL + COUNT( * ) * - COUNT( * ) * - ( - COUNT( * ) ) FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-2006
SELECT ALL + COUNT ( * ) * - COUNT ( * ) * - ( - COUNT ( * ) ) FROM tab0
----
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2007
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 * col1 * - + CAST( NULL AS DECIMAL ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-2007
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 * col1 * - + CAST ( NULL AS REAL ) BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2008
SELECT ALL - 57 DIV - col1 + + col1 AS col1, - ( + - col0 ) col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
16
85
18
51
48
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2008
SELECT ALL - 57 / - col1 + + col1 AS col1, - ( + - col0 ) col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
16
85
18
51
48
91

query I rowsort
SELECT ALL + 71 + - col2 FROM tab2
----
13
31
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT 28 * + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
252

skipif mysql # not compatible
query I rowsort label-2010
SELECT 28 * + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
252

query I rowsort
SELECT 6 - - - col0 * + - col1 AS col0 FROM tab0
----
103
1221
1833

query I rowsort
SELECT DISTINCT - col1 - + - col2 FROM tab1
----
21
54
82

query I rowsort
SELECT - 7 + + col0 FROM tab0 AS cor0
----
8
80
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2014
SELECT col2 + - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2014
SELECT col2 + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col1, col2 * + col2 FROM tab0
----
1
9801
21
100
81
2209

query I rowsort
SELECT col1 + col1 + col1 AS col1 FROM tab1
----
141
15
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 * + col1 + - - 26 col2 FROM tab2
----
119672
336701
379482

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT ALL - COUNT( * ) + MAX( DISTINCT 44 ) * - 89 FROM tab1
----
-3919

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL - COUNT ( * ) + MAX ( DISTINCT 44 ) * - 89 FROM tab1
----
-3919

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2019
SELECT ALL * FROM tab1 WHERE NOT + - 65 > - CAST( + - col2 AS SIGNED ) + - CAST( + col2 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2019
SELECT ALL * FROM tab1 WHERE NOT + - 65 > - CAST ( + - col2 AS INTEGER ) + - CAST ( + col2 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 0 * - + col0 AS col0 FROM tab2
----
0
0
0

query II rowsort
SELECT 72, - col0 AS col0 FROM tab0
----
72
-15
72
-87
72
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT DISTINCT ( - + COUNT( 21 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2022
SELECT DISTINCT ( - + COUNT ( 21 ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NOT col1 BETWEEN - - col0 AND NULL
----
-2

skipif mysql # not compatible
query I rowsort label-2023
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT col1 BETWEEN - - col0 AND NULL
----
-2

query I rowsort
SELECT DISTINCT - ( - 28 ) FROM tab1 cor0
----
28

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT 66 * ( + col0 ) AS col0 FROM tab1 AS cor0
----
3366
5610
6006

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 AS cor0 WHERE + col0 + + col2 - - + col1 < - - col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN 86 AND - + col1 * col0
----

query II rowsort
SELECT - col1 AS col0, - col2 FROM tab2 cor0 WHERE NOT 86 IS NOT NULL
----

query II rowsort
SELECT col2, + ( col2 ) AS col1 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT DISTINCT - COUNT( * ) + + MAX( ALL - 44 ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-2031
SELECT DISTINCT - COUNT ( * ) + + MAX ( ALL - 44 ) AS col2 FROM tab1
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-2032
SELECT ALL ( - col2 ) DIV + col2 + + 98 FROM tab0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL ( - col2 ) / + col2 + + 98 FROM tab0
----
97
97
97

query I rowsort
SELECT - 10 * - ( + ( - 65 ) ) FROM tab0 WHERE NULL NOT BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT ALL COUNT( * ) col0 FROM tab1 WHERE NOT - 85 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2034
SELECT ALL COUNT ( * ) col0 FROM tab1 WHERE NOT - 85 IS NULL
----
3

query II rowsort
SELECT ALL col2 + - - 15 * - + 96, col2 * + + col2 AS col0 FROM tab2
----
-1382
3364
-1400
1600
-1417
529

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT ALL COUNT( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL COUNT ( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT + - MAX( col0 ) * + - 3 AS col0 FROM tab1 cor0
----
273

skipif mysql # not compatible
query I rowsort label-2037
SELECT + - MAX ( col0 ) * + - 3 AS col0 FROM tab1 cor0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT - - COUNT( DISTINCT + col2 ) * + 62 AS col0 FROM tab0 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-2038
SELECT - - COUNT ( DISTINCT + col2 ) * + 62 AS col0 FROM tab0 AS cor0
----
186

query I rowsort
SELECT + col2 + - 98 FROM tab1 cor0
----
-2
-30
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 + - - col2 col0 FROM tab2 AS cor0
----
33
50
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT COUNT( * ) * + 47 FROM tab2
----
141

skipif mysql # not compatible
query I rowsort label-2041
SELECT COUNT ( * ) * + 47 FROM tab2
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2042
SELECT + CAST( NULL AS SIGNED ) * + 60 - 13 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2042
SELECT + CAST ( NULL AS INTEGER ) * + 60 - 13 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE + col0 - - 20 > ( NULL )
----

query I rowsort
SELECT DISTINCT + 10 FROM tab1 WHERE NOT 5 * col1 + ( - 71 ) <> ( + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + + col2 = 31 * - col0 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2046
SELECT ALL - col1 DIV 18 FROM tab2
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL - col1 / 18 FROM tab2
----
-2
-3
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT COUNT( + 79 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2047
SELECT COUNT ( + 79 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT COUNT( ALL - ( - 10 ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2048
SELECT COUNT ( ALL - ( - 10 ) ) AS col0 FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT 82 NOT IN ( 76 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT COUNT( * ) FROM tab1 WHERE - ( - col2 ) NOT IN ( - col2 * col2 )
----
3

skipif mysql # not compatible
query I rowsort label-2050
SELECT COUNT ( * ) FROM tab1 WHERE - ( - col2 ) NOT IN ( - col2 * col2 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2051
SELECT - ( + COUNT( * ) ) DIV CAST( - 64 AS SIGNED ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2051
SELECT - ( + COUNT ( * ) ) / CAST ( - 64 AS INTEGER ) AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT 90 * - 50 FROM tab1 WHERE col1 / col2 IS NOT NULL
----
-4500

onlyif mysql # DIV for integer division: 
query I rowsort label-2053
SELECT - col2 DIV 74 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2053
SELECT - col2 / 74 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT ALL 2 + - COUNT( * ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL 2 + - COUNT ( * ) AS col1 FROM tab0
----
-1

query I rowsort
SELECT + col1 * + 52 + - col1 FROM tab0
----
1071
4131
51

query I rowsort
SELECT DISTINCT 5 * 36 AS col0 FROM tab1 WHERE col0 <= col1 * col1
----
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 28 ) col2 FROM tab2
----
-28

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 69 + + 63 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( col1 ) * + 57 FROM tab1 WHERE NOT - 43 <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT ALL 94 + MIN( - col2 ) FROM tab1 WHERE NOT - 77 < col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL 94 + MIN ( - col2 ) FROM tab1 WHERE NOT - 77 < col1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 NOT IN ( + 26 )
----

query I rowsort
SELECT ( + col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( col0 - col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2063
SELECT DISTINCT * FROM tab1 cor0 WHERE CAST( NULL AS DECIMAL ) + + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2063
SELECT DISTINCT * FROM tab1 cor0 WHERE CAST ( NULL AS REAL ) + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT DISTINCT 46 * ( - MAX( DISTINCT + col2 ) ) FROM tab2 cor0 WHERE NOT col2 < ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2064
SELECT DISTINCT 46 * ( - MAX ( DISTINCT + col2 ) ) FROM tab2 cor0 WHERE NOT col2 < ( + col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2065
SELECT 66 AS col1 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-2065
SELECT 66 AS col1 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) <> NULL
----

query I rowsort
SELECT ALL 59 / - 7 + - col2 AS col2 FROM tab2 WHERE ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2067
SELECT DISTINCT + 52 DIV + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0
----
5

skipif mysql # not compatible
query I rowsort label-2067
SELECT DISTINCT + 52 / + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT DISTINCT - - MIN( + col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT - - MIN ( + col0 ) AS col0 FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL 48 FROM tab1 cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - ( + col2 ) + 13 FROM tab1 AS cor0
----
-46
-55
-83

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 ) < NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE + col0 = NULL
----

query I rowsort
SELECT DISTINCT + col1 + + col2 * - col1 AS col1 FROM tab1 AS cor0 WHERE ( col1 ) IS NOT NULL
----
-1330
-290
-3149

query I rowsort
SELECT col1 * + 27 + 88 AS col0 FROM tab2 cor0 WHERE NULL BETWEEN + col2 + + col0 AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + - col0 * - col0 NOT IN ( - ( + 4 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - 17 + + 5 FROM tab0 AS cor0
----
22
22
22

query I rowsort
SELECT - 68 / 40 AS col2 FROM tab2 WHERE ( NULL ) >= col2
----

query I rowsort
SELECT + 7 + col2 FROM tab0
----
106
17
54

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT col2 > NULL
----

query I rowsort
SELECT col2 FROM tab0 WHERE ( - col0 + - 5 ) BETWEEN ( + 15 ) AND 8 / col0
----

query III rowsort
SELECT * FROM tab2 WHERE col0 * col1 IS NULL
----

query I rowsort
SELECT - col0 + ( col0 ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT 53 + - 47 FROM tab0
----
6
6
6

query III rowsort
SELECT * FROM tab0 WHERE 42 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2085
SELECT - col2 * ( - CAST( + col0 AS SIGNED ) ) + + col0 FROM tab1
----
4947
5100
6279

skipif mysql # not compatible
query I rowsort label-2085
SELECT - col2 * ( - CAST ( + col0 AS INTEGER ) ) + + col0 FROM tab1
----
4947
5100
6279

onlyif mysql # DIV for integer division: 
query I rowsort label-2086
SELECT DISTINCT - col2 DIV - - col0 + - 89 AS col0 FROM tab0
----
-89
-90
-92

skipif mysql # not compatible
query I rowsort label-2086
SELECT DISTINCT - col2 / - - col0 + - 89 AS col0 FROM tab0
----
-89
-90
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT DISTINCT - ( - MIN( + col0 ) ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2087
SELECT DISTINCT - ( - MIN ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
15

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE - ( + 66 ) - + 0 = ( + col0 )
----

query I rowsort
SELECT DISTINCT + col2 * - col2 AS col1 FROM tab2 cor0
----
-1600
-3364
-529

query I rowsort
SELECT DISTINCT - + col0 * + - col0 FROM tab2 AS cor0
----
2116
4096
5625

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 97 NOT BETWEEN NULL AND ( 69 )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT ALL col2 * - 37 * - + 6 FROM tab1
----
13098
15096
21312

query I rowsort
SELECT 29 - - 77 FROM tab2
----
106
106
106

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE - + col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2094
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE - + col2 >= NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2095
SELECT ALL CAST( NULL AS SIGNED ) + - COUNT( * ) + + COUNT( - col2 ) - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + COUNT ( - col2 ) - COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - 44 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2097
SELECT DISTINCT * FROM tab0 cor0 WHERE + CAST( + 24 AS SIGNED ) + col2 * - 88 NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2097
SELECT DISTINCT * FROM tab0 cor0 WHERE + CAST ( + 24 AS INTEGER ) + col2 * - 88 NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2098
SELECT ALL col2 - - 31 AS col1 FROM tab0 AS cor0 WHERE ( ( - CAST( NULL AS SIGNED ) ) * CAST( NULL AS SIGNED ) ) <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL col2 - - 31 AS col1 FROM tab0 AS cor0 WHERE ( ( - CAST ( NULL AS INTEGER ) ) * CAST ( NULL AS INTEGER ) ) <= ( NULL )
----

query I rowsort
SELECT 36 + + col2 * - - col0 + 92 FROM tab2 AS cor0
----
1186
2688
4478

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * col1 * 26 >= col0
----

query I rowsort
SELECT DISTINCT - col2 - + - col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 86 - 62 FROM tab2 AS cor0
----
-148

query I rowsort
SELECT ALL - - col2 * + 67 + 56 + col0 * col1 FROM tab0 AS cor0
----
2553
4420
6786

query I rowsort
SELECT 43 + 54 * 54 FROM tab0 AS cor0 WHERE NOT col0 < + ( - col0 )
----
2959
2959
2959

query I rowsort
SELECT + col1 - + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( + 0 ) = ( - col0 )
----
-8
13
5

query I rowsort
SELECT DISTINCT - - col2 * 27 FROM tab0 AS cor0
----
1269
2673
270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 5 col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT ALL MAX( + col0 ) * - 41 + + + COUNT( DISTINCT - 0 ) AS col1 FROM tab0
----
-3976

skipif mysql # not compatible
query I rowsort label-2108
SELECT ALL MAX ( + col0 ) * - 41 + + + COUNT ( DISTINCT - 0 ) AS col1 FROM tab0
----
-3976

query I rowsort
SELECT + col1 * + + 68 AS col0 FROM tab2
----
3468
4556
5236

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2110
SELECT * FROM tab0 WHERE NOT + 88 + + col2 BETWEEN - CAST( col0 AS SIGNED ) AND col1 - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2110
SELECT * FROM tab0 WHERE NOT + 88 + + col2 BETWEEN - CAST ( col0 AS INTEGER ) AND col1 - CAST ( NULL AS REAL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( 59 / - col1 )
----

query I rowsort
SELECT col0 * - 26 AS col0 FROM tab0
----
-2262
-2522
-390

query I rowsort
SELECT + 27 * - 73 AS col0 FROM tab2
----
-1971
-1971
-1971

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT ALL SUM( ALL col0 ) AS col2 FROM tab2 WHERE - col1 * col2 / col1 NOT IN ( col1 )
----
185

skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL SUM ( ALL col0 ) AS col2 FROM tab2 WHERE - col1 * col2 / col1 NOT IN ( col1 )
----
185

query I rowsort
SELECT + ( - 56 ) FROM tab0
----
-56
-56
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2116
SELECT ALL - CAST( + 72 AS SIGNED ) FROM tab2
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL - CAST ( + 72 AS INTEGER ) FROM tab2
----
-72
-72
-72

query I rowsort
SELECT - 22 AS col2 FROM tab0 WHERE NOT 67 / - 4 - col2 IS NULL
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT ALL COUNT( ALL + 99 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL COUNT ( ALL + 99 ) FROM tab1 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2119
SELECT + col0 DIV 57 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2119
SELECT + col0 / 57 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT - + col0 FROM tab2 cor0 WHERE + col1 * 74 IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT + 89 + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 IN ( + 66 )
----
92

skipif mysql # not compatible
query I rowsort label-2121
SELECT + 89 + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 IN ( + 66 )
----
92

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 6 ) = - + ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT MAX( + col0 ) FROM tab1 WHERE NOT ( + col1 ) IN ( col0 )
----
91

skipif mysql # not compatible
query I rowsort label-2123
SELECT MAX ( + col0 ) FROM tab1 WHERE NOT ( + col1 ) IN ( col0 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT 35 * + COUNT( * ) col1 FROM tab2
----
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2124
SELECT 35 * + COUNT ( * ) col1 FROM tab2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT DISTINCT + COUNT( * ) col2 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-2125
SELECT DISTINCT + COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-2126
SELECT DISTINCT col2 DIV - 83 + - + col2 AS col2, - col2 AS col0 FROM tab1
----
-59
-59
-68
-68
-97
-96

skipif mysql # not compatible
query II rowsort label-2126
SELECT DISTINCT col2 / - 83 + - + col2 AS col2, - col2 AS col0 FROM tab1
----
-59
-59
-68
-68
-97
-96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 17 NOT IN ( 36 * + 23 + - 30 + col0 - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2128
SELECT - col2 + CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-118
-136
-192

skipif mysql # not compatible
query I rowsort label-2128
SELECT - col2 + CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-118
-136
-192

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2129
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 48 + - - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT CAST ( NULL AS REAL ) * - 48 + - - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2130
SELECT * FROM tab2 AS cor0 WHERE - col1 * CAST( NULL AS SIGNED ) + + col0 IN ( - 25 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2130
SELECT * FROM tab2 AS cor0 WHERE - col1 * CAST ( NULL AS INTEGER ) + + col0 IN ( - 25 * - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT SUM( col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-2131
SELECT SUM ( col0 ) AS col1 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT + 25 * + COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-2132
SELECT + 25 * + COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2133
SELECT DISTINCT - CAST( + - col0 AS SIGNED ) col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2133
SELECT DISTINCT - CAST ( + - col0 AS INTEGER ) col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + + 30 * col0 FROM tab0 WHERE NULL IS NULL
----
2610
2910
450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2135
SELECT + CAST( NULL AS SIGNED ) / + col2 / 72 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2135
SELECT + CAST ( NULL AS INTEGER ) / + col2 / 72 col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 ) NOT IN ( + + 90 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2137
SELECT ALL - 78 + 19 + + + col1 DIV + col1 FROM tab0
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL - 78 + 19 + + + col1 / + col1 FROM tab0
----
-58
-58
-58

query I rowsort
SELECT ALL + 16 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 + 84 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col0 AS col1, - col1 * + 25 FROM tab2 WHERE col2 IS NOT NULL
----
46
-1275
64
-1925
75
-1675

query I rowsort
SELECT DISTINCT + 40 + + col1 AS col2 FROM tab2
----
107
117
91

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 * - col1 / + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 24 AS col1 FROM tab2 AS cor0 WHERE NOT - 92 <> ( + 94 + + + col2 )
----

query II rowsort
SELECT ALL - 87 AS col1, + col0 FROM tab2 AS cor0
----
-87
46
-87
64
-87
75

query I rowsort
SELECT ALL - - 43 * col1 FROM tab0 AS cor0
----
3483
43
903

query I rowsort
SELECT DISTINCT + 35 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2147
SELECT ALL 20 + 68 AS col1 FROM tab1 WHERE - - 12 IN ( + CAST( + col1 AS SIGNED ) + - 5 * + + CAST( + col1 AS SIGNED ) / col2 - col1 )
----

skipif mysql # not compatible
query I rowsort label-2147
SELECT ALL 20 + 68 AS col1 FROM tab1 WHERE - - 12 IN ( + CAST ( + col1 AS INTEGER ) + - 5 * + + CAST ( + col1 AS INTEGER ) / col2 - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT + 40 * - COUNT( * ) FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-2148
SELECT + 40 * - COUNT ( * ) FROM tab2 AS cor0
----
-120

query I rowsort
SELECT DISTINCT + - col2 * ( - - 16 ) FROM tab2 AS cor0
----
-368
-640
-928

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 93 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( + 4 ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * 66 AS col0 FROM tab2 AS cor0
----
3366
4422
5082

query I rowsort
SELECT + 96 * - + col1 FROM tab0 AS cor0
----
-2016
-7776
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL BETWEEN 16 * - 48 AND ( NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 * 30 col1 FROM tab2
----
270
270
270

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 * + 21 > ( col2 * + 43 )
----
46
51
23

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) IN ( + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT ALL + COUNT( * ) * - 56 FROM tab2 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL + COUNT ( * ) * - 56 FROM tab2 AS cor0
----
-168

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + + col1 < + 80
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2160
SELECT DISTINCT + CAST( + - 65 AS SIGNED ) DIV - COUNT( - col1 ) - COUNT( * ) FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-2160
SELECT DISTINCT + CAST ( + - 65 AS INTEGER ) / - COUNT ( - col1 ) - COUNT ( * ) FROM tab1 AS cor0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2161
SELECT ALL + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2162
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) - + 44 FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-2162
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) - + 44 FROM tab1 AS cor0
----
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 86 ) col1 FROM tab2 AS cor0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2164
SELECT ALL * FROM tab0 WHERE + CAST( NULL AS SIGNED ) + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2164
SELECT ALL * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2165
SELECT - MIN( DISTINCT - 93 ) + + COUNT( * ) FROM tab2 WHERE CAST( - col0 AS SIGNED ) / - 81 = + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-2165
SELECT - MIN ( DISTINCT - 93 ) + + COUNT ( * ) FROM tab2 WHERE CAST ( - col0 AS INTEGER ) / - 81 = + 8
----
NULL

query I rowsort
SELECT + + col1 * col1 * - 24 AS col2 FROM tab1 AS cor0
----
-4704
-53016
-600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2167
SELECT - CAST( + - AVG ( ALL - - 94 ) AS SIGNED ) FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-2167
SELECT - CAST ( + - AVG ( ALL - - 94 ) AS INTEGER ) FROM tab2 AS cor0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2168
SELECT col2 FROM tab0 AS cor0 WHERE + col1 * + col2 * + CAST( NULL AS SIGNED ) + - 22 < ( col1 * - - col2 )
----

skipif mysql # not compatible
query I rowsort label-2168
SELECT col2 FROM tab0 AS cor0 WHERE + col1 * + col2 * + CAST ( NULL AS INTEGER ) + - 22 < ( col1 * - - col2 )
----

query I rowsort
SELECT DISTINCT col1 + + ( - - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - col1, 54, + col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 - - col1 IN ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + col1 col2 FROM tab0 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 57 IS NULL
----

query I rowsort
SELECT ( 85 ) + col0 FROM tab2
----
131
149
160

query I rowsort
SELECT ALL col2 - - 3 - col2 FROM tab2
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2175
SELECT ( + 92 ) + - col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2175
SELECT ( + 92 ) + - col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT ALL - COUNT( * ) - + 91 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL - COUNT ( * ) - + 91 FROM tab0 AS cor0
----
-94

query I rowsort
SELECT DISTINCT - - ( - col1 ) FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - + col1 - + + col2 + + col2 AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL 6 FROM tab2 WHERE + col0 NOT BETWEEN NULL AND - ( + 22 )
----
6
6
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2180
SELECT - 29 DIV - + MAX( ALL col1 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2180
SELECT - 29 / - + MAX ( ALL col1 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT SUM( DISTINCT + 75 ) AS col2 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-2181
SELECT SUM ( DISTINCT + 75 ) AS col2 FROM tab0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + col2 col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
0
0
0

query I rowsort
SELECT 84 * - col2 FROM tab1 cor0 WHERE NOT NULL NOT IN ( col1 * + col0, - col1 + 63, - col0 * + col1 + - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT DISTINCT - COUNT( + + col2 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2184
SELECT DISTINCT - COUNT ( + + col2 ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - ( - col1 ) FROM tab2 AS cor0 WHERE NOT - 97 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2186
SELECT ALL + - 21 * + 28, - CAST( + - COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-588
3

skipif mysql # not compatible
query II rowsort label-2186
SELECT ALL + - 21 * + 28, - CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-588
3

query I rowsort
SELECT 95 * + - ( + col0 ) AS col1 FROM tab1 AS cor0
----
-4845
-8075
-8645

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * + col0 col2 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT DISTINCT COUNT( - 77 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2189
SELECT DISTINCT COUNT ( - 77 ) FROM tab1
----
3

query I rowsort
SELECT + ( 89 ) * - col1 FROM tab0
----
-1869
-7209
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2191
SELECT - ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 WHERE NOT ( NOT col2 + + col1 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-2191
SELECT - ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 WHERE NOT ( NOT col2 + + col1 IS NULL )
----

query I rowsort
SELECT ALL - 18 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> - 26
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND 70
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 + + 35 + col2 + + col2 + - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 84 * - - col0 AS col2 FROM tab1
----
4284
7140
7644

onlyif mysql # DIV for integer division: 
query I rowsort label-2197
SELECT DISTINCT + - 14 DIV + + ( - + 59 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2197
SELECT DISTINCT + - 14 / + + ( - + 59 ) FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2198
SELECT DISTINCT - col2 DIV 7 FROM tab2 cor0
----
-3
-5
-8

skipif mysql # not compatible
query I rowsort label-2198
SELECT DISTINCT - col2 / 7 FROM tab2 cor0
----
-3
-5
-8

query I rowsort
SELECT ALL + 0 + - + 33 + - col0 * + col2 FROM tab1
----
-4929
-5048
-6221

query I rowsort
SELECT + 96 + + col1 * col0 * + ( + col2 ) FROM tab2 AS cor0
----
197216
291546
54054

query II rowsort
SELECT - + 24 + + ( - + 75 ) * - - 28, col2 * + - col0 FROM tab0 AS cor0 WHERE ( + col1 / + col0 ) NOT BETWEEN NULL AND 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT DISTINCT 71 + + + MAX( - 39 ) + - MAX( + 84 ) * + COUNT( * ) * + MIN( DISTINCT col0 ) + - 10 + + + MIN( - col1 ) + - 10 + - + ( 10 ) FROM tab1 AS cor0
----
-12897

skipif mysql # not compatible
query I rowsort label-2202
SELECT DISTINCT 71 + + + MAX ( - 39 ) + - MAX ( + 84 ) * + COUNT ( * ) * + MIN ( DISTINCT col0 ) + - 10 + + + MIN ( - col1 ) + - 10 + - + ( 10 ) FROM tab1 AS cor0
----
-12897

onlyif mysql # aggregate syntax: 
query II rowsort label-2203
SELECT DISTINCT + COUNT( * ), 80 * + 47 AS col1 FROM tab2 AS cor0
----
3
3760

skipif mysql # not compatible
query II rowsort label-2203
SELECT DISTINCT + COUNT ( * ), 80 * + 47 AS col1 FROM tab2 AS cor0
----
3
3760

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

query II rowsort
SELECT ALL - - col2, + col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2206
SELECT + col0 DIV + 53 + + 58 - + col1 AS col2 FROM tab1 AS cor0
----
12
44
54

skipif mysql # not compatible
query I rowsort label-2206
SELECT + col0 / + 53 + + 58 - + col1 AS col2 FROM tab1 AS cor0
----
12
44
54

query II rowsort
SELECT - col1 AS col2, col0 AS col2 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 15 ) + 75 col2 FROM tab0
----
90

query III rowsort
SELECT * FROM tab0 WHERE + + col1 >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE col2 BETWEEN ( + 22 ) AND NULL
----

query I rowsort
SELECT ALL col0 * col1 * + 36 + + col1 * + col2 FROM tab2
----
180488
184786
85629

query I rowsort
SELECT ALL + col1 + + 84 AS col1 FROM tab2
----
135
151
161

onlyif mysql # aggregate syntax: 
query II rowsort label-2213
SELECT ALL 37 - - COUNT( * ), ( - + 80 ) AS col0 FROM tab1
----
40
-80

skipif mysql # not compatible
query II rowsort label-2213
SELECT ALL 37 - - COUNT ( * ), ( - + 80 ) AS col0 FROM tab1
----
40
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2214
SELECT DISTINCT - + col1 FROM tab0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2214
SELECT DISTINCT - + col1 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
-1
-21
-81

query I rowsort
SELECT - + col1 + - - 65 FROM tab0 AS cor0
----
-16
44
64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 + - 68 + + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT + - COUNT( ALL 86 ) * + 25 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2217
SELECT + - COUNT ( ALL 86 ) * + 25 FROM tab0 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT DISTINCT MAX( DISTINCT - 86 ) FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-2218
SELECT DISTINCT MAX ( DISTINCT - 86 ) FROM tab1
----
-86

query I rowsort
SELECT - 81 * + 66 AS col2 FROM tab2 AS cor0
----
-5346
-5346
-5346

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT - - COUNT( ALL - - col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2220
SELECT - - COUNT ( ALL - - col1 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT - COUNT( + + 19 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2221
SELECT - COUNT ( + + 19 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT DISTINCT - + MIN( + 92 ) FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-2222
SELECT DISTINCT - + MIN ( + 92 ) FROM tab0 AS cor0
----
-92

query II rowsort
SELECT DISTINCT col1, + ( 46 ) FROM tab0 AS cor0
----
1
46
21
46
81
46

onlyif mysql # aggregate syntax: 
query II rowsort label-2224
SELECT DISTINCT 92 AS col2, + COUNT( * ) AS col0 FROM tab2
----
92
3

skipif mysql # not compatible
query II rowsort label-2224
SELECT DISTINCT 92 AS col2, + COUNT ( * ) AS col0 FROM tab2
----
92
3

query I rowsort
SELECT ALL + col0 + - col2 * + - col0 FROM tab1
----
4947
5100
6279

onlyif mysql # aggregate syntax: 
query II rowsort label-2226
SELECT DISTINCT - 85 col1, COUNT( * ) col2 FROM tab0
----
-85
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2226
SELECT DISTINCT - 85 col1, COUNT ( * ) col2 FROM tab0
----
-85
3

query I rowsort
SELECT col0 * col0 * - - 41 AS col1 FROM tab0
----
310329
385769
9225

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NOT + + 44 IS NOT NULL
----

query I rowsort
SELECT + col1 + - - 41 AS col2 FROM tab1
----
46
55
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2230
SELECT ALL - COUNT( * ) FROM tab0 WHERE ( + - col0 ) * - 71 NOT IN ( + CAST( NULL AS SIGNED ) + + col2, col0 + - 77 + col1 * CAST( + col2 AS SIGNED ), - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2230
SELECT ALL - COUNT ( * ) FROM tab0 WHERE ( + - col0 ) * - 71 NOT IN ( + CAST ( NULL AS INTEGER ) + + col2, col0 + - 77 + col1 * CAST ( + col2 AS INTEGER ), - col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2231
SELECT - col0 * - - CAST( NULL AS SIGNED ) + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2231
SELECT - col0 * - - CAST ( NULL AS INTEGER ) + col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NOT - col1 * - + col1 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2233
SELECT + col2 + + col2 col2, CAST( - 48 AS SIGNED ) - + - col0 + - CAST( NULL AS DECIMAL ) * 91 * - - col2 AS col1 FROM tab1 AS cor0
----
118
NULL
136
NULL
192
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2233
SELECT + col2 + + col2 col2, CAST ( - 48 AS INTEGER ) - + - col0 + - CAST ( NULL AS REAL ) * 91 * - - col2 AS col1 FROM tab1 AS cor0
----
118
NULL
136
NULL
192
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT ALL COUNT( 78 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2234
SELECT ALL COUNT ( 78 ) AS col1 FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT ( - col2 ) * 22 AS col2 FROM tab1 AS cor0
----
-1298
-1496
-2112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2236
SELECT - ( CAST( NULL AS SIGNED ) ) + + AVG ( + 44 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2236
SELECT - ( CAST ( NULL AS INTEGER ) ) + + AVG ( + 44 ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2237
SELECT CAST( NULL AS SIGNED ) + - 28 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2237
SELECT CAST ( NULL AS INTEGER ) + - 28 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 61 + + - 79 FROM tab1
----
-140
-140
-140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + + col2 col2 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT ALL - 17 * - col1 FROM tab1
----
238
799
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, 6 - - col2 AS col1 FROM tab0
----
1
105
21
16
81
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2242
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT CAST( col0 AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-2242
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT CAST ( col0 AS INTEGER ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT DISTINCT + COUNT( * ) + + 57 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-2243
SELECT DISTINCT + COUNT ( * ) + + 57 FROM tab1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT DISTINCT 76 * MIN( DISTINCT col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT + 72 + + - 47 * - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT DISTINCT 76 * MIN ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT + 72 + + - 47 * - col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT DISTINCT + MAX( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2245
SELECT DISTINCT + MAX ( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
58

query II rowsort
SELECT - + 50, + 78 AS col1 FROM tab0 AS cor0
----
-50
78
-50
78
-50
78

query I rowsort
SELECT + col0 * 42 FROM tab1
----
2142
3570
3822

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 * + - col1 col2 FROM tab0
----
-1638
-6318
-78

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + + col0 * + + 40 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + col0 * 1 + col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2251
SELECT DISTINCT - + CAST( + - col1 AS SIGNED ) AS col0, CAST( NULL AS DECIMAL ) * + + col1 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-2251
SELECT DISTINCT - + CAST ( + - col1 AS INTEGER ) AS col0, CAST ( NULL AS REAL ) * + + col1 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT COUNT( - 92 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2252
SELECT COUNT ( - 92 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - col2 * - + col0 AS col0 FROM tab0 WHERE + - col1 NOT BETWEEN - - 89 AND + 68
----
705
870
9603

query II rowsort
SELECT DISTINCT 89 * + + ( 86 ) + + col1 + - + col2, col1 AS col1 FROM tab0
----
7556
1
7665
21
7688
81

query I rowsort
SELECT DISTINCT 90 AS col1 FROM tab2 WHERE NULL <> col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * - col2 > NULL
----

query I rowsort
SELECT - ( - 33 ) FROM tab0
----
33
33
33

query II rowsort
SELECT DISTINCT col2 AS col0, 89 FROM tab1 AS cor0
----
59
89
68
89
96
89

onlyif mysql # aggregate syntax: 
query II rowsort label-2259
SELECT DISTINCT + + 37 + + COUNT( * ) * 69 AS col2, COUNT( col0 ) FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
244
3

skipif mysql # not compatible
query II rowsort label-2259
SELECT DISTINCT + + 37 + + COUNT ( * ) * 69 AS col2, COUNT ( col0 ) FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
244
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT DISTINCT COUNT( * ) * 86 FROM tab2 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-2260
SELECT DISTINCT COUNT ( * ) * 86 FROM tab2 AS cor0
----
258

query I rowsort
SELECT 46 + - col2 FROM tab0 AS cor0
----
-1
-53
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - + 2 + - - col1 col1 FROM tab1
----
136
63
88

query I rowsort
SELECT ALL + col0 * - col2 * - col1 * + - 13 + 36 * + col1 AS col2 FROM tab1
----
-325795
-3779176
-890568

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT MAX( ALL + 28 ) FROM tab0, tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-2264
SELECT MAX ( ALL + 28 ) FROM tab0, tab1 AS cor0
----
28

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT - 35 <> NULL )
----

query I rowsort
SELECT DISTINCT - 79 * + 5 FROM tab2 cor0
----
-395

query I rowsort
SELECT + 23 FROM tab1 AS cor0 WHERE 17 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 > 68
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT DISTINCT + COUNT( * ) * 65 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2269
SELECT DISTINCT + COUNT ( * ) * 65 FROM tab2 AS cor0
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 col1 FROM tab1 AS cor0
----
98
98
98

onlyif mysql # aggregate syntax: 
query II rowsort label-2271
SELECT COUNT( * ) AS col0, + COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2271
SELECT COUNT ( * ) AS col0, + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT + MAX( DISTINCT - 45 ) FROM tab2 cor0
----
-45

skipif mysql # not compatible
query I rowsort label-2272
SELECT + MAX ( DISTINCT - 45 ) FROM tab2 cor0
----
-45

query I rowsort
SELECT + col2 - col0 + 77 * + + 92 FROM tab0 AS cor0
----
7007
7086
7116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2274
SELECT ALL - col2 AS col0 FROM tab0 cor0 WHERE NOT + col2 + + CAST( col1 AS SIGNED ) BETWEEN NULL AND + + col0 * - 64
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL - col2 AS col0 FROM tab0 cor0 WHERE NOT + col2 + + CAST ( col1 AS INTEGER ) BETWEEN NULL AND + + col0 * - 64
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT DISTINCT - COUNT( ALL - - col2 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2275
SELECT DISTINCT - COUNT ( ALL - - col2 ) AS col2 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 <= + + 41
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) = col0
----

query I rowsort
SELECT ALL + col0 * + 61 AS col1 FROM tab0 AS cor0
----
5307
5917
915

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2279
SELECT DISTINCT - ( + CAST( + col1 AS SIGNED ) ) AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2279
SELECT DISTINCT - ( + CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT - - COUNT( - 7 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2280
SELECT - - COUNT ( - 7 ) FROM tab2 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, + col2 AS col0 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT DISTINCT + + ( + MAX( - 0 ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT + + ( + MAX ( - 0 ) ) FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 37 col2, col2 - col2 * - + 13 col2 FROM tab1 AS cor0
----
-37
1344
-37
826
-37
952

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT DISTINCT - MAX( ALL - col1 ) * SUM( col1 ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
333

skipif mysql # not compatible
query I rowsort label-2284
SELECT DISTINCT - MAX ( ALL - col1 ) * SUM ( col1 ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
333

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2285
SELECT DISTINCT - - 37 DIV - COUNT( * ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2285
SELECT DISTINCT - - 37 / - COUNT ( * ) FROM tab0 AS cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2286
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2286
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - + col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2287
SELECT DISTINCT COUNT( + - col1 ) * COUNT( * ) + + 49 + - MAX( - 51 ) * 41 DIV + ( + COUNT( * ) ) FROM tab1 AS cor0
----
755

skipif mysql # not compatible
query I rowsort label-2287
SELECT DISTINCT COUNT ( + - col1 ) * COUNT ( * ) + + 49 + - MAX ( - 51 ) * 41 / + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
755

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2288
SELECT CAST( NULL AS SIGNED ) * + 68 * - COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT - col1 * - col2 NOT BETWEEN ( - col2 ) AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2288
SELECT CAST ( NULL AS INTEGER ) * + 68 * - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT - col1 * - col2 NOT BETWEEN ( - col2 ) AND NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 + col2 AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 98 BETWEEN - - col0 + + + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT DISTINCT - 66 * - COUNT( * ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-2291
SELECT DISTINCT - 66 * - COUNT ( * ) FROM tab1
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT 2 + + + COUNT( * ) col1 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2292
SELECT 2 + + + COUNT ( * ) col1 FROM tab1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2293
SELECT - 25 * - CAST( NULL AS SIGNED ) + 3 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2293
SELECT - 25 * - CAST ( NULL AS INTEGER ) + 3 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2294
SELECT + col1 + - CAST( NULL AS SIGNED ) + - - 54 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2294
SELECT + col1 + - CAST ( NULL AS INTEGER ) + - - 54 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT SUM( ALL col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2295
SELECT SUM ( ALL col1 ) AS col0 FROM tab2 AS cor0
----
195

query I rowsort
SELECT DISTINCT - col1 * + col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT ALL - 17 + COUNT( * ) FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL - 17 + COUNT ( * ) FROM tab1
----
-14

query I rowsort
SELECT col2 - + - 40 FROM tab2
----
63
80
98

query I rowsort
SELECT DISTINCT - 12 + - ( - + col2 ) AS col0 FROM tab2 AS cor0
----
11
28
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT ALL + - COUNT( * ) - + COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2300
SELECT ALL + - COUNT ( * ) - + COUNT ( * ) FROM tab2 AS cor0
----
-6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( col0 + + col2 + - - col1 * + col0 NOT IN ( - - col1 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2302
SELECT + 24 + - COUNT( * ) + - MIN( col1 ) DIV + 7 * 91 AS col1 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-2302
SELECT + 24 + - COUNT ( * ) + - MIN ( col1 ) / + 7 * 91 AS col1 FROM tab1 AS cor0
----
21

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 <= - 17
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2304
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - 11 + 37 * - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2304
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - 11 + 37 * - col2 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + col1, col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2306
SELECT CAST( NULL AS SIGNED ) * + ( - MAX( DISTINCT - 77 ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2306
SELECT CAST ( NULL AS INTEGER ) * + ( - MAX ( DISTINCT - 77 ) ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 col2 FROM tab1
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT DISTINCT MAX( ALL + - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT MAX ( ALL + - col1 ) FROM tab1
----
-5

query I rowsort
SELECT 96 FROM tab0 WHERE NOT + + col1 >= - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2311
SELECT + col1 DIV + ( - - ( - 10 ) ) FROM tab0
----
-2
-8
0

skipif mysql # not compatible
query I rowsort label-2311
SELECT + col1 / + ( - - ( - 10 ) ) FROM tab0
----
-2
-8
0

query I rowsort
SELECT col1 * + - col0 * - - 41 AS col1 FROM tab2
----
-202048
-206025
-96186

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT ALL SUM( + + ( - col1 ) ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2313
SELECT ALL SUM ( + + ( - col1 ) ) FROM tab1
----
-66

query I rowsort
SELECT ALL + col1 * + 57 AS col1 FROM tab2
----
2907
3819
4389

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - ( - col1 ) <> NULL
----

query I rowsort
SELECT + col2 * + 87 FROM tab2 AS cor0
----
2001
3480
5046

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2317
SELECT DISTINCT - - COUNT( * ) DIV ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2317
SELECT DISTINCT - - COUNT ( * ) / ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 / + + 94 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN col2 AND + 73
----

query I rowsort
SELECT DISTINCT - ( 32 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-2321
SELECT DISTINCT - col0 * col1 DIV - - ( col0 ) + 34 AS col2 FROM tab0
----
-47
13
33

skipif mysql # not compatible
query I rowsort label-2321
SELECT DISTINCT - col0 * col1 / - - ( col0 ) + 34 AS col2 FROM tab0
----
-47
13
33

query I rowsort
SELECT ALL - + 60 * - ( col1 ) * col2 * + + col2 - - - col0 AS col1 FROM tab0 AS cor0
----
10735725
125913
587963

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT DISTINCT - 44 * + - SUM( - col1 ) FROM tab2 cor0
----
-8580

skipif mysql # not compatible
query I rowsort label-2324
SELECT DISTINCT - 44 * + - SUM ( - col1 ) FROM tab2 cor0
----
-8580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2325
SELECT + CAST( NULL AS SIGNED ) / - + col1 / col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2325
SELECT + CAST ( NULL AS INTEGER ) / - + col1 / col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT DISTINCT 53 + COUNT( * ) FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT 53 + COUNT ( * ) FROM tab2
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2327
SELECT + CAST( - 89 AS SIGNED ) FROM tab0
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort label-2327
SELECT + CAST ( - 89 AS INTEGER ) FROM tab0
----
-89
-89
-89

query I rowsort
SELECT DISTINCT 99 + + 49 * - - col2 + col2 AS col1 FROM tab1
----
3049
3499
4899

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 / col1 col2 FROM tab0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 79 - + + col2 FROM tab2
----
-102
-119
-137

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL BETWEEN col0 + 85 + - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2332
SELECT - 61 + + 28 * + col2 + - + CAST( 67 AS SIGNED ) AS col0 FROM tab2 cor0
----
1496
516
992

skipif mysql # not compatible
query I rowsort label-2332
SELECT - 61 + + 28 * + col2 + - + CAST ( 67 AS INTEGER ) AS col0 FROM tab2 cor0
----
1496
516
992

query I rowsort
SELECT - col0 + + + 68 FROM tab0 AS cor0
----
-19
-29
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2334
SELECT 3 + - col0 - + col0, ( - - col1 ) - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-171
NULL
-191
NULL
-27
NULL

skipif mysql # not compatible
query II rowsort label-2334
SELECT 3 + - col0 - + col0, ( - - col1 ) - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-171
NULL
-191
NULL
-27
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( 29 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 BETWEEN - + col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2339
SELECT DISTINCT - - col0 - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2339
SELECT DISTINCT - - col0 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT - COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2340
SELECT - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 cor0
----
-9

query I rowsort
SELECT - 54 * + - col2 + - col0 * + - col1 FROM tab2 AS cor0 WHERE NOT - col1 - col2 IS NULL
----
3588
7088
8157

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT + COUNT( col0 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2342
SELECT + COUNT ( col0 ) FROM tab0 cor0
----
3

query II rowsort
SELECT + 87 * + - 7, + col2 - - - col2 - col0 AS col0 FROM tab2 AS cor0
----
-609
-46
-609
-64
-609
-75

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 36 + col0 + + ( - - col1 ) * + ( + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2345
SELECT DISTINCT MIN( + col2 ) col0, - COUNT( * ) AS col2 FROM tab1 AS cor0
----
59
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2345
SELECT DISTINCT MIN ( + col2 ) col0, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
59
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2346
SELECT col0 DIV - 30 AS col2 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-2346
SELECT col0 / - 30 AS col2 FROM tab2
----
-1
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2347
SELECT CAST( + 80 AS SIGNED ) FROM tab1
----
80
80
80

skipif mysql # not compatible
query I rowsort label-2347
SELECT CAST ( + 80 AS INTEGER ) FROM tab1
----
80
80
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2348
SELECT CAST( NULL AS SIGNED ) * + - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2348
SELECT CAST ( NULL AS INTEGER ) * + - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2349
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) * + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2349
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) * + COUNT ( * ) FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT - SUM( + 99 ) FROM tab2 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-2350
SELECT - SUM ( + 99 ) FROM tab2 AS cor0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT DISTINCT + ( - SUM( ALL - col2 ) ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2351
SELECT DISTINCT + ( - SUM ( ALL - col2 ) ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT 59 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT ALL - 6 + SUM( DISTINCT + ( col0 ) ) FROM tab0
----
193

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL - 6 + SUM ( DISTINCT + ( col0 ) ) FROM tab0
----
193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2354
SELECT col0 * + + col1 * + + ( CAST( - ( + - 68 ) AS SIGNED ) ) + + col2 + - col2 AS col0 FROM tab0 AS cor0
----
124236
6596
82620

skipif mysql # not compatible
query I rowsort label-2354
SELECT col0 * + + col1 * + + ( CAST ( - ( + - 68 ) AS INTEGER ) ) + + col2 + - col2 AS col0 FROM tab0 AS cor0
----
124236
6596
82620

query I rowsort
SELECT ALL - ( + - col1 ) * - - col0 AS col2 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT ALL - ( - ( 27 ) ) FROM tab1 AS cor0
----
27
27
27

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( - 25 ) NOT BETWEEN + col0 AND col1
----

query I rowsort
SELECT ALL ( - + 48 ) AS col2 FROM tab1 AS cor0
----
-48
-48
-48

query I rowsort
SELECT - - col2 * - + 25 AS col0 FROM tab0 cor0
----
-1175
-2475
-250

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT DISTINCT SUM( col0 ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT SUM ( col0 ) FROM tab0 cor0
----
199

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 71 / + col1 / - 82 * - - col0 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2362
SELECT + - COUNT( * ) + + 29 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2362
SELECT + - COUNT ( * ) + + 29 + - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2363
SELECT DISTINCT - CAST( - + 97 AS SIGNED ) AS col2 FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-2363
SELECT DISTINCT - CAST ( - + 97 AS INTEGER ) AS col2 FROM tab1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2364
SELECT ALL 63 + MAX( 41 ) + + AVG ( - CAST( NULL AS SIGNED ) ) * 71 col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2364
SELECT ALL 63 + MAX ( 41 ) + + AVG ( - CAST ( NULL AS INTEGER ) ) * 71 col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + col2 * col1 + col2 AND + col1
----

query I rowsort
SELECT - 69 FROM tab2 WHERE col1 + - - 60 <> col2
----
-69
-69
-69

query I rowsort
SELECT 25 + + col2 * - + col1 AS col0 FROM tab0
----
-185
-3782
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT + 81 * - 35 + + MIN( - col1 ) AS col1 FROM tab1
----
-2882

skipif mysql # not compatible
query I rowsort label-2368
SELECT + 81 * - 35 + + MIN ( - col1 ) AS col1 FROM tab1
----
-2882

query I rowsort
SELECT col2 + + 94 AS col2 FROM tab2
----
117
134
152

onlyif mysql # DIV for integer division: 
query II rowsort label-2370
SELECT DISTINCT col1 + - + col2, - 9 DIV - 33 AS col1 FROM tab1
----
-21
0
-54
0
-82
0

skipif mysql # not compatible
query II rowsort label-2370
SELECT DISTINCT col1 + - + col2, - 9 / - 33 AS col1 FROM tab1
----
-21
0
-54
0
-82
0

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2372
SELECT + 49 - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2372
SELECT + 49 - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT ALL + COUNT( * ) AS col0 FROM tab0, tab2 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL + COUNT ( * ) AS col0 FROM tab0, tab2 cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2374
SELECT ALL + COUNT( * ), COUNT( * ) AS col2 FROM ( tab0 cor0 CROSS JOIN tab1 cor1 )
----
9
9

skipif mysql # not compatible
query II rowsort label-2374
SELECT ALL + COUNT ( * ), COUNT ( * ) AS col2 FROM ( tab0 cor0 CROSS JOIN tab1 cor1 )
----
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT 84 * - COUNT( * ) * 82 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2375
SELECT 84 * - COUNT ( * ) * 82 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2376
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN col2 * - - CAST( NULL AS SIGNED ) * - col2 AND + col0 + - col1
----
0

skipif mysql # not compatible
query I rowsort label-2376
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN col2 * - - CAST ( NULL AS INTEGER ) * - col2 AND + col0 + - col1
----
0

query I rowsort
SELECT + col2 * - col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 + - + 13 + + 29 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col2, col2 * - col0 AS col0 FROM tab1 cor0
----
-59
-5015
-68
-6188
-96
-4896

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT ALL COUNT( ALL col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2379
SELECT ALL COUNT ( ALL col1 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2380
SELECT CAST( + - 22 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-2380
SELECT CAST ( + - 22 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT ALL COUNT( DISTINCT 25 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2381
SELECT ALL COUNT ( DISTINCT 25 ) FROM tab2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2382
SELECT + 80 * - CAST( - COUNT( * ) AS SIGNED ) * + - 41 FROM tab1
----
-9840

skipif mysql # not compatible
query I rowsort label-2382
SELECT + 80 * - CAST ( - COUNT ( * ) AS INTEGER ) * + - 41 FROM tab1
----
-9840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2383
SELECT - CAST( - 39 AS SIGNED ) FROM tab1
----
39
39
39

skipif mysql # not compatible
query I rowsort label-2383
SELECT - CAST ( - 39 AS INTEGER ) FROM tab1
----
39
39
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2384
SELECT COUNT( + col2 ) DIV + 10 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2384
SELECT COUNT ( + col2 ) / + 10 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col2 ) > 21 * - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2386
SELECT col1 DIV + col2 * + col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2386
SELECT col1 / + col2 * + col2 AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( + + col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - 87 ) FROM tab2 AS cor0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2389
SELECT DISTINCT COUNT( * ) * + AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2389
SELECT DISTINCT COUNT ( * ) * + AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 99 + - - col2 col0 FROM tab1 AS cor0
----
-3
-31
-40

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * col2 IS NULL
----

query I rowsort
SELECT 88 + - col1 - - + col1 AS col1 FROM tab0 AS cor0
----
88
88
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2393
SELECT - col2 * - - CAST( + col2 AS SIGNED ) col2 FROM tab0 AS cor0
----
-100
-2209
-9801

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2393
SELECT - col2 * - - CAST ( + col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT ALL MAX( 88 ) col2 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2394
SELECT ALL MAX ( 88 ) col2 FROM tab1 AS cor0
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 * + col1 * + 22 col1 FROM tab1 AS cor0
----
24816
2640
7392

query I rowsort
SELECT ALL + ( + 16 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN 6 AND - col1 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT DISTINCT 51 * - COUNT( * ) FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT 51 * - COUNT ( * ) FROM tab1 AS cor0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT - COUNT( * ) * + 10 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2398
SELECT - COUNT ( * ) * + 10 FROM tab1 AS cor0
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, col1 * - col0 col0 FROM tab0 AS cor0
----
-10
-1827
-47
-1215
-99
-97

query I rowsort
SELECT + 27 * + + col1 FROM tab2 AS cor0
----
1377
1809
2079

query I rowsort
SELECT + 64 * - 56 + + col1 FROM tab0 cor0
----
-3503
-3563
-3583

query II rowsort
SELECT 26 AS col0, + col0 AS col0 FROM tab1
----
26
51
26
85
26
91

query I rowsort
SELECT + - 83 FROM tab1 WHERE NULL IS NULL
----
-83
-83
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-2404
SELECT ALL ( 64 ) * + - 68 * 24 - - + col0 DIV + - col1 FROM tab1
----
-104449
-104451
-104465

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL ( 64 ) * + - 68 * 24 - - + col0 / + - col1 FROM tab1
----
-104449
-104451
-104465

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 52 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 59 IS NULL
----

query I rowsort
SELECT + col1 + + col0 + 5 FROM tab2 AS cor0
----
102
146
147

query I rowsort
SELECT - + col1 + - - 59 FROM tab2 AS cor0
----
-18
-8
8

query I rowsort
SELECT ALL - col2 * + - 13 AS col1 FROM tab2 AS cor0
----
299
520
754

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2410
SELECT + SUM( DISTINCT col0 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2410
SELECT + SUM ( DISTINCT col0 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT col2 FROM tab0 WHERE ( + 54 ) >= - col2
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2412
SELECT * FROM tab2 WHERE NOT - ( 80 ) + col1 * - + col1 + - + col1 <= + col1 - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2412
SELECT * FROM tab2 WHERE NOT - ( 80 ) + col1 * - + col1 + - + col1 <= + col1 - + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2413
SELECT ALL + col1 DIV - - col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL + col1 / - - col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - 82 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE - col1 + + col0 IS NOT NULL
----
51
85
91

query I rowsort
SELECT - col2 AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 38 col1 FROM tab0 cor0
----
-38
-38
-38

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 93 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 12 * col2 FROM tab2 AS cor0
----
-276
-480
-696

query I rowsort
SELECT ALL 53 * - - 57 FROM tab0 AS cor0
----
3021
3021
3021

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT - col2 - + - col1 >= NULL
----

query II rowsort
SELECT DISTINCT - col1, + col1 AS col2 FROM tab1
----
-14
14
-47
47
-5
5

query III rowsort
SELECT ALL * FROM tab1 WHERE 52 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 94 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 * + + col0 col0 FROM tab2
----
4462
6208
7275

query II rowsort
SELECT DISTINCT col1 AS col0, + col2 * - col1 FROM tab1
----
14
-1344
47
-3196
5
-295

query I rowsort
SELECT ALL col2 * + 5 FROM tab0
----
235
495
50

onlyif mysql # DIV for integer division: 
query II rowsort label-2428
SELECT ALL + col0, - col1 - - col1 DIV + - col0 + - - 8 FROM tab1
----
51
-6
85
3
91
-39

skipif mysql # not compatible
query II rowsort label-2428
SELECT ALL + col0, - col1 - - col1 / + - col0 + - - 8 FROM tab1
----
51
-6
85
3
91
-39

query I rowsort
SELECT ( - 44 ) + col2 FROM tab2 AS cor0
----
-21
-4
14

query I rowsort
SELECT - 77 * + col2 FROM tab2 AS cor0
----
-1771
-3080
-4466

query III rowsort
SELECT * FROM tab1 WHERE 14 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2432
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT + ( + 90 ) BETWEEN ( + CAST( NULL AS SIGNED ) ) AND - + 30 )
----

skipif mysql # not compatible
query IIIIII rowsort label-2432
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT + ( + 90 ) BETWEEN ( + CAST ( NULL AS INTEGER ) ) AND - + 30 )
----

query I rowsort
SELECT DISTINCT - 52 AS col2 FROM tab2, tab0 AS cor0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT DISTINCT + ( + - COUNT( * ) ) + - 14 FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-2434
SELECT DISTINCT + ( + - COUNT ( * ) ) + - 14 FROM tab2 AS cor0
----
-17

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2436
SELECT - 80 * + col0 * 77 + col1 + - CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-314242
-523654
-560581

skipif mysql # not compatible
query I rowsort label-2436
SELECT - 80 * + col0 * 77 + col1 + - CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-314242
-523654
-560581

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2437
SELECT + + CAST( NULL AS SIGNED ) * 89 + col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2437
SELECT + + CAST ( NULL AS INTEGER ) * 89 + col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - 38 * - col1 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + + - col2 + - 59 FROM tab2
----
-35
-36
-42

query I rowsort
SELECT col2 + + col1 FROM tab0 WHERE + 13 + + - col2 + - col2 * ( col1 ) / - + 23 IS NOT NULL
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT DISTINCT - MIN( + col0 ) + 62 AS col0 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-2441
SELECT DISTINCT - MIN ( + col0 ) + 62 AS col0 FROM tab2
----
16

query I rowsort
SELECT DISTINCT col0 - ( col2 ) AS col0 FROM tab0
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2443
SELECT - 59 - + + col1 * col2 DIV - col2 FROM tab1 AS cor0
----
-12
-45
-54

skipif mysql # not compatible
query I rowsort label-2443
SELECT - 59 - + + col1 * col2 / - col2 FROM tab1 AS cor0
----
-12
-45
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2444
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ) + MAX( DISTINCT - - 30 ) AS col2 FROM tab0 AS cor0 WHERE + col0 + - - col2 BETWEEN 10 AND ( + - col2 ) - col1 + + - col0 + col1 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2444
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) + MAX ( DISTINCT - - 30 ) AS col2 FROM tab0 AS cor0 WHERE + col0 + - - col2 BETWEEN 10 AND ( + - col2 ) - col1 + + - col0 + col1 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT DISTINCT - COUNT( ALL + + col2 ) * - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT - COUNT ( ALL + + col2 ) * - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

query II rowsort
SELECT ALL 80 AS col0, + col1 * - col1 FROM tab1 AS cor0
----
80
-196
80
-2209
80
-25

query I rowsort
SELECT 44 FROM tab2 AS cor0 WHERE NOT 41 * - col1 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 19 col0 FROM tab1
----
-1615
-1729
-969

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 WHERE NOT + + col2 + + col2 IS NULL
----
-1
-21
-81

query I rowsort
SELECT ALL 64 * - 5 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 4805321d39fca5b798ef14ec8184b028

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 + - 33 <> - col0 + col2
----

query I rowsort
SELECT DISTINCT - + ( - col2 ) * - 38 FROM tab1 AS cor0
----
-2242
-2584
-3648

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT - COUNT( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2453
SELECT - COUNT ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2454
SELECT DISTINCT 24 * ( 9 ) + + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2454
SELECT DISTINCT 24 * ( 9 ) + + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2455
SELECT - CAST( NULL AS DECIMAL ), col1 FROM tab0 cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-2455
SELECT - CAST ( NULL AS REAL ), col1 FROM tab0 cor0
----
NULL
1
NULL
21
NULL
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN - + col2 AND - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2457
SELECT - CAST( COUNT( - ( col2 ) ) AS SIGNED ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2457
SELECT - CAST ( COUNT ( - ( col2 ) ) AS INTEGER ) FROM tab0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col2 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT ALL - MIN( ALL 73 ) FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL - MIN ( ALL 73 ) FROM tab2
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-2460
SELECT ALL + + COUNT( 21 ) AS col2, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-2460
SELECT ALL + + COUNT ( 21 ) AS col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( col2 ) col2 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 51 + 27 + + 24 NOT BETWEEN + 67 * + col1 * - 50 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT + col2 * + col2 + 20 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT ALL + COUNT( ALL - + 98 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2464
SELECT ALL + COUNT ( ALL - + 98 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2465
SELECT CAST( NULL AS SIGNED ) AS col0, 80 * + 39 AS col2 FROM tab2 AS cor0
----
NULL
3120
NULL
3120
NULL
3120

skipif mysql # not compatible
query II rowsort label-2465
SELECT CAST ( NULL AS INTEGER ) AS col0, 80 * + 39 AS col2 FROM tab2 AS cor0
----
NULL
3120
NULL
3120
NULL
3120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2466
SELECT + CAST( NULL AS SIGNED ) * + + MAX( - ( col1 ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2466
SELECT + CAST ( NULL AS INTEGER ) * + + MAX ( - ( col1 ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2467
SELECT 32 DIV - COUNT( * ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2467
SELECT 32 / - COUNT ( * ) FROM tab0 AS cor0
----
-10

query III rowsort
SELECT * FROM tab1 WHERE col2 + 69 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 46 - - 14 * col2 FROM tab2
----
368
606
858

query I rowsort
SELECT ALL + col2 + + + col2 AS col1 FROM tab2
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT - COUNT( ALL 83 ) + - - 44 AS col0 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-2471
SELECT - COUNT ( ALL 83 ) + - - 44 AS col0 FROM tab0
----
41

query I rowsort
SELECT col2 + ( - 39 ) + + col2 FROM tab1
----
153
79
97

query I rowsort
SELECT DISTINCT - - col0 * - 62 AS col1 FROM tab0 AS cor0
----
-5394
-6014
-930

query I rowsort
SELECT + 63 FROM tab2 AS cor0 WHERE NOT - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT ALL 14 * + - COUNT( * ) col2 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2475
SELECT ALL 14 * + - COUNT ( * ) col2 FROM tab0 AS cor0
----
-42

query I rowsort
SELECT ALL + 26 * - col0 FROM tab0 AS cor0
----
-2262
-2522
-390

query I rowsort
SELECT ( + - 95 ) FROM tab2 cor0
----
-95
-95
-95

query I rowsort
SELECT DISTINCT - 77 * - + col2 * + col2 FROM tab1 AS cor0
----
268037
356048
709632

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2479
SELECT DISTINCT - - col0 AS col0 FROM tab1 AS cor0 WHERE NOT - 82 + - CAST( + - col1 AS DECIMAL ) >= col1 + + col1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2479
SELECT DISTINCT - - col0 AS col0 FROM tab1 AS cor0 WHERE NOT - 82 + - CAST ( + - col1 AS REAL ) >= col1 + + col1
----
51
85
91

query I rowsort
SELECT ALL + + 69 * col2 * + col2 AS col2 FROM tab0 AS cor0
----
152421
676269
6900

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT + COUNT( - - 65 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2481
SELECT + COUNT ( - - 65 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2482
SELECT + COUNT( * ) col2, - 70 FROM tab1 AS cor0
----
3
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2482
SELECT + COUNT ( * ) col2, - 70 FROM tab1 AS cor0
----
3
-70

query I rowsort
SELECT DISTINCT - col0 FROM tab0 cor0 WHERE NOT NULL < 99 * + 7 + - 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT DISTINCT + - ( COUNT( * ) ) * + - 45 AS col0 FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT + - ( COUNT ( * ) ) * + - 45 AS col0 FROM tab2 AS cor0
----
135

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 60 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - - col2, + col2 * + col2 * col2 AS col1 FROM tab1 AS cor0
----
59
205379
68
314432
96
884736

query II rowsort
SELECT DISTINCT 87 AS col1, 15 FROM tab0
----
87
15

query I rowsort
SELECT - ( - + 39 ) FROM tab2
----
39
39
39

query III rowsort
SELECT * FROM tab2 WHERE - col2 * - - col0 NOT IN ( - col0 + 14, + 53 + + + 28 ) AND NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT + + ( - COUNT( * ) ) AS col1 FROM tab0 WHERE ( NULL ) IS NOT NULL AND + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2490
SELECT + + ( - COUNT ( * ) ) AS col1 FROM tab0 WHERE ( NULL ) IS NOT NULL AND + col1 IS NOT NULL
----
0

query I rowsort
SELECT 60 + - col2 FROM tab1
----
-36
-8
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT ALL 59 * + - ( + + SUM( DISTINCT 1 ) ) col0 FROM tab0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2492
SELECT ALL 59 * + - ( + + SUM ( DISTINCT 1 ) ) col0 FROM tab0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2493
SELECT * FROM tab1 WHERE + + ( - col1 ) / + CAST( - + 47 AS SIGNED ) = - - col2
----

skipif mysql # not compatible
query III rowsort label-2493
SELECT * FROM tab1 WHERE + + ( - col1 ) / + CAST ( - + 47 AS INTEGER ) = - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2494
SELECT DISTINCT + ( + col2 ) DIV col0 AS col1 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2494
SELECT DISTINCT + ( + col2 ) / col0 AS col1 FROM tab0
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT ( - + SUM( + col2 ) ) + + 19 AS col2 FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-2495
SELECT ( - + SUM ( + col2 ) ) + + 19 AS col2 FROM tab2
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2496
SELECT - col1 FROM tab2 AS cor0 WHERE col0 + - + CAST( - col0 AS SIGNED ) NOT BETWEEN NULL AND + col0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2496
SELECT - col1 FROM tab2 AS cor0 WHERE col0 + - + CAST ( - col0 AS INTEGER ) NOT BETWEEN NULL AND + col0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2497
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) >= - - 40
----

skipif mysql # not compatible
query III rowsort label-2497
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) >= - - 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT ALL + + COUNT( * ) * + + 54 * + - COUNT( * ) FROM tab1 AS cor0
----
-486

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL + + COUNT ( * ) * + + 54 * + - COUNT ( * ) FROM tab1 AS cor0
----
-486

query I rowsort
SELECT - 52 FROM tab0 cor0 WHERE ( - 3 IS NULL )
----

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NOT - 0 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 + + + 87 AS col1 FROM tab1
----
138
172
178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 col1 FROM tab2
----
33

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 81 - + col2 - + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + col1 AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2505
SELECT - CAST( AVG ( - col0 ) AS SIGNED ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2505
SELECT - CAST ( AVG ( - col0 ) AS INTEGER ) FROM tab0 AS cor0
----
66

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2506
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN CAST( 17 AS DECIMAL ) AND - + col2 + + - col2 * - ( - 49 )
----

skipif mysql # not compatible
query III rowsort label-2506
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN CAST ( 17 AS REAL ) AND - + col2 + + - col2 * - ( - 49 )
----

query I rowsort
SELECT col0 + col0 FROM tab0 cor0 WHERE NOT + col2 NOT IN ( + 46 * - ( - + 11 ), - col0 - + + col0, col0, - ( - 13 ), + + ( - + ( + col2 ) ) * + col0 )
----

query I rowsort
SELECT DISTINCT - ( 6 ) FROM tab0 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 28 col2 FROM tab1 AS cor0
----
-28
-28
-28

query I rowsort
SELECT col1 - + 95 AS col2 FROM tab2
----
-18
-28
-44

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - 89 / - 75 AND 53
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2512
SELECT col2 + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 WHERE - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2512
SELECT col2 + CAST ( NULL AS REAL ) AS col2 FROM tab2 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT - COUNT( * ) * MIN( 68 ) FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-2513
SELECT - COUNT ( * ) * MIN ( 68 ) FROM tab1
----
-204

query I rowsort
SELECT DISTINCT 31 - ( - col2 + 48 ) FROM tab2
----
23
41
6

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT ( - col2 ) >= ( + 47 )
----
-14
-47
-5

query III rowsort
SELECT * FROM tab2 WHERE NOT + 35 NOT BETWEEN - col0 AND - 39
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN ( NULL ) AND ( - 58 )
----

query I rowsort
SELECT DISTINCT - 91 * + col2 FROM tab2
----
-2093
-3640
-5278

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT ALL COUNT( DISTINCT + 10 ) * - COUNT( * ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL COUNT ( DISTINCT + 10 ) * - COUNT ( * ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT ALL - 32 * + ( - COUNT( * ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2520
SELECT ALL - 32 * + ( - COUNT ( * ) ) FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT ALL - ( + 34 ) * - COUNT( * ) FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL - ( + 34 ) * - COUNT ( * ) FROM tab0
----
102

query I rowsort
SELECT col1 * + 30 + ( col1 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
2511
31
651

query I rowsort
SELECT AVG ( ALL 82 ) AS col0 FROM tab1 WHERE NOT 72 + 29 NOT BETWEEN NULL AND ( + col2 )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * - 70 IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( col2 ) * + col2 AS col1 FROM tab0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT + 9 + + COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-2526
SELECT + 9 + + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
9

query I rowsort
SELECT + col1 + - 66 AS col2 FROM tab1 AS cor0
----
-19
-52
-61

query I rowsort
SELECT 34 + col2 AS col1 FROM tab2
----
57
74
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT DISTINCT + SUM( ALL - 68 ) FROM ( tab1 AS cor0 CROSS JOIN tab0 )
----
-612

skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT + SUM ( ALL - 68 ) FROM ( tab1 AS cor0 CROSS JOIN tab0 )
----
-612

query I rowsort
SELECT ALL + 92 * + col2 AS col0 FROM tab0 WHERE ( - col2 * - col0 ) IS NOT NULL
----
4324
9108
920

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT DISTINCT - COUNT( ALL - col2 ) + + COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT - COUNT ( ALL - col2 ) + + COUNT ( * ) AS col1 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 + - col0 IS NULL
----

query I rowsort
SELECT 33 * - col1 FROM tab0 WHERE ( col2 ) IS NOT NULL
----
-2673
-33
-693

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 13 * col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 col0 FROM tab2 AS cor0 WHERE ( + col0 ) IS NOT NULL
----
53
53
53

query I rowsort
SELECT ALL col2 - 62 * col2 FROM tab1 AS cor0
----
-3599
-4148
-5856

query I rowsort
SELECT + col1 - - 2 AS col1 FROM tab1 AS cor0
----
16
49
7

query I rowsort
SELECT ALL + col2 / + col2 AS col1 FROM tab1 cor0 WHERE col1 - col1 / + col0 IS NULL
----

query I rowsort
SELECT - col1 - 74 * + col1 AS col0 FROM tab0 AS cor0
----
-1575
-6075
-75

query I rowsort
SELECT + 64 * col0 - 10 FROM tab2 AS cor0
----
2934
4086
4790

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 32 + + 0 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 NOT BETWEEN ( col0 ) AND + col1 * 88
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + AVG ( ALL 12 ) + 41 col1 FROM tab2 WHERE ( NULL ) NOT BETWEEN + col1 AND + col2 * ( col2 * + 72 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 82 IN ( 62 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2545
SELECT DISTINCT 61 DIV - SUM( DISTINCT 3 ) FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-2545
SELECT DISTINCT 61 / - SUM ( DISTINCT 3 ) FROM tab0
----
-20

query I rowsort
SELECT - 98 AS col0 FROM tab0 WHERE NOT ( - col0 ) NOT BETWEEN + col2 AND col0 * + 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT + MIN( ALL col1 ) col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2547
SELECT + MIN ( ALL col1 ) col2 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2548
SELECT ALL CAST( NULL AS DECIMAL ) + COUNT( * ) col2 FROM tab1 cor0 WHERE - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2548
SELECT ALL CAST ( NULL AS REAL ) + COUNT ( * ) col2 FROM tab1 cor0 WHERE - col0 IS NOT NULL
----
NULL

query I rowsort
SELECT - col0 * col2 FROM tab0 WHERE NOT 14 < - col2 * col1
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + + 58 NOT IN ( col2 * col0 )
----

query II rowsort
SELECT ALL col1, 40 - + - col2 AS col1 FROM tab1
----
14
136
47
108
5
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2552
SELECT col2 DIV - col1 + - + col1 + - 41 FROM tab1 AS cor0
----
-57
-61
-89

skipif mysql # not compatible
query I rowsort label-2552
SELECT col2 / - col1 + - + col1 + - 41 FROM tab1 AS cor0
----
-57
-61
-89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2553
SELECT * FROM tab2 AS cor0 WHERE NOT 44 / - col1 + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2553
SELECT * FROM tab2 AS cor0 WHERE NOT 44 / - col1 + - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL - 55 AS col0 FROM tab2 AS cor0 WHERE NOT - 37 BETWEEN + col0 AND 42
----
-55
-55
-55

query I rowsort
SELECT DISTINCT - 58 * + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1334
-2320
-3364

query II rowsort
SELECT - + 71 AS col0, col2 AS col0 FROM tab2 AS cor0
----
-71
23
-71
40
-71
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT COUNT( * ) AS col1 FROM tab1 cor0 WHERE - col2 <> NULL OR NOT col2 BETWEEN NULL AND ( - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-2557
SELECT COUNT ( * ) AS col1 FROM tab1 cor0 WHERE - col2 <> NULL OR NOT col2 BETWEEN NULL AND ( - col0 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT DISTINCT - ( - MAX( - - col2 ) ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2558
SELECT DISTINCT - ( - MAX ( - - col2 ) ) AS col2 FROM tab1 AS cor0
----
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 * - 14 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * 52 * 82 + - - 35 FROM tab2
----
196179
272931
319835

onlyif mysql # DIV for integer division: 
query I rowsort label-2561
SELECT DISTINCT - col0 DIV - col0 + col1 * + col2 FROM tab2 WHERE NULL IS NULL
----
1174
3081
3887

skipif mysql # not compatible
query I rowsort label-2561
SELECT DISTINCT - col0 / - col0 + col1 * + col2 FROM tab2 WHERE NULL IS NULL
----
1174
3081
3887

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 + - col2 col1 FROM tab1
----
-32
-4
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2563
SELECT ( - CAST( NULL AS DECIMAL ) ) + + COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2563
SELECT ( - CAST ( NULL AS REAL ) ) + + COUNT ( * ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL 11 + col2 FROM tab1
----
107
70
79

query III rowsort
SELECT * FROM tab2 WHERE 55 * + 70 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 70 + - 59 FROM tab0
----
11

query I rowsort
SELECT - 99 + col2 FROM tab2
----
-41
-59
-76

query I rowsort
SELECT col1 * + - col2 + + col1 + 88 + 55 FROM tab2
----
-2860
-3676
-979

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 * - - 31 col0 FROM tab1
----
2077
2077
2077

query I rowsort
SELECT ALL 94 AS col1 FROM tab1 cor0 WHERE + 18 + - - 76 IN ( - - col0 / col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 72 col2 FROM tab0 AS cor0
----
-72

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT NULL >= col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( NOT ( - col0 ) IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT + - ( COUNT( * ) ) - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-18

skipif mysql # not compatible
query I rowsort label-2574
SELECT + - ( COUNT ( * ) ) - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-18

query III rowsort
SELECT * FROM tab2 WHERE - 58 * + col0 + + - col1 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2576
SELECT - 99 - + 20 + + 4 - + CAST( - col1 AS SIGNED ) AS col0 FROM tab2
----
-38
-48
-64

skipif mysql # not compatible
query I rowsort label-2576
SELECT - 99 - + 20 + + 4 - + CAST ( - col1 AS INTEGER ) AS col0 FROM tab2
----
-38
-48
-64

query I rowsort
SELECT + col2 + + 99 FROM tab0 AS cor0
----
109
146
198

query I rowsort
SELECT ALL - - 45 AS col1 FROM tab1 AS cor0
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2579
SELECT ALL + 23 - - + CAST( - 48 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL + 23 - - + CAST ( - 48 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 55 * + col1 + col0 FROM tab0 AS cor0
----
-1068
-4440
42

query I rowsort
SELECT - col0 * + ( - - 35 ) + 20 AS col0 FROM tab2 AS cor0
----
-1590
-2220
-2605

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + - 39 + + - col2 col0 FROM tab0 AS cor0
----
-138
-3206
-829

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 >= + + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2584
SELECT 18, - ( + COUNT( * ) ) * ( + 13 ) * + COUNT( * ) AS col0 FROM tab2
----
18
-117

skipif mysql # not compatible
query II rowsort label-2584
SELECT 18, - ( + COUNT ( * ) ) * ( + 13 ) * + COUNT ( * ) AS col0 FROM tab2
----
18
-117

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * 88 + + - 1 * - col2 NOT BETWEEN 3 AND NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col1, 55 FROM tab0
----
-10
55
-47
55
-99
55

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT ( + col1 ) IS NULL
----
-15
-87
-97

query I rowsort
SELECT 30 * + - 20 FROM tab0
----
-600
-600
-600

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT 85 IS NULL )
----

query II rowsort
SELECT DISTINCT + 17, - col1 AS col0 FROM tab0 AS cor0
----
17
-1
17
-21
17
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2591
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) <> + ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-2591
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) <> + ( + col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2592
SELECT col1 AS col0 FROM tab0 WHERE NOT CAST( NULL AS DECIMAL ) + 47 IN ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-2592
SELECT col1 AS col0 FROM tab0 WHERE NOT CAST ( NULL AS REAL ) + 47 IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT ALL - 94 * MAX( DISTINCT - 51 ) col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
4794

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2593
SELECT ALL - 94 * MAX ( DISTINCT - 51 ) col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
4794

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT DISTINCT + - COUNT( + + col2 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT + - COUNT ( + + col2 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 71 + - - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 / + col0 + 22 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 28 * + col2 * - col2 <= - - col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 38 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 * + col0 + + + col1 - - 73 + + - col0 * col1 * col1 IN ( + 13 + 48 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2599
SELECT + + col1 DIV + + 43 + - col0 FROM tab1 AS cor0
----
-51
-85
-90

skipif mysql # not compatible
query I rowsort label-2599
SELECT + + col1 / + + 43 + - col0 FROM tab1 AS cor0
----
-51
-85
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT MAX( - 78 ) - + 78 - + SUM( + col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2600
SELECT MAX ( - 78 ) - + 78 - + SUM ( + col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 - - ( + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2602
SELECT - 29 AS col2, MAX( ALL + col2 ) FROM tab2
----
-29
58

skipif mysql # not compatible
query II rowsort label-2602
SELECT - 29 AS col2, MAX ( ALL + col2 ) FROM tab2
----
-29
58

query I rowsort
SELECT DISTINCT - 3 + - - col0 FROM tab0
----
12
84
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2604
SELECT DISTINCT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) = 50
----

skipif mysql # not compatible
query III rowsort label-2604
SELECT DISTINCT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) = 50
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2605
SELECT ALL ( + - col2 ) DIV col1 + + 20 + - 19 FROM tab0
----
-98
1
1

skipif mysql # not compatible
query I rowsort label-2605
SELECT ALL ( + - col2 ) / col1 + + 20 + - 19 FROM tab0
----
-98
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2606
SELECT DISTINCT col0 - + CAST( NULL AS DECIMAL ) + + col1 * - + col2 / + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2606
SELECT DISTINCT col0 - + CAST ( NULL AS REAL ) + + col1 * - + col2 / + col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2607
SELECT - + col1 + + 25 * - 99 + - + 95 DIV col2 AS col2 FROM tab2 AS cor0
----
-2530
-2543
-2554

skipif mysql # not compatible
query I rowsort label-2607
SELECT - + col1 + + 25 * - 99 + - + 95 / col2 AS col2 FROM tab2 AS cor0
----
-2530
-2543
-2554

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT - ( + - COUNT( * ) ) FROM tab0 AS cor0 WHERE NULL <> ( - 1 )
----
0

skipif mysql # not compatible
query I rowsort label-2608
SELECT - ( + - COUNT ( * ) ) FROM tab0 AS cor0 WHERE NULL <> ( - 1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2609
SELECT + - ( - 64 ) + + - CAST( col0 AS SIGNED ) FROM tab0 cor0
----
-23
-33
49

skipif mysql # not compatible
query I rowsort label-2609
SELECT + - ( - 64 ) + + - CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
-23
-33
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT DISTINCT COUNT( * ) * - 37 FROM tab0 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-2610
SELECT DISTINCT COUNT ( * ) * - 37 FROM tab0 AS cor0
----
-111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2611
SELECT - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2611
SELECT - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab1 WHERE ( ( ( ( 9 ) IS NULL ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2613
SELECT + CAST( + - SUM( 47 ) AS SIGNED ) FROM tab0
----
-141

skipif mysql # not compatible
query I rowsort label-2613
SELECT + CAST ( + - SUM ( 47 ) AS INTEGER ) FROM tab0
----
-141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2614
SELECT ( - 69 ) * col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-2614
SELECT ( - 69 ) * col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 * + col2 * - 0 + - + col0 + + 56, 48 * + - col2 col0 FROM tab2 AS cor0
----
-19
-2784
-8
-1920
10
-1104

query I rowsort
SELECT DISTINCT - col1 * - 94 * + col2 FROM tab2 AS cor0
----
110262
289520
365284

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + col2 ) col1 FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + col2 * - + col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col0 + col0 NOT BETWEEN 25 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT - + SUM( - + col2 ) * 61 * + 71 FROM tab1 AS cor0
----
965813

skipif mysql # not compatible
query I rowsort label-2620
SELECT - + SUM ( - + col2 ) * 61 * + 71 FROM tab1 AS cor0
----
965813

query II rowsort
SELECT DISTINCT - col0 * - + col2, col0 FROM tab1 AS cor0
----
4896
51
5015
85
6188
91

query I rowsort
SELECT - col0 * - - 28 AS col1 FROM tab2
----
-1288
-1792
-2100

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2623
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * col0 * + + col0 + 45 IN ( col1 * - CAST( col2 AS SIGNED ) * col1 )
----

skipif mysql # not compatible
query III rowsort label-2623
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * col0 * + + col0 + 45 IN ( col1 * - CAST ( col2 AS INTEGER ) * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT + MIN( DISTINCT - + col1 ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2624
SELECT + MIN ( DISTINCT - + col1 ) AS col2 FROM tab0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2625
SELECT + 79 DIV + + col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2625
SELECT + 79 / + + col2 FROM tab1
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT NULL > - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2627
SELECT + AVG ( ALL - CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2627
SELECT + AVG ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2628
SELECT CAST( - + 56 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-56
-56
-56

skipif mysql # not compatible
query I rowsort label-2628
SELECT CAST ( - + 56 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-56
-56
-56

query I rowsort
SELECT DISTINCT 39 * col0 AS col1 FROM tab0 AS cor0
----
3393
3783
585

query I rowsort
SELECT DISTINCT - 24 + - - 17 * - - col2 * + 99 AS col1 FROM tab0
----
166593
16806
79077

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2631
SELECT * FROM tab0 WHERE ( - col0 - + col1 + + 15 + + col1 + - CAST( - col2 AS SIGNED ) + + + col0 * + - col0 + - - col0 * 6 / 84 ) > ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2631
SELECT * FROM tab0 WHERE ( - col0 - + col1 + + 15 + + col1 + - CAST ( - col2 AS INTEGER ) + + + col0 * + - col0 + - - col0 * 6 / 84 ) > ( NULL )
----

query I rowsort
SELECT DISTINCT 98 * + 34 AS col1 FROM tab0
----
3332

query I rowsort
SELECT DISTINCT - col1 * col2 + col1 + - ( + col0 ) * - - 49 AS col1 FROM tab0 AS cor0
----
-4452
-4461
-4851

query I rowsort
SELECT ALL + - col0 * + 77 FROM tab2 AS cor0
----
-3542
-4928
-5775

query I rowsort
SELECT DISTINCT - 14 AS col2 FROM tab2 AS cor0 WHERE 37 <= NULL
----

query I rowsort
SELECT col2 * + ( - 34 ) + - col2 AS col2 FROM tab1
----
-2065
-2380
-3360

query I rowsort
SELECT + ( - 45 ) AS col2 FROM tab0
----
-45
-45
-45

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE - - col2 IS NULL
----

query I rowsort
SELECT ALL + 75 + col0 AS col0 FROM tab2
----
121
139
150

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT - - ( + + MAX( ALL col2 ) ) AS col0 FROM tab2 WHERE + col0 + - 1 * 97 * col0 / + ( - col1 ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2640
SELECT - - ( + + MAX ( ALL col2 ) ) AS col0 FROM tab2 WHERE + col0 + - 1 * 97 * col0 / + ( - col1 ) <= NULL
----
NULL

query I rowsort
SELECT ALL - ( + + col1 ) - + + ( col2 ) * - col1 AS col2 FROM tab2 WHERE - col1 + + col1 BETWEEN - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 + - 3 col0 FROM tab1
----
-45

query I rowsort
SELECT col0 - - 37 AS col0 FROM tab0
----
124
134
52

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 BETWEEN + col2 + - + col2 + + + 9 * - 74 * - - col2 * 58 AND - ( - col1 ) + + 57 + col0
----

query II rowsort
SELECT + col2 AS col2, 66 * + + col0 - + ( - col1 ) FROM tab1
----
59
5615
68
6053
96
3380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2646
SELECT + COUNT( * ) * + COUNT( ALL + 58 ) DIV - COUNT( * ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2646
SELECT + COUNT ( * ) * + COUNT ( ALL + 58 ) / - COUNT ( * ) AS col1 FROM tab2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2647
SELECT ALL - MIN( ALL + ( + - CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2647
SELECT ALL - MIN ( ALL + ( + - CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN 83 * + col2 AND - - col0 + - - col2
----

query I rowsort
SELECT DISTINCT + - col2 * + + col0 FROM tab1 cor0
----
-4896
-5015
-6188

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query II rowsort label-2651
SELECT + col0, - col2 DIV + + 33 FROM tab1 AS cor0
----
51
-2
85
-1
91
-2

skipif mysql # not compatible
query II rowsort label-2651
SELECT + col0, - col2 / + + 33 FROM tab1 AS cor0
----
51
-2
85
-1
91
-2

query I rowsort
SELECT ALL col2 FROM tab1 WHERE ( col2 ) >= NULL
----

query I rowsort
SELECT + col1 * - 0 * - col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT DISTINCT + COUNT( ALL - + col2 ) * 93 FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-2654
SELECT DISTINCT + COUNT ( ALL - + col2 ) * 93 FROM tab1
----
279

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2655
SELECT - CAST( NULL AS DECIMAL ) * + col0 * - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2655
SELECT - CAST ( NULL AS REAL ) * + col0 * - col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + 83 < - - 97
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2657
SELECT ALL + - col2 DIV + 65 - + col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL + - col2 / + 65 - + col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab0 AS cor0 WHERE - col1 < NULL
----

query I rowsort
SELECT - - 7 + 60 AS col2 FROM tab2 AS cor0
----
67
67
67

query I rowsort
SELECT ALL + 31 + + col1 * col2 + - - col1 AS col0 FROM tab0
----
131
262
3919

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT - 26 + + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-17

skipif mysql # not compatible
query I rowsort label-2661
SELECT - 26 + + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2662
SELECT ALL + CAST( NULL AS SIGNED ) + ( + + COUNT( * ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL + CAST ( NULL AS INTEGER ) + ( + + COUNT ( * ) ) FROM tab2
----
NULL

query I rowsort
SELECT ALL col1 - + col0 + - + col1 + - - col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2664
SELECT - col2 * + col1 - - - CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-198
-220
-3854

skipif mysql # not compatible
query I rowsort label-2664
SELECT - col2 * + col1 - - - CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-198
-220
-3854

query I rowsort
SELECT + 78 * col2 + + col0 * + col0 FROM tab0 AS cor0
----
17131
3891
8349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2666
SELECT + - col0 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2666
SELECT + - col0 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2667
SELECT - + 53, - 7 * ( - COUNT( * ) ) + + - 20 DIV - + MAX( ALL - 20 ) AS col0 FROM tab1 AS cor0
----
-53
20

skipif mysql # not compatible
query II rowsort label-2667
SELECT - + 53, - 7 * ( - COUNT ( * ) ) + + - 20 / - + MAX ( ALL - 20 ) AS col0 FROM tab1 AS cor0
----
-53
20

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 14 <= + ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT - COUNT( ALL - col2 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2669
SELECT - COUNT ( ALL - col2 ) FROM tab2 cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 55 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 + + col2 * + 85 col0 FROM tab0
----
4078
8498
933

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT ALL 68 + + COUNT( * ) AS col0 FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL 68 + + COUNT ( * ) AS col0 FROM tab2
----
71

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE + col1 NOT BETWEEN col2 AND + - col1
----
46
64
75

query I rowsort
SELECT ALL + 84 * + col2 + col2 FROM tab1
----
5015
5780
8160

query I rowsort
SELECT DISTINCT 22 * + col0 + + 31 AS col0 FROM tab0
----
1945
2165
361

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + ( + col2 ) col1 FROM tab1
----
144
147
159

onlyif mysql # DIV for integer division: 
query I rowsort label-2677
SELECT - - col0 DIV - col0 AS col2 FROM tab1 AS cor0 WHERE - 71 IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2677
SELECT - - col0 / - col0 AS col2 FROM tab1 AS cor0 WHERE - 71 IS NOT NULL
----
-1
-1
-1

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT - 19 IS NULL
----
-10
-47
-99

query I rowsort
SELECT ALL - 92 AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * - - 47 + - + ( - col2 ) + col0 / - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2681
SELECT - CAST( NULL AS SIGNED ) / + 35 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2681
SELECT - CAST ( NULL AS INTEGER ) / + 35 col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT - - MAX( ALL + ( + + col0 ) ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2682
SELECT - - MAX ( ALL + ( + + col0 ) ) FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT DISTINCT + + ( COUNT( - col0 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2683
SELECT DISTINCT + + ( COUNT ( - col0 ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + 43 * + 99 FROM tab2 AS cor0
----
4257
4257
4257

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT - - COUNT( DISTINCT - ( 92 ) ) AS col1 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2685
SELECT - - COUNT ( DISTINCT - ( 92 ) ) AS col1 FROM tab0 cor0
----
1

query I rowsort
SELECT - - 33 AS col1 FROM tab0 AS cor0
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 64 col0 FROM tab2 cor0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT ALL COUNT( ALL - ( + + 29 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2688
SELECT ALL COUNT ( ALL - ( + + 29 ) ) AS col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE - col2 > + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2690
SELECT + 7 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2690
SELECT + 7 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT ALL COUNT( * ) * - - 41 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-2691
SELECT ALL COUNT ( * ) * - - 41 FROM tab2
----
123

query I rowsort
SELECT + col1 + - ( - - col0 ) FROM tab2
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2693
SELECT * FROM tab2 WHERE NOT col1 NOT BETWEEN - + col2 + + col2 + - CAST( NULL AS SIGNED ) AND ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-2693
SELECT * FROM tab2 WHERE NOT col1 NOT BETWEEN - + col2 + + col2 + - CAST ( NULL AS INTEGER ) AND ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2694
SELECT + ( + 13 ) + - 32 + - col2 DIV - col2 AS col1 FROM tab2
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-2694
SELECT + ( + 13 ) + - 32 + - col2 / - col2 AS col1 FROM tab2
----
-18
-18
-18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2695
SELECT ALL * FROM tab1 WHERE NOT - - CAST( NULL AS SIGNED ) * - 58 / - - col2 - - 19 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2695
SELECT ALL * FROM tab1 WHERE NOT - - CAST ( NULL AS INTEGER ) * - 58 / - - col2 - - 19 IS NULL
----

query I rowsort
SELECT ALL col1 * col0 * - col0 * - col0 + - col0 FROM tab0
----
13828476
273360
912576

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND col0 * + col1 + - col0
----

query I rowsort
SELECT DISTINCT + 69 + + col1 AS col0 FROM tab0
----
150
70
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT - 38 - + COUNT( * ) * - COUNT( * ) AS col1 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-2699
SELECT - 38 - + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0
----
-29

query I rowsort
SELECT col1 * - 51 * + 64 - + + col2 * + col1 FROM tab1
----
-156604
-16615
-47040

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2701
SELECT - CAST( NULL AS DECIMAL ) + + - 96 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2701
SELECT - CAST ( NULL AS REAL ) + + - 96 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2702
SELECT DISTINCT col0 - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT col0 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + + 10 = NULL )
----

query I rowsort
SELECT DISTINCT + 96 + - + ( col0 ) AS col1 FROM tab1 AS cor0
----
11
45
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2705
SELECT - AVG ( DISTINCT - col1 ) / - COUNT( * ) + - + ( + COUNT( * ) ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2705
SELECT - AVG ( DISTINCT - col1 ) / - COUNT ( * ) + - + ( + COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2706
SELECT col1 DIV 54 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2706
SELECT col1 / 54 AS col1 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT + COUNT( * ) FROM tab0 WHERE + 18 <= - + 20
----
0

skipif mysql # not compatible
query I rowsort label-2707
SELECT + COUNT ( * ) FROM tab0 WHERE + 18 <= - + 20
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 + + col1 * - 77 AS col2, col2 col1 FROM tab2
----
-3904
23
-5101
58
-5889
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT MAX( ALL 43 ) col1 FROM tab1
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2709
SELECT MAX ( ALL 43 ) col1 FROM tab1
----
43

query I rowsort
SELECT ALL 25 + 62 FROM tab2
----
87
87
87

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 70 NOT BETWEEN NULL AND - col1
----
15
81
47

query I rowsort
SELECT ALL - ( + + col1 ) FROM tab0 cor0
----
-1
-21
-81

query II rowsort
SELECT + + 29, col2 AS col2 FROM tab0 AS cor0
----
29
10
29
47
29
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2714
SELECT + 82 * + CAST( NULL AS DECIMAL ) * + CAST( + MAX( DISTINCT + col2 ) AS SIGNED ) * - 1 + + 44 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2714
SELECT + 82 * + CAST ( NULL AS REAL ) * + CAST ( + MAX ( DISTINCT + col2 ) AS INTEGER ) * - 1 + + 44 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 96 * - col1 FROM tab2
----
4896
6432
7392

query I rowsort
SELECT 18 FROM tab1 WHERE NOT col2 IN ( - 13 * + col0 + - 42, + 15 * col0 + + - ( 40 ) / + 36 + + col1, 23, - col2 )
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT ALL + + COUNT( * ) + - 62 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 47 - - 50 > NULL
----
-62

skipif mysql # not compatible
query I rowsort label-2717
SELECT ALL + + COUNT ( * ) + - 62 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 47 - - 50 > NULL
----
-62

query II rowsort
SELECT DISTINCT col1 AS col0, ( - 13 ) FROM tab0 cor0
----
1
-13
21
-13
81
-13

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2720
SELECT - col1 FROM tab1 AS cor0 WHERE NOT - col2 > - - 8 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2720
SELECT - col1 FROM tab1 AS cor0 WHERE NOT - col2 > - - 8 * + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 17 ) * - col1 col0 FROM tab0 AS cor0
----
-1377
-17
-357

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 13 col0 FROM tab0 cor0
----
-13

query II rowsort
SELECT ALL + col2, col1 AS col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query II rowsort
SELECT 21, 36 AS col0 FROM tab1 AS cor0
----
21
36
21
36
21
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2725
SELECT + MAX( ALL + col0 ) AS col2 FROM tab2 cor0 WHERE NOT + CAST( + col2 AS SIGNED ) * 63 BETWEEN - - 27 + 7 + col0 * 88 / col2 * - 37 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2725
SELECT + MAX ( ALL + col0 ) AS col2 FROM tab2 cor0 WHERE NOT + CAST ( + col2 AS INTEGER ) * 63 BETWEEN - - 27 + 7 + col0 * 88 / col2 * - 37 AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2726
SELECT DISTINCT + CAST( col1 AS SIGNED ) AS col0, col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

skipif mysql # not compatible
query II rowsort label-2726
SELECT DISTINCT + CAST ( col1 AS INTEGER ) AS col0, col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT - + COUNT( DISTINCT + ( + - col1 ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2727
SELECT - + COUNT ( DISTINCT + ( + - col1 ) ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT - SUM( DISTINCT - 80 ) AS col0 FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-2728
SELECT - SUM ( DISTINCT - 80 ) AS col0 FROM tab0 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT ALL 35 + + COUNT( * ) FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-2729
SELECT ALL 35 + + COUNT ( * ) FROM tab0 AS cor0
----
38

query III rowsort
SELECT * FROM tab2 WHERE NOT + 34 + + + col0 <> + col2
----

query I rowsort
SELECT DISTINCT + col2 + - 36 FROM tab2
----
-13
22
4

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 + + col1 <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + + ( + col2 ) AND + - col2 * col1 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2734
SELECT DISTINCT CAST( 91 AS SIGNED ) + + + col0 FROM tab2
----
137
155
166

skipif mysql # not compatible
query I rowsort label-2734
SELECT DISTINCT CAST ( 91 AS INTEGER ) + + + col0 FROM tab2
----
137
155
166

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + + col2 IS NOT NULL
----

query II rowsort
SELECT col1 * + col1, + col2 * - - col2 AS col1 FROM tab0
----
1
9801
441
100
6561
2209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 26 ) col0 FROM tab0
----
-26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2738
SELECT ALL - 26 - col1 AS col0 FROM tab0 WHERE NOT 52 * - col0 + + 56 * ( 8 ) + + 96 = - + col1 / - - 90 + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-2738
SELECT ALL - 26 - col1 AS col0 FROM tab0 WHERE NOT 52 * - col0 + + 56 * ( 8 ) + + 96 = - + col1 / - - 90 + + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2739
SELECT DISTINCT COUNT( DISTINCT col2 ) AS col1, - MAX( ALL - col2 ) FROM tab1 AS cor0
----
3
59

skipif mysql # not compatible
query II rowsort label-2739
SELECT DISTINCT COUNT ( DISTINCT col2 ) AS col1, - MAX ( ALL - col2 ) FROM tab1 AS cor0
----
3
59

onlyif mysql # DIV for integer division: 
query I rowsort label-2740
SELECT - 44 + - 44 DIV - - col2 AS col1 FROM tab2 AS cor0
----
-44
-45
-45

skipif mysql # not compatible
query I rowsort label-2740
SELECT - 44 + - 44 / - - col2 AS col1 FROM tab2 AS cor0
----
-44
-45
-45

query I rowsort
SELECT col2 * + - col0 + + - col2 + - col2 AS col2 FROM tab1 WHERE - + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2742
SELECT 86 DIV + 66 - 29 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

skipif mysql # not compatible
query I rowsort label-2742
SELECT 86 / + 66 - 29 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

onlyif mysql # aggregate syntax: 
query II rowsort label-2743
SELECT COUNT( * ) AS col1, 48 FROM tab2
----
3
48

skipif mysql # not compatible
query II rowsort label-2743
SELECT COUNT ( * ) AS col1, 48 FROM tab2
----
3
48

onlyif mysql # DIV for integer division: 
query I rowsort label-2744
SELECT DISTINCT + - col2 - col1 DIV col2 * + col1 AS col2 FROM tab0 AS cor0
----
-128
-52
-99

skipif mysql # not compatible
query I rowsort label-2744
SELECT DISTINCT + - col2 - col1 / col2 * + col1 AS col2 FROM tab0 AS cor0
----
-128
-52
-99

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT col0 / + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 24 <= ( - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2747
SELECT DISTINCT CAST( NULL AS SIGNED ) * - SUM( + + 75 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2747
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - SUM ( + + 75 ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT DISTINCT + + 45 - COUNT( * ) FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-2748
SELECT DISTINCT + + 45 - COUNT ( * ) FROM tab2 AS cor0
----
42

query I rowsort
SELECT ALL + + col1 * 16 FROM tab0 AS cor0
----
1296
16
336

query I rowsort
SELECT DISTINCT - 31 * - col2 * - 52 AS col0 FROM tab2
----
-37076
-64480
-93496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 - col1 + + 49 col0 FROM tab0
----
102
22
82

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT + - col0 BETWEEN col0 AND col2
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) col0 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT ALL COUNT( * ) * - 13 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-2754
SELECT ALL COUNT ( * ) * - 13 FROM tab0 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT + MAX( 63 ) AS col1 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-2755
SELECT + MAX ( 63 ) AS col1 FROM tab2 AS cor0
----
63

query I rowsort
SELECT DISTINCT + col2 * + col0 * + + 11 FROM tab1 AS cor0
----
53856
55165
68068

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT COUNT( * ) * + 78 FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-2757
SELECT COUNT ( * ) * + 78 FROM tab0 AS cor0
----
234

query I rowsort
SELECT - 18 * + col2 AS col0 FROM tab2 AS cor0
----
-1044
-414
-720

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT DISTINCT + 35 - - COUNT( * ) - + 63 AS col0 FROM tab1 WHERE - 76 + - col1 IS NULL
----
-28

skipif mysql # not compatible
query I rowsort label-2760
SELECT DISTINCT + 35 - - COUNT ( * ) - + 63 AS col0 FROM tab1 WHERE - 76 + - col1 IS NULL
----
-28

query I rowsort
SELECT ALL col2 + 38 FROM tab0
----
137
48
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT DISTINCT MAX( DISTINCT + col1 ) + + + COUNT( * ) * ( + 28 ) + - ( + 6 ) FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-2762
SELECT DISTINCT MAX ( DISTINCT + col1 ) + + + COUNT ( * ) * ( + 28 ) + - ( + 6 ) FROM tab0
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-2763
SELECT col1 * 10 DIV + 2 + col2 + - col0 FROM tab1
----
-1
115
212

skipif mysql # not compatible
query I rowsort label-2763
SELECT col1 * 10 / + 2 + col2 + - col0 FROM tab1
----
-1
115
212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2764
SELECT CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2764
SELECT CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 3 + - col2 AS col1 FROM tab1
----
-62
-71
-99

query II rowsort
SELECT DISTINCT col0 AS col0, + col1 * - col1 FROM tab0
----
15
-6561
87
-441
97
-1

query II rowsort
SELECT col1, 40 AS col2 FROM tab2 AS cor0
----
51
40
67
40
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + + ( + col0 ) + + col2 + - 45 col0 FROM tab1
----
14
23
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2769
SELECT 54 DIV + 80 + + 36 FROM tab2
----
36
36
36

skipif mysql # not compatible
query I rowsort label-2769
SELECT 54 / + 80 + + 36 FROM tab2
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT + MIN( DISTINCT 72 ) + - 79 FROM tab0 WHERE NULL > - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2770
SELECT + MIN ( DISTINCT 72 ) + - 79 FROM tab0 WHERE NULL > - col0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - ( col2 ) / + + 83
----

query I rowsort
SELECT + + col0 AS col2 FROM tab1 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT - 99 * - COUNT( * ) * 4 AS col0 FROM tab0
----
1188

skipif mysql # not compatible
query I rowsort label-2773
SELECT - 99 * - COUNT ( * ) * 4 AS col0 FROM tab0
----
1188

onlyif mysql # DIV for integer division: 
query I rowsort label-2774
SELECT 23 DIV - + col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2774
SELECT 23 / - + col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2775
SELECT + ( + - col1 ) * col1 + - col0 * - CAST( col1 AS SIGNED ) AS col2 FROM tab0
----
-5346
1386
96

skipif mysql # not compatible
query I rowsort label-2775
SELECT + ( + - col1 ) * col1 + - col0 * - CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
-5346
1386
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 14 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT ALL - MAX( + col0 ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL - MAX ( + col0 ) AS col0 FROM tab1
----
-91

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN ( NULL ) AND col1
----
75
67
58

query I rowsort
SELECT DISTINCT + 81 * + + ( 2 ) + - col2 AS col2 FROM tab2 cor0
----
104
122
139

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT + ( - ( + MIN( ALL - - col2 ) ) ) * + 31 AS col1 FROM tab2 AS cor0
----
-713

skipif mysql # not compatible
query I rowsort label-2781
SELECT + ( - ( + MIN ( ALL - - col2 ) ) ) * + 31 AS col1 FROM tab2 AS cor0
----
-713

query II rowsort
SELECT - 50 AS col2, 5 FROM tab0 AS cor0
----
-50
5
-50
5
-50
5

query I rowsort
SELECT DISTINCT - - 18 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col1 col0 FROM tab0 cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT - ( - COUNT( - + 51 ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2785
SELECT - ( - COUNT ( - + 51 ) ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT + - COUNT( * ) FROM tab0 AS cor0 WHERE + ( + ( - + ( - 21 ) ) ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2786
SELECT + - COUNT ( * ) FROM tab0 AS cor0 WHERE + ( + ( - + ( - 21 ) ) ) IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 74 < col1 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * - col0 * + - 38 + - 94 IS NULL
----

query I rowsort
SELECT ALL col2 + 83 AS col2 FROM tab1
----
142
151
179

onlyif mysql # aggregate syntax: 
query II rowsort label-2790
SELECT + COUNT( * ), MIN( - ( - 16 ) ) col0 FROM tab0
----
3
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2790
SELECT + COUNT ( * ), MIN ( - ( - 16 ) ) col0 FROM tab0
----
3
16

query III rowsort
SELECT * FROM tab2 WHERE - ( - + col2 ) < - ( + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2792
SELECT ALL - COUNT( * ) + CAST( 63 AS SIGNED ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-2792
SELECT ALL - COUNT ( * ) + CAST ( 63 AS INTEGER ) FROM tab2
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * - col1 + + + col2 + - 36 + 25 col0, + col2 * - - 45 FROM tab2
----
-2589
1035
-4442
2610
-5900
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT DISTINCT - 47 - + + COUNT( * ) AS col1 FROM tab1 cor0
----
-50

skipif mysql # not compatible
query I rowsort label-2794
SELECT DISTINCT - 47 - + + COUNT ( * ) AS col1 FROM tab1 cor0
----
-50

query I rowsort
SELECT + + col0 + col2 FROM tab0 AS cor0 WHERE ( NULL ) = col1 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2796
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - + 3 + + col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2796
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - + 3 + + col1 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col2 * col1 + - col2 + col2 * - 47 * - col1 AS col0 FROM tab1 AS cor0
----
14101
153340
64416

query I rowsort
SELECT col2 + - + ( + 80 ) FROM tab1 AS cor0
----
-12
-21
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT + + 96 * ( + + SUM( - - ( + - col0 ) ) ) + - 90 FROM tab0 AS cor0
----
-19194

skipif mysql # not compatible
query I rowsort label-2799
SELECT + + 96 * ( + + SUM ( - - ( + - col0 ) ) ) + - 90 FROM tab0 AS cor0
----
-19194

query I rowsort
SELECT col0 + - col0 - + - col1 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL + 12 * + + col1 + - 65 + - col1 + + 28 AS col2 FROM tab2 cor0
----
524
700
810

onlyif mysql # DIV for integer division: 
query I rowsort label-2802
SELECT + 83 DIV - col2 - - 68 + - 42 - + col1 + + 72 + + col1 AS col0 FROM tab2 AS cor0
----
95
96
97

skipif mysql # not compatible
query I rowsort label-2802
SELECT + 83 / - col2 - - 68 + - 42 - + col1 + + 72 + + col1 AS col0 FROM tab2 AS cor0
----
95
96
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col1, + col0 * + 6 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2804
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN col2 - - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2804
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN col2 - - CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - - 52 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - - col2 AS col1, - col2 AS col0 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT + 7 FROM tab0 cor0 WHERE NOT + col0 + + 17 IS NULL
----
7
7
7

query I rowsort
SELECT col0 * + + 40 FROM tab0 AS cor0
----
3480
3880
600

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT DISTINCT + MAX( ALL + 7 ) AS col0 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-2809
SELECT DISTINCT + MAX ( ALL + 7 ) AS col0 FROM tab0 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-2810
SELECT - MAX( DISTINCT - - col2 ) AS col1, MAX( + 42 ) FROM tab0
----
-99
42

skipif mysql # not compatible
query II rowsort label-2810
SELECT - MAX ( DISTINCT - - col2 ) AS col1, MAX ( + 42 ) FROM tab0
----
-99
42

query I rowsort
SELECT - 15 * - + col2 AS col0 FROM tab1
----
1020
1440
885

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 = - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col1 * 55, + col0 FROM tab0
----
1155
87
4455
15
55
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT - 81 * + COUNT( * ) AS col0 FROM tab1
----
-243

skipif mysql # not compatible
query I rowsort label-2814
SELECT - 81 * + COUNT ( * ) AS col0 FROM tab1
----
-243

query I rowsort
SELECT - - 11 AS col1 FROM tab1 AS cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT DISTINCT MIN( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT MIN ( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT + col2 + - col0 - - - col1 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-31
-70
31

query II rowsort
SELECT ALL - + col0, 75 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + + 80 AS col0 FROM tab0
----
127
179
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2820
SELECT COUNT( * ) DIV - - 86 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2820
SELECT COUNT ( * ) / - - 86 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2821
SELECT col1 DIV + ( - CAST( + col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-2821
SELECT col1 / + ( - CAST ( + col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-5
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT ALL - ( + ( MAX( ALL - - 48 ) ) ) FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL - ( + ( MAX ( ALL - - 48 ) ) ) FROM tab2 AS cor0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2823
SELECT ALL - + COUNT( * ) AS col2, CAST( - - 2 AS SIGNED ) FROM tab2 cor0
----
-3
2

skipif mysql # not compatible
query II rowsort label-2823
SELECT ALL - + COUNT ( * ) AS col2, CAST ( - - 2 AS INTEGER ) FROM tab2 cor0
----
-3
2

query I rowsort
SELECT ALL + col2 * + col0 + + 94 FROM tab0
----
799
964
9697

query I rowsort
SELECT + 22 + + 37 * - - col2 * - col1 AS col1 FROM tab0
----
-140837
-3641
-7748

query I rowsort
SELECT DISTINCT col0 + - 80 AS col1 FROM tab2
----
-16
-34
-5

query I rowsort
SELECT DISTINCT col0 - - + 86 FROM tab0
----
101
173
183

query I rowsort
SELECT 40 * - - col2 * - col2 FROM tab0
----
-392040
-4000
-88360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2829
SELECT col2 - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2829
SELECT col2 - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 28 * + ( col1 ) * col2 * - + col2 AS col1 FROM tab0 WHERE + col2 * + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2831
SELECT ALL + ( - CAST( col0 AS SIGNED ) ) + - - 61 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL + ( - CAST ( col0 AS INTEGER ) ) + - - 61 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( - col2, + col1 + + - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
39
39
39

query I rowsort
SELECT + 60 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT ALL - COUNT( DISTINCT - + 55 ) AS col0 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL - COUNT ( DISTINCT - + 55 ) AS col0 FROM tab2 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT ALL ( - COUNT( ( - col0 ) ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL ( - COUNT ( ( - col0 ) ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT DISTINCT - MIN( DISTINCT 80 ) FROM tab2
----
-80

skipif mysql # not compatible
query I rowsort label-2837
SELECT DISTINCT - MIN ( DISTINCT 80 ) FROM tab2
----
-80

query II rowsort
SELECT DISTINCT col2 AS col1, - col1 - + + col2 AS col0 FROM tab2
----
23
-74
40
-117
58
-125

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2839
SELECT 49, 73 + - + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
49
NULL
49
NULL
49
NULL

skipif mysql # not compatible
query II rowsort label-2839
SELECT 49, 73 + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
49
NULL
49
NULL
49
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( + 37 + col1 ) AND + col2 * - col2
----

query I rowsort
SELECT DISTINCT - ( + col2 ) * + 73 AS col2 FROM tab1
----
-4307
-4964
-7008

query I rowsort
SELECT ( - 23 ) AS col0 FROM tab2
----
-23
-23
-23

query II rowsort
SELECT ALL - col1, + col1 FROM tab2
----
-51
51
-67
67
-77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2844
SELECT DISTINCT - - ( col0 ) FROM tab1 WHERE - col2 BETWEEN - CAST( + - 61 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT - - ( col0 ) FROM tab1 WHERE - col2 BETWEEN - CAST ( + - 61 AS INTEGER ) AND NULL
----

query I rowsort
SELECT ALL - col1 * - 5 - col2 * + 88 AS col2 FROM tab1 AS cor0
----
-5167
-5749
-8378

query III rowsort
SELECT * FROM tab2 WHERE col1 + + 2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - - 12 * - + col1, col0 FROM tab2 AS cor0
----
-612
46
-804
75
-924
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT DISTINCT + ( - - SUM( - col1 ) ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2848
SELECT DISTINCT + ( - - SUM ( - col1 ) ) AS col1 FROM tab1 AS cor0
----
-66

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < ( - ( - col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, 34 FROM tab1 AS cor0 WHERE ( - col0 ) + - - 64 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT ALL ( COUNT( * ) ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2851
SELECT ALL ( COUNT ( * ) ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
6

query I rowsort
SELECT DISTINCT - ( - 98 ) AS col1 FROM tab0 AS cor0
----
98

query I rowsort
SELECT - - col1 + - 85 AS col0 FROM tab0 WHERE col2 * col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2854
SELECT + col0 * 96 + 3 AS col0, 49 + - + CAST( - 44 AS SIGNED ) AS col1 FROM tab2
----
4419
93
6147
93
7203
93

skipif mysql # not compatible
query II rowsort label-2854
SELECT + col0 * 96 + 3 AS col0, 49 + - + CAST ( - 44 AS INTEGER ) AS col1 FROM tab2
----
4419
93
6147
93
7203
93

query I rowsort
SELECT + col1 + + 8 + - col1 AS col1 FROM tab0 cor0
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2856
SELECT - col0 + 18 + - ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2856
SELECT - col0 + 18 + - ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 17 * 11 - - col0 * col0 + - - col1 + - - col2 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL IS NOT NULL )
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 28 - - - 94 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT DISTINCT ( + 29 ) AS col1 FROM tab2 AS cor0
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + - col2 + col2 + - - col2 + + col1 + - 30 * + - col1 col2 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query II rowsort
SELECT col2 * col2 AS col0, 23 AS col0 FROM tab2 AS cor0
----
1600
23
3364
23
529
23

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 IN ( - - col1, + 57, + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 <= + 95
----
51
14
96

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col0 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT - ( + ( + COUNT( * ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2866
SELECT - ( + ( + COUNT ( * ) ) ) FROM tab2
----
-3

query I rowsort
SELECT + col0 + - 57 - col1 + - 44 * + - 63 AS col0 FROM tab2
----
2702
2710
2723

onlyif mysql # DIV for integer division: 
query II rowsort label-2868
SELECT ALL - - col2 AS col1, col1 DIV - - 53 AS col2 FROM tab2 AS cor0
----
23
0
40
1
58
1

skipif mysql # not compatible
query II rowsort label-2868
SELECT ALL - - col2 AS col1, col1 / - - 53 AS col2 FROM tab2 AS cor0
----
23
0
40
1
58
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 89 col2 FROM tab2 AS cor0
----
89

query II rowsort
SELECT - col0, col0 + col0 - - 74 + - col0 AS col1 FROM tab0 AS cor0
----
-15
89
-87
161
-97
171

query I rowsort
SELECT - 69 * - col1 + 90 * + + col2 AS col1 FROM tab2 cor0
----
5589
8913
9843

query I rowsort
SELECT ALL - - col1 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 * + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2873
SELECT ALL - 35 AS col1, - COUNT( * ) - COUNT( * ) AS col1 FROM tab2 cor0
----
-35
-6

skipif mysql # not compatible
query II rowsort label-2873
SELECT ALL - 35 AS col1, - COUNT ( * ) - COUNT ( * ) AS col1 FROM tab2 cor0
----
-35
-6

query I rowsort
SELECT ALL - col1 + ( - 70 ) + + - col1 + + col0 FROM tab1
----
-47
-73
5

query I rowsort
SELECT ALL - 99 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2876
SELECT ALL col1 * + 83 * + CAST( NULL AS SIGNED ) + - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL col1 * + 83 * + CAST ( NULL AS INTEGER ) + - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 FROM tab0 WHERE + 13 * + + 94 * - col2 + + ( - col0 ) * - - col2 + + col2 + col0 + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 22 col2, col2 FROM tab0
----
22
10
22
47
22
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2879
SELECT ALL - + COUNT( * ) + - 9 DIV COUNT( 84 ) col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2879
SELECT ALL - + COUNT ( * ) + - 9 / COUNT ( 84 ) col0 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT + 13 AS col1 FROM tab1 cor0 WHERE NOT - col2 + + col2 * - 52 + - - col2 IS NULL AND NOT NULL < - 64
----

query I rowsort
SELECT - + col0 + + - col2 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2882
SELECT + col2 + col1 AS col1 FROM tab0 AS cor0 WHERE CAST( + - col2 AS SIGNED ) + - 26 <= NULL
----

skipif mysql # not compatible
query I rowsort label-2882
SELECT + col2 + col1 AS col1 FROM tab0 AS cor0 WHERE CAST ( + - col2 AS INTEGER ) + - 26 <= NULL
----

query II rowsort
SELECT + + col0 + + ( + + col1 ) * + + 97 AS col0, + 38 * - 42 FROM tab1 AS cor0
----
1409
-1596
4650
-1596
570
-1596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2884
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NULL >= col1
----
0

skipif mysql # not compatible
query I rowsort label-2884
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NULL >= col1
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + 97 < + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT DISTINCT MAX( + + 16 ) FROM tab1 cor0
----
16

skipif mysql # not compatible
query I rowsort label-2886
SELECT DISTINCT MAX ( + + 16 ) FROM tab1 cor0
----
16

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 81 / - - 83 NOT BETWEEN col2 AND + 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT ALL COUNT( * ) * + - COUNT( * ) * + MAX( DISTINCT + - col0 ) AS col0 FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL COUNT ( * ) * + - COUNT ( * ) * + MAX ( DISTINCT + - col0 ) AS col0 FROM tab0
----
135

query I rowsort
SELECT DISTINCT - 66 * - col1 AS col1 FROM tab0
----
1386
5346
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2890
SELECT DISTINCT + ( 9 ) DIV col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2890
SELECT DISTINCT + ( 9 ) / col1 FROM tab2
----
0

query I rowsort
SELECT ALL col2 + + col1 * col1 * + col2 AS col2 FROM tab2
----
237200
260420
59846

query III rowsort
SELECT * FROM tab2 WHERE + 35 + 36 / + 29 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 54 * + - col0 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + - col2 * col0 col0 FROM tab1 AS cor0
----
-4800
-4956
-6120

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT DISTINCT - COUNT( * ) * - - 38 * + 61 FROM tab0 AS cor0
----
-6954

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT - COUNT ( * ) * - - 38 * + 61 FROM tab0 AS cor0
----
-6954

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 * - - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 * - - col2 IS NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2897
SELECT ALL + COUNT( * ) DIV - - 25 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL + COUNT ( * ) / - - 25 AS col1 FROM tab0
----
0

query II rowsort
SELECT - col0 AS col0, col0 + - col1 AS col2 FROM tab0
----
-15
-66
-87
66
-97
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2899
SELECT CAST( - col2 AS SIGNED ) DIV 43 * + col1 AS col2 FROM tab0
----
-2
-81
0

skipif mysql # not compatible
query I rowsort label-2899
SELECT CAST ( - col2 AS INTEGER ) / 43 * + col1 AS col2 FROM tab0
----
-2
-81
0

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON NOT NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2901
SELECT ALL - 67 DIV + 16 AS col0 FROM tab1 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-2901
SELECT ALL - 67 / + 16 AS col0 FROM tab1 AS cor0
----
-4
-4
-4

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + + col1 * + 46 * + + ( - col1 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2903
SELECT ALL + - CAST( NULL AS SIGNED ) / + CAST( - 35 AS SIGNED ), + col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-2903
SELECT ALL + - CAST ( NULL AS INTEGER ) / + CAST ( - 35 AS INTEGER ), + col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query II rowsort
SELECT - 71 AS col0, ( - col2 ) FROM tab1 cor0
----
-71
-59
-71
-68
-71
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT - SUM( DISTINCT - 13 ) AS col2 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-2905
SELECT - SUM ( DISTINCT - 13 ) AS col2 FROM tab2 AS cor0
----
13

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 5 * - + 6 + 60 + + col2 * col0 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT DISTINCT - COUNT( * ) + - SUM( DISTINCT - 80 ) AS col0 FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-2907
SELECT DISTINCT - COUNT ( * ) + - SUM ( DISTINCT - 80 ) AS col0 FROM tab1
----
77

query I rowsort
SELECT 74 * - ( + col0 ) FROM tab1
----
-3774
-6290
-6734

query I rowsort
SELECT ALL + 33 * 98 + + col2 FROM tab0
----
3244
3281
3333

onlyif mysql # aggregate syntax: 
query II rowsort label-2910
SELECT DISTINCT + SUM( ALL - - col2 ) col0, COUNT( * ) col2 FROM tab2
----
121
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2910
SELECT DISTINCT + SUM ( ALL - - col2 ) col0, COUNT ( * ) col2 FROM tab2
----
121
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2911
SELECT - ( - 95 ) FROM tab1 WHERE NOT - 71 >= + col0 + - CAST( NULL AS SIGNED ) * + - col2
----

skipif mysql # not compatible
query I rowsort label-2911
SELECT - ( - 95 ) FROM tab1 WHERE NOT - 71 >= + col0 + - CAST ( NULL AS INTEGER ) * + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT ALL - COUNT( * ) * - 83 FROM tab2 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-2912
SELECT ALL - COUNT ( * ) * - 83 FROM tab2 AS cor0
----
249

query I rowsort
SELECT - + 18 + + 91 + col2 * + - col2 AS col0 FROM tab0 AS cor0
----
-2136
-27
-9728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2914
SELECT CAST( NULL AS SIGNED ) + + - ( 4 ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2914
SELECT CAST ( NULL AS INTEGER ) + + - ( 4 ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2915
SELECT + col1 + col0, col2 DIV col0 AS col1 FROM tab0 AS cor0
----
108
0
96
3
98
1

skipif mysql # not compatible
query II rowsort label-2915
SELECT + col1 + col0, col2 / col0 AS col1 FROM tab0 AS cor0
----
108
0
96
3
98
1

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 + + - 5 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 60 + + + 27 AS col1 FROM tab1
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT ALL + COUNT( * ) * + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col2 = + - 31
----
0

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col2 = + - 31
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT ALL - COUNT( * ) - - 85 * + MIN( ALL 23 ) AS col2 FROM tab1 AS cor0
----
1952

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL - COUNT ( * ) - - 85 * + MIN ( ALL 23 ) AS col2 FROM tab1 AS cor0
----
1952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 82 * - 2 col0 FROM tab2 AS cor0
----
-164
-164
-164

query II rowsort
SELECT DISTINCT + col2 AS col0, 55 FROM tab0 AS cor0
----
10
55
47
55
99
55

query I rowsort
SELECT col2 - - col0 AS col0 FROM tab2 AS cor0
----
104
133
69

query II rowsort
SELECT DISTINCT col2 * + col0 + + col1, - col1 AS col1 FROM tab2 AS cor0
----
1109
-51
2637
-77
4417
-67

query I rowsort
SELECT 37 - + col2 FROM tab0
----
-10
-62
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2925
SELECT - 89 * + col1 * + + ( + CAST( NULL AS SIGNED ) ) * + 97 * col1 - - ( + + col0 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2925
SELECT - 89 * + col1 * + + ( + CAST ( NULL AS INTEGER ) ) * + 97 * col1 - - ( + + col0 ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2926
SELECT ALL + 88, - COUNT( * ) AS col0 FROM tab0
----
88
-3

skipif mysql # not compatible
query II rowsort label-2926
SELECT ALL + 88, - COUNT ( * ) AS col0 FROM tab0
----
88
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2927
SELECT ALL COUNT( * ) AS col1, COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-2927
SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2928
SELECT COUNT( * ) col2, - COUNT( * ) + - - COUNT( DISTINCT - + col2 ) FROM tab0
----
3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2928
SELECT COUNT ( * ) col2, - COUNT ( * ) + - - COUNT ( DISTINCT - + col2 ) FROM tab0
----
3
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2929
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= CAST( NULL AS SIGNED ) - ( - ( - col0 ) )
----

skipif mysql # not compatible
query III rowsort label-2929
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= CAST ( NULL AS INTEGER ) - ( - ( - col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col1, - col2 AS col0 FROM tab2 cor0
----
51
-23
67
-58
77
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2932
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 93 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2932
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 93 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT + COUNT( * ) FROM tab0 WHERE NOT 81 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2933
SELECT + COUNT ( * ) FROM tab0 WHERE NOT 81 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT ALL COUNT( * ) * 12 col1 FROM tab1 WHERE NOT + + 12 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2934
SELECT ALL COUNT ( * ) * 12 col1 FROM tab1 WHERE NOT + + 12 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2935
SELECT DISTINCT - - COUNT( * ) FROM tab0 WHERE NOT CAST( 0 AS DECIMAL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2935
SELECT DISTINCT - - COUNT ( * ) FROM tab0 WHERE NOT CAST ( 0 AS REAL ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT DISTINCT COUNT( ALL 14 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT COUNT ( ALL 14 ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2937
SELECT DISTINCT + col1 * + col1 / - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2937
SELECT DISTINCT + col1 * + col1 / - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2938
SELECT 52 DIV + 99, - 0 AS col0 FROM tab1 AS cor0
----
0
0
0
0
0
0

skipif mysql # not compatible
query II rowsort label-2938
SELECT 52 / + 99, - 0 AS col0 FROM tab1 AS cor0
----
0
0
0
0
0
0

query I rowsort
SELECT + 49 AS col0 FROM tab0 cor0 WHERE NOT - col1 IS NULL
----
49
49
49

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE + + col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 63 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 * + + 14 FROM tab1
----
-196
-658
-70

query I rowsort
SELECT DISTINCT col2 + 79 AS col2 FROM tab1
----
138
147
175

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT ALL SUM( DISTINCT + 7 ) AS col1 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL SUM ( DISTINCT + 7 ) AS col1 FROM tab2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT ( - 48 ) + COUNT( * ) AS col0 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-2945
SELECT ( - 48 ) + COUNT ( * ) AS col0 FROM tab2
----
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 + col1 col0 FROM tab2
----
135
151
161

query I rowsort
SELECT + col1 * - 23 AS col2 FROM tab0 cor0
----
-1863
-23
-483

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT ALL + + COUNT( * ) + + + COUNT( * ) AS col0 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL + + COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab0 cor0
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2949
SELECT * FROM tab2 WHERE NOT ( CAST( NULL AS DECIMAL ) ) > ( col0 )
----

skipif mysql # not compatible
query III rowsort label-2949
SELECT * FROM tab2 WHERE NOT ( CAST ( NULL AS REAL ) ) > ( col0 )
----

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT ( - 73 ) <= NULL
----

query I rowsort
SELECT ALL - 12 * + col1 FROM tab0
----
-12
-252
-972

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT ALL + MAX( DISTINCT col0 ) - COUNT( * ) AS col1 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL + MAX ( DISTINCT col0 ) - COUNT ( * ) AS col1 FROM tab2
----
72

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 45 / 10 IS NULL
----

query I rowsort
SELECT + 11 * ( col1 ) AS col0 FROM tab0
----
11
231
891

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT DISTINCT 6 + COUNT( * ) col2 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2955
SELECT DISTINCT 6 + COUNT ( * ) col2 FROM tab0
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 + + col0 NOT BETWEEN ( col0 ) AND ( NULL )
----

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT col1 + - 95 * col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 84 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 91 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( 22 ) AS col2 FROM tab1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT DISTINCT SUM( - ( col2 ) ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-2961
SELECT DISTINCT SUM ( - ( col2 ) ) FROM tab0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2962
SELECT CAST( col2 AS SIGNED ) + col0 * - col2 FROM tab2
----
-1035
-2520
-4292

skipif mysql # not compatible
query I rowsort label-2962
SELECT CAST ( col2 AS INTEGER ) + col0 * - col2 FROM tab2
----
-1035
-2520
-4292

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * 51 > col2 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 90 + col1 FROM tab1
----
104
137
95

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN - 71 AND ( + col0 )
----

query I rowsort
SELECT DISTINCT + col1 * + 90 + 78 FROM tab2 AS cor0 WHERE + 51 / 53 + col2 >= col2 / ( + ( - col2 ) )
----
4668
6108
7008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 10 ) NOT IN ( - col0 * + 13 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT + COUNT( DISTINCT 17 ) + + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
4

skipif mysql # not compatible
query I rowsort label-2969
SELECT + COUNT ( DISTINCT 17 ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
4

query III rowsort
SELECT * FROM tab2 WHERE NOT 90 - col2 < ( col2 )
----
46
51
23
64
77
40

query I rowsort
SELECT 27 * - 29 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-783
-783
-783

onlyif mysql # DIV for integer division: 
query I rowsort label-2972
SELECT ALL - - ( - col0 ) DIV col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2972
SELECT ALL - - ( - col0 ) / col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 87 IS NOT NULL
----

query I rowsort
SELECT ALL + ( 70 ) + 18 AS col1 FROM tab2 AS cor0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2975
SELECT COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT - + SUM( col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2976
SELECT - + SUM ( col2 ) AS col1 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT - 72 - COUNT( * ) * 2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-78

skipif mysql # not compatible
query I rowsort label-2977
SELECT - 72 - COUNT ( * ) * 2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT DISTINCT 6 + - MIN( + col1 ) FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT 6 + - MIN ( + col1 ) FROM tab0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT ALL MAX( DISTINCT + col1 ) + COUNT( * ) AS col1 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL MAX ( DISTINCT + col1 ) + COUNT ( * ) AS col1 FROM tab2
----
80

query I rowsort
SELECT DISTINCT 39 + - col0 * 0 AS col0 FROM tab2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT DISTINCT COUNT( * ) * COUNT( * ) FROM tab2 WHERE 59 / - col0 < 2 * col0
----
9

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) FROM tab2 WHERE 59 / - col0 < 2 * col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT DISTINCT - MIN( col0 ) * - 42 FROM tab0
----
630

skipif mysql # not compatible
query I rowsort label-2982
SELECT DISTINCT - MIN ( col0 ) * - 42 FROM tab0
----
630

onlyif mysql # DIV for integer division: 
query I rowsort label-2983
SELECT - - col2 DIV - col0 + ( col2 ) DIV - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2983
SELECT - - col2 / - col0 + ( col2 ) / - col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2984
SELECT - + 5 + + - COUNT( * ) * MAX( col1 / + 33 + + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2984
SELECT - + 5 + + - COUNT ( * ) * MAX ( col1 / + 33 + + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2985
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 27 + - col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT CAST ( NULL AS REAL ) * 27 + - col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2986
SELECT DISTINCT ( - col0 ) * 64 * 8 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT ( - col0 ) * 64 * 8 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - 59 col0 FROM tab1
----
110
144
150

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( - col1 ) NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT ALL - col0 * - - col2 - - - 65 FROM tab0 AS cor0
----
-770
-935
-9668

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2990
SELECT ALL - - col0 + - + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL - - col0 + - + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT DISTINCT - MAX( DISTINCT - - col1 ) - - 61 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-2991
SELECT DISTINCT - MAX ( DISTINCT - - col1 ) - - 61 FROM tab1 AS cor0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2992
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < - CAST( NULL AS SIGNED ) * + + 63
----

skipif mysql # not compatible
query III rowsort label-2992
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < - CAST ( NULL AS INTEGER ) * + + 63
----

query I rowsort
SELECT ( col2 ) FROM tab0 AS cor0 WHERE ( + col1 * + 75 * - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT DISTINCT + SUM( ALL - ( 32 ) ) - - 26 * - COUNT( * ) FROM tab0 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-2994
SELECT DISTINCT + SUM ( ALL - ( 32 ) ) - - 26 * - COUNT ( * ) FROM tab0 AS cor0
----
-174

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2995
SELECT ALL 16 + + 70 AS col1 FROM tab1 AS cor0 WHERE NOT - ( + CAST( NULL AS DECIMAL ) ) IS NOT NULL
----
86
86
86

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL 16 + + 70 AS col1 FROM tab1 AS cor0 WHERE NOT - ( + CAST ( NULL AS REAL ) ) IS NOT NULL
----
86
86
86

onlyif mysql # DIV for integer division: 
query I rowsort label-2996
SELECT col2 DIV col1 * - 38 - col2 AS col2 FROM tab1 cor0
----
-106
-324
-477

skipif mysql # not compatible
query I rowsort label-2996
SELECT col2 / col1 * - 38 - col2 AS col2 FROM tab1 cor0
----
-106
-324
-477

query I rowsort
SELECT DISTINCT + ( + + 32 ) FROM tab1 AS cor0
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 71 col0, 22 FROM tab0 AS cor0
----
-71
22
-71
22
-71
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 col2 FROM tab2 WHERE NOT + 66 NOT BETWEEN ( + col0 ) AND - ( + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - - col0 )
----

query I rowsort
SELECT ( + + 42 ) FROM tab2
----
42
42
42

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 / col1 * + 16 IS NULL
----

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT ( 39 ) <= NULL
----

query I rowsort
SELECT ALL + 49 * col2 * + 48 FROM tab1
----
138768
159936
225792

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT ALL + + ( + + 59 ) * + COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
531

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL + + ( + + 59 ) * + COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
531

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col1 col0 FROM tab0 AS cor0 WHERE NOT ( ( - col0 ) ) IS NULL
----
100
128
31

query I rowsort
SELECT - ( 29 ) AS col2 FROM tab0 AS cor0
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT ALL + - MIN( + col1 ) AS col1 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL + - MIN ( + col1 ) AS col1 FROM tab1 cor0
----
-5

query I rowsort
SELECT DISTINCT - + 81 * - col1 + 79 - - + 9 FROM tab0 AS cor0
----
169
1789
6649

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = NULL AND NOT NULL NOT IN ( + 31 * col0 )
----

query I rowsort
SELECT DISTINCT 82 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - col0 AND - - ( + - 17 ) - + col2
----

query I rowsort
SELECT + ( 49 ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND - col2 + - col1
----

query I rowsort
SELECT + col0 + - col0 - - 41 AS col1 FROM tab0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE ( NOT ( NULL ) NOT IN ( - 62 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3014
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE ( NOT ( NULL ) NOT IN ( - 62 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT COUNT( * ) + + COUNT( DISTINCT col2 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3015
SELECT COUNT ( * ) + + COUNT ( DISTINCT col2 ) FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3016
SELECT DISTINCT 67, COUNT( * ) AS col2 FROM tab1
----
67
3

skipif mysql # not compatible
query II rowsort label-3016
SELECT DISTINCT 67, COUNT ( * ) AS col2 FROM tab1
----
67
3

query I rowsort
SELECT - + col1 AS col0 FROM tab0 WHERE - 91 IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 77 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( - ( + + col0 ) ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 81 * col1 * + 21 * - col2 * + col1 col2 FROM tab0 AS cor0
----
168399
524532267
7501410

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND ( + - 57 * - + col0 * - col0 + col0 )
----

query I rowsort
SELECT 81 - col1 + 77 + + ( + col1 ) * - col1 AS col2 FROM tab0
----
-304
-6484
156

query I rowsort
SELECT + col2 * + - 15 + + col2 FROM tab0
----
-1386
-140
-658

query II rowsort
SELECT col0 + + col2 AS col0, 19 * - col1 AS col2 FROM tab1
----
144
-95
147
-266
159
-893

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3025
SELECT DISTINCT - CAST( - 25 AS SIGNED ) DIV col2 + + - 14 + - 79 * - 70 col2 FROM tab0
----
5516
5518

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3025
SELECT DISTINCT - CAST ( - 25 AS INTEGER ) / col2 + + - 14 + - 79 * - 70 col2 FROM tab0
----
5516
5518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3026
SELECT - ( 47 ) + MIN( ALL - CAST( NULL AS SIGNED ) ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3026
SELECT - ( 47 ) + MIN ( ALL - CAST ( NULL AS INTEGER ) ) col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 69 AS col1 FROM tab2 AS cor0 WHERE - 30 + col0 * col0 * - col0 IN ( - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT + - SUM( - 37 ) AS col0 FROM tab0 cor0
----
111

skipif mysql # not compatible
query I rowsort label-3028
SELECT + - SUM ( - 37 ) AS col0 FROM tab0 cor0
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3029
SELECT ALL ( CAST( - COUNT( DISTINCT + 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-3029
SELECT ALL ( CAST ( - COUNT ( DISTINCT + col0 ) AS INTEGER ) ) col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
10
47
99

query II rowsort
SELECT ALL col0, + 40 FROM tab1
----
51
40
85
40
91
40

query I rowsort
SELECT ALL ( ( - + col1 ) ) AS col1 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT - ( + SUM( + col1 ) ) * + + COUNT( * ) * 51 FROM tab1
----
-10098

skipif mysql # not compatible
query I rowsort label-3033
SELECT - ( + SUM ( + col1 ) ) * + + COUNT ( * ) * 51 FROM tab1
----
-10098

query I rowsort
SELECT + 29 * + - 52 FROM tab0
----
-1508
-1508
-1508

onlyif mysql # DIV for integer division: 
query I rowsort label-3035
SELECT ALL col0 DIV - + col2 FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-3035
SELECT ALL col0 / - + col2 FROM tab0
----
-8
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3036
SELECT - col2 * CAST( 80 AS SIGNED ) FROM tab1
----
-4720
-5440
-7680

skipif mysql # not compatible
query I rowsort label-3036
SELECT - col2 * CAST ( 80 AS INTEGER ) FROM tab1
----
-4720
-5440
-7680

query I rowsort
SELECT DISTINCT + 61 * - + 84 AS col2 FROM tab0 WHERE NOT NULL > + col1 + col2 + + col0 / - - col0
----

query I rowsort
SELECT 12 * - col2 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1188
-120
-564

query I rowsort
SELECT ALL 31 FROM tab0 WHERE NOT col0 IS NULL OR NOT ( NULL IS NULL )
----
31
31
31

query I rowsort
SELECT DISTINCT - 50 AS col2 FROM tab2 cor0
----
-50

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3042
SELECT * FROM tab0 cor0 WHERE NOT 31 / + - col0 * + + col0 BETWEEN 49 * + + col2 AND ( - - CAST( NULL AS DECIMAL ) * - 20 + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3042
SELECT * FROM tab0 cor0 WHERE NOT 31 / + - col0 * + + col0 BETWEEN 49 * + + col2 AND ( - - CAST ( NULL AS REAL ) * - 20 + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3043
SELECT - CAST( NULL AS DECIMAL ) * - + col2 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3043
SELECT - CAST ( NULL AS REAL ) * - + col2 col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT DISTINCT COUNT( DISTINCT - + 6 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-3044
SELECT DISTINCT COUNT ( DISTINCT - + 6 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT DISTINCT - + MIN( ALL + + col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3045
SELECT DISTINCT - + MIN ( ALL + + col0 ) FROM tab0 AS cor0
----
-15

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 <> col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col1 * + + 25 FROM tab0 AS cor0
----
2025
25
525

onlyif mysql # DIV for integer division: 
query I rowsort label-3048
SELECT col0 * + col0 * + col0 DIV + + col0 AS col2 FROM tab1
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-3048
SELECT col0 * + col0 * + col0 / + + col0 AS col2 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT 4 * + 27 + - + col0 - 24 FROM tab1
----
-1
-7
33

query I rowsort
SELECT ALL col2 + ( + col1 ) FROM tab0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3051
SELECT DISTINCT CAST( + - 50 AS SIGNED ) - - col2 AS col0 FROM tab2 AS cor0
----
-10
-27
8

skipif mysql # not compatible
query I rowsort label-3051
SELECT DISTINCT CAST ( + - 50 AS INTEGER ) - - col2 AS col0 FROM tab2 AS cor0
----
-10
-27
8

onlyif mysql # DIV for integer division: 
query I rowsort label-3052
SELECT ALL + - col1 * col1 DIV + col0 FROM tab1 cor0
----
-24
-3
0

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL + - col1 * col1 / + col0 FROM tab1 cor0
----
-24
-3
0

query I rowsort
SELECT ALL - + col1 + 68 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT ALL - MAX( - + 81 ) - - + 58 AS col2 FROM tab1 AS cor0
----
139

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL - MAX ( - + 81 ) - - + 58 AS col2 FROM tab1 AS cor0
----
139

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT col0 IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3056
SELECT + ( + COUNT( * ) ) + 82 + - 64 * - + ( - 57 ) * + CAST( NULL AS SIGNED ) * + ( 24 ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3056
SELECT + ( + COUNT ( * ) ) + 82 + - 64 * - + ( - 57 ) * + CAST ( NULL AS INTEGER ) * + ( 24 ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 72 / + 54 FROM tab1 AS cor0 WHERE NOT ( ( NOT 90 <= NULL ) )
----

query I rowsort
SELECT ALL col0 - 57 FROM tab2
----
-11
18
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT DISTINCT - + SUM( + + col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-3059
SELECT DISTINCT - + SUM ( + + col1 ) AS col0 FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT ALL MIN( - col0 ) * + - COUNT( * ) * + - ( - ( - COUNT( * ) ) ) FROM tab0 AS cor0
----
-873

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL MIN ( - col0 ) * + - COUNT ( * ) * + - ( - ( - COUNT ( * ) ) ) FROM tab0 AS cor0
----
-873

query I rowsort
SELECT - + ( - - 97 ) FROM tab2 AS cor0
----
-97
-97
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3062
SELECT ALL - - CAST( NULL AS SIGNED ) / + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3062
SELECT ALL - - CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 94 * - + ( col1 ) AS col1 FROM tab0 AS cor0
----
-1974
-7614
-94

query II rowsort
SELECT DISTINCT + col2 AS col1, 70 - col0 AS col1 FROM tab0 AS cor0
----
10
-17
47
55
99
-27

query I rowsort
SELECT + + 91 * - col0 AS col2 FROM tab2 AS cor0
----
-4186
-5824
-6825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3066
SELECT DISTINCT + 17 col1 FROM tab2 AS cor0 WHERE NOT NULL < col0 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3066
SELECT DISTINCT + 17 col1 FROM tab2 AS cor0 WHERE NOT NULL < col0 + + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3067
SELECT DISTINCT col0 * col1 DIV - col0 AS col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3067
SELECT DISTINCT col0 * col1 / - col0 AS col1 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3068
SELECT CAST( - 68 AS SIGNED ) * col1 AS col0 FROM tab0
----
-1428
-5508
-68

skipif mysql # not compatible
query I rowsort label-3068
SELECT CAST ( - 68 AS INTEGER ) * col1 AS col0 FROM tab0
----
-1428
-5508
-68

query I rowsort
SELECT DISTINCT 92 * + + col0 * - - col1 FROM tab2
----
215832
453376
462300

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT ALL - COUNT( ALL - + col2 ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL - COUNT ( ALL - + col2 ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col2 BETWEEN - + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3072
SELECT DISTINCT - col0 / - 71 + 23 - + CAST( NULL AS SIGNED ) * - ( - 54 ) * col1, ( - 38 ) AS col2 FROM tab2 cor0
----
NULL
-38

skipif mysql # not compatible
query II rowsort label-3072
SELECT DISTINCT - col0 / - 71 + 23 - + CAST ( NULL AS INTEGER ) * - ( - 54 ) * col1, ( - 38 ) AS col2 FROM tab2 cor0
----
NULL
-38

query I rowsort
SELECT ALL + - col2 + + - 65 - - - col2 AS col2 FROM tab0 AS cor0
----
-159
-263
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - - 84 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * + + 8 + + 29, col2 col2 FROM tab1
----
141
96
405
68
69
59

query I rowsort
SELECT DISTINCT + - col2 AS col2 FROM tab2 WHERE ( NULL ) >= col2
----

query I rowsort
SELECT - 78 * + - col0 FROM tab2
----
3588
4992
5850

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT + MAX( + + 54 ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-3079
SELECT + MAX ( + + 54 ) FROM tab2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3080
SELECT col0 / + + 16 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col2 + - + 40 + - - col2 * CAST( + col0 AS SIGNED ) * - - col0 / - col0 * + + col0 + - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3080
SELECT col0 / + + 16 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col2 + - + 40 + - - col2 * CAST ( + col0 AS INTEGER ) * - - col0 / - col0 * + + col0 + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT ALL COUNT( + 14 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3081
SELECT ALL COUNT ( + 14 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT 38 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-3082
SELECT 38 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3083
SELECT + 36 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + 79 * + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3083
SELECT + 36 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + 79 * + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT DISTINCT + COUNT( DISTINCT + 69 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3084
SELECT DISTINCT + COUNT ( DISTINCT + 69 ) AS col1 FROM tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 44 * - 47 + - col2 + + 25 NOT IN ( - col1, + col0 * 37, col1 )
----

query I rowsort
SELECT 51 + - col1 * + col0 FROM tab2
----
-2295
-4877
-4974

query III rowsort
SELECT ALL * FROM tab1 WHERE + 55 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 27 + - - ( 76 ) + - col2 col2 FROM tab0
----
-50
2
39

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( + ( - col2 ), + ( - col0 ), + 74 * + 43 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3090
SELECT + CAST( 15 AS SIGNED ) AS col1 FROM tab0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-3090
SELECT + CAST ( 15 AS INTEGER ) AS col1 FROM tab0
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT ALL + MIN( ALL col1 ) - - - COUNT( * ) col1 FROM tab1
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3091
SELECT ALL + MIN ( ALL col1 ) - - - COUNT ( * ) col1 FROM tab1
----
2

query II rowsort
SELECT ALL + - col1 * + col1 AS col2, col0 * - - col2 AS col0 FROM tab0 AS cor0
----
-1
9603
-441
870
-6561
705

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3093
SELECT + COUNT( * ) DIV 83 col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3093
SELECT + COUNT ( * ) / 83 col0 FROM tab1
----
0

query I rowsort
SELECT ALL + - 83 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3095
SELECT - COUNT( * ) DIV + - COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3095
SELECT - COUNT ( * ) / + - COUNT ( * ) FROM tab1
----
1

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE + 80 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT ALL - COUNT( * ) * + 33 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL - COUNT ( * ) * + 33 FROM tab0 cor0
----
-99

query II rowsort
SELECT - col2 AS col0, 60 + + col1 * - + col0 FROM tab2
----
-23
-2286
-40
-4868
-58
-4965

query I rowsort
SELECT DISTINCT - - 77 + - - col1 FROM tab0 WHERE + col1 IN ( col1, col1, col1 / - 3, + 10, - + 90 )
----
158
78
98

query II rowsort
SELECT + col2 AS col1, - ( - 81 ) - + 32 + - col1 * - 83 AS col1 FROM tab0
----
10
1792
47
6772
99
132

query I rowsort
SELECT col2 * + 27 FROM tab1
----
1593
1836
2592

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 83 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * - - col1 * + col0 AS col1 FROM tab1
----
36125
36414
389207

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT + - SUM( + + col2 ) + 12 FROM tab0 WHERE NOT - 77 NOT BETWEEN + col2 * - col2 / - col1 + + + 52 AND 70
----
NULL

skipif mysql # not compatible
query I rowsort label-3104
SELECT + - SUM ( + + col2 ) + 12 FROM tab0 WHERE NOT - 77 NOT BETWEEN + col2 * - col2 / - col1 + + + 52 AND 70
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 23 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3106
SELECT DISTINCT * FROM tab0 WHERE NOT + ( CAST( col0 AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3106
SELECT DISTINCT * FROM tab0 WHERE NOT + ( CAST ( col0 AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + 78 * - col0 AS col0, - 36 + col1 * - - col1 FROM tab2 AS cor0
----
-3588
2565
-4992
5893
-5850
4453

query I rowsort
SELECT DISTINCT - col2 * - col2 * - col2 - + + col2 * - col2 FROM tab2 AS cor0
----
-11638
-191748
-62400

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 3 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col0 * + - col1 AS col2 FROM tab2 AS cor0
----
2346
4928
5025

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL = - 0 + + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 15 * - + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3113
SELECT + col1 + + col1 + + - col1 + + CAST( NULL AS SIGNED ) * + col1 + + + 91 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3113
SELECT + col1 + + col1 + + - col1 + + CAST ( NULL AS INTEGER ) * + col1 + + + 91 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT ALL + + MIN( col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL + + MIN ( col2 ) AS col2 FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3115
SELECT + MAX( ALL + CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) ) + + ( + COUNT( * ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3115
SELECT + MAX ( ALL + CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) ) + + ( + COUNT ( * ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE 5 IS NULL OR NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col1 + col0 + - col0 * col0 AS col2 FROM tab0 AS cor0
----
-129
-7461
-9311

query I rowsort
SELECT ALL + 79 - - - col0 FROM tab0 AS cor0
----
-18
-8
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT + COUNT( * ) * + - 68 AS col2 FROM tab2 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-3119
SELECT + COUNT ( * ) * + - 68 AS col2 FROM tab2 AS cor0
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT - COUNT( * ) * 81 * - COUNT( * ) FROM tab2 AS cor0
----
729

skipif mysql # not compatible
query I rowsort label-3120
SELECT - COUNT ( * ) * 81 * - COUNT ( * ) FROM tab2 AS cor0
----
729

query I rowsort
SELECT + col2 FROM tab2 WHERE ( NOT + 13 > NULL )
----

query I rowsort
SELECT 89 - - col0 AS col1 FROM tab2
----
135
153
164

query II rowsort
SELECT ALL + col2 + - - 32 - + col1, col0 FROM tab1
----
114
51
53
91
86
85

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col2 BETWEEN - col0 + 67 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3125
SELECT DISTINCT + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) + + 44 AS col2, + 36 FROM tab0
----
NULL
36

skipif mysql # not compatible
query II rowsort label-3125
SELECT DISTINCT + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + 44 AS col2, + 36 FROM tab0
----
NULL
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT DISTINCT - COUNT( * ) * - 51 - ( + + ( + COUNT( * ) ) ) * 61 + COUNT( * ) col1 FROM tab2
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3126
SELECT DISTINCT - COUNT ( * ) * - 51 - ( + + ( + COUNT ( * ) ) ) * 61 + COUNT ( * ) col1 FROM tab2
----
-27

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab2 WHERE + 96 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL < col2 + + col0 + + col1
----

query II rowsort
SELECT DISTINCT 69 AS col2, col2 FROM tab0 AS cor0
----
69
10
69
47
69
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - 71 col0 FROM tab0
----
-3337
-7029
-710

query I rowsort
SELECT ALL + 61 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3132
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3134
SELECT ALL + CAST( + col2 AS SIGNED ) * - col0 AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL + CAST ( + col2 AS INTEGER ) * - col0 AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 col2 FROM tab2 cor0
----
37

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT BETWEEN col0 AND - 89
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3137
SELECT CAST( NULL AS SIGNED ) + - AVG ( DISTINCT 43 ) FROM tab2 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3137
SELECT CAST ( NULL AS INTEGER ) + - AVG ( DISTINCT 43 ) FROM tab2 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) IS NOT NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3138
SELECT 6 DIV + - ( - 82 ) AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3138
SELECT 6 / + - ( - 82 ) AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT - + MIN( ALL col2 ) AS col0 FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3139
SELECT - + MIN ( ALL col2 ) AS col0 FROM tab1 cor0
----
-59

query I rowsort
SELECT ALL ( + 14 ) FROM tab0 AS cor0
----
14
14
14

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3141
SELECT * FROM tab2 WHERE NOT 43 + + 89 + - CAST( 19 AS DECIMAL ) - + col1 >= NULL
----

skipif mysql # not compatible
query III rowsort label-3141
SELECT * FROM tab2 WHERE NOT 43 + + 89 + - CAST ( 19 AS REAL ) - + col1 >= NULL
----

query II rowsort
SELECT - col0 AS col0, - col1 * - col0 + + ( + col0 ) AS col2 FROM tab0
----
-15
1230
-87
1914
-97
194

query I rowsort
SELECT ALL + 50 * + col2 * - col1 AS col1 FROM tab0
----
-10500
-190350
-4950

query I rowsort
SELECT 27 + + col2 + + + col1 FROM tab2
----
101
144
152

onlyif mysql # DIV for integer division: 
query I rowsort label-3145
SELECT ALL col0 DIV - + col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL col0 / - + col2 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT - 97 + col2 AS col1 FROM tab1
----
-1
-29
-38

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT + 68 > col0 - - 42 + 32 * - + 64
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3148
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3148
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT MAX( ALL - 57 ) * - 17 AS col0 FROM tab1 AS cor0
----
969

skipif mysql # not compatible
query I rowsort label-3149
SELECT MAX ( ALL - 57 ) * - 17 AS col0 FROM tab1 AS cor0
----
969

query I rowsort
SELECT DISTINCT - + col1 + + 76 AS col1 FROM tab1 AS cor0
----
29
62
71

query II rowsort
SELECT DISTINCT col2 AS col1, col1 + + col2 AS col0 FROM tab0 AS cor0
----
10
31
47
128
99
100

onlyif mysql # DIV for integer division: 
query I rowsort label-3152
SELECT ALL col0 + + + col2 DIV - col0 * - col1 AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3152
SELECT ALL col0 + + + col2 / - col0 * - col1 AS col1 FROM tab2
----
46
64
75

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NOT 13 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT - + 36 + + MIN( ALL col1 ) * - + 43 AS col0 FROM tab2 AS cor0
----
-2229

skipif mysql # not compatible
query I rowsort label-3154
SELECT - + 36 + + MIN ( ALL col1 ) * - + 43 AS col0 FROM tab2 AS cor0
----
-2229

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3155
SELECT - col1 + + CAST( NULL AS SIGNED ), col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-3155
SELECT - col1 + + CAST ( NULL AS INTEGER ), col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3156
SELECT ALL col2 DIV 17 + - col2 - - col1 * - - col0 AS col0 FROM tab1 cor0
----
369
4213
623

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL col2 / 17 + - col2 - - col1 * - - col0 AS col0 FROM tab1 cor0
----
369
4213
623

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND col2 + + - ( - + 96 )
----

query II rowsort
SELECT ALL col2 AS col2, 0 AS col0 FROM tab2 AS cor0
----
23
0
40
0
58
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT DISTINCT COUNT( * ) - ( + 39 ) FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT COUNT ( * ) - ( + 39 ) FROM tab0 AS cor0
----
-36

query I rowsort
SELECT col1 + - + col0 * + col2 + - + col1 + + + col2 AS col1 FROM tab2 AS cor0
----
-1035
-2520
-4292

query II rowsort
SELECT ALL - 47, + col0 + - col0 * col2 * - col2 AS col2 FROM tab2 AS cor0
----
-47
102464
-47
24380
-47
252375

query I rowsort
SELECT - 13 * + 56 FROM tab1 AS cor0 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + + col2 ) col0 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT * FROM tab0 WHERE col1 * col1 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3165
SELECT DISTINCT - 49 + + CAST( NULL AS SIGNED ) / COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3165
SELECT DISTINCT - 49 + + CAST ( NULL AS INTEGER ) / COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - col1 * + col0 * - + ( ( + col0 ) ) AS col0 FROM tab2
----
107916
315392
376875

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT ALL COUNT( * ) * 21 col2 FROM tab1
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3167
SELECT ALL COUNT ( * ) * 21 col2 FROM tab1
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-3168
SELECT DISTINCT COUNT( ALL + 8 ) AS col2, + 57 FROM tab0
----
3
57

skipif mysql # not compatible
query II rowsort label-3168
SELECT DISTINCT COUNT ( ALL + 8 ) AS col2, + 57 FROM tab0
----
3
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT DISTINCT - + SUM( ALL 94 ) FROM tab2 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-3169
SELECT DISTINCT - + SUM ( ALL 94 ) FROM tab2 AS cor0
----
-282

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 74 IS NOT NULL
----

query I rowsort
SELECT - 34 * + col0 FROM tab2
----
-1564
-2176
-2550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col1, - col2 col1 FROM tab1
----
-51
-96
-85
-59
-91
-68

query I rowsort
SELECT - 2 * - col2 * 77 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col1, - col2 + - - 55 FROM tab0 AS cor0
----
10
45
47
8
99
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3175
SELECT ALL - + CAST( NULL AS SIGNED ) - col2 col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3175
SELECT ALL - + CAST ( NULL AS INTEGER ) - col2 col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3176
SELECT ALL - + col2 AS col0, col1 + + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-3176
SELECT ALL - + col2 AS col0, col1 + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN 10 + + + 76 AND NULL
----

query I rowsort
SELECT ALL 8 + + 57 * + + ( + - col0 ) FROM tab2
----
-2614
-3640
-4267

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 * - col1 + + - 89 IS NULL
----

query I rowsort
SELECT - col0 * + + ( - - col1 ) FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT - 11 * + 80 + + COUNT( * ) FROM tab0 cor0
----
-877

skipif mysql # not compatible
query I rowsort label-3182
SELECT - 11 * + 80 + + COUNT ( * ) FROM tab0 cor0
----
-877

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3183
SELECT - 49 + COUNT( * ) / + - CAST( NULL AS SIGNED ) * - + MIN( col1 ) + 43 - - + COUNT( DISTINCT col0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3183
SELECT - 49 + COUNT ( * ) / + - CAST ( NULL AS INTEGER ) * - + MIN ( col1 ) + 43 - - + COUNT ( DISTINCT col0 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col1 + ( - + col1 ) FROM tab2 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3185
SELECT DISTINCT col0 DIV + 31 + + + 32 FROM tab1
----
33
34

skipif mysql # not compatible
query I rowsort label-3185
SELECT DISTINCT col0 / + 31 + + + 32 FROM tab1
----
33
34

query I rowsort
SELECT DISTINCT + - 5 - + col0 FROM tab0 AS cor0
----
-102
-20
-92

query I rowsort
SELECT ALL - 49 - - + 67 FROM tab2 AS cor0
----
18
18
18

query I rowsort
SELECT DISTINCT + 59 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3189
SELECT DISTINCT - CAST( col1 AS SIGNED ) - - ( + 76 ) FROM tab1 AS cor0
----
29
62
71

skipif mysql # not compatible
query I rowsort label-3189
SELECT DISTINCT - CAST ( col1 AS INTEGER ) - - ( + 76 ) FROM tab1 AS cor0
----
29
62
71

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT ( 77 < NULL ) )
----

query I rowsort
SELECT ALL 89 - 56 FROM tab1 AS cor0
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT DISTINCT - - COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3192
SELECT DISTINCT - - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - - col1 - + + col2 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT DISTINCT 99 + - col1 AS col1 FROM tab1
----
52
85
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3195
SELECT * FROM tab0 WHERE NOT ( - 93 * + + CAST( + + col1 AS SIGNED ) * + col1 ) NOT BETWEEN col0 - + + col0 * col2 + + 55 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3195
SELECT * FROM tab0 WHERE NOT ( - 93 * + + CAST ( + + col1 AS INTEGER ) * + col1 ) NOT BETWEEN col0 - + + col0 * col2 + + 55 AND NULL
----

query I rowsort
SELECT ALL 13 * ( 54 ) AS col1 FROM tab1
----
702
702
702

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3197
SELECT DISTINCT - 21 * - - MAX( ALL - col0 ) DIV ( - COUNT( * ) ) AS col0 FROM tab1
----
-357

skipif mysql # not compatible
query I rowsort label-3197
SELECT DISTINCT - 21 * - - MAX ( ALL - col0 ) / ( - COUNT ( * ) ) AS col0 FROM tab1
----
-357

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT DISTINCT - MAX( - col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3198
SELECT DISTINCT - MAX ( - col2 ) AS col1 FROM tab0
----
10

query II rowsort
SELECT - 6 AS col0, col2 AS col0 FROM tab1 AS cor0
----
-6
59
-6
68
-6
96

query I rowsort
SELECT DISTINCT 31 * + + col0 + - - col1 AS col1 FROM tab2 AS cor0
----
1477
2061
2392

query I rowsort
SELECT ALL - 56 * - - col0 AS col0 FROM tab1 AS cor0
----
-2856
-4760
-5096

query I rowsort
SELECT + col0 * + + col2 * - - 16 AS col1 FROM tab2 AS cor0
----
16928
40960
69600

query I rowsort
SELECT DISTINCT + - col2 * - col1 * + col1 FROM tab1 AS cor0
----
1475
150212
18816

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT - COUNT( * ) * + COUNT( * ) + - 42 AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3204
SELECT - COUNT ( * ) * + COUNT ( * ) + - 42 AS col1 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT ALL + - col2 * + 43 AS col2 FROM tab0 AS cor0
----
-2021
-4257
-430

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + 82, + 99, - + 33, + 70 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3207
SELECT - col0 DIV 54 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3207
SELECT - col0 / 54 FROM tab2
----
-1
-1
0

query II rowsort
SELECT + col2 * - 43 * + - col1 * ( col1 ), col2 FROM tab0
----
13259781
47
189630
10
4257
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3209
SELECT + + col0 * - - 13 - - - ( - col2 ) FROM tab0 AS cor0 WHERE NOT NULL IN ( CAST( - 80 AS SIGNED ), 61, + 60, - col1 / + col2 * - - col2 )
----

skipif mysql # not compatible
query I rowsort label-3209
SELECT + + col0 * - - 13 - - - ( - col2 ) FROM tab0 AS cor0 WHERE NOT NULL IN ( CAST ( - 80 AS INTEGER ), 61, + 60, - col1 / + col2 * - - col2 )
----

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE - + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 55 + - + ( + 9 ) FROM tab2
----
46

query I rowsort
SELECT + col1 + + 72 + + ( - col0 ) AS col0 FROM tab1
----
-8
28
35

query II rowsort
SELECT DISTINCT - col2 + - col2 + - col2 AS col2, + col0 * + 48 FROM tab2
----
-120
3072
-174
3600
-69
2208

query I rowsort
SELECT DISTINCT col2 + - + col2 AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT DISTINCT - MAX( - - ( - 54 ) ) AS col1 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3215
SELECT DISTINCT - MAX ( - - ( - 54 ) ) AS col1 FROM tab2 AS cor0
----
54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3216
SELECT DISTINCT 4 - - CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3216
SELECT DISTINCT 4 - - CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT DISTINCT + 32 + - COUNT( * ) AS col1 FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-3217
SELECT DISTINCT + 32 + - COUNT ( * ) AS col1 FROM tab0
----
29

query I rowsort
SELECT - 22 + + col0 FROM tab0
----
-7
65
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3219
SELECT ALL + COUNT( * ) DIV + 11 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL + COUNT ( * ) / + 11 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT DISTINCT + - 4 * + COUNT( * ) FROM tab0 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3220
SELECT DISTINCT + - 4 * + COUNT ( * ) FROM tab0 cor0
----
-12

query I rowsort
SELECT DISTINCT ( col1 ) * 78 AS col1 FROM tab0
----
1638
6318
78

onlyif mysql # aggregate syntax: 
query II rowsort label-3222
SELECT DISTINCT + COUNT( * ) AS col0, - 82 FROM tab2
----
3
-82

skipif mysql # not compatible
query II rowsort label-3222
SELECT DISTINCT + COUNT ( * ) AS col0, - 82 FROM tab2
----
3
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 col2 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT ALL 10 * + col1 AS col2 FROM tab2
----
510
670
770

query I rowsort
SELECT DISTINCT ( + 25 ) FROM tab1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT ALL + MAX( col2 ) * + ( + + COUNT( * ) ) + - - ( + + 14 ) AS col1 FROM tab0
----
311

skipif mysql # not compatible
query I rowsort label-3226
SELECT ALL + MAX ( col2 ) * + ( + + COUNT ( * ) ) + - - ( + + 14 ) AS col1 FROM tab0
----
311

onlyif mysql # DIV for integer division: 
query I rowsort label-3227
SELECT + col1 DIV - 56 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3227
SELECT + col1 / - 56 col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3228
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - col0 + + 82 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3228
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - col0 + + 82 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 89 * + + col1 AS col1 FROM tab1 AS cor0
----
1246
4183
445

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE + ( + col1 ) IS NOT NULL
----
10
47
99

query III rowsort
SELECT * FROM tab0 WHERE NOT 51 <= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - ( 7 ) AS col1 FROM tab2 cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT - MAX( ALL col2 ) * 85 + - 3 FROM tab1 cor0
----
-8163

skipif mysql # not compatible
query I rowsort label-3233
SELECT - MAX ( ALL col2 ) * 85 + - 3 FROM tab1 cor0
----
-8163

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( ( NULL ) >= - col1 - - - col1 ) )
----

query II rowsort
SELECT + 26, + col2 FROM tab0 AS cor0
----
26
10
26
47
26
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3236
SELECT DISTINCT - COUNT( * ) DIV + 63 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3236
SELECT DISTINCT - COUNT ( * ) / + 63 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3237
SELECT + + 44 * + - ( + 83 ) + + ( - CAST( 37 AS SIGNED ) ) + + 2 AS col2 FROM tab0 WHERE + 80 IS NOT NULL
----
-3687
-3687
-3687

skipif mysql # not compatible
query I rowsort label-3237
SELECT + + 44 * + - ( + 83 ) + + ( - CAST ( 37 AS INTEGER ) ) + + 2 AS col2 FROM tab0 WHERE + 80 IS NOT NULL
----
-3687
-3687
-3687

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT - COUNT( - 30 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3238
SELECT - COUNT ( - 30 ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT ALL ( - 24 ) * + + SUM( ALL col0 ) + - 77 AS col2 FROM tab0
----
-4853

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL ( - 24 ) * + + SUM ( ALL col0 ) + - 77 AS col2 FROM tab0
----
-4853

query III rowsort
SELECT ALL * FROM tab0 WHERE 90 >= 68 / col0 + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + 10 = - - col2
----

query III rowsort
SELECT * FROM tab2 WHERE 4 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3243
SELECT DISTINCT - COUNT( * ) DIV - 73 + 15 AS col2 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-3243
SELECT DISTINCT - COUNT ( * ) / - 73 + 15 AS col2 FROM tab2
----
15

query I rowsort
SELECT ALL - 26 + - - col0 * col1 AS col1 FROM tab1
----
399
4251
688

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT + COUNT( 3 ) + + 93 + 17 AS col0 FROM tab0 AS cor0
----
113

skipif mysql # not compatible
query I rowsort label-3245
SELECT + COUNT ( 3 ) + + 93 + 17 AS col0 FROM tab0 AS cor0
----
113

query II rowsort
SELECT - 88 * + col1 * col1, 58 + col0 AS col1 FROM tab0 cor0
----
-38808
145
-577368
73
-88
155

query I rowsort
SELECT ALL - col0 + + 99 FROM tab2
----
24
35
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3248
SELECT - CAST( NULL AS SIGNED ) FROM tab2 WHERE + + col2 + + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3248
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 WHERE + + col2 + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + + 61 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
61

query I rowsort
SELECT DISTINCT + 50 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
50

query I rowsort
SELECT DISTINCT ( 30 ) AS col2 FROM tab2 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT DISTINCT + 85 * - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-3252
SELECT DISTINCT + 85 * - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT ALL + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3254
SELECT ALL - + 58 * - MIN( - CAST( + col1 AS SIGNED ) ) * - CAST( + 38 AS SIGNED ) FROM tab1 AS cor0
----
103588

skipif mysql # not compatible
query I rowsort label-3254
SELECT ALL - + 58 * - MIN ( - CAST ( + col1 AS INTEGER ) ) * - CAST ( + 38 AS INTEGER ) FROM tab1 AS cor0
----
103588

query I rowsort
SELECT - + col1 * + + 75 FROM tab1 AS cor0
----
-1050
-3525
-375

query II rowsort
SELECT 9 AS col0, col1 AS col2 FROM tab2 cor0
----
9
51
9
67
9
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT DISTINCT MIN( ALL 20 ) FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-3257
SELECT DISTINCT MIN ( ALL 20 ) FROM tab2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3258
SELECT + CAST( - col0 AS SIGNED ) FROM tab0 WHERE NOT + col1 >= NULL
----

skipif mysql # not compatible
query I rowsort label-3258
SELECT + CAST ( - col0 AS INTEGER ) FROM tab0 WHERE NOT + col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3259
SELECT ( ( + col2 ) ) DIV - col0 + CAST( - + col2 AS SIGNED ) * col1 FROM tab1
----
-1345
-295
-3196

skipif mysql # not compatible
query I rowsort label-3259
SELECT ( ( + col2 ) ) / - col0 + CAST ( - + col2 AS INTEGER ) * col1 FROM tab1
----
-1345
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT - MAX( col1 ) * - + COUNT( * ) FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-3260
SELECT - MAX ( col1 ) * - + COUNT ( * ) FROM tab2 AS cor0
----
231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3261
SELECT ALL + ( + 69 ) * - 60 * + CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL + ( + 69 ) * - 60 * + CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT + 21 + + COUNT( * ) * 68 FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-3262
SELECT + 21 + + COUNT ( * ) * 68 FROM tab0 AS cor0
----
225

onlyif mysql # DIV for integer division: 
query I rowsort label-3263
SELECT DISTINCT col2 DIV + + ( - ( + - col1 ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3263
SELECT DISTINCT col2 / + + ( - ( + - col1 ) ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col1 + + + 19 AS col0 FROM tab1 AS cor0
----
24
33
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT ALL - + SUM( DISTINCT col0 ) AS col2 FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL - + SUM ( DISTINCT col0 ) AS col2 FROM tab1 cor0
----
-227

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT BETWEEN col1 * - col0 AND - col0
----

query I rowsort
SELECT DISTINCT 10 + col2 FROM tab1
----
106
69
78

query I rowsort
SELECT 40 * + 1 + + 82 AS col1 FROM tab1
----
122
122
122

onlyif mysql # DIV for integer division: 
query I rowsort label-3269
SELECT - col2 * - col0 + + 16 + col2 DIV - + 27 - - col2 FROM tab2
----
1097
2615
4422

skipif mysql # not compatible
query I rowsort label-3269
SELECT - col2 * - col0 + + 16 + col2 / - + 27 - - col2 FROM tab2
----
1097
2615
4422

query II rowsort
SELECT - 65, + col0 FROM tab2
----
-65
46
-65
64
-65
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT 1 * + COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3271
SELECT 1 * + COUNT ( * ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT 26 - + col1 AS col0 FROM tab2
----
-25
-41
-51

query I rowsort
SELECT ALL 49 * 78 + 73 FROM tab0
----
3895
3895
3895

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + col1 + ( + col1 ) AND + - col2 / - col2 * col1 + + col1
----

query II rowsort
SELECT + 84, col2 AS col0 FROM tab1 AS cor0
----
84
59
84
68
84
96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3276
SELECT * FROM tab1 AS cor0 WHERE CAST( - col2 AS DECIMAL ) * col0 + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3276
SELECT * FROM tab1 AS cor0 WHERE CAST ( - col2 AS REAL ) * col0 + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, - col0 AS col2 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

query I rowsort
SELECT 44 * - + col1 + col2 * + col0 AS col0 FROM tab2
----
-1186
-828
1402

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3279
SELECT + 17 + - COUNT( 7 ) DIV MAX( + col0 ) col2 FROM tab2
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3279
SELECT + 17 + - COUNT ( 7 ) / MAX ( + col0 ) col2 FROM tab2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT DISTINCT ( + - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3280
SELECT DISTINCT ( + - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 46 FROM tab2 AS cor0 WHERE 53 + + col1 IS NOT NULL
----
46

query II rowsort
SELECT DISTINCT - ( - 15 ) AS col2, col1 AS col0 FROM tab2 cor0
----
15
51
15
67
15
77

query I rowsort
SELECT + ( - - 4 ) AS col0 FROM tab0 AS cor0
----
4
4
4

query I rowsort
SELECT DISTINCT - ( + 58 ) AS col0 FROM tab0 AS cor0
----
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3285
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS DECIMAL ) * col0 * + ( col1 ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-3285
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS REAL ) * col0 * + ( col1 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 * + 33 col0 FROM tab0
----
-2343
-2343
-2343

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT - 98 * + - COUNT( * ) col1 FROM tab1
----
294

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3287
SELECT - 98 * + - COUNT ( * ) col1 FROM tab1
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT ALL + SUM( - 13 ) * MIN( + + ( + col1 ) ) AS col1 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-3288
SELECT ALL + SUM ( - 13 ) * MIN ( + + ( + col1 ) ) AS col1 FROM tab0
----
-39

query II rowsort
SELECT ALL + 15, - col1 AS col2 FROM tab1
----
15
-14
15
-47
15
-5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col2 <= NULL
----

query II rowsort
SELECT DISTINCT 67 AS col0, - 59 AS col0 FROM tab2
----
67
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3292
SELECT - CAST( NULL AS SIGNED ) * 24 / + 65 AS col1, col2 AS col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-3292
SELECT - CAST ( NULL AS INTEGER ) * 24 / + 65 AS col1, col2 AS col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query III rowsort
SELECT * FROM tab0 WHERE NOT - 23 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + 36 * + col1 AS col2 FROM tab1 AS cor0
----
1692
180
504

query I rowsort
SELECT + 56 * + + 55 + + + col0 + + col0 AS col2 FROM tab1 AS cor0
----
3182
3250
3262

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE NOT col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3296
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT col2 <> NULL
----
0

query I rowsort
SELECT + 69 + 23 FROM tab1
----
92
92
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3298
SELECT + 22 + + col0 + CAST( NULL AS DECIMAL ) * + col0 * col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3298
SELECT + 22 + + col0 + CAST ( NULL AS REAL ) * + col0 * col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 35 + 25 + 39 AS col1 FROM tab2
----
99
99
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3300
SELECT ALL - ( - CAST( - col2 AS SIGNED ) ) DIV 62 DIV + - 66 * + 75 + - + 92 DIV ( - col0 ) col1 FROM tab0
----
0
1
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3300
SELECT ALL - ( - CAST ( - col2 AS INTEGER ) ) / 62 / + - 66 * + 75 + - + 92 / ( - col0 ) col1 FROM tab0
----
0
1
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3301
SELECT DISTINCT + + col0 * + 48 FROM tab0 AS cor0 WHERE + col0 * CAST( + col1 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-3301
SELECT DISTINCT + + col0 * + 48 FROM tab0 AS cor0 WHERE + col0 * CAST ( + col1 AS INTEGER ) < NULL
----

query I rowsort
SELECT ALL - 52 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 * + + 84 + 22 BETWEEN ( col1 ) AND - - 92
----
-52
-52
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3303
SELECT DISTINCT - + 9 + + - CAST( - + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
37
55
66

skipif mysql # not compatible
query I rowsort label-3303
SELECT DISTINCT - + 9 + + - CAST ( - + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
37
55
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3304
SELECT - COUNT( - col0 ) DIV - COUNT( * ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3304
SELECT - COUNT ( - col0 ) / - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT - 99 * + col2 * 63 FROM tab2 AS cor0
----
-143451
-249480
-361746

query I rowsort
SELECT ALL col0 + - col0 + - col1 FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3307
SELECT + 55 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3307
SELECT + 55 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT - COUNT( * ) + + 85 AS col0 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-3308
SELECT - COUNT ( * ) + + 85 AS col0 FROM tab0 AS cor0
----
82

query I rowsort
SELECT DISTINCT ( - + col2 ) FROM tab0 AS cor0 WHERE NOT col2 >= NULL
----

query II rowsort
SELECT DISTINCT - 85, col1 * - - 10 AS col2 FROM tab0 AS cor0
----
-85
10
-85
210
-85
810

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 <= - 23
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + - col0, - col0 + + + 66 AS col1 FROM tab1 AS cor0
----
-51
15
-85
-19
-91
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT DISTINCT + - COUNT( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3313
SELECT DISTINCT + - COUNT ( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT DISTINCT + - COUNT( ALL + 99 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT + - COUNT ( ALL + 99 ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT + + col1, - ( col2 ) + - - col1 AS col0 FROM tab0 cor0
----
1
-98
21
11
81
34

onlyif mysql # aggregate syntax: 
query II rowsort label-3316
SELECT DISTINCT - 27 AS col1, COUNT( * ) - + COUNT( ALL 48 ) + 6 + - COUNT( * ) * + ( - 94 ) FROM tab2 AS cor0
----
-27
288

skipif mysql # not compatible
query II rowsort label-3316
SELECT DISTINCT - 27 AS col1, COUNT ( * ) - + COUNT ( ALL 48 ) + 6 + - COUNT ( * ) * + ( - 94 ) FROM tab2 AS cor0
----
-27
288

query III rowsort
SELECT - - col0 AS col2, col0 + 7 + 89 AS col2, - 53 FROM tab2 AS cor0
----
9 values hashing to 8282b1146c7dee76bfdd5ced861bcbd8

onlyif mysql # aggregate syntax: 
query II rowsort label-3318
SELECT DISTINCT + 7, COUNT( * ) + MAX( ALL + 31 ) + + 96 col1 FROM tab2 AS cor0
----
7
130

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3318
SELECT DISTINCT + 7, COUNT ( * ) + MAX ( ALL + 31 ) + + 96 col1 FROM tab2 AS cor0
----
7
130

onlyif mysql # DIV for integer division: 
query II rowsort label-3319
SELECT - col0 AS col2, - col0 - 55 + 61 DIV col1 AS col0 FROM tab1 AS cor0
----
-51
-102
-85
-128
-91
-145

skipif mysql # not compatible
query II rowsort label-3319
SELECT - col0 AS col2, - col0 - 55 + 61 / col1 AS col0 FROM tab1 AS cor0
----
-51
-102
-85
-128
-91
-145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3320
SELECT DISTINCT MAX( DISTINCT + CAST( + 34 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-3320
SELECT DISTINCT MAX ( DISTINCT + CAST ( + 34 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
34

query I rowsort
SELECT ALL + 14 / - + col2 + - col0 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3322
SELECT + col2 DIV - - 79, + col2 FROM tab1 AS cor0
----
0
59
0
68
1
96

skipif mysql # not compatible
query II rowsort label-3322
SELECT + col2 / - - 79, + col2 FROM tab1 AS cor0
----
0
59
0
68
1
96

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE - ( 46 ) IS NULL
----

query I rowsort
SELECT ALL col2 + - 80 FROM tab2
----
-22
-40
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3325
SELECT - + col2 + - - CAST( - col1 AS SIGNED ) + 46 * - + 24 * - col2 FROM tab0 AS cor0
----
109196
11009
51760

skipif mysql # not compatible
query I rowsort label-3325
SELECT - + col2 + - - CAST ( - col1 AS INTEGER ) + 46 * - + 24 * - col2 FROM tab0 AS cor0
----
109196
11009
51760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + 1 + - col0 + + col2 col0 FROM tab0 AS cor0
----
-49
-98
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3327
SELECT ALL + 66 / CAST( NULL AS DECIMAL ) + - + col2 AS col0 FROM tab2 cor0 WHERE NOT + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3327
SELECT ALL + 66 / CAST ( NULL AS REAL ) + - + col2 AS col0 FROM tab2 cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT col1 + - col0 + - - 64 * - 88 AS col0 FROM tab0 AS cor0
----
-5566
-5698
-5728

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT ALL + COUNT( * ) * + 85 + + 38 + - - COUNT( * ) FROM tab0 cor0
----
296

skipif mysql # not compatible
query I rowsort label-3329
SELECT ALL + COUNT ( * ) * + 85 + + 38 + - - COUNT ( * ) FROM tab0 cor0
----
296

query I rowsort
SELECT DISTINCT + col1 * - ( - 94 ) AS col0 FROM tab0 AS cor0
----
1974
7614
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3331
SELECT * FROM tab0 WHERE col0 >= + ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3331
SELECT * FROM tab0 WHERE col0 >= + ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3332
SELECT ALL 33 * + + CAST( NULL AS SIGNED ) * + COUNT( * ) DIV - COUNT( * ) AS col2, 82 DIV + SUM( ALL col2 ) * - 89 AS col1 FROM tab2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3332
SELECT ALL 33 * + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) / - COUNT ( * ) AS col2, 82 / + SUM ( ALL col2 ) * - 89 AS col1 FROM tab2
----
NULL
0

query I rowsort
SELECT ALL + ( + col2 ) * + - 16 + - col1 AS col0 FROM tab0
----
-1585
-181
-833

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3334
SELECT ( 65 ) DIV + ( - 52 ) AS col1, COUNT( * ) FROM tab1
----
-1
3

skipif mysql # not compatible
query II rowsort label-3334
SELECT ( 65 ) / + ( - 52 ) AS col1, COUNT ( * ) FROM tab1
----
-1
3

query I rowsort
SELECT ALL col0 - - col2 * col0 FROM tab1
----
4947
5100
6279

query I rowsort
SELECT col2 * + col2 - - col2 FROM tab0
----
110
2256
9900

onlyif mysql # DIV for integer division: 
query I rowsort label-3337
SELECT ALL - col2 * - + col2 DIV + + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3337
SELECT ALL - col2 * - + col2 / + + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3338
SELECT DISTINCT + - 92 AS col0 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) BETWEEN - col0 * + + col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3338
SELECT DISTINCT + - 92 AS col0 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) BETWEEN - col0 * + + col0 AND NULL
----

query I rowsort
SELECT DISTINCT - 28 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3340
SELECT ALL - CAST( + - col0 AS SIGNED ) * + col1 AS col1, 77 AS col0 FROM tab2 AS cor0
----
2346
77
4928
77
5025
77

skipif mysql # not compatible
query II rowsort label-3340
SELECT ALL - CAST ( + - col0 AS INTEGER ) * + col1 AS col1, 77 AS col0 FROM tab2 AS cor0
----
2346
77
4928
77
5025
77

onlyif mysql # DIV for integer division: 
query II rowsort label-3341
SELECT DISTINCT - + col1, - col2 + + col0 + + 72 - col2 DIV + col1 * + 44 AS col1 FROM tab2 AS cor0
----
-51
95
-67
89
-77
96

skipif mysql # not compatible
query II rowsort label-3341
SELECT DISTINCT - + col1, - col2 + + col0 + + 72 - col2 / + col1 * + 44 AS col1 FROM tab2 AS cor0
----
-51
95
-67
89
-77
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT ALL + MIN( DISTINCT 47 ) AS col1 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL + MIN ( DISTINCT 47 ) AS col1 FROM tab2 AS cor0
----
47

query I rowsort
SELECT ALL + 6 * - 75 * - + 92 * + col0 AS col2 FROM tab2 cor0
----
1904400
2649600
3105000

onlyif mysql # DIV for integer division: 
query I rowsort label-3344
SELECT DISTINCT - col2 DIV + - col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3344
SELECT DISTINCT - col2 / + - col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT 55 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL 71, col2 AS col1 FROM tab0
----
71
10
71
47
71
99

query I rowsort
SELECT 15 * - - col0 * + - col1 FROM tab0
----
-1455
-18225
-27405

query II rowsort
SELECT DISTINCT + 96 + + col1 AS col0, - col1 AS col0 FROM tab2
----
147
-51
163
-67
173
-77

query I rowsort
SELECT + 89 * + col1 FROM tab1
----
1246
4183
445

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3350
SELECT ALL - COUNT( * ) - - + CAST( NULL AS SIGNED ) + MIN( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE NOT NULL <= 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL - COUNT ( * ) - - + CAST ( NULL AS INTEGER ) + MIN ( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE NOT NULL <= 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT 83 + SUM( + col2 ) AS col0 FROM tab2 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-3351
SELECT 83 + SUM ( + col2 ) AS col0 FROM tab2 AS cor0
----
204

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > NULL
----

query I rowsort
SELECT ALL 12 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * 34 col0 FROM tab0 AS cor0
----
2754
34
714

onlyif mysql # DIV for integer division: 
query I rowsort label-3355
SELECT + col0 * + col1 * + + col1 - 84 + - - col0 DIV col1 * col2 FROM tab2 AS cor0
----
119562
336649
379372

skipif mysql # not compatible
query I rowsort label-3355
SELECT + col0 * + col1 * + + col1 - 84 + - - col0 / col1 * col2 FROM tab2 AS cor0
----
119562
336649
379372

query I rowsort
SELECT ALL col2 * - 57 FROM tab1
----
-3363
-3876
-5472

query II rowsort
SELECT DISTINCT - 72, + col2 FROM tab0
----
-72
10
-72
47
-72
99

query I rowsort
SELECT - col0 + + + col1 * col2 * + 68 AS col1 FROM tab0
----
14193
258861
6635

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3359
SELECT - - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3359
SELECT - - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT MIN( ALL + 25 ) FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-3360
SELECT MIN ( ALL + 25 ) FROM tab0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT - 81 * - COUNT( * ) FROM tab2 WHERE 70 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3361
SELECT - 81 * - COUNT ( * ) FROM tab2 WHERE 70 IS NULL
----
0

query I rowsort
SELECT 26 FROM tab2 WHERE NOT ( + 49 + 53 ) IS NULL
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT ALL SUM( 68 ) + - COUNT( * ) col2 FROM tab2
----
201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3363
SELECT ALL SUM ( 68 ) + - COUNT ( * ) col2 FROM tab2
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT MIN( + 63 ) + 94 FROM tab0
----
157

skipif mysql # not compatible
query I rowsort label-3364
SELECT MIN ( + 63 ) + 94 FROM tab0
----
157

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3365
SELECT * FROM tab2 WHERE NOT NULL >= ( + CAST( NULL AS SIGNED ) + col0 )
----

skipif mysql # not compatible
query III rowsort label-3365
SELECT * FROM tab2 WHERE NOT NULL >= ( + CAST ( NULL AS INTEGER ) + col0 )
----

query I rowsort
SELECT + col2 * - col2 + col0 * ( + col1 ) FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT - 76 * col2 FROM tab0
----
-3572
-7524
-760

query I rowsort
SELECT ALL + ( + col0 ) * + 31 FROM tab0
----
2697
3007
465

query I rowsort
SELECT - 37 AS col1 FROM tab2 WHERE - 89 - - 73 = 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT + COUNT( * ) * 96 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-3370
SELECT + COUNT ( * ) * 96 FROM tab1
----
288

query I rowsort
SELECT - col1 + - 31 * - col0 FROM tab1
----
1567
2630
2774

query I rowsort
SELECT - ( col1 ) * col0 AS col2 FROM tab0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3373
SELECT DISTINCT * FROM tab1 WHERE ( CAST( + 28 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3373
SELECT DISTINCT * FROM tab1 WHERE ( CAST ( + 28 AS INTEGER ) ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3374
SELECT * FROM tab2 WHERE NOT CAST( - col2 AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3374
SELECT * FROM tab2 WHERE NOT CAST ( - col2 AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 FROM tab0 WHERE ( - col2 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT 46 + - SUM( DISTINCT col0 ) FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-3377
SELECT 46 + - SUM ( DISTINCT col0 ) FROM tab0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT COUNT( * ) * - 56 AS col2 FROM tab0 WHERE ( NULL ) IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3378
SELECT COUNT ( * ) * - 56 AS col2 FROM tab0 WHERE ( NULL ) IN ( col1 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 66 col1 FROM tab2
----
3366
4422
5082

query I rowsort
SELECT col2 * ( - col1 * 4 ) AS col0 FROM tab0
----
-15228
-396
-840

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 * + 3 ) BETWEEN NULL AND - col2 - + 53
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3382
SELECT - 73 DIV COUNT( * ) FROM tab1 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-3382
SELECT - 73 / COUNT ( * ) FROM tab1 cor0
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-3383
SELECT DISTINCT + 78 DIV 91 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT + 78 / 91 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 21 NOT BETWEEN col0 AND - col0 + col0 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 14 + 18 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> - 94 * + col1 + + 35
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3387
SELECT ALL - col1 * + 7 + ( + ( + 90 ) ) DIV col0 FROM tab2
----
-356
-468
-538

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL - col1 * + 7 + ( + ( + 90 ) ) / col0 FROM tab2
----
-356
-468
-538

query I rowsort
SELECT DISTINCT + col1 + + 73 FROM tab2
----
124
140
150

query I rowsort
SELECT 37 + col0 * col0 FROM tab2
----
2153
4133
5662

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3390
SELECT DISTINCT CAST( NULL AS SIGNED ) * + COUNT( * ) + 21 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3390
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + COUNT ( * ) + 21 FROM tab1
----
NULL

query I rowsort
SELECT ALL + 10 AS col0 FROM tab0 AS cor0 WHERE + 38 NOT BETWEEN - col1 AND col2
----
10

query I rowsort
SELECT + ( ( - col1 ) ) + col0 * 94 FROM tab0 AS cor0
----
1329
8157
9117

query I rowsort
SELECT - col0 FROM tab0 cor0 WHERE ( 65 ) <= 31 * col1
----
-15
-87

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 IN ( ( col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 - + 46 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT ALL - COUNT( * ) * + MAX( ALL col1 + - col2 ) FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL - COUNT ( * ) * + MAX ( ALL col1 + - col2 ) FROM tab1 AS cor0
----
63

query I rowsort
SELECT DISTINCT - 58 * col2 - - col1 AS col0 FROM tab1 AS cor0
----
-3417
-3897
-5554

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3398
SELECT DISTINCT + CAST( CAST( - ( + COUNT( + 65 ) ) AS SIGNED ) AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 * col1 > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3398
SELECT DISTINCT + CAST ( CAST ( - ( + COUNT ( + 65 ) ) AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 * col1 > ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3399
SELECT ALL - + col0 - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL - + col0 - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3401
SELECT * FROM tab2 AS cor0 WHERE + 45 + ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3401
SELECT * FROM tab2 AS cor0 WHERE + 45 + ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT ALL 26 * + COUNT( * ) + 13 col1 FROM tab0 AS cor0 WHERE NOT + col1 + + col0 >= - ( 31 )
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3402
SELECT ALL 26 * + COUNT ( * ) + 13 col1 FROM tab0 AS cor0 WHERE NOT + col1 + + col0 >= - ( 31 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT ALL - 36 - COUNT( * ) FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL - 36 - COUNT ( * ) FROM tab2 AS cor0
----
-39

query I rowsort
SELECT col1 * + - 49 AS col1 FROM tab0
----
-1029
-3969
-49

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 36 * 66 ) <> + ( col2 ) * - 26
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3406
SELECT 16 * - + COUNT( * ) * - CAST( 92 AS SIGNED ) AS col1 FROM tab1
----
4416

skipif mysql # not compatible
query I rowsort label-3406
SELECT 16 * - + COUNT ( * ) * - CAST ( 92 AS INTEGER ) AS col1 FROM tab1
----
4416

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT DISTINCT + SUM( DISTINCT - + col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-3407
SELECT DISTINCT + SUM ( DISTINCT - + col0 ) AS col1 FROM tab0
----
-199

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT 37 * COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <= ( + 2 )
----
0

skipif mysql # not compatible
query I rowsort label-3409
SELECT 37 * COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <= ( + 2 )
----
0

query I rowsort
SELECT - col2 * + + col2 * - - col1 FROM tab0
----
-178929
-2100
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3411
SELECT ALL - col0 * - 30 AS col1 FROM tab1 WHERE NOT ( - CAST( col1 AS SIGNED ) IS NULL )
----
1530
2550
2730

skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL - col0 * - 30 AS col1 FROM tab1 WHERE NOT ( - CAST ( col1 AS INTEGER ) IS NULL )
----
1530
2550
2730

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3412
SELECT MIN( ALL CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3412
SELECT MIN ( ALL CAST ( NULL AS REAL ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT - COUNT( * ) * + 82 AS col1 FROM tab0
----
-246

skipif mysql # not compatible
query I rowsort label-3413
SELECT - COUNT ( * ) * + 82 AS col1 FROM tab0
----
-246

query I rowsort
SELECT ALL - 62 * + 10 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f87ee089d88db0707f503b8e18a385bc

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE - 37 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3416
SELECT ALL 33 DIV - col2 * + 96 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL 33 / - col2 * + 96 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 29 > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 + + col2 + + ( col2 ) * col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + 71 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + col2 * + col0 * col1 FROM tab0 AS cor0
----
-18270
-57105
-9603

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 IN ( + col1 * 0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 73 IN ( - col0 )
----

query I rowsort
SELECT DISTINCT - col0 + - 69 AS col0 FROM tab0 AS cor0
----
-156
-166
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT + + SUM( + - col0 ) FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3424
SELECT + + SUM ( + - col0 ) FROM tab0 cor0
----
-199

onlyif mysql # DIV for integer division: 
query I rowsort label-3425
SELECT DISTINCT + 13 + col1 DIV + col2 - - col1 FROM tab0
----
14
36
95

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT + 13 + col1 / + col2 - - col1 FROM tab0
----
14
36
95

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col0 + col2 ) = - col1 + + col1
----

query I rowsort
SELECT DISTINCT col0 + + + 65 * col2 AS col1 FROM tab2
----
1541
2664
3845

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT + col1 * - 50 / col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3428
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT + col1 * - 50 / col2 IS NULL
----
3

query I rowsort
SELECT col0 FROM tab0 WHERE - 71 * col1 * col1 + 77 NOT BETWEEN NULL AND ( 15 * + 21 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( - 70 ) IS NULL )
----

query I rowsort
SELECT + col2 * col1 + + + col0 + - col2 FROM tab2 AS cor0
----
1196
3104
3903

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT + - COUNT( * ) * + + SUM( + col2 ) + - 71 FROM tab1 cor0
----
-740

skipif mysql # not compatible
query I rowsort label-3432
SELECT + - COUNT ( * ) * + + SUM ( + col2 ) + - 71 FROM tab1 cor0
----
-740

onlyif mysql # aggregate syntax: 
query II rowsort label-3433
SELECT ALL MIN( + col0 ) col2, 60 AS col0 FROM tab2 AS cor0
----
46
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3433
SELECT ALL MIN ( + col0 ) col2, 60 AS col0 FROM tab2 AS cor0
----
46
60

onlyif mysql # DIV for integer division: 
query I rowsort label-3434
SELECT 46 + 87 DIV + col2 AS col1 FROM tab1 AS cor0
----
46
47
47

skipif mysql # not compatible
query I rowsort label-3434
SELECT 46 + 87 / + col2 AS col1 FROM tab1 AS cor0
----
46
47
47

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 ) <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3436
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-3436
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT MIN( - 12 ) AS col1 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-3437
SELECT MIN ( - 12 ) AS col1 FROM tab1
----
-12

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE - 34 + - 72 / col1 + 19 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT DISTINCT - SUM( col0 ) + + COUNT( * ) AS col1 FROM tab1
----
-224

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT - SUM ( col0 ) + + COUNT ( * ) AS col1 FROM tab1
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT ALL + COUNT( 81 ) * 56 - - 13 FROM tab0 AS cor0
----
181

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL + COUNT ( 81 ) * 56 - - 13 FROM tab0 AS cor0
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT DISTINCT ( + COUNT( ALL + 35 ) ) col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3441
SELECT DISTINCT ( + COUNT ( ALL + 35 ) ) col0 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT COUNT( * ) * 26 FROM tab1 cor0
----
78

skipif mysql # not compatible
query I rowsort label-3442
SELECT COUNT ( * ) * 26 FROM tab1 cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT - + SUM( ALL col0 ) col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3443
SELECT - + SUM ( ALL col0 ) col1 FROM tab2 AS cor0
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + col1 col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3445
SELECT DISTINCT col1 col0, CAST( NULL AS SIGNED ) + - - col2 + col0 + - + 55 * 78 * col1 AS col1 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-3445
SELECT DISTINCT col1 col0, CAST ( NULL AS INTEGER ) + - - col2 + col0 + - + 55 * 78 * col1 AS col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT DISTINCT MAX( DISTINCT - - 98 ) AS col2 FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-3446
SELECT DISTINCT MAX ( DISTINCT - - 98 ) AS col2 FROM tab2
----
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3447
SELECT ( + CAST( NULL AS DECIMAL ) ) * - + 4 + + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3447
SELECT ( + CAST ( NULL AS REAL ) ) * - + 4 + + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 21 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3449
SELECT DISTINCT + SUM( + 37 ) * MAX( col2 * + col1 ) AS col2 FROM tab1 WHERE NOT - col2 * - - col0 NOT IN ( CAST( - - col1 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3449
SELECT DISTINCT + SUM ( + 37 ) * MAX ( col2 * + col1 ) AS col2 FROM tab1 WHERE NOT - col2 * - - col0 NOT IN ( CAST ( - - col1 AS INTEGER ) )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - ( - - col2 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT - col2 NOT IN ( - col0 * 18 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col1, col1 + + + col2 FROM tab1
----
14
110
47
115
5
64

onlyif mysql # DIV for integer division: 
query II rowsort label-3453
SELECT - col2 DIV + + col1 AS col2, 23 FROM tab1 AS cor0
----
-1
23
-11
23
-6
23

skipif mysql # not compatible
query II rowsort label-3453
SELECT - col2 / + + col1 AS col2, 23 FROM tab1 AS cor0
----
-1
23
-11
23
-6
23

onlyif mysql # aggregate syntax: 
query II rowsort label-3454
SELECT + + COUNT( * ) AS col2, - 66 col2 FROM tab0 AS cor0
----
3
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3454
SELECT + + COUNT ( * ) AS col2, - 66 col2 FROM tab0 AS cor0
----
3
-66

query II rowsort
SELECT - - 92, ( + - ( - col2 ) ) * - - col2 + + 6 + - ( col1 ) * col2 AS col0 FROM tab0 AS cor0
----
92
-104
92
-1592
92
9708

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL + - col1 * + - col1 + + col0 + - + col1 * - col0 FROM tab0 WHERE col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 81 FROM tab2 AS cor0 WHERE NOT col0 + 54 IS NULL
----
81
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3459
SELECT + col2 * - col1 + + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3459
SELECT + col2 * - col1 + + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT - + COUNT( * ) * + COUNT( * ) * - + 10 col0 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3460
SELECT - + COUNT ( * ) * + COUNT ( * ) * - + 10 col0 FROM tab0 AS cor0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-3461
SELECT + 61 DIV + - col1 + + col2 FROM tab1 AS cor0
----
47
67
92

skipif mysql # not compatible
query I rowsort label-3461
SELECT + 61 / + - col1 + + col2 FROM tab1 AS cor0
----
47
67
92

query I rowsort
SELECT + col1 * col1 + col0 FROM tab1 AS cor0 WHERE NULL > + col0 - 19 / + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3463
SELECT ALL - - col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL - - col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 + + 19 col0 FROM tab1
----
66
66
66

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( - 76 * + - col0 / - col0 * - - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3466
SELECT DISTINCT + CAST( - col1 AS SIGNED ) + col0 + - CAST( NULL AS SIGNED ) / + - 17 * - 55 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3466
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) + col0 + - CAST ( NULL AS INTEGER ) / + - 17 * - 55 FROM tab1
----
NULL

query I rowsort
SELECT col2 + + + 55 AS col2 FROM tab0
----
102
154
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3468
SELECT ALL + col1 - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3468
SELECT ALL + col1 - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3469
SELECT - 93 AS col2, + COUNT( * ) * - 66 + - - 65 FROM tab0
----
-93
-133

skipif mysql # not compatible
query II rowsort label-3469
SELECT - 93 AS col2, + COUNT ( * ) * - 66 + - - 65 FROM tab0
----
-93
-133

query I rowsort
SELECT + 55 FROM tab1 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 52 - + 5 AS col0 FROM tab1
----
47

query I rowsort
SELECT ALL + - col0 * - 41 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * + + col0 * - 93 * col0 FROM tab1 AS cor0
----
-3359625
-3386502
-36196251

query I rowsort
SELECT DISTINCT ( - - col2 ) * col2 AS col2 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3475
SELECT DISTINCT CAST( + 23 AS SIGNED ) * + col1 + + CAST( NULL AS DECIMAL ), + 48 col2 FROM tab2
----
NULL
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3475
SELECT DISTINCT CAST ( + 23 AS INTEGER ) * + col1 + + CAST ( NULL AS REAL ), + 48 col2 FROM tab2
----
NULL
48

query I rowsort
SELECT + 53 AS col0 FROM tab1 WHERE NOT 83 IS NOT NULL
----

query I rowsort
SELECT - ( + + ( - col0 ) ) FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL + 26 + - col0 * - 46 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <= 64
----

query II rowsort
SELECT + col0 * col2 AS col1, - 51 + col1 FROM tab2 AS cor0
----
1058
0
2560
26
4350
16

query I rowsort
SELECT + - col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT SUM( col0 ) * + + 8 FROM tab2
----
1480

skipif mysql # not compatible
query I rowsort label-3481
SELECT SUM ( col0 ) * + + 8 FROM tab2
----
1480

onlyif mysql # DIV for integer division: 
query I rowsort label-3482
SELECT ALL 17 DIV - col0 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3482
SELECT ALL 17 / - col0 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT col1 * + + col1 * - + col1 FROM tab2
----
-132651
-300763
-456533

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3484
SELECT DISTINCT - CAST( - + 15 AS SIGNED ) AS col0 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT - CAST ( - + 15 AS INTEGER ) AS col0 FROM tab2
----
15

query I rowsort
SELECT 5 * - col0 FROM tab0
----
-435
-485
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT + MIN( DISTINCT + + 46 ) AS col2 FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-3486
SELECT + MIN ( DISTINCT + + 46 ) AS col2 FROM tab1
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3487
SELECT ALL - CAST( 9 AS SIGNED ) FROM tab1
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL - CAST ( 9 AS INTEGER ) FROM tab1
----
-9
-9
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 * ( + - col2 ) * + - col1 * - col0 * col0 col0 FROM tab0 WHERE NOT - ( - + col2 ) IS NULL
----
130338180
70239150
76382262

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3489
SELECT * FROM tab2 WHERE NOT col1 / + + col2 + + col0 + - CAST( CAST( col0 AS SIGNED ) AS SIGNED ) * - + col1 * - col0 * col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3489
SELECT * FROM tab2 WHERE NOT col1 / + + col2 + + col0 + - CAST ( CAST ( col0 AS INTEGER ) AS INTEGER ) * - + col1 * - col0 * col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 86 ) < 18
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3491
SELECT col1 + + col2 * - ( col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( ( col1 + + + col2 + 77 + - col1 * CAST( - col0 AS SIGNED ) ) IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-3491
SELECT col1 + + col2 * - ( col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( ( col1 + + + col2 + 77 + - col1 * CAST ( - col0 AS INTEGER ) ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT DISTINCT + - MIN( + col1 ) * - 90 * COUNT( DISTINCT col1 ) AS col1 FROM tab1 WHERE NOT - 29 NOT IN ( + 92, 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3492
SELECT DISTINCT + - MIN ( + col1 ) * - 90 * COUNT ( DISTINCT col1 ) AS col1 FROM tab1 WHERE NOT - 29 NOT IN ( + 92, 29 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT DISTINCT - SUM( - + ( - - col0 ) ) col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3493
SELECT DISTINCT - SUM ( - + ( - - col0 ) ) col1 FROM tab1 AS cor0
----
227

query I rowsort
SELECT ALL + 26 + - col1 FROM tab1 AS cor0
----
-21
12
21

onlyif mysql # aggregate syntax: 
query II rowsort label-3495
SELECT DISTINCT 89 AS col1, + 34 + - COUNT( * ) col0 FROM tab2 AS cor0
----
89
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3495
SELECT DISTINCT 89 AS col1, + 34 + - COUNT ( * ) col0 FROM tab2 AS cor0
----
89
31

query I rowsort
SELECT col1 * - col2 * - 19 AS col2 FROM tab1 AS cor0
----
25536
5605
60724

query I rowsort
SELECT ALL + col1 * 39 + - 84 + + col2 + + + col0 FROM tab1 AS cor0
----
1908
255
609

onlyif mysql # aggregate syntax: 
query II rowsort label-3498
SELECT ALL - COUNT( * ), 14 col1 FROM tab0 AS cor0
----
-3
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3498
SELECT ALL - COUNT ( * ), 14 col1 FROM tab0 AS cor0
----
-3
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT - COUNT( DISTINCT - 62 ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3499
SELECT - COUNT ( DISTINCT - 62 ) AS col0 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 ) <= + 94
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3501
SELECT + + col1 DIV 76 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3501
SELECT + + col1 / 76 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col1 - - - 58 AS col2 FROM tab1
----
-11
-44
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-3503
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT DISTINCT + 24 + - MIN( DISTINCT + + col1 ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT + 24 + - MIN ( DISTINCT + + col1 ) FROM tab1
----
19

query I rowsort
SELECT ALL + col1 * col0 + + + col1 FROM tab2 AS cor0
----
2397
5005
5092

onlyif mysql # aggregate syntax: 
query II rowsort label-3506
SELECT ALL COUNT( * ) AS col2, - COUNT( * ) + + 47 col1 FROM tab2
----
3
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3506
SELECT ALL COUNT ( * ) AS col2, - COUNT ( * ) + + 47 col1 FROM tab2
----
3
44

query II rowsort
SELECT DISTINCT col0 * col1 + + col2, 64 * + col2 AS col1 FROM tab2 AS cor0
----
2369
1472
4968
2560
5083
3712

query I rowsort
SELECT ALL - + col2 * - 78 + + col1 + + col0 + + col0 * + col2 FROM tab2 AS cor0
----
2949
5821
9016

onlyif mysql # DIV for integer division: 
query I rowsort label-3509
SELECT DISTINCT + col0 DIV + + col0 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3509
SELECT DISTINCT + col0 / + + col0 AS col1 FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3510
SELECT - - col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3510
SELECT - - col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - ( + + col1 ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + 49 * - - 40 FROM tab0 AS cor0
----
1960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3513
SELECT CAST( NULL AS SIGNED ) * - - col0 * col2 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3513
SELECT CAST ( NULL AS INTEGER ) * - - col0 * col2 col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3514
SELECT DISTINCT - 18 DIV + col2 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3514
SELECT DISTINCT - 18 / + col2 AS col2 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 * + col1 * + ( + col2 ) ) NOT BETWEEN ( NULL ) AND ( ( col0 ) ) OR NOT NULL <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 3 ) IN ( + col2 + + col0, + col1 - + ( col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3517
SELECT ALL 14 / - COUNT( * ) * CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3517
SELECT ALL 14 / - COUNT ( * ) * CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + 13 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT DISTINCT + MAX( DISTINCT col1 ) col2 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3519
SELECT DISTINCT + MAX ( DISTINCT col1 ) col2 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT MIN( col0 ) col2 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3520
SELECT MIN ( col0 ) col2 FROM tab2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3521
SELECT ALL - + 52 * + col1 + col2 DIV + - col1 * - - col0 AS col0 FROM tab2 AS cor0
----
-2652
-3484
-4004

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL - + 52 * + col1 + col2 / + - col1 * - - col0 AS col0 FROM tab2 AS cor0
----
-2652
-3484
-4004

query I rowsort
SELECT - 81 FROM tab2 AS cor0 WHERE NOT NULL <> ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col2 col2 FROM tab2
----
116
46
80

query I rowsort
SELECT DISTINCT - 2 * - col2 + col1 FROM tab1
----
123
183
206

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT ALL + MAX( + 30 ) FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL + MAX ( + 30 ) FROM tab2 AS cor0
----
30

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 - + col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3527
SELECT + col1 / - + CAST( NULL AS SIGNED ) + - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3527
SELECT + col1 / - + CAST ( NULL AS INTEGER ) + - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + ( col1 ) + - - ( col1 ) - - col1 AS col2 FROM tab0 AS cor0
----
100
150
258

query I rowsort
SELECT ALL + 34 * + + col0 + + col1 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 = col1 - 38
----
1615
2253
2617

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT + COUNT( * ) * - - 92 AS col1 FROM tab1 AS cor0 WHERE 21 IS NOT NULL
----
276

skipif mysql # not compatible
query I rowsort label-3530
SELECT + COUNT ( * ) * - - 92 AS col1 FROM tab1 AS cor0 WHERE 21 IS NOT NULL
----
276

query I rowsort
SELECT ALL - - col0 + - 56 FROM tab1 AS cor0
----
-5
29
35

query I rowsort
SELECT DISTINCT - col1 * - + col1 + - - col2 - col0 AS col1 FROM tab0
----
3
364
6593

query I rowsort
SELECT ALL 87 * - 83 FROM tab1
----
-7221
-7221
-7221

query III rowsort
SELECT ALL * FROM tab2 WHERE 63 >= NULL
----

query I rowsort
SELECT DISTINCT + col2 + + - 36 AS col0 FROM tab0
----
-26
11
63

onlyif mysql # DIV for integer division: 
query II rowsort label-3536
SELECT col0 col2, - 67 + col1 DIV + + 40 AS col2 FROM tab1
----
51
-67
85
-67
91
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3536
SELECT col0 col2, - 67 + col1 / + + 40 AS col2 FROM tab1
----
51
-67
85
-67
91
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3537
SELECT ALL col0 + - CAST( - col2 AS SIGNED ) AS col0 FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL col0 + - CAST ( - col2 AS INTEGER ) AS col0 FROM tab2
----
104
133
69

query I rowsort
SELECT ALL 73 - + - col2 AS col1 FROM tab0
----
120
172
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3539
SELECT ALL + CAST( NULL AS SIGNED ) - + SUM( col2 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL + CAST ( NULL AS INTEGER ) - + SUM ( col2 ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 37 IS NULL
----

query I rowsort
SELECT ALL + 56 - col1 * + - col1 FROM tab0
----
497
57
6617

query I rowsort
SELECT col1 * + 31 FROM tab2 AS cor0
----
1581
2077
2387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 * - + 34 col0 FROM tab0
----
-1768
-1768
-1768

query I rowsort
SELECT ALL - 43 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT ( + - 75 ) * - col2 FROM tab1
----
4425
5100
7200

onlyif mysql # DIV for integer division: 
query I rowsort label-3546
SELECT 62 DIV - col2 col1 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3546
SELECT 62 / - col2 col1 FROM tab0 AS cor0
----
-1
-6
0

query I rowsort
SELECT ALL - col2 * - col0 - + ( - col1 ) AS col1 FROM tab0 cor0
----
786
891
9604

query I rowsort
SELECT DISTINCT col2 * - col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3549
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( - ( + col2 ) + - + col1 + CAST( - ( - col0 ) AS SIGNED ) ) AND - 58 + - + col2
----

skipif mysql # not compatible
query III rowsort label-3549
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( - ( + col2 ) + - + col1 + CAST ( - ( - col0 ) AS INTEGER ) ) AND - 58 + - + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3550
SELECT ALL + SUM( ALL - CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3550
SELECT ALL + SUM ( ALL - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 49 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 + + col1 NOT IN ( + col0 + - ( - col2 ) + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3552
SELECT + col0 * - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3552
SELECT + col0 * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col2 ) AS col2 FROM tab2 WHERE NOT - 62 * + 32 + col2 IS NOT NULL
----

query I rowsort
SELECT - col2 * + 65 AS col1 FROM tab0
----
-3055
-6435
-650

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT 3 + + MAX( DISTINCT - 39 ) FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-3555
SELECT 3 + + MAX ( DISTINCT - 39 ) FROM tab2 AS cor0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3556
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, + 79 * - col1 AS col0 FROM tab2 AS cor0
----
NULL
-4029
NULL
-5293
NULL
-6083

skipif mysql # not compatible
query II rowsort label-3556
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, + 79 * - col1 AS col0 FROM tab2 AS cor0
----
NULL
-4029
NULL
-5293
NULL
-6083

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT ALL COUNT( * ) + + + COUNT( ( - col0 ) ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3557
SELECT ALL COUNT ( * ) + + + COUNT ( ( - col0 ) ) FROM tab1 AS cor0
----
6

query II rowsort
SELECT DISTINCT + col0 AS col1, col2 AS col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 23 + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3560
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 21 + + - 41 * + ( + col0 ) NOT IN ( + CAST( - col2 AS SIGNED ) + - 19 + - col1 * - col1 )
----

skipif mysql # not compatible
query III rowsort label-3560
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 21 + + - 41 * + ( + col0 ) NOT IN ( + CAST ( - col2 AS INTEGER ) + - 19 + - col1 * - col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 34 NOT BETWEEN NULL AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * - + ( col2 ) AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # DIV for integer division: 
query II rowsort label-3563
SELECT ALL - - col0 DIV col2 AS col1, col0 FROM tab2 AS cor0
----
1
64
1
75
2
46

skipif mysql # not compatible
query II rowsort label-3563
SELECT ALL - - col0 / col2 AS col1, col0 FROM tab2 AS cor0
----
1
64
1
75
2
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3564
SELECT - col1 DIV - ( col1 ) AS col0 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3564
SELECT - col1 / - ( col1 ) AS col0 FROM tab2 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3565
SELECT COUNT( + 77 ) - - ( 82 ) col2, + ( + 88 ) FROM tab0 cor0
----
85
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3565
SELECT COUNT ( + 77 ) - - ( 82 ) col2, + ( + 88 ) FROM tab0 cor0
----
85
88

query I rowsort
SELECT DISTINCT + ( - 96 ) FROM tab1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3567
SELECT * FROM tab0 WHERE 67 * + col0 - CAST( + col0 AS SIGNED ) + - 66 + - CAST( NULL AS SIGNED ) + 89 <> NULL
----

skipif mysql # not compatible
query III rowsort label-3567
SELECT * FROM tab0 WHERE 67 * + col0 - CAST ( + col0 AS INTEGER ) + - 66 + - CAST ( NULL AS INTEGER ) + 89 <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3568
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - + 92 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3568
SELECT DISTINCT + CAST ( NULL AS REAL ) + - + 92 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - 96 + + - col2 FROM tab0
----
-106
-143
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT ALL - 46 + + + MIN( - 82 ) AS col2 FROM tab2
----
-128

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL - 46 + + + MIN ( - 82 ) AS col2 FROM tab2
----
-128

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3571
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + CAST( NULL AS SIGNED ) ) NOT BETWEEN col2 * + ( - + ( 81 ) ) * + - ( + col1 ) * - col1 * + + col2 + + - 44 AND - col2
----

skipif mysql # not compatible
query III rowsort label-3571
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) NOT BETWEEN col2 * + ( - + ( 81 ) ) * + - ( + col1 ) * - col1 * + + col2 + + - 44 AND - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 <> - + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3573
SELECT + CAST( - - ( + 31 ) AS SIGNED ) * - COUNT( * ) * - COUNT( * ) * + + COUNT( * ) FROM tab1 AS cor0
----
837

skipif mysql # not compatible
query I rowsort label-3573
SELECT + CAST ( - - ( + 31 ) AS INTEGER ) * - COUNT ( * ) * - COUNT ( * ) * + + COUNT ( * ) FROM tab1 AS cor0
----
837

query I rowsort
SELECT - 88 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NOT ( NULL IN ( + 32 ) )
----

query I rowsort
SELECT ALL col0 * + 1 AS col2 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT MAX( ALL + - col1 ) col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3577
SELECT MAX ( ALL + - col1 ) col2 FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3578
SELECT + - 68 DIV 88 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3578
SELECT + - 68 / 88 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - ( - 9 ) AS col2 FROM tab2 AS cor0
----
9
9
9

query I rowsort
SELECT + - 22 AS col2 FROM tab1 AS cor0
----
-22
-22
-22

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * 91 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3582
SELECT DISTINCT + 69 AS col0 FROM tab1 AS cor0 WHERE NULL < - CAST( NULL AS SIGNED ) + + col1 + + - col2 / + col2 * 42
----

skipif mysql # not compatible
query I rowsort label-3582
SELECT DISTINCT + 69 AS col0 FROM tab1 AS cor0 WHERE NULL < - CAST ( NULL AS INTEGER ) + + col1 + + - col2 / + col2 * 42
----

query I rowsort
SELECT ALL 77 * col2 + - - col2 AS col2 FROM tab0
----
3666
7722
780

query I rowsort
SELECT DISTINCT col1 + - 20 - + + col2 * + col0 FROM tab2
----
-1027
-2503
-4303

query I rowsort
SELECT DISTINCT col0 * - + col2 AS col1 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT - ( - + ( - col2 ) ) * - - col1 FROM tab1
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab1 WHERE col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT DISTINCT - 13 * - COUNT( * ) FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-3588
SELECT DISTINCT - 13 * - COUNT ( * ) FROM tab1
----
39

onlyif mysql # DIV for integer division: 
query II rowsort label-3589
SELECT ALL + + col1 + + col1 AS col1, + col1 DIV + col2 FROM tab0 AS cor0
----
162
1
2
0
42
2

skipif mysql # not compatible
query II rowsort label-3589
SELECT ALL + + col1 + + col1 AS col1, + col1 / + col2 FROM tab0 AS cor0
----
162
1
2
0
42
2

query I rowsort
SELECT ALL 9 + + col1 AS col2 FROM tab1
----
14
23
56

query I rowsort
SELECT DISTINCT + 3 - + col0 AS col1 FROM tab2
----
-43
-61
-72

query I rowsort
SELECT - col2 + + + col0 * + + col0 - - 57 + 15 FROM tab2
----
2165
4128
5639

query I rowsort
SELECT + col1 + - col0 + col0 + + ( + + 82 ) AS col0 FROM tab1
----
129
87
96

query I rowsort
SELECT + 55 + + + 40 AS col0 FROM tab0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT + 3 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3595
SELECT + 3 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 51 + + col2 col2 FROM tab1 AS cor0
----
17
45
8

onlyif mysql # DIV for integer division: 
query I rowsort label-3597
SELECT + col1 * col1 + - - 3 - - - 51 DIV - col0 col0 FROM tab2 AS cor0
----
2605
4492
5932

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3597
SELECT + col1 * col1 + - - 3 - - - 51 / - col0 col0 FROM tab2 AS cor0
----
2605
4492
5932

query I rowsort
SELECT ALL - col0 - - ( col2 ) FROM tab0 cor0
----
-77
2
32

query I rowsort
SELECT - 16 + + 91 FROM tab0 AS cor0
----
75
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + - col0 col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3601
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-3601
SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( - 81 * + + col0 * - - 63 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3603
SELECT col0 DIV 21 FROM tab2
----
2
3
3

skipif mysql # not compatible
query I rowsort label-3603
SELECT col0 / 21 FROM tab2
----
2
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT DISTINCT + 7 + + COUNT( * ) AS col1 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-3604
SELECT DISTINCT + 7 + + COUNT ( * ) AS col1 FROM tab1
----
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3605
SELECT CAST( col2 AS SIGNED ) DIV - + col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3605
SELECT CAST ( col2 AS INTEGER ) / - + col0 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT + COUNT( * ) - - 54 * COUNT( * ) AS col1 FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-3606
SELECT + COUNT ( * ) - - 54 * COUNT ( * ) AS col1 FROM tab1
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT 14 * + COUNT( * ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-3607
SELECT 14 * + COUNT ( * ) FROM tab1
----
42

query I rowsort
SELECT col2 + - + col1 AS col1 FROM tab0 WHERE NOT ( - - col2 / - col0 * + + col1 ) IS NULL
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT + + MAX( + col0 ) col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3609
SELECT + + MAX ( + col0 ) col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT + 49 * - COUNT( * ) * + 70 AS col0 FROM tab2 AS cor0
----
-10290

skipif mysql # not compatible
query I rowsort label-3610
SELECT + 49 * - COUNT ( * ) * + 70 AS col0 FROM tab2 AS cor0
----
-10290

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT + + COUNT( * ) * - 2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-3611
SELECT + + COUNT ( * ) * - 2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 * + - col0 * col1 - 62 = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col1 / 18 - + 2 + - col2 > + 87
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( ( - - col2 ) ) AS col2 FROM tab0
----
10
47
99

query I rowsort
SELECT col0 FROM tab2 WHERE NOT + 21 IS NULL
----
46
64
75

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 * col0 AND ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT ALL - COUNT( * ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3617
SELECT ALL - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT ALL + - COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL + - COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT + - SUM( ALL + col1 ) AS col1 FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-3619
SELECT + - SUM ( ALL + col1 ) AS col1 FROM tab0 cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT - MIN( - 37 ) AS col1 FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-3620
SELECT - MIN ( - 37 ) AS col1 FROM tab0 AS cor0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3621
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE NOT NULL <= col1 + + 88 * + + CAST( - col0 AS SIGNED ) OR NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3621
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE NOT NULL <= col1 + + 88 * + + CAST ( - col0 AS INTEGER ) OR NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT ALL MIN( ALL + - col2 ) col0 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3622
SELECT ALL MIN ( ALL + - col2 ) col0 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT ALL - MIN( DISTINCT + col1 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL - MIN ( DISTINCT + col1 ) AS col1 FROM tab0
----
-1

query I rowsort
SELECT ALL 98 + - 91 AS col2 FROM tab1
----
7
7
7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col0 = - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3626
SELECT DISTINCT CAST( NULL AS SIGNED ) + ( 41 ) * - COUNT( * ) / COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3626
SELECT DISTINCT CAST ( NULL AS INTEGER ) + ( 41 ) * - COUNT ( * ) / COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT + COUNT( * ) + + 35 AS col2 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-3627
SELECT + COUNT ( * ) + + 35 AS col2 FROM tab2 AS cor0
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-3628
SELECT ALL + 31, + COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT col2 - col2 IS NOT NULL
----
31
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3628
SELECT ALL + 31, + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT col2 - col2 IS NOT NULL
----
31
0

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3629
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 87 * - ( ( - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) ) ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-3629
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 87 * - ( ( - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT ALL - - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL - - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT - - 2 * - col2 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT + 80 * - 19 * + - col1 * - + col1 - 61 * - + col0 AS col0 FROM tab0 AS cor0
----
-665013
-9971805
4397

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3633
SELECT ALL CAST( NULL AS DECIMAL ) * + - COUNT( DISTINCT - 89 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL CAST ( NULL AS REAL ) * + - COUNT ( DISTINCT - 89 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3634
SELECT + 89 - + - col0 + col0 DIV - 96 + - - col2 DIV + col0 FROM tab0 AS cor0
----
107
176
186

skipif mysql # not compatible
query I rowsort label-3634
SELECT + 89 - + - col0 + col0 / - 96 + - - col2 / + col0 FROM tab0 AS cor0
----
107
176
186

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT ALL - MIN( + - col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL - MIN ( + - col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 - - 33 col2 FROM tab0 AS cor0
----
-177
-3774
-66

query I rowsort
SELECT + col2 * + 21 * - - col2 - 52 + - col2 AS col1 FROM tab1 AS cor0
----
193388
72990
96984

query I rowsort
SELECT col0 - - 81 + + col1 * col1 * - col1 FROM tab2 AS cor0
----
-132524
-300607
-456388

query I rowsort
SELECT ALL + 59 * 64 + col2 FROM tab1 AS cor0
----
3835
3844
3872

onlyif mysql # DIV for integer division: 
query I rowsort label-3640
SELECT col1 DIV - 65 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3640
SELECT col1 / - 65 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT 76 * + COUNT( * ) AS col0 FROM tab1 WHERE NOT + col2 IS NULL
----
228

skipif mysql # not compatible
query I rowsort label-3641
SELECT 76 * + COUNT ( * ) AS col0 FROM tab1 WHERE NOT + col2 IS NULL
----
228

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 42 / - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col0 AS col0, col0 AS col2 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT + - AVG ( - - col1 ) FROM tab0 WHERE NOT 69 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, col1 AS col1 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT DISTINCT - MIN( ALL col1 ) FROM tab0 WHERE col1 + + 83 IN ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT - MIN ( ALL col1 ) FROM tab0 WHERE col1 + + 83 IN ( + col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT + COUNT( ALL 78 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3647
SELECT + COUNT ( ALL 78 ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, col0 AS col1 FROM tab0 AS cor0
----
10
87
47
15
99
97

query II rowsort
SELECT - 50 AS col1, - col0 FROM tab1 AS cor0
----
-50
-51
-50
-85
-50
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT MAX( + col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3650
SELECT MAX ( + col0 ) AS col0 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT ALL - + ( - SUM( ALL + + col2 ) ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3651
SELECT ALL - + ( - SUM ( ALL + + col2 ) ) FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3652
SELECT col2 DIV - - col1 + 38 * + - 50 col1, CAST( - col2 AS SIGNED ) col0 FROM tab1 cor0
----
-1889
-59
-1894
-96
-1899
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3652
SELECT col2 / - - col1 + 38 * + - 50 col1, CAST ( - col2 AS INTEGER ) col0 FROM tab1 cor0
----
-1889
-59
-1894
-96
-1899
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3653
SELECT CAST( - - col0 AS SIGNED ) * - col1 AS col2 FROM tab0 cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-3653
SELECT CAST ( - - col0 AS INTEGER ) * - col1 AS col2 FROM tab0 cor0
----
-1215
-1827
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 48 * - ( 28 ) * - 5 col0 FROM tab0 AS cor0
----
6621
6673
6710

query I rowsort
SELECT + col2 + col2 + - col1 FROM tab1 cor0
----
113
178
89

query I rowsort
SELECT ALL - + 66 AS col2 FROM tab1 AS cor0
----
-66
-66
-66

query I rowsort
SELECT ALL + 13 + 81 * + ( col0 ) AS col1 FROM tab0
----
1228
7060
7870

query I rowsort
SELECT col2 * - - col2 + + col0 * 33 FROM tab2
----
2047
3712
5839

query I rowsort
SELECT DISTINCT + 18 + + col1 * - - col2 - + 81 + + col1 + 93 AS col2 FROM tab0
----
130
261
3918

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT ALL - MAX( + - col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3660
SELECT ALL - MAX ( + - col2 ) FROM tab2
----
23

query I rowsort
SELECT - + col2 FROM tab0 AS cor0 WHERE + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT ALL + COUNT( * ) + - COUNT( ALL - col2 ) * - 99 AS col0 FROM tab1
----
300

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL + COUNT ( * ) + - COUNT ( ALL - col2 ) * - 99 AS col0 FROM tab1
----
300

query I rowsort
SELECT + 34 - col0 FROM tab1
----
-17
-51
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-3664
SELECT ALL 68 - + col1 DIV - col0 col0 FROM tab0 AS cor0
----
68
68
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3664
SELECT ALL 68 - + col1 / - col0 col0 FROM tab0 AS cor0
----
68
68
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3665
SELECT DISTINCT - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3665
SELECT DISTINCT - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col1 * col2 - - col0 FROM tab1 cor0
----
1395
3287
380

query I rowsort
SELECT DISTINCT + 42 * + + col0 * - - col1 + 78 FROM tab0 AS cor0
----
4152
51108
76812

onlyif mysql # aggregate syntax: 
query II rowsort label-3668
SELECT DISTINCT + ( 99 ), COUNT( * ) AS col0 FROM tab2 AS cor0
----
99
3

skipif mysql # not compatible
query II rowsort label-3668
SELECT DISTINCT + ( 99 ), COUNT ( * ) AS col0 FROM tab2 AS cor0
----
99
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3669
SELECT ALL col0 * - + col1 * + + CAST( - + 93 AS SIGNED ) AS col0 FROM tab2
----
218178
458304
467325

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL col0 * - + col1 * + + CAST ( - + 93 AS INTEGER ) AS col0 FROM tab2
----
218178
458304
467325

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT + ( + 28 ) * ( MIN( col2 ) ) FROM tab2
----
644

skipif mysql # not compatible
query I rowsort label-3670
SELECT + ( + 28 ) * ( MIN ( col2 ) ) FROM tab2
----
644

onlyif mysql # DIV for integer division: 
query I rowsort label-3671
SELECT DISTINCT + col0 DIV - - col1 AS col1 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-3671
SELECT DISTINCT + col0 / - - col1 AS col1 FROM tab2
----
0
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3672
SELECT + 68 DIV + + col1 col2, col1 col0 FROM tab1
----
1
47
13
5
4
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3672
SELECT + 68 / + + col1 col2, col1 col0 FROM tab1
----
1
47
13
5
4
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3673
SELECT + 34 DIV COUNT( * ) FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-3673
SELECT + 34 / COUNT ( * ) FROM tab2
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 col0 FROM tab1
----
-22
-22
-22

query I rowsort
SELECT - 14 * + 85 AS col1 FROM tab1
----
-1190
-1190
-1190

query III rowsort
SELECT * FROM tab0 WHERE NOT 31 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT ALL MAX( - - col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL MAX ( - - col0 ) AS col2 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT DISTINCT MAX( - col2 ) * + + 15 FROM tab1 AS cor0
----
-885

skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT MAX ( - col2 ) * + + 15 FROM tab1 AS cor0
----
-885

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT - COUNT( * ) + + + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3679
SELECT - COUNT ( * ) + + + COUNT ( * ) FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3680
SELECT DISTINCT - CAST( NULL AS SIGNED ) col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3680
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 col2, + col1 FROM tab2 cor0
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE + col1 * + 56 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3682
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE + col1 * + 56 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3683
SELECT DISTINCT + CAST( - - col2 AS SIGNED ) + + col1 col1 FROM tab2 AS cor0
----
117
125
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3683
SELECT DISTINCT + CAST ( - - col2 AS INTEGER ) + + col1 col1 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT DISTINCT COUNT( * ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3684
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3685
SELECT 79 DIV - 95 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3685
SELECT 79 / - 95 AS col1 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3686
SELECT DISTINCT + + col1 - + col1 col0, - CAST( NULL AS SIGNED ) - + 91 + + + 58 FROM tab1 WHERE NULL IS NULL
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3686
SELECT DISTINCT + + col1 - + col1 col0, - CAST ( NULL AS INTEGER ) - + 91 + + + 58 FROM tab1 WHERE NULL IS NULL
----
0
NULL

query I rowsort
SELECT - 92 * + col0 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col0 + - + col0 AS col1 FROM tab0
----
-174
-194
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3689
SELECT - CAST( NULL AS SIGNED ) * - col1 + - 11 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3689
SELECT - CAST ( NULL AS INTEGER ) * - col1 + - 11 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3690
SELECT DISTINCT + col2 + - CAST( 60 AS SIGNED ) FROM tab2
----
-2
-20
-37

skipif mysql # not compatible
query I rowsort label-3690
SELECT DISTINCT + col2 + - CAST ( 60 AS INTEGER ) FROM tab2
----
-2
-20
-37

query I rowsort
SELECT ALL 82 * + 21 + 62 + - col0 * - col2 FROM tab1 WHERE NOT col1 NOT BETWEEN - col2 * + col1 * - col2 * + col1 + + col0 AND NULL AND NULL <= col2 + - col1 - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3692
SELECT ALL - 51 - + 72 DIV - 53 AS col2 FROM tab1
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-3692
SELECT ALL - 51 - + 72 / - 53 AS col2 FROM tab1
----
-50
-50
-50

query I rowsort
SELECT - - ( + + 43 ) + - col0 + - ( - col0 ) * - col0 FROM tab1 AS cor0
----
-2609
-7267
-8329

query I rowsort
SELECT DISTINCT + + col1 * - col1 * - col0 AS col0 FROM tab1 AS cor0
----
201019
2125
9996

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3695
SELECT + 59 * - 61 + + CAST( + col0 AS SIGNED ) FROM tab0 WHERE NULL BETWEEN NULL AND NULL OR NOT ( NULL ) <> + - col0
----

skipif mysql # not compatible
query I rowsort label-3695
SELECT + 59 * - 61 + + CAST ( + col0 AS INTEGER ) FROM tab0 WHERE NULL BETWEEN NULL AND NULL OR NOT ( NULL ) <> + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3696
SELECT DISTINCT col2 + - + col1 AS col1 FROM tab2 WHERE NOT - 79 NOT BETWEEN CAST( NULL AS SIGNED ) AND - - col0
----

skipif mysql # not compatible
query I rowsort label-3696
SELECT DISTINCT col2 + - + col1 AS col1 FROM tab2 WHERE NOT - 79 NOT BETWEEN CAST ( NULL AS INTEGER ) AND - - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3697
SELECT ALL - CAST( NULL AS SIGNED ) + - SUM( + 59 ) - - - 86 AS col0 FROM tab0 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3697
SELECT ALL - CAST ( NULL AS INTEGER ) + - SUM ( + 59 ) - - - 86 AS col0 FROM tab0 WHERE - col1 IS NULL
----
NULL

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= - col0
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) IN ( - col0 * - col1 + + col2 - - + col0 + col1 - + - col0 )
----

query III rowsort
SELECT ALL - col0, col0 + + col0 AS col1, + col2 AS col2 FROM tab0 AS cor0
----
9 values hashing to b45646833eecce1fb5ac9d4b531096b2

onlyif mysql # aggregate syntax: 
query II rowsort label-3701
SELECT + + COUNT( * ), MAX( DISTINCT - + col2 ) * + - ( 14 ) AS col1 FROM tab1 AS cor0
----
3
826

skipif mysql # not compatible
query II rowsort label-3701
SELECT + + COUNT ( * ), MAX ( DISTINCT - + col2 ) * + - ( 14 ) AS col1 FROM tab1 AS cor0
----
3
826

query I rowsort
SELECT ALL - 94 + + + col1 AS col1 FROM tab2 WHERE NOT 65 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3703
SELECT + + COUNT( * ) DIV - - 86 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3703
SELECT + + COUNT ( * ) / - - 86 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3704
SELECT ALL + 14 DIV - col2 * 78 * - + col1 - - - col2 * 24 FROM tab1 AS cor0
----
-1416
-1632
-2304

skipif mysql # not compatible
query I rowsort label-3704
SELECT ALL + 14 / - col2 * 78 * - + col1 - - - col2 * 24 FROM tab1 AS cor0
----
-1416
-1632
-2304

query II rowsort
SELECT DISTINCT + col1 + + - col1 + ( 30 ) + + col1, 14 AS col1 FROM tab0
----
111
14
31
14
51
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT ALL + MIN( ALL 75 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
75

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL + MIN ( ALL 75 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
75

query I rowsort
SELECT + 48 + 46 AS col1 FROM tab1
----
94
94
94

query II rowsort
SELECT + + col1 + - col1, col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT - COUNT( - 45 ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3709
SELECT - COUNT ( - 45 ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3710
SELECT ALL + - COUNT( * ) DIV + 39 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL + - COUNT ( * ) / + 39 FROM tab2 AS cor0
----
0

query II rowsort
SELECT - 58 AS col1, - col0 AS col1 FROM tab2 AS cor0 WHERE 0 IN ( + col1 + - col2, - col0 + + + col0 )
----
-58
-46
-58
-64
-58
-75

query I rowsort
SELECT - 5 * + col1 + - col2 AS col2 FROM tab0 cor0
----
-104
-115
-452

query I rowsort
SELECT ALL + col0 * - col0 FROM tab1 AS cor0 WHERE NOT ( + col1 * - + col0 - - col2 > col2 )
----
-2601
-7225
-8281

query I rowsort
SELECT + 21 * + ( + - 31 ) * col0 FROM tab0
----
-56637
-63147
-9765

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 * col1 * + + 67 <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 95 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0 AS col0, - col1 AS col0 FROM tab1
----
51
-14
85
-5
91
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT + MIN( + col1 ) - - - 70 AS col0 FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3718
SELECT + MIN ( + col1 ) - - - 70 AS col0 FROM tab0 AS cor0
----
-69

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 89 <> - col2 / 23 + col1
----

query I rowsort
SELECT + - 80 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE 45 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE 77 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3722
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE 77 IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 70 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT - MIN( ALL - - col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3724
SELECT - MIN ( ALL - - col0 ) AS col1 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT ( - COUNT( col2 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3725
SELECT ( - COUNT ( col2 ) ) FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col1 NOT BETWEEN + col0 AND + col0 - - - 19 / + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT ALL MAX( 12 ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL MAX ( 12 ) FROM tab1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3728
SELECT 39 * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3728
SELECT 39 * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3729
SELECT - COUNT( CAST( NULL AS SIGNED ) ) DIV + 82 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3729
SELECT - COUNT ( CAST ( NULL AS INTEGER ) ) / + 82 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT 80 * COUNT( * ) FROM tab2
----
240

skipif mysql # not compatible
query I rowsort label-3730
SELECT 80 * COUNT ( * ) FROM tab2
----
240

query I rowsort
SELECT 88 * + + col1 FROM tab1
----
1232
4136
440

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT ALL - COUNT( * ) FROM tab0 WHERE ( + col0 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL - COUNT ( * ) FROM tab0 WHERE ( + col0 ) IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT ( - col1 + col0 IS NULL ) )
----

query II rowsort
SELECT - col0 * 86 AS col1, col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 84 + col0 * 62 col1 FROM tab0 AS cor0
----
5310
5930
846

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 5 * - col0 + + + 25 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT DISTINCT - SUM( + 49 ) AS col1 FROM tab0 cor0
----
-147

skipif mysql # not compatible
query I rowsort label-3738
SELECT DISTINCT - SUM ( + 49 ) AS col1 FROM tab0 cor0
----
-147

onlyif mysql # DIV for integer division: 
query I rowsort label-3739
SELECT - - 93 DIV - col2 AS col0 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-3739
SELECT - - 93 / - col2 AS col0 FROM tab2 AS cor0
----
-1
-2
-4

query I rowsort
SELECT - - 79 * - 44 AS col2 FROM tab1 AS cor0
----
-3476
-3476
-3476

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( + 13 ) - + col1 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT + 27, 87 * - col2 AS col0 FROM tab2 AS cor0
----
27
-2001
27
-3480
27
-5046

onlyif mysql # DIV for integer division: 
query I rowsort label-3743
SELECT - + 24 DIV - col0 + + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3743
SELECT - + 24 / - col0 + + col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT col2 - + + ( + col2 ) AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3745
SELECT ALL - ( - 19 ) DIV - 7 + + 34 - - - MAX( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL - ( - 19 ) / - 7 + + 34 - - - MAX ( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-3746
SELECT - - col2 DIV + col2 - - col0 AS col1 FROM tab2 AS cor0
----
47
65
76

skipif mysql # not compatible
query I rowsort label-3746
SELECT - - col2 / + col2 - - col0 AS col1 FROM tab2 AS cor0
----
47
65
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT COUNT( * ) - + - 61 AS col1 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-3747
SELECT COUNT ( * ) - + - 61 AS col1 FROM tab0 AS cor0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT ALL - - MAX( + - col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3748
SELECT ALL - - MAX ( + - col1 ) FROM tab1 AS cor0
----
-5

query I rowsort
SELECT col2 - + + 11 FROM tab2
----
12
29
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + - 21 col1, col1 FROM tab1
----
-16
5
-7
14
26
47

query I rowsort
SELECT ( - col2 ) + - col1 + - col0 AS col1 FROM tab0
----
-118
-143
-197

onlyif mysql # DIV for integer division: 
query I rowsort label-3752
SELECT ALL col1 DIV - 89 + - - 67 FROM tab2
----
67
67
67

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL col1 / - 89 + - - 67 FROM tab2
----
67
67
67

query I rowsort
SELECT ALL col2 - + ( - col1 ) FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT ALL + - COUNT( * ) * 61 * - + MIN( 20 ) col1 FROM tab0 AS cor0
----
3660

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3754
SELECT ALL + - COUNT ( * ) * 61 * - + MIN ( 20 ) col1 FROM tab0 AS cor0
----
3660

query I rowsort
SELECT + col1 * col0 * - col1 FROM tab2 AS cor0
----
-119646
-336675
-379456

query I rowsort
SELECT + + col1 + 45 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3757
SELECT + + ( + COUNT( * ) ), COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3757
SELECT + + ( + COUNT ( * ) ), COUNT ( * ) FROM tab0 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3758
SELECT - 31 * + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3758
SELECT - 31 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT - MIN( DISTINCT col1 ) col1 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3759
SELECT - MIN ( DISTINCT col1 ) col1 FROM tab2
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - 6 ) col2 FROM tab1 cor0
----
6

query II rowsort
SELECT - + col0, col2 AS col1 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # DIV for integer division: 
query II rowsort label-3762
SELECT + 71 AS col2, + col0 DIV 5 AS col0 FROM tab1 AS cor0
----
71
10
71
17
71
18

skipif mysql # not compatible
query II rowsort label-3762
SELECT + 71 AS col2, + col0 / 5 AS col0 FROM tab1 AS cor0
----
71
10
71
17
71
18

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( + 77 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3764
SELECT + CAST( + col1 AS SIGNED ) AS col1 FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3764
SELECT + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 cor0
----
51
67
77

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 BETWEEN 72 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 + - col0 + - - col2 FROM tab1
----
141
33
45

query I rowsort
SELECT - 45 FROM tab1 WHERE NOT - 72 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3768
SELECT col2 * CAST( NULL AS SIGNED ) * + - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3768
SELECT col2 * CAST ( NULL AS INTEGER ) * + - col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 90 * 2 col1, 69 AS col1 FROM tab2
----
180
69
180
69
180
69

query I rowsort
SELECT ALL 43 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 93 + col1 AS col2 FROM tab2 AS cor0
----
-16
-26
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT COUNT( ALL - - col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3772
SELECT COUNT ( ALL - - col1 ) AS col1 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3773
SELECT - 9 + + 17 + + 31 DIV 17 AS col1 FROM tab2
----
9
9
9

skipif mysql # not compatible
query I rowsort label-3773
SELECT - 9 + + 17 + + 31 / 17 AS col1 FROM tab2
----
9
9
9

onlyif mysql # aggregate syntax: 
query II rowsort label-3774
SELECT ALL + MIN( ALL - ( - - 45 ) ) AS col0, - COUNT( * ) col1 FROM tab2
----
-45
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3774
SELECT ALL + MIN ( ALL - ( - - 45 ) ) AS col0, - COUNT ( * ) col1 FROM tab2
----
-45
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - col0 col0 FROM tab2 cor0
----
-128
-150
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3776
SELECT + - CAST( NULL AS SIGNED ) + + col1 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-3776
SELECT + - CAST ( NULL AS INTEGER ) + + col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3777
SELECT ALL + + COUNT( * ), COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3777
SELECT ALL + + COUNT ( * ), COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * + + 43 * - col1 + + - 18 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 + 71 AS col0 FROM tab1
----
130
139
167

query I rowsort
SELECT DISTINCT + + ( - 12 ) AS col2 FROM tab1 WHERE ( + col2 ) > 15
----
-12

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 89 - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT ALL - COUNT( * ) + + 27 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL - COUNT ( * ) + + 27 FROM tab1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3783
SELECT ALL CAST( NULL AS SIGNED ) / + col0 + + + 59 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3783
SELECT ALL CAST ( NULL AS INTEGER ) / + col0 + + + 59 col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3784
SELECT ALL col2 / - col1 / - 22 * - CAST( NULL AS SIGNED ) * 51 + + - 14 + + col0 / col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL col2 / - col1 / - 22 * - CAST ( NULL AS INTEGER ) * 51 + + - 14 + + col0 / col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - 90 * - col2 AS col1 FROM tab2
----
2093
3640
5278

query I rowsort
SELECT DISTINCT - col1 + - ( + 45 ) FROM tab0
----
-126
-46
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT 48 - - COUNT( * ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3787
SELECT 48 - - COUNT ( * ) FROM tab1
----
51

query I rowsort
SELECT col2 * - col0 * - 99 - + col0 FROM tab0
----
69780
86043
950600

query I rowsort
SELECT + col2 * + 93 - - 35 + col1 FROM tab2
----
2225
3832
5496

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3790
SELECT + AVG ( ALL - CAST( NULL AS DECIMAL ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3790
SELECT + AVG ( ALL - CAST ( NULL AS REAL ) ) FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3791
SELECT - + CAST( + SUM( + col2 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3791
SELECT - + CAST ( + SUM ( + col2 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT ALL + SUM( ALL + col0 ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL + SUM ( ALL + col0 ) FROM tab0 cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3793
SELECT DISTINCT + + col2 AS col2, CAST( + 81 AS SIGNED ) FROM tab2 AS cor0
----
23
81
40
81
58
81

skipif mysql # not compatible
query II rowsort label-3793
SELECT DISTINCT + + col2 AS col2, CAST ( + 81 AS INTEGER ) FROM tab2 AS cor0
----
23
81
40
81
58
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT ALL - MIN( DISTINCT + col2 ) * + 69 AS col0 FROM tab1 AS cor0
----
-4071

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL - MIN ( DISTINCT + col2 ) * + 69 AS col0 FROM tab1 AS cor0
----
-4071

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT DISTINCT - COUNT( * ) * 93 col0 FROM tab2
----
-279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3795
SELECT DISTINCT - COUNT ( * ) * 93 col0 FROM tab2
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT DISTINCT + SUM( 99 ) FROM tab2
----
297

skipif mysql # not compatible
query I rowsort label-3796
SELECT DISTINCT + SUM ( 99 ) FROM tab2
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT MIN( DISTINCT - 2 ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-3797
SELECT MIN ( DISTINCT - 2 ) FROM tab1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT - COUNT( * ) - - - COUNT( * ) FROM tab1, tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-3798
SELECT - COUNT ( * ) - - - COUNT ( * ) FROM tab1, tab2 AS cor0
----
-18

query I rowsort
SELECT ALL - col0 + - 73 AS col1 FROM tab0
----
-160
-170
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT DISTINCT - COUNT( col2 ) FROM tab2 WHERE NOT NULL NOT IN ( col2, - col1, - 44 )
----
0

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT - COUNT ( col2 ) FROM tab2 WHERE NOT NULL NOT IN ( col2, - col1, - 44 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3801
SELECT col0 DIV - CAST( + col2 AS SIGNED ) FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3801
SELECT col0 / - CAST ( + col2 AS INTEGER ) FROM tab2
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT - MAX( + 90 ) AS col0 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-3802
SELECT - MAX ( + 90 ) AS col0 FROM tab0
----
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, col0 AS col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT DISTINCT - MAX( ALL - 29 ) AS col1 FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-3804
SELECT DISTINCT - MAX ( ALL - 29 ) AS col1 FROM tab0 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT ALL - + MAX( 15 ) FROM tab1 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL - + MAX ( 15 ) FROM tab1 cor0
----
-15

query I rowsort
SELECT - - col2 + col2 + - ( col2 ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT + + 15 + - COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3807
SELECT + + 15 + - COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT + 25 FROM tab2 WHERE + 74 * - col0 BETWEEN NULL AND - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 ) NOT IN ( - col2 * col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3810
SELECT CAST( COUNT( - col2 ) AS SIGNED ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3810
SELECT CAST ( COUNT ( - col2 ) AS INTEGER ) col1 FROM tab0
----
3

query I rowsort
SELECT + 93 AS col0 FROM tab0 WHERE NOT ( NULL ) <> ( col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3812
SELECT ALL - CAST( NULL AS DECIMAL ) / 59 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL - CAST ( NULL AS REAL ) / 59 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col1 + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT DISTINCT + 31 * COUNT( * ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-3814
SELECT DISTINCT + 31 * COUNT ( * ) FROM tab2
----
93

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 - col1 FROM tab0 WHERE NOT NULL NOT BETWEEN ( + 50 ) AND col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3817
SELECT MAX( ALL + col0 ) DIV - COUNT( * ) AS col1 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-3817
SELECT MAX ( ALL + col0 ) / - COUNT ( * ) AS col1 FROM tab0
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-3818
SELECT 97 DIV + col1 FROM tab1
----
19
2
6

skipif mysql # not compatible
query I rowsort label-3818
SELECT 97 / + col1 FROM tab1
----
19
2
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3819
SELECT ALL + CAST( COUNT( ALL + col2 ) AS SIGNED ) FROM tab1 WHERE ( 44 ) NOT IN ( 3 )
----
3

skipif mysql # not compatible
query I rowsort label-3819
SELECT ALL + CAST ( COUNT ( ALL + col2 ) AS INTEGER ) FROM tab1 WHERE ( 44 ) NOT IN ( 3 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3820
SELECT DISTINCT - col2 DIV + col1 + + 73 AS col0 FROM tab1
----
62
67
72

skipif mysql # not compatible
query I rowsort label-3820
SELECT DISTINCT - col2 / + col1 + + 73 AS col0 FROM tab1
----
62
67
72

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 95 ) NOT IN ( - 2 + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 16 * + col1 AS col0 FROM tab0
----
1296
16
336

query I rowsort
SELECT DISTINCT - col2 * col2 FROM tab0 WHERE ( NULL ) IS NULL
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT DISTINCT COUNT( ALL ( ( - col0 ) ) ) AS col2 FROM tab2 WHERE col1 < ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT COUNT ( ALL ( ( - col0 ) ) ) AS col2 FROM tab2 WHERE col1 < ( - col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT - MIN( ALL 87 ) * - 77 FROM tab2
----
6699

skipif mysql # not compatible
query I rowsort label-3825
SELECT - MIN ( ALL 87 ) * - 77 FROM tab2
----
6699

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 53 * 83 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 10 + - 96 col2 FROM tab1
----
-106
-106
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT ALL - COUNT( * ) * - 53 FROM tab2 WHERE NOT 7 * + col2 BETWEEN + col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL - COUNT ( * ) * - 53 FROM tab2 WHERE NOT 7 * + col2 BETWEEN + col1 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE NOT ( 6 ) <> ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3829
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( 6 ) <> ( - col1 )
----
0

query I rowsort
SELECT - 58 + - col0 AS col2 FROM tab1
----
-109
-143
-149

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 - + 0 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= ( - 81 * 76 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT ALL MAX( DISTINCT - col0 ) col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3833
SELECT ALL MAX ( DISTINCT - col0 ) col2 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT MIN( ALL 45 ) FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-3834
SELECT MIN ( ALL 45 ) FROM tab2 AS cor0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3835
SELECT DISTINCT - 37 DIV + col0 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3835
SELECT DISTINCT - 37 / + col0 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 16 + 95 FROM tab0 AS cor0 WHERE NOT NULL IN ( - 88 )
----

query I rowsort
SELECT - col0 * + 81 FROM tab0 AS cor0
----
-1215
-7047
-7857

query I rowsort
SELECT ALL 24 FROM tab2 cor0 CROSS JOIN tab0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - ( + col0 ) * ( - 93 + + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 * 71 col0 FROM tab2 AS cor0
----
4899

query I rowsort
SELECT + 38 * - 89 FROM tab1 cor0
----
-3382
-3382
-3382

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3842
SELECT * FROM tab2 AS cor0 WHERE NOT 89 - col0 NOT BETWEEN - col2 * - 79 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3842
SELECT * FROM tab2 AS cor0 WHERE NOT 89 - col0 NOT BETWEEN - col2 * - 79 AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + - 80 * col2 AS col2 FROM tab0 AS cor0
----
-3760
-7920
-800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3844
SELECT + 46 / - ( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3844
SELECT + 46 / - ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + ( - 80 ) ) AS col1 FROM tab2 AS cor0
----
-80
-80
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3846
SELECT ALL + COUNT( * ) DIV COUNT( * ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3846
SELECT ALL + COUNT ( * ) / COUNT ( * ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3847
SELECT 11 * 84 + CAST( + col1 - - 86 AS SIGNED ) * + 59 AS col1 FROM tab0 AS cor0
----
10777
6057
7237

skipif mysql # not compatible
query I rowsort label-3847
SELECT 11 * 84 + CAST ( + col1 - - 86 AS INTEGER ) * + 59 AS col1 FROM tab0 AS cor0
----
10777
6057
7237

onlyif mysql # DIV for integer division: 
query I rowsort label-3848
SELECT ALL + col1 DIV 2 FROM tab0 AS cor0
----
0
10
40

skipif mysql # not compatible
query I rowsort label-3848
SELECT ALL + col1 / 2 FROM tab0 AS cor0
----
0
10
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT 80 + 64 * + COUNT( * ) FROM tab1 AS cor0
----
272

skipif mysql # not compatible
query I rowsort label-3849
SELECT 80 + 64 * + COUNT ( * ) FROM tab1 AS cor0
----
272

query I rowsort
SELECT - 71 * + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + 3 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT ALL 35 + + MIN( col2 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL 35 + + MIN ( col2 ) AS col1 FROM tab2 AS cor0
----
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 93 - - 23 IN ( - 49 * + 11 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 IN ( 39 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT 16 + - MIN( + 52 - 16 ) FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-3854
SELECT 16 + - MIN ( + 52 - 16 ) FROM tab2 AS cor0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3855
SELECT DISTINCT * FROM tab1 WHERE - 60 + - col1 / - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3855
SELECT DISTINCT * FROM tab1 WHERE - 60 + - col1 / - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT ALL COUNT( * ) + - 28 - 87 * 44 AS col1 FROM tab1
----
-3853

skipif mysql # not compatible
query I rowsort label-3856
SELECT ALL COUNT ( * ) + - 28 - 87 * 44 AS col1 FROM tab1
----
-3853

query III rowsort
SELECT * FROM tab0 WHERE ( col2 * col1 + 96 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( col1 + + col2 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE NOT + 50 NOT BETWEEN - col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3859
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE NOT + 50 NOT BETWEEN - col1 AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3860
SELECT DISTINCT COUNT( ALL - + col2 ) * COUNT( * ) + CAST( NULL AS SIGNED ) * + AVG ( ALL 11 * col0 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3860
SELECT DISTINCT COUNT ( ALL - + col2 ) * COUNT ( * ) + CAST ( NULL AS INTEGER ) * + AVG ( ALL 11 * col0 ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 ) > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3862
SELECT ALL + col0 * CAST( 21 AS SIGNED ) AS col1 FROM tab2
----
1344
1575
966

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL + col0 * CAST ( 21 AS INTEGER ) AS col1 FROM tab2
----
1344
1575
966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3863
SELECT ALL CAST( col0 AS SIGNED ) + col1 FROM tab2
----
141
142
97

skipif mysql # not compatible
query I rowsort label-3863
SELECT ALL CAST ( col0 AS INTEGER ) + col1 FROM tab2
----
141
142
97

query I rowsort
SELECT - col2 * col0 + col1 * col0 FROM tab1 AS cor0
----
-1911
-4182
-4590

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = - col1 * + 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT - COUNT( + 25 ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3866
SELECT - COUNT ( + 25 ) col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) NOT IN ( col0 + + col1 )
----

query I rowsort
SELECT + 83 FROM tab0 AS cor0 WHERE col2 * + col2 IS NULL
----

query I rowsort
SELECT + col2 * + col2 + - 95 FROM tab1
----
3386
4529
9121

query III rowsort
SELECT ALL * FROM tab1 WHERE - 80 * ( - col1 + 26 ) > + col0
----
91
47
68

query I rowsort
SELECT col0 + - 96 AS col1 FROM tab0
----
-81
-9
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 99 + - col2 - + col2 * - 61 col0 FROM tab0
----
15543
4305
9213

query III rowsort
SELECT * FROM tab0 WHERE + 57 <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN + 10 AND 99 - 26
----
51
14
96

query I rowsort
SELECT - col0 + col0 * - - 79 FROM tab1 AS cor0
----
3978
6630
7098

query I rowsort
SELECT ALL + ( + - col0 ) - - col0 * - 8 FROM tab2 AS cor0
----
-414
-576
-675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3877
SELECT DISTINCT - + 57 / - CAST( NULL AS SIGNED ) * - + 58 - + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3877
SELECT DISTINCT - + 57 / - CAST ( NULL AS INTEGER ) * - + 58 - + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + col2 AS col2, col1 + - col0 AS col1 FROM tab1 AS cor0
----
59
-80
68
-44
96
-37

query I rowsort
SELECT 53 * 24 FROM tab0 AS cor0 WHERE NULL NOT IN ( 80 )
----

query I rowsort
SELECT ( col2 ) FROM tab0 AS cor0 WHERE NULL IN ( + ( - col1 ) + + 30 )
----

query I rowsort
SELECT DISTINCT + 48 - + col1 AS col2 FROM tab0 cor0
----
-33
27
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + 76 * ( col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * - col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3884
SELECT CAST( 35 AS SIGNED ) AS col2 FROM tab1
----
35
35
35

skipif mysql # not compatible
query I rowsort label-3884
SELECT CAST ( 35 AS INTEGER ) AS col2 FROM tab1
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 * - + col0 col2 FROM tab2
----
-2208
-3072
-3600

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 + 44 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3887
SELECT DISTINCT - - col2 DIV ( - col0 ) * - col0 FROM tab1 AS cor0
----
0
51

skipif mysql # not compatible
query I rowsort label-3887
SELECT DISTINCT - - col2 / ( - col0 ) * - col0 FROM tab1 AS cor0
----
0
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT + ( + 93 ) * - COUNT( * ) FROM tab0 cor0 WHERE NOT col1 * col2 * - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3888
SELECT + ( + 93 ) * - COUNT ( * ) FROM tab0 cor0 WHERE NOT col1 * col2 * - col2 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - 96 AS col0 FROM tab0 cor0
----
-96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 * ( + col1 ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col2 * col2 <> - col1 * - col0
----
3

skipif mysql # not compatible
query I rowsort label-3891
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col2 * col2 <> - col1 * - col0
----
3

query I rowsort
SELECT ALL 1 * - - col1 FROM tab2
----
51
67
77

query II rowsort
SELECT DISTINCT col1 * + col2 * col2, + col2 * - + col2 AS col2 FROM tab1 AS cor0
----
129024
-9216
17405
-3481
217328
-4624

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT 4 + col2 NOT BETWEEN ( col1 ) AND - ( col0 ) + - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 ) IN ( 51 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 43 * + - col0 + - 26 AS col2 FROM tab0 AS cor0
----
3715
4145
619

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, + 48 AS col0 FROM tab1 AS cor0
----
59
48
68
48
96
48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3898
SELECT - - ( - col0 ) / - - col1 * + + 58 + CAST( NULL AS DECIMAL ) + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3898
SELECT - - ( - col0 ) / - - col1 * + + 58 + CAST ( NULL AS REAL ) + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3899
SELECT DISTINCT + col2 + - col1 FROM tab0 AS cor0 WHERE NULL > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3899
SELECT DISTINCT + col2 + - col1 FROM tab0 AS cor0 WHERE NULL > CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3900
SELECT ALL + col1 + - 10 - ( + + ( 45 ) ) DIV - ( - 72 ) FROM tab0
----
-9
11
71

skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL + col1 + - 10 - ( + + ( 45 ) ) / - ( - 72 ) FROM tab0
----
-9
11
71

query II rowsort
SELECT 39, col2 AS col1 FROM tab2
----
39
23
39
40
39
58

query I rowsort
SELECT ALL - 76 + + col1 AS col2 FROM tab0
----
-55
-75
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3903
SELECT ALL * FROM tab2 WHERE NOT + + col2 * + col0 + + - col0 BETWEEN - + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3903
SELECT ALL * FROM tab2 WHERE NOT + + col2 * + col0 + + - col0 BETWEEN - + CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 * - col0 IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT DISTINCT COUNT( ( + 73 ) ) FROM tab2 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3905
SELECT DISTINCT COUNT ( ( + 73 ) ) FROM tab2 WHERE NOT col2 IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND 35
----

query I rowsort
SELECT ALL + + 58 - col1 FROM tab2 cor0
----
-19
-9
7

query II rowsort
SELECT + col1 * + - 53, + col0 FROM tab0 AS cor0
----
-1113
87
-4293
15
-53
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3911
SELECT ALL + col1 + + 24 + + CAST( + 62 AS SIGNED ) FROM tab0
----
107
167
87

skipif mysql # not compatible
query I rowsort label-3911
SELECT ALL + col1 + + 24 + + CAST ( + 62 AS INTEGER ) FROM tab0
----
107
167
87

query I rowsort
SELECT 31 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3913
SELECT + - ( - CAST( - COUNT( * ) AS SIGNED ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3913
SELECT + - ( - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT 89 * + COUNT( * ) AS col2 FROM tab1 WHERE ( 7 * - 75 + col1 * + col2 * + col1 ) BETWEEN col0 + + col1 AND 31
----
0

skipif mysql # not compatible
query I rowsort label-3914
SELECT 89 * + COUNT ( * ) AS col2 FROM tab1 WHERE ( 7 * - 75 + col1 * + col2 * + col1 ) BETWEEN col0 + + col1 AND 31
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3915
SELECT - CAST( NULL AS DECIMAL ) * 94 AS col1 FROM tab0 AS cor0 WHERE 57 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3915
SELECT - CAST ( NULL AS REAL ) * 94 AS col1 FROM tab0 AS cor0 WHERE 57 IS NULL
----

query I rowsort
SELECT DISTINCT - - 31 * col1 - + ( + col0 ) + col0 + - col0 + col1 FROM tab2 AS cor0 WHERE NULL <> - 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT - + ( + COUNT( + + 53 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3917
SELECT - + ( + COUNT ( + + 53 ) ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT ( col2 + - - col1 * col0 ) IN ( + 76 * - col0 * 12 )
----
14
47
5

query I rowsort
SELECT - 86 * + 28 FROM tab0 cor0
----
-2408
-2408
-2408

query I rowsort
SELECT + + 15 * - - col2 * + - 55 FROM tab2 AS cor0
----
-18975
-33000
-47850

query I rowsort
SELECT - + col1 * + ( + 58 ) FROM tab2 AS cor0
----
-2958
-3886
-4466

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + ( - col2 ), + col2, - - 2 * 23 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3923
SELECT + COUNT( * ) AS col2, 21 FROM tab1 WHERE NOT NULL = NULL
----
0
21

skipif mysql # not compatible
query II rowsort label-3923
SELECT + COUNT ( * ) AS col2, 21 FROM tab1 WHERE NOT NULL = NULL
----
0
21

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) >= + col0 * - col2
----

query I rowsort
SELECT + col1 * - + col0 * + col0 AS col0 FROM tab0
----
-158949
-18225
-9409

query I rowsort
SELECT - col1 * + col2 - 6 AS col0 FROM tab1 WHERE NOT + col1 + 83 BETWEEN - - 8 * - col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 45 <= - 95
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) < - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 / col1 * col0 / col1 + + col1 - - col2 + 56 * + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > 79
----

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT 71 * + - 24 < - col2
----

query I rowsort
SELECT DISTINCT col1 * + ( + 73 ) * + col0 * - col0 AS col1 FROM tab2
----
-23023616
-27511875
-7877868

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT - - 29 IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT ALL SUM( - 93 ) * + COUNT( * ) FROM tab1
----
-837

skipif mysql # not compatible
query I rowsort label-3934
SELECT ALL SUM ( - 93 ) * + COUNT ( * ) FROM tab1
----
-837

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT DISTINCT + + MIN( DISTINCT + - 69 ) FROM tab1 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT + + MIN ( DISTINCT + - 69 ) FROM tab1 cor0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3937
SELECT * FROM tab0 WHERE NOT CAST( - 54 AS SIGNED ) * + col2 <> - - col2
----

skipif mysql # not compatible
query III rowsort label-3937
SELECT * FROM tab0 WHERE NOT CAST ( - 54 AS INTEGER ) * + col2 <> - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3938
SELECT DISTINCT - ( + CAST( + + col2 AS SIGNED ) ) col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3938
SELECT DISTINCT - ( + CAST ( + + col2 AS INTEGER ) ) col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT DISTINCT COUNT( * ) * 10 * 87 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) BETWEEN - 63 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3940
SELECT DISTINCT COUNT ( * ) * 10 * 87 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) BETWEEN - 63 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT ALL COUNT( ALL + 97 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3941
SELECT ALL COUNT ( ALL + 97 ) col0 FROM tab2
----
3

query I rowsort
SELECT ALL + col1 * + - 78 FROM tab2 AS cor0
----
-3978
-5226
-6006

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 + + ( + + col2 ) + + + col2 * + col2 + + - 30 * + + col1 * + col0 FROM tab1
----
-12057
-123527
-9125

query I rowsort
SELECT DISTINCT + col0 * col0 + - col1 - + col1 AS col2 FROM tab0
----
63
7527
9407

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT ALL COUNT( * ) + + + 64 FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL COUNT ( * ) + + + 64 FROM tab0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3947
SELECT DISTINCT - col2 DIV + 48 + + - 80 AS col2 FROM tab1
----
-81
-82

skipif mysql # not compatible
query I rowsort label-3947
SELECT DISTINCT - col2 / + 48 + + - 80 AS col2 FROM tab1
----
-81
-82

query III rowsort
SELECT ALL * FROM tab1 WHERE + 88 + + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * - + ( + col0 ) * - + col0 + 61 FROM tab1
----
36186
36475
389268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 col0 FROM tab2 WHERE 72 + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE ( - col2 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT - - COUNT( * ) col0 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-3952
SELECT - - COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3953
SELECT + CAST( + SUM( + 54 ) AS SIGNED ) AS col0 FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-3953
SELECT + CAST ( + SUM ( + 54 ) AS INTEGER ) AS col0 FROM tab2
----
162

query I rowsort
SELECT DISTINCT + + 46 AS col1 FROM tab1 AS cor0 WHERE NULL IN ( + 65 * + + col1 + col0, 42, + col2 )
----

query II rowsort
SELECT - - 48, col0 FROM tab0 cor0
----
48
15
48
87
48
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT - 60 * - - COUNT( * ) * - + 86 FROM tab0 AS cor0
----
15480

skipif mysql # not compatible
query I rowsort label-3956
SELECT - 60 * - - COUNT ( * ) * - + 86 FROM tab0 AS cor0
----
15480

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 BETWEEN col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + + col0 ) + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3959
SELECT DISTINCT col1 * - - CAST( NULL AS SIGNED ) + - - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT col1 * - - CAST ( NULL AS INTEGER ) + - - col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col0 * - + 8 AS col1 FROM tab1 AS cor0
----
408
680
728

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT ALL MIN( + 39 ) AS col1 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL MIN ( + 39 ) AS col1 FROM tab0 AS cor0
----
39

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 NOT BETWEEN - 90 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT 5 * + + COUNT( * ) AS col0 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-3963
SELECT 5 * + + COUNT ( * ) AS col0 FROM tab2
----
15

query II rowsort
SELECT - col0 * 39 AS col1, - col1 * - 53 + - col2 * - col0 FROM tab1
----
-1989
5638
-3315
5280
-3549
8679

query I rowsort
SELECT + 28 * + + ( - + 87 ) AS col0 FROM tab1
----
-2436
-2436
-2436

query I rowsort
SELECT DISTINCT col0 - - - col1 FROM tab0 AS cor0 WHERE - col2 * col2 IS NOT NULL
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT ALL COUNT( ALL - 19 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL COUNT ( ALL - 19 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT ALL COUNT( ALL + ( 81 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3968
SELECT ALL COUNT ( ALL + ( 81 ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 * - 7 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT + 43 + - COUNT( * ) AS col1 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-3970
SELECT + 43 + - COUNT ( * ) AS col1 FROM tab2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3971
SELECT - col2 + + col0 * + col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3971
SELECT - col2 + + col0 * + col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT ALL + SUM( col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL + SUM ( col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT - ( col1 ) + - + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3974
SELECT 57 DIV + - col2 AS col2 FROM tab2 cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3974
SELECT 57 / + - col2 AS col2 FROM tab2 cor0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT ALL - ( + COUNT( * ) ) FROM tab1 cor0 WHERE NOT ( col2 ) = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3975
SELECT ALL - ( + COUNT ( * ) ) FROM tab1 cor0 WHERE NOT ( col2 ) = ( NULL )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3976
SELECT DISTINCT + - 11 DIV ( - 92 ) + + 46 AS col1, - 54 FROM tab0 AS cor0
----
46
-54

skipif mysql # not compatible
query II rowsort label-3976
SELECT DISTINCT + - 11 / ( - 92 ) + + 46 AS col1, - 54 FROM tab0 AS cor0
----
46
-54

query II rowsort
SELECT ALL - - col0 * + + col0, col0 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT 21 - - COUNT( * ) + - 75 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-3978
SELECT 21 - - COUNT ( * ) + - 75 FROM tab1
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 15 + + + 67 + + ( + 52 ) col0, - ( - 93 ) AS col2 FROM tab2
----
104
93
104
93
104
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3980
SELECT 52 + - - col0 + + + 99 DIV col0 + + + col2 FROM tab1
----
197
200
212

skipif mysql # not compatible
query I rowsort label-3980
SELECT 52 + - - col0 + + + 99 / col0 + + + col2 FROM tab1
----
197
200
212

query I rowsort
SELECT ALL col2 + + ( 46 ) AS col1 FROM tab0
----
145
56
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3982
SELECT ALL COUNT( * ) * + MIN( DISTINCT - CAST( - col1 AS SIGNED ) ) + + + 74 * - - COUNT( * ) AS col1 FROM tab2
----
375

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL COUNT ( * ) * + MIN ( DISTINCT - CAST ( - col1 AS INTEGER ) ) + + + 74 * - - COUNT ( * ) AS col1 FROM tab2
----
375

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3983
SELECT ALL - + CAST( NULL AS DECIMAL ) + col0 + + col0 AS col2 FROM tab1 WHERE NOT ( NULL ) > col2
----

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL - + CAST ( NULL AS REAL ) + col0 + + col0 AS col2 FROM tab1 WHERE NOT ( NULL ) > col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3984
SELECT + MAX( col0 ) AS col0, 26 + - - ( - - 55 ) FROM tab1 AS cor0
----
91
81

skipif mysql # not compatible
query II rowsort label-3984
SELECT + MAX ( col0 ) AS col0, 26 + - - ( - - 55 ) FROM tab1 AS cor0
----
91
81

query I rowsort
SELECT ALL 82 + + col2 * + + ( col1 ) FROM tab0 AS cor0
----
181
292
3889

query I rowsort
SELECT DISTINCT col0 * 41 * + + 38 AS col0 FROM tab0 AS cor0
----
135546
151126
23370

onlyif mysql # aggregate syntax: 
query II rowsort label-3987
SELECT ALL 48, COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
48
9

skipif mysql # not compatible
query II rowsort label-3987
SELECT ALL 48, COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
48
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT ALL COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT DISTINCT - MAX( DISTINCT + + col0 ) col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3989
SELECT DISTINCT - MAX ( DISTINCT + + col0 ) col0 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT MAX( DISTINCT col1 ) AS col1 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-3990
SELECT MAX ( DISTINCT col1 ) AS col1 FROM tab1 cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 30 * + col0 col2 FROM tab1 AS cor0
----
1530
2550
2730

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 > col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3993
SELECT - COUNT( * ) AS col0, 20 DIV CAST( + - AVG ( col2 ) AS SIGNED ) * MAX( ALL + + 12 ) FROM tab0 AS cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-3993
SELECT - COUNT ( * ) AS col0, 20 / CAST ( + - AVG ( col2 ) AS INTEGER ) * MAX ( ALL + + 12 ) FROM tab0 AS cor0
----
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT + + 72 * MIN( + - ( col1 ) ) col0 FROM tab2 AS cor0
----
-5544

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3994
SELECT + + 72 * MIN ( + - ( col1 ) ) col0 FROM tab2 AS cor0
----
-5544

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col2 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT 87 * - COUNT( * ) FROM tab0 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-3996
SELECT 87 * - COUNT ( * ) FROM tab0 AS cor0
----
-261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3997
SELECT DISTINCT CAST( - col0 AS SIGNED ) * - col0 * + 44 + col2 FROM tab2
----
180264
247558
93127

skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * - col0 * + 44 + col2 FROM tab2
----
180264
247558
93127

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT DISTINCT - SUM( DISTINCT ( - col2 ) ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT - SUM ( DISTINCT ( - col2 ) ) AS col1 FROM tab0
----
156

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( + - 13 ) >= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-4000
SELECT ALL col2, + 74 + - ( - + col0 ) + + - col1 + + col0 DIV col0 AS col1 FROM tab1
----
59
155
68
119
96
112

skipif mysql # not compatible
query II rowsort label-4000
SELECT ALL col2, + 74 + - ( - + col0 ) + + - col1 + + col0 / col0 AS col1 FROM tab1
----
59
155
68
119
96
112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, 0 col0 FROM tab0
----
1
0
21
0
81
0

query I rowsort
SELECT col0 * + col2 * + 92 FROM tab1 AS cor0
----
450432
461380
569296

query II rowsort
SELECT col0 AS col0, 44 FROM tab0 AS cor0
----
15
44
87
44
97
44

query I rowsort
SELECT ALL + col1 + + col1 + - col0 FROM tab0 AS cor0 WHERE - col0 / + col2 + col1 - + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4005
SELECT DISTINCT + 37 + col1 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4005
SELECT DISTINCT + 37 + col1 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4006
SELECT + 38 / + + CAST( NULL AS SIGNED ) + + - CAST( - - MIN( + ( + + col0 ) ) AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4006
SELECT + 38 / + + CAST ( NULL AS INTEGER ) + + - CAST ( - - MIN ( + ( + + col0 ) ) AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT col0 + - col0 * - col2 * + - 89 + ( col2 ) AS col1 FROM tab2
----
-227736
-387017
-94093

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT + 23 + - COUNT( - col1 ) FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-4008
SELECT + 23 + - COUNT ( - col1 ) FROM tab0 AS cor0
----
20

query I rowsort
SELECT DISTINCT 33 FROM tab0 AS cor0 WHERE ( - col0 * col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT SUM( ALL - 11 ) - COUNT( * ) AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4010
SELECT SUM ( ALL - 11 ) - COUNT ( * ) AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

query II rowsort
SELECT ALL ( - col0 ) * col2 * - - col0, col0 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col1, col2 col1 FROM tab1
----
14
96
47
68
5
59

query II rowsort
SELECT 99 * - col1 AS col2, 19 * 66 FROM tab1 WHERE NULL IS NULL
----
-1386
1254
-4653
1254
-495
1254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4014
SELECT col1 - + - CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
117
125
74

skipif mysql # not compatible
query I rowsort label-4014
SELECT col1 - + - CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4015
SELECT DISTINCT - CAST( - col0 AS SIGNED ) * col1 * col2 * - + col1 AS col2 FROM tab1 AS cor0
----
-125375
-13669292
-959616

skipif mysql # not compatible
query I rowsort label-4015
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * col1 * col2 * - + col1 AS col2 FROM tab1 AS cor0
----
-125375
-13669292
-959616

query I rowsort
SELECT DISTINCT + + col2 - col1 * - col2 FROM tab1 AS cor0
----
1440
3264
354

query I rowsort
SELECT - col2 * + + 53 FROM tab1 AS cor0
----
-3127
-3604
-5088

query I rowsort
SELECT ( col1 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) > ( - 7 * + - 54 * + - 78 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT - MIN( DISTINCT - col1 ) col0 FROM tab1 WHERE NOT - col1 IS NULL
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4019
SELECT - MIN ( DISTINCT - col1 ) col0 FROM tab1 WHERE NOT - col1 IS NULL
----
47

query I rowsort
SELECT 7 * - + col1 AS col1 FROM tab2
----
-357
-469
-539

query II rowsort
SELECT - ( 32 ), + 97 * - - col0 AS col1 FROM tab0 AS cor0
----
-32
1455
-32
8439
-32
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT ALL MIN( + 17 ) FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL MIN ( + 17 ) FROM tab1 AS cor0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4023
SELECT ALL - 62 * COUNT( * ) DIV + + CAST( - 38 AS SIGNED ) FROM tab0 cor0
----
4

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL - 62 * COUNT ( * ) / + + CAST ( - 38 AS INTEGER ) FROM tab0 cor0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4024
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE - col0 + CAST( - ( + + col2 ) AS SIGNED ) <> - col2 * col0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4024
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE - col0 + CAST ( - ( + + col2 ) AS INTEGER ) <> - col2 * col0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4025
SELECT ALL + col2 * CAST( NULL AS SIGNED ) / + - 71 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) / + - 71 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 73 - col0 * + col0 * + 2 + + col2 + + 4 FROM tab0 AS cor0 WHERE NOT + col1 < 40
----
-326

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT DISTINCT COUNT( * ) * - - 72 + + + 34 AS col1 FROM tab2 cor0
----
250

skipif mysql # not compatible
query I rowsort label-4027
SELECT DISTINCT COUNT ( * ) * - - 72 + + + 34 AS col1 FROM tab2 cor0
----
250

query I rowsort
SELECT ALL + col0 * 96 FROM tab2 AS cor0
----
4416
6144
7200

onlyif mysql # DIV for integer division: 
query I rowsort label-4029
SELECT DISTINCT - 54 DIV col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4029
SELECT DISTINCT - 54 / col2 FROM tab1 AS cor0
----
0

query II rowsort
SELECT DISTINCT + 4 * col1, + ( + 65 ) AS col2 FROM tab1 cor0
----
188
65
20
65
56
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT + COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 24 * col0 + - - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4031
SELECT + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 24 * col0 + - - col1 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4032
SELECT + col1 DIV - - col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4032
SELECT + col1 / - - col1 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT ALL + COUNT( * ) FROM tab2 WHERE NULL > - - col0
----
0

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NULL > - - col0
----
0

query II rowsort
SELECT + col0 AS col1, - 72 FROM tab0
----
15
-72
87
-72
97
-72

query I rowsort
SELECT col2 * + - col1 * - col0 * + + col0 FROM tab2
----
12615680
21858750
2482068

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT + MAX( ALL - - col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4036
SELECT + MAX ( ALL - - col1 ) AS col0 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT - COUNT( * ) col2 FROM tab1 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4037
SELECT - COUNT ( * ) col2 FROM tab1 WHERE NOT NULL = NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4038
SELECT DISTINCT + 99 DIV 26 col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4038
SELECT DISTINCT + 99 / 26 col2 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN 67 AND col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 23 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 41 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 55 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4043
SELECT ALL * FROM tab1 WHERE 54 / - col0 > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4043
SELECT ALL * FROM tab1 WHERE 54 / - col0 > - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4045
SELECT DISTINCT - + col2, 62 DIV + col1 AS col2 FROM tab1 AS cor0
----
-59
12
-68
1
-96
4

skipif mysql # not compatible
query II rowsort label-4045
SELECT DISTINCT - + col2, 62 / + col1 AS col2 FROM tab1 AS cor0
----
-59
12
-68
1
-96
4

query I rowsort
SELECT ALL 12 - - 98 - - - col2 AS col1 FROM tab2 AS cor0
----
52
70
87

query II rowsort
SELECT ALL + col0 * + 55 * + - col1 - - + 81 * - + col1 + + col2, - col1 * + 76 AS col0 FROM tab0 AS cor0
----
-102176
-1596
-5317
-76
-73339
-6156

query I rowsort
SELECT - + col1 - 72 AS col0 FROM tab0 AS cor0
----
-153
-73
-93

query I rowsort
SELECT col0 - + col2 + + col0 + col2 * + col2 FROM tab1 AS cor0
----
3592
4738
9222

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT ALL COUNT( * ) * - COUNT( * ) + + - 17 col2 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4050
SELECT ALL COUNT ( * ) * - COUNT ( * ) + + - 17 col2 FROM tab1 AS cor0
----
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - - col0 col1 FROM tab1
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4052
SELECT + 73 AS col2 FROM tab1 WHERE - CAST( - 32 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4052
SELECT + 73 AS col2 FROM tab1 WHERE - CAST ( - 32 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ( + + 93 ) + - - 63 FROM tab2
----
156
156
156

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 * + col0 BETWEEN - - col0 AND NULL
----

query I rowsort
SELECT DISTINCT 76 * + col0 + col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4056
SELECT - CAST( - CAST( 49 AS SIGNED ) AS SIGNED ) AS col2, - 64 FROM tab1 AS cor0
----
49
-64
49
-64
49
-64

skipif mysql # not compatible
query II rowsort label-4056
SELECT - CAST ( - CAST ( 49 AS INTEGER ) AS INTEGER ) AS col2, - 64 FROM tab1 AS cor0
----
49
-64
49
-64
49
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT + SUM( - 24 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-216

skipif mysql # not compatible
query I rowsort label-4057
SELECT + SUM ( - 24 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4058
SELECT DISTINCT - CAST( + SUM( DISTINCT + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4058
SELECT DISTINCT - CAST ( + SUM ( DISTINCT + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-121

query I rowsort
SELECT ALL ( + + col0 ) AS col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE col0 = + 76
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + + + col2 + - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + 5 = NULL
----

query I rowsort
SELECT ALL ( - 48 ) * - col2 AS col2 FROM tab1
----
2832
3264
4608

query I rowsort
SELECT - 65 + + col2 AS col1 FROM tab0
----
-18
-55
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4065
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( - CAST( NULL AS SIGNED ) ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4065
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( - CAST ( NULL AS INTEGER ) ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 + - + 0 + - 85 AS col1 FROM tab1
----
-34
0
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT DISTINCT + MIN( - + col0 ) * - - 76 AS col2 FROM tab0
----
-7372

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT + MIN ( - + col0 ) * - - 76 AS col2 FROM tab0
----
-7372

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 30 IS NOT NULL OR NOT col2 = - - ( + + 57 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE 40 * 26 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4070
SELECT col2 DIV 14 AS col2 FROM tab1 cor0
----
4
4
6

skipif mysql # not compatible
query I rowsort label-4070
SELECT col2 / 14 AS col2 FROM tab1 cor0
----
4
4
6

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 * - col2 IS NULL
----

query I rowsort
SELECT ALL + 64 + + 41 FROM tab1 AS cor0
----
105
105
105

query I rowsort
SELECT DISTINCT + 18 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT COUNT( * ) + - MIN( ALL + + col0 ) AS col0 FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-4074
SELECT COUNT ( * ) + - MIN ( ALL + + col0 ) AS col0 FROM tab2
----
-43

query I rowsort
SELECT ALL 19 * + - col0 * - + col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 3 + - 9 AS col2 FROM tab1 AS cor0
----
-6
-6
-6

query I rowsort
SELECT 67 * + 98 + col0 AS col2 FROM tab1 AS cor0
----
6617
6651
6657

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4078
SELECT + CAST( NULL AS DECIMAL ) * - 50 * - - MIN( DISTINCT - 37 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4078
SELECT + CAST ( NULL AS REAL ) * - 50 * - - MIN ( DISTINCT - 37 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4079
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 47 = col0 * - - col2 + 15 + - + col2 * - col0 * CAST( NULL AS SIGNED ) + - + 75 * + 92
----

skipif mysql # not compatible
query III rowsort label-4079
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 47 = col0 * - - col2 + 15 + - + col2 * - col0 * CAST ( NULL AS INTEGER ) + - + 75 * + 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT DISTINCT SUM( ALL col1 ) col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4080
SELECT DISTINCT SUM ( ALL col1 ) col1 FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4081
SELECT * FROM tab2 AS cor0 WHERE col0 + + - col2 * + col0 >= - col0 - + + CAST( NULL AS SIGNED ) + col2 * col2 / col2 + - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4081
SELECT * FROM tab2 AS cor0 WHERE col0 + + - col2 * + col0 >= - col0 - + + CAST ( NULL AS INTEGER ) + col2 * col2 / col2 + - CAST ( NULL AS REAL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( col1, - 77, + - ( 91 ) )
----

query II rowsort
SELECT DISTINCT - col2 AS col1, - col0 * + + col0 FROM tab2
----
-23
-2116
-40
-4096
-58
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT ALL 46 * + + 21 + COUNT( * ) AS col0 FROM tab1
----
969

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL 46 * + + 21 + COUNT ( * ) AS col0 FROM tab1
----
969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 - col0 col2 FROM tab2
----
-3
26
8

onlyif mysql # DIV for integer division: 
query II rowsort label-4086
SELECT col0, - ( col0 ) DIV 42 FROM tab0
----
15
0
87
-2
97
-2

skipif mysql # not compatible
query II rowsort label-4086
SELECT col0, - ( col0 ) / 42 FROM tab0
----
15
0
87
-2
97
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT COUNT( DISTINCT - - 52 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4087
SELECT COUNT ( DISTINCT - - 52 ) AS col0 FROM tab2
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * - + 75 + + 12 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT DISTINCT MIN( ALL col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT MIN ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT + + COUNT( * ) * + + 42 * + + 24 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9072

skipif mysql # not compatible
query I rowsort label-4090
SELECT + + COUNT ( * ) * + + 42 * + + 24 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9072

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT + SUM( - 79 ) AS col1 FROM tab0 WHERE NOT - col1 NOT BETWEEN + col0 - - + ( - 91 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4091
SELECT + SUM ( - 79 ) AS col1 FROM tab0 WHERE NOT - col1 NOT BETWEEN + col0 - - + ( - 91 ) AND NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4092
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( + 90 AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4092
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( + 90 AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 9 * - + col1 FROM tab2 AS cor0
----
459
603
693

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4094
SELECT COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT + col0 * CAST( NULL AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4094
SELECT COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT + col0 * CAST ( NULL AS INTEGER ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4095
SELECT + + ( + 60 ), + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
60
-3

skipif mysql # not compatible
query II rowsort label-4095
SELECT + + ( + 60 ), + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
60
-3

query II rowsort
SELECT + 10, + ( + - 23 ) + + col2 AS col1 FROM tab2
----
10
0
10
17
10
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 54 col0, + col1 * col0 AS col1 FROM tab1
----
54
425
54
4277
54
714

query III rowsort
SELECT * FROM tab2 WHERE col2 + + ( + + col2 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4099
SELECT ALL CAST( col2 AS SIGNED ) * + col0 + - col2 FROM tab0
----
658
860
9504

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL CAST ( col2 AS INTEGER ) * + col0 + - col2 FROM tab0
----
658
860
9504

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 33 < - col2
----
46
51
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4101
SELECT DISTINCT - col1 + + + col1 - col1 AS col0, CAST( NULL AS SIGNED ) FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-4101
SELECT DISTINCT - col1 + + + col1 - col1 AS col0, CAST ( NULL AS INTEGER ) FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 + - col0 col0 FROM tab2
----
-135
-153
-164

query I rowsort
SELECT 45 + 61 AS col0 FROM tab1
----
106
106
106

query II rowsort
SELECT DISTINCT - col1 AS col2, 92 * col1 FROM tab0 cor0
----
-1
92
-21
1932
-81
7452

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT col1 * - col2 + - col2 + col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT ALL - MAX( ALL + col0 ) col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4106
SELECT ALL - MAX ( ALL + col0 ) col0 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT - 16 + - + col2 AS col0 FROM tab1 AS cor0
----
-112
-75
-84

query I rowsort
SELECT ALL + col0 + - 3 * col0 * + col1 AS col1 FROM tab0 AS cor0
----
-194
-3630
-5394

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT ALL 81 + + COUNT( * ) col2 FROM tab1
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4109
SELECT ALL 81 + + COUNT ( * ) col2 FROM tab1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT - COUNT( * ) - - 27 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4110
SELECT - COUNT ( * ) - - 27 FROM tab1 AS cor0
----
24

query I rowsort
SELECT 76 FROM tab0 AS cor0 WHERE - ( + 14 ) + - col2 + col2 * - 58 IS NOT NULL
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT - COUNT( * ) - + 5 AS col1 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-4112
SELECT - COUNT ( * ) - + 5 AS col1 FROM tab1 AS cor0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4113
SELECT ALL + col2 * + 56 - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL + col2 * + 56 - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT - ( - - COUNT( + + col2 ) ) * 31 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-4114
SELECT - ( - - COUNT ( + + col2 ) ) * 31 FROM tab1 AS cor0
----
-93

query I rowsort
SELECT ALL col0 FROM tab1 cor0 WHERE NOT col0 + + col2 - + col2 IS NULL
----
51
85
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN col0 AND 37 / col1 + - 24 * - 73
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4117
SELECT 79 DIV 26 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4117
SELECT 79 / 26 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + ( - 5 ) AND NULL
----

query I rowsort
SELECT ALL 85 FROM tab1 WHERE NOT col0 > NULL
----

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT col2 IS NULL
----
-23
-40
-58

query II rowsort
SELECT DISTINCT 59 AS col0, + 39 AS col2 FROM tab0 AS cor0
----
59
39

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 28 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( + col0 ) + - + col0 FROM tab1 AS cor0
----
0

query II rowsort
SELECT 24 + - ( - col0 ) * - 7 AS col0, col0 * col2 FROM tab2 AS cor0
----
-298
1058
-424
2560
-501
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT + - COUNT( * ) + - - COUNT( * ) * 87 FROM tab1 cor0
----
258

skipif mysql # not compatible
query I rowsort label-4125
SELECT + - COUNT ( * ) + - - COUNT ( * ) * 87 FROM tab1 cor0
----
258

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4126
SELECT - + col2 + + 2 * - 23 * + + col2 AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1081
NULL
-1880
NULL
-2726
NULL

skipif mysql # not compatible
query II rowsort label-4126
SELECT - + col2 + + 2 * - 23 * + + col2 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1081
NULL
-1880
NULL
-2726
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT ALL + ( + SUM( 38 ) ) AS col1 FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL + ( + SUM ( 38 ) ) AS col1 FROM tab0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT - SUM( DISTINCT 11 ) AS col2 FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-4128
SELECT - SUM ( DISTINCT 11 ) AS col2 FROM tab0 AS cor0
----
-11

query I rowsort
SELECT DISTINCT + - 61 * + - col2 - + - col1 AS col2 FROM tab2 AS cor0
----
1454
2517
3605

query I rowsort
SELECT - - col2 * - col1 - ( + - 38 ) AS col0 FROM tab1 AS cor0
----
-1306
-257
-3158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 - - col0 col0 FROM tab0 AS cor0
----
161
171
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT ALL + MIN( ALL col2 ) AS col1 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL + MIN ( ALL col2 ) AS col1 FROM tab2 cor0
----
23

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 33 + - 38 + 47 * - + 81 / ( 92 ) <= + + 93
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT DISTINCT - 89 FROM tab2 AS cor0 WHERE + 1 + + 13 * + 92 * - col2 IS NOT NULL
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT - COUNT( * ) * + MIN( col2 ) FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4135
SELECT - COUNT ( * ) * + MIN ( col2 ) FROM tab0 AS cor0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4136
SELECT - - CAST( - col0 AS SIGNED ) - - 92 AS col0 FROM tab2 AS cor0 WHERE NOT col2 <= + - col2
----
17
28
46

skipif mysql # not compatible
query I rowsort label-4136
SELECT - - CAST ( - col0 AS INTEGER ) - - 92 AS col0 FROM tab2 AS cor0 WHERE NOT col2 <= + - col2
----
17
28
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - 0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab2 cor0 WHERE NOT col2 BETWEEN - 56 + - - col1 AND + col0 * - col1
----
51
67
77

query I rowsort
SELECT ALL col2 * - - 62 AS col2 FROM tab1 cor0
----
3658
4216
5952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 65 * col0 col1 FROM tab0 cor0
----
5655
6305
975

query I rowsort
SELECT DISTINCT + + ( + ( - ( + col0 ) ) ) FROM tab1 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4142
SELECT - 78 DIV 61 * + 19 AS col0 FROM tab2
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-4142
SELECT - 78 / 61 * + 19 AS col0 FROM tab2
----
-19
-19
-19

query I rowsort
SELECT ( 98 ) * + col2 AS col2 FROM tab2
----
2254
3920
5684

query I rowsort
SELECT 64 * + - ( 28 ) FROM tab1
----
-1792
-1792
-1792

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT - COUNT( ALL + 2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4145
SELECT - COUNT ( ALL + 2 ) FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= 65 + - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4147
SELECT 5 DIV 51 * + SUM( 47 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4147
SELECT 5 / 51 * + SUM ( 47 ) AS col0 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * + 26 > + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4149
SELECT DISTINCT - AVG ( ALL + CAST( NULL AS SIGNED ) ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4149
SELECT DISTINCT - AVG ( ALL + CAST ( NULL AS INTEGER ) ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4150
SELECT DISTINCT MIN( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4150
SELECT DISTINCT MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4151
SELECT * FROM tab0 AS cor0 WHERE ( - 55 ) * + + col2 * + col0 NOT IN ( - 11, CAST( NULL AS SIGNED ) * + col2 )
----

skipif mysql # not compatible
query III rowsort label-4151
SELECT * FROM tab0 AS cor0 WHERE ( - 55 ) * + + col2 * + col0 NOT IN ( - 11, CAST ( NULL AS INTEGER ) * + col2 )
----

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4153
SELECT DISTINCT + ( + 51 ) + 82 DIV + ( col2 ) FROM tab1
----
51
52

skipif mysql # not compatible
query I rowsort label-4153
SELECT DISTINCT + ( + 51 ) + 82 / + ( col2 ) FROM tab1
----
51
52

query I rowsort
SELECT ( - col2 ) + - col2 * - 45 + + - 65 AS col2 FROM tab1
----
2531
2927
4159

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT ALL COUNT( * ) + - MIN( - 13 ) col0 FROM tab0
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4155
SELECT ALL COUNT ( * ) + - MIN ( - 13 ) col0 FROM tab0
----
16

query I rowsort
SELECT col1 + - 82 * + 80 AS col2 FROM tab2
----
-6483
-6493
-6509

query I rowsort
SELECT DISTINCT col2 * - col2 * col0 + col2 - - 53 FROM tab2
----
-102307
-24258
-252189

query II rowsort
SELECT ALL - col2 AS col1, + col1 AS col1 FROM tab1
----
-59
5
-68
47
-96
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4159
SELECT - ( - 17 ) - + + MIN( DISTINCT - 78 ) + + - CAST( NULL AS SIGNED ) + COUNT( - - 95 ) AS col0 FROM tab2, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4159
SELECT - ( - 17 ) - + + MIN ( DISTINCT - 78 ) + + - CAST ( NULL AS INTEGER ) + COUNT ( - - 95 ) AS col0 FROM tab2, tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4160
SELECT ALL CAST( - 77 AS SIGNED ) AS col2 FROM tab1 cor0
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL CAST ( - 77 AS INTEGER ) AS col2 FROM tab1 cor0
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT + COUNT( - 58 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4161
SELECT + COUNT ( - 58 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - - ( - 89 ) + col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <= ( - 17 )
----

query I rowsort
SELECT DISTINCT + col0 + + - col0 AS col0 FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * + - col0 = - 61
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT 46 > col2
----
15
97

query I rowsort
SELECT DISTINCT - - 63 * + - ( - col2 ) * + 46 * + 70 FROM tab1 AS cor0
----
11968740
13794480
19474560

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT + 78 IS NOT NULL
----

query I rowsort
SELECT ALL 1 * ( + ( - col0 ) ) + + col0 * + col0 AS col1 FROM tab1 AS cor0
----
2550
7140
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT ALL - - MIN( ALL + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL - - MIN ( ALL + col2 ) FROM tab0 AS cor0
----
10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 22 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN col0 AND col2
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT + + 55 * + - col0 + - 69 + col1 BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4173
SELECT 33 * CAST( NULL AS SIGNED ) / + ( CAST( - ( + 65 ) AS SIGNED ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4173
SELECT 33 * CAST ( NULL AS INTEGER ) / + ( CAST ( - ( + 65 ) AS INTEGER ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 AS col0 FROM tab1 WHERE NOT NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4175
SELECT col2 DIV - 5 AS col0 FROM tab2
----
-11
-4
-8

skipif mysql # not compatible
query I rowsort label-4175
SELECT col2 / - 5 AS col0 FROM tab2
----
-11
-4
-8

query II rowsort
SELECT - col2, + col1 AS col1 FROM tab0 cor0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT DISTINCT + col0 * col2 * - ( - 34 ) AS col0 FROM tab0
----
23970
29580
326502

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT DISTINCT COUNT( * ) * 0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4178
SELECT DISTINCT COUNT ( * ) * 0 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4179
SELECT col0 + - + col0 AS col0, + col1 DIV + + 60 FROM tab0 AS cor0
----
0
0
0
0
0
1

skipif mysql # not compatible
query II rowsort label-4179
SELECT col0 + - + col0 AS col0, + col1 / + + 60 FROM tab0 AS cor0
----
0
0
0
0
0
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 94 * - col0 + col1 NOT IN ( col0, col1 * - col1 / + 67 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4181
SELECT ALL - + SUM( + + col1 ) AS col0, + 28 FROM tab0 AS cor0
----
-103
28

skipif mysql # not compatible
query II rowsort label-4181
SELECT ALL - + SUM ( + + col1 ) AS col0, + 28 FROM tab0 AS cor0
----
-103
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 26 col0, col1 AS col2 FROM tab2 WHERE NOT - col2 - col0 IS NOT NULL
----

query I rowsort
SELECT ALL 40 + - 17 + - - 92 + + col2 * col1 AS col1 FROM tab1
----
1459
3311
410

onlyif mysql # DIV for integer division: 
query II rowsort label-4184
SELECT ALL - 39 + - col1 DIV 5, ( + col2 ) FROM tab0
----
-39
99
-43
10
-55
47

skipif mysql # not compatible
query II rowsort label-4184
SELECT ALL - 39 + - col1 / 5, ( + col2 ) FROM tab0
----
-39
99
-43
10
-55
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4185
SELECT - col0 - ( + - 20 ) DIV 14 AS col1 FROM tab2
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-4185
SELECT - col0 - ( + - 20 ) / 14 AS col1 FROM tab2
----
-45
-63
-74

query I rowsort
SELECT ALL col2 - col2 + + col1 + 65 AS col1 FROM tab1 AS cor0
----
112
70
79

query I rowsort
SELECT DISTINCT - - 96 FROM tab0 AS cor0 WHERE NOT col1 * + 36 + + + col2 IS NOT NULL
----

query I rowsort
SELECT - + col2 + - col0 AS col2 FROM tab2 cor0 WHERE ( + col1 IS NULL )
----

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT - 53 >= col1 * - - col2
----
14
47
5

query I rowsort
SELECT + 32 * + ( + col1 ) AS col2 FROM tab0
----
2592
32
672

query II rowsort
SELECT 37 AS col2, + 60 + + col0 AS col1 FROM tab2
----
37
106
37
124
37
135

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4192
SELECT DISTINCT 32, - CAST( - col1 AS SIGNED ) * col1 * + 61 col2 FROM tab0
----
32
26901
32
400221
32
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4192
SELECT DISTINCT 32, - CAST ( - col1 AS INTEGER ) * col1 * + 61 col2 FROM tab0
----
32
26901
32
400221
32
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - ( - 83 ) ) col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT 37 - + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
37

skipif mysql # not compatible
query I rowsort label-4194
SELECT 37 - + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT DISTINCT SUM( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4195
SELECT DISTINCT SUM ( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT + MIN( 33 ) AS col1 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-4196
SELECT + MIN ( 33 ) AS col1 FROM tab0 AS cor0
----
33

query I rowsort
SELECT DISTINCT - col2 * - 87 AS col1 FROM tab1 AS cor0
----
5133
5916
8352

onlyif mysql # aggregate syntax: 
query II rowsort label-4198
SELECT DISTINCT + + 85 AS col1, COUNT( col1 ) AS col0 FROM tab0 AS cor0
----
85
3

skipif mysql # not compatible
query II rowsort label-4198
SELECT DISTINCT + + 85 AS col1, COUNT ( col1 ) AS col0 FROM tab0 AS cor0
----
85
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - ( - - col1 ) ) + + col0 * + - 32 + + 31 col1, - ( - + col2 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1492
23
-2094
40
-2436
58

query I rowsort
SELECT + ( - 8 ) * + col0 AS col0 FROM tab0
----
-120
-696
-776

query I rowsort
SELECT - + col0 - + - col2 FROM tab1 WHERE NOT ( + col2 * col1 IS NULL )
----
-23
-26
45

query II rowsort
SELECT - 97 * + + col2, col0 AS col0 FROM tab1
----
-5723
85
-6596
91
-9312
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4203
SELECT ALL - 52 * - 16 + - col2 + CAST( NULL AS SIGNED ) * 5 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL - 52 * - 16 + - col2 + CAST ( NULL AS INTEGER ) * 5 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 85 * 70 * - col0 FROM tab1
----
-303450
-505750
-541450

query I rowsort
SELECT DISTINCT - 5 * - col1 * + col0 * col1 * - 9 * - + col2 FROM tab2
----
123833610
683020800
878721750

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT DISTINCT 3 * COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT 3 * COUNT ( * ) FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT - 30 * - - COUNT( * ) FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-4207
SELECT - 30 * - - COUNT ( * ) FROM tab2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4208
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
3

query I rowsort
SELECT + - 0 + + + 74 * col0 FROM tab2 cor0
----
3404
4736
5550

query I rowsort
SELECT - 3 + - + col2 AS col2 FROM tab1
----
-62
-71
-99

query I rowsort
SELECT ALL + col2 + - - col2 AS col1 FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT + 57 * MIN( ALL + - 88 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-5016

skipif mysql # not compatible
query I rowsort label-4212
SELECT + 57 * MIN ( ALL + - 88 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-5016

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT ( NOT NULL IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4214
SELECT ALL - - COUNT( * ) DIV - COUNT( * ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4214
SELECT ALL - - COUNT ( * ) / - COUNT ( * ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + col0 * + - 83 - - col1 + + col2 FROM tab1 AS cor0
----
-4123
-6991
-7438

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + ( - col0 ) ) - - 51 * col2 * ( col2 ) col0 FROM tab2 AS cor0
----
171489
26933
81536

query I rowsort
SELECT + col2 - + + 26 AS col1 FROM tab0 AS cor0
----
-16
21
73

query I rowsort
SELECT ALL - - col0 FROM tab0 cor0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT ALL - col1 + - col0 * - 71 FROM tab2
----
3215
4467
5258

query I rowsort
SELECT - col0 + + ( col2 ) AS col2 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT ALL col0 + + - col1 - + col0 AS col2 FROM tab2
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col0 - - + col1 col2 FROM tab0
----
306
7590
9410

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT DISTINCT - 72 + - COUNT( * ) AS col0 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT - 72 + - COUNT ( * ) AS col0 FROM tab1
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 col0 FROM tab1 WHERE NULL < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4225
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 31 + + col2 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4225
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 31 + + col2 AS col1 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 64 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4227
SELECT - + ( - COUNT( * ) ) AS col0, 29 AS col1 FROM tab1 AS cor0
----
3
29

skipif mysql # not compatible
query II rowsort label-4227
SELECT - + ( - COUNT ( * ) ) AS col0, 29 AS col1 FROM tab1 AS cor0
----
3
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT ALL - MIN( - 97 ) FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL - MIN ( - 97 ) FROM tab1
----
97

onlyif mysql # DIV for integer division: 
query II rowsort label-4229
SELECT + - 44 AS col2, - col1 DIV - col0 FROM tab2 AS cor0
----
-44
0
-44
1
-44
1

skipif mysql # not compatible
query II rowsort label-4229
SELECT + - 44 AS col2, - col1 / - col0 FROM tab2 AS cor0
----
-44
0
-44
1
-44
1

query I rowsort
SELECT - col0 * - 93 + + col0 FROM tab0 AS cor0
----
1410
8178
9118

query I rowsort
SELECT DISTINCT col2 * + 62 AS col1 FROM tab2 AS cor0
----
1426
2480
3596

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT DISTINCT + COUNT( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4232
SELECT DISTINCT + COUNT ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT ALL + + SUM( DISTINCT - col0 ) + + 23 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL + + SUM ( DISTINCT - col0 ) + + 23 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT DISTINCT - COUNT( * ) + - - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT - COUNT ( * ) + - - COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT 36 AS col0 FROM tab0 WHERE NOT col2 * + col0 * + col2 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - ( + + 4 ) <= col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4237
SELECT + ( 62 ) * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4237
SELECT + ( 62 ) * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - 32 + 5 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4239
SELECT COUNT( * ) AS col1, 82 AS col0 FROM tab1
----
3
82

skipif mysql # not compatible
query II rowsort label-4239
SELECT COUNT ( * ) AS col1, 82 AS col0 FROM tab1
----
3
82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4240
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( 81, - 95, col2, + col1, 11 + - + 78, - + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-4240
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( 81, - 95, col2, + col1, 11 + - + 78, - + CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT + - 2 AS col2 FROM tab0 cor0
----
-2
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 52, + 23 col0 FROM tab0 AS cor0
----
52
23
52
23
52
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT MIN( ALL + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4244
SELECT MIN ( ALL + col1 ) FROM tab2 AS cor0
----
51

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * 96 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 77 AS col1 FROM tab2 AS cor0 WHERE col2 BETWEEN NULL AND col1
----

query I rowsort
SELECT 12 FROM tab1 WHERE - 61 IS NULL
----

query I rowsort
SELECT col0 + - + 73 FROM tab1
----
-22
12
18

query I rowsort
SELECT - ( + col2 ) * + + col2 * 71 * ( + col2 ) + - - col2 FROM tab0 AS cor0
----
-68891130
-70990
-7371386

query I rowsort
SELECT ALL + + col1 * + - col1 * 88 AS col1 FROM tab1 AS cor0
----
-17248
-194392
-2200

query I rowsort
SELECT col2 + + - col1 AS col1 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT + 66 * - ( + col0 ) + - col0 FROM tab0 AS cor0
----
-1005
-5829
-6499

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> + 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT ALL - COUNT( * ) + - + 85 col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4254
SELECT ALL - COUNT ( * ) + - + 85 col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT DISTINCT COUNT( - col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT COUNT ( - col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 61 * 67 col1 FROM tab2 cor0
----
208437
273829
314699

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 15, + col1 - + col1 * 66 col1 FROM tab0
----
15
-1365
15
-5265
15
-65

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 + + - col2 * + col1 + + - col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT + 93 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4260
SELECT ALL + 12 DIV col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL + 12 / col2 FROM tab0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4261
SELECT DISTINCT col0 - + 10 DIV - + 41 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4261
SELECT DISTINCT col0 - + 10 / - + 41 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4262
SELECT ALL 87 + CAST( + 29 AS SIGNED ) FROM tab1
----
116
116
116

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL 87 + CAST ( + 29 AS INTEGER ) FROM tab1
----
116
116
116

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4263
SELECT * FROM tab0 WHERE ( + ( + CAST( col0 AS SIGNED ) ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4263
SELECT * FROM tab0 WHERE ( + ( + CAST ( col0 AS INTEGER ) ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( + - 53 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4265
SELECT - col0 FROM tab2 AS cor0 WHERE NOT - col2 * - + 60 + 92 + + CAST( NULL AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query I rowsort label-4265
SELECT - col0 FROM tab2 AS cor0 WHERE NOT - col2 * - + 60 + 92 + + CAST ( NULL AS REAL ) = NULL
----

query I rowsort
SELECT + col0 * + 87 FROM tab0 AS cor0
----
1305
7569
8439

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 WHERE NOT ( col2 ) IN ( + 5 )
----
3

skipif mysql # not compatible
query I rowsort label-4267
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( col2 ) IN ( + 5 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE col0 * 86 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4268
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE col0 * 86 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT ALL + COUNT( * ) + MIN( DISTINCT + col0 ) col1 FROM tab2
----
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4269
SELECT ALL + COUNT ( * ) + MIN ( DISTINCT + col0 ) col1 FROM tab2
----
49

query I rowsort
SELECT ALL - 83 - + col0 * + 76 AS col2 FROM tab2
----
-3579
-4947
-5783

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT - SUM( 9 ) AS col1 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-4271
SELECT - SUM ( 9 ) AS col1 FROM tab0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4272
SELECT CAST( MIN( ALL col0 ) AS SIGNED ) * - 58 - COUNT( * ) AS col0 FROM tab2
----
-2671

skipif mysql # not compatible
query I rowsort label-4272
SELECT CAST ( MIN ( ALL col0 ) AS INTEGER ) * - 58 - COUNT ( * ) AS col0 FROM tab2
----
-2671

onlyif mysql # DIV for integer division: 
query I rowsort label-4273
SELECT col0 DIV + col0 - - col0 FROM tab0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-4273
SELECT col0 / + col0 - - col0 FROM tab0
----
16
88
98

query I rowsort
SELECT ALL col1 + - 68 FROM tab1
----
-21
-54
-63

query I rowsort
SELECT DISTINCT + col0 + - col1 * - col1 FROM tab1
----
110
2300
247

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT - COUNT( + 23 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4276
SELECT - COUNT ( + 23 ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE ( + 14 ) <> - col2 / - col0
----
-3

skipif mysql # not compatible
query I rowsort label-4277
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE ( + 14 ) <> - col2 / - col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4278
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE 55 * + col2 + col0 IN ( 67 * col1 )
----

skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE 55 * + col2 + col0 IN ( 67 * col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( + 49 ) AND ( + 86 )
----

query I rowsort
SELECT ALL - 68 * 13 + + 92 AS col2 FROM tab2 WHERE ( 95 ) IS NULL
----

query I rowsort
SELECT DISTINCT - ( 56 ) AS col1 FROM tab0
----
-56

query I rowsort
SELECT DISTINCT 46 * ( + col1 ) + col0 FROM tab2
----
2392
3157
3606

query I rowsort
SELECT ALL col0 + + 33 * col1 AS col2 FROM tab2
----
1729
2286
2605

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col2 ) <> ( - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - col0 + + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 7 * - ( col2 ) + - col0 / + 63 ) BETWEEN + col1 AND 75
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 * col0 col2 FROM tab1
----
-2587
-7220
-8234

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 * col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 85 FROM tab1 AS cor0 WHERE NOT - 25 NOT IN ( - col0 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( col1 ) <= ( 95 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT ( + 83 ) + - COUNT( * ) FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-4291
SELECT ( + 83 ) + - COUNT ( * ) FROM tab2 AS cor0
----
80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 + - 49 ) < col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT + 58 + + MIN( DISTINCT + 67 ) AS col2 FROM tab1 AS cor0
----
125

skipif mysql # not compatible
query I rowsort label-4293
SELECT + 58 + + MIN ( DISTINCT + 67 ) AS col2 FROM tab1 AS cor0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT ALL 78 + COUNT( * ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL 78 + COUNT ( * ) AS col0 FROM tab0
----
81

query I rowsort
SELECT + ( col2 ) AS col1 FROM tab1 WHERE 55 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - col2 + - 62 AS col1 FROM tab2
----
-102
-120
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT DISTINCT - 6 + + COUNT( * ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4297
SELECT DISTINCT - 6 + + COUNT ( * ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 72 + - col2 <= ( NULL )
----

query I rowsort
SELECT DISTINCT col2 - col1 AS col0 FROM tab0 cor0
----
-11
-34
98

query I rowsort
SELECT + col1 - 83 AS col0 FROM tab2 cor0
----
-16
-32
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 1 - 74 * col2 col1 FROM tab1 AS cor0
----
-4365
-5031
-7103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 - col2 col1 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT ALL - 47 * 57 AS col2 FROM tab1 AS cor0
----
-2679
-2679
-2679

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4304
SELECT * FROM tab1 AS cor0 WHERE ( + ( 16 ) ) BETWEEN ( CAST( NULL AS SIGNED ) / col2 ) AND - col1
----

skipif mysql # not compatible
query III rowsort label-4304
SELECT * FROM tab1 AS cor0 WHERE ( + ( 16 ) ) BETWEEN ( CAST ( NULL AS INTEGER ) / col2 ) AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT MIN( ALL - col1 ) - 40 * COUNT( * ) col0 FROM tab2 cor0
----
-197

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4305
SELECT MIN ( ALL - col1 ) - 40 * COUNT ( * ) col0 FROM tab2 cor0
----
-197

onlyif mysql # DIV for integer division: 
query I rowsort label-4306
SELECT + + col1 - + col0 DIV + col1 FROM tab0 AS cor0
----
-96
17
81

skipif mysql # not compatible
query I rowsort label-4306
SELECT + + col1 - + col0 / + col1 FROM tab0 AS cor0
----
-96
17
81

query I rowsort
SELECT + col1 + 41 AS col1 FROM tab1 AS cor0
----
46
55
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4308
SELECT - - col2 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4308
SELECT - - col2 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + - 73 AS col0 FROM tab1 AS cor0
----
-124
-158
-164

onlyif mysql # DIV for integer division: 
query I rowsort label-4310
SELECT + 14 DIV 22 FROM tab0 WHERE col1 NOT IN ( 8 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4310
SELECT + 14 / 22 FROM tab0 WHERE col1 NOT IN ( 8 )
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4311
SELECT ALL + CAST( - col2 AS SIGNED ) * - 96 AS col1 FROM tab2
----
2208
3840
5568

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL + CAST ( - col2 AS INTEGER ) * - 96 AS col1 FROM tab2
----
2208
3840
5568

query I rowsort
SELECT ALL + 90 + - col2 FROM tab1
----
-6
22
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4313
SELECT DISTINCT 10 DIV + - 60 * + col0 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4313
SELECT DISTINCT 10 / + - 60 * + col0 col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT - MIN( ALL + + col1 ) * + 65 FROM tab2
----
-3315

skipif mysql # not compatible
query I rowsort label-4314
SELECT - MIN ( ALL + + col1 ) * + 65 FROM tab2
----
-3315

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT ALL COUNT( DISTINCT + col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL COUNT ( DISTINCT + col0 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT DISTINCT 96 * + MAX( ALL - col0 ) FROM tab2
----
-4416

skipif mysql # not compatible
query I rowsort label-4316
SELECT DISTINCT 96 * + MAX ( ALL - col0 ) FROM tab2
----
-4416

query I rowsort
SELECT ALL 2 * - col1 AS col0 FROM tab2 WHERE NULL > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 10 / - col1 + + col2 ) > NULL
----

query I rowsort
SELECT DISTINCT - + col1 * - 40 AS col0 FROM tab0 AS cor0
----
3240
40
840

query I rowsort
SELECT DISTINCT 48 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
48

query I rowsort
SELECT ALL 50 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT DISTINCT 23 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
23

query I rowsort
SELECT ALL + 82 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT ALL - + 90 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

onlyif mysql # DIV for integer division: 
query I rowsort label-4325
SELECT ALL - 42 * + - col0 DIV col0 FROM tab1 AS cor0
----
42
42
42

skipif mysql # not compatible
query I rowsort label-4325
SELECT ALL - 42 * + - col0 / col0 FROM tab1 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT - col2 * + + 55 AS col0 FROM tab2 AS cor0
----
-1265
-2200
-3190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4327
SELECT COUNT( * ) DIV + MIN( DISTINCT - - col2 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4327
SELECT COUNT ( * ) / + MIN ( DISTINCT - - col2 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col0 + + - col2 AS col1 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT ALL - - MIN( - 25 ) AS col0 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL - - MIN ( - 25 ) AS col0 FROM tab0 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-4330
SELECT DISTINCT 16 AS col0, COUNT( * ) * + COUNT( * ) FROM tab0 cor0
----
16
9

skipif mysql # not compatible
query II rowsort label-4330
SELECT DISTINCT 16 AS col0, COUNT ( * ) * + COUNT ( * ) FROM tab0 cor0
----
16
9

query I rowsort
SELECT + 60 * + 68 + + 44 FROM tab0 AS cor0
----
4124
4124
4124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4332
SELECT ALL MIN( DISTINCT 21 ) AS col2 FROM tab1 AS cor0 WHERE NOT - CAST( col1 AS SIGNED ) BETWEEN NULL AND col1 + + CAST( - 22 AS SIGNED ) / - col1 OR col2 IS NOT NULL
----
21

skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL MIN ( DISTINCT 21 ) AS col2 FROM tab1 AS cor0 WHERE NOT - CAST ( col1 AS INTEGER ) BETWEEN NULL AND col1 + + CAST ( - 22 AS INTEGER ) / - col1 OR col2 IS NOT NULL
----
21

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * - 42 * - col1 IS NULL
----

query I rowsort
SELECT 60 + + - col2 FROM tab1 AS cor0
----
-36
-8
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4335
SELECT DISTINCT col0 + - col2 + + col1 * - col2 * + 78 + - col1 DIV col0 FROM tab0
----
-16303
-296983
-7724

skipif mysql # not compatible
query I rowsort label-4335
SELECT DISTINCT col0 + - col2 + + col1 * - col2 * + 78 + - col1 / col0 FROM tab0
----
-16303
-296983
-7724

query I rowsort
SELECT + col2 + col2 AS col1 FROM tab1 WHERE - 95 - + col2 IS NOT NULL
----
118
136
192

query I rowsort
SELECT - col2 * col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 * - 31 AS col1 FROM tab2
----
-1581
-2077
-2387

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4339
SELECT - CAST( 3 AS SIGNED ) FROM tab1
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-4339
SELECT - CAST ( 3 AS INTEGER ) FROM tab1
----
-3
-3
-3

query I rowsort
SELECT ALL 2 + - 43 AS col2 FROM tab1
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT COUNT( - col1 ) * 29 col1 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4341
SELECT COUNT ( - col1 ) * 29 col1 FROM tab2 AS cor0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4342
SELECT COUNT( DISTINCT + - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4342
SELECT COUNT ( DISTINCT + - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4343
SELECT DISTINCT + - 57 DIV - - col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4343
SELECT DISTINCT + - 57 / - - col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 / - - 0 col2 FROM tab0 AS cor0 WHERE ( + col0 ) IS NULL
----

query II rowsort
SELECT DISTINCT + 28 AS col2, - col1 AS col1 FROM tab2
----
28
-51
28
-67
28
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 28 * - col1 + - col2, + ( col0 ) col0 FROM tab2
----
-1451
46
-1934
75
-2196
64

query I rowsort
SELECT ALL + 65 - + col1 AS col1 FROM tab2
----
-12
-2
14

query I rowsort
SELECT DISTINCT 36 * 16 FROM tab2 WHERE + ( col0 ) <> + col2
----
576

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) IN ( + col1, - 93 / + col2 )
----

query I rowsort
SELECT DISTINCT - 19 * - - col0 - col0 * - col0 FROM tab0 AS cor0
----
-60
5916
7566

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT ALL MAX( DISTINCT - - 81 ) * - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL MAX ( DISTINCT - - 81 ) * - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
243

query I rowsort
SELECT ALL + + ( + ( + + col2 ) ) * col0 + + col1 FROM tab2 AS cor0 WHERE NOT NULL > - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4353
SELECT * FROM tab1 AS cor0 WHERE NOT ( 84 ) * + col0 NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4353
SELECT * FROM tab1 AS cor0 WHERE NOT ( 84 ) * + col0 NOT IN ( + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( + - 80 ) ) <= - col0 * + + col1 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT DISTINCT - MAX( 84 ) AS col2 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-4355
SELECT DISTINCT - MAX ( 84 ) AS col2 FROM tab1
----
-84

query II rowsort
SELECT - 97 AS col2, - col1 FROM tab1
----
-97
-14
-97
-47
-97
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE NOT ( NOT ( NULL ) NOT IN ( + col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4357
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( NOT ( NULL ) NOT IN ( + col2 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT + COUNT( - + 76 ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4358
SELECT + COUNT ( - + 76 ) FROM tab0 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT DISTINCT 76 AS col1, 37 FROM tab2
----
76
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT COUNT( * ) * - - 45 col1 FROM tab1
----
135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4360
SELECT COUNT ( * ) * - - 45 col1 FROM tab1
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-4361
SELECT + COUNT( * ) AS col1, ( - 99 ) FROM tab0
----
3
-99

skipif mysql # not compatible
query II rowsort label-4361
SELECT + COUNT ( * ) AS col1, ( - 99 ) FROM tab0
----
3
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 > - col2 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4363
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, 51 AS col1 FROM tab1
----
NULL
51

skipif mysql # not compatible
query II rowsort label-4363
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, 51 AS col1 FROM tab1
----
NULL
51

query I rowsort
SELECT DISTINCT - 61 * col1 AS col1 FROM tab0
----
-1281
-4941
-61

query I rowsort
SELECT + + 28 + + 13 FROM tab0 WHERE NOT ( NOT - col0 + + col2 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 * - + 26 col2 FROM tab0
----
-728
-728
-728

query II rowsort
SELECT - col0, ( col1 ) AS col2 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query I rowsort
SELECT DISTINCT ( 40 ) FROM tab1 AS cor0 WHERE NULL > NULL
----

query II rowsort
SELECT ALL - col1 AS col2, 52 FROM tab2 AS cor0
----
-51
52
-67
52
-77
52

query II rowsort
SELECT DISTINCT - + col2 AS col2, col0 * - 57 FROM tab1 AS cor0
----
-59
-4845
-68
-5187
-96
-2907

query I rowsort
SELECT ALL + col1 + 16 - 99 * + col0 FROM tab0
----
-1388
-8576
-9586

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 49 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + ( - + col1 ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4374
SELECT ALL + ( + col1 ) + col1 * - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL + ( + col1 ) + col1 * - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT ALL + SUM( ALL + 93 ) + 48 * MIN( ALL - + col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL + SUM ( ALL + 93 ) + 48 * MIN ( ALL - + col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT col0, 25 AS col0 FROM tab1
----
51
25
85
25
91
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4377
SELECT ALL 30 + - 42 + 3 DIV + col2 FROM tab1
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL 30 + - 42 + 3 / + col2 FROM tab1
----
-12
-12
-12

query I rowsort
SELECT ALL 0 * - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT 77 + 19 FROM tab0
----
96
96
96

query I rowsort
SELECT - + ( col0 ) AS col1 FROM tab0 WHERE NULL > col2
----

query I rowsort
SELECT + col2 + 86 FROM tab1 AS cor0
----
145
154
182

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col2 * - - 50 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 * - - 31 + - 39 AS col0 FROM tab0
----
-1496
-3108
-349

query II rowsort
SELECT DISTINCT + ( 12 ) AS col2, col2 AS col1 FROM tab0
----
12
10
12
47
12
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 < + + 65
----

query I rowsort
SELECT 86 * 55 AS col2 FROM tab0 AS cor0
----
4730
4730
4730

query I rowsort
SELECT DISTINCT + + ( - 53 ) AS col1 FROM tab0 AS cor0
----
-53

query II rowsort
SELECT col0 * + col0, col0 FROM tab2 AS cor0
----
2116
46
4096
64
5625
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT 37 * SUM( DISTINCT 77 ) * + COUNT( * ) col1 FROM tab1 AS cor0
----
8547

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4389
SELECT 37 * SUM ( DISTINCT 77 ) * + COUNT ( * ) col1 FROM tab1 AS cor0
----
8547

query II rowsort
SELECT DISTINCT + col0 AS col0, col1 + - col2 FROM tab1
----
51
-82
85
-54
91
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT ALL - COUNT( + - 37 ) AS col1 FROM tab0 WHERE NOT ( + ( + col2 ) ) <> 31 * col2 * + 29 * 28
----
0

skipif mysql # not compatible
query I rowsort label-4391
SELECT ALL - COUNT ( + - 37 ) AS col1 FROM tab0 WHERE NOT ( + ( + col2 ) ) <> 31 * col2 * + 29 * 28
----
0

query I rowsort
SELECT col2 * - ( - - col2 ) AS col0 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT ALL + ( - 46 ) AS col2 FROM tab0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT + 68 * + col0 AS col0 FROM tab2
----
3128
4352
5100

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN col2 / - col1 AND - + 65
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col1, 83 col2 FROM tab1
----
51
83
85
83
91
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4397
SELECT - CAST( col1 AS SIGNED ) AS col2 FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4397
SELECT - CAST ( col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT - + ( + + col2 ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT ALL MAX( + col1 ) col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4399
SELECT ALL MAX ( + col1 ) col1 FROM tab1 AS cor0
----
47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 / col0 ) NOT IN ( + col1 * col1 * 6 - + 27 * 54 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + 79 FROM tab0
----
100
160
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4402
SELECT + + 88 + - CAST( 66 AS SIGNED ) * - col1 * 84 AS col2 FROM tab2 AS cor0
----
282832
371536
426976

skipif mysql # not compatible
query I rowsort label-4402
SELECT + + 88 + - CAST ( 66 AS INTEGER ) * - col1 * 84 AS col2 FROM tab2 AS cor0
----
282832
371536
426976

query I rowsort
SELECT - - col0 + ( - + col2 ) FROM tab2 cor0
----
17
23
24

query I rowsort
SELECT + col1 + - 26 - + 81 FROM tab2 AS cor0
----
-30
-40
-56

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 - col1 IN ( 78 * + 18 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 < - 16
----

query I rowsort
SELECT DISTINCT + AVG ( - col2 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE 49 > + 52
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4409
SELECT ALL + 45 DIV col1 + - 12 AS col1 FROM tab0
----
-10
-12
33

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL + 45 / col1 + - 12 AS col1 FROM tab0
----
-10
-12
33

onlyif mysql # DIV for integer division: 
query I rowsort label-4410
SELECT 8 DIV - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4410
SELECT 8 / - col2 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 * - ( - + 77 ) * 65 + + - col2 BETWEEN + - col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - + 80 NOT BETWEEN - 96 AND + - 48 / - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4413
SELECT + CAST( col2 AS SIGNED ) * - - col0 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-4413
SELECT + CAST ( col2 AS INTEGER ) * - - col0 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT + 24 - + col2 * - col2 AS col2 FROM tab0 AS cor0
----
124
2233
9825

query II rowsort
SELECT DISTINCT - + ( col1 ) AS col1, + 77 AS col2 FROM tab1 AS cor0
----
-14
77
-47
77
-5
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT DISTINCT + + COUNT( * ) - COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4416
SELECT DISTINCT + + COUNT ( * ) - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + 14 AS col2 FROM tab2 AS cor0
----
14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * + - col0 + - col0 >= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * - - 56 FROM tab2 WHERE ( col0 ) = col1
----

query I rowsort
SELECT + + col1 / col2 AS col2 FROM tab1 WHERE NULL = col2
----

query I rowsort
SELECT ALL col1 * + col2 - 40 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND col1 * + + col2 * + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL BETWEEN - col0 AND + col2
----

query II rowsort
SELECT DISTINCT col0 AS col1, + 11 AS col2 FROM tab0 AS cor0
----
15
11
87
11
97
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 38 AS col0, - col2 col0 FROM tab2 AS cor0
----
-38
-23
-38
-40
-38
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT DISTINCT - SUM( DISTINCT - col2 ) * - - 12 AS col1 FROM tab1 AS cor0
----
2676

skipif mysql # not compatible
query I rowsort label-4425
SELECT DISTINCT - SUM ( DISTINCT - col2 ) * - - 12 AS col1 FROM tab1 AS cor0
----
2676

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT ALL ( + COUNT( 32 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4426
SELECT ALL ( + COUNT ( 32 ) ) AS col1 FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT - col0, col2 AS col0 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT MAX( - 6 ) * - 64 AS col2 FROM tab2
----
384

skipif mysql # not compatible
query I rowsort label-4428
SELECT MAX ( - 6 ) * - 64 AS col2 FROM tab2
----
384

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT MAX( + col1 ) * - 56 col0 FROM tab0
----
-4536

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4429
SELECT MAX ( + col1 ) * - 56 col0 FROM tab0
----
-4536

query I rowsort
SELECT col0 * - - col1 * + 75 AS col1 FROM tab1
----
31875
320775
53550

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE NOT col1 + col2 > - + 92
----
0

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE NOT col1 + col2 > - + 92
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT DISTINCT - COUNT( * ) + - 62 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
-62

skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT - COUNT ( * ) + - 62 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4434
SELECT 72 DIV - + COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-4434
SELECT 72 / - + COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT ALL COUNT( 25 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4435
SELECT ALL COUNT ( 25 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - - col0 + - 82 FROM tab1 AS cor0
----
-31
3
9

query I rowsort
SELECT DISTINCT + ( 72 ) FROM tab0 cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NOT NULL
----
72

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT + - col1 FROM tab0 AS cor0 WHERE NOT + col2 + - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + + + col1 - - 7 + + - col1 AS col0 FROM tab0 AS cor0
----
104
22
94

query I rowsort
SELECT - 62 * - col0 AS col2 FROM tab1 AS cor0
----
3162
5270
5642

query I rowsort
SELECT - 33 - - 31 AS col1 FROM tab2 AS cor0
----
-2
-2
-2

query I rowsort
SELECT + ( - - 42 ) - 97 AS col0 FROM tab0 AS cor0
----
-55
-55
-55

query I rowsort
SELECT 5 + + + col2 * + 33 + + - 40 AS col0 FROM tab2 AS cor0
----
1285
1879
724

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4445
SELECT + ( - + 48 ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4445
SELECT + ( - + 48 ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4446
SELECT ALL + col1 * + ( + CAST( NULL AS DECIMAL ) ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4446
SELECT ALL + col1 * + ( + CAST ( NULL AS REAL ) ) col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 53 + - 19 FROM tab0
----
34
34
34

query I rowsort
SELECT DISTINCT 92 + col2 AS col1 FROM tab2
----
115
132
150

query I rowsort
SELECT ALL - 38 + col2 * col2 AS col1 FROM tab0
----
2171
62
9763

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - col1 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT DISTINCT 19 - + MAX( 63 ) FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-4451
SELECT DISTINCT 19 - + MAX ( 63 ) FROM tab1
----
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab1 WHERE NOT + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT + - COUNT( * ) * - 61 FROM tab0 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-4453
SELECT + - COUNT ( * ) * - 61 FROM tab0 AS cor0
----
183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4454
SELECT - - CAST( AVG ( ( + col0 ) ) AS SIGNED ) * 53 DIV + + 37 + - COUNT( * ) col2 FROM tab0 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4454
SELECT - - CAST ( AVG ( ( + col0 ) ) AS INTEGER ) * 53 / + + 37 + - COUNT ( * ) col2 FROM tab0 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT DISTINCT - - ( + COUNT( * ) ) - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4455
SELECT DISTINCT - - ( + COUNT ( * ) ) - COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4456
SELECT ALL 25 DIV - COUNT( * ) FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL 25 / - COUNT ( * ) FROM tab1
----
-8

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE ( NULL ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT ALL MAX( + - col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4458
SELECT ALL MAX ( + - col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 99 col2 FROM tab1 AS cor0
----
-99
-99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4460
SELECT DISTINCT - - col2 * - + col2 + + + col2 + CAST( NULL AS SIGNED ) + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4460
SELECT DISTINCT - - col2 * - + col2 + + + col2 + CAST ( NULL AS INTEGER ) + col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4461
SELECT + + ( - ( col2 ) ) * CAST( NULL AS DECIMAL ) - + - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4461
SELECT + + ( - ( col2 ) ) * CAST ( NULL AS REAL ) - + - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND col1 + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4463
SELECT DISTINCT + - COUNT( ALL - col0 ) AS col1, 68 AS col1 FROM tab1 AS cor0
----
-3
68

skipif mysql # not compatible
query II rowsort label-4463
SELECT DISTINCT + - COUNT ( ALL - col0 ) AS col1, 68 AS col1 FROM tab1 AS cor0
----
-3
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4464
SELECT - CAST( NULL AS SIGNED ) * - + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4464
SELECT - CAST ( NULL AS INTEGER ) * - + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 59 col1 FROM tab2
----
3009
3953
4543

onlyif mysql # DIV for integer division: 
query I rowsort label-4466
SELECT DISTINCT - 99 DIV + 95 col1 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4466
SELECT DISTINCT - 99 / + 95 col1 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT + MAX( ALL - 69 ) AS col0 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-4467
SELECT + MAX ( ALL - 69 ) AS col0 FROM tab0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT DISTINCT MAX( DISTINCT + + col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT MAX ( DISTINCT + + col0 ) AS col0 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4469
SELECT - COUNT( * ), 1 * COUNT( * ) col1 FROM tab0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4469
SELECT - COUNT ( * ), 1 * COUNT ( * ) col1 FROM tab0
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - + 18 ) col1 FROM tab0 cor0
----
18

query II rowsort
SELECT col0, + 21 FROM tab1 AS cor0
----
51
21
85
21
91
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT 54 * + - COUNT( * ) AS col0 FROM tab1 cor0
----
-162

skipif mysql # not compatible
query I rowsort label-4472
SELECT 54 * + - COUNT ( * ) AS col0 FROM tab1 cor0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT COUNT( * ) + - MIN( 46 ) FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-4473
SELECT COUNT ( * ) + - MIN ( 46 ) FROM tab2 AS cor0
----
-43

query I rowsort
SELECT - + col2 + - - col1 AS col0 FROM tab0 AS cor0
----
-98
11
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 4 * - 94 col1 FROM tab0 AS cor0
----
377
397
457

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4476
SELECT + - CAST( NULL AS SIGNED ) + + 21 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4476
SELECT + - CAST ( NULL AS INTEGER ) + + 21 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN + 21 * - 89 AND + col0
----

query I rowsort
SELECT DISTINCT + 11 * + - 74 AS col1 FROM tab1 AS cor0
----
-814

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 <> - col0 * - + col1 + - 71
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 17 * - - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT NULL >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT ALL + SUM( + 14 ) * 11 FROM tab0 AS cor0
----
462

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL + SUM ( + 14 ) * 11 FROM tab0 AS cor0
----
462

query I rowsort
SELECT ALL - 66 + + - 57 AS col1 FROM tab2
----
-123
-123
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT DISTINCT MAX( DISTINCT + col2 ) + + 56 AS col2 FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-4484
SELECT DISTINCT MAX ( DISTINCT + col2 ) + + 56 AS col2 FROM tab2
----
114

query I rowsort
SELECT DISTINCT - 16 - + - 31 FROM tab1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4486
SELECT - 88 DIV + col2 AS col1 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4486
SELECT - 88 / + col2 AS col1 FROM tab2
----
-1
-2
-3

query I rowsort
SELECT col1 - + ( + - col1 ) AS col0 FROM tab1
----
10
28
94

query I rowsort
SELECT DISTINCT + col1 * + + col2 + col2 AS col0 FROM tab1
----
1440
3264
354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4489
SELECT - CAST( NULL AS SIGNED ) / + + col1 * + 88 - + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4489
SELECT - CAST ( NULL AS INTEGER ) / + + col1 * + 88 - + + col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 - - col2 col2 FROM tab2 AS cor0
----
105
122
140

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT + COUNT( * ) - - - MIN( + 45 ) * + 34 FROM tab2 AS cor0
----
-1527

skipif mysql # not compatible
query I rowsort label-4491
SELECT + COUNT ( * ) - - - MIN ( + 45 ) * + 34 FROM tab2 AS cor0
----
-1527

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT ALL - ( + MIN( - col1 ) ) - 32 AS col0 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL - ( + MIN ( - col1 ) ) - 32 AS col0 FROM tab1 AS cor0
----
15

query I rowsort
SELECT - ( - + col0 ) FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT ALL 75 + - 12 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT DISTINCT - - 48 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4496
SELECT DISTINCT 26 col2, COUNT( * ) AS col2 FROM tab2
----
26
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4496
SELECT DISTINCT 26 col2, COUNT ( * ) AS col2 FROM tab2
----
26
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 + - 62 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - 78 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-4499
SELECT - - 25 DIV - ( - - col1 ) FROM tab1 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-4499
SELECT - - 25 / - ( - - col1 ) FROM tab1 AS cor0
----
-1
-5
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col1 + + + 17 col0 FROM tab2 AS cor0
----
-1156
-3063
-3869

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4502
SELECT DISTINCT + 56 DIV - ( - col0 ) FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT + 56 / - ( - col0 ) FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT - + col0 * + 30 AS col0 FROM tab2 AS cor0
----
-1380
-1920
-2250

query I rowsort
SELECT 3 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4505
SELECT DISTINCT - - 15 DIV - + COUNT( * ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT - - 15 / - + COUNT ( * ) FROM tab1 AS cor0
----
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 <= col2 * - - col0 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4507
SELECT - 8 * ( + CAST( - - 86 AS SIGNED ) ) FROM tab0
----
-688
-688
-688

skipif mysql # not compatible
query I rowsort label-4507
SELECT - 8 * ( + CAST ( - - 86 AS INTEGER ) ) FROM tab0
----
-688
-688
-688

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT DISTINCT + MAX( ( + + 47 ) ) + + COUNT( * ) FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-4508
SELECT DISTINCT + MAX ( ( + + 47 ) ) + + COUNT ( * ) FROM tab0
----
50

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 71 + + col2, - 22 * + - 62 AS col2 FROM tab0 AS cor0
----
118
1364
170
1364
81
1364

query II rowsort
SELECT - 94, + col0 FROM tab2
----
-94
46
-94
64
-94
75

query I rowsort
SELECT DISTINCT - 54 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4513
SELECT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4513
SELECT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 FROM tab0 WHERE col0 >= + col1
----
1
21

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( - 81 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 - + - col0 * + ( + col2 ) * + - ( 0 ) * + col1 col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL + 93 - 58 + - col0 * - 18 FROM tab0 cor0
----
1601
1781
305

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4518
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( col1 AS SIGNED ) + + col0 - + - 14 IS NOT NULL AND NOT + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4518
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( col1 AS INTEGER ) + + col0 - + - 14 IS NOT NULL AND NOT + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 72 + - 27 FROM tab1 AS cor0
----
-99
-99
-99

query II rowsort
SELECT + col0 + 33 AS col2, col0 AS col2 FROM tab0
----
120
87
130
97
48
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4521
SELECT + col0 DIV col1 * col2 + + col1 col2 FROM tab0
----
61
81
9604

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4521
SELECT + col0 / col1 * col2 + + col1 col2 FROM tab0
----
61
81
9604

onlyif mysql # aggregate syntax: 
query II rowsort label-4522
SELECT ALL + - COUNT( * ), - ( - 13 ) AS col1 FROM tab2 WHERE - col2 / - - col1 * - ( col1 ) IS NOT NULL
----
-3
13

skipif mysql # not compatible
query II rowsort label-4522
SELECT ALL + - COUNT ( * ), - ( - 13 ) AS col1 FROM tab2 WHERE - col2 / - - col1 * - ( col1 ) IS NOT NULL
----
-3
13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4523
SELECT DISTINCT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) / col0 + + col0 * + CAST( NULL AS SIGNED ) + - + col2 <= + col2 * + + col2 / + ( col1 ) + - 14
----

skipif mysql # not compatible
query III rowsort label-4523
SELECT DISTINCT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) / col0 + + col0 * + CAST ( NULL AS INTEGER ) + - + col2 <= + col2 * + + col2 / + ( col1 ) + - 14
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4524
SELECT + MAX( + + 46 ) AS col1, 80 FROM tab2 AS cor0
----
46
80

skipif mysql # not compatible
query II rowsort label-4524
SELECT + MAX ( + + 46 ) AS col1, 80 FROM tab2 AS cor0
----
46
80

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col0 >= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4526
SELECT DISTINCT * FROM tab1 WHERE NOT + + 70 * - col2 BETWEEN ( + CAST( NULL AS SIGNED ) ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4526
SELECT DISTINCT * FROM tab1 WHERE NOT + + 70 * - col2 BETWEEN ( + CAST ( NULL AS INTEGER ) ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + + col2 ) < 78 + - - 76
----

query I rowsort
SELECT DISTINCT + col1 * + col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4529
SELECT DISTINCT + ( + 61 ) DIV + - 27 col2 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4529
SELECT DISTINCT + ( + 61 ) / + - 27 col2 FROM tab0 AS cor0
----
-2

query I rowsort
SELECT ALL - col2 FROM tab1 cor0 WHERE col1 * col2 / + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT ALL - COUNT( * ) * - COUNT( * ) + 41 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-4531
SELECT ALL - COUNT ( * ) * - COUNT ( * ) + 41 FROM tab1
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4532
SELECT + - COUNT( ALL + 4 ) DIV COUNT( * ) + - + COUNT( * ) FROM tab1 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-4532
SELECT + - COUNT ( ALL + 4 ) / COUNT ( * ) + - + COUNT ( * ) FROM tab1 cor0
----
-4

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - ( + col0 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4534
SELECT ALL - 35 DIV - col1 FROM tab1 AS cor0
----
0
2
7

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL - 35 / - col1 FROM tab1 AS cor0
----
0
2
7

onlyif mysql # DIV for integer division: 
query II rowsort label-4535
SELECT DISTINCT + 65 AS col2, - col0 + - + col0 DIV + col0 AS col1 FROM tab0 AS cor0
----
65
-16
65
-88
65
-98

skipif mysql # not compatible
query II rowsort label-4535
SELECT DISTINCT + 65 AS col2, - col0 + - + col0 / + col0 AS col1 FROM tab0 AS cor0
----
65
-16
65
-88
65
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-4536
SELECT + + col1 DIV - - col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4536
SELECT + + col1 / - - col2 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4537
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT 41 * - - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4537
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT 41 * - - CAST ( NULL AS REAL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - + col1 col1 FROM tab1
----
-110
-115
-64

query I rowsort
SELECT ALL - 80 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT DISTINCT col1 * + 35 * - 82 + - + col0 + + + col2 * - + col0 * col0 AS col0 FROM tab0
----
-136047
-243060
-934458

query I rowsort
SELECT - + 2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT ALL - MAX( ALL + col2 ) - - 28 FROM tab1
----
-68

skipif mysql # not compatible
query I rowsort label-4542
SELECT ALL - MAX ( ALL + col2 ) - - 28 FROM tab1
----
-68

query I rowsort
SELECT ALL - col0 + ( + col1 ) AS col2 FROM tab0 AS cor0 WHERE - 66 * - 24 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4544
SELECT DISTINCT - col1 - 28 + + 69 + + CAST( NULL AS SIGNED ) + 11 * + - 92 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4544
SELECT DISTINCT - col1 - 28 + + 69 + + CAST ( NULL AS INTEGER ) + 11 * + - 92 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4545
SELECT DISTINCT 62 DIV + col2 FROM tab0 cor0 WHERE NULL IS NULL
----
0
1
6

skipif mysql # not compatible
query I rowsort label-4545
SELECT DISTINCT 62 / + col2 FROM tab0 cor0 WHERE NULL IS NULL
----
0
1
6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 / - col2 * col2 * - + 1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 64 col0 FROM tab1 AS cor0
----
-64
-64
-64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - ( + col0 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL MAX( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL MAX ( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
-1

query II rowsort
SELECT ALL + col2, col0 * - col2 AS col0 FROM tab2
----
23
-1058
40
-2560
58
-4350

query II rowsort
SELECT ALL 69 AS col1, - col0 AS col2 FROM tab1
----
69
-51
69
-85
69
-91

query III rowsort
SELECT * FROM tab0 WHERE NOT + 53 + - col1 + 97 <= + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * + + 81 FROM tab1
----
-4131
-6885
-7371

onlyif mysql # DIV for integer division: 
query I rowsort label-4554
SELECT 23 DIV 91 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4554
SELECT 23 / 91 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE - 71 BETWEEN ( NULL ) AND col0 * - col1 * - 14
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + ( + + 42 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT DISTINCT - COUNT( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT - COUNT ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 col0, - col0 FROM tab1 cor0
----
59
-85
68
-91
96
-51

query I rowsort
SELECT - 38 AS col1 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4560
SELECT DISTINCT 93 * + + 69 * + CAST( NULL AS SIGNED ) * + + ( - col1 ) * - 25 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4560
SELECT DISTINCT 93 * + + 69 * + CAST ( NULL AS INTEGER ) * + + ( - col1 ) * - 25 AS col1 FROM tab0
----
NULL

query II rowsort
SELECT ALL - ( - - col0 ), col1 + + col1 AS col1 FROM tab1 AS cor0
----
-51
28
-85
10
-91
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4562
SELECT 15 * + + 52 * - col2 * - 45 FROM tab1 AS cor0 WHERE NOT - col1 / - 2 + + col0 - - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4562
SELECT 15 * + + 52 * - col2 * - 45 FROM tab1 AS cor0 WHERE NOT - col1 / - 2 + + col0 - - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT DISTINCT 29 * + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT 29 * + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - + 27 AS col0 FROM tab1 AS cor0
----
-27
-27
-27

query I rowsort
SELECT + col1 * - + 43 FROM tab1 AS cor0
----
-2021
-215
-602

query I rowsort
SELECT + - col0 FROM tab0 AS cor0 WHERE - ( - col2 ) <= 15
----
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col0 col1 FROM tab0
----
1215
1827
97

query I rowsort
SELECT 60 + + 34 * 42 FROM tab1
----
1488
1488
1488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4569
SELECT col0 + col1 * + + ( + - col2 ) + + + CAST( + + 3 AS SIGNED ) AS col1 FROM tab0
----
-120
-3789
1

skipif mysql # not compatible
query I rowsort label-4569
SELECT col0 + col1 * + + ( + - col2 ) + + + CAST ( + + 3 AS INTEGER ) AS col1 FROM tab0
----
-120
-3789
1

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT + col1 < NULL
----

query I rowsort
SELECT DISTINCT col2 + - col1 * 92 FROM tab2
----
-4669
-6106
-7044

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT DISTINCT MIN( DISTINCT + + col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT MIN ( DISTINCT + + col0 ) AS col0 FROM tab1
----
51

query I rowsort
SELECT ALL 0 + + - col2 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4576
SELECT DISTINCT - CAST( - - col1 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + col2 + + col1 + 88 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4576
SELECT DISTINCT - CAST ( - - col1 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + col2 + + col1 + 88 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4577
SELECT + COUNT( DISTINCT + - col0 ) DIV + ( - - 44 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4577
SELECT + COUNT ( DISTINCT + - col0 ) / + ( - - 44 ) FROM tab1
----
0

query I rowsort
SELECT - + 4 / - - col2 FROM tab2 WHERE + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( - col2 * + 66, ( 87 ) + - col1 )
----

query I rowsort
SELECT 26 - + 57 AS col0 FROM tab2 AS cor0
----
-31
-31
-31

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 AS cor0 WHERE - 51 BETWEEN col0 + col0 AND - col1
----

query I rowsort
SELECT DISTINCT - ( col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-1
-21
-81

query II rowsort
SELECT ALL - - col2, + col2 * + + 21 * - col1 * - col1 + - col1 AS col0 FROM tab2 AS cor0
----
23
1256232
40
4980283
58
5467535

query I rowsort
SELECT - 71 * col2 + + col2 FROM tab0 AS cor0
----
-3290
-6930
-700

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + col2 - - 57 > 95 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 44 * + 9 FROM tab0 AS cor0
----
-396
-396
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT - MAX( DISTINCT - 87 ) * - - MAX( ALL - 28 ) FROM tab1 AS cor0
----
-2436

skipif mysql # not compatible
query I rowsort label-4587
SELECT - MAX ( DISTINCT - 87 ) * - - MAX ( ALL - 28 ) FROM tab1 AS cor0
----
-2436

onlyif mysql # DIV for integer division: 
query I rowsort label-4588
SELECT 78 DIV + 93 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4588
SELECT 78 / + 93 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 34 * + col2 AS col1 FROM tab1 AS cor0
----
2006
2312
3264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4590
SELECT DISTINCT + COUNT( ALL + CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col0 + - col1 IS NOT NULL
----

query I rowsort
SELECT - 52 FROM tab1 WHERE NOT col0 IS NULL
----
-52
-52
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-4593
SELECT DISTINCT 73 DIV + col0 AS col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-4593
SELECT DISTINCT 73 / + col0 AS col0 FROM tab1
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - + col2 * - col0 AND + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT ALL - + COUNT( DISTINCT + 71 ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL - + COUNT ( DISTINCT + 71 ) FROM tab1 cor0
----
-1

query I rowsort
SELECT - ( + 88 ) AS col2 FROM tab1 AS cor0
----
-88
-88
-88

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 62 * + 81 AS col0 FROM tab2 AS cor0 WHERE 90 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT - 19 + + - COUNT( * ) AS col0 FROM tab2 cor0
----
-22

skipif mysql # not compatible
query I rowsort label-4599
SELECT - 19 + + - COUNT ( * ) AS col0 FROM tab2 cor0
----
-22

query II rowsort
SELECT + - col2, + col2 AS col2 FROM tab1 AS cor0 WHERE - 25 + + col1 BETWEEN col1 * 8 / - - col1 + - + col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4601
SELECT DISTINCT - MAX( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT DISTINCT - MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) <= col1 + - col0 + + 28 * + ( - 85 ) * + col0 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT DISTINCT + - COUNT( * ) + + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4603
SELECT DISTINCT + - COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 WHERE - col2 * + 64 - - 37 IS NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE - ( + - 50 ) + + - col1 + + col0 IN ( + 3 )
----

query I rowsort
SELECT ALL 98 + - col2 * - col1 FROM tab0
----
197
308
3905

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4607
SELECT DISTINCT - 98 * - col2 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4607
SELECT DISTINCT - 98 * - col2 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query II rowsort
SELECT ALL 64 + - col0, - col2 AS col2 FROM tab0
----
-23
-10
-33
-99
49
-47

query I rowsort
SELECT DISTINCT + col2 + 21 AS col1 FROM tab2
----
44
61
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT + 98 - MIN( DISTINCT col1 ) FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4610
SELECT + 98 - MIN ( DISTINCT col1 ) FROM tab2 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT ALL + 80 * + MAX( ALL col2 ) FROM tab0 AS cor0
----
7920

skipif mysql # not compatible
query I rowsort label-4611
SELECT ALL + 80 * + MAX ( ALL col2 ) FROM tab0 AS cor0
----
7920

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT + 74 / col0 * - col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT 18 + + COUNT( * ) AS col0 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-4614
SELECT 18 + + COUNT ( * ) AS col0 FROM tab0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT DISTINCT COUNT( 56 ) + - + SUM( col2 ) FROM tab1
----
-220

skipif mysql # not compatible
query I rowsort label-4615
SELECT DISTINCT COUNT ( 56 ) + - + SUM ( col2 ) FROM tab1
----
-220

query I rowsort
SELECT DISTINCT - ( + - ( - + 63 ) ) AS col1 FROM tab2
----
-63

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4617
SELECT + + CAST( NULL AS SIGNED ) + ( 90 ), - CAST( - 47 AS DECIMAL ) * + col1 AS col0 FROM tab0 cor0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4617
SELECT + + CAST ( NULL AS INTEGER ) + ( 90 ), - CAST ( - 47 AS REAL ) * + col1 AS col0 FROM tab0 cor0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 40 col1 FROM tab2 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT ALL + ( COUNT( * ) ) * - - 30 AS col1 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL + ( COUNT ( * ) ) * - - 30 AS col1 FROM tab1 AS cor0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4620
SELECT DISTINCT - 17 DIV 4 + + col0 + col0 * + 38 FROM tab2 AS cor0
----
1790
2492
2921

skipif mysql # not compatible
query I rowsort label-4620
SELECT DISTINCT - 17 / 4 + + col0 + col0 * + 38 FROM tab2 AS cor0
----
1790
2492
2921

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT DISTINCT COUNT( * ) * + + 69 col0 FROM tab1
----
207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4621
SELECT DISTINCT COUNT ( * ) * + + 69 col0 FROM tab1
----
207

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 + + col0 <= NULL
----

query I rowsort
SELECT + col1 * ( col2 ) AS col2 FROM tab2
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, 20 - col2 - + - col1 col1 FROM tab1
----
-14
-62
-47
-1
-5
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-4625
SELECT + 34 DIV 64 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4625
SELECT + 34 / 64 AS col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4626
SELECT DISTINCT col0 DIV ( - + col0 ) col2 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4626
SELECT DISTINCT col0 / ( - + col0 ) col2 FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4627
SELECT DISTINCT + 76 + CAST( 59 AS SIGNED ) * + col1 - + col0, - 38 FROM tab2 WHERE NOT NULL BETWEEN - col1 AND + col0
----

skipif mysql # not compatible
query II rowsort label-4627
SELECT DISTINCT + 76 + CAST ( 59 AS INTEGER ) * + col1 - + col0, - 38 FROM tab2 WHERE NOT NULL BETWEEN - col1 AND + col0
----

query I rowsort
SELECT col0 + + - col2 AS col0 FROM tab0
----
-2
-32
77

query I rowsort
SELECT DISTINCT 88 + 27 AS col1 FROM tab1
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4630
SELECT ALL CAST( col1 AS SIGNED ) * col1 AS col0 FROM tab2
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL CAST ( col1 AS INTEGER ) * col1 AS col0 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT DISTINCT - COUNT( * ) + - SUM( DISTINCT - col2 ) FROM tab2 cor0
----
118

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT - COUNT ( * ) + - SUM ( DISTINCT - col2 ) FROM tab2 cor0
----
118

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= col0 * + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT ALL - - ( + + MAX( DISTINCT - + col2 ) ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4633
SELECT ALL - - ( + + MAX ( DISTINCT - + col2 ) ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE + col0 BETWEEN NULL AND - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4635
SELECT - col0 * - 38 + - + 21 col2, CAST( NULL AS SIGNED ) / + col1 AS col0 FROM tab0 AS cor0
----
3285
NULL
3665
NULL
549
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4635
SELECT - col0 * - 38 + - + 21 col2, CAST ( NULL AS INTEGER ) / + col1 AS col0 FROM tab0 AS cor0
----
3285
NULL
3665
NULL
549
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4636
SELECT - col1 * + 79 AS col2 FROM tab0 WHERE - - CAST( NULL AS SIGNED ) * - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4636
SELECT - col1 * + 79 AS col2 FROM tab0 WHERE - - CAST ( NULL AS INTEGER ) * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT DISTINCT - MIN( DISTINCT col1 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4637
SELECT DISTINCT - MIN ( DISTINCT col1 ) AS col1 FROM tab0
----
-1

query I rowsort
SELECT ALL col2 + col1 + col2 - 85 AS col1 FROM tab2
----
12
72
98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 * - col1 = NULL
----

query I rowsort
SELECT ALL + 10 + - col1 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL + + col2 AS col1, col2 + - + col1 AS col2 FROM tab1 AS cor0
----
59
54
68
21
96
82

query I rowsort
SELECT 31 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT ( 7 ) FROM tab2 cor0 WHERE NULL BETWEEN NULL AND - col1 * + 90
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4644
SELECT ( - col0 ) DIV + + col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4644
SELECT ( - col0 ) / + + col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN - 94 * - 56 + - col0 + + col2 AND col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4646
SELECT + COUNT( * ) DIV 44 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4646
SELECT + COUNT ( * ) / 44 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 28 * + col1 col1 FROM tab2 AS cor0
----
-1428
-1876
-2156

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE - 48 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT + col1 * 31 AS col1 FROM tab2
----
1581
2077
2387

query I rowsort
SELECT DISTINCT - + 51 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-51

query I rowsort
SELECT ALL 44 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + + ( - 40 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4653
SELECT ALL + - 24 DIV + - 5 AS col1 FROM tab1 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL + - 24 / + - 5 AS col1 FROM tab1 AS cor0
----
4
4
4

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND 85
----

query I rowsort
SELECT + col0 + - col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
0
0

query I rowsort
SELECT + ( - - 78 ) FROM tab0
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT DISTINCT SUM( DISTINCT + + col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4657
SELECT DISTINCT SUM ( DISTINCT + + col1 ) FROM tab1
----
66

query I rowsort
SELECT - col2 * - 96 FROM tab0
----
4512
9504
960

onlyif mysql # DIV for integer division: 
query I rowsort label-4659
SELECT ALL - col1 DIV + 50 * + 7 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL - col1 / + 50 * + 7 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * - 28 + col1 + - col0 FROM tab0 AS cor0
----
-2502
-2812
-354

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4661
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + - col2 / - - CAST( + CAST( - 46 AS SIGNED ) AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4661
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + - col2 / - - CAST ( + CAST ( - 46 AS INTEGER ) AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4662
SELECT DISTINCT + col2 * - 53 + - 60 DIV + col0 FROM tab2
----
-1220
-2120
-3074

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT + col2 * - 53 + - 60 / + col0 FROM tab2
----
-1220
-2120
-3074

query II rowsort
SELECT DISTINCT col2, - 45 AS col1 FROM tab2 AS cor0
----
23
-45
40
-45
58
-45

query II rowsort
SELECT DISTINCT + + col0, col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT + + 21 + - + col1 FROM tab0 AS cor0
----
-60
0
20

query I rowsort
SELECT - 94 + - - col2 AS col1 FROM tab2 AS cor0
----
-36
-54
-71

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL 32 + - - 70 + col2 - + - 29 AS col2 FROM tab2
----
154
171
189

query III rowsort
SELECT * FROM tab0 WHERE - 14 >= NULL
----

query I rowsort
SELECT DISTINCT + 58 - + + col0 * - - col1 AS col1 FROM tab1
----
-367
-4219
-656

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4671
SELECT col1 - + ( - CAST( NULL AS SIGNED ) ) AS col0, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-4671
SELECT col1 - + ( - CAST ( NULL AS INTEGER ) ) AS col0, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT ALL + 56 - + COUNT( * ) FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL + 56 - + COUNT ( * ) FROM tab1
----
53

query I rowsort
SELECT 21 - + 9 * + 19 AS col2 FROM tab0
----
-150
-150
-150

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 2 IS NULL
----

query I rowsort
SELECT ALL + col0 + + - 57 + - - col1 FROM tab1 AS cor0
----
33
8
81

query I rowsort
SELECT DISTINCT + - col1 - + col2 * col2 - + 80 AS col0 FROM tab0 AS cor0
----
-201
-2370
-9882

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT ALL + SUM( + ( + + col1 ) ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL + SUM ( + ( + + col1 ) ) AS col1 FROM tab2 AS cor0
----
195

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4678
SELECT * FROM tab2 AS cor0 WHERE col1 * - + col0 + + - CAST( NULL AS DECIMAL ) * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4678
SELECT * FROM tab2 AS cor0 WHERE col1 * - + col0 + + - CAST ( NULL AS REAL ) * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( - col2 ) + - 97 AS col2 FROM tab1 AS cor0
----
-156
-165
-193

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 + + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT COUNT( * ) FROM tab0 cor0 WHERE NOT + ( + + 19 ) * + + 30 + + 45 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4681
SELECT COUNT ( * ) FROM tab0 cor0 WHERE NOT + ( + + 19 ) * + + 30 + + 45 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 / - + 61 * - 38 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( + col2 ) NOT BETWEEN NULL AND - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > 82 + - 41
----

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT - ( - 33 ) AS col2 FROM tab0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT ALL + MIN( 84 ) FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-4687
SELECT ALL + MIN ( 84 ) FROM tab2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE NOT ( NOT + col2 <> - col2 ) OR + 45 * + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4688
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( NOT + col2 <> - col2 ) OR + 45 * + col1 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + + col0 * - col2 col2 FROM tab2
----
-102400
-24334
-252300

query II rowsort
SELECT DISTINCT 95 * - col2 AS col0, - col0 FROM tab1
----
-5605
-85
-6460
-91
-9120
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT ALL - 30 * - - MIN( ALL - col0 ) AS col0 FROM tab1
----
2730

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL - 30 * - - MIN ( ALL - col0 ) AS col0 FROM tab1
----
2730

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 WHERE NOT NULL > NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + ( - col0 ) + + - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT SUM( DISTINCT + 3 ) * - - COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4694
SELECT SUM ( DISTINCT + 3 ) * - - COUNT ( * ) FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT ALL - MAX( DISTINCT - 25 ) FROM tab0 AS cor0 WHERE col2 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL - MAX ( DISTINCT - 25 ) FROM tab0 AS cor0 WHERE col2 = NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4696
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4696
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 67 * 33 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT COUNT( ALL - - 18 ) AS col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4698
SELECT COUNT ( ALL - - 18 ) AS col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 53 col0 FROM tab1 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT DISTINCT - COUNT( + + col2 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT - COUNT ( + + col2 ) FROM tab1 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 12 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4702
SELECT + + CAST( NULL AS SIGNED ) * + col2 + + 61 * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4702
SELECT + + CAST ( NULL AS INTEGER ) * + col2 + + 61 * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - col1 + - 88 AS col2 FROM tab2
----
-116
-125
-97

query I rowsort
SELECT col1 * - + col0 + - col2 FROM tab0
----
-1262
-1837
-196

query I rowsort
SELECT col2 + - - 7 FROM tab1
----
103
66
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4706
SELECT ALL - 56 AS col0, MAX( DISTINCT - - col2 ) FROM tab1 AS cor0
----
-56
96

skipif mysql # not compatible
query II rowsort label-4706
SELECT ALL - 56 AS col0, MAX ( DISTINCT - - col2 ) FROM tab1 AS cor0
----
-56
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT DISTINCT - SUM( + 50 ) FROM tab1 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-4707
SELECT DISTINCT - SUM ( + 50 ) FROM tab1 AS cor0
----
-150

query I rowsort
SELECT ALL - col1 * + 19 AS col1 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT - 7 * - col0 * - - col2 + + - 21 * + col1 AS col1 FROM tab0 AS cor0
----
3234
5649
67200

query I rowsort
SELECT + 79 * + col1 FROM tab2
----
4029
5293
6083

query I rowsort
SELECT - + col2 + - + 48 FROM tab0 WHERE NOT - 77 IS NULL
----
-147
-58
-95

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 AS cor0 WHERE col0 < NULL
----

query I rowsort
SELECT + - 93 AS col0 FROM tab1 AS cor0
----
-93
-93
-93

query I rowsort
SELECT 75 + col0 + 90 + col1 * - 45 - - + 83 AS col0 FROM tab0 AS cor0
----
-3382
-610
300

query I rowsort
SELECT col0 + - ( - + col0 ) FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT ALL - + col1 AS col1 FROM tab2 AS cor0 WHERE ( - 53 ) <= + col1
----
-51
-67
-77

query I rowsort
SELECT - - 32 + - col1 - col1 FROM tab1 AS cor0
----
-62
22
4

query I rowsort
SELECT ( + col1 ) + col2 * + 4 * col2 FROM tab2
----
13523
2167
6477

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT DISTINCT COUNT( * ) col2 FROM tab1, tab2 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4719
SELECT DISTINCT COUNT ( * ) col2 FROM tab1, tab2 cor0
----
9

query I rowsort
SELECT - ( - col2 ) * + - 36 FROM tab1 WHERE NOT ( NOT - col0 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT - - SUM( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4722
SELECT - - SUM ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT ALL SUM( - - 68 ) col0 FROM tab2 AS cor0
----
204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4723
SELECT ALL SUM ( - - 68 ) col0 FROM tab2 AS cor0
----
204

query I rowsort
SELECT 61 * - col1 AS col1 FROM tab2 AS cor0
----
-3111
-4087
-4697

query II rowsort
SELECT + - 32, col1 FROM tab0 AS cor0
----
-32
1
-32
21
-32
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4726
SELECT CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4726
SELECT CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4727
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4727
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT COUNT( * ) - + 50 AS col2 FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-4728
SELECT COUNT ( * ) - + 50 AS col2 FROM tab2
----
-47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 > ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + + 17 AS col1 FROM tab0
----
18
38
98

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN col0 * + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4732
SELECT * FROM tab2 WHERE NOT NULL IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4732
SELECT * FROM tab2 WHERE NOT NULL IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT 40 - 18 FROM tab2
----
22
22
22

query I rowsort
SELECT ALL + col2 + 52 FROM tab0
----
151
62
99

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4735
SELECT * FROM tab2 WHERE - 5 * 58 NOT BETWEEN ( - col1 + CAST( + 98 AS DECIMAL ) ) AND ( 3 * 36 + col1 * + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4735
SELECT * FROM tab2 WHERE - 5 * 58 NOT BETWEEN ( - col1 + CAST ( + 98 AS REAL ) ) AND ( 3 * 36 + col1 * + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4736
SELECT - COUNT( * ) * - ( CAST( NULL AS SIGNED ) * - AVG ( ALL - col1 ) ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4736
SELECT - COUNT ( * ) * - ( CAST ( NULL AS INTEGER ) * - AVG ( ALL - col1 ) ) col0 FROM tab1
----
NULL

query I rowsort
SELECT - 76 * - col2 FROM tab0
----
3572
7524
760

query I rowsort
SELECT 1 * 67 FROM tab1
----
67
67
67

query I rowsort
SELECT 70 * - col1 FROM tab2
----
-3570
-4690
-5390

query I rowsort
SELECT ALL 46 FROM tab1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL 33 * 41 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1353
1353
1353

query I rowsort
SELECT 16 + 90 * + col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT ALL - COUNT( DISTINCT + col1 ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4743
SELECT ALL - COUNT ( DISTINCT + col1 ) col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT - SUM( 43 ) AS col1 FROM tab2
----
-129

skipif mysql # not compatible
query I rowsort label-4744
SELECT - SUM ( 43 ) AS col1 FROM tab2
----
-129

query I rowsort
SELECT DISTINCT - 32 * - 38 FROM tab1 WHERE NOT NULL IN ( - 44 )
----

query I rowsort
SELECT DISTINCT 23 FROM tab1 WHERE NOT NULL >= 16
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NOT ( 53 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( 18 ) FROM tab0
----
18

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NULL BETWEEN NULL AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4750
SELECT CAST( NULL AS SIGNED ) / 21 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4750
SELECT CAST ( NULL AS INTEGER ) / 21 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4751
SELECT + MAX( + col2 ) DIV + CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-4751
SELECT + MAX ( + col2 ) / + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
-33

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + ( 78 ) AND + col0 + + 39
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT DISTINCT + COUNT( * ) - + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4753
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 ) NOT BETWEEN ( 5 ) AND ( col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN + col1 - + col2 AND - 75 * + 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT + MAX( DISTINCT 26 ) col1 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4756
SELECT + MAX ( DISTINCT 26 ) col1 FROM tab0 AS cor0
----
26

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE NOT col0 + + 44 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT + 30 * - COUNT( * ) FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-4758
SELECT + 30 * - COUNT ( * ) FROM tab1 AS cor0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-4759
SELECT ALL - col0 DIV col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL - col0 / col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-4
-97
0

query I rowsort
SELECT ALL - 41 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query III rowsort
SELECT * FROM tab1 WHERE NOT 13 <= NULL
----

query I rowsort
SELECT + - 77 * + col2 FROM tab1 AS cor0
----
-4543
-5236
-7392

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - col2 ) <> ( col0 + 18 / + 24 )
----

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT NULL <> + ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4766
SELECT ALL + col1 + - - col2 DIV col2 FROM tab2
----
52
68
78

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL + col1 + - - col2 / col2 FROM tab2
----
52
68
78

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN - 34 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT DISTINCT COUNT( * ) - 49 FROM tab0 WHERE NOT - 48 < NULL
----
-49

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT COUNT ( * ) - 49 FROM tab0 WHERE NOT - 48 < NULL
----
-49

query III rowsort
SELECT * FROM tab2 WHERE - 66 + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 + col0 col0 FROM tab1
----
145
179
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT + SUM( - 29 ) + COUNT( + col0 ) FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-4771
SELECT + SUM ( - 29 ) + COUNT ( + col0 ) FROM tab2
----
-84

query I rowsort
SELECT col0 * - col1 + col1 AS col2 FROM tab0
----
-1134
-1806
-96

query I rowsort
SELECT ALL col0 - 31 FROM tab1 AS cor0 WHERE NOT + col2 * + 58 + + col1 < ( 39 + - ( - col2 ) )
----
20
54
60

query III rowsort
SELECT * FROM tab1 WHERE col1 + col0 / col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 30 AS col1, col1 AS col1 FROM tab1
----
30
14
30
47
30
5

query I rowsort
SELECT - - 76 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 38 col2, - col0 FROM tab2 AS cor0
----
-38
-46
-38
-64
-38
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT DISTINCT 2 * + + 25 - COUNT( * ) FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4778
SELECT DISTINCT 2 * + + 25 - COUNT ( * ) FROM tab2 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4779
SELECT * FROM tab1 AS cor0 WHERE - 16 BETWEEN NULL AND ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4779
SELECT * FROM tab1 AS cor0 WHERE - 16 BETWEEN NULL AND ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL + - col0 - + col1 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4781
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( - col2 AS DECIMAL ) / + col2 < ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4781
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( - col2 AS REAL ) / + col2 < ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4782
SELECT ALL 28 - + - SUM( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4782
SELECT ALL 28 - + - SUM ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 + - 73 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4783
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 + - 73 IS NULL
----
-3

query I rowsort
SELECT DISTINCT - 90 * + 88 AS col1 FROM tab0 AS cor0
----
-7920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4785
SELECT + ( - CAST( NULL AS SIGNED ) ) / COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4785
SELECT + ( - CAST ( NULL AS INTEGER ) ) / COUNT ( * ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4786
SELECT ALL + CAST( - col1 AS SIGNED ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL + CAST ( - col1 AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT ALL 82 * col0 FROM tab1 WHERE ( + col1 ) IS NOT NULL
----
4182
6970
7462

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT ( - - MIN( ALL 16 ) ) AS col2 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-4788
SELECT ( - - MIN ( ALL 16 ) ) AS col2 FROM tab0 AS cor0
----
16

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4790
SELECT DISTINCT - 37 DIV - 44 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4790
SELECT DISTINCT - 37 / - 44 FROM tab0 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 col2 FROM tab1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT ALL ( COUNT( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT + col2 - - + col1 - 55 AS col2 FROM tab2 cor0 WHERE NOT ( 21 ) IS NOT NULL
----

query I rowsort
SELECT ( + + col1 ) AS col1 FROM tab2 cor0
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > ( - col0 + + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4796
SELECT - - COUNT( * ) + CAST( - 0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4796
SELECT - - COUNT ( * ) + CAST ( - 0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL 53 + - 41 FROM tab1 cor0 WHERE col1 IS NOT NULL
----
12
12
12

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4798
SELECT ALL 25 + + col1 + + CAST( 42 AS DECIMAL ) * + - ( - CAST( NULL AS SIGNED ) ) * 73 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL 25 + + col1 + + CAST ( 42 AS REAL ) * + - ( - CAST ( NULL AS INTEGER ) ) * 73 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4799
SELECT ALL SUM( ALL CAST( - - col0 AS SIGNED ) ) + MAX( DISTINCT - - col2 ) AS col2 FROM tab1
----
323

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL SUM ( ALL CAST ( - - col0 AS INTEGER ) ) + MAX ( DISTINCT - - col2 ) AS col2 FROM tab1
----
323

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4800
SELECT 92 * col1 FROM tab2 WHERE ( - CAST( + col0 AS DECIMAL ) ) * + col2 + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4800
SELECT 92 * col1 FROM tab2 WHERE ( - CAST ( + col0 AS REAL ) ) * + col2 + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4801
SELECT ALL col2 + + 79 DIV col0 AS col2 FROM tab1
----
59
68
97

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL col2 + + 79 / col0 AS col2 FROM tab1
----
59
68
97

query II rowsort
SELECT + col2 AS col1, + col2 AS col1 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4803
SELECT - SUM( + 66 ) DIV + 13 col2 FROM tab2
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4803
SELECT - SUM ( + 66 ) / + 13 col2 FROM tab2
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-4804
SELECT 11, SUM( ALL 28 ) AS col2 FROM tab2 AS cor0
----
11
84

skipif mysql # not compatible
query II rowsort label-4804
SELECT 11, SUM ( ALL 28 ) AS col2 FROM tab2 AS cor0
----
11
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT ALL COUNT( col0 ) + 18 AS col1 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL COUNT ( col0 ) + 18 AS col1 FROM tab2 AS cor0
----
21

query I rowsort
SELECT - 89 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT DISTINCT - - COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4807
SELECT DISTINCT - - COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT ALL - 90 - + - 26 FROM tab2
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT MAX( col0 ) + - 90 + - + MAX( ( - col1 ) ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-4809
SELECT MAX ( col0 ) + - 90 + - + MAX ( ( - col1 ) ) FROM tab2
----
36

query III rowsort
SELECT * FROM tab0 WHERE - col1 + - col2 NOT BETWEEN + - col0 AND NULL
----
15
81
47
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 * col0 + + col0 + col1 * - - col0 + + + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 27 * + + 47 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 col0 FROM tab2
----
-88
-88
-88

query I rowsort
SELECT + 52 * + col2 FROM tab2
----
1196
2080
3016

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4815
SELECT - 70 * + col0 * - col1 * - - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4815
SELECT - 70 * + col0 * - col1 * - - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT + MAX( DISTINCT + + col2 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4816
SELECT + MAX ( DISTINCT + + col2 ) AS col2 FROM tab0
----
99

query I rowsort
SELECT DISTINCT - 86 * 2 FROM tab0
----
-172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4818
SELECT + CAST( + 3 AS SIGNED ) FROM tab1
----
3
3
3

skipif mysql # not compatible
query I rowsort label-4818
SELECT + CAST ( + 3 AS INTEGER ) FROM tab1
----
3
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4819
SELECT MIN( + ( + 2 ) ), 74 AS col2 FROM tab1
----
2
74

skipif mysql # not compatible
query II rowsort label-4819
SELECT MIN ( + ( + 2 ) ), 74 AS col2 FROM tab1
----
2
74

query I rowsort
SELECT - col2 * + ( + - col2 ) FROM tab0
----
100
2209
9801

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT DISTINCT - 28 * - MAX( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-1652

skipif mysql # not compatible
query I rowsort label-4822
SELECT DISTINCT - 28 * - MAX ( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-1652

query I rowsort
SELECT ALL - - col2 * + 29 FROM tab0 cor0
----
1363
2871
290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4824
SELECT + col2 FROM tab2 AS cor0 WHERE NOT ( - col2 ) IN ( + col2 * CAST( 33 AS SIGNED ), + ( ( - - ( - 53 ) ) ) )
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4824
SELECT + col2 FROM tab2 AS cor0 WHERE NOT ( - col2 ) IN ( + col2 * CAST ( 33 AS INTEGER ), + ( ( - - ( - 53 ) ) ) )
----
23
40
58

query I rowsort
SELECT ALL - 1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL > + 91
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 + + col0 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 20 + + 27 BETWEEN 65 - + + 37 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4829
SELECT ALL MAX( ALL + - CAST( NULL AS SIGNED ) ) * + 22 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL MAX ( ALL + - CAST ( NULL AS INTEGER ) ) * + 22 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4830
SELECT - col2 AS col0 FROM tab0 cor0 WHERE CAST( - + col0 AS DECIMAL ) IS NOT NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-4830
SELECT - col2 AS col0 FROM tab0 cor0 WHERE CAST ( - + col0 AS REAL ) IS NOT NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4831
SELECT ALL col1 DIV col0 + + ( - CAST( + - col1 AS SIGNED ) ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL col1 / col0 + + ( - CAST ( + - col1 AS INTEGER ) ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT ALL + - COUNT( DISTINCT - + 2 ) + COUNT( * ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL + - COUNT ( DISTINCT - + 2 ) + COUNT ( * ) FROM tab2 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT - 88 + - + 17 * - COUNT( DISTINCT col0 ) FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-4833
SELECT - 88 + - + 17 * - COUNT ( DISTINCT col0 ) FROM tab1
----
-37

query I rowsort
SELECT DISTINCT 15 - - 29 + + 49 AS col0 FROM tab2 WHERE - - col0 IS NOT NULL
----
93

query I rowsort
SELECT ( - col2 ) * - 88 AS col1 FROM tab0 AS cor0
----
4136
8712
880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) col1 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT DISTINCT - 40 AS col0 FROM tab1 cor0 WHERE NOT - col2 > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4838
SELECT - col0 DIV - + col2 + ( + + col2 ) + - col0 + - 65 * + col1 AS col2 FROM tab0 AS cor0
----
-1434
-5233
-63

skipif mysql # not compatible
query I rowsort label-4838
SELECT - col0 / - + col2 + ( + + col2 ) + - col0 + - 65 * + col1 AS col2 FROM tab0 AS cor0
----
-1434
-5233
-63

query I rowsort
SELECT ALL col1 + 12 AS col2 FROM tab2
----
63
79
89

query I rowsort
SELECT ALL - 70 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4841
SELECT + 21, col1 + - col0 DIV CAST( col0 AS SIGNED ) + + col1 AS col0 FROM tab2
----
21
101
21
133
21
153

skipif mysql # not compatible
query II rowsort label-4841
SELECT + 21, col1 + - col0 / CAST ( col0 AS INTEGER ) + + col1 AS col0 FROM tab2
----
21
101
21
133
21
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT + COUNT( + + col1 ) - SUM( + 9 ) * 16 AS col0 FROM tab0
----
-429

skipif mysql # not compatible
query I rowsort label-4842
SELECT + COUNT ( + + col1 ) - SUM ( + 9 ) * 16 AS col0 FROM tab0
----
-429

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT - COUNT( * ) - - SUM( DISTINCT - + 26 ) + - + 7 AS col1 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-4843
SELECT - COUNT ( * ) - - SUM ( DISTINCT - + 26 ) + - + 7 AS col1 FROM tab1
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4844
SELECT - 97 DIV COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4844
SELECT - 97 / COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col0, - 83 * + col0 col1 FROM tab2 AS cor0
----
23
-3818
40
-5312
58
-6225

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4846
SELECT + - CAST( NULL AS SIGNED ), + col0 col1 FROM tab2 cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4846
SELECT + - CAST ( NULL AS INTEGER ), + col0 col1 FROM tab2 cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4847
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 99 NOT IN ( + 78, 35, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4847
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 99 NOT IN ( + 78, 35, - CAST ( NULL AS INTEGER ) )
----

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NOT + 89 IS NOT NULL OR NOT NULL = NULL
----

query I rowsort
SELECT + 61 * - 54 AS col1 FROM tab0
----
-3294
-3294
-3294

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT DISTINCT COUNT( + ( - col0 ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4850
SELECT DISTINCT COUNT ( + ( - col0 ) ) AS col0 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4851
SELECT - col0 * + col0 * + col2 DIV col2 * - - col0 FROM tab2
----
-262144
-421875
-97336

skipif mysql # not compatible
query I rowsort label-4851
SELECT - col0 * + col0 * + col2 / col2 * - - col0 FROM tab2
----
-262144
-421875
-97336

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - 63 * + col0 NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT ALL - 26 * + - ( col0 ) FROM tab2
----
1196
1664
1950

query I rowsort
SELECT + - col0 / 91 FROM tab2 WHERE NOT NULL < + + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4855
SELECT DISTINCT MIN( + col1 ) AS col0, 19 AS col1 FROM tab1
----
5
19

skipif mysql # not compatible
query II rowsort label-4855
SELECT DISTINCT MIN ( + col1 ) AS col0, 19 AS col1 FROM tab1
----
5
19

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4856
SELECT * FROM tab1 WHERE NOT ( ( + - col2 ) ) IN ( - 78 * + 64 + - 63 * + + col2, CAST( + 24 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4856
SELECT * FROM tab1 WHERE NOT ( ( + - col2 ) ) IN ( - 78 * + 64 + - 63 * + + col2, CAST ( + 24 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4857
SELECT CAST( NULL AS SIGNED ) / + COUNT( * ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4857
SELECT CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL 13 + + + 99 FROM tab0
----
112
112
112

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4859
SELECT * FROM tab0 WHERE NULL IN ( + col1 * CAST( + + col1 AS SIGNED ) + col0, - 80 / + col2 + + + col1 + 67 * - + col1 )
----

skipif mysql # not compatible
query III rowsort label-4859
SELECT * FROM tab0 WHERE NULL IN ( + col1 * CAST ( + + col1 AS INTEGER ) + col0, - 80 / + col2 + + + col1 + 67 * - + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4860
SELECT ALL + 0 DIV MIN( DISTINCT 62 ) + - ( + - COUNT( DISTINCT - - col0 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL + 0 / MIN ( DISTINCT 62 ) + - ( + - COUNT ( DISTINCT - - col0 ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - - col1 + - - col2 * - ( + - 93 ) AS col0 FROM tab1 AS cor0
----
5492
6371
8942

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 * - + col0 + 95 col0 FROM tab1 cor0
----
-4787
-4915
-6046

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT 46 + - - COUNT( * ) FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-4863
SELECT 46 + - - COUNT ( * ) FROM tab1 AS cor0
----
49

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( - - col0 * - col1 * - 12 >= NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4865
SELECT ALL - 77 DIV + 23 FROM tab0 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-4865
SELECT ALL - 77 / + 23 FROM tab0 AS cor0
----
-3
-3
-3

query I rowsort
SELECT ALL + ( 22 ) + - - 76 FROM tab1 AS cor0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT ALL - MAX( + 89 ) FROM tab1 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL - MAX ( + 89 ) FROM tab1 AS cor0
----
-89

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + ( + 97 ) * - col0 AND col1
----

query I rowsort
SELECT ALL col1 + - col1 + - 33 AS col0 FROM tab1 cor0
----
-33
-33
-33

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE 8 BETWEEN + 17 + + + col2 AND col1 OR NOT 18 + + col1 < - col1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT ALL MAX( ALL - col0 ) + COUNT( * ) FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL MAX ( ALL - col0 ) + COUNT ( * ) FROM tab2
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4872
SELECT DISTINCT + 57 + + - col2 * - 57 * - + CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4872
SELECT DISTINCT + 57 + + - col2 * - 57 * - + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

query I rowsort
SELECT 14 * - col0 AS col2 FROM tab0
----
-1218
-1358
-210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4874
SELECT ALL + 24 - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL + 24 - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 FROM tab1 WHERE + col2 BETWEEN col0 AND - col0
----

query I rowsort
SELECT DISTINCT col2 + + 33 FROM tab1
----
101
129
92

query III rowsort
SELECT * FROM tab2 WHERE + col2 IN ( + + 79 * - col1 + - - col1 + - col1 )
----

query I rowsort
SELECT DISTINCT + 63 + + + col0 FROM tab2 AS cor0
----
109
127
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4879
SELECT DISTINCT CAST( + + col2 AS SIGNED ) * 72 - col1 FROM tab2 AS cor0 WHERE NOT - 97 NOT BETWEEN NULL AND NULL AND ( + col0 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4879
SELECT DISTINCT CAST ( + + col2 AS INTEGER ) * 72 - col1 FROM tab2 AS cor0 WHERE NOT - 97 NOT BETWEEN NULL AND NULL AND ( + col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 40 * + 13 * 22 col0 FROM tab1 AS cor0
----
11440

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT MIN( ( - col0 ) ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4881
SELECT MIN ( ( - col0 ) ) FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT DISTINCT + + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4882
SELECT DISTINCT + + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4883
SELECT DISTINCT + 42 DIV + col0 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT + 42 / + col0 FROM tab0 AS cor0
----
0
2

query I rowsort
SELECT ALL + - col0 FROM tab2 AS cor0 WHERE col2 <= 59
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + ( - 1 ) AS col2 FROM tab2 cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4886
SELECT DISTINCT + CAST( col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4886
SELECT DISTINCT + CAST ( col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 43 ) col0 FROM tab0 AS cor0
----
-43

query II rowsort
SELECT ALL col1 AS col1, + 0 AS col2 FROM tab2
----
51
0
67
0
77
0

query II rowsort
SELECT 63, + col0 AS col2 FROM tab0
----
63
15
63
87
63
97

query I rowsort
SELECT ALL - 80 + - - col1 FROM tab0 WHERE NOT + 91 / col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4891
SELECT + - col2 + - col1 + ( - + CAST( - + col2 AS SIGNED ) ) FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4891
SELECT + - col2 + - col1 + ( - + CAST ( - + col2 AS INTEGER ) ) FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-4892
SELECT DISTINCT SUM( - col0 ) AS col2, SUM( DISTINCT - col0 ) FROM tab1 cor0
----
-227
-227

skipif mysql # not compatible
query II rowsort label-4892
SELECT DISTINCT SUM ( - col0 ) AS col2, SUM ( DISTINCT - col0 ) FROM tab1 cor0
----
-227
-227

query I rowsort
SELECT - 10 * - 88 FROM tab2
----
880
880
880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 76 * col1 AS col0, - col0 col2 FROM tab0
----
1596
-87
6156
-15
76
-97

query I rowsort
SELECT ALL - - 84 + + ( + + col2 ) AS col1 FROM tab0 AS cor0
----
131
183
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 10 col0 FROM tab1 AS cor0
----
-10

query I rowsort
SELECT 65 FROM tab1 AS cor0 WHERE NULL IS NULL
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT + MIN( DISTINCT + 17 ) FROM tab0 cor0
----
17

skipif mysql # not compatible
query I rowsort label-4898
SELECT + MIN ( DISTINCT + 17 ) FROM tab0 cor0
----
17

query I rowsort
SELECT 82 FROM tab2 cor0 WHERE NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT - MAX( 2 ) - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4900
SELECT - MAX ( 2 ) - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-5

query I rowsort
SELECT + - 65 + - 89 AS col1 FROM tab0 AS cor0
----
-154
-154
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-4902
SELECT col0 DIV 28 + - + col1 FROM tab0 AS cor0
----
-18
-81
2

skipif mysql # not compatible
query I rowsort label-4902
SELECT col0 / 28 + - + col1 FROM tab0 AS cor0
----
-18
-81
2

query II rowsort
SELECT + col1 + col0, col1 FROM tab1 AS cor0
----
138
47
65
14
90
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4904
SELECT ALL + 90 + - CAST( + - 21 AS SIGNED ) FROM tab1
----
111
111
111

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL + 90 + - CAST ( + - 21 AS INTEGER ) FROM tab1
----
111
111
111

query I rowsort
SELECT DISTINCT - 29 * - 45 + + - col0 AS col2 FROM tab0
----
1208
1218
1290

onlyif mysql # DIV for integer division: 
query I rowsort label-4906
SELECT ALL - 14 + col0 DIV 75 col1 FROM tab1
----
-13
-13
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4906
SELECT ALL - 14 + col0 / 75 col1 FROM tab1
----
-13
-13
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT - SUM( DISTINCT + col0 ) * - COUNT( * ) AS col1 FROM tab1 cor0
----
681

skipif mysql # not compatible
query I rowsort label-4907
SELECT - SUM ( DISTINCT + col0 ) * - COUNT ( * ) AS col1 FROM tab1 cor0
----
681

onlyif mysql # DIV for integer division: 
query II rowsort label-4908
SELECT DISTINCT - col2 - + - 31 DIV 96 AS col2, col1 * col2 AS col1 FROM tab2 AS cor0
----
-23
1173
-40
3080
-58
3886

skipif mysql # not compatible
query II rowsort label-4908
SELECT DISTINCT - col2 - + - 31 / 96 AS col2, col1 * col2 AS col1 FROM tab2 AS cor0
----
-23
1173
-40
3080
-58
3886

query II rowsort
SELECT - - 21 AS col1, + col1 * - 95 AS col0 FROM tab2 AS cor0
----
21
-4845
21
-6365
21
-7315

query I rowsort
SELECT + col2 * + col0 + 94 FROM tab2 AS cor0
----
1152
2654
4444

query II rowsort
SELECT - - col1, + 62 AS col0 FROM tab0 AS cor0
----
1
62
21
62
81
62

query I rowsort
SELECT + + col1 * + - 18 FROM tab0 cor0
----
-1458
-18
-378

query I rowsort
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE NOT - 50 >= + ( - col2 )
----

query I rowsort
SELECT ALL - - col1 * - 66 + 1 * + col2 + - 49 FROM tab0 AS cor0
----
-1425
-16
-5348

query I rowsort
SELECT + col2 - col0 FROM tab0 WHERE NOT + + 60 - col2 IS NULL
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4916
SELECT DISTINCT 68 / - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4916
SELECT DISTINCT 68 / - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4917
SELECT + - COUNT( * ) DIV COUNT( * ) AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4917
SELECT + - COUNT ( * ) / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4918
SELECT + - col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT + col2 IN ( + col0 / CAST( - + col2 AS SIGNED ) * - 83, col2 ) )
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4918
SELECT + - col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT + col2 IN ( + col0 / CAST ( - + col2 AS INTEGER ) * - 83, col2 ) )
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT + - COUNT( ALL - col0 ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4919
SELECT + - COUNT ( ALL - col0 ) AS col0 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT - + COUNT( DISTINCT - - col0 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4920
SELECT - + COUNT ( DISTINCT - - col0 ) FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4921
SELECT DISTINCT - + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4921
SELECT DISTINCT - + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 25 FROM tab2 cor0
----
25

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT col1 * + 41 BETWEEN - 81 + - + ( - + col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4924
SELECT DISTINCT * FROM tab1 cor0 WHERE ( - col2 * - col0 + - col2 / - ( - + CAST( NULL AS SIGNED ) ) IN ( col0 ) )
----

skipif mysql # not compatible
query III rowsort label-4924
SELECT DISTINCT * FROM tab1 cor0 WHERE ( - col2 * - col0 + - col2 / - ( - + CAST ( NULL AS INTEGER ) ) IN ( col0 ) )
----

query I rowsort
SELECT - col0 * - - 52 AS col0 FROM tab0 AS cor0
----
-4524
-5044
-780

query I rowsort
SELECT + 9 * - col2 FROM tab2 AS cor0
----
-207
-360
-522

query I rowsort
SELECT ALL 87 * - col0 AS col1 FROM tab1
----
-4437
-7395
-7917

onlyif mysql # DIV for integer division: 
query I rowsort label-4928
SELECT DISTINCT col0 DIV + 34 AS col0 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-4928
SELECT DISTINCT col0 / + 34 AS col0 FROM tab0
----
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT ALL + MAX( ALL + 91 ) FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL + MAX ( ALL + 91 ) FROM tab2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT - + COUNT( * ) * MIN( - col0 ) FROM tab1 WHERE NOT + col0 + + 14 / - 22 IS NULL
----
273

skipif mysql # not compatible
query I rowsort label-4930
SELECT - + COUNT ( * ) * MIN ( - col0 ) FROM tab1 WHERE NOT + col0 + + 14 / - 22 IS NULL
----
273

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 * + col0 IS NOT NULL
----

query II rowsort
SELECT + 13 AS col1, - col2 FROM tab1
----
13
-59
13
-68
13
-96

query I rowsort
SELECT col1 / - col0 * - 82 * - 94 FROM tab0 AS cor0 WHERE NOT col0 <> NULL
----

query I rowsort
SELECT + + 36 * + + col0 FROM tab1 cor0
----
1836
3060
3276

onlyif mysql # DIV for integer division: 
query I rowsort label-4935
SELECT + - col2 * + col2 DIV col2 + 66 - + 9 + col1 * 85 FROM tab2 AS cor0
----
4369
5694
6562

skipif mysql # not compatible
query I rowsort label-4935
SELECT + - col2 * + col2 / col2 + 66 - + 9 + col1 * 85 FROM tab2 AS cor0
----
4369
5694
6562

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4936
SELECT * FROM tab1 AS cor0 WHERE CAST( 13 AS SIGNED ) + - col0 + + col2 >= NULL
----

skipif mysql # not compatible
query III rowsort label-4936
SELECT * FROM tab1 AS cor0 WHERE CAST ( 13 AS INTEGER ) + - col0 + + col2 >= NULL
----

query I rowsort
SELECT DISTINCT 83 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT + - COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-4938
SELECT + - COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 16 col0 FROM tab2, tab0 cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT + 27 + + + COUNT( * ) * - - 50 + + 17 AS col1 FROM tab2
----
194

skipif mysql # not compatible
query I rowsort label-4940
SELECT + 27 + + + COUNT ( * ) * - - 50 + + 17 AS col1 FROM tab2
----
194

query I rowsort
SELECT ALL - + 30 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

onlyif mysql # aggregate syntax: 
query II rowsort label-4942
SELECT ALL + COUNT( * ) AS col2, + 48 + 91 FROM tab0
----
3
139

skipif mysql # not compatible
query II rowsort label-4942
SELECT ALL + COUNT ( * ) AS col2, + 48 + 91 FROM tab0
----
3
139

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4943
SELECT + col0 + - + CAST( + col1 AS SIGNED ) - col1, - 55 AS col2 FROM tab1 AS cor0
----
-3
-55
23
-55
75
-55

skipif mysql # not compatible
query II rowsort label-4943
SELECT + col0 + - + CAST ( + col1 AS INTEGER ) - col1, - 55 AS col2 FROM tab1 AS cor0
----
-3
-55
23
-55
75
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT ALL SUM( col0 ) + - COUNT( * ) FROM tab1 AS cor0
----
224

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL SUM ( col0 ) + - COUNT ( * ) FROM tab1 AS cor0
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT + 91 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-4945
SELECT + 91 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-273

query II rowsort
SELECT + col0 AS col2, col1 AS col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT col1 * - col1 FROM tab0 AS cor0 WHERE + 95 * - col0 BETWEEN NULL AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 77, + ( + + 36 ) col2 FROM tab0 AS cor0
----
77
36
77
36
77
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4949
SELECT CAST( + ( col2 ) AS SIGNED ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4949
SELECT CAST ( + ( col2 ) AS INTEGER ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4950
SELECT 3 DIV + + col2 - - col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4950
SELECT 3 / + + col2 - - col1 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4951
SELECT DISTINCT - 53 + - COUNT( * ), - COUNT( * ) * + - COUNT( * ) col2 FROM tab1
----
-56
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4951
SELECT DISTINCT - 53 + - COUNT ( * ), - COUNT ( * ) * + - COUNT ( * ) col2 FROM tab1
----
-56
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 5 * col1 - col0 col1 FROM tab1
----
10954
40
929

query I rowsort
SELECT DISTINCT 26 + + - 19 FROM tab2
----
7

query II rowsort
SELECT - 92 - col1 AS col1, col2 AS col1 FROM tab0
----
-113
10
-173
47
-93
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT + MIN( - col0 ) AS col2 FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4955
SELECT + MIN ( - col0 ) AS col2 FROM tab0 cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4956
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 <= - - col0 + + - CAST( + 15 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4956
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 <= - - col0 + + - CAST ( + 15 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT MIN( + + ( - 10 ) ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 27 AND + + 80 * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-4957
SELECT MIN ( + + ( - 10 ) ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 27 AND + + 80 * 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT DISTINCT - MAX( DISTINCT - - 29 ) FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-4958
SELECT DISTINCT - MAX ( DISTINCT - - 29 ) FROM tab2
----
-29

query I rowsort
SELECT ALL + + 72 * + col1 AS col2 FROM tab1 AS cor0
----
1008
3384
360

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * 20 BETWEEN - - 92 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4961
SELECT DISTINCT - 41 DIV - + col0 FROM tab1 AS cor0 WHERE - 30 < ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT - 41 / - + col0 FROM tab1 AS cor0 WHERE - 30 < ( - col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT ALL - + COUNT( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL - + COUNT ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4963
SELECT DISTINCT + 24 * col0 DIV col0 AS col2 FROM tab1 cor0
----
24

skipif mysql # not compatible
query I rowsort label-4963
SELECT DISTINCT + 24 * col0 / col0 AS col2 FROM tab1 cor0
----
24

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1 * - 57 * + col0 - + 11 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT SUM( DISTINCT - 30 ) AS col2 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4965
SELECT SUM ( DISTINCT - 30 ) AS col2 FROM tab2 AS cor0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4966
SELECT ( col1 ) * - - CAST( + col1 AS SIGNED ) col0 FROM tab0
----
1
441
6561

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4966
SELECT ( col1 ) * - - CAST ( + col1 AS INTEGER ) col0 FROM tab0
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4967
SELECT ( - CAST( NULL AS SIGNED ) ) * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4967
SELECT ( - CAST ( NULL AS INTEGER ) ) * col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + 70 * - + col2 FROM tab1 WHERE NOT ( - 59 <> ( - - 93 ) )
----

query I rowsort
SELECT ALL - 13 * ( - col1 ) FROM tab0
----
1053
13
273

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT ALL + - COUNT( * ) * + 75 AS col1 FROM tab0 cor0
----
-225

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL + - COUNT ( * ) * + 75 AS col1 FROM tab0 cor0
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT ALL 13 + MIN( + ( - + col2 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2 * 81 - col0 + - col2 * col1 * + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL 13 + MIN ( + ( - + col2 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2 * 81 - col0 + - col2 * col1 * + col0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - - col1 <= - col1
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN - col2 + ( - col2 ) * + 72 AND - 71
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT NULL BETWEEN NULL AND NULL )
----

query I rowsort
SELECT + 75 - + 46 + - 19 FROM tab2 AS cor0
----
10
10
10

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 BETWEEN + 36 - 61 AND - 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT - COUNT( * ) + + 61 + - - 85 - - COUNT( * ) FROM tab0 AS cor0
----
146

skipif mysql # not compatible
query I rowsort label-4977
SELECT - COUNT ( * ) + + 61 + - - 85 - - COUNT ( * ) FROM tab0 AS cor0
----
146

query I rowsort
SELECT col1 + - 55 + - col0 * col1 FROM tab1 AS cor0
----
-4285
-475
-755

query I rowsort
SELECT DISTINCT col2 + - col0 * - col0 * - 9 AS col1 FROM tab0
----
-1978
-68111
-84582

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4980
SELECT ALL + CAST( NULL AS SIGNED ), - 68 AS col0 FROM tab0
----
NULL
-68
NULL
-68
NULL
-68

skipif mysql # not compatible
query II rowsort label-4980
SELECT ALL + CAST ( NULL AS INTEGER ), - 68 AS col0 FROM tab0
----
NULL
-68
NULL
-68
NULL
-68

query I rowsort
SELECT ALL ( + col2 ) + - - col1 * + + 79 FROM tab2
----
4052
5351
6123

query I rowsort
SELECT ALL 30 * + - col1 / - col2 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 9 AS col1, + col0 AS col0 FROM tab1
----
-9
51
-9
85
-9
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4984
SELECT DISTINCT MAX( ALL - CAST( + col1 AS SIGNED ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4984
SELECT DISTINCT MAX ( ALL - CAST ( + col1 AS INTEGER ) ) FROM tab1
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 col1 FROM tab0 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - 20 * + + col2 FROM tab1 AS cor0
----
-1180
-1360
-1920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1, + col0 col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT ( COUNT( * ) ) * + 56 + - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-4988
SELECT ( COUNT ( * ) ) * + 56 + - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
171

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col2 ) <> col0 + 17 + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4990
SELECT DISTINCT + col2 DIV col0 AS col0 FROM tab0 WHERE NOT ( - + ( + - col1 ) ) > col0
----
0
1

skipif mysql # not compatible
query I rowsort label-4990
SELECT DISTINCT + col2 / col0 AS col0 FROM tab0 WHERE NOT ( - + ( + - col1 ) ) > col0
----
0
1

query I rowsort
SELECT DISTINCT + col2 * + ( + ( + col1 ) ) + + 93 AS col1 FROM tab1 cor0
----
1437
3289
388

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4992
SELECT DISTINCT + MIN( - col1 ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4992
SELECT DISTINCT + MIN ( - col1 ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT ALL + - 54 * - 14 * - 63 + 54 * COUNT( * ) * - 18 AS col0 FROM tab2 AS cor0
----
-50544

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL + - 54 * - 14 * - 63 + 54 * COUNT ( * ) * - 18 AS col0 FROM tab2 AS cor0
----
-50544

query II rowsort
SELECT + col0 * + 55, col1 * + 20 AS col0 FROM tab2 AS cor0
----
2530
1020
3520
1540
4125
1340

query I rowsort
SELECT - col1 * - - col0 + col1 FROM tab0 AS cor0
----
-1134
-1806
-96

query I rowsort
SELECT + + 42 + + col2 AS col1 FROM tab0 AS cor0
----
141
52
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT - 39 + 47 + - COUNT( * ) * + - 55 FROM tab1 AS cor0
----
173

skipif mysql # not compatible
query I rowsort label-4997
SELECT - 39 + 47 + - COUNT ( * ) * + - 55 FROM tab1 AS cor0
----
173

query I rowsort
SELECT ALL 93 + - 74 FROM tab2
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT DISTINCT COUNT( * ) + + MIN( ALL - col0 ) + + 21 * - COUNT( * ) AS col1 FROM tab2
----
-135

skipif mysql # not compatible
query I rowsort label-4999
SELECT DISTINCT COUNT ( * ) + + MIN ( ALL - col0 ) + + 21 * - COUNT ( * ) AS col1 FROM tab2
----
-135

query I rowsort
SELECT ALL - + col0 + + col0 AS col2 FROM tab0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 28 + - + col2 FROM tab0
----
-19
-71
18

query I rowsort
SELECT ( + + col2 ) * 70 + - - col2 + + col1 AS col0 FROM tab1 AS cor0
----
4194
4875
6830

onlyif mysql # DIV for integer division: 
query I rowsort label-5003
SELECT - - 97 DIV - ( + col2 ) FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-5003
SELECT - - 97 / - ( + col2 ) FROM tab2 AS cor0
----
-1
-2
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5004
SELECT DISTINCT + col0 / + - col2 * + CAST( NULL AS SIGNED ) / - 69 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5004
SELECT DISTINCT + col0 / + - col2 * + CAST ( NULL AS INTEGER ) / - 69 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 9 * ( - - ( - - col1 ) ) AS col0 FROM tab2 AS cor0
----
-459
-603
-693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5006
SELECT - - 91 * + col0 + - 82 - - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
4655
7712
8267

skipif mysql # not compatible
query I rowsort label-5006
SELECT - - 91 * + col0 + - 82 - - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
4655
7712
8267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - col0 ) + - col0 + - - ( - + col2 ), + 28 col0 FROM tab1
----
-198
28
-229
28
-250
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5008
SELECT + + CAST( - 77 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-5008
SELECT + + CAST ( - 77 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-77
-77
-77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col0, + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5010
SELECT ALL + COUNT( * ) - - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5010
SELECT ALL + COUNT ( * ) - - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = ( + col2 )
----

query I rowsort
SELECT DISTINCT + + ( + col2 ) FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5013
SELECT + COUNT( * ) DIV 77 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5013
SELECT + COUNT ( * ) / 77 AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5014
SELECT CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5014
SELECT CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5015
SELECT DISTINCT + ( CAST( + + COUNT( * ) AS SIGNED ) ) AS col1, + COUNT( * ) / CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5015
SELECT DISTINCT + ( CAST ( + + COUNT ( * ) AS INTEGER ) ) AS col1, + COUNT ( * ) / CAST ( NULL AS REAL ) AS col0 FROM tab0
----
3
NULL

query I rowsort
SELECT + ( - 70 ) FROM tab0
----
-70
-70
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5017
SELECT ALL + ( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5017
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE ( NOT + col1 BETWEEN - - col1 AND col0 )
----

query I rowsort
SELECT ALL - + col0 * + - 4 AS col2 FROM tab0 AS cor0
----
348
388
60

query II rowsort
SELECT DISTINCT - - col1 AS col1, + 95 * + 0 AS col0 FROM tab1 AS cor0
----
14
0
47
0
5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT DISTINCT - - SUM( ALL 17 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT - - SUM ( ALL 17 ) AS col1 FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5022
SELECT + CAST( - 65 AS SIGNED ) * + ( 12 ) + COUNT( ALL - ( + col0 ) ), + 59 AS col0 FROM tab2
----
-777
59

skipif mysql # not compatible
query II rowsort label-5022
SELECT + CAST ( - 65 AS INTEGER ) * + ( 12 ) + COUNT ( ALL - ( + col0 ) ), + 59 AS col0 FROM tab2
----
-777
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT DISTINCT + COUNT( * ) * 31 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-5023
SELECT DISTINCT + COUNT ( * ) * 31 FROM tab0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5024
SELECT DISTINCT ( - + CAST( NULL AS SIGNED ) ) * + col0 * + col2 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5024
SELECT DISTINCT ( - + CAST ( NULL AS INTEGER ) ) * + col0 * + col2 AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT - - COUNT( * ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5025
SELECT - - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5026
SELECT - 42 DIV - col2 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5026
SELECT - 42 / - col2 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT ALL - - col2 FROM tab0 AS cor0 WHERE - ( + - 27 ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT - + 58 AS col0 FROM tab0 cor0
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT ALL 33 + - COUNT( * ) FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL 33 + - COUNT ( * ) FROM tab1 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-5030
SELECT DISTINCT COUNT( DISTINCT - - col0 ), - 49 col1 FROM tab2 AS cor0
----
3
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5030
SELECT DISTINCT COUNT ( DISTINCT - - col0 ), - 49 col1 FROM tab2 AS cor0
----
3
-49

query I rowsort
SELECT ALL - col0 * + col2 + + col1 FROM tab0 cor0
----
-624
-849
-9602

query I rowsort
SELECT + ( - + 29 ) AS col2 FROM tab0
----
-29
-29
-29

query I rowsort
SELECT col2 + + 26 + - 5 FROM tab0
----
120
31
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5034
SELECT ALL 38 DIV + + 83 + - 8 FROM tab2
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL 38 / + + 83 + - 8 FROM tab2
----
-8
-8
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5035
SELECT ALL - COUNT( * ) * 4 DIV 9 AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL - COUNT ( * ) * 4 / 9 AS col0 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT ( col0 ) <> 51
----
51

query III rowsort
SELECT * FROM tab1 WHERE + 38 IN ( + 41 + + col1 )
----

query I rowsort
SELECT + col1 + + col1 + + col1 FROM tab2
----
153
201
231

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT - COUNT( * ) * MIN( DISTINCT col1 ) + - 53 AS col0 FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-5039
SELECT - COUNT ( * ) * MIN ( DISTINCT col1 ) + - 53 AS col0 FROM tab0
----
-56

query I rowsort
SELECT col2 * - col0 + - col2 AS col1 FROM tab1 AS cor0
----
-4992
-5074
-6256

query I rowsort
SELECT 64 * - col1 * - col1 FROM tab2 AS cor0
----
166464
287296
379456

query I rowsort
SELECT DISTINCT 10 + + col0 + col1 * col2 * + - 39 FROM tab0
----
-148448
-3754
-8093

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT DISTINCT + + COUNT( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col1 - col1
----
0

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT + + COUNT ( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col1 - col1
----
0

query I rowsort
SELECT ALL + - 92 AS col1 FROM tab2 WHERE + col2 IS NOT NULL
----
-92
-92
-92

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 = - - 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT DISTINCT + ( - COUNT( * ) ) - + MAX( + ( - col1 ) ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5046
SELECT DISTINCT + ( - COUNT ( * ) ) - + MAX ( + ( - col1 ) ) FROM tab1 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT DISTINCT SUM( ALL col1 ) col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5047
SELECT DISTINCT SUM ( ALL col1 ) col1 FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT + - col2 + + + col1 FROM tab2 AS cor0 WHERE - ( - col1 ) * - - 93 * + 94 IS NOT NULL
----
28
37
9

query II rowsort
SELECT ALL + + col2, col1 AS col0 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT - - 22 AS col2 FROM tab1 cor0
----
22
22
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5051
SELECT + col2 * - - CAST( - - 60 AS SIGNED ) FROM tab0 AS cor0
----
2820
5940
600

skipif mysql # not compatible
query I rowsort label-5051
SELECT + col2 * - - CAST ( - - 60 AS INTEGER ) FROM tab0 AS cor0
----
2820
5940
600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + 52 ) col2 FROM tab0 AS cor0
----
-52
-52
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5053
SELECT + 77 DIV - COUNT( * ) FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-5053
SELECT + 77 / - COUNT ( * ) FROM tab2
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5054
SELECT ALL + col0 / + - CAST( NULL AS SIGNED ) AS col2, - 59 AS col2 FROM tab1
----
NULL
-59
NULL
-59
NULL
-59

skipif mysql # not compatible
query II rowsort label-5054
SELECT ALL + col0 / + - CAST ( NULL AS INTEGER ) AS col2, - 59 AS col2 FROM tab1
----
NULL
-59
NULL
-59
NULL
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col1 FROM tab1 WHERE NOT - 68 * - col0 / + col1 - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT ALL COUNT( * ) AS col0 FROM tab2 WHERE NOT + col0 * - + ( col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5056
SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col0 * - + ( col1 ) IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 20 * 68 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * + 47 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
2209
4653
470

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL BETWEEN ( NULL ) AND col1
----

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT - + 6 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * - 55, col0 col1 FROM tab2 WHERE col1 * - 17 IS NOT NULL
----
-2530
46
-3520
64
-4125
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT ALL MAX( DISTINCT - 51 ) FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL MAX ( DISTINCT - 51 ) FROM tab0
----
-51

query II rowsort
SELECT DISTINCT + - 40, - col2 AS col1 FROM tab2 AS cor0
----
-40
-23
-40
-40
-40
-58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 31 ) + col1 + - + 45 * col2 BETWEEN 73 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 + 2 AS col2 FROM tab0 AS cor0
----
17
89
99

query I rowsort
SELECT DISTINCT - col2 + - 49 AS col0 FROM tab0 AS cor0
----
-148
-59
-96

query I rowsort
SELECT - + col2 * col2 + - col2 FROM tab1 cor0
----
-3540
-4692
-9312

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT - ( + + COUNT( * ) ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5068
SELECT - ( + + COUNT ( * ) ) AS col0 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT DISTINCT + MAX( - 42 ) FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-5069
SELECT DISTINCT + MAX ( - 42 ) FROM tab0 AS cor0
----
-42

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT ALL + col2 + + 12 + + col1 AS col1 FROM tab1
----
122
127
76

query I rowsort
SELECT DISTINCT col1 + + ( - col1 ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT ALL - ( 12 ) - + COUNT( * ) AS col0 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL - ( 12 ) - + COUNT ( * ) AS col0 FROM tab1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT DISTINCT - COUNT( DISTINCT + col0 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5074
SELECT DISTINCT - COUNT ( DISTINCT + col0 ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5075
SELECT ALL + - COUNT( * ) AS col2, - COUNT( * ) * - 44 AS col0 FROM tab0 AS cor0
----
-3
132

skipif mysql # not compatible
query II rowsort label-5075
SELECT ALL + - COUNT ( * ) AS col2, - COUNT ( * ) * - 44 AS col0 FROM tab0 AS cor0
----
-3
132

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT + - COUNT( * ) + + COUNT( ALL + - col2 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5076
SELECT + - COUNT ( * ) + + COUNT ( ALL + - col2 ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 BETWEEN + 37 * + - 45 + 18 * 17 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5078
SELECT - - 12 FROM tab0 cor0 WHERE - col2 * + + col1 <> - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5078
SELECT - - 12 FROM tab0 cor0 WHERE - col2 * + + col1 <> - - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT ALL + 17 - SUM( DISTINCT - col1 ) FROM tab0 AS cor0 WHERE NOT - col2 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL + 17 - SUM ( DISTINCT - col1 ) FROM tab0 AS cor0 WHERE NOT - col2 = NULL
----
NULL

query I rowsort
SELECT DISTINCT - col1 * - col1 * + + col1 + col2 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 67 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # DIV for integer division: 
query I rowsort label-5082
SELECT ALL ( + col0 ) DIV + col1 + - col1 DIV + col0 + - + col2 FROM tab1
----
-42
-67
-93

skipif mysql # not compatible
query I rowsort label-5082
SELECT ALL ( + col0 ) / + col1 + - col1 / + col0 + - + col2 FROM tab1
----
-42
-67
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT ALL + SUM( DISTINCT col2 ) * ( COUNT( DISTINCT col0 ) ) FROM tab1 AS cor0
----
669

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL + SUM ( DISTINCT col2 ) * ( COUNT ( DISTINCT col0 ) ) FROM tab1 AS cor0
----
669

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT DISTINCT - 79 * + COUNT( * ) + ( - COUNT( ALL + - 41 ) ) col2 FROM tab0 AS cor0
----
-240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5084
SELECT DISTINCT - 79 * + COUNT ( * ) + ( - COUNT ( ALL + - 41 ) ) col2 FROM tab0 AS cor0
----
-240

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * + col0 * + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col2 * - 96 FROM tab1
----
-5664
-6528
-9216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5087
SELECT 70 DIV + - COUNT( * ) FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-5087
SELECT 70 / + - COUNT ( * ) FROM tab0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-5088
SELECT DISTINCT col0 DIV + 15 AS col0 FROM tab0
----
1
5
6

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT col0 / + 15 AS col0 FROM tab0
----
1
5
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT - 6 * - COUNT( * ) AS col2 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-5089
SELECT - 6 * - COUNT ( * ) AS col2 FROM tab0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5090
SELECT DISTINCT col2 * - - 50 * + col0, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
128000
NULL
217500
NULL
52900
NULL

skipif mysql # not compatible
query II rowsort label-5090
SELECT DISTINCT col2 * - - 50 * + col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
128000
NULL
217500
NULL
52900
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5091
SELECT * FROM tab0 AS cor0 WHERE NOT 96 * - + CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-5091
SELECT * FROM tab0 AS cor0 WHERE NOT 96 * - + CAST ( NULL AS INTEGER ) >= NULL
----

query I rowsort
SELECT ALL - + col0 + + - col0 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5093
SELECT - CAST( MAX( ALL 31 ) AS SIGNED ) FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-5093
SELECT - CAST ( MAX ( ALL 31 ) AS INTEGER ) FROM tab2 AS cor0
----
-31

query I rowsort
SELECT + 8 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 62 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT DISTINCT - ( MIN( DISTINCT + - 93 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
93

skipif mysql # not compatible
query I rowsort label-5096
SELECT DISTINCT - ( MIN ( DISTINCT + - 93 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
93

query I rowsort
SELECT + col0 + 80 FROM tab1 WHERE - col0 IS NOT NULL
----
131
165
171

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 INNER JOIN tab1 AS cor1 ON + 53 NOT BETWEEN NULL AND 40
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT + MIN( DISTINCT col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-5099
SELECT + MIN ( DISTINCT col2 ) AS col1 FROM tab0
----
10

query I rowsort
SELECT + col2 * + 73 AS col0 FROM tab2 AS cor0 WHERE - col1 > 57
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 13 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT DISTINCT - - SUM( ALL - 86 ) AS col1 FROM tab2 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT - - SUM ( ALL - 86 ) AS col1 FROM tab2 AS cor0
----
-258

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 39 < - col0 * - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col2 AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5105
SELECT DISTINCT 78 + - col2 DIV col2 FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5105
SELECT DISTINCT 78 + - col2 / col2 FROM tab0 AS cor0
----
77

query I rowsort
SELECT col1 + + 62 AS col1 FROM tab0
----
143
63
83

query I rowsort
SELECT + ( - + 26 ) + - col2 AS col2 FROM tab0
----
-125
-36
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 74 * 17 + ( + col0 ) col1 FROM tab1
----
120819
74307
85635

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT ALL - 82 - - COUNT( * ) AS col0 FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-5109
SELECT ALL - 82 - - COUNT ( * ) AS col0 FROM tab0
----
-79

query I rowsort
SELECT col2 + 17 AS col2 FROM tab0
----
116
27
64

query I rowsort
SELECT ALL 98 + - + 36 - - col0 FROM tab0
----
149
159
77

query I rowsort
SELECT DISTINCT - 12 * - - col0 * - - col0 AS col0 FROM tab2 AS cor0
----
-25392
-49152
-67500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + + col1 col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5114
SELECT ALL + ( - - col2 ) + - + 6 AS col2, + 11 * CAST( NULL AS SIGNED ) + - 4 AS col2 FROM tab0 AS cor0
----
4
NULL
41
NULL
93
NULL

skipif mysql # not compatible
query II rowsort label-5114
SELECT ALL + ( - - col2 ) + - + 6 AS col2, + 11 * CAST ( NULL AS INTEGER ) + - 4 AS col2 FROM tab0 AS cor0
----
4
NULL
41
NULL
93
NULL

query II rowsort
SELECT col2, col1 + + 24 - + - col0 AS col1 FROM tab1
----
59
114
68
162
96
89

query II rowsort
SELECT ALL col2 AS col1, col0 + col1 FROM tab1
----
59
90
68
138
96
65

query II rowsort
SELECT + col1 AS col1, col0 FROM tab0 cor0
----
1
97
21
87
81
15

query I rowsort
SELECT DISTINCT + + col1 * 30 AS col1 FROM tab1 AS cor0
----
1410
150
420

query I rowsort
SELECT col0 + - - col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN + 4 * - - col2 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col0, col2 * + col2 AS col2 FROM tab2 AS cor0
----
-46
529
-64
1600
-75
3364

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5122
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + + col1 ) + + + col0 * col0 NOT IN ( - 77 * + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / - col0, col1 * + + 59, - col1 * - col2 * - col1 )
----

skipif mysql # not compatible
query III rowsort label-5122
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + + col1 ) + + + col0 * col0 NOT IN ( - 77 * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / - col0, col1 * + + 59, - col1 * - col2 * - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5123
SELECT ALL + 81 DIV 19 DIV + col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5123
SELECT ALL + 81 / 19 / + col1 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 / - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE - 8 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5126
SELECT col2 * + CAST( + - 23 AS SIGNED ) * + col0 FROM tab0
----
-16215
-20010
-220869

skipif mysql # not compatible
query I rowsort label-5126
SELECT col2 * + CAST ( + - 23 AS INTEGER ) * + col0 FROM tab0
----
-16215
-20010
-220869

query I rowsort
SELECT ALL - 49 * + col0 AS col1 FROM tab0
----
-4263
-4753
-735

query I rowsort
SELECT ALL + + col0 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT ALL - 79 * COUNT( * ) * 66 FROM tab2, tab1 cor0
----
-46926

skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL - 79 * COUNT ( * ) * 66 FROM tab2, tab1 cor0
----
-46926

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5130
SELECT DISTINCT - - COUNT( * ) DIV + 69 + + 88 FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-5130
SELECT DISTINCT - - COUNT ( * ) / + 69 + + 88 FROM tab0 AS cor0
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 7 col1 FROM tab1 AS cor0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5132
SELECT + CAST( NULL AS SIGNED ) + + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5132
SELECT + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col0 + + - col0 * 62 * col1 AS col1 FROM tab1 AS cor0
----
-26265
-265083
-44217

query II rowsort
SELECT ALL - col2 AS col2, 10 AS col1 FROM tab2 AS cor0
----
-23
10
-40
10
-58
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5135
SELECT CAST( - COUNT( * ) AS SIGNED ) + - - 82, - 47 col1 FROM tab2 AS cor0
----
79
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5135
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + - - 82, - 47 col1 FROM tab2 AS cor0
----
79
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5136
SELECT DISTINCT + 83 DIV + ( 69 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5136
SELECT DISTINCT + 83 / + ( 69 ) FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 12 col2 FROM tab1 AS cor0
----
-1020
-1092
-612

query I rowsort
SELECT - 60 * + 84 FROM tab1 AS cor0
----
-5040
-5040
-5040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 41 * + - 68 * + - 53 col1 FROM tab2 AS cor0
----
-11082300
-6797144
-9456896

query II rowsort
SELECT - + 21 AS col0, - col1 AS col0 FROM tab2 AS cor0
----
-21
-51
-21
-67
-21
-77

query I rowsort
SELECT DISTINCT col0 * + col2 + - col1 FROM tab0
----
624
849
9602

query I rowsort
SELECT col1 - col2 * - - col2 FROM tab2
----
-1523
-3297
-478

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5143
SELECT + col0 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5143
SELECT + col0 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT DISTINCT - ( COUNT( - col1 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT - ( COUNT ( - col1 ) ) FROM tab2
----
-3

query II rowsort
SELECT col1, col2 * + + col0 FROM tab1
----
14
4896
47
6188
5
5015

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT ALL - 16 * + + MAX( ALL 65 ) FROM tab1
----
-1040

skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL - 16 * + + MAX ( ALL 65 ) FROM tab1
----
-1040

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT ( - MIN( + - 73 ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5147
SELECT ( - MIN ( + - 73 ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 BETWEEN ( col0 ) AND + col1
----

query I rowsort
SELECT ALL + 70 * + + 62 + + col2 FROM tab2 AS cor0
----
4363
4380
4398

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 42 col1, + 66 * + 55 FROM tab1 cor0
----
42
3630
42
3630
42
3630

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( - 45, 51, + - 63 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 57 + - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 89 * + col2 col2, col1 FROM tab2
----
-2047
51
-3560
77
-5162
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT DISTINCT ( + + SUM( - 88 ) ) col1 FROM tab1
----
-264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5154
SELECT DISTINCT ( + + SUM ( - 88 ) ) col1 FROM tab1
----
-264

query I rowsort
SELECT DISTINCT - 1 + 60 + - col1 * - col0 * + col0 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
36184
36473
389266

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT DISTINCT 85 * COUNT( * ) FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-5156
SELECT DISTINCT 85 * COUNT ( * ) FROM tab0
----
255

query III rowsort
SELECT * FROM tab1 WHERE NOT 14 > 91 + + 29
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT - COUNT( * ) + + 85 - + + 52 AS col2 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-5158
SELECT - COUNT ( * ) + + 85 - + + 52 AS col2 FROM tab2
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-5159
SELECT - ( + + col2 ) * col0 * + col2 + - + col2 DIV + 86 FROM tab1
----
-295885
-420784
-470017

skipif mysql # not compatible
query I rowsort label-5159
SELECT - ( + + col2 ) * col0 * + col2 + - + col2 / + 86 FROM tab1
----
-295885
-420784
-470017

query II rowsort
SELECT DISTINCT - + col1 AS col1, 57 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <> - 58
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5161
SELECT DISTINCT + SUM( - + CAST( col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT + SUM ( - + CAST ( col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-199

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN 36 * - 23 AND NULL
----

query I rowsort
SELECT ALL + ( + col2 ) * 76 FROM tab0
----
3572
7524
760

query II rowsort
SELECT - col2, - 42 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5165
SELECT DISTINCT + COUNT( * ) DIV + 70 - + + COUNT( * ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT + COUNT ( * ) / + 70 - + + COUNT ( * ) FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL + 14 AS col0 FROM tab1 cor0
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT - - COUNT( DISTINCT + + 0 ) * + 25 + - 19 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5167
SELECT - - COUNT ( DISTINCT + + 0 ) * + 25 + - 19 FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5168
SELECT ALL + AVG ( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL + AVG ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE ( col0 - col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT + 38 + ( + SUM( ALL - col1 ) ) col0 FROM tab0
----
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5170
SELECT + 38 + ( + SUM ( ALL - col1 ) ) col0 FROM tab0
----
-65

query I rowsort
SELECT 79 * + 38 + - 91 FROM tab0 WHERE NULL NOT BETWEEN 38 AND - + col2
----

query I rowsort
SELECT DISTINCT - 87 + col2 + + - 16 FROM tab0
----
-4
-56
-93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5173
SELECT ALL * FROM tab1 WHERE ( NOT CAST( + - 44 AS SIGNED ) - 72 IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-5173
SELECT ALL * FROM tab1 WHERE ( NOT CAST ( + - 44 AS INTEGER ) - 72 IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN - 65 * - col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT COUNT( * ) * + - 94 col1 FROM tab1 AS cor0
----
-282

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5175
SELECT COUNT ( * ) * + - 94 col1 FROM tab1 AS cor0
----
-282

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5176
SELECT ALL - COUNT( * ) DIV + + MAX( DISTINCT + + col1 ) AS col1, SUM( col0 ) AS col1 FROM tab0 AS cor0
----
0
199

skipif mysql # not compatible
query II rowsort label-5176
SELECT ALL - COUNT ( * ) / + + MAX ( DISTINCT + + col1 ) AS col1, SUM ( col0 ) AS col1 FROM tab0 AS cor0
----
0
199

query I rowsort
SELECT DISTINCT - - 93 AS col2 FROM tab0 AS cor0
----
93

query I rowsort
SELECT DISTINCT - col0 * col2 + 51 AS col1 FROM tab0
----
-654
-819
-9552

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 BETWEEN ( 52 ) AND NULL
----

query I rowsort
SELECT + col2 * + 33 FROM tab2 WHERE 68 IS NOT NULL
----
1320
1914
759

query I rowsort
SELECT DISTINCT - ( - 92 ) FROM tab0 WHERE NULL NOT BETWEEN col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5182
SELECT 79 DIV col2 - 47 FROM tab2
----
-44
-46
-46

skipif mysql # not compatible
query I rowsort label-5182
SELECT 79 / col2 - 47 FROM tab2
----
-44
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT ( COUNT( col0 ) ) AS col2 FROM tab1 WHERE + col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5183
SELECT ( COUNT ( col0 ) ) AS col2 FROM tab1 WHERE + col0 <> NULL
----
0

query I rowsort
SELECT DISTINCT + col0 + col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT DISTINCT ( + MIN( DISTINCT + col1 ) ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5185
SELECT DISTINCT ( + MIN ( DISTINCT + col1 ) ) AS col2 FROM tab0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 * - col0 >= ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE ( - 67 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + col1 - 3 AS col0 FROM tab2
----
48
64
74

query I rowsort
SELECT - 22 * - col2 AS col0 FROM tab1 WHERE ( NULL ) < ( col1 * 99 + - col1 )
----

query I rowsort
SELECT ALL 31 + + ( - col0 - - col0 ) AS col1 FROM tab0
----
31
31
31

query III rowsort
SELECT * FROM tab0 WHERE NOT - 18 > + 20
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) > - col0 - + col2
----

query I rowsort
SELECT - col0 * - 62 FROM tab0
----
5394
6014
930

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT COUNT( * ) + ( - COUNT( * ) ) AS col2 FROM tab0 WHERE - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5194
SELECT COUNT ( * ) + ( - COUNT ( * ) ) AS col2 FROM tab0 WHERE - col0 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 36 ) IN ( 53 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 col0 FROM tab1
----
84
84
84

query I rowsort
SELECT col0 * - 73 + col2 FROM tab2
----
-3335
-4632
-5417

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT + MIN( + 80 ) FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-5198
SELECT + MIN ( + 80 ) FROM tab0
----
80

query I rowsort
SELECT DISTINCT - 98 + - ( col0 ) * - col0 FROM tab0
----
127
7471
9311

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5200
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 18 / 85 + CAST( NULL AS SIGNED ) ) < col0
----

skipif mysql # not compatible
query III rowsort label-5200
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 18 / 85 + CAST ( NULL AS INTEGER ) ) < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT COUNT( DISTINCT 7 ) FROM tab1 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-5201
SELECT COUNT ( DISTINCT 7 ) FROM tab1 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5202
SELECT + ( + 21 ) DIV col2 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5202
SELECT + ( + 21 ) / col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 30 * 94 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 * + 15 + - 29 col1 FROM tab2 AS cor0 WHERE ( 30 * + 74 - col0 ) >= ( 27 * - 10 + col2 )
----
406
406
406

query I rowsort
SELECT - col0 * + 7 + + col0 FROM tab0 AS cor0
----
-522
-582
-90

query I rowsort
SELECT ALL col0 + - ( col2 ) AS col0 FROM tab1
----
-45
23
26

query I rowsort
SELECT 74 + 32 FROM tab0
----
106
106
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5208
SELECT COUNT( * ) * COUNT( * ) + COUNT( CAST( NULL AS SIGNED ) ) * + 69 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-5208
SELECT COUNT ( * ) * COUNT ( * ) + COUNT ( CAST ( NULL AS INTEGER ) ) * + 69 FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5209
SELECT - CAST( NULL AS SIGNED ) * 99 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5209
SELECT - CAST ( NULL AS INTEGER ) * 99 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 - + col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 89 + - col2 FROM tab2 cor0 WHERE + col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( - col2 ) * 11 ) <= ( col0 * + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5213
SELECT + + COUNT( * ) * ( - CAST( COUNT( * ) AS SIGNED ) ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5213
SELECT + + COUNT ( * ) * ( - CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT ALL - + COUNT( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5214
SELECT ALL - + COUNT ( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT ALL ( COUNT( DISTINCT + col1 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL ( COUNT ( DISTINCT + col1 ) ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5216
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE ( 49 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5216
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE ( 49 ) IS NOT NULL
----
NULL

query I rowsort
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5218
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5218
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 2 FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col2 <= 26
----

query I rowsort
SELECT DISTINCT + 45 * + + col2 + - 32 AS col0 FROM tab2
----
1003
1768
2578

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT ALL + 59 * + COUNT( * ) FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL + 59 * + COUNT ( * ) FROM tab0
----
177

query I rowsort
SELECT DISTINCT - 26 * ( col1 ) FROM tab2
----
-1326
-1742
-2002

onlyif mysql # DIV for integer division: 
query I rowsort label-5223
SELECT ALL col1 DIV + 96 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5223
SELECT ALL col1 / + 96 col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT + COUNT( * ) * ( SUM( DISTINCT + col1 ) ) AS col2 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-5224
SELECT + COUNT ( * ) * ( SUM ( DISTINCT + col1 ) ) AS col2 FROM tab1
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT MIN( DISTINCT col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5225
SELECT MIN ( DISTINCT col0 ) AS col0 FROM tab2
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5227
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( CAST( - col1 AS DECIMAL ) * - col1 )
----

skipif mysql # not compatible
query III rowsort label-5227
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( CAST ( - col1 AS REAL ) * - col1 )
----

query I rowsort
SELECT ALL 34 AS col0 FROM tab1 cor0
----
34
34
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5229
SELECT DISTINCT 34 DIV - - col1 AS col1 FROM tab0
----
0
1
34

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT 34 / - - col1 AS col1 FROM tab0
----
0
1
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5230
SELECT 48 DIV + + 36 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5230
SELECT 48 / + + 36 FROM tab2
----
1
1
1

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( col1 ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT ALL - - SUM( + col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL - - SUM ( + col0 ) FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5233
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col0 ) * + col0 + CAST( NULL AS DECIMAL ) > NULL
----

skipif mysql # not compatible
query III rowsort label-5233
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col0 ) * + col0 + CAST ( NULL AS REAL ) > NULL
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE col2 / - col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5235
SELECT DISTINCT COUNT( * ) DIV - + ( 22 ) col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5235
SELECT DISTINCT COUNT ( * ) / - + ( 22 ) col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT DISTINCT SUM( 58 ) AS col1 FROM tab0 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-5236
SELECT DISTINCT SUM ( 58 ) AS col1 FROM tab0 AS cor0
----
174

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE ( col2 ) IS NOT NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( + col0 ) AND 40
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 0 ) >= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5240
SELECT DISTINCT - col2 + col0 + CAST( col1 AS SIGNED ) DIV 49 col1 FROM tab2
----
18
24
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5240
SELECT DISTINCT - col2 + col0 + CAST ( col1 AS INTEGER ) / 49 col1 FROM tab2
----
18
24
25

query III rowsort
SELECT * FROM tab2 WHERE ( - 13 ) BETWEEN NULL AND 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT ( - - COUNT( + - col1 ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5242
SELECT ( - - COUNT ( + - col1 ) ) AS col1 FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE - 17 * - 79 - + col2 NOT BETWEEN + col2 * + col2 + 58 AND NULL
----
64
77
40
75
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5244
SELECT CAST( NULL AS SIGNED ) * col1, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-5244
SELECT CAST ( NULL AS INTEGER ) * col1, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5245
SELECT col2 * + - 44 * + + CAST( NULL AS SIGNED ) + + 41 - - CAST( + CAST( + col1 AS SIGNED ) AS SIGNED ) * - 49 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT col2 * + - 44 * + + CAST ( NULL AS INTEGER ) + + 41 - - CAST ( + CAST ( + col1 AS INTEGER ) AS INTEGER ) * - 49 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5246
SELECT col2 + CAST( NULL AS SIGNED ), - 53 * - + col2 AS col2 FROM tab2
----
NULL
1219
NULL
2120
NULL
3074

skipif mysql # not compatible
query II rowsort label-5246
SELECT col2 + CAST ( NULL AS INTEGER ), - 53 * - + col2 AS col2 FROM tab2
----
NULL
1219
NULL
2120
NULL
3074

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5247
SELECT DISTINCT - MAX( + 58 ) + + COUNT( * ) DIV + 60 AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-5247
SELECT DISTINCT - MAX ( + 58 ) + + COUNT ( * ) / + 60 AS col1 FROM tab2
----
-58

query I rowsort
SELECT DISTINCT + 72 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 10 )
----

query I rowsort
SELECT ALL ( col0 ) AS col2 FROM tab0 cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5250
SELECT DISTINCT - + ( - col0 ) * - 28 * - col2 + + col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5250
SELECT DISTINCT - + ( - col0 ) * - 28 * - col2 + + col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ( ( + ( + ( 24 ) ) ) ) AS col1 FROM tab0 cor0
----
24
24
24

query I rowsort
SELECT + ( 74 ) FROM tab2 cor0
----
74
74
74

query I rowsort
SELECT - col2 * + + col0 * - col1 FROM tab2 cor0
----
197120
291450
53958

query I rowsort
SELECT DISTINCT + + 40 * + 19 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
760

query I rowsort
SELECT col1 / + ( + col2 ) + 22 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 80 - col1 - + 71 AS col0 FROM tab0
----
-12
-72
8

query I rowsort
SELECT DISTINCT + 88 - - 82 FROM tab0
----
170

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 / + col0 < + - ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5259
SELECT ALL - CAST( NULL AS SIGNED ) - 93 + col2 + + 6 + - ( col0 ) + col1 * - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL - CAST ( NULL AS INTEGER ) - 93 + col2 + + 6 + - ( col0 ) + col1 * - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 62 + 82 * - col1 + - col2 AS col2 FROM tab0 AS cor0
----
-119
-1670
-6627

query I rowsort
SELECT col2 + 2 AS col0 FROM tab2 AS cor0
----
25
42
60

onlyif mysql # DIV for integer division: 
query I rowsort label-5262
SELECT DISTINCT - col2 * + col0 + + - col2 + - 93 DIV 38 + - 9 * - col0 FROM tab2 AS cor0
----
-2026
-3735
-669

skipif mysql # not compatible
query I rowsort label-5262
SELECT DISTINCT - col2 * + col0 + + - col2 + - 93 / 38 + - 9 * - col0 FROM tab2 AS cor0
----
-2026
-3735
-669

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE col0 * + 91 / + col1 < NULL
----

query I rowsort
SELECT - 75 * - + col0 FROM tab2 AS cor0
----
3450
4800
5625

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5265
SELECT DISTINCT + col2 * + 5 + CAST( NULL AS DECIMAL ) FROM tab1 cor0 WHERE NOT + col2 / - - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5265
SELECT DISTINCT + col2 * + 5 + CAST ( NULL AS REAL ) FROM tab1 cor0 WHERE NOT + col2 / - - col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5266
SELECT DISTINCT ( ( - COUNT( * ) ) ) DIV ( COUNT( * ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5266
SELECT DISTINCT ( ( - COUNT ( * ) ) ) / ( COUNT ( * ) ) FROM tab0
----
-1

query I rowsort
SELECT ALL + + ( + col1 ) * + col2 * - + col0 AS col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5268
SELECT - 11 * - CAST( - 89 AS SIGNED ) FROM tab0
----
-979
-979
-979

skipif mysql # not compatible
query I rowsort label-5268
SELECT - 11 * - CAST ( - 89 AS INTEGER ) FROM tab0
----
-979
-979
-979

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 12 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN col2 AND ( - col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + - 64 * - + col0 AS col2, 77 col2 FROM tab2 cor0
----
2967
77
4136
77
4858
77

query I rowsort
SELECT - 85 + col1 * - 72 AS col1 FROM tab2 AS cor0
----
-3757
-4909
-5629

query I rowsort
SELECT DISTINCT + - col2 * - col0 AS col2 FROM tab0 AS cor0
----
705
870
9603

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( NOT ( NOT + col2 * 33 IS NOT NULL ) ) )
----

query I rowsort
SELECT + + 54 + + col0 FROM tab2 AS cor0
----
100
118
129

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5276
SELECT ALL - col1 + - - CAST( col0 AS SIGNED ) col0, + 78 * - + col0 FROM tab1 AS cor0
----
37
-3978
44
-7098
80
-6630

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5276
SELECT ALL - col1 + - - CAST ( col0 AS INTEGER ) col0, + 78 * - + col0 FROM tab1 AS cor0
----
37
-3978
44
-7098
80
-6630

query I rowsort
SELECT - - 57 * col0 - + - col0 * 79 + col1 * + 94 FROM tab0 AS cor0 WHERE col0 / + 93 IS NOT NULL
----
13286
13806
9654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5278
SELECT DISTINCT - CAST( col1 AS SIGNED ) + + - col2 FROM tab0
----
-100
-128
-31

skipif mysql # not compatible
query I rowsort label-5278
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + + - col2 FROM tab0
----
-100
-128
-31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5279
SELECT * FROM tab0 WHERE - - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5279
SELECT * FROM tab0 WHERE - - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT DISTINCT + 54 * - COUNT( ALL + col0 ) + - - COUNT( * ) AS col0 FROM tab2
----
-159

skipif mysql # not compatible
query I rowsort label-5280
SELECT DISTINCT + 54 * - COUNT ( ALL + col0 ) + - - COUNT ( * ) AS col0 FROM tab2
----
-159

query I rowsort
SELECT - col1 * col0 FROM tab2 WHERE - col0 IS NULL
----

query II rowsort
SELECT col1, - 57 * - 77 + + 20 * + col1 + - + 29 AS col1 FROM tab0
----
1
4380
21
4780
81
5980

query III rowsort
SELECT * FROM tab2 WHERE - col2 IS NOT NULL OR NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5284
SELECT - col0 - 36 + - + col1 DIV + + ( col1 ) AS col2 FROM tab2 AS cor0
----
-101
-112
-83

skipif mysql # not compatible
query I rowsort label-5284
SELECT - col0 - 36 + - + col1 / + + ( col1 ) AS col2 FROM tab2 AS cor0
----
-101
-112
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT - ( + - 31 ) - - 69 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-5285
SELECT - ( + - 31 ) - - 69 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 16, - col1 + col0 col0 FROM tab1 AS cor0
----
16
37
16
44
16
80

query I rowsort
SELECT - col1 + 37 AS col0 FROM tab1 AS cor0
----
-10
23
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT MIN( ALL - - 55 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
55

skipif mysql # not compatible
query I rowsort label-5288
SELECT MIN ( ALL - - 55 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
55

query I rowsort
SELECT DISTINCT - 5 AS col0 FROM tab0, tab0 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT ALL 35 - - + COUNT( * ) col1 FROM tab2
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5290
SELECT ALL 35 - - + COUNT ( * ) col1 FROM tab2
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-5291
SELECT col2 DIV + + col2 + - col0 FROM tab2
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-5291
SELECT col2 / + + col2 + - col0 FROM tab2
----
-45
-63
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT ALL ( - + COUNT( + 46 ) ) - 6 AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL ( - + COUNT ( + 46 ) ) - 6 AS col2 FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5293
SELECT - CAST( - - MAX( ALL - - col0 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5293
SELECT - CAST ( - - MAX ( ALL - - col0 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL < + col0 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT COUNT( * ) * - ( COUNT( * ) ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5295
SELECT COUNT ( * ) * - ( COUNT ( * ) ) AS col2 FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5296
SELECT * FROM tab1 WHERE NOT - + col1 * - + 47 + CAST( NULL AS SIGNED ) - + 27 * 69 + - col1 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5296
SELECT * FROM tab1 WHERE NOT - + col1 * - + 47 + CAST ( NULL AS INTEGER ) - + 27 * 69 + - col1 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT DISTINCT MIN( DISTINCT - - 7 ) FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-5297
SELECT DISTINCT MIN ( DISTINCT - - 7 ) FROM tab2
----
7

query III rowsort
SELECT * FROM tab0 WHERE NOT 31 * + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5299
SELECT 64 * - - COUNT( ALL CAST( NULL AS SIGNED ) ) col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5299
SELECT 64 * - - COUNT ( ALL CAST ( NULL AS INTEGER ) ) col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - 43 * col1 FROM tab1
----
-2021
-215
-602

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT - COUNT( DISTINCT - + col1 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5301
SELECT - COUNT ( DISTINCT - + col1 ) AS col1 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-5302
SELECT + col0 DIV - 89, + 27 AS col2 FROM tab2
----
0
27
0
27
0
27

skipif mysql # not compatible
query II rowsort label-5302
SELECT + col0 / - 89, + 27 AS col2 FROM tab2
----
0
27
0
27
0
27

query I rowsort
SELECT - 80 * - + col0 * + - col2 FROM tab0
----
-56400
-69600
-768240

query I rowsort
SELECT 40 * - ( - + col0 ) AS col1 FROM tab2
----
1840
2560
3000

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT DISTINCT - COUNT( * ) * + 2 * - 54 col1 FROM tab2 AS cor0
----
324

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5305
SELECT DISTINCT - COUNT ( * ) * + 2 * - 54 col1 FROM tab2 AS cor0
----
324

onlyif mysql # aggregate syntax: 
query II rowsort label-5306
SELECT SUM( - 10 ) AS col2, 7 col2 FROM tab0 AS cor0
----
-30
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5306
SELECT SUM ( - 10 ) AS col2, 7 col2 FROM tab0 AS cor0
----
-30
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5307
SELECT ALL ( col0 ) * - ( CAST( NULL AS SIGNED ) ) + - col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL ( col0 ) * - ( CAST ( NULL AS INTEGER ) ) + - col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5308
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 / CAST( NULL AS SIGNED ) <= col0
----

skipif mysql # not compatible
query III rowsort label-5308
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 / CAST ( NULL AS INTEGER ) <= col0
----

query I rowsort
SELECT ALL - col2 + - col1 AS col2 FROM tab0 AS cor0 WHERE ( 42 - 29 ) IN ( + col1 )
----

query I rowsort
SELECT DISTINCT - 83 * - ( - 92 ) + + col2 FROM tab2 AS cor0
----
-7578
-7596
-7613

query I rowsort
SELECT ALL + col0 + ( - col1 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 44 + 20 AS col1 FROM tab1 AS cor0
----
64

query III rowsort
SELECT * FROM tab1 WHERE ( NULL BETWEEN col2 AND + col2 )
----

query II rowsort
SELECT - col2 + - col0, + 74 AS col0 FROM tab2
----
-104
74
-133
74
-69
74

query I rowsort
SELECT + col2 FROM tab1 WHERE + col0 IS NOT NULL
----
59
68
96

query I rowsort
SELECT - - 94 + col1 - col0 + - + col2 * 37 AS col2 FROM tab0 WHERE + 43 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5317
SELECT col2 + - col0 DIV + col1 AS col1 FROM tab2
----
23
40
57

skipif mysql # not compatible
query I rowsort label-5317
SELECT col2 + - col0 / + col1 AS col1 FROM tab2
----
23
40
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5318
SELECT DISTINCT - 87 * - CAST( - + 16 AS SIGNED ) + - col0 + + col0 FROM tab0
----
-1392

skipif mysql # not compatible
query I rowsort label-5318
SELECT DISTINCT - 87 * - CAST ( - + 16 AS INTEGER ) + - col0 + + col0 FROM tab0
----
-1392

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5319
SELECT DISTINCT 99 * - + 3 AS col2, CAST( NULL AS SIGNED ) FROM tab2
----
-297
NULL

skipif mysql # not compatible
query II rowsort label-5319
SELECT DISTINCT 99 * - + 3 AS col2, CAST ( NULL AS INTEGER ) FROM tab2
----
-297
NULL

query I rowsort
SELECT DISTINCT + col0 - - col1 AS col0 FROM tab2
----
141
142
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5321
SELECT ALL + 23 DIV + 35 + + + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5321
SELECT ALL + 23 / + 35 + + + col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5322
SELECT - + CAST( - - col1 AS SIGNED ) AS col2 FROM tab0 WHERE + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5322
SELECT - + CAST ( - - col1 AS INTEGER ) AS col2 FROM tab0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5323
SELECT * FROM tab0 WHERE NOT + + col2 NOT IN ( CAST( - col2 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-5323
SELECT * FROM tab0 WHERE NOT + + col2 NOT IN ( CAST ( - col2 AS REAL ) )
----

query I rowsort
SELECT DISTINCT - 47 FROM tab1 AS cor0 WHERE ( - ( col2 ) > - 63 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT + COUNT( + 61 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5325
SELECT + COUNT ( + 61 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT ALL + COUNT( DISTINCT + col1 ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL + COUNT ( DISTINCT + col1 ) AS col2 FROM tab0 cor0
----
3

query II rowsort
SELECT col1, 84 * - - col1 * - - col2 FROM tab0 AS cor0
----
1
8316
21
17640
81
319788

query II rowsort
SELECT DISTINCT col1, + 1 FROM tab0 AS cor0
----
1
1
21
1
81
1

query I rowsort
SELECT DISTINCT - ( + + col0 ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5330
SELECT - ( + CAST( NULL AS DECIMAL ) ) 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-5330
SELECT - ( + CAST ( NULL AS REAL ) ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - - col2 ) * + 2 col0, - 43 FROM tab2 cor0
----
116
-43
46
-43
80
-43

query I rowsort
SELECT ALL - - 40 AS col2 FROM tab1 AS cor0
----
40
40
40

query I rowsort
SELECT - ( + col0 ) * + + col2 * 63 + + 97 FROM tab0
----
-44318
-54713
-604892

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < ( + ( col1 ) )
----

query I rowsort
SELECT ALL - col0 * - 91 AS col0 FROM tab0
----
1365
7917
8827

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5336
SELECT ALL - ( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL - ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT DISTINCT + - MAX( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5337
SELECT DISTINCT + - MAX ( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5338
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( col0 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5338
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( col0 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( col0 + 95 ) IS NULL
----

query I rowsort
SELECT 84 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT NULL IS NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE ( - 75 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1 * 48 * - ( + + col2 ) + + col0, col1 FROM tab2
----
-147776
77
-186453
67
-56258
51

query I rowsort
SELECT - - col1 + 74 AS col1 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
155
75
95

query I rowsort
SELECT ALL + 58 * col2 * + 45 - + 92 + + - 9 * - 26 FROM tab0 AS cor0
----
122812
258532
26242

query I rowsort
SELECT DISTINCT + col0 * 93 AS col1 FROM tab1 AS cor0
----
4743
7905
8463

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5346
SELECT + 17 + + col2 + col2 + 8 * + + 95 / 61 * + 48 * + + CAST( NULL AS SIGNED ) * 87 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5346
SELECT + 17 + + col2 + col2 + 8 * + + 95 / 61 * + 48 * + + CAST ( NULL AS INTEGER ) * 87 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5347
SELECT DISTINCT + MAX( ALL - 99 ) * - - CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5347
SELECT DISTINCT + MAX ( ALL - 99 ) * - - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 97 * + 63 + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 30 * - col1 AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5350
SELECT DISTINCT + + 41 AS col1, COUNT( * ) FROM tab1 AS cor0
----
41
3

skipif mysql # not compatible
query II rowsort label-5350
SELECT DISTINCT + + 41 AS col1, COUNT ( * ) FROM tab1 AS cor0
----
41
3

query II rowsort
SELECT + 11 AS col1, - col1 FROM tab0
----
11
-1
11
-21
11
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5352
SELECT ALL - CAST( + 33 AS SIGNED ) + col2 * + col0 AS col2 FROM tab0
----
672
837
9570

skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL - CAST ( + 33 AS INTEGER ) + col2 * + col0 AS col2 FROM tab0
----
672
837
9570

query I rowsort
SELECT ALL col1 * col2 + - 16 FROM tab1
----
1328
279
3180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5354
SELECT ALL CAST( - ( + + col0 ) AS SIGNED ) + + 91 + 0 FROM tab1
----
0
40
6

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL CAST ( - ( + + col0 ) AS INTEGER ) + + 91 + 0 FROM tab1
----
0
40
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5355
SELECT ALL col1 * + col2 - + col0 + col2 * col0 + - - CAST( + + col0 AS SIGNED ) AS col2 FROM tab0
----
1080
4512
9702

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL col1 * + col2 - + col0 + col2 * col0 + - - CAST ( + + col0 AS INTEGER ) AS col2 FROM tab0
----
1080
4512
9702

query I rowsort
SELECT DISTINCT 23 - + 23 FROM tab2
----
0

query I rowsort
SELECT - 62 - col2 AS col0 FROM tab1
----
-121
-130
-158

query I rowsort
SELECT - 11 - col1 - + - col2 FROM tab2
----
-20
-39
-48

query I rowsort
SELECT + col1 * + + col2 - - 4 * - 74 + + col2 FROM tab0 cor0
----
-76
-98
3558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5360
SELECT - + COUNT( * ) DIV + 46 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5360
SELECT - + COUNT ( * ) / + 46 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5361
SELECT DISTINCT COUNT( + 93 ) AS col1, CAST( NULL AS SIGNED ) * 17 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5361
SELECT DISTINCT COUNT ( + 93 ) AS col1, CAST ( NULL AS INTEGER ) * 17 FROM tab0
----
3
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 31 + + col0 + col0 + + ( + col1 ) * + 47 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NULL > col2 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5364
SELECT ALL + col1 AS col1, CAST( + col1 AS SIGNED ) AS col2 FROM tab1
----
14
14
47
47
5
5

skipif mysql # not compatible
query II rowsort label-5364
SELECT ALL + col1 AS col1, CAST ( + col1 AS INTEGER ) AS col2 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT MAX( ALL + + col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5365
SELECT MAX ( ALL + + col1 ) AS col1 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT 2 * - - COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5366
SELECT 2 * - - COUNT ( * ) AS col0 FROM tab0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5367
SELECT ALL col2 * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL col2 * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + 4 FROM tab1
----
-236
-272
-384

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT ALL MAX( + - col0 ) * + - COUNT( * ) + + - COUNT( * ) FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL MAX ( + - col0 ) * + - COUNT ( * ) + + - COUNT ( * ) FROM tab2
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5370
SELECT ALL + COUNT( * ) * + - COUNT( * ) / - + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) / - + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5371
SELECT DISTINCT + 37 AS col2, - COUNT( DISTINCT col2 ) DIV 77 FROM tab0 AS cor0
----
37
0

skipif mysql # not compatible
query II rowsort label-5371
SELECT DISTINCT + 37 AS col2, - COUNT ( DISTINCT col2 ) / 77 FROM tab0 AS cor0
----
37
0

query I rowsort
SELECT 99 * - 80 * - 82 FROM tab0
----
649440
649440
649440

query III rowsort
SELECT * FROM tab1 WHERE + col0 * - + 38 * - ( + + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5374
SELECT + + col1 AS col0 FROM tab2 WHERE NULL IN ( + col2 * 26 + - 84, - col2 + col1, - - col1, - col2 * + col2, + col1, + CAST( + col0 AS DECIMAL ), - + 32 )
----

skipif mysql # not compatible
query I rowsort label-5374
SELECT + + col1 AS col0 FROM tab2 WHERE NULL IN ( + col2 * 26 + - 84, - col2 + col1, - - col1, - col2 * + col2, + col1, + CAST ( + col0 AS REAL ), - + 32 )
----

query I rowsort
SELECT DISTINCT - 49 + - 78 FROM tab2
----
-127

onlyif mysql # aggregate syntax: 
query II rowsort label-5376
SELECT ( + - 19 ) AS col2, - SUM( - col0 ) / + 39 AS col1 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-5376
SELECT ( + - 19 ) AS col2, - SUM ( - col0 ) / + 39 AS col1 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----
-19
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT ALL - + COUNT( * ) + + - 32 FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-5377
SELECT ALL - + COUNT ( * ) + + - 32 FROM tab1 AS cor0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT + ( - COUNT( * ) ) + + + ( - - 4 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5378
SELECT + ( - COUNT ( * ) ) + + + ( - - 4 ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5379
SELECT COUNT( * ) + + - 7 + + 5, COUNT( * ) * - 69 AS col2 FROM tab2
----
1
-207

skipif mysql # not compatible
query II rowsort label-5379
SELECT COUNT ( * ) + + - 7 + + 5, COUNT ( * ) * - 69 AS col2 FROM tab2
----
1
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT - 72 + SUM( ALL 16 ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-5380
SELECT - 72 + SUM ( ALL 16 ) FROM tab1
----
-24

query I rowsort
SELECT ALL - 21 + - col0 AS col1 FROM tab0
----
-108
-118
-36

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 + + col2 = - + 38
----

query III rowsort
SELECT * FROM tab0 WHERE - 33 * + col1 + ( - 71 ) NOT IN ( - 79, + col0, col2, + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, - col1 col0 FROM tab0 WHERE + 84 + col2 + - col0 * + 15 + - 6 IS NOT NULL
----
10
-21
47
-81
99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT DISTINCT - 8 - COUNT( * ) AS col0 FROM tab2 cor0
----
-11

skipif mysql # not compatible
query I rowsort label-5385
SELECT DISTINCT - 8 - COUNT ( * ) AS col0 FROM tab2 cor0
----
-11

query I rowsort
SELECT ALL - 44 AS col0 FROM tab0 cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT - COUNT( - - 62 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5387
SELECT - COUNT ( - - 62 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-5388
SELECT DISTINCT + 43 DIV + col1 AS col1 FROM tab0
----
0
2
43

skipif mysql # not compatible
query I rowsort label-5388
SELECT DISTINCT + 43 / + col1 AS col1 FROM tab0
----
0
2
43

query I rowsort
SELECT DISTINCT - 17 AS col2 FROM tab2, tab1 AS cor0
----
-17

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * - col2 IN ( + col1, col1 / + col1, - col2 + + + col1 - - + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 7 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT ALL - COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT DISTINCT - + MIN( + col0 ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5393
SELECT DISTINCT - + MIN ( + col0 ) AS col0 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT + + MIN( DISTINCT + + col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-5394
SELECT + + MIN ( DISTINCT + + col0 ) FROM tab1 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT - - COUNT( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5395
SELECT - - COUNT ( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT - - COUNT( DISTINCT - - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5396
SELECT - - COUNT ( DISTINCT - - col2 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - + col1 * - + col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query II rowsort label-5398
SELECT ALL + - COUNT( * ) AS col2, + COUNT( * ) FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5398
SELECT ALL + - COUNT ( * ) AS col2, + COUNT ( * ) FROM tab0 AS cor0
----
-3
3

query II rowsort
SELECT ALL - - 77, ( - - col1 ) AS col0 FROM tab0 AS cor0
----
77
1
77
21
77
81

query II rowsort
SELECT ALL + 44 + col1, col1 AS col1 FROM tab2
----
111
67
121
77
95
51

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5402
SELECT COUNT( * ) DIV + + MIN( DISTINCT - 96 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5402
SELECT COUNT ( * ) / + + MIN ( DISTINCT - 96 ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5403
SELECT + - col1 * - - CAST( + 92 AS SIGNED ) + + col2 AS col1 FROM tab1 AS cor0
----
-1192
-401
-4256

skipif mysql # not compatible
query I rowsort label-5403
SELECT + - col1 * - - CAST ( + 92 AS INTEGER ) + + col2 AS col1 FROM tab1 AS cor0
----
-1192
-401
-4256

query II rowsort
SELECT ALL + col0 + - 53, - col0 AS col1 FROM tab2 AS cor0
----
-7
-46
11
-64
22
-75

query I rowsort
SELECT ALL 92 * + 41 + - col0 FROM tab1 AS cor0
----
3681
3687
3721

query I rowsort
SELECT ALL 97 + - col0 FROM tab0
----
0
10
82

query I rowsort
SELECT col2 + + col1 * + col2 FROM tab0
----
198
220
3854

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT ALL - MAX( 97 ) AS col0 FROM tab2 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5408
SELECT ALL - MAX ( 97 ) AS col0 FROM tab2 AS cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5409
SELECT DISTINCT - - AVG ( DISTINCT + ( - col1 ) ) - - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5409
SELECT DISTINCT - - AVG ( DISTINCT + ( - col1 ) ) - - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5410
SELECT + CAST( NULL AS SIGNED ) * 47 + - + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5410
SELECT + CAST ( NULL AS INTEGER ) * 47 + - + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5411
SELECT + CAST( ( col0 ) AS SIGNED ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5411
SELECT + CAST ( ( col0 ) AS INTEGER ) FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5412
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN CAST( - - col0 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5412
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN CAST ( - - col0 AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT MIN( + - col1 ) * - 66 col2 FROM tab2 AS cor0
----
5082

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5413
SELECT MIN ( + - col1 ) * - 66 col2 FROM tab2 AS cor0
----
5082

query I rowsort
SELECT ALL + 80 + - col0 AS col0 FROM tab0 AS cor0
----
-17
-7
65

query II rowsort
SELECT ALL col0 + + col2 - + ( col1 ), col2 + - col2 * 53 AS col2 FROM tab1
----
112
-3536
133
-4992
139
-3068

query I rowsort
SELECT 36 - - + col2 * + ( - col2 ) FROM tab0
----
-2173
-64
-9765

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT DISTINCT - 0 * COUNT( * ) + - 16 FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT - 0 * COUNT ( * ) + - 16 FROM tab2 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT DISTINCT + COUNT( * ) * 94 AS col2 FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-5418
SELECT DISTINCT + COUNT ( * ) * 94 AS col2 FROM tab0
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT ALL - MIN( DISTINCT - 46 ) col1 FROM tab1
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5419
SELECT ALL - MIN ( DISTINCT - 46 ) col1 FROM tab1
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-5420
SELECT + col1 DIV 82 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5420
SELECT + col1 / 82 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT COUNT( DISTINCT + + col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5421
SELECT COUNT ( DISTINCT + + col2 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT - + col1 * - - 95 AS col1 FROM tab2 AS cor0
----
-4845
-6365
-7315

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT DISTINCT + MIN( ALL - - col0 ) col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5423
SELECT DISTINCT + MIN ( ALL - - col0 ) col1 FROM tab1 AS cor0
----
51

query I rowsort
SELECT col1 * - - 99 FROM tab1 cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5425
SELECT ALL - AVG ( ALL - col0 ) * COUNT( ALL + col2 ) + - CAST( + 20 AS SIGNED ) - 55 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5425
SELECT ALL - AVG ( ALL - col0 ) * COUNT ( ALL + col2 ) + - CAST ( + 20 AS INTEGER ) - 55 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( NOT col2 <> - - col0 + col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT ALL - COUNT( * ) + MAX( DISTINCT - - 72 ) + - COUNT( * ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL - COUNT ( * ) + MAX ( DISTINCT - - 72 ) + - COUNT ( * ) FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT + COUNT( * ) * + - 41 FROM tab2
----
-123

skipif mysql # not compatible
query I rowsort label-5428
SELECT + COUNT ( * ) * + - 41 FROM tab2
----
-123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5429
SELECT + CAST( NULL AS SIGNED ) * col1 + + + col2 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5429
SELECT + CAST ( NULL AS INTEGER ) * col1 + + + col2 col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5430
SELECT + COUNT( + - col0 ) * 2 + + COUNT( * ) DIV COUNT( * ) AS col1 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-5430
SELECT + COUNT ( + - col0 ) * 2 + + COUNT ( * ) / COUNT ( * ) AS col1 FROM tab0
----
7

query II rowsort
SELECT DISTINCT col2, - 96 FROM tab1
----
59
-96
68
-96
96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT + SUM( DISTINCT + - 29 ) + + + 31 * + 83 FROM tab0
----
2544

skipif mysql # not compatible
query I rowsort label-5432
SELECT + SUM ( DISTINCT + - 29 ) + + + 31 * + 83 FROM tab0
----
2544

query I rowsort
SELECT DISTINCT - + 5 AS col0 FROM tab1 AS cor0 WHERE NULL > 44
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5434
SELECT DISTINCT col0, + col0 - + col0 DIV 49 DIV col1 AS col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

skipif mysql # not compatible
query II rowsort label-5434
SELECT DISTINCT col0, + col0 - + col0 / 49 / col1 AS col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT ALL - + SUM( - col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL - + SUM ( - col2 ) FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-5436
SELECT COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT ALL - 6 * 9 AS col1 FROM tab1
----
-54
-54
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL col1 - - + col1, col2 col1, - - 85 + + 16 col2 FROM tab1 AS cor0
----
9 values hashing to 0f614f6d718f9ff07ec19f9a55a8e5bf

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT - 4 - - MIN( DISTINCT + col2 ) col1 FROM tab1 AS cor0 WHERE NULL IN ( col2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5439
SELECT - 4 - - MIN ( DISTINCT + col2 ) col1 FROM tab1 AS cor0 WHERE NULL IN ( col2 )
----
NULL

query I rowsort
SELECT + 35 + 21 FROM tab0 cor0
----
56
56
56

query I rowsort
SELECT - col2 AS col0 FROM tab1 cor0 WHERE - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 12 * + col1 col0 FROM tab0
----
12
252
972

onlyif mysql # aggregate syntax: 
query II rowsort label-5443
SELECT ALL - COUNT( * ), + 1 col2 FROM tab1 WHERE NOT ( - 9 ) - + 5 + + col2 * + col1 + + - col0 IS NOT NULL
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5443
SELECT ALL - COUNT ( * ), + 1 col2 FROM tab1 WHERE NOT ( - 9 ) - + 5 + + col2 * + col1 + + - col0 IS NOT NULL
----
0
1

query II rowsort
SELECT + 5, col2 * - + 63 AS col0 FROM tab0
----
5
-2961
5
-6237
5
-630

query II rowsort
SELECT ALL - col1 AS col2, - col0 AS col2 FROM tab1
----
-14
-51
-47
-91
-5
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col1, - col0 col0 FROM tab0
----
1
-97
21
-87
81
-15

query I rowsort
SELECT DISTINCT + col1 * + - col2 * + - 0 - col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - ( - - col0 ) * + + 69 AS col0 FROM tab1 AS cor0
----
-3519
-5865
-6279

onlyif mysql # aggregate syntax: 
query II rowsort label-5449
SELECT ALL 99 AS col1, + COUNT( * ) FROM tab1 AS cor0
----
99
3

skipif mysql # not compatible
query II rowsort label-5449
SELECT ALL 99 AS col1, + COUNT ( * ) FROM tab1 AS cor0
----
99
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > + + col1 - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT MIN( - - col1 ) + COUNT( * ) + + 99 AS col1 FROM tab0 WHERE NOT NULL <= - col2 + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5451
SELECT MIN ( - - col1 ) + COUNT ( * ) + + 99 AS col1 FROM tab0 WHERE NOT NULL <= - col2 + + col2
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 67 > + col1 + 49 + col0 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 68 * ( - 23 ) + + col2 < - - 80 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT DISTINCT - - COUNT( * ) * + - 7 AS col1 FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-5454
SELECT DISTINCT - - COUNT ( * ) * + - 7 AS col1 FROM tab2 AS cor0
----
-21

query I rowsort
SELECT - ( 63 ) + + + 65 + col2 * 67 FROM tab1 AS cor0
----
3955
4558
6434

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT + COUNT( * ) * - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5456
SELECT + COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9

query I rowsort
SELECT col2 * col2 AS col1 FROM tab2 WHERE NULL IS NULL
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT DISTINCT COUNT( * ) + - - 7 AS col1 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-5458
SELECT DISTINCT COUNT ( * ) + - - 7 AS col1 FROM tab2
----
10

query I rowsort
SELECT ALL 21 * col2 + col1 - 51 FROM tab2
----
1234
483
866

onlyif mysql # DIV for integer division: 
query I rowsort label-5460
SELECT - 86 DIV col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5460
SELECT - 86 / col0 FROM tab1
----
-1
-1
0

query I rowsort
SELECT col1 * + 14 AS col2 FROM tab2
----
1078
714
938

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN col1 AND 34 + - 26
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5463
SELECT DISTINCT - col1 * + col1 + + 75 + + + col2 - + 74 + + + col1 AS col2, - CAST( NULL AS SIGNED ) * - col0 FROM tab0 AS cor0
----
-409
NULL
-6432
NULL
100
NULL

skipif mysql # not compatible
query II rowsort label-5463
SELECT DISTINCT - col1 * + col1 + + 75 + + + col2 - + 74 + + + col1 AS col2, - CAST ( NULL AS INTEGER ) * - col0 FROM tab0 AS cor0
----
-409
NULL
-6432
NULL
100
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT DISTINCT - MIN( DISTINCT - 0 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT - MIN ( DISTINCT - 0 ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT DISTINCT SUM( DISTINCT 70 ) + COUNT( ALL + + 80 ) AS col2 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-5465
SELECT DISTINCT SUM ( DISTINCT 70 ) + COUNT ( ALL + + 80 ) AS col2 FROM tab0 AS cor0
----
73

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL IN ( col0, + col2 / - 22 ) ) OR NOT NULL NOT IN ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col2, + col0 AS col1 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query II rowsort label-5468
SELECT ALL + + ( - COUNT( * ) ) AS col2, 59 FROM tab1 AS cor0
----
-3
59

skipif mysql # not compatible
query II rowsort label-5468
SELECT ALL + + ( - COUNT ( * ) ) AS col2, 59 FROM tab1 AS cor0
----
-3
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 42 col2 FROM tab2 cor0
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-5470
SELECT DISTINCT 30, COUNT( * ) AS col1 FROM tab0 AS cor0
----
30
3

skipif mysql # not compatible
query II rowsort label-5470
SELECT DISTINCT 30, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
30
3

query I rowsort
SELECT col2 + - 92 + + + col0 * - col1 * - 80 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col0 AS col2, + 33 AS col0 FROM tab1 AS cor0
----
-51
33
-85
33
-91
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT DISTINCT - SUM( + 39 ) AS col1 FROM tab2 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-5473
SELECT DISTINCT - SUM ( + 39 ) AS col1 FROM tab2 AS cor0
----
-117

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT - MAX( ALL - + col0 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5475
SELECT - MAX ( ALL - + col0 ) AS col1 FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5476
SELECT 54 / + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5476
SELECT 54 / + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + + col1 AS col2 FROM tab1
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5478
SELECT ALL * FROM tab2 cor0 WHERE - CAST( NULL AS SIGNED ) * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5478
SELECT ALL * FROM tab2 cor0 WHERE - CAST ( NULL AS INTEGER ) * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 36 * - col2 * - + col1 FROM tab0 AS cor0
----
137052
3564
7560

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT + - MAX( ALL - ( - - col1 ) ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5480
SELECT + - MAX ( ALL - ( - - col1 ) ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT + col1 + - 86 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5482
SELECT ALL + + ( 69 ), COUNT( ALL - 99 ) AS col2 FROM tab0 AS cor0
----
69
3

skipif mysql # not compatible
query II rowsort label-5482
SELECT ALL + + ( 69 ), COUNT ( ALL - 99 ) AS col2 FROM tab0 AS cor0
----
69
3

query I rowsort
SELECT + ( - 40 ) FROM tab0 AS cor0
----
-40
-40
-40

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 85 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + - - col0 + + col0 AS col0, + col0 col2 FROM tab2 AS cor0
----
41
46
51
64
83
75

query II rowsort
SELECT DISTINCT col0 AS col1, - 0 + - + col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

query I rowsort
SELECT + + 41 AS col1 FROM tab2 cor0
----
41
41
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5488
SELECT DISTINCT col1 + - CAST( + 46 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-25
-45
35

skipif mysql # not compatible
query I rowsort label-5488
SELECT DISTINCT col1 + - CAST ( + 46 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-25
-45
35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5489
SELECT DISTINCT - col0 + col1 + + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5489
SELECT DISTINCT - col0 + col1 + + CAST ( NULL AS REAL ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5490
SELECT ALL + COUNT( ALL + col2 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL + COUNT ( ALL + col2 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - - col2 col0 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT ALL 1 + - - COUNT( * ) AS col0 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL 1 + - - COUNT ( * ) AS col0 FROM tab1
----
4

query I rowsort
SELECT ALL col1 * 82 + col2 + col0 FROM tab1
----
1295
4013
554

onlyif mysql # DIV for integer division: 
query I rowsort label-5494
SELECT ALL 29 DIV - ( + - col1 ) AS col2 FROM tab0
----
0
1
29

skipif mysql # not compatible
query I rowsort label-5494
SELECT ALL 29 / - ( + - col1 ) AS col2 FROM tab0
----
0
1
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5495
SELECT col0 + 4 * + + CAST( + + ( - col2 ) AS SIGNED ) + - col2 * col1 + + col1 FROM tab0
----
-142
-3899
-397

skipif mysql # not compatible
query I rowsort label-5495
SELECT col0 + 4 * + + CAST ( + + ( - col2 ) AS INTEGER ) + - col2 * col1 + + col1 FROM tab0
----
-142
-3899
-397

onlyif mysql # DIV for integer division: 
query I rowsort label-5496
SELECT DISTINCT + 34 DIV - - col0 AS col1 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-5496
SELECT DISTINCT + 34 / - - col0 AS col1 FROM tab0
----
0
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5497
SELECT + ( - + MAX( - col1 ) ) / CAST( NULL AS SIGNED ) / - 49 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5497
SELECT + ( - + MAX ( - col1 ) ) / CAST ( NULL AS INTEGER ) / - 49 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5498
SELECT ALL - col1 * - + col0 + - col1 DIV 19 FROM tab0
----
1211
1826
97

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL - col1 * - + col0 + - col1 / 19 FROM tab0
----
1211
1826
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT COUNT( DISTINCT 56 ) - + 9 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-5499
SELECT COUNT ( DISTINCT 56 ) - + 9 FROM tab0
----
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5500
SELECT DISTINCT ( CAST( - 47 AS DECIMAL ) ) * - col2 AS col1 FROM tab0 AS cor0 WHERE - 90 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5500
SELECT DISTINCT ( CAST ( - 47 AS REAL ) ) * - col2 AS col1 FROM tab0 AS cor0 WHERE - 90 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 / + col1 IS NULL
----

query I rowsort
SELECT - col0 * - 88 AS col2 FROM tab0 AS cor0
----
1320
7656
8536

query I rowsort
SELECT ALL - - col2 * + + 30 * col2 AS col0 FROM tab0 AS cor0
----
294030
3000
66270

query II rowsort
SELECT DISTINCT 5 AS col2, col0 FROM tab1 AS cor0
----
5
51
5
85
5
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT + + COUNT( + 14 ) FROM tab1 WHERE NOT - - col2 * col1 <> - 54
----
0

skipif mysql # not compatible
query I rowsort label-5505
SELECT + + COUNT ( + 14 ) FROM tab1 WHERE NOT - - col2 * col1 <> - 54
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT ALL + COUNT( - - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL + COUNT ( - - col1 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5507
SELECT + col0 + + col1 / 73 AS col1 FROM tab2 WHERE NOT 81 * + CAST( NULL AS SIGNED ) * 39 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5507
SELECT + col0 + + col1 / 73 AS col1 FROM tab2 WHERE NOT 81 * + CAST ( NULL AS INTEGER ) * 39 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 6 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - 5 / col1 + + + 69
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( - ( col0 ) ) - - col2 + - 43 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 92 + + col0 + + - col1 AS col2 FROM tab0
----
158
188
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5511
SELECT + 21 * - COUNT( 76 ) + COUNT( * ) + COUNT( * ) / - CAST( NULL AS SIGNED ) / - - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5511
SELECT + 21 * - COUNT ( 76 ) + COUNT ( * ) + COUNT ( * ) / - CAST ( NULL AS INTEGER ) / - - COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT ALL - + 65 * col1 + + - col0 FROM tab0 AS cor0
----
-1452
-162
-5280

query I rowsort
SELECT + - col1 + col2 + col2 FROM tab0 AS cor0
----
-1
13
197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5514
SELECT ALL + - col0 * - - CAST( - col0 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
2652
7310
8372

skipif mysql # not compatible
query I rowsort label-5514
SELECT ALL + - col0 * - - CAST ( - col0 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
2652
7310
8372

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT - - COUNT( * ) * COUNT( * ) * + - ( - 31 ) * - COUNT( - - ( - col2 ) ) + + MAX( - - col1 ) AS col0 FROM tab1 AS cor0
----
-790

skipif mysql # not compatible
query I rowsort label-5515
SELECT - - COUNT ( * ) * COUNT ( * ) * + - ( - 31 ) * - COUNT ( - - ( - col2 ) ) + + MAX ( - - col1 ) AS col0 FROM tab1 AS cor0
----
-790

query I rowsort
SELECT ALL 38 + - + ( col2 ) AS col1 FROM tab1
----
-21
-30
-58

query III rowsort
SELECT * FROM tab0 WHERE + + col2 = col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 + 4 AS col1 FROM tab0
----
-11
-83
-93

query I rowsort
SELECT DISTINCT + col2 + + - col0 AS col0 FROM tab2
----
-17
-23
-24

query II rowsort
SELECT ALL 91, col1 AS col2 FROM tab1
----
91
14
91
47
91
5

query I rowsort
SELECT col2 - col1 * ( col2 ) + + col0 + - col0 AS col1 FROM tab0
----
-200
-3760
0

query III rowsort
SELECT * FROM tab1 WHERE + + ( - + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT - 78 - + - COUNT( * ) FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-5523
SELECT - 78 - + - COUNT ( * ) FROM tab0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT + - MAX( - col0 ) - - 25 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-5524
SELECT + - MAX ( - col0 ) - - 25 FROM tab0 AS cor0
----
40

query I rowsort
SELECT + + col2 - - col1 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT ALL - col0 + + - 32 FROM tab2 AS cor0 WHERE NOT NULL <= + + 38 AND NOT NULL NOT BETWEEN NULL AND + ( 72 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 34 * col0 col1 FROM tab1 AS cor0
----
-1734
-2890
-3094

query I rowsort
SELECT DISTINCT - 92 * + col1 FROM tab1 AS cor0
----
-1288
-4324
-460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5529
SELECT ALL - MIN( DISTINCT + col1 ) * - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL - MIN ( DISTINCT + col1 ) * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5530
SELECT DISTINCT - col1 DIV - 87 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5530
SELECT DISTINCT - col1 / - 87 FROM tab0
----
0

query II rowsort
SELECT + col0 AS col2, col1 FROM tab2 AS cor0 WHERE - + col2 / - col1 + ( - col1 ) IS NULL OR NOT col0 IS NULL
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5532
SELECT col1 col2 FROM tab0 AS cor0 WHERE NOT NULL = CAST( 20 AS SIGNED ) * + - 28 + col0 * + 37 + - - col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5532
SELECT col1 col2 FROM tab0 AS cor0 WHERE NOT NULL = CAST ( 20 AS INTEGER ) * + - 28 + col0 * + 37 + - - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT ALL - COUNT( DISTINCT 30 ) * + + ( - - COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL - COUNT ( DISTINCT 30 ) * + + ( - - COUNT ( * ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - + 30 * col0 FROM tab2 AS cor0 WHERE NOT - 77 - 9 + + 24 * + 22 NOT BETWEEN NULL AND col0 * col0 + + 22 - - 18 - - col1 - col0 + + col1
----

query I rowsort
SELECT DISTINCT ( + - col0 ) * col1 FROM tab1 AS cor0
----
-425
-4277
-714

query II rowsort
SELECT ALL - col0 AS col0, + 60 FROM tab0 WHERE NOT - col1 + col1 IS NULL
----
-15
60
-87
60
-97
60

onlyif mysql # aggregate syntax: 
query II rowsort label-5538
SELECT ( COUNT( - 32 ) ) AS col1, - 63 AS col2 FROM tab1
----
3
-63

skipif mysql # not compatible
query II rowsort label-5538
SELECT ( COUNT ( - 32 ) ) AS col1, - 63 AS col2 FROM tab1
----
3
-63

query I rowsort
SELECT col1 * - ( 1 ) * ( + col1 ) AS col0 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT + col1 * + + 62 FROM tab0
----
1302
5022
62

onlyif mysql # DIV for integer division: 
query I rowsort label-5541
SELECT ALL 3 DIV + - 66 * - col1 * col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL 3 / + - 66 * - col1 * col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5542
SELECT + col0 DIV + - col1 AS col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5542
SELECT + col0 / + - col1 AS col0 FROM tab2
----
-1
0
0

query I rowsort
SELECT + col1 * - - col0 AS col0 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT col2 + - + col1 AS col2 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT DISTINCT - 19 + + - 15 AS col1 FROM tab2 AS cor0
----
-34

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN - 24 AND 41
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 IN ( - + 61, col0, - + col0, - 72 )
----

query I rowsort
SELECT ALL + col1 + 21 AS col1 FROM tab0
----
102
22
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT ALL - 7 + ( COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
2

skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL - 7 + ( COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT DISTINCT ( - + COUNT( * ) ) + - + 78 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-5550
SELECT DISTINCT ( - + COUNT ( * ) ) + - + 78 FROM tab2
----
-81

query II rowsort
SELECT DISTINCT col2 AS col1, - col0 * - col2 AS col1 FROM tab0 AS cor0
----
10
870
47
705
99
9603

onlyif mysql # aggregate syntax: 
query II rowsort label-5552
SELECT ALL + 28, COUNT( * ) * - 79 + - + 56 col1 FROM tab2 AS cor0
----
28
-293

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5552
SELECT ALL + 28, COUNT ( * ) * - 79 + - + 56 col1 FROM tab2 AS cor0
----
28
-293

onlyif mysql # aggregate syntax: 
query II rowsort label-5553
SELECT DISTINCT + - COUNT( * ) AS col2, + 51 FROM tab2 AS cor0
----
-3
51

skipif mysql # not compatible
query II rowsort label-5553
SELECT DISTINCT + - COUNT ( * ) AS col2, + 51 FROM tab2 AS cor0
----
-3
51

query II rowsort
SELECT DISTINCT + 43 AS col1, col2 AS col2 FROM tab1 AS cor0
----
43
59
43
68
43
96

query I rowsort
SELECT ALL + ( - col0 ) + + 96 FROM tab0 AS cor0
----
-1
81
9

query I rowsort
SELECT + 79 * + + 50 AS col2 FROM tab0 WHERE NULL IS NULL
----
3950
3950
3950

query I rowsort
SELECT col2 + + 51 + + col1 FROM tab1
----
115
161
166

query I rowsort
SELECT DISTINCT + 46 + - + col2 + + col2 AS col0 FROM tab2
----
46

query I rowsort
SELECT DISTINCT + - 53 + + + col2 * - + 48 AS col2 FROM tab0 WHERE col0 IS NOT NULL
----
-2309
-4805
-533

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT COUNT( * ) + COUNT( * ) * - MAX( DISTINCT - col2 ) * + 61 AS col2 FROM tab2
----
4212

skipif mysql # not compatible
query I rowsort label-5560
SELECT COUNT ( * ) + COUNT ( * ) * - MAX ( DISTINCT - col2 ) * + 61 AS col2 FROM tab2
----
4212

query I rowsort
SELECT + ( + - 17 ) + + col1 FROM tab0
----
-16
4
64

query I rowsort
SELECT DISTINCT - 83 - - col1 - + col0 AS col2 FROM tab2 cor0
----
-70
-78
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT DISTINCT - SUM( - 17 ) - - 8 + + MAX( ALL col0 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5563
SELECT DISTINCT - SUM ( - 17 ) - - 8 + + MAX ( ALL col0 ) FROM tab0 AS cor0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - + 44 col2 FROM tab0
----
-3828
-4268
-660

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT DISTINCT + - ( + COUNT( * ) ) FROM tab2 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5565
SELECT DISTINCT + - ( + COUNT ( * ) ) FROM tab2 WHERE NULL > NULL
----
0

query II rowsort
SELECT col2, + ( + - col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT DISTINCT - 50 * COUNT( * ) FROM tab1 cor0
----
-150

skipif mysql # not compatible
query I rowsort label-5567
SELECT DISTINCT - 50 * COUNT ( * ) FROM tab1 cor0
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5568
SELECT ALL - + CAST( NULL AS SIGNED ) * - col2 + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5568
SELECT ALL - + CAST ( NULL AS INTEGER ) * - col2 + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + col2 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL 31 * 27 FROM tab0 AS cor0
----
837
837
837

query I rowsort
SELECT ALL - + col0 * - + col1 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT ALL - 6 * + col0 FROM tab1
----
-306
-510
-546

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT ALL - COUNT( * ) + - + SUM( ALL + + col1 ) FROM tab0
----
-106

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL - COUNT ( * ) + - + SUM ( ALL + + col1 ) FROM tab0
----
-106

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE 73 * + - ( + 12 ) + + + ( + ( col1 ) ) + ( col0 ) <> col1 * - ( - col2 )
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT ALL - SUM( DISTINCT - + col1 ) * - 59 col2 FROM tab2
----
-11505

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5576
SELECT ALL - SUM ( DISTINCT - + col1 ) * - 59 col2 FROM tab2
----
-11505

query I rowsort
SELECT + 72 + 18 * col1 FROM tab0 AS cor0
----
1530
450
90

query I rowsort
SELECT ALL 61 FROM tab1 AS cor0 WHERE NOT NULL = - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5579
SELECT DISTINCT 42 DIV + - col2 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5579
SELECT DISTINCT 42 / + - col2 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5580
SELECT - COUNT( * ) + + CAST( + - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5580
SELECT - COUNT ( * ) + + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-6

query I rowsort
SELECT + col0 * - - col0 AS col1 FROM tab2 cor0
----
2116
4096
5625

onlyif mysql # DIV for integer division: 
query I rowsort label-5582
SELECT + - 51 DIV - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5582
SELECT + - 51 / - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 67 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) * - col1 col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT ALL + col2 + - - col0 AS col1 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT - 0 - + COUNT( + col0 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5586
SELECT - 0 - + COUNT ( + col0 ) AS col0 FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 + - - col2 col0 FROM tab2 AS cor0
----
-39
-57
-74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5588
SELECT ALL + - ( + 14 ) * + COUNT( * ) * - CAST( NULL AS DECIMAL ) col1 FROM tab1 cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5588
SELECT ALL + - ( + 14 ) * + COUNT ( * ) * - CAST ( NULL AS REAL ) col1 FROM tab1 cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT + - COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5589
SELECT + - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + col2 ) col1 FROM tab2 WHERE NOT ( - + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT DISTINCT ( COUNT( - 98 ) ) * + MAX( ALL + 11 ) AS col0 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-5591
SELECT DISTINCT ( COUNT ( - 98 ) ) * + MAX ( ALL + 11 ) AS col0 FROM tab2
----
33

query I rowsort
SELECT ALL 6 * - col1 * - - col2 FROM tab1
----
-1770
-19176
-8064

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5593
SELECT * FROM tab2 WHERE NOT ( col1 * + col2 + CAST( NULL AS SIGNED ) ) < col2 * + + col1 / - col2
----

skipif mysql # not compatible
query III rowsort label-5593
SELECT * FROM tab2 WHERE NOT ( col1 * + col2 + CAST ( NULL AS INTEGER ) ) < col2 * + + col1 / - col2
----

query I rowsort
SELECT ( + - col1 ) FROM tab2 cor0
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * - col0, + col0 * + + 99 col2 FROM tab2 AS cor0
----
-2116
4554
-4096
6336
-5625
7425

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT DISTINCT - MAX( DISTINCT + 41 ) * - + 16 AS col0 FROM tab0 AS cor0
----
656

skipif mysql # not compatible
query I rowsort label-5596
SELECT DISTINCT - MAX ( DISTINCT + 41 ) * - + 16 AS col0 FROM tab0 AS cor0
----
656

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 14 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5598
SELECT DISTINCT - + CAST( + 66 AS SIGNED ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5598
SELECT DISTINCT - + CAST ( + 66 AS INTEGER ) FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE - 79 >= - - 5
----
0

skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE - 79 >= - - 5
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5600
SELECT DISTINCT + - col1 DIV - 42 AS col1, col2 FROM tab1 AS cor0
----
0
59
0
96
1
68

skipif mysql # not compatible
query II rowsort label-5600
SELECT DISTINCT + - col1 / - 42 AS col1, col2 FROM tab1 AS cor0
----
0
59
0
96
1
68

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * - 14 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - 28, col2 FROM tab2
----
-28
23
-28
40
-28
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5603
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + col1 AS col0, 32 + - col1 col2 FROM tab0
----
NULL
-49
NULL
11
NULL
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5603
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + col1 AS col0, 32 + - col1 col2 FROM tab0
----
NULL
-49
NULL
11
NULL
31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5604
SELECT DISTINCT - CAST( col1 AS SIGNED ) DIV + col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-5604
SELECT DISTINCT - CAST ( col1 AS INTEGER ) / + col0 FROM tab2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT ALL + 51 * + - ( - COUNT( * ) ) FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL + 51 * + - ( - COUNT ( * ) ) FROM tab2
----
153

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT + col1 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 NOT IN ( - col0 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT COUNT( * ) + - COUNT( DISTINCT - 24 ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-5608
SELECT COUNT ( * ) + - COUNT ( DISTINCT - 24 ) FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT ( ( MIN( - 39 ) ) ) FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-5609
SELECT ( ( MIN ( - 39 ) ) ) FROM tab0
----
-39

query III rowsort
SELECT * FROM tab2 WHERE NOT + 1 / - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + 18 FROM tab2
----
64
82
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT DISTINCT + 79 * - COUNT( col0 ) AS col1 FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-5612
SELECT DISTINCT + 79 * - COUNT ( col0 ) AS col1 FROM tab1
----
-237

query III rowsort
SELECT * FROM tab0 WHERE 34 * - 94 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE col2 - 71 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 91 ) IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5616
SELECT - MIN( ALL col1 ) DIV - 52 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5616
SELECT - MIN ( ALL col1 ) / - 52 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 12 + col0 col0 FROM tab2
----
658
879
988

onlyif mysql # DIV for integer division: 
query I rowsort label-5618
SELECT 42 DIV 76 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5618
SELECT 42 / 76 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - 19 AS col0 FROM tab1 WHERE col0 - + col2 IS NULL
----

query I rowsort
SELECT ALL - 20 - col1 AS col1 FROM tab1
----
-25
-34
-67

query III rowsort
SELECT * FROM tab0 WHERE NOT 7 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( + col0 - + 75 )
----
0

skipif mysql # not compatible
query I rowsort label-5622
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( + col0 - + 75 )
----
0

query I rowsort
SELECT ALL + col1 * 22 FROM tab2
----
1122
1474
1694

query I rowsort
SELECT + col0 + - col0 * ( - col2 * + 74 - - 64 ) AS col1 FROM tab0
----
51225
58899
704511

query I rowsort
SELECT - 47 * 8 AS col0 FROM tab2
----
-376
-376
-376

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( col1 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT + MIN( DISTINCT - col0 ) * 80 AS col2 FROM tab0
----
-7760

skipif mysql # not compatible
query I rowsort label-5627
SELECT + MIN ( DISTINCT - col0 ) * 80 AS col2 FROM tab0
----
-7760

query I rowsort
SELECT ALL + col0 * - ( - col2 ) AS col0 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT - col1 * + 21 AS col0 FROM tab2
----
-1071
-1407
-1617

query I rowsort
SELECT ALL - ( - ( + col1 ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5631
SELECT ALL - col0 + CAST( + col1 AS SIGNED ) AS col1 FROM tab2 WHERE NOT ( 91 * + col1 ) NOT BETWEEN - CAST( NULL AS SIGNED ) - col1 AND + col0
----

skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL - col0 + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 WHERE NOT ( 91 * + col1 ) NOT BETWEEN - CAST ( NULL AS INTEGER ) - col1 AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5632
SELECT DISTINCT - ( col2 ) DIV + col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-5632
SELECT DISTINCT - ( col2 ) / + col0 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT DISTINCT + MAX( DISTINCT 17 ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-5633
SELECT DISTINCT + MAX ( DISTINCT 17 ) FROM tab1
----
17

query I rowsort
SELECT + col2 * ( + 4 ) FROM tab0 WHERE ( - col0 ) IN ( + col0 + 28 * - ( + col0 / + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT ALL + COUNT( ALL col2 ) * 21 AS col1 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-5635
SELECT ALL + COUNT ( ALL col2 ) * 21 AS col1 FROM tab0 AS cor0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5636
SELECT * FROM tab0 cor0 WHERE NOT 48 IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5636
SELECT * FROM tab0 cor0 WHERE NOT 48 IN ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 95 * col2 AND 60 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT ALL MAX( 74 ) AS col2 FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-5638
SELECT ALL MAX ( 74 ) AS col2 FROM tab2 AS cor0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5639
SELECT + CAST( - 50 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-5639
SELECT + CAST ( - 50 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT ALL SUM( col2 ) / + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 63 * col2 + 62 <> + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL SUM ( col2 ) / + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 63 * col2 + 62 <> + col0
----
NULL

query I rowsort
SELECT ALL + col0 FROM tab1 cor0 WHERE - col0 BETWEEN - col2 * 36 AND + col2
----
51
85
91

query I rowsort
SELECT - 81 * 30 FROM tab0 AS cor0
----
-2430
-2430
-2430

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT COUNT( * ) * COUNT( * ) - + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1
----
72

skipif mysql # not compatible
query I rowsort label-5643
SELECT COUNT ( * ) * COUNT ( * ) - + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1
----
72

query I rowsort
SELECT + 47 * - col2 FROM tab1
----
-2773
-3196
-4512

onlyif mysql # DIV for integer division: 
query I rowsort label-5645
SELECT 68 DIV col0 col2 FROM tab2 WHERE NOT 27 >= ( - 67 * - col2 )
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5645
SELECT 68 / col0 col2 FROM tab2 WHERE NOT 27 >= ( - 67 * - col2 )
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT DISTINCT - ( + MIN( DISTINCT 74 ) ) FROM tab1 cor0 CROSS JOIN tab0
----
-74

skipif mysql # not compatible
query I rowsort label-5646
SELECT DISTINCT - ( + MIN ( DISTINCT 74 ) ) FROM tab1 cor0 CROSS JOIN tab0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT COUNT( DISTINCT - 78 ) * + 60 FROM tab2 AS cor0 CROSS JOIN tab0
----
60

skipif mysql # not compatible
query I rowsort label-5647
SELECT COUNT ( DISTINCT - 78 ) * + 60 FROM tab2 AS cor0 CROSS JOIN tab0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-5648
SELECT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT DISTINCT - 39 * + COUNT( * ) FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-5649
SELECT DISTINCT - 39 * + COUNT ( * ) FROM tab2
----
-117

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( col1 ) NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT DISTINCT COUNT( * ) * 85 AS col2 FROM tab2 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-5651
SELECT DISTINCT COUNT ( * ) * 85 AS col2 FROM tab2 AS cor0
----
255

query I rowsort
SELECT ALL - 25 * - col2 AS col1 FROM tab1 AS cor0
----
1475
1700
2400

query I rowsort
SELECT DISTINCT + 58 AS col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT + - SUM( - 40 ) AS col1 FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-5655
SELECT + - SUM ( - 40 ) AS col1 FROM tab2 AS cor0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT ALL MIN( ALL 32 ) AS col1 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL MIN ( ALL 32 ) AS col1 FROM tab2 AS cor0
----
32

query I rowsort
SELECT DISTINCT col2 + - - col2 + - 46 AS col1 FROM tab0
----
-26
152
48

query I rowsort
SELECT ALL + ( 25 ) * + col2 AS col0 FROM tab2
----
1000
1450
575

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = + 54 + - 1 * 27
----

query I rowsort
SELECT ALL - col2 * - ( col1 ) + col0 AS col2 FROM tab0
----
196
297
3822

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 WHERE NOT NULL BETWEEN + 99 AND ( - col2 / col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT + COUNT( * ) FROM tab1 WHERE ( 84 * col2 ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5662
SELECT + COUNT ( * ) FROM tab1 WHERE ( 84 * col2 ) BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( 90 ) AND NULL
----

query I rowsort
SELECT + ( - - 89 ) * - col0 + col1 * 3 FROM tab0 AS cor0
----
-1092
-7680
-8630

query I rowsort
SELECT 10 * + col1 + col1 AS col0 FROM tab2 AS cor0 WHERE col1 * + col1 + col0 >= NULL
----

query I rowsort
SELECT + col2 + - 54 + col2 FROM tab1 AS cor0
----
138
64
82

query I rowsort
SELECT + ( + 6 ) + + col1 AS col0 FROM tab2
----
57
73
83

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + - 70 - col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5669
SELECT DISTINCT + - CAST( NULL AS SIGNED ), + col0 AS col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-5669
SELECT DISTINCT + - CAST ( NULL AS INTEGER ), + col0 AS col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT - 7 * - + 24 AS col1 FROM tab1 cor0
----
168
168
168

query I rowsort
SELECT + col0 - 62 AS col0 FROM tab1 AS cor0 WHERE + col0 + - col1 NOT IN ( 24 + + 95 ) OR NULL = NULL
----
-11
23
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT + SUM( DISTINCT - 59 ) * - + 94 AS col1 FROM tab0 AS cor0
----
5546

skipif mysql # not compatible
query I rowsort label-5672
SELECT + SUM ( DISTINCT - 59 ) * - + 94 AS col1 FROM tab0 AS cor0
----
5546

query I rowsort
SELECT DISTINCT + 97 - col1 FROM tab2 AS cor0
----
20
30
46

onlyif mysql # aggregate syntax: 
query II rowsort label-5674
SELECT DISTINCT + + 94, COUNT( * ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
94
0

skipif mysql # not compatible
query II rowsort label-5674
SELECT DISTINCT + + 94, COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
94
0

query I rowsort
SELECT + - col2 - 58 * + + 30 - col1 FROM tab0 AS cor0
----
-1771
-1840
-1868

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) >= ( 43 * + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5676
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) >= ( 43 * + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT ALL - + 87 * ( - - MAX( DISTINCT 84 ) ) AS col0 FROM tab0 cor0
----
-7308

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL - + 87 * ( - - MAX ( DISTINCT 84 ) ) AS col0 FROM tab0 cor0
----
-7308

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN + col0 * + col2 + + col2 AND + 10 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5679
SELECT DISTINCT + 84 * + AVG ( ALL + col2 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5679
SELECT DISTINCT + 84 * + AVG ( ALL + col2 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 55 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 * col1 * + col1 col0 FROM tab0
----
29988
446148
68

query I rowsort
SELECT 32 FROM tab0 AS cor0 WHERE NOT ( + col2 + - - 27 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( ( - col2 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT - MIN( + - 53 ) AS col2 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-5684
SELECT - MIN ( + - 53 ) AS col2 FROM tab0 AS cor0
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-5685
SELECT ALL 78 DIV - col1 AS col2 FROM tab0
----
-3
-78
0

skipif mysql # not compatible
query I rowsort label-5685
SELECT ALL 78 / - col1 AS col2 FROM tab0
----
-3
-78
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT DISTINCT COUNT( + ( + 12 ) ) FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-5686
SELECT DISTINCT COUNT ( + ( + 12 ) ) FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT DISTINCT - MAX( - col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-5687
SELECT DISTINCT - MAX ( - col2 ) AS col1 FROM tab2
----
23

query I rowsort
SELECT DISTINCT col1 FROM tab0 cor0 WHERE NOT NULL NOT IN ( ( 44 ), col2 )
----

query I rowsort
SELECT + 8 * + + col1 + col1 AS col2 FROM tab1 AS cor0
----
126
423
45

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( + col2 + 9 + 3 ) NOT BETWEEN + col0 / 77 AND + col1 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT ALL + - COUNT( DISTINCT + col1 ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL + - COUNT ( DISTINCT + col1 ) AS col0 FROM tab0 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > ( col0 )
----

query I rowsort
SELECT DISTINCT 68 + - - col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
127
136
164

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT - COUNT( - 12 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5694
SELECT - COUNT ( - 12 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 91 + - + 30 + - - col0 * 91 BETWEEN 35 AND + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5696
SELECT DISTINCT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5696
SELECT DISTINCT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5697
SELECT + MAX( + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5697
SELECT + MAX ( + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 WHERE NULL < NULL
----
NULL

query I rowsort
SELECT ALL + - col1 + + 21 FROM tab1 cor0
----
-26
16
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5699
SELECT * FROM tab2 WHERE + + col1 BETWEEN ( - CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5699
SELECT * FROM tab2 WHERE + + col1 BETWEEN ( - CAST ( NULL AS INTEGER ) ) AND NULL
----

query I rowsort
SELECT DISTINCT 10 + + col0 AS col2 FROM tab2
----
56
74
85

query I rowsort
SELECT col1 + - + col2 FROM tab2 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT ALL + 69 * - 87 * - - COUNT( * ) AS col1 FROM tab0
----
-18009

skipif mysql # not compatible
query I rowsort label-5702
SELECT ALL + 69 * - 87 * - - COUNT ( * ) AS col1 FROM tab0
----
-18009

query III rowsort
SELECT * FROM tab2 WHERE 0 - 7 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 * - col1 + + 11 >= + + 11
----

query II rowsort
SELECT 92 AS col2, - col0 FROM tab0 AS cor0
----
92
-15
92
-87
92
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5706
SELECT - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5706
SELECT - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 64 + ( - - col2 ) * + col0 FROM tab2 cor0
----
2496
4286
994

query I rowsort
SELECT ALL - col1 - + col0 + + col2 * + + col0 AS col1 FROM tab2 AS cor0
----
2419
4208
961

query I rowsort
SELECT ALL col0 * - - ( + col2 ) AS col1 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT ALL - + col2 - + + 80 FROM tab1 AS cor0
----
-139
-148
-176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) * - 35 col0 FROM tab1 AS cor0
----
1785
2975
3185

query I rowsort
SELECT + + 21 * - 84 + 61 FROM tab1 AS cor0
----
-1703
-1703
-1703

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT DISTINCT + MAX( ALL + + col0 ) * - - MAX( DISTINCT + 28 ) FROM tab1
----
2548

skipif mysql # not compatible
query I rowsort label-5713
SELECT DISTINCT + MAX ( ALL + + col0 ) * - - MAX ( DISTINCT + 28 ) FROM tab1
----
2548

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 37, + ( - - col2 ) + + + 88 col0 FROM tab0
----
37
135
37
187
37
98

query II rowsort
SELECT DISTINCT 49 AS col2, + 60 AS col0 FROM tab2
----
49
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT ALL + MAX( - - 66 ) col1 FROM tab1 WHERE - + 98 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5716
SELECT ALL + MAX ( - - 66 ) col1 FROM tab1 WHERE - + 98 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5717
SELECT * FROM tab0 WHERE NOT ( CAST( + col2 AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5717
SELECT * FROM tab0 WHERE NOT ( CAST ( + col2 AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 18 < ( - 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT + SUM( DISTINCT + + col1 ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-5719
SELECT + SUM ( DISTINCT + + col1 ) AS col1 FROM tab0 AS cor0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5721
SELECT col1 + 19 FROM tab0 WHERE NOT - 14 * CAST( NULL AS SIGNED ) IS NOT NULL
----
100
20
40

skipif mysql # not compatible
query I rowsort label-5721
SELECT col1 + 19 FROM tab0 WHERE NOT - 14 * CAST ( NULL AS INTEGER ) IS NOT NULL
----
100
20
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5722
SELECT ALL + + col1 * 37 * col2 / - 35 / + CAST( NULL AS SIGNED ) AS col1, col2 AS col2 FROM tab0 cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-5722
SELECT ALL + + col1 * 37 * col2 / - 35 / + CAST ( NULL AS INTEGER ) AS col1, col2 AS col2 FROM tab0 cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5723
SELECT - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5723
SELECT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5724
SELECT + + CAST( + col2 AS SIGNED ) + - col1 col1 FROM tab0 AS cor0
----
-11
-34
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5724
SELECT + + CAST ( + col2 AS INTEGER ) + - col1 col1 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT ALL col0 + col2 + - + 15 FROM tab2 AS cor0
----
118
54
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5726
SELECT + col2 + + + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5726
SELECT + col2 + + + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + - 68 + - 40 FROM tab2 AS cor0
----
-50
-68
-85

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( - col0 ) < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT - MIN( 64 ) FROM tab0 cor0
----
-64

skipif mysql # not compatible
query I rowsort label-5729
SELECT - MIN ( 64 ) FROM tab0 cor0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5730
SELECT CAST( + MAX( ALL 97 ) AS SIGNED ) col0 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5730
SELECT CAST ( + MAX ( ALL 97 ) AS INTEGER ) col0 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT SUM( DISTINCT + 47 ) AS col0 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-5731
SELECT SUM ( DISTINCT + 47 ) AS col0 FROM tab0
----
47

query II rowsort
SELECT + col0, col1 AS col1 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT DISTINCT 93 + - + col1 AS col2 FROM tab0
----
12
72
92

query I rowsort
SELECT 62 - + col2 AS col2 FROM tab2 AS cor0
----
22
39
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT ALL + COUNT( DISTINCT - + col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL + COUNT ( DISTINCT - + col2 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT + MIN( + col0 ) + - COUNT( * ) FROM tab1 cor0
----
48

skipif mysql # not compatible
query I rowsort label-5736
SELECT + MIN ( + col0 ) + - COUNT ( * ) FROM tab1 cor0
----
48

query I rowsort
SELECT DISTINCT + - 81 * col2 + + + 37 AS col1 FROM tab1 AS cor0
----
-4742
-5471
-7739

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5738
SELECT + ( col0 ) + + CAST( NULL AS SIGNED ) * - - col2 + - col2 AS col2, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-5738
SELECT + ( col0 ) + + CAST ( NULL AS INTEGER ) * - - col2 + - col2 AS col2, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT DISTINCT + 85 + + + ( col1 ) AS col2 FROM tab0
----
106
166
86

query I rowsort
SELECT + ( + ( col0 ) ) * - 86 FROM tab1 AS cor0
----
-4386
-7310
-7826

query II rowsort
SELECT ALL 7 AS col0, col1 AS col0 FROM tab2 AS cor0
----
7
51
7
67
7
77

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 + - 89 IN ( - 66 - - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL < col2
----

query I rowsort
SELECT ALL - - col0 * + col1 AS col1 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT DISTINCT col2 * - - ( - 71 ) FROM tab1 AS cor0
----
-4189
-4828
-6816

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5746
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * col1 + - CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-5746
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * col1 + - CAST ( NULL AS INTEGER ) >= NULL
----

query I rowsort
SELECT - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT - SUM( ALL 46 ) * SUM( - - 42 ) AS col2 FROM tab2
----
-17388

skipif mysql # not compatible
query I rowsort label-5748
SELECT - SUM ( ALL 46 ) * SUM ( - - 42 ) AS col2 FROM tab2
----
-17388

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT ( - + ( SUM( + - col2 ) ) ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-5749
SELECT ( - + ( SUM ( + - col2 ) ) ) AS col1 FROM tab0
----
156

query I rowsort
SELECT ALL col0 * ( - col0 ) * - col2 FROM tab2
----
163840
326250
48668

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5751
SELECT 19 DIV - - COUNT( DISTINCT - 30 ) col1, - 2 FROM tab0
----
19
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5751
SELECT 19 / - - COUNT ( DISTINCT - 30 ) col1, - 2 FROM tab0
----
19
-2

query II rowsort
SELECT DISTINCT ( - + col0 ), + 10 AS col1 FROM tab2
----
-46
10
-64
10
-75
10

onlyif mysql # DIV for integer division: 
query II rowsort label-5753
SELECT DISTINCT + 2 DIV 99 AS col2, col1 FROM tab0 AS cor0
----
0
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-5753
SELECT DISTINCT + 2 / 99 AS col2, col1 FROM tab0 AS cor0
----
0
1
0
21
0
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5754
SELECT ( + + col0 ) DIV - 38 AS col2 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5754
SELECT ( + + col0 ) / - 38 AS col2 FROM tab2 cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * col1 * - col0 + + 23 NOT IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT ALL MAX( ALL 70 ) * - - 42 FROM tab2 AS cor0
----
2940

skipif mysql # not compatible
query I rowsort label-5756
SELECT ALL MAX ( ALL 70 ) * - - 42 FROM tab2 AS cor0
----
2940

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT + ( - SUM( DISTINCT col2 ) ) - - 34 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-87

skipif mysql # not compatible
query I rowsort label-5757
SELECT + ( - SUM ( DISTINCT col2 ) ) - - 34 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-5758
SELECT ALL + col0 DIV + 81 AS col2 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL + col0 / + 81 AS col2 FROM tab0
----
0
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5759
SELECT DISTINCT + 68 * - + CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5759
SELECT DISTINCT + 68 * - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 84 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5761
SELECT DISTINCT - SUM( DISTINCT + col1 ) DIV - 56 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5761
SELECT DISTINCT - SUM ( DISTINCT + col1 ) / - 56 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT DISTINCT + 38 * + SUM( ALL - + col1 ) AS col1 FROM tab2 AS cor0
----
-7410

skipif mysql # not compatible
query I rowsort label-5762
SELECT DISTINCT + 38 * + SUM ( ALL - + col1 ) AS col1 FROM tab2 AS cor0
----
-7410

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col1 * - - 88 + - 22 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + + - col1 - + 60 + + + 80 IS NOT NULL
----

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE 32 - - + ( + col0 ) NOT BETWEEN ( NULL ) AND + col1 + - - col0
----
-51
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT DISTINCT - COUNT( * ) col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5766
SELECT DISTINCT - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + col0 + + + col2 + ( col1 ) * ( + 73 ) + + col1 FROM tab0 AS cor0
----
1651
270
6056

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 / col1 <= - 95 + + ( 38 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5769
SELECT DISTINCT + + CAST( NULL AS SIGNED ) - + + 39 AS col2 FROM tab1 WHERE col1 <> NULL
----

skipif mysql # not compatible
query I rowsort label-5769
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) - + + 39 AS col2 FROM tab1 WHERE col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT 69 + - - COUNT( * ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-5770
SELECT 69 + - - COUNT ( * ) FROM tab0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5771
SELECT DISTINCT col0 + + col2 - - - CAST( NULL AS SIGNED ) + col2 / 79 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5771
SELECT DISTINCT col0 + + col2 - - - CAST ( NULL AS INTEGER ) + col2 / 79 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT DISTINCT 91 - + + SUM( - col1 ) AS col2 FROM tab2
----
286

skipif mysql # not compatible
query I rowsort label-5772
SELECT DISTINCT 91 - + + SUM ( - col1 ) AS col2 FROM tab2
----
286

query I rowsort
SELECT col0 + + - 59 AS col1 FROM tab1 WHERE ( NULL ) IS NULL
----
-8
26
32

query I rowsort
SELECT - col1 * - - 90 + col2 AS col0 FROM tab2
----
-4567
-5972
-6890

onlyif mysql # DIV for integer division: 
query I rowsort label-5775
SELECT 92 + - - 61 DIV col1 AS col0 FROM tab1
----
104
93
96

skipif mysql # not compatible
query I rowsort label-5775
SELECT 92 + - - 61 / col1 AS col0 FROM tab1
----
104
93
96

query I rowsort
SELECT DISTINCT col2 * + col1 * + 69 + col0 - - col2 * 55 AS col0 FROM tab2
----
214784
271399
82248

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5777
SELECT ALL * FROM tab0 WHERE NOT ( - + col2 ) < CAST( NULL AS SIGNED ) * + 75 + + + col2 / CAST( NULL AS SIGNED ) + - 75
----

skipif mysql # not compatible
query III rowsort label-5777
SELECT ALL * FROM tab0 WHERE NOT ( - + col2 ) < CAST ( NULL AS INTEGER ) * + 75 + + + col2 / CAST ( NULL AS INTEGER ) + - 75
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5778
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( - col2 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5778
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( - col2 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5779
SELECT DISTINCT - + ( + - col1 ) DIV - col0 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5779
SELECT DISTINCT - + ( + - col1 ) / - col0 FROM tab2 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT COUNT( * ) - - 3 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-5780
SELECT COUNT ( * ) - - 3 FROM tab1
----
6

query I rowsort
SELECT + - ( - 62 ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT ALL SUM( - 91 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-819

skipif mysql # not compatible
query I rowsort label-5782
SELECT ALL SUM ( - 91 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5783
SELECT ALL CAST( - 86 AS SIGNED ) AS col0 FROM tab0
----
-86
-86
-86

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL CAST ( - 86 AS INTEGER ) AS col0 FROM tab0
----
-86
-86
-86

query I rowsort
SELECT ALL - - col1 * - 12 AS col1 FROM tab2 WHERE - col0 IS NOT NULL
----
-612
-804
-924

query II rowsort
SELECT + 25 AS col2, - col1 FROM tab2 AS cor0 WHERE NOT + col0 * + col1 IN ( + 67 )
----
25
-51
25
-67
25
-77

query I rowsort
SELECT DISTINCT + + col1 * - 12 * - + col2 AS col1 FROM tab0 AS cor0
----
1188
2520
45684

query I rowsort
SELECT + - 34 FROM tab1 AS cor0 WHERE NOT 50 IS NULL
----
-34
-34
-34

query I rowsort
SELECT DISTINCT - ( + + ( - col1 ) ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT + COUNT( DISTINCT ( - col0 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5789
SELECT + COUNT ( DISTINCT ( - col0 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT ALL - MAX( - ( col2 ) ) col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5790
SELECT ALL - MAX ( - ( col2 ) ) col2 FROM tab1 AS cor0
----
59

query II rowsort
SELECT - + 58 AS col1, + col2 FROM tab1 AS cor0
----
-58
59
-58
68
-58
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT + 29 * + + MIN( ALL col2 ) FROM tab0
----
290

skipif mysql # not compatible
query I rowsort label-5792
SELECT + 29 * + + MIN ( ALL col2 ) FROM tab0
----
290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - + col0 col1 FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5794
SELECT ALL + CAST( - - CAST( + col2 AS DECIMAL ) AS SIGNED ) AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL + CAST ( - - CAST ( + col2 AS REAL ) AS INTEGER ) AS col1 FROM tab2
----
23
40
58

onlyif mysql # DIV for integer division: 
query II rowsort label-5795
SELECT col2, - col1 DIV + col2 FROM tab0
----
10
-2
47
-1
99
0

skipif mysql # not compatible
query II rowsort label-5795
SELECT col2, - col1 / + col2 FROM tab0
----
10
-2
47
-1
99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT DISTINCT - MIN( col1 ) col1 FROM tab1
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5796
SELECT DISTINCT - MIN ( col1 ) col1 FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT ALL + COUNT( * ) * ( 51 ) AS col2 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL + COUNT ( * ) * ( 51 ) AS col2 FROM tab0
----
153

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 # aggregate syntax: 
query I rowsort label-5799
SELECT DISTINCT COUNT( * ) + + 96 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-5799
SELECT DISTINCT COUNT ( * ) + + 96 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
96

query II rowsort
SELECT DISTINCT - - 63, col1 AS col1 FROM tab2 AS cor0
----
63
51
63
67
63
77

query I rowsort
SELECT ALL + + 75 AS col0 FROM tab0 cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT + ( MAX( - - col0 ) ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5802
SELECT + ( MAX ( - - col0 ) ) FROM tab0 AS cor0
----
97

query III rowsort
SELECT * FROM tab2 WHERE + col0 <= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN - + col2 * - ( col1 ) / col2 * - col0 + col1 + + col1 + + 20 AND - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5805
SELECT ALL - 81 DIV + col0 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-5805
SELECT ALL - 81 / + col0 FROM tab0 AS cor0
----
-5
0
0

query I rowsort
SELECT + 14 + + ( col1 ) + 76 FROM tab1 AS cor0
----
104
137
95

query II rowsort
SELECT + col1 * - col0 AS col2, - col0 FROM tab2 AS cor0
----
-2346
-46
-4928
-64
-5025
-75

query I rowsort
SELECT ALL + ( 2 ) AS col2 FROM tab0 AS cor0
----
2
2
2

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 <> ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 31 * - - col2 + col1 FROM tab2 AS cor0
----
1317
1865
764

query I rowsort
SELECT DISTINCT col0 + - 92 FROM tab1
----
-1
-41
-7

query I rowsort
SELECT 61 - + col1 FROM tab2
----
-16
-6
10

query I rowsort
SELECT + col2 - + + 99 FROM tab1
----
-3
-31
-40

query I rowsort
SELECT DISTINCT - + ( col1 ) * + col1 - - ( + col0 ) AS col1 FROM tab0 AS cor0
----
-354
-6546
96

query II rowsort
SELECT ALL col1, 59 AS col2 FROM tab2 AS cor0
----
51
59
67
59
77
59

onlyif mysql # DIV for integer division: 
query I rowsort label-5816
SELECT col1 DIV - - col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5816
SELECT col1 / - - col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
1
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * col0 <> col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5818
SELECT ALL - col0 col1, col0 DIV + - col1 AS col0 FROM tab0 cor0
----
-15
0
-87
-4
-97
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5818
SELECT ALL - col0 col1, col0 / + - col1 AS col0 FROM tab0 cor0
----
-15
0
-87
-4
-97
-97

query II rowsort
SELECT ALL + 67 * + col0 AS col1, + 64 FROM tab2
----
3082
64
4288
64
5025
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT SUM( + + 44 ) FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-5820
SELECT SUM ( + + 44 ) FROM tab0
----
132

query I rowsort
SELECT 48 * - - ( col1 ) AS col1 FROM tab2
----
2448
3216
3696

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT + MIN( ALL 66 ) AS col1 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5823
SELECT + MIN ( ALL 66 ) AS col1 FROM tab0 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT ALL + - MAX( + col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5824
SELECT ALL + - MAX ( + col2 ) AS col1 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 89 > 50
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 24 + col2 / - - 27 FROM tab2 AS cor0 WHERE NOT + col0 * - col0 - - 57 * + - col0 IS NOT NULL
----

query I rowsort
SELECT + col1 + + - col2 AS col2 FROM tab2 WHERE NOT + ( + 38 ) * - + 72 + ( 91 ) + + - 64 > + col2 + + ( 10 )
----
28
37
9

query II rowsort
SELECT 26, 38 AS col1 FROM tab2
----
26
38
26
38
26
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT ALL COUNT( * ) * - - 6 AS col0 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL COUNT ( * ) * - - 6 AS col0 FROM tab1
----
18

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5830
SELECT - CAST( NULL AS SIGNED ) + - col2 * CAST( NULL AS DECIMAL ) * + 51 + + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5830
SELECT - CAST ( NULL AS INTEGER ) + - col2 * CAST ( NULL AS REAL ) * + 51 + + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + + 48 + - col2 AS col1 FROM tab0 cor0
----
-51
1
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT ALL - MAX( + + col0 ) + - 68 * - 54 AS col2 FROM tab1 cor0
----
3581

skipif mysql # not compatible
query I rowsort label-5832
SELECT ALL - MAX ( + + col0 ) + - 68 * - 54 AS col2 FROM tab1 cor0
----
3581

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5833
SELECT DISTINCT + + SUM( DISTINCT - ( + col0 ) ) / + + 4 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5833
SELECT DISTINCT + + SUM ( DISTINCT - ( + col0 ) ) / + + 4 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT ( + + 80 ) * + COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
720

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5834
SELECT ( + + 80 ) * + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
720

query I rowsort
SELECT - + col0 - col2 FROM tab1 WHERE NULL IS NULL
----
-144
-147
-159

query III rowsort
SELECT col2, col2, - 15 FROM tab0
----
9 values hashing to 5bbbbaeffb9f0bcadbd182d78bd78ae5

query II rowsort
SELECT ALL 85, col2 AS col0 FROM tab1 AS cor0
----
85
59
85
68
85
96

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
10
47
99

query I rowsort
SELECT ALL + + 9 - + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT col1 + - - col1 AS col1 FROM tab2 cor0
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT - - COUNT( * ) + - MAX( DISTINCT + ( - col0 ) ) AS col0 FROM tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-5841
SELECT - - COUNT ( * ) + - MAX ( DISTINCT + ( - col0 ) ) AS col0 FROM tab0 cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT COUNT( * ) + - COUNT( * ) * - - MAX( 68 ) * - + 48 * + COUNT( * ) * 85 + + 17 + + 61 - + COUNT( DISTINCT + 33 ) AS col2 FROM tab2
----
2497040

skipif mysql # not compatible
query I rowsort label-5842
SELECT COUNT ( * ) + - COUNT ( * ) * - - MAX ( 68 ) * - + 48 * + COUNT ( * ) * 85 + + 17 + + 61 - + COUNT ( DISTINCT + 33 ) AS col2 FROM tab2
----
2497040

query I rowsort
SELECT ALL 44 * - col0 + - col1 * + col0 + - 92 - + 82 * - col2 * - col2 FROM tab0
----
-13947
-183105
-808139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5844
SELECT col0 + - 59 * + CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5844
SELECT col0 + - 59 * + CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - - 56 * col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 9 * - 2 AS col2 FROM tab0
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT MIN( ALL - col2 ) + - - 82 AS col2 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-5847
SELECT MIN ( ALL - col2 ) + - - 82 AS col2 FROM tab2
----
24

query I rowsort
SELECT DISTINCT + 28 - - ( + 2 ) FROM tab0
----
30

query I rowsort
SELECT DISTINCT - + col0 FROM tab2 WHERE + col2 IS NOT NULL
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 77 <= ( NULL )
----

query I rowsort
SELECT DISTINCT - ( + col1 ) FROM tab1 AS cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT DISTINCT + 69 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + col1 * - 92, 77 FROM tab2 cor0 WHERE NOT col1 BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT - SUM( ALL ( 8 ) ) AS col0 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-5854
SELECT - SUM ( ALL ( 8 ) ) AS col0 FROM tab2 AS cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5855
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5855
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5856
SELECT - 16 FROM tab2 cor0 WHERE NOT 33 * + + CAST( - col2 AS SIGNED ) * - - col0 IS NULL
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-5856
SELECT - 16 FROM tab2 cor0 WHERE NOT 33 * + + CAST ( - col2 AS INTEGER ) * - - col0 IS NULL
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT - + MIN( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5857
SELECT - + MIN ( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT + + MIN( ALL - + col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5858
SELECT + + MIN ( ALL - + col1 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT - AVG ( + 36 ) FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT COUNT( + 44 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5860
SELECT COUNT ( + 44 ) AS col2 FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT + + COUNT( ALL col1 ) - - + MAX( ALL - col0 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-43

skipif mysql # not compatible
query I rowsort label-5862
SELECT + + COUNT ( ALL col1 ) - - + MAX ( ALL - col0 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-43

onlyif mysql # DIV for integer division: 
query II rowsort label-5863
SELECT + col0 DIV + 18 AS col1, 53 - - 35 FROM tab0 AS cor0
----
0
88
4
88
5
88

skipif mysql # not compatible
query II rowsort label-5863
SELECT + col0 / + 18 AS col1, 53 - - 35 FROM tab0 AS cor0
----
0
88
4
88
5
88

query I rowsort
SELECT ALL + - 17 + + 10 + + ( col1 ) AS col1 FROM tab0 AS cor0
----
-6
14
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT DISTINCT COUNT( * ) + - ( + 76 ) AS col0 FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-5865
SELECT DISTINCT COUNT ( * ) + - ( + 76 ) AS col0 FROM tab2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT DISTINCT SUM( DISTINCT 36 ) col0 FROM tab0
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5866
SELECT DISTINCT SUM ( DISTINCT 36 ) col0 FROM tab0
----
36

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5868
SELECT ALL - CAST( col1 AS SIGNED ) - - 36 FROM tab0 AS cor0
----
-45
15
35

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL - CAST ( col1 AS INTEGER ) - - 36 FROM tab0 AS cor0
----
-45
15
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + col2 ) - - + ( + 52 ) + + 23 * - - col1 col1 FROM tab2 AS cor0
----
1248
1651
1863

query I rowsort
SELECT + - col0 * - 91 FROM tab1 AS cor0
----
4641
7735
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT SUM( ALL 19 ) FROM tab2 cor0
----
57

skipif mysql # not compatible
query I rowsort label-5871
SELECT SUM ( ALL 19 ) FROM tab2 cor0
----
57

query I rowsort
SELECT DISTINCT + + col0 + + - col1 AS col1 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT DISTINCT + COUNT( * ) + ( - COUNT( * ) ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5873
SELECT DISTINCT + COUNT ( * ) + ( - COUNT ( * ) ) AS col1 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5874
SELECT - 21 * - col2 + + col2 - - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5874
SELECT - 21 * - col2 + + col2 - - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= - 65 - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5876
SELECT - col2 * col1 DIV - 79 col2 FROM tab2
----
14
38
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5876
SELECT - col2 * col1 / - 79 col2 FROM tab2
----
14
38
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT DISTINCT + MIN( DISTINCT + 23 ) FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-5877
SELECT DISTINCT + MIN ( DISTINCT + 23 ) FROM tab1
----
23

query II rowsort
SELECT - col2 AS col0, ( + col1 ) FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

query I rowsort
SELECT - - col1 * + - col1 * + col1 FROM tab2 AS cor0
----
-132651
-300763
-456533

onlyif mysql # aggregate syntax: 
query II rowsort label-5880
SELECT DISTINCT MIN( DISTINCT - col0 ), COUNT( * ) AS col2 FROM tab0
----
-97
3

skipif mysql # not compatible
query II rowsort label-5880
SELECT DISTINCT MIN ( DISTINCT - col0 ), COUNT ( * ) AS col2 FROM tab0
----
-97
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 72 * + 83 + - + ( - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT + ( - - col0 ) * col1 * 41 + - 76 + + 67 + + + ( - col1 ) FROM tab1 cor0
----
17411
175301
29251

query II rowsort
SELECT ALL 71, col2 - - 89 + - col1 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + ( + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5884
SELECT COUNT( * ) AS col0, 73 AS col2 FROM tab2
----
3
73

skipif mysql # not compatible
query II rowsort label-5884
SELECT COUNT ( * ) AS col0, 73 AS col2 FROM tab2
----
3
73

onlyif mysql # DIV for integer division: 
query I rowsort label-5885
SELECT col2 + + col0 DIV 93 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5885
SELECT col2 + + col0 / 93 FROM tab1
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 52 / 2 + - col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT ALL ( - - COUNT( * ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5887
SELECT ALL ( - - COUNT ( * ) ) AS col0 FROM tab1
----
3

query I rowsort
SELECT col1 * - ( + col2 ) + + - col0 * - col0 + - col0 AS col2 FROM tab2
----
1664
897
952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5889
SELECT DISTINCT 46 * + col0 * - + CAST( + col2 AS SIGNED ) + + ( - - col0 ) * + + col0 FROM tab2
----
-113664
-194475
-46552

skipif mysql # not compatible
query I rowsort label-5889
SELECT DISTINCT 46 * + col0 * - + CAST ( + col2 AS INTEGER ) + + ( - - col0 ) * + + col0 FROM tab2
----
-113664
-194475
-46552

query I rowsort
SELECT 49 * 13 + - 5 AS col2 FROM tab2
----
632
632
632

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5891
SELECT * FROM tab0 AS cor0 WHERE NULL < CAST( NULL AS SIGNED ) + - - col1 * - 92 / - 76 + ( - col1 ) - - 92 + + col0
----

skipif mysql # not compatible
query III rowsort label-5891
SELECT * FROM tab0 AS cor0 WHERE NULL < CAST ( NULL AS INTEGER ) + - - col1 * - 92 / - 76 + ( - col1 ) - - 92 + + col0
----

query I rowsort
SELECT DISTINCT 76 FROM tab1 AS cor0 WHERE NOT + col0 * + + 9 IS NULL
----
76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 12 + + + col0 AS col2 FROM tab2
----
34
52
63

query I rowsort
SELECT - col1 + - col2 + - col2 AS col0 FROM tab2 AS cor0
----
-157
-183
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5897
SELECT * FROM tab0 AS cor0 WHERE CAST( - + 91 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-5897
SELECT * FROM tab0 AS cor0 WHERE CAST ( - + 91 AS INTEGER ) > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 79 * col2 + - col2 AND col0 + + col0
----

query I rowsort
SELECT DISTINCT - - col1 / + + 80 - + - col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5900
SELECT + - 31 + col1 DIV + 68 FROM tab1 AS cor0
----
-31
-31
-31

skipif mysql # not compatible
query I rowsort label-5900
SELECT + - 31 + col1 / + 68 FROM tab1 AS cor0
----
-31
-31
-31

query I rowsort
SELECT + - 43 * col2 + + col0 FROM tab0 AS cor0
----
-2006
-343
-4160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 0 col1, 17 * col2 FROM tab2
----
0
391
0
680
0
986

onlyif mysql # aggregate syntax: 
query II rowsort label-5903
SELECT + 70, COUNT( * ) + - - 91 AS col0 FROM tab0
----
70
94

skipif mysql # not compatible
query II rowsort label-5903
SELECT + 70, COUNT ( * ) + - - 91 AS col0 FROM tab0
----
70
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5904
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT ( NOT col0 + + + CAST( NULL AS SIGNED ) + 23 BETWEEN - col2 AND - col1 + - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT ( NOT col0 + + + CAST ( NULL AS INTEGER ) + 23 BETWEEN - col2 AND - col1 + - col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5905
SELECT - col0 * + + col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5905
SELECT - col0 * + + col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5906
SELECT + COUNT( * ) DIV - + ( + 57 ) * - 10 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5906
SELECT + COUNT ( * ) / - + ( + 57 ) * - 10 FROM tab0
----
0

query I rowsort
SELECT ( - 82 ) * - 30 + + - col2 FROM tab1 WHERE NOT ( NULL IS NULL )
----

query II rowsort
SELECT 40 AS col0, ( + 12 ) AS col0 FROM tab0 AS cor0
----
40
12
40
12
40
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5909
SELECT + COUNT( * ) * + COUNT( ALL + CAST( - 51 AS SIGNED ) ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5909
SELECT + COUNT ( * ) * + COUNT ( ALL + CAST ( - 51 AS INTEGER ) ) FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5910
SELECT + 76 AS col1, + COUNT( * ) FROM tab2
----
76
3

skipif mysql # not compatible
query II rowsort label-5910
SELECT + 76 AS col1, + COUNT ( * ) FROM tab2
----
76
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 19 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5912
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT - col0 >= + CAST( NULL AS SIGNED ) * - 67 * - col2 )
----

skipif mysql # not compatible
query III rowsort label-5912
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT - col0 >= + CAST ( NULL AS INTEGER ) * - 67 * - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * + col1 col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT - col1 + - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT ALL 3 AS col2 FROM tab1 AS cor0 WHERE 78 < NULL
----

query I rowsort
SELECT ALL + - 7 * col2 / - - col0 * - + col0 * col0 AS col0 FROM tab0 cor0 WHERE col1 <= 82 / - col2
----

query II rowsort
SELECT + col2, - col2 + + 11 FROM tab0 cor0
----
10
1
47
-36
99
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-5918
SELECT + 48 AS col1, SUM( DISTINCT + col2 ) * + - COUNT( * ) FROM tab1 AS cor0
----
48
-669

skipif mysql # not compatible
query II rowsort label-5918
SELECT + 48 AS col1, SUM ( DISTINCT + col2 ) * + - COUNT ( * ) FROM tab1 AS cor0
----
48
-669

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT ALL + COUNT( * ) + + COUNT( + - col1 ) + - COUNT( * ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5919
SELECT ALL + COUNT ( * ) + + COUNT ( + - col1 ) + - COUNT ( * ) col0 FROM tab1
----
3

query I rowsort
SELECT DISTINCT col2 + + col0 * + ( ( 98 ) ) * + col1 * - - 91 + + + 66 AS col0 FROM tab1
----
3790275
38142420
6367614

query I rowsort
SELECT ALL + col0 + + - col0 * - + 50 AS col0 FROM tab0
----
4437
4947
765

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5922
SELECT ALL 78 * - col0 + - col2 - + col0 * + - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5922
SELECT ALL 78 * - col0 + - col2 - + col0 * + - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NULL > NULL AND NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5924
SELECT COUNT( * ) * + - 50 * + 37 AS col2, 59 FROM tab2
----
-5550
59

skipif mysql # not compatible
query II rowsort label-5924
SELECT COUNT ( * ) * + - 50 * + 37 AS col2, 59 FROM tab2
----
-5550
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT DISTINCT - 92 + - COUNT( * ) AS col0 FROM tab0 WHERE + 11 IS NULL
----
-92

skipif mysql # not compatible
query I rowsort label-5925
SELECT DISTINCT - 92 + - COUNT ( * ) AS col0 FROM tab0 WHERE + 11 IS NULL
----
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 + + 96 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3b792285965591d50328a6a66dcbef61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5927
SELECT CAST( - 69 AS SIGNED ) AS col2 FROM tab2 cor0
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-5927
SELECT CAST ( - 69 AS INTEGER ) AS col2 FROM tab2 cor0
----
-69
-69
-69

query I rowsort
SELECT ALL + 18 - 53 AS col1 FROM tab1 AS cor0
----
-35
-35
-35

query I rowsort
SELECT + 52 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - col0 - - - 72 FROM tab0 AS cor0
----
-159
-169
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT ALL - - SUM( ALL col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-5931
SELECT ALL - - SUM ( ALL col1 ) FROM tab2 AS cor0
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 56 col2 FROM tab2 AS cor0
----
-56
-56
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5933
SELECT + col0 / + CAST( NULL AS SIGNED ) * - - 94 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5933
SELECT + col0 / + CAST ( NULL AS INTEGER ) * - - 94 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( + 78 ) + + col1 BETWEEN + 57 AND 67
----

query I rowsort
SELECT DISTINCT - col2 * - - col0 * + 81 AS col1 FROM tab0
----
-57105
-70470
-777843

query III rowsort
SELECT * FROM tab0 WHERE NOT + 32 BETWEEN + 42 * - - 86 + - + col2 / - col0 + - 88 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 * - col1 col1 FROM tab1
----
-196
-658
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 60 ) * - - col2 col2 FROM tab2
----
1380
2400
3480

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT - 1 * + MIN( DISTINCT - 54 ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-5939
SELECT - 1 * + MIN ( DISTINCT - 54 ) FROM tab2
----
54

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT NULL IS NULL ) OR NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT - 1 * COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5941
SELECT - 1 * COUNT ( * ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT 83 * col2 >= + 99
----

query I rowsort
SELECT - + 76 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5944
SELECT - - col0 * CAST( NULL AS DECIMAL ) / col2 + + col0 / + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5944
SELECT - - col0 * CAST ( NULL AS REAL ) / col2 + + col0 / + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 77 + + col2 + + 43 AS col0 FROM tab0 AS cor0
----
-24
13
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5946
SELECT - col2 * + col0, - ( + CAST( NULL AS SIGNED ) ) * + + col1 AS col2 FROM tab0 WHERE NULL = NULL
----

skipif mysql # not compatible
query II rowsort label-5946
SELECT - col2 * + col0, - ( + CAST ( NULL AS INTEGER ) ) * + + col1 AS col2 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT - col2 + + + col0 AS col0 FROM tab1
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5948
SELECT DISTINCT col1 + CAST( - 3 AS SIGNED ) AS col1 FROM tab1
----
11
2
44

skipif mysql # not compatible
query I rowsort label-5948
SELECT DISTINCT col1 + CAST ( - 3 AS INTEGER ) AS col1 FROM tab1
----
11
2
44

query I rowsort
SELECT 83 + + 20 FROM tab0
----
103
103
103

query I rowsort
SELECT DISTINCT ( 58 ) AS col0 FROM tab2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5951
SELECT DISTINCT COUNT( * ) DIV + MIN( DISTINCT - + ( 86 ) ), + CAST( + 10 AS SIGNED ) AS col1 FROM tab2
----
0
10

skipif mysql # not compatible
query II rowsort label-5951
SELECT DISTINCT COUNT ( * ) / + MIN ( DISTINCT - + ( 86 ) ), + CAST ( + 10 AS INTEGER ) AS col1 FROM tab2
----
0
10

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - col1 * col1 * + + 96
----

query I rowsort
SELECT DISTINCT ( + 68 ) FROM tab1 AS cor0
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 19 col0 FROM tab0 AS cor0 WHERE ( NULL <> NULL )
----

query I rowsort
SELECT DISTINCT - 18 + col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
33
49
59

onlyif mysql # DIV for integer division: 
query II rowsort label-5956
SELECT DISTINCT ( - col1 ) AS col2, - 59 DIV 78 + col1 * - 88 - ( - 47 ) AS col0 FROM tab1 AS cor0
----
-14
-1185
-47
-4089
-5
-393

skipif mysql # not compatible
query II rowsort label-5956
SELECT DISTINCT ( - col1 ) AS col2, - 59 / 78 + col1 * - 88 - ( - 47 ) AS col0 FROM tab1 AS cor0
----
-14
-1185
-47
-4089
-5
-393

query I rowsort
SELECT DISTINCT + 55 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - + ( - + col2 ) AS col2, col1 AS col2 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5959
SELECT DISTINCT - ( 83 ) AS col0, + CAST( col0 AS SIGNED ) - - col1 AS col2 FROM tab1 AS cor0
----
-83
138
-83
65
-83
90

skipif mysql # not compatible
query II rowsort label-5959
SELECT DISTINCT - ( 83 ) AS col0, + CAST ( col0 AS INTEGER ) - - col1 AS col2 FROM tab1 AS cor0
----
-83
138
-83
65
-83
90

query I rowsort
SELECT DISTINCT - col0 * 66 + - col0 FROM tab0 AS cor0
----
-1005
-5829
-6499

query I rowsort
SELECT + ( - ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( - - 32 ) + - 50 IS NOT NULL
----

query I rowsort
SELECT ( col2 ) * - + 9 FROM tab0 AS cor0
----
-423
-891
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5964
SELECT + CAST( 6 AS SIGNED ) FROM tab1
----
6
6
6

skipif mysql # not compatible
query I rowsort label-5964
SELECT + CAST ( 6 AS INTEGER ) FROM tab1
----
6
6
6

query I rowsort
SELECT ALL + ( + ( - - col1 ) ) AS col2 FROM tab2
----
51
67
77

query I rowsort
SELECT + + col0 FROM tab1 WHERE NOT + - col0 > col2
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 > NULL
----

query I rowsort
SELECT col1 * 28 * - 35 FROM tab1
----
-13720
-46060
-4900

onlyif mysql # aggregate syntax: 
query II rowsort label-5969
SELECT DISTINCT - COUNT( * ) col0, - 33 FROM tab2
----
-3
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5969
SELECT DISTINCT - COUNT ( * ) col0, - 33 FROM tab2
----
-3
-33

query II rowsort
SELECT DISTINCT 50 AS col0, - col1 FROM tab2
----
50
-51
50
-67
50
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5971
SELECT - ( - CAST( NULL AS SIGNED ) ) / col1 * - 48 + - - 50 AS col1 FROM tab2 cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( + col2, + col0 * - 6 )
----

skipif mysql # not compatible
query I rowsort label-5971
SELECT - ( - CAST ( NULL AS INTEGER ) ) / col1 * - 48 + - - 50 AS col1 FROM tab2 cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( + col2, + col0 * - 6 )
----

query II rowsort
SELECT + col1 AS col2, col2 AS col1 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5973
SELECT DISTINCT - 42 + - col2 + + + col0 + + col1 * + 67 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5973
SELECT DISTINCT - 42 + - col2 + + + col0 + + col1 * + 67 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT + col1 + - + 77 + + 86 * ( - col0 ) FROM tab2
----
-3982
-5504
-6460

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 99 col0 FROM tab1 AS cor0
----
99
99
99

query I rowsort
SELECT - 92 * - ( - + col2 ) AS col0 FROM tab1 AS cor0
----
-5428
-6256
-8832

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT DISTINCT + - MAX( DISTINCT + - col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5977
SELECT DISTINCT + - MAX ( DISTINCT + - col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT DISTINCT + - COUNT( * ) + + 18 AS col1 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5978
SELECT DISTINCT + - COUNT ( * ) + + 18 AS col1 FROM tab1 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 * - 74 + - col0 col1 FROM tab0
----
-2975
-3047
-3057

query I rowsort
SELECT DISTINCT col0 + col1 * 98 * - col0 AS col2 FROM tab1
----
-41565
-419055
-69921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + + 70 * + + 99 * + 23 col0 FROM tab2
----
159436
159454
159465

query I rowsort
SELECT DISTINCT - 63 - - - ( col2 ) AS col1 FROM tab0 AS cor0
----
-110
-162
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT ALL 97 * - COUNT( * ) + + - 23 + + 95 - + 14 FROM tab2 AS cor0
----
-233

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL 97 * - COUNT ( * ) + + - 23 + + 95 - + 14 FROM tab2 AS cor0
----
-233

onlyif mysql # DIV for integer division: 
query I rowsort label-5984
SELECT DISTINCT - - col0 * - 22 + - col2 DIV col2 FROM tab1 AS cor0
----
-1123
-1871
-2003

skipif mysql # not compatible
query I rowsort label-5984
SELECT DISTINCT - - col0 * - 22 + - col2 / col2 FROM tab1 AS cor0
----
-1123
-1871
-2003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5985
SELECT DISTINCT 62 + - - col2 FROM tab1 AS cor0 WHERE NOT - col2 * - - 48 * + 87 + + col1 + CAST( col0 AS SIGNED ) IN ( col2 )
----
121
130
158

skipif mysql # not compatible
query I rowsort label-5985
SELECT DISTINCT 62 + - - col2 FROM tab1 AS cor0 WHERE NOT - col2 * - - 48 * + 87 + + col1 + CAST ( col0 AS INTEGER ) IN ( col2 )
----
121
130
158

onlyif mysql # DIV for integer division: 
query I rowsort label-5986
SELECT ALL col0 * - ( - - col1 ) DIV - col1 - col2 + col0 FROM tab2
----
69
88
92

skipif mysql # not compatible
query I rowsort label-5986
SELECT ALL col0 * - ( - - col1 ) / - col1 - col2 + col0 FROM tab2
----
69
88
92

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col1 = - col0
----

query II rowsort
SELECT - - col2, col2 + - col2 AS col2 FROM tab1 cor0
----
59
0
68
0
96
0

query I rowsort
SELECT ALL + col0 * + col2 + + col0 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN NULL AND col2
----
957

query III rowsort
SELECT * FROM tab1 WHERE NOT + 72 + + - 18 + + - col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5991
SELECT * FROM tab0 WHERE NOT NULL IN ( CAST( + + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5991
SELECT * FROM tab0 WHERE NOT NULL IN ( CAST ( + + col0 AS INTEGER ) )
----

query I rowsort
SELECT - 7 * + col0 FROM tab1
----
-357
-595
-637

query I rowsort
SELECT DISTINCT col2 * - ( 71 ) FROM tab2
----
-1633
-2840
-4118

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + 86 ) * + ( + - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT + MAX( - 2 ) FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-5995
SELECT + MAX ( - 2 ) FROM tab2
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 26 + - 55 col1, - col2 FROM tab2 AS cor0 WHERE col0 + - - col0 >= 50
----
-29
-23
-29
-40
-29
-58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT - - col2 >= - ( + col2 ) )
----

query I rowsort
SELECT ALL - + col2 * col0 * + 87 - - - col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-61416
-75711
-835462

query I rowsort
SELECT DISTINCT 41 + 72 AS col1 FROM tab0 AS cor0
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6000
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) * + 63 DIV - COUNT( * ) FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-6000
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) * + 63 / - COUNT ( * ) FROM tab2
----
189

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < col1 + + 84
----

query I rowsort
SELECT DISTINCT - 3 FROM tab0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT + 60 + + - col1 FROM tab0
----
-21
39
59

query I rowsort
SELECT - 79 * col0 + ( col2 ) FROM tab0
----
-1138
-6863
-7564

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 + col1 col1, + 66 FROM tab0
----
108
66
96
66
98
66

query I rowsort
SELECT DISTINCT + 97 - - col0 FROM tab2
----
143
161
172

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT 6 - + 92 - + + col0 + + 25 * - col1 AS col1 FROM tab0 cor0
----
-208
-2126
-698

query I rowsort
SELECT col1 * + - col2 AS col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT ( + + 24 ) * + col2 AS col1 FROM tab0 AS cor0
----
1128
2376
240

onlyif mysql # aggregate syntax: 
query II rowsort label-6011
SELECT 92 AS col0, + MIN( DISTINCT + col0 ) + + + 54 * - 26 AS col2 FROM tab2 AS cor0
----
92
-1358

skipif mysql # not compatible
query II rowsort label-6011
SELECT 92 AS col0, + MIN ( DISTINCT + col0 ) + + + 54 * - 26 AS col2 FROM tab2 AS cor0
----
92
-1358

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 / ( col0 ) col0 FROM tab0 cor0 WHERE NOT - col1 BETWEEN NULL AND - col1
----

query I rowsort
SELECT 66 * 5 * + col2 FROM tab1 AS cor0
----
19470
22440
31680

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + + col1 AND + col1
----

query I rowsort
SELECT + - 73 * + col2 * + 76 AS col1 FROM tab2 AS cor0
----
-127604
-221920
-321784

onlyif mysql # DIV for integer division: 
query I rowsort label-6016
SELECT ALL + + col2 DIV - 86 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6016
SELECT ALL + + col2 / - 86 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT - col0 AS col1, 0 + + 43 AS col2 FROM tab2 AS cor0 WHERE NOT ( col2 ) IN ( 67 )
----
-46
43
-64
43
-75
43

query I rowsort
SELECT DISTINCT + ( 11 ) FROM tab0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6019
SELECT DISTINCT col0, col2 * + ( CAST( NULL AS DECIMAL ) ) FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-6019
SELECT DISTINCT col0, col2 * + ( CAST ( NULL AS REAL ) ) FROM tab0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT ALL + 2 + + 57 FROM tab0
----
59
59
59

query II rowsort
SELECT ALL - col0, col0 * - ( 75 ) AS col0 FROM tab2
----
-46
-3450
-64
-4800
-75
-5625

query I rowsort
SELECT DISTINCT + 64 * - 79 FROM tab1
----
-5056

query I rowsort
SELECT + 23 * + col1 AS col0 FROM tab2
----
1173
1541
1771

query II rowsort
SELECT ALL + 9 AS col1, - col1 + - 7 * - col2 FROM tab0 AS cor0
----
9
248
9
49
9
692

query I rowsort
SELECT - col1 * - col2 * - + col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-6026
SELECT DISTINCT - - ( 90 ) DIV 77 + + col2 col2 FROM tab1 AS cor0
----
60
69
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6026
SELECT DISTINCT - - ( 90 ) / 77 + + col2 col2 FROM tab1 AS cor0
----
60
69
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6027
SELECT MAX( - + CAST( + CAST( - + col1 AS SIGNED ) AS SIGNED ) ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
81

skipif mysql # not compatible
query I rowsort label-6027
SELECT MAX ( - + CAST ( + CAST ( - + col1 AS INTEGER ) AS INTEGER ) ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6028
SELECT ALL + COUNT( * ) + - COUNT( * ) AS col1, 10 DIV + - ( 8 ) AS col2 FROM tab2 AS cor0
----
0
-1

skipif mysql # not compatible
query II rowsort label-6028
SELECT ALL + COUNT ( * ) + - COUNT ( * ) AS col1, 10 / + - ( 8 ) AS col2 FROM tab2 AS cor0
----
0
-1

query I rowsort
SELECT - ( - col2 ) * ( col2 ) FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT ALL - COUNT( - - 46 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6030
SELECT ALL - COUNT ( - - 46 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - 65 / + col2 AS col0 FROM tab2 AS cor0 WHERE 56 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6032
SELECT ALL CAST( - 25 AS SIGNED ), col2 AS col2 FROM tab1 AS cor0
----
-25
59
-25
68
-25
96

skipif mysql # not compatible
query II rowsort label-6032
SELECT ALL CAST ( - 25 AS INTEGER ), col2 AS col2 FROM tab1 AS cor0
----
-25
59
-25
68
-25
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 77 + col0 * col2, - 91 col1 FROM tab2
----
1135
-91
2637
-91
4427
-91

query III rowsort
SELECT * FROM tab0 WHERE - - ( - ( + - col1 ) ) IS NULL
----

query I rowsort
SELECT - col0 + 72 * col0 FROM tab1
----
3621
6035
6461

query I rowsort
SELECT 54 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6037
SELECT 48 / col0 + + - CAST( NULL AS DECIMAL ) + - + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6037
SELECT 48 / col0 + + - CAST ( NULL AS REAL ) + - + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 9 + - col2 * - + col0 - - - col0 AS col1 FROM tab0
----
681
774
9497

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + col0 col2 FROM tab2 AS cor0
----
0

query II rowsort
SELECT DISTINCT - - col2 AS col1, 65 AS col0 FROM tab0 AS cor0
----
10
65
47
65
99
65

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 92 * - 77 + + col2 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + + 25 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT ALL 56 - MIN( DISTINCT + col0 ) AS col0 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL 56 - MIN ( DISTINCT + col0 ) AS col0 FROM tab0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6044
SELECT ALL col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6044
SELECT ALL col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col0 ) AS col0 FROM tab0 WHERE - 75 BETWEEN NULL AND ( - 68 )
----

query I rowsort
SELECT + 12 - - col2 * 56 FROM tab2
----
1300
2252
3260

query I rowsort
SELECT ( + 44 ) * + col1 + - col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
2198
2873
3324

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT - ( - ( COUNT( * ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6048
SELECT - ( - ( COUNT ( * ) ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6049
SELECT + CAST( - 18 AS SIGNED ) AS col1 FROM tab1
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-6049
SELECT + CAST ( - 18 AS INTEGER ) AS col1 FROM tab1
----
-18
-18
-18

query I rowsort
SELECT - ( 88 ) FROM tab0
----
-88
-88
-88

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6051
SELECT * FROM tab1 WHERE NOT - CAST( NULL AS DECIMAL ) + + 64 < col1
----

skipif mysql # not compatible
query III rowsort label-6051
SELECT * FROM tab1 WHERE NOT - CAST ( NULL AS REAL ) + + 64 < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT ALL + COUNT( * ) * 32 AS col2 FROM tab1 WHERE + 41 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL + COUNT ( * ) * 32 AS col2 FROM tab1 WHERE + 41 = NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE - 79 < - 81 + + ( 15 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) BETWEEN - col2 AND - col1
----

query I rowsort
SELECT DISTINCT + col1 + col1 * 13 AS col0 FROM tab2
----
1078
714
938

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 - + ( col1 ) ) BETWEEN col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6057
SELECT DISTINCT 37 DIV col1 FROM tab2 WHERE NOT - col2 * 16 > ( + 96 )
----
0

skipif mysql # not compatible
query I rowsort label-6057
SELECT DISTINCT 37 / col1 FROM tab2 WHERE NOT - col2 * 16 > ( + 96 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT MIN( + 72 ) col0 FROM tab2
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6058
SELECT MIN ( + 72 ) col0 FROM tab2
----
72

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 - col0 <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT DISTINCT - MIN( ALL col0 ) FROM tab2 WHERE NOT col1 <> col2 / + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT - MIN ( ALL col0 ) FROM tab2 WHERE NOT col1 <> col2 / + 26
----
NULL

query I rowsort
SELECT - ( 27 ) AS col1 FROM tab2
----
-27
-27
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6062
SELECT DISTINCT + CAST( 69 AS SIGNED ) * - 36 AS col0 FROM tab1
----
-2484

skipif mysql # not compatible
query I rowsort label-6062
SELECT DISTINCT + CAST ( 69 AS INTEGER ) * - 36 AS col0 FROM tab1
----
-2484

onlyif mysql # DIV for integer division: 
query I rowsort label-6063
SELECT ALL 26 DIV + col1 FROM tab1 WHERE NOT col0 BETWEEN col2 AND 59
----
0
1
5

skipif mysql # not compatible
query I rowsort label-6063
SELECT ALL 26 / + col1 FROM tab1 WHERE NOT col0 BETWEEN col2 AND 59
----
0
1
5

query I rowsort
SELECT DISTINCT col1 * - ( 33 ) + 77 FROM tab0
----
-2596
-616
44

query I rowsort
SELECT ALL + col0 - + 33 AS col0 FROM tab0
----
-18
54
64

query III rowsort
SELECT ALL * FROM tab2 WHERE 42 * col1 NOT IN ( 6 + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6067
SELECT ALL + 56 + COUNT( * ) AS col2 FROM tab2 WHERE ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
56

skipif mysql # not compatible
query I rowsort label-6067
SELECT ALL + 56 + COUNT ( * ) AS col2 FROM tab2 WHERE ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
56

query I rowsort
SELECT DISTINCT 30 * col1 + - col2 FROM tab2 WHERE + 95 + + col2 >= ( - col1 / + col2 )
----
1507
1952
2270

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6069
SELECT DISTINCT * FROM tab1 WHERE ( - ( col1 ) ) = + ( + CAST( col2 AS SIGNED ) ) / 32
----

skipif mysql # not compatible
query III rowsort label-6069
SELECT DISTINCT * FROM tab1 WHERE ( - ( col1 ) ) = + ( + CAST ( col2 AS INTEGER ) ) / 32
----

query I rowsort
SELECT DISTINCT col2 * - 90 AS col0 FROM tab1 cor0
----
-5310
-6120
-8640

query I rowsort
SELECT ALL ( col2 ) * - col1 AS col1 FROM tab1 cor0
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-6072
SELECT DISTINCT col2 DIV 40 AS col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6072
SELECT DISTINCT col2 / 40 AS col0 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT DISTINCT - 8 * col1 AS col2 FROM tab1 AS cor0
----
-112
-376
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-6074
SELECT ALL 14 + col2 DIV + col0 FROM tab2 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-6074
SELECT ALL 14 + col2 / + col0 FROM tab2 AS cor0
----
14
14
14

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col2 * - ( + col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6076
SELECT DISTINCT - 58 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
2
58

skipif mysql # not compatible
query I rowsort label-6076
SELECT DISTINCT - 58 / - col1 AS col2 FROM tab0 AS cor0
----
0
2
58

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 AS cor0 WHERE ( - col2 ) NOT IN ( col0 )
----
14
47
5

query I rowsort
SELECT DISTINCT - 24 - col1 FROM tab1
----
-29
-38
-71

query I rowsort
SELECT DISTINCT + col2 - + ( col0 ) AS col0 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6080
SELECT ALL - CAST( - 7 AS DECIMAL ) * 99 + col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 39 AND + col2
----

skipif mysql # not compatible
query I rowsort label-6080
SELECT ALL - CAST ( - 7 AS REAL ) * 99 + col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 39 AND + col2
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( 45 ) + 98 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6082
SELECT DISTINCT - ( col0 ) DIV col2 FROM tab0 cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-6082
SELECT DISTINCT - ( col0 ) / col2 FROM tab0 cor0
----
-8
0

query I rowsort
SELECT DISTINCT ( + col0 ) + col0 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT - col0 + - + 96 FROM tab0
----
-111
-183
-193

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT COUNT( + 43 ) - COUNT( * ) col2 FROM tab0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6085
SELECT COUNT ( + 43 ) - COUNT ( * ) col2 FROM tab0 WHERE + col1 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6086
SELECT ALL col0 + + col0 DIV ( col2 ) AS col1 FROM tab0
----
15
95
97

skipif mysql # not compatible
query I rowsort label-6086
SELECT ALL col0 + + col0 / ( col2 ) AS col1 FROM tab0
----
15
95
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 24 col2 FROM tab1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6088
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - col2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6088
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - col2 AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6089
SELECT ALL CAST( 93 AS SIGNED ) + 37 FROM tab0
----
130
130
130

skipif mysql # not compatible
query I rowsort label-6089
SELECT ALL CAST ( 93 AS INTEGER ) + 37 FROM tab0
----
130
130
130

query I rowsort
SELECT ALL + 9 * - + 26 - + 72 FROM tab2
----
-306
-306
-306

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6091
SELECT ALL CAST( + col1 AS DECIMAL ) col1 FROM tab2 WHERE ( NULL ) >= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6091
SELECT ALL CAST ( + col1 AS REAL ) col1 FROM tab2 WHERE ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6092
SELECT COUNT( ( + col2 ) ) DIV MAX( col0 * - col0 + - 43 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6092
SELECT COUNT ( ( + col2 ) ) / MAX ( col0 * - col0 + - 43 ) FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6093
SELECT SUM( DISTINCT 87 ) FROM tab2 WHERE NOT NULL IN ( - col1 + ( - CAST( - col0 AS SIGNED ) + + col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6093
SELECT SUM ( DISTINCT 87 ) FROM tab2 WHERE NOT NULL IN ( - col1 + ( - CAST ( - col0 AS INTEGER ) + + col0 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT - + COUNT( + col0 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6094
SELECT - + COUNT ( + col0 ) FROM tab0 cor0
----
-3

query I rowsort
SELECT + ( col0 ) * - ( - 67 ) FROM tab2 cor0
----
3082
4288
5025

query I rowsort
SELECT + ( 89 ) AS col2 FROM tab0 AS cor0
----
89
89
89

onlyif mysql # DIV for integer division: 
query I rowsort label-6097
SELECT - col2 * - - col2 + 89 * + ( + col0 + + ( + col0 ) DIV 96 ) FROM tab0 AS cor0
----
-1079
-874
7643

skipif mysql # not compatible
query I rowsort label-6097
SELECT - col2 * - - col2 + 89 * + ( + col0 + + ( + col0 ) / 96 ) FROM tab0 AS cor0
----
-1079
-874
7643

query I rowsort
SELECT 8 AS col2 FROM tab1 WHERE NOT ( ( + 79 ) IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6099
SELECT ALL + 27 - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6099
SELECT ALL + 27 - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6100
SELECT ALL + COUNT( * ) * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL + COUNT ( * ) * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6101
SELECT DISTINCT - 33 AS col1 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * + + col0 IS NOT NULL
----
-33

skipif mysql # not compatible
query I rowsort label-6101
SELECT DISTINCT - 33 AS col1 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * + + col0 IS NOT NULL
----
-33

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 - - - col2 NOT BETWEEN + col0 AND + col1 - - col1 * col1
----

query I rowsort
SELECT 38 * + 41 + col2 FROM tab2 AS cor0 WHERE NOT - col1 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT COUNT( col2 ) FROM tab1 AS cor0 WHERE NOT 67 + 67 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6104
SELECT COUNT ( col2 ) FROM tab1 AS cor0 WHERE NOT 67 + 67 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * + 17 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT + - SUM( ALL - - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-6106
SELECT + - SUM ( ALL - - col0 ) FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6107
SELECT - + SUM( DISTINCT - ( - CAST( NULL AS DECIMAL ) ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6107
SELECT - + SUM ( DISTINCT - ( - CAST ( NULL AS REAL ) ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 * + 84 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-6108
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 * + 84 < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6109
SELECT ALL - CAST( + - ( + + CAST( - + 32 AS SIGNED ) ) AS SIGNED ) + ( + col0 ) FROM tab0
----
-17
55
65

skipif mysql # not compatible
query I rowsort label-6109
SELECT ALL - CAST ( + - ( + + CAST ( - + 32 AS INTEGER ) ) AS INTEGER ) + ( + col0 ) FROM tab0
----
-17
55
65

query I rowsort
SELECT DISTINCT col0 * + 51 AS col2 FROM tab2
----
2346
3264
3825

onlyif mysql # DIV for integer division: 
query I rowsort label-6111
SELECT DISTINCT - 42 + - - col2 DIV + col2 + - col0 + col1 * + col0 AS col1 FROM tab0
----
-41
1159
1699

skipif mysql # not compatible
query I rowsort label-6111
SELECT DISTINCT - 42 + - - col2 / + col2 + - col0 + col1 * + col0 AS col1 FROM tab0
----
-41
1159
1699

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6112
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6112
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - 93 + + + 82 FROM tab2
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6114
SELECT ALL + col2 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL + col2 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 76 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT MAX( DISTINCT + 17 ) + 27 FROM tab0 WHERE ( + - 62 ) IN ( - ( - 32 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6116
SELECT MAX ( DISTINCT + 17 ) + 27 FROM tab0 WHERE ( + - 62 ) IN ( - ( - 32 ) )
----
NULL

query I rowsort
SELECT ALL col2 * - col1 * - - col0 AS col0 FROM tab0
----
-18270
-57105
-9603

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 * col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6119
SELECT - 43 DIV SUM( ALL col0 ) + - CAST( COUNT( 82 ) AS SIGNED ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6119
SELECT - 43 / SUM ( ALL col0 ) + - CAST ( COUNT ( 82 ) AS INTEGER ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6120
SELECT DISTINCT 24 + col1 - CAST( NULL AS SIGNED ) * col1 + + 55 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6120
SELECT DISTINCT 24 + col1 - CAST ( NULL AS INTEGER ) * col1 + + 55 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6121
SELECT DISTINCT col1 * col1 FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN - CAST( + - col0 AS SIGNED ) * - 91 + 43 * - col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6121
SELECT DISTINCT col1 * col1 FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN - CAST ( + - col0 AS INTEGER ) * - 91 + 43 * - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT DISTINCT - MIN( DISTINCT col1 ) * + 18 - + + COUNT( * ) * 11 AS col1 FROM tab1
----
-123

skipif mysql # not compatible
query I rowsort label-6122
SELECT DISTINCT - MIN ( DISTINCT col1 ) * + 18 - + + COUNT ( * ) * 11 AS col1 FROM tab1
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT ALL - COUNT( * ) FROM tab2 WHERE - col1 = ( + - 85 )
----
0

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL - COUNT ( * ) FROM tab2 WHERE - col1 = ( + - 85 )
----
0

query I rowsort
SELECT - + 38 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

onlyif mysql # DIV for integer division: 
query I rowsort label-6125
SELECT DISTINCT 36 DIV - - 62 - + - col2 AS col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6125
SELECT DISTINCT 36 / - - 62 - + - col2 AS col2 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * + col0 BETWEEN + col2 + + + col1 AND 97
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * 70 * col2 * - col2 AS col1 FROM tab1 AS cor0
----
-1218350
-15212960
-9031680

query I rowsort
SELECT ALL 84 - 21 FROM tab0 AS cor0
----
63
63
63

query I rowsort
SELECT - + 59 * 21 AS col2 FROM tab0 AS cor0
----
-1239
-1239
-1239

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - 10 col2 FROM tab1 AS cor0
----
-5
37
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT DISTINCT ( + - COUNT( * ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6131
SELECT DISTINCT ( + - COUNT ( * ) ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6132
SELECT COUNT( * ) DIV - COUNT( * ) - + SUM( + + col1 ) FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-6132
SELECT COUNT ( * ) / - COUNT ( * ) - + SUM ( + + col1 ) FROM tab1 AS cor0
----
-67

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - ( - - col1 ) * - + 20 * + 37 * + col0 ) IN ( 13 * 27 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col0 NOT BETWEEN NULL AND 36
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * 63 + - - col1 / + col2 + + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT ALL + 41 * - COUNT( * ) FROM tab1
----
-123

skipif mysql # not compatible
query I rowsort label-6136
SELECT ALL + 41 * - COUNT ( * ) FROM tab1
----
-123

query I rowsort
SELECT - 80 * 48 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( ( - col2 ) + + 57 * - - col2 * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6138
SELECT ALL + 91 DIV - + col2 col0 FROM tab0
----
-1
-9
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6138
SELECT ALL + 91 / - + col2 col0 FROM tab0
----
-1
-9
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6139
SELECT ( 76 ) DIV col0 + col0 FROM tab1
----
52
85
91

skipif mysql # not compatible
query I rowsort label-6139
SELECT ( 76 ) / col0 + col0 FROM tab1
----
52
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6140
SELECT + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6140
SELECT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - + 15 ) FROM tab2
----
15
15
15

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * - + 20 NOT BETWEEN col1 * - col2 AND ( col1 + - col1 / 3 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6143
SELECT ALL + ( + col0 ) AS col1, + CAST( + - 66 AS SIGNED ) + col0 + + col2 * - col2 AS col0 FROM tab1
----
51
-9231
85
-3462
91
-4599

skipif mysql # not compatible
query II rowsort label-6143
SELECT ALL + ( + col0 ) AS col1, + CAST ( + - 66 AS INTEGER ) + col0 + + col2 * - col2 AS col0 FROM tab1
----
51
-9231
85
-3462
91
-4599

query II rowsort
SELECT + 22 * + - col0, + col1 * - + col0 AS col1 FROM tab1
----
-1122
-714
-1870
-425
-2002
-4277

query I rowsort
SELECT DISTINCT - ( col2 ) + + 28 + + ( - col1 ) * - col2 AS col1 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
1178
3068
3856

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NULL >= 0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 68 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + - 18 / col0 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN 66 + - - 68 * - 44 * col1 * col2 AND ( col2 * col0 + + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6149
SELECT DISTINCT + SUM( - col1 ) + + COUNT( * ) * - + CAST( NULL AS SIGNED ) - - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6149
SELECT DISTINCT + SUM ( - col1 ) + + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) - - COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT col2 + + col1 - - col2 * 33 + - + col0 FROM tab0
----
1664
274
3270

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT ( COUNT( * ) ) + - 14 - 27 AS col2 FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-6151
SELECT ( COUNT ( * ) ) + - 14 - 27 AS col2 FROM tab0
----
-38

query III rowsort
SELECT * FROM tab1 WHERE + + col0 / 83 + + + col1 NOT IN ( 8, - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( - - 53 ) AS col1 FROM tab2 WHERE NULL >= NULL
----

query I rowsort
SELECT ( 31 ) + - 3 FROM tab1
----
28
28
28

onlyif mysql # DIV for integer division: 
query I rowsort label-6155
SELECT 17 + + col2 + + col1 DIV + + ( - col1 ) FROM tab0
----
115
26
63

skipif mysql # not compatible
query I rowsort label-6155
SELECT 17 + + col2 + + col1 / + + ( - col1 ) FROM tab0
----
115
26
63

query I rowsort
SELECT 35 + + col2 AS col1 FROM tab1
----
103
131
94

query II rowsort
SELECT DISTINCT + col1 AS col2, - col2 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( - 4 ) <= + 78
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT + + MIN( - 58 ) FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-6159
SELECT + + MIN ( - 58 ) FROM tab2 cor0
----
-58

query I rowsort
SELECT DISTINCT + 48 - - - col2 FROM tab0
----
-51
1
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - - col1 - - col1 + - - col0 col1 FROM tab1
----
138
65
90

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NOT + 30 - 85 IS NULL )
----

query I rowsort
SELECT - 40 + + 12 FROM tab0
----
-28
-28
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 ) - + 6 col0 FROM tab1 AS cor0
----
-1
41
8

query I rowsort
SELECT DISTINCT + 92 * - col1 - 10 * - col0 FROM tab0 AS cor0
----
-1062
-7302
878

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT - - SUM( + col0 ) * + 83 FROM tab1 AS cor0
----
18841

skipif mysql # not compatible
query I rowsort label-6166
SELECT - - SUM ( + col0 ) * + 83 FROM tab1 AS cor0
----
18841

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6167
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6167
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - + col2 * - + 40 AS col0 FROM tab2 AS cor0
----
1600
2320
920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * 66 col0, 53 FROM tab2 AS cor0
----
1518
53
2640
53
3828
53

query I rowsort
SELECT DISTINCT - 83 * + - 26 FROM tab1 AS cor0
----
2158

query I rowsort
SELECT ALL + + col2 * + + col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-6172
SELECT ALL col2 DIV + + ( - ( + + 36 ) ) FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL col2 / + + ( - ( + + 36 ) ) FROM tab1 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT - 43 * + MIN( col2 ) FROM tab1 AS cor0
----
-2537

skipif mysql # not compatible
query I rowsort label-6173
SELECT - 43 * + MIN ( col2 ) FROM tab1 AS cor0
----
-2537

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6174
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + CAST( + + 39 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6174
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + CAST ( + + 39 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6175
SELECT - 47 * - - CAST( NULL AS DECIMAL ) + - col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6175
SELECT - 47 * - - CAST ( NULL AS REAL ) + - col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 18 FROM tab1 WHERE NOT col0 NOT BETWEEN NULL AND - + 36
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6177
SELECT * FROM tab1 WHERE - col1 * - + CAST( NULL AS SIGNED ) IS NULL AND NOT NULL NOT IN ( + col1 * + 77 )
----

skipif mysql # not compatible
query III rowsort label-6177
SELECT * FROM tab1 WHERE - col1 * - + CAST ( NULL AS INTEGER ) IS NULL AND NOT NULL NOT IN ( + col1 * + 77 )
----

query I rowsort
SELECT - + col2 FROM tab1 WHERE NOT - - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 34 * col0 AS col0 FROM tab0 AS cor0
----
2958
3298
510

query I rowsort
SELECT ALL - ( + 97 ) * - 55 FROM tab2 AS cor0
----
5335
5335
5335

query I rowsort
SELECT DISTINCT - - ( + - 24 ) * 68 FROM tab1 WHERE NOT + col0 BETWEEN + + col1 AND + col1
----
-1632

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT ALL ( - + SUM( + ( + - col1 ) ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-6182
SELECT ALL ( - + SUM ( + ( + - col1 ) ) ) FROM tab0
----
103

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 33 / col2 = - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 + + + col0 FROM tab2 cor0
----
17
23
24

query II rowsort
SELECT - col1 + - + 52 AS col1, 49 AS col0 FROM tab0 AS cor0
----
-133
49
-53
49
-73
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6186
SELECT col2, - CAST( 41 AS SIGNED ) FROM tab1 cor0
----
59
-41
68
-41
96
-41

skipif mysql # not compatible
query II rowsort label-6186
SELECT col2, - CAST ( 41 AS INTEGER ) FROM tab1 cor0
----
59
-41
68
-41
96
-41

query II rowsort
SELECT DISTINCT - + col2, + col1 * + 63 AS col2 FROM tab2 AS cor0
----
-23
3213
-40
4851
-58
4221

query I rowsort
SELECT DISTINCT + 39 + - col2 AS col1 FROM tab0 AS cor0
----
-60
-8
29

query I rowsort
SELECT + 41 FROM tab0 AS cor0 WHERE col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6190
SELECT + ( + + CAST( - col2 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6190
SELECT + ( + + CAST ( - col2 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 59 * 97 col2 FROM tab2 WHERE ( NULL BETWEEN ( NULL ) AND NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab0 WHERE NULL IN ( + 90 * col2 + - 43 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT ALL + MAX( ALL + col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6193
SELECT ALL + MAX ( ALL + col1 ) FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT ALL COUNT( * ) - MIN( col0 ) AS col0 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-6194
SELECT ALL COUNT ( * ) - MIN ( col0 ) AS col0 FROM tab0
----
-12

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * + 38 / - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6196
SELECT - 28 DIV - 89 + - ( - - 55 ) AS col1 FROM tab0 AS cor0
----
-55
-55
-55

skipif mysql # not compatible
query I rowsort label-6196
SELECT - 28 / - 89 + - ( - - 55 ) AS col1 FROM tab0 AS cor0
----
-55
-55
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-6197
SELECT + - 34 + - - col0 DIV + col1 FROM tab1 AS cor0
----
-17
-31
-33

skipif mysql # not compatible
query I rowsort label-6197
SELECT + - 34 + - - col0 / + col1 FROM tab1 AS cor0
----
-17
-31
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT + MAX( + ( - - 55 ) ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
55

skipif mysql # not compatible
query I rowsort label-6198
SELECT + MAX ( + ( - - 55 ) ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6199
SELECT + 57 DIV + COUNT( ALL - 44 ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-6199
SELECT + 57 / + COUNT ( ALL - 44 ) FROM tab0
----
19

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * + 1 * + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 * - + 43 + + + 58 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 43 col2 FROM tab1 AS cor0
----
-43
-43
-43

query I rowsort
SELECT - 20 * col1 AS col0 FROM tab0 cor0
----
-1620
-20
-420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6204
SELECT DISTINCT + col2 * + + CAST( NULL AS SIGNED ) * - - 92 - - + col2 + + + col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6204
SELECT DISTINCT + col2 * + + CAST ( NULL AS INTEGER ) * - - 92 - - + col2 + + + col0 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 15 * + col0 FROM tab0 AS cor0
----
-1305
-1455
-225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6206
SELECT col2 * - + 71 * + + col0 - - ( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6206
SELECT col2 * - + 71 * + + col0 - - ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 29 * + + 72 AS col1 FROM tab1 AS cor0
----
2088
2088
2088

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6208
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) DIV 41 AS col1, col2 DIV + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
NULL
0
NULL
0
NULL
99

skipif mysql # not compatible
query II rowsort label-6208
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) / 41 AS col1, col2 / + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
NULL
0
NULL
0
NULL
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 98 NOT BETWEEN col1 AND + - col2 + + + col2 * 40 - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT DISTINCT + - 0 * COUNT( * ) * - 47 col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6210
SELECT DISTINCT + - 0 * COUNT ( * ) * - 47 col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + 12 * + - 37 FROM tab2 AS cor0
----
-444
-444
-444

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT DISTINCT + SUM( DISTINCT + ( + col1 ) ) * 49 + - - COUNT( * ) FROM tab1
----
3237

skipif mysql # not compatible
query I rowsort label-6212
SELECT DISTINCT + SUM ( DISTINCT + ( + col1 ) ) * 49 + - - COUNT ( * ) FROM tab1
----
3237

query I rowsort
SELECT + - col2 * - 20 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1180
1360
1920

onlyif mysql # DIV for integer division: 
query I rowsort label-6214
SELECT - col2 DIV 17 * + col0 FROM tab0
----
-30
-485
0

skipif mysql # not compatible
query I rowsort label-6214
SELECT - col2 / 17 * + col0 FROM tab0
----
-30
-485
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 94 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6216
SELECT ALL CAST( NULL AS SIGNED ) * 1 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-6216
SELECT ALL CAST ( NULL AS INTEGER ) * 1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0 WHERE col1 >= - 40
----
51
85
91

query I rowsort
SELECT ALL + 38 AS col0 FROM tab0 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT ALL MIN( ALL - - 49 ) FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-6219
SELECT ALL MIN ( ALL - - 49 ) FROM tab0 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT - ( MAX( DISTINCT - col0 ) ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-6220
SELECT - ( MAX ( DISTINCT - col0 ) ) AS col2 FROM tab2
----
46

query I rowsort
SELECT + 61 * ( - col0 ) * 9 AS col1 FROM tab1
----
-27999
-46665
-49959

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 col2 FROM tab2
----
36
36
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6223
SELECT - ( - + 99 ) * + 23 + 49 + + COUNT( - col0 ) DIV + 23 FROM tab1
----
2326

skipif mysql # not compatible
query I rowsort label-6223
SELECT - ( - + 99 ) * + 23 + 49 + + COUNT ( - col0 ) / + 23 FROM tab1
----
2326

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 33 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT DISTINCT - + ( - MIN( + ( col2 ) ) ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-6225
SELECT DISTINCT - + ( - MIN ( + ( col2 ) ) ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT 25 AS col0 FROM tab0 AS cor0 WHERE - col0 BETWEEN col1 * col2 AND + col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + + + col0 + - - col1 + 90 * - + col0 <= - col0 + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6228
SELECT ALL + 38 DIV ( + 47 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6228
SELECT ALL + 38 / ( + 47 ) FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - 16 col2 FROM tab1 cor0
----
43
52
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT + COUNT( DISTINCT + 63 ) + 30 col1 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6230
SELECT + COUNT ( DISTINCT + 63 ) + 30 col1 FROM tab2 AS cor0
----
31

query I rowsort
SELECT ALL col0 * col2 + - + 21 + + ( col0 ) AS col2 FROM tab1
----
4926
5079
6258

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6232
SELECT * FROM tab1 WHERE ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6232
SELECT * FROM tab1 WHERE ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6233
SELECT col1 * ( - 9 ) + - CAST( NULL AS DECIMAL ) col0, col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6233
SELECT col1 * ( - 9 ) + - CAST ( NULL AS REAL ) col0, col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT ALL - COUNT( * ) + 87 + + - COUNT( * ) AS col0 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL - COUNT ( * ) + 87 + + - COUNT ( * ) AS col0 FROM tab2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6235
SELECT DISTINCT + col1 * col2 + CAST( NULL AS SIGNED ) - + - col0 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6235
SELECT DISTINCT + col1 * col2 + CAST ( NULL AS INTEGER ) - + - col0 AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6236
SELECT COUNT( * ) * - 93 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6236
SELECT COUNT ( * ) * - 93 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query II rowsort
SELECT + 65 AS col1, col1 AS col1 FROM tab0
----
65
1
65
21
65
81

query II rowsort
SELECT 77, 10 AS col1 FROM tab1
----
77
10
77
10
77
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT ALL 88 * - + 67 + ( + - COUNT( * ) ) AS col2 FROM tab1
----
-5899

skipif mysql # not compatible
query I rowsort label-6239
SELECT ALL 88 * - + 67 + ( + - COUNT ( * ) ) AS col2 FROM tab1
----
-5899

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 WHERE + col0 + - col2 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6241
SELECT DISTINCT 85 * - 77, + COUNT( * ) AS col2 FROM tab0
----
-6545
3

skipif mysql # not compatible
query II rowsort label-6241
SELECT DISTINCT 85 * - 77, + COUNT ( * ) AS col2 FROM tab0
----
-6545
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6242
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 / - CAST( NULL AS SIGNED ) BETWEEN NULL AND + col1 * + 45 + + col2 + + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6242
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 / - CAST ( NULL AS INTEGER ) BETWEEN NULL AND + col1 * + 45 + + col2 + + + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT 94 * - + COUNT( * ) + SUM( - + col2 ) FROM tab2 AS cor0 WHERE NOT - col2 * - + col1 IN ( col1 / + col2, 51 * - - col1 )
----
-403

skipif mysql # not compatible
query I rowsort label-6243
SELECT 94 * - + COUNT ( * ) + SUM ( - + col2 ) FROM tab2 AS cor0 WHERE NOT - col2 * - + col1 IN ( col1 / + col2, 51 * - - col1 )
----
-403

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6244
SELECT - CAST( NULL AS SIGNED ) * col0 + ( col2 ) + - col0 * 50 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6244
SELECT - CAST ( NULL AS INTEGER ) * col0 + ( col2 ) + - col0 * 50 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - col0 * + 3 FROM tab1 cor0
----
-1275
-12831
-2142

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6246
SELECT col1 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6246
SELECT col1 * - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 90 col1, + 62 AS col1 FROM tab2
----
-90
62
-90
62
-90
62

query I rowsort
SELECT DISTINCT 33 * + 89 AS col0 FROM tab0
----
2937

query I rowsort
SELECT col2 * + - 34 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT - col2 AS col0, col0 * - - ( + col1 ) FROM tab1 AS cor0
----
-59
425
-68
4277
-96
714

onlyif mysql # aggregate syntax: 
query II rowsort label-6251
SELECT ALL COUNT( * ), COUNT( * ) FROM tab1 cor0 WHERE col2 * + col0 IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-6251
SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab1 cor0 WHERE col2 * + col0 IS NULL
----
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < - col1 * - 6 * - - 52 * 73 - + ( col1 ) * + col0
----

query I rowsort
SELECT ALL + 52 FROM tab2 AS cor0 WHERE NOT 74 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT - + MIN( col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6254
SELECT - + MIN ( col0 ) AS col2 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT col1 * - col2 * col0 FROM tab2 AS cor0
----
-197120
-291450
-53958

query I rowsort
SELECT ALL + col0 + + - 63 - 99 * + + col1 AS col0 FROM tab0 AS cor0
----
-2055
-65
-8067

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6257
SELECT + + MIN( DISTINCT + ( + + col0 ) ) DIV COUNT( * ) FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6257
SELECT + + MIN ( DISTINCT + ( + + col0 ) ) / COUNT ( * ) FROM tab0 AS cor0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6258
SELECT DISTINCT + col2 DIV col2 * + col0 * - + ( col2 ) DIV + + col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-6258
SELECT DISTINCT + col2 / col2 * + col0 * - + ( col2 ) / + + col2 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6259
SELECT ALL 78 + + - CAST( NULL AS SIGNED ) + - + col2 * + 64 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6259
SELECT ALL 78 + + - CAST ( NULL AS INTEGER ) + - + col2 * + 64 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 - 21 * - - 41 AS col0 FROM tab1
----
-920
-929
-957

query I rowsort
SELECT col0 FROM tab0 WHERE - 67 * - - col2 + - col2 > ( NULL )
----

query I rowsort
SELECT - 79 + - col2 AS col1 FROM tab1
----
-138
-147
-175

query I rowsort
SELECT - col2 + 6 FROM tab0
----
-4
-41
-93

query I rowsort
SELECT col0 + + - ( col1 ) AS col1 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6265
SELECT 30 * - ( + ( COUNT( * ) ) ) AS col1, - 60 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-270
-60

skipif mysql # not compatible
query II rowsort label-6265
SELECT 30 * - ( + ( COUNT ( * ) ) ) AS col1, - 60 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-270
-60

query I rowsort
SELECT 16 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # aggregate syntax: 
query II rowsort label-6267
SELECT ALL + 91 col0, + COUNT( * ) AS col2 FROM tab0 AS cor0
----
91
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6267
SELECT ALL + 91 col0, + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
91
3

query II rowsort
SELECT col0, col0 + col0 AS col1 FROM tab0 cor0
----
15
30
87
174
97
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col0, col0 AS col1 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT ALL - - ( - + COUNT( * ) ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6270
SELECT ALL - - ( - + COUNT ( * ) ) col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT + MAX( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6271
SELECT + MAX ( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, + col1 * 81 AS col1 FROM tab0 AS cor0
----
-1
81
-21
1701
-81
6561

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 >= + col1 * - col0 / + + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6274
SELECT DISTINCT COUNT( * ) AS col0, + 96 col2 FROM tab1 AS cor0
----
3
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6274
SELECT DISTINCT COUNT ( * ) AS col0, + 96 col2 FROM tab1 AS cor0
----
3
96

query I rowsort
SELECT DISTINCT - - 33 FROM tab1 WHERE NOT NULL BETWEEN NULL AND + col0 * - 0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6276
SELECT + col1 * - CAST( + + 41 AS SIGNED ) FROM tab1
----
-1927
-205
-574

skipif mysql # not compatible
query I rowsort label-6276
SELECT + col1 * - CAST ( + + 41 AS INTEGER ) FROM tab1
----
-1927
-205
-574

query I rowsort
SELECT + 17 + - col2 + + 40 FROM tab1
----
-11
-2
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 col0 FROM tab1
----
14

query I rowsort
SELECT - col2 + - ( - col1 ) FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6280
SELECT 49 + + COUNT( * ) DIV - 43 * + 88 AS col1 FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-6280
SELECT 49 + + COUNT ( * ) / - 43 * + 88 AS col1 FROM tab0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6281
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col1 IS NULL
----
0

query II rowsort
SELECT 43, col1 AS col2 FROM tab2
----
43
51
43
67
43
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( 65 * + 54 + - col0, - ( - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT + + COUNT( * ) + 41 * - MAX( DISTINCT + col1 ) AS col1 FROM tab0 cor0
----
-3318

skipif mysql # not compatible
query I rowsort label-6284
SELECT + + COUNT ( * ) + 41 * - MAX ( DISTINCT + col1 ) AS col1 FROM tab0 cor0
----
-3318

onlyif mysql # DIV for integer division: 
query II rowsort label-6285
SELECT DISTINCT + - col2 AS col1, 31 DIV - + ( - 19 ) + col1 FROM tab2 cor0
----
-23
52
-40
78
-58
68

skipif mysql # not compatible
query II rowsort label-6285
SELECT DISTINCT + - col2 AS col1, 31 / - + ( - 19 ) + col1 FROM tab2 cor0
----
-23
52
-40
78
-58
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6286
SELECT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL >= + col1 * + col0
----

skipif mysql # not compatible
query I rowsort label-6286
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL >= + col1 * + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 + + - col2 + col0 col2 FROM tab2 cor0
----
-52
-53
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT - - ( - 91 ) + + + MIN( DISTINCT + col1 ) FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-6288
SELECT - - ( - 91 ) + + + MIN ( DISTINCT + col1 ) FROM tab2 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT DISTINCT - - 70 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-6289
SELECT DISTINCT - - 70 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6290
SELECT col2 * + - col2 * col0 + - col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6290
SELECT col2 * + - col2 * col0 + - col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col2 * col0 > NULL
----

query I rowsort
SELECT DISTINCT - 36 + + + col1 FROM tab2
----
15
31
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT - 20 * - COUNT( DISTINCT + 44 ) FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-6293
SELECT - 20 * - COUNT ( DISTINCT + 44 ) FROM tab2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT MIN( ALL - - 78 ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-6294
SELECT MIN ( ALL - - 78 ) FROM tab2
----
78

query I rowsort
SELECT - 6 AS col2 FROM tab0 WHERE NULL IS NULL
----
-6
-6
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6296
SELECT CAST( + col1 AS SIGNED ) AS col2, - ( + col2 ) AS col0 FROM tab0
----
1
-99
21
-10
81
-47

skipif mysql # not compatible
query II rowsort label-6296
SELECT CAST ( + col1 AS INTEGER ) AS col2, - ( + col2 ) AS col0 FROM tab0
----
1
-99
21
-10
81
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6297
SELECT ALL + 76 * + col0 + + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6297
SELECT ALL + 76 * + col0 + + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6298
SELECT DISTINCT + 80 * CAST( 19 AS SIGNED ) FROM tab1 AS cor0
----
1520

skipif mysql # not compatible
query I rowsort label-6298
SELECT DISTINCT + 80 * CAST ( 19 AS INTEGER ) FROM tab1 AS cor0
----
1520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6299
SELECT + 54 DIV COUNT( * ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-6299
SELECT + 54 / COUNT ( * ) FROM tab2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT - + ( SUM( ALL - col0 ) ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-6300
SELECT - + ( SUM ( ALL - col0 ) ) AS col1 FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT - 2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + + col0 * + - col1 * 49 AS col1 FROM tab1 AS cor0
----
-20825
-209573
-34986

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 * col1 * + - col1, + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6304
SELECT - col2 * + CAST( NULL AS SIGNED ) + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6304
SELECT - col2 * + CAST ( NULL AS INTEGER ) + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6305
SELECT + COUNT( * ), COUNT( * ) * - COUNT( * ) * ( 29 ) AS col0 FROM tab2
----
3
-261

skipif mysql # not compatible
query II rowsort label-6305
SELECT + COUNT ( * ), COUNT ( * ) * - COUNT ( * ) * ( 29 ) AS col0 FROM tab2
----
3
-261

onlyif mysql # DIV for integer division: 
query I rowsort label-6306
SELECT + col1 * - - col2 DIV + - col2 AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6306
SELECT + col1 * - - col2 / + - col2 AS col0 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT 33 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col1 AS col1, 73 AS col0 FROM tab0
----
1
73
21
73
81
73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6309
SELECT DISTINCT - SUM( - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6309
SELECT DISTINCT - SUM ( - CAST ( NULL AS REAL ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6310
SELECT ALL COUNT( * ) * - CAST( - - 32 AS SIGNED ) FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL COUNT ( * ) * - CAST ( - - 32 AS INTEGER ) FROM tab2
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL col1, 27 AS col1, - - col0 col1 FROM tab0
----
9 values hashing to 0eeba65f09cb02dfd975fb6cc8486554

query I rowsort
SELECT + 99 * col0 * - col0 FROM tab0 AS cor0
----
-22275
-749331
-931491

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6313
SELECT * FROM tab0 AS cor0 WHERE NULL > - ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6313
SELECT * FROM tab0 AS cor0 WHERE NULL > - ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6314
SELECT DISTINCT - - CAST( NULL AS DECIMAL ), COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6314
SELECT DISTINCT - - CAST ( NULL AS REAL ), COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL
3

query I rowsort
SELECT - - 26 + + 1 AS col0 FROM tab1 cor0
----
27
27
27

onlyif mysql # DIV for integer division: 
query I rowsort label-6316
SELECT - ( + col2 ) DIV 94 + col1 * - col2 FROM tab0 AS cor0
----
-100
-210
-3807

skipif mysql # not compatible
query I rowsort label-6316
SELECT - ( + col2 ) / 94 + col1 * - col2 FROM tab0 AS cor0
----
-100
-210
-3807

query I rowsort
SELECT - - 0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT + COUNT( DISTINCT - 89 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-6318
SELECT + COUNT ( DISTINCT - 89 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

query I rowsort
SELECT DISTINCT + + 95 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
95

query I rowsort
SELECT + ( 73 ) AS col0 FROM tab2
----
73
73
73

query I rowsort
SELECT ALL 40 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT DISTINCT + SUM( - + col2 ) - 54 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-172

skipif mysql # not compatible
query I rowsort label-6322
SELECT DISTINCT + SUM ( - + col2 ) - 54 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-172

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 * col2 NOT BETWEEN + col1 AND + col2
----

query I rowsort
SELECT + 78 * ( 93 ) FROM tab0 AS cor0
----
7254
7254
7254

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT - + ( + COUNT( * ) ) * - COUNT( * ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-6325
SELECT - + ( + COUNT ( * ) ) * - COUNT ( * ) FROM tab2 cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6326
SELECT 72 * + 33 AS col1, ( - COUNT( * ) ) * + COUNT( * ) + 44 col2 FROM tab0 AS cor0
----
2376
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6326
SELECT 72 * + 33 AS col1, ( - COUNT ( * ) ) * + COUNT ( * ) + 44 col2 FROM tab0 AS cor0
----
2376
35

query I rowsort
SELECT DISTINCT 58 * - col2 - - col1 FROM tab0 AS cor0
----
-2645
-559
-5741

query I rowsort
SELECT ALL + ( 37 ) * 82 AS col1 FROM tab2 AS cor0
----
3034
3034
3034

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT - - COUNT( * ) - + MIN( col2 ) AS col2 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-6329
SELECT - - COUNT ( * ) - + MIN ( col2 ) AS col2 FROM tab1 AS cor0
----
-56

query I rowsort
SELECT col2 - - col0 * + col1 AS col2 FROM tab0 AS cor0
----
1262
1837
196

query I rowsort
SELECT ALL - + col2 * col1 * col2 AS col1 FROM tab2 AS cor0
----
-123200
-225388
-26979

onlyif mysql # DIV for integer division: 
query I rowsort label-6332
SELECT - 43 - - 18 DIV - col2 FROM tab2 AS cor0
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-6332
SELECT - 43 - - 18 / - col2 FROM tab2 AS cor0
----
-43
-43
-43

query I rowsort
SELECT DISTINCT col0 * 14 - + col0 FROM tab1 AS cor0
----
1105
1183
663

query I rowsort
SELECT ALL 87 * col0 + + - col0 - + 55 FROM tab0
----
1235
7427
8287

query I rowsort
SELECT col1 * + 4 AS col2 FROM tab0
----
324
4
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT ALL - MIN( DISTINCT - + col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL - MIN ( DISTINCT - + col2 ) AS col0 FROM tab0
----
99

query II rowsort
SELECT + col1 AS col2, col1 AS col0 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT ALL - + COUNT( * ) * - ( + - 30 ) AS col1 FROM tab0 cor0
----
-90

skipif mysql # not compatible
query I rowsort label-6338
SELECT ALL - + COUNT ( * ) * - ( + - 30 ) AS col1 FROM tab0 cor0
----
-90

query II rowsort
SELECT 89 AS col1, + 73 AS col1 FROM tab1 AS cor0 WHERE NOT + 23 > ( NULL )
----

query I rowsort
SELECT ALL 91 * - + 19 FROM tab0 cor0
----
-1729
-1729
-1729

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col2 / + - ( - 61 ) + + + 90 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6342
SELECT + col0 DIV 61 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6342
SELECT + col0 / 61 FROM tab0
----
0
1
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 93 + + col1 + col1 + - + col1 - + col0 IS NOT NULL
----

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT NULL < col0 - 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT ALL - + ( - ( COUNT( * ) ) ) + + COUNT( - 87 ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6345
SELECT ALL - + ( - ( COUNT ( * ) ) ) + + COUNT ( - 87 ) FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6346
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT ALL - col1 * - + col0 + col2 AS col2 FROM tab0 cor0
----
1262
1837
196

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT DISTINCT + COUNT( * ) + - ( - COUNT( * ) ) * 53 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-6348
SELECT DISTINCT + COUNT ( * ) + - ( - COUNT ( * ) ) * 53 FROM tab0
----
162

query I rowsort
SELECT col0 * + col2 AS col0 FROM tab0 WHERE + col2 IS NULL
----

query I rowsort
SELECT 92 + - 92 - col2 + - col1 + + col1 * + - col1 * - col2 AS col1 FROM tab0
----
-1
308239
4379

query III rowsort
SELECT * FROM tab0 WHERE + + col2 NOT IN ( col1, - col1 * col0, - ( col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT COUNT( * ) + + 66 AS col1 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-6352
SELECT COUNT ( * ) + + 66 AS col1 FROM tab1
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6353
SELECT CAST( - + col1 AS SIGNED ) + - + ( + col2 ) * + col0 * - 31 * col0 col2 FROM tab0
----
2346369
28876220
327744

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6353
SELECT CAST ( - + col1 AS INTEGER ) + - + ( + col2 ) * + col0 * - 31 * col0 col2 FROM tab0
----
2346369
28876220
327744

query I rowsort
SELECT ALL - col0 + + col0 + - col2 - col2 FROM tab2
----
-116
-46
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT DISTINCT - MIN( DISTINCT + - 67 ) + - 91 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-6355
SELECT DISTINCT - MIN ( DISTINCT + - 67 ) + - 91 FROM tab1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT DISTINCT ( - MIN( DISTINCT - col1 ) ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6356
SELECT DISTINCT ( - MIN ( DISTINCT - col1 ) ) FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6357
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - CAST( NULL AS SIGNED ) > + 41 + 40
----

skipif mysql # not compatible
query IIIIII rowsort label-6357
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - CAST ( NULL AS INTEGER ) > + 41 + 40
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6358
SELECT DISTINCT + col1 DIV - - col2 + - + col1 FROM tab0
----
-1
-19
-80

skipif mysql # not compatible
query I rowsort label-6358
SELECT DISTINCT + col1 / - - col2 + - + col1 FROM tab0
----
-1
-19
-80

query I rowsort
SELECT ( - col1 ) * + col1 - 47 AS col2 FROM tab1
----
-2256
-243
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT MIN( - col1 ) + + 25 FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-6360
SELECT MIN ( - col1 ) + + 25 FROM tab2
----
-52

query I rowsort
SELECT ALL - col0 - - 93 FROM tab1 AS cor0
----
2
42
8

query I rowsort
SELECT DISTINCT - - col0 * - - 97 * + 63 FROM tab0 AS cor0
----
531657
592767
91665

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT DISTINCT MIN( DISTINCT 49 ) AS col1 FROM tab0 cor0
----
49

skipif mysql # not compatible
query I rowsort label-6363
SELECT DISTINCT MIN ( DISTINCT 49 ) AS col1 FROM tab0 cor0
----
49

query II rowsort
SELECT ALL col1 + 2 AS col1, col0 * + col1 AS col2 FROM tab2 AS cor0
----
53
2346
69
5025
79
4928

query I rowsort
SELECT - - 90 * - col1 AS col0 FROM tab2 cor0
----
-4590
-6030
-6930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6366
SELECT - 12 DIV COUNT( * ) FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-6366
SELECT - 12 / COUNT ( * ) FROM tab0 AS cor0
----
-4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - col0 * + col1 IS NULL )
----

query I rowsort
SELECT + 76 * + - col0 FROM tab2
----
-3496
-4864
-5700

query I rowsort
SELECT 99 * - ( - ( - + ( 94 ) ) ) AS col0 FROM tab2
----
-9306
-9306
-9306

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6370
SELECT DISTINCT * FROM tab0 WHERE NOT col2 NOT BETWEEN NULL AND + 71 OR + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6370
SELECT DISTINCT * FROM tab0 WHERE NOT col2 NOT BETWEEN NULL AND + 71 OR + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT ALL - SUM( ALL + col2 ) * COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
-465

skipif mysql # not compatible
query I rowsort label-6371
SELECT ALL - SUM ( ALL + col2 ) * COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
-465

onlyif mysql # DIV for integer division: 
query I rowsort label-6372
SELECT ALL - col0 DIV - - col2 AS col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6372
SELECT ALL - col0 / - - col2 AS col1 FROM tab1 AS cor0
----
-1
-1
0

query II rowsort
SELECT DISTINCT + 1 AS col0, + 8 AS col2 FROM tab1
----
1
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT DISTINCT COUNT( DISTINCT 26 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6374
SELECT DISTINCT COUNT ( DISTINCT 26 ) FROM tab1
----
1

query I rowsort
SELECT DISTINCT + + 98 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6376
SELECT COUNT( * ) DIV + + 5 + + 56 * + + COUNT( * ) - + 97 FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-6376
SELECT COUNT ( * ) / + + 5 + + 56 * + + COUNT ( * ) - + 97 FROM tab1 AS cor0
----
71

query I rowsort
SELECT + 14 + + 65 FROM tab1 AS cor0
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT ALL + 31 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL + 31 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6379
SELECT ( + CAST( - col0 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6379
SELECT ( + CAST ( - col0 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6380
SELECT DISTINCT * FROM tab1 cor0 WHERE + col2 * - + CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6380
SELECT DISTINCT * FROM tab1 cor0 WHERE + col2 * - + CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 + + - col0 + - + col1 + col1 FROM tab0
----
-66
-96
66

query II rowsort
SELECT + 17 AS col2, col0 - - 35 + - col1 * + 96 * col0 FROM tab0 WHERE - + 59 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT ALL + MAX( - 63 ) AS col0 FROM tab0 WHERE NOT + col1 + - + col0 IS NULL
----
-63

skipif mysql # not compatible
query I rowsort label-6383
SELECT ALL + MAX ( - 63 ) AS col0 FROM tab0 WHERE NOT + col1 + - + col0 IS NULL
----
-63

query I rowsort
SELECT DISTINCT - 16 + - col1 + col0 FROM tab2
----
-21
-29
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6385
SELECT ALL CAST( + ( - + col0 ) AS SIGNED ) * - 46, col0 AS col0 FROM tab1
----
2346
51
3910
85
4186
91

skipif mysql # not compatible
query II rowsort label-6385
SELECT ALL CAST ( + ( - + col0 ) AS INTEGER ) * - 46, col0 AS col0 FROM tab1
----
2346
51
3910
85
4186
91

query I rowsort
SELECT DISTINCT - col1 + col0 + 60 + - col2 FROM tab1
----
1
36
81

onlyif mysql # aggregate syntax: 
query II rowsort label-6387
SELECT ALL - COUNT( * ) * + - COUNT( * ), 55 AS col0 FROM tab0
----
9
55

skipif mysql # not compatible
query II rowsort label-6387
SELECT ALL - COUNT ( * ) * + - COUNT ( * ), 55 AS col0 FROM tab0
----
9
55

onlyif mysql # aggregate syntax: 
query II rowsort label-6388
SELECT + - 90 + + + 95 col0, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
5
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6388
SELECT + - 90 + + + 95 col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
5
-3

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-51
-67
-77

query I rowsort
SELECT - 40 + - col2 FROM tab1 AS cor0
----
-108
-136
-99

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE ( + col0 * - 18 * - col0 ) IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT + 54 + + col1 + - 54 * 15 FROM tab1 AS cor0
----
-709
-742
-751

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT MAX( ALL col2 ) AS col0 FROM tab0 AS cor0 WHERE col0 * + + col2 - + - col0 IS NOT NULL
----
99

skipif mysql # not compatible
query I rowsort label-6393
SELECT MAX ( ALL col2 ) AS col0 FROM tab0 AS cor0 WHERE col0 * + + col2 - + - col0 IS NOT NULL
----
99

query I rowsort
SELECT - 12 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT DISTINCT + ( - col2 ) - - col0 + - col0 * + 99 FROM tab1 AS cor0
----
-5094
-8389
-8986

onlyif mysql # aggregate syntax: 
query II rowsort label-6396
SELECT ALL + 30 AS col0, + MAX( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
30
77

skipif mysql # not compatible
query II rowsort label-6396
SELECT ALL + 30 AS col0, + MAX ( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
30
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT MIN( - - col0 ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-6397
SELECT MIN ( - - col0 ) AS col1 FROM tab2 AS cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 22 col1 FROM tab0 AS cor0
----
-1782
-22
-462

query I rowsort
SELECT - ( 39 ) AS col2 FROM tab1 AS cor0
----
-39
-39
-39

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * + - ( + - 56 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6401
SELECT - CAST( + - 17 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-6401
SELECT - CAST ( + - 17 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
17
17
17

query II rowsort
SELECT ALL + col2, + col2 AS col2 FROM tab1 cor0
----
59
59
68
68
96
96

query II rowsort
SELECT DISTINCT + col2, 47 FROM tab1 cor0
----
59
47
68
47
96
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col1, col1 col1 FROM tab0
----
10
21
47
81
99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 13, - col0 col2 FROM tab1 AS cor0
----
13
-51
13
-85
13
-91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 39 * 37 * - - col1 - + 2 + + + 67 + 92 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT - COUNT( ALL + + col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6407
SELECT - COUNT ( ALL + + col0 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6408
SELECT ALL - col2 DIV + ( - + CAST( - col0 AS SIGNED ) ) AS col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL - col2 / + ( - + CAST ( - col0 AS INTEGER ) ) AS col0 FROM tab0
----
-1
-3
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6409
SELECT ALL - + col2 DIV - + col1 col2, col2 AS col0 FROM tab0 AS cor0
----
0
10
0
47
99
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6409
SELECT ALL - + col2 / - + col1 col2, col2 AS col0 FROM tab0 AS cor0
----
0
10
0
47
99
99

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 84 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE - col2 * - + 75 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6411
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE - col2 * - + 75 IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 * col0 * col2 <> - col1 + 40
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * + col0 * 82 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6414
SELECT MAX( - col2 ) * 98 AS col2, COUNT( * ) AS col1 FROM tab2 AS cor0
----
-2254
3

skipif mysql # not compatible
query II rowsort label-6414
SELECT MAX ( - col2 ) * 98 AS col2, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-2254
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6415
SELECT + - COUNT( DISTINCT 14 ) DIV - COUNT( * ) - 81 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-81

skipif mysql # not compatible
query I rowsort label-6415
SELECT + - COUNT ( DISTINCT 14 ) / - COUNT ( * ) - 81 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT DISTINCT - + 46 + - COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-6416
SELECT DISTINCT - + 46 + - COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
-52

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 79 * + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col1 + - col0 col0, + ( - 52 ) * - 15 FROM tab2 cor0
----
-141
780
-142
780
-97
780

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT ( + - COUNT( ALL col0 ) ) FROM tab1 WHERE + col0 + + - col2 <> 99
----
-3

skipif mysql # not compatible
query I rowsort label-6419
SELECT ( + - COUNT ( ALL col0 ) ) FROM tab1 WHERE + col0 + + - col2 <> 99
----
-3

query I rowsort
SELECT ALL ( + - 52 ) FROM tab0
----
-52
-52
-52

query I rowsort
SELECT col0 + + - 9 FROM tab0
----
6
78
88

query I rowsort
SELECT + 31 + col0 FROM tab0
----
118
128
46

query I rowsort
SELECT ALL col0 - - ( - 98 ) + col0 + - 62 FROM tab0
----
-130
14
34

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND 91
----

query II rowsort
SELECT 5 AS col2, - col2 + 60 FROM tab2
----
5
2
5
20
5
37

query I rowsort
SELECT + + 29 + - + col0 FROM tab1 AS cor0 WHERE ( NULL ) < + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6427
SELECT 35 - + 49 DIV + + col0 FROM tab0
----
32
35
35

skipif mysql # not compatible
query I rowsort label-6427
SELECT 35 - + 49 / + + col0 FROM tab0
----
32
35
35

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col1 = 22
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT - 7 * - COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6429
SELECT - 7 * - COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6430
SELECT - + CAST( 30 AS DECIMAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6430
SELECT - + CAST ( 30 AS REAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT ALL MIN( DISTINCT - - 12 ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL MIN ( DISTINCT - - 12 ) FROM tab0 AS cor0
----
12

query I rowsort
SELECT DISTINCT - - 67 FROM tab0 cor0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT - ( + COUNT( * ) ) * - COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6435
SELECT - ( + COUNT ( * ) ) * - COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6436
SELECT MAX( - + col2 ) AS col2, COUNT( * ) FROM tab1 AS cor0
----
-59
3

skipif mysql # not compatible
query II rowsort label-6436
SELECT MAX ( - + col2 ) AS col2, COUNT ( * ) FROM tab1 AS cor0
----
-59
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT + 48 * SUM( ALL - 90 ) + - + 27 AS col1 FROM tab1 AS cor0
----
-12987

skipif mysql # not compatible
query I rowsort label-6437
SELECT + 48 * SUM ( ALL - 90 ) + - + 27 AS col1 FROM tab1 AS cor0
----
-12987

onlyif mysql # DIV for integer division: 
query I rowsort label-6438
SELECT + 68 DIV + col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6438
SELECT + 68 / + col2 FROM tab1
----
0
1
1

query III rowsort
SELECT * FROM tab1 WHERE NOT - 13 <= + 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT - ( + + COUNT( * ) ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6440
SELECT - ( + + COUNT ( * ) ) col2 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6441
SELECT DISTINCT - 12 / - CAST( ( 23 ) AS SIGNED ) + - col0 AS col2 FROM tab1 WHERE NOT + + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6441
SELECT DISTINCT - 12 / - CAST ( ( 23 ) AS INTEGER ) + - col0 AS col2 FROM tab1 WHERE NOT + + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 + - col1 FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - 36, 7 * - col0, + col0 * col0, - col1 )
----

query II rowsort
SELECT ALL col2 AS col0, col0 + + col1 FROM tab2 AS cor0
----
23
97
40
141
58
142

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT - SUM( + col0 ) * 37 * - COUNT( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
25197

skipif mysql # not compatible
query I rowsort label-6444
SELECT - SUM ( + col0 ) * 37 * - COUNT ( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
25197

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT ALL - - MIN( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL - - MIN ( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
5

query I rowsort
SELECT ALL + 86 + + 84 * - 1 * + - ( - 24 ) * - col0 * + 42 AS col2 FROM tab0 AS cor0
----
1270166
7366550
8213270

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT DISTINCT + SUM( DISTINCT + 25 ) col2 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6447
SELECT DISTINCT + SUM ( DISTINCT + 25 ) col2 FROM tab2 AS cor0
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 61 col2 FROM tab1
----
3599
4148
5856

query I rowsort
SELECT DISTINCT col0 * + - col1 FROM tab0
----
-1215
-1827
-97

query II rowsort
SELECT ALL - 67 + col2 + - + ( + col2 ) AS col0, 95 * + col2 FROM tab0
----
-67
4465
-67
9405
-67
950

query II rowsort
SELECT DISTINCT - + col1 * col1 AS col1, col2 FROM tab1 AS cor0
----
-196
96
-2209
68
-25
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6452
SELECT - - col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6452
SELECT - - col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT + - ( - - MAX( col2 ) ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-6453
SELECT + - ( - - MAX ( col2 ) ) AS col0 FROM tab2 AS cor0
----
-58

query II rowsort
SELECT ALL - col0 AS col0, - col2 FROM tab0 AS cor0
----
-15
-47
-87
-10
-97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT + MIN( - + 50 ) FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-6455
SELECT + MIN ( - + 50 ) FROM tab1 AS cor0
----
-50

query I rowsort
SELECT - + 22 * + col2 * + col2 FROM tab1 AS cor0
----
-101728
-202752
-76582

query I rowsort
SELECT + 73 * + + col2 FROM tab1
----
4307
4964
7008

onlyif mysql # DIV for integer division: 
query I rowsort label-6458
SELECT ALL col2 DIV ( col0 ) + - 49 AS col0 FROM tab2
----
-49
-49
-49

skipif mysql # not compatible
query I rowsort label-6458
SELECT ALL col2 / ( col0 ) + - 49 AS col0 FROM tab2
----
-49
-49
-49

query I rowsort
SELECT ALL - col2 - - + col1 AS col1 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT ALL - col2 * + + 30 + + - col2 AS col1 FROM tab0
----
-1457
-3069
-310

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 cor0 WHERE NOT 56 + col1 * + col1 * + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6462
SELECT CAST( NULL AS DECIMAL ) * col1, - 30 AS col1 FROM tab2 AS cor0
----
NULL
-30
NULL
-30
NULL
-30

skipif mysql # not compatible
query II rowsort label-6462
SELECT CAST ( NULL AS REAL ) * col1, - 30 AS col1 FROM tab2 AS cor0
----
NULL
-30
NULL
-30
NULL
-30

query I rowsort
SELECT ALL - col2 * - 27 - + col2 AS col1 FROM tab2 AS cor0
----
1040
1508
598

query II rowsort
SELECT col1 * + col2, col0 FROM tab0 AS cor0
----
210
87
3807
15
99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6465
SELECT ALL + 11 DIV col0 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6465
SELECT ALL + 11 / col0 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( - + 93 ) FROM tab0
----
93

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 WHERE 21 * + - col0 * - ( + ( 89 ) ) + + + ( col2 ) * - - col1 IS NULL
----

query II rowsort
SELECT col1 AS col1, col1 FROM tab1 cor0
----
14
14
47
47
5
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + + col1 * - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6470
SELECT ALL + - CAST( - 2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL + - CAST ( - 2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
2
2
2

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6471
SELECT + + CAST( NULL AS DECIMAL ) AS col1, - 35 * - 32 + 69 FROM tab0 AS cor0
----
NULL
1189
NULL
1189
NULL
1189

skipif mysql # not compatible
query II rowsort label-6471
SELECT + + CAST ( NULL AS REAL ) AS col1, - 35 * - 32 + 69 FROM tab0 AS cor0
----
NULL
1189
NULL
1189
NULL
1189

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 + col1 = 42
----
15
81
47
97
1
99

query I rowsort
SELECT ALL col2 * - 40 * - 56 * 38 FROM tab0
----
4000640
8426880
851200

onlyif mysql # DIV for integer division: 
query I rowsort label-6474
SELECT ALL col2 DIV + + col0 * + 15 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6474
SELECT ALL col2 / + + col0 * + 15 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ( - - 60 ) * - col1 FROM tab0
----
-1260
-4860
-60

query I rowsort
SELECT ( + - col0 ) * + + col1 AS col0 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= - col2 OR - col1 NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6478
SELECT 0 * 68 + 42 DIV COUNT( * ) AS col2 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-6478
SELECT 0 * 68 + 42 / COUNT ( * ) AS col2 FROM tab2
----
14

query I rowsort
SELECT col1 + 70 FROM tab2
----
121
137
147

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT ALL + SUM( DISTINCT + col0 ) * - 28 FROM tab0 AS cor0
----
-5572

skipif mysql # not compatible
query I rowsort label-6480
SELECT ALL + SUM ( DISTINCT + col0 ) * - 28 FROM tab0 AS cor0
----
-5572

query II rowsort
SELECT + ( - 80 ) AS col0, + col1 * - 52 + + + 30 FROM tab2 AS cor0
----
-80
-2622
-80
-3454
-80
-3974

query I rowsort
SELECT ALL col0 + - col1 + + 7 + col0 * + ( col1 ) AS col0 FROM tab0 AS cor0
----
1156
1900
200

query III rowsort
SELECT * FROM tab1 WHERE - + ( - - 7 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-6484
SELECT ALL col0 DIV col0 + + 6, col2 + - col2 AS col1 FROM tab2
----
7
0
7
0
7
0

skipif mysql # not compatible
query II rowsort label-6484
SELECT ALL col0 / col0 + + 6, col2 + - col2 AS col1 FROM tab2
----
7
0
7
0
7
0

query I rowsort
SELECT - - col0 AS col2 FROM tab0 WHERE + + 51 IS NOT NULL
----
15
87
97

query I rowsort
SELECT - col2 + - - 64 AS col2 FROM tab2 AS cor0
----
24
41
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 * - col0 + ( - 72 ) col1 FROM tab0 AS cor0
----
-1272
-7032
-7832

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= 56 * + 21 * - ( + 24 ) + + + 67
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + col0 * 25 * + + 21 col2 FROM tab1 AS cor0
----
26826
44710
47866

query I rowsort
SELECT DISTINCT - ( - 11 ) + - 58 FROM tab2
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-6491
SELECT ALL - 60 + + + COUNT( * ) col1, - 77 + - 80 * + 99 col2 FROM tab1
----
-57
-7997

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6491
SELECT ALL - 60 + + + COUNT ( * ) col1, - 77 + - 80 * + 99 col2 FROM tab1
----
-57
-7997

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT DISTINCT + ( 61 ) + - SUM( col0 ) FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT + ( 61 ) + - SUM ( col0 ) FROM tab0
----
-138

query I rowsort
SELECT ALL - 22 - + ( - - 87 ) + - col2 FROM tab2
----
-132
-149
-167

query I rowsort
SELECT - - col2 FROM tab0 WHERE - 52 IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6495
SELECT ALL + CAST( + - COUNT( * ) AS SIGNED ) * + - COUNT( ALL - - CAST( - col0 AS SIGNED ) ) + - 50 FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL + CAST ( + - COUNT ( * ) AS INTEGER ) * + - COUNT ( ALL - - CAST ( - col0 AS INTEGER ) ) + - 50 FROM tab2
----
-41

query II rowsort
SELECT + col0 AS col1, ( 2 ) FROM tab0
----
15
2
87
2
97
2

query I rowsort
SELECT DISTINCT + 28 - + + col2 * - col0 - - 83 + + col2 AS col0 FROM tab1
----
5103
5185
6367

query III rowsort
SELECT * FROM tab0 WHERE - ( - col1 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6499
SELECT DISTINCT + - CAST( - COUNT( * ) AS SIGNED ) * - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6499
SELECT DISTINCT + - CAST ( - COUNT ( * ) AS INTEGER ) * - COUNT ( * ) FROM tab0 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + + col1 * + 43 FROM tab0 cor0
----
3483
43
903

onlyif mysql # DIV for integer division: 
query I rowsort label-6501
SELECT + 63 DIV + col0 AS col1 FROM tab0 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-6501
SELECT + 63 / + col0 AS col1 FROM tab0 AS cor0
----
0
0
4

onlyif mysql # DIV for integer division: 
query I rowsort label-6502
SELECT ALL + 50 DIV + ( col1 ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6502
SELECT ALL + 50 / + ( col1 ) AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6503
SELECT 27 DIV - ( - SUM( DISTINCT col1 ) ) col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6503
SELECT 27 / - ( - SUM ( DISTINCT col1 ) ) col1 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6504
SELECT - col0 + - 11, - col1 FROM tab2 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ), 76, + CAST( NULL AS SIGNED ), + col2 * CAST( + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query II rowsort label-6504
SELECT - col0 + - 11, - col1 FROM tab2 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ), 76, + CAST ( NULL AS INTEGER ), + col2 * CAST ( + col2 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 + + 31 - + 13 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + 48 * + col1 FROM tab0 AS cor0
----
1008
3888
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6507
SELECT SUM( DISTINCT - CAST( NULL AS SIGNED ) ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6507
SELECT SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT DISTINCT - + COUNT( * ) FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN - - col1 - + - 88 AND + col2 + - col1
----
-3

skipif mysql # not compatible
query I rowsort label-6508
SELECT DISTINCT - + COUNT ( * ) FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN - - col1 - + - 88 AND + col2 + - col1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col2 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT DISTINCT - + SUM( DISTINCT col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-6510
SELECT DISTINCT - + SUM ( DISTINCT col0 ) FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6511
SELECT ALL SUM( 7 ) DIV - COUNT( * ) FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL SUM ( 7 ) / - COUNT ( * ) FROM tab1 AS cor0
----
-7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 / - - col0 = - 49 * + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - col0 * + + 85 FROM tab1 AS cor0
----
-4335
-7225
-7735

query I rowsort
SELECT 24 * - col1 FROM tab1
----
-1128
-120
-336

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT ( + col1 + - - col0 ) BETWEEN 24 AND - + col0 * - 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT COUNT( * ) * + 1 * - MIN( ALL + col1 ) * - MIN( - + col0 ) FROM tab2
----
-11475

skipif mysql # not compatible
query I rowsort label-6516
SELECT COUNT ( * ) * + 1 * - MIN ( ALL + col1 ) * - MIN ( - + col0 ) FROM tab2
----
-11475

query I rowsort
SELECT DISTINCT col2 * + col1 + - col1 AS col2 FROM tab0
----
189
3726
98

query II rowsort
SELECT col0, - col0 + - + col1 FROM tab1
----
51
-65
85
-90
91
-138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col2, + 88 col1 FROM tab1
----
14
88
47
88
5
88

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col2 > + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6521
SELECT COUNT( * ) + - AVG ( CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6521
SELECT COUNT ( * ) + - AVG ( CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 87 col2 FROM tab0
----
6
66
86

query I rowsort
SELECT 83 FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND 8 * - 64
----

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + 46 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( 34 + 33 ) NOT IN ( - col0 + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE + 4 + - 64 * 49 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6527
SELECT ALL + CAST( NULL AS SIGNED ) + 85 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6527
SELECT ALL + CAST ( NULL AS INTEGER ) + 85 col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT 87 + + col2 BETWEEN - 43 / + col0 AND NULL
----

query I rowsort
SELECT col0 + - 40 / 68 AS col1 FROM tab0 WHERE ( NULL ) BETWEEN col2 AND 2
----

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE + 80 * + 67 IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT DISTINCT - ( - 82 ) + COUNT( * ) FROM tab2 WHERE ( NULL ) IS NULL
----
85

skipif mysql # not compatible
query I rowsort label-6531
SELECT DISTINCT - ( - 82 ) + COUNT ( * ) FROM tab2 WHERE ( NULL ) IS NULL
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT + COUNT( * ) * + 39 AS col1 FROM tab0
----
117

skipif mysql # not compatible
query I rowsort label-6532
SELECT + COUNT ( * ) * + 39 AS col1 FROM tab0
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6533
SELECT ALL COUNT( * ) FROM tab1 WHERE - CAST( col2 AS SIGNED ) * col1 <> 29 * - col2
----
3

skipif mysql # not compatible
query I rowsort label-6533
SELECT ALL COUNT ( * ) FROM tab1 WHERE - CAST ( col2 AS INTEGER ) * col1 <> 29 * - col2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col0 col2 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT ALL - 12 AS col1 FROM tab1 WHERE NOT col1 NOT BETWEEN ( - 30 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT COUNT( * ) FROM tab2 WHERE NOT - 10 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6536
SELECT COUNT ( * ) FROM tab2 WHERE NOT - 10 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - col2 * col2 + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( - 31 ) IS NULL
----

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 WHERE NOT ( NULL ) IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT ALL COUNT( * ) col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6540
SELECT ALL COUNT ( * ) col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6541
SELECT DISTINCT - 94 / SUM( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 WHERE NOT ( + ( + 25 ) * + col0 ) <= 94 / - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6541
SELECT DISTINCT - 94 / SUM ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 WHERE NOT ( + ( + 25 ) * + col0 ) <= 94 / - col1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( - 18 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( col2 ) FROM tab0 WHERE ( NULL ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6544
SELECT ALL 92 - 57 * - CAST( col0 + col1 AS SIGNED ) FROM tab0
----
5564
5678
6248

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL 92 - 57 * - CAST ( col0 + col1 AS INTEGER ) FROM tab0
----
5564
5678
6248

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT ALL COUNT( * ) * MAX( DISTINCT 74 ) AS col2 FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-6545
SELECT ALL COUNT ( * ) * MAX ( DISTINCT 74 ) AS col2 FROM tab2
----
222

query I rowsort
SELECT ALL + col1 * - ( 3 ) AS col2 FROM tab1
----
-141
-15
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-6547
SELECT + col0 DIV - ( - col2 ) FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-6547
SELECT + col0 / - ( - col2 ) FROM tab0
----
0
0
8

query I rowsort
SELECT ALL - 13 - + 71 AS col1 FROM tab1 WHERE NULL < ( NULL )
----

query I rowsort
SELECT + 44 - - 0 AS col0 FROM tab1
----
44
44
44

onlyif mysql # DIV for integer division: 
query I rowsort label-6550
SELECT DISTINCT + ( col1 ) DIV + col0 FROM tab0
----
0
5

skipif mysql # not compatible
query I rowsort label-6550
SELECT DISTINCT + ( col1 ) / + col0 FROM tab0
----
0
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6551
SELECT DISTINCT 0 DIV COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6551
SELECT DISTINCT 0 / COUNT ( * ) AS col0 FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE - col1 < col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT 54 + col1 < ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT 13 * COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 + + col0 IS NULL
----
39

skipif mysql # not compatible
query I rowsort label-6555
SELECT 13 * COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 + + col0 IS NULL
----
39

query I rowsort
SELECT - ( + ( - ( - col1 ) ) ) * 78 FROM tab2
----
-3978
-5226
-6006

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT - MAX( DISTINCT col1 ) * MAX( col0 * 7 + + col2 ) FROM tab2
----
-44891

skipif mysql # not compatible
query I rowsort label-6557
SELECT - MAX ( DISTINCT col1 ) * MAX ( col0 * 7 + + col2 ) FROM tab2
----
-44891

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0
----
-9

skipif mysql # not compatible
query I rowsort label-6558
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT ALL - COUNT( * ) * COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0
----
-81

skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0
----
-81

query I rowsort
SELECT DISTINCT - col2 * + 34 FROM tab2 AS cor0
----
-1360
-1972
-782

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE ( ( - 48 ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6562
SELECT col0 DIV - CAST( 52 AS SIGNED ) FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6562
SELECT col0 / - CAST ( 52 AS INTEGER ) FROM tab0 AS cor0
----
-1
-1
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6563
SELECT DISTINCT + 63 * CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6563
SELECT DISTINCT + 63 * CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 78 > ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6565
SELECT ALL MIN( - col2 ) DIV + MIN( DISTINCT col1 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL MIN ( - col2 ) / + MIN ( DISTINCT col1 ) FROM tab2 AS cor0
----
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( + ( - 97 ) * - col0 ) OR NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - col1 col2 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT + 40 / + col1 - - 64 FROM tab2 WHERE NOT 97 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 18 <> NULL
----

query I rowsort
SELECT 11 + - 94 FROM tab2
----
-83
-83
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-6571
SELECT + col1 + + col0 DIV col2 AS col2 FROM tab0
----
1
29
81

skipif mysql # not compatible
query I rowsort label-6571
SELECT + col1 + + col0 / col2 AS col2 FROM tab0
----
1
29
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT 34 + + COUNT( * ) FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-6572
SELECT 34 + + COUNT ( * ) FROM tab1
----
37

query I rowsort
SELECT - col1 * + 41 + 24 AS col2 FROM tab1
----
-181
-1903
-550

onlyif mysql # DIV for integer division: 
query I rowsort label-6574
SELECT + col2 DIV + 51 + + 88 AS col1 FROM tab1
----
89
89
89

skipif mysql # not compatible
query I rowsort label-6574
SELECT + col2 / + 51 + + 88 AS col1 FROM tab1
----
89
89
89

query I rowsort
SELECT 60 + - 21 + 18 FROM tab0
----
57
57
57

query I rowsort
SELECT ALL 70 FROM tab1 WHERE NOT - col2 IN ( 33 * - col2 + - col1 )
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT DISTINCT - 66 * + COUNT( * ) AS col1 FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-6577
SELECT DISTINCT - 66 * + COUNT ( * ) AS col1 FROM tab1
----
-198

query I rowsort
SELECT ALL + 45 FROM tab0 AS cor0 WHERE NOT ( + col0 ) <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 44 IN ( col0 )
----

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT + COUNT( - 29 ) FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6581
SELECT + COUNT ( - 29 ) FROM tab2, tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT COUNT( * ) FROM tab0 WHERE + col1 * + 57 + col0 BETWEEN - col1 * col0 AND col2
----
0

skipif mysql # not compatible
query I rowsort label-6582
SELECT COUNT ( * ) FROM tab0 WHERE + col1 * + 57 + col0 BETWEEN - col1 * col0 AND col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 56 - + col0 col2 FROM tab0
----
-143
-153
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT COUNT( * ) col0 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6584
SELECT COUNT ( * ) col0 FROM tab0, tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 WHERE - - col1 * + 69 > - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * 36 - - col2 * + col2 FROM tab0
----
5125
856
9837

query I rowsort
SELECT - 36 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query I rowsort
SELECT + 91 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6589
SELECT ALL 86 * col2 - - 45 DIV + col2 FROM tab1 cor0
----
5074
5848
8256

skipif mysql # not compatible
query I rowsort label-6589
SELECT ALL 86 * col2 - - 45 / + col2 FROM tab1 cor0
----
5074
5848
8256

onlyif mysql # DIV for integer division: 
query I rowsort label-6590
SELECT ALL col2 DIV + col2 - - + col1 AS col1 FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-6590
SELECT ALL col2 / + col2 - - + col1 AS col1 FROM tab0 AS cor0
----
2
22
82

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 12 < + 20
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6592
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( + col0 * - 54 * + ( col1 ) + CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6592
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( + col0 * - 54 * + ( col1 ) + CAST ( col1 AS INTEGER ) )
----

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT + 45 <= NULL
----

query II rowsort
SELECT ALL col1 AS col2, col1 FROM tab0 cor0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6595
SELECT - CAST( NULL AS SIGNED ) + - col2 + - col0 / - 56 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6595
SELECT - CAST ( NULL AS INTEGER ) + - col2 + - col0 / - 56 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6596
SELECT + col1 DIV + 85 AS col0 FROM tab0 AS cor0 WHERE col1 NOT IN ( col0 + col1 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6596
SELECT + col1 / + 85 AS col0 FROM tab0 AS cor0 WHERE col1 NOT IN ( col0 + col1 )
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6597
SELECT - + CAST( NULL AS SIGNED ) * + 83 + + col1 / - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6597
SELECT - + CAST ( NULL AS INTEGER ) * + 83 + + col1 / - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 36 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT ALL COUNT( * ) + 94 AS col0 FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-6599
SELECT ALL COUNT ( * ) + 94 AS col0 FROM tab0 cor0
----
97

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 WHERE - col1 * - 35 > 60
----
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-6601
SELECT ALL ( - 32 ) DIV - 77 * - 31 + - col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-6601
SELECT ALL ( - 32 ) / - 77 * - 31 + - col0 FROM tab0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6602
SELECT + 58 DIV 60 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6602
SELECT + 58 / 60 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 63 <= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 + - col0 + col1 * + col0 NOT BETWEEN NULL AND + ( col1 ) + col1 / - 28
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 17 FROM tab0 WHERE NOT col0 * + + 84 + - 44 NOT BETWEEN NULL AND ( NULL ) AND 43 <> - col0
----

query I rowsort
SELECT - 97 AS col2 FROM tab0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT 45 * MAX( DISTINCT col2 ) * + 43 AS col0 FROM tab1 cor0 WHERE NOT ( 54 ) IS NULL
----
185760

skipif mysql # not compatible
query I rowsort label-6607
SELECT 45 * MAX ( DISTINCT col2 ) * + 43 AS col0 FROM tab1 cor0 WHERE NOT ( 54 ) IS NULL
----
185760

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT + SUM( ALL + - 94 ) AS col2 FROM tab0 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-6608
SELECT + SUM ( ALL + - 94 ) AS col2 FROM tab0 AS cor0
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT - ( - SUM( 10 ) ) * + COUNT( * ) AS col0 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-6609
SELECT - ( - SUM ( 10 ) ) * + COUNT ( * ) AS col0 FROM tab0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT ALL ( - - 61 ) * - COUNT( ALL + - col0 ) + - SUM( - 78 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL ( - - 61 ) * - COUNT ( ALL + - col0 ) + - SUM ( - 78 ) FROM tab2
----
51

query I rowsort
SELECT - col1 * 73 + - col0 * + col0 FROM tab1 WHERE NOT + + col1 NOT BETWEEN NULL AND ( + - 97 + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6612
SELECT ALL CAST( + + 1 AS SIGNED ) * + COUNT( * ) * + + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL CAST ( + + 1 AS INTEGER ) * + COUNT ( * ) * + + COUNT ( * ) FROM tab2
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * - col2 + + ( + 87 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6614
SELECT + COUNT( * ) DIV - 36 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6614
SELECT + COUNT ( * ) / - 36 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
0

query I rowsort
SELECT - ( + 67 ) FROM tab1 AS cor0
----
-67
-67
-67

query I rowsort
SELECT - - ( - + 58 ) FROM tab1 cor0
----
-58
-58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6617
SELECT - - CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-6617
SELECT - - CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6618
SELECT ALL COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6619
SELECT * FROM tab0 cor0 WHERE NOT + ( + CAST( NULL AS DECIMAL ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6619
SELECT * FROM tab0 cor0 WHERE NOT + ( + CAST ( NULL AS REAL ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * - + col2 + ( 97 ) + - 89 FROM tab0 AS cor0
----
-202
-3799
-91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 0 IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6622
SELECT + CAST( NULL AS SIGNED ), + col1 + col2 AS col1 FROM tab2 AS cor0
----
NULL
117
NULL
125
NULL
74

skipif mysql # not compatible
query II rowsort label-6622
SELECT + CAST ( NULL AS INTEGER ), + col1 + col2 AS col1 FROM tab2 AS cor0
----
NULL
117
NULL
125
NULL
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6623
SELECT DISTINCT * FROM tab2 WHERE + col0 < - col2 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6623
SELECT DISTINCT * FROM tab2 WHERE + col0 < - col2 + + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6624
SELECT DISTINCT col2 + col0 + + + col0 - CAST( - col2 AS SIGNED ) AS col1 FROM tab2
----
138
208
266

skipif mysql # not compatible
query I rowsort label-6624
SELECT DISTINCT col2 + col0 + + + col0 - CAST ( - col2 AS INTEGER ) AS col1 FROM tab2
----
138
208
266

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 + - 93 + - + 38 * + 20 + + col2 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT + COUNT( * ) * - 48 FROM tab0
----
-144

skipif mysql # not compatible
query I rowsort label-6626
SELECT + COUNT ( * ) * - 48 FROM tab0
----
-144

query I rowsort
SELECT + col0 + - col0 FROM tab1 WHERE - ( + 94 ) NOT BETWEEN + - col0 AND - col0
----
0
0
0

query I rowsort
SELECT DISTINCT + 56 * col0 AS col0 FROM tab2
----
2576
3584
4200

onlyif mysql # DIV for integer division: 
query I rowsort label-6629
SELECT DISTINCT ( col2 ) DIV + - 78 - + ( + + col1 ) col1 FROM tab1 AS cor0
----
-15
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6629
SELECT DISTINCT ( col2 ) / + - 78 - + ( + + col1 ) col1 FROM tab1 AS cor0
----
-15
-47
-5

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT ( - col1 ) BETWEEN ( + col2 * + col2 ) AND 55 * + col0 * + col1
----
51
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6631
SELECT + CAST( - col2 AS DECIMAL ) * + 93 + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( ( NOT ( col1 * - col1 ) = + 48 / - 24 ) ) OR NOT - col1 + + 3 NOT IN ( 15 + - col0 )
----

skipif mysql # not compatible
query I rowsort label-6631
SELECT + CAST ( - col2 AS REAL ) * + 93 + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( ( NOT ( col1 * - col1 ) = + 48 / - 24 ) ) OR NOT - col1 + + 3 NOT IN ( 15 + - col0 )
----

query I rowsort
SELECT + col1 + - 61 AS col0 FROM tab2 AS cor0
----
-10
16
6

query I rowsort
SELECT ALL + 22 + + col1 AS col2 FROM tab1
----
27
36
69

query II rowsort
SELECT DISTINCT - 45 - + 75 AS col2, + col1 FROM tab1
----
-120
14
-120
47
-120
5

query I rowsort
SELECT col0 FROM tab1 WHERE - 24 * - col2 <= NULL
----

query I rowsort
SELECT ALL - col0 - + - col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - col0 * - - 98 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - col0 * - - 98 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - + col2 + - col2 + + col0 + + - col0 AS col2 FROM tab2 AS cor0 WHERE NOT 76 IS NOT NULL
----

query I rowsort
SELECT 19 * + col2 FROM tab0 AS cor0 WHERE ( NOT - - col0 IN ( - col2 / col0 ) )
----
1881
190
893

query I rowsort
SELECT DISTINCT - ( - + ( + + 97 ) ) FROM tab1 cor0 WHERE NOT ( + col2 ) > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT + COUNT( * ) - + 30 + - + COUNT( * ) + 84 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-6641
SELECT + COUNT ( * ) - + 30 + - + COUNT ( * ) + 84 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT ALL - ( 85 ) - + SUM( DISTINCT - ( + 35 ) ) AS col1 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-6642
SELECT ALL - ( 85 ) - + SUM ( DISTINCT - ( + 35 ) ) AS col1 FROM tab1 AS cor0
----
-50

query I rowsort
SELECT + col1 - - col1 - - + 14 + - - ( - + col0 ) * ( + - col1 ) FROM tab0 AS cor0
----
113
1391
1883

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6644
SELECT * FROM tab0 AS cor0 WHERE NOT - 27 * + col0 + CAST( + col0 AS SIGNED ) = + + ( col0 ) + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6644
SELECT * FROM tab0 AS cor0 WHERE NOT - 27 * + col0 + CAST ( + col0 AS INTEGER ) = + + ( col0 ) + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT SUM( DISTINCT col2 ) * + 44 FROM tab0 AS cor0
----
6864

skipif mysql # not compatible
query I rowsort label-6645
SELECT SUM ( DISTINCT col2 ) * + 44 FROM tab0 AS cor0
----
6864

query I rowsort
SELECT DISTINCT - col1 * + 67 AS col1 FROM tab1
----
-3149
-335
-938

query I rowsort
SELECT ALL - 99 * - col2 FROM tab1
----
5841
6732
9504

query I rowsort
SELECT DISTINCT + col1 * - - col1 FROM tab0 WHERE NOT - 95 + + - 76 + + - col1 IN ( col0 )
----
1
441
6561

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 <= + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - + 9 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 28 IS NOT NULL
----

query II rowsort
SELECT ALL + 38, col0 AS col2 FROM tab1 AS cor0
----
38
51
38
85
38
91

query I rowsort
SELECT DISTINCT + 87 * + 24 FROM tab0, tab0 AS cor0
----
2088

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT ALL - + MAX( 70 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-70

skipif mysql # not compatible
query I rowsort label-6654
SELECT ALL - + MAX ( 70 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-70

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 - - col0 * col1 / + col1 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT - - COUNT( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-6656
SELECT - - COUNT ( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query I rowsort
SELECT DISTINCT + - 53 AS col0 FROM tab1 cor0
----
-53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6658
SELECT DISTINCT + col0 + + 53 - - - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6658
SELECT DISTINCT + col0 + + 53 - - - CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT - col2 * + + 18 * - 80 + + - col2 AS col1 FROM tab2 AS cor0
----
33097
57560
83462

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT DISTINCT - + COUNT( * ) FROM tab1 AS cor0 WHERE + ( col2 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6660
SELECT DISTINCT - + COUNT ( * ) FROM tab1 AS cor0 WHERE + ( col2 ) IS NOT NULL
----
-3

query I rowsort
SELECT ALL 14 + + + 16 FROM tab2 AS cor0
----
30
30
30

query I rowsort
SELECT DISTINCT - 10 + - + col2 * - ( - 38 ) + + 42 FROM tab0
----
-1754
-348
-3730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 + + 21 * - ( - col1 ) col2 FROM tab0
----
119
1797
549

query I rowsort
SELECT 93 + - 95 AS col1 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT ALL 12 + + + 76 FROM tab2
----
88
88
88

query I rowsort
SELECT DISTINCT col2 * col0 * + + col0 + + col1 AS col0 FROM tab1
----
249710
426280
563155

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT + 79 * + - COUNT( * ) AS col1 FROM tab0
----
-237

skipif mysql # not compatible
query I rowsort label-6667
SELECT + 79 * + - COUNT ( * ) AS col1 FROM tab0
----
-237

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6668
SELECT ALL + MIN( DISTINCT col1 ) DIV + + ( 32 ) + - SUM( + ( - col2 ) ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-6668
SELECT ALL + MIN ( DISTINCT col1 ) / + + ( 32 ) + - SUM ( + ( - col2 ) ) AS col2 FROM tab1
----
223

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 6 <> + 27
----

query I rowsort
SELECT + - 68 * + col0 FROM tab1 AS cor0
----
-3468
-5780
-6188

query I rowsort
SELECT DISTINCT + 17 FROM tab2 AS cor0 WHERE ( ( NULL ) IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6672
SELECT DISTINCT col0 + - col1 + + CAST( 52 AS SIGNED ) - col2 AS col2 FROM tab0
----
-61
108
49

skipif mysql # not compatible
query I rowsort label-6672
SELECT DISTINCT col0 + - col1 + + CAST ( 52 AS INTEGER ) - col2 AS col2 FROM tab0
----
-61
108
49

query II rowsort
SELECT DISTINCT - 39 AS col1, 5 - + col2 FROM tab2 cor0
----
-39
-18
-39
-35
-39
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-6674
SELECT ALL + 74 AS col0, COUNT( * ) AS col2 FROM tab1 AS cor0
----
74
3

skipif mysql # not compatible
query II rowsort label-6674
SELECT ALL + 74 AS col0, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
74
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT + COUNT( + 98 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6675
SELECT + COUNT ( + 98 ) AS col2 FROM tab2 AS cor0
----
3

query II rowsort
SELECT - col1 AS col1, col1 AS col0 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query II rowsort
SELECT + 15 * - + col2 * + + col2 + + 33 AS col1, + 87 FROM tab0 AS cor0
----
-1467
87
-146982
87
-33102
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT ALL COUNT( * ) * COUNT( * ) * SUM( - + ( + col0 ) ) FROM tab0
----
-1791

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL COUNT ( * ) * COUNT ( * ) * SUM ( - + ( + col0 ) ) FROM tab0
----
-1791

onlyif mysql # aggregate syntax: 
query II rowsort label-6679
SELECT ( + 22 ) AS col2, ( + COUNT( * ) ) AS col0 FROM tab2
----
22
3

skipif mysql # not compatible
query II rowsort label-6679
SELECT ( + 22 ) AS col2, ( + COUNT ( * ) ) AS col0 FROM tab2
----
22
3

query I rowsort
SELECT col1 * - 16 * - - col1 AS col0 FROM tab0
----
-104976
-16
-7056

query I rowsort
SELECT ALL - 89 * + - 36 FROM tab2
----
3204
3204
3204

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT ALL + COUNT( * ) FROM tab0 WHERE - col2 > ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6682
SELECT ALL + COUNT ( * ) FROM tab0 WHERE - col2 > ( + col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6683
SELECT - ( - 82 ), - CAST( NULL AS SIGNED ) * - col0 + + 4 col1 FROM tab2
----
82
NULL
82
NULL
82
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6683
SELECT - ( - 82 ), - CAST ( NULL AS INTEGER ) * - col0 + + 4 col1 FROM tab2
----
82
NULL
82
NULL
82
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * - + col2 + - + col1 / col0 IS NULL
----

query I rowsort
SELECT ALL col0 * + 71 AS col0 FROM tab0 AS cor0
----
1065
6177
6887

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 1 col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6687
SELECT - - ( ( col0 ) ) DIV 42 + - - col1 + - 92 col2 FROM tab1 AS cor0
----
-43
-77
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6687
SELECT - - ( ( col0 ) ) / 42 + - - col1 + - 92 col2 FROM tab1 AS cor0
----
-43
-77
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6688
SELECT col1 * - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + + col2 / - col1 + + 51 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6688
SELECT col1 * - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + + col2 / - col1 + + 51 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 36 col2, col1 AS col0 FROM tab0 cor0
----
36
1
36
21
36
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT + COUNT( DISTINCT col1 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6690
SELECT + COUNT ( DISTINCT col1 ) AS col1 FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT - + 59 + col0 FROM tab0 AS cor0
----
-44
28
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT ALL 10 + + COUNT( * ) AS col1 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-6692
SELECT ALL 10 + + COUNT ( * ) AS col1 FROM tab1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT COUNT( + 67 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6693
SELECT COUNT ( + 67 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT DISTINCT COUNT( DISTINCT + + 43 ) + - + ( - COUNT( * ) ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-6694
SELECT DISTINCT COUNT ( DISTINCT + + 43 ) + - + ( - COUNT ( * ) ) FROM tab0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6695
SELECT CAST( NULL AS SIGNED ) + + col2 - + ( - 35 ), - col0 AS col0 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-6695
SELECT CAST ( NULL AS INTEGER ) + + col2 - + ( - 35 ), - col0 AS col0 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

query I rowsort
SELECT + col0 FROM tab2 WHERE 33 - - col2 * + 55 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6697
SELECT + 26 DIV - col1 + - col1 AS col2 FROM tab1
----
-10
-15
-47

skipif mysql # not compatible
query I rowsort label-6697
SELECT + 26 / - col1 + - col1 AS col2 FROM tab1
----
-10
-15
-47

query I rowsort
SELECT ALL - - 61 AS col0 FROM tab0 AS cor0
----
61
61
61

query I rowsort
SELECT DISTINCT + ( - 98 ) FROM tab0 AS cor0
----
-98

query I rowsort
SELECT 86 + + - col1 + - col0 FROM tab0 AS cor0
----
-10
-12
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT MIN( + col2 ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-6701
SELECT MIN ( + col2 ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
26

query I rowsort
SELECT ALL + - col1 + + + col0 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE NOT - + 47 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6704
SELECT DISTINCT + col0 + 73 FROM tab0 WHERE NULL >= + 49 * col2 * - - col0 * - 62 * - col2 * + CAST( 40 AS SIGNED ) * + + col2 + - 3
----

skipif mysql # not compatible
query I rowsort label-6704
SELECT DISTINCT + col0 + 73 FROM tab0 WHERE NULL >= + 49 * col2 * - - col0 * - 62 * - col2 * + CAST ( 40 AS INTEGER ) * + + col2 + - 3
----

query II rowsort
SELECT ALL + col1, - 61 FROM tab2
----
51
-61
67
-61
77
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT DISTINCT - 47 * + COUNT( * ) FROM tab1 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-6706
SELECT DISTINCT - 47 * + COUNT ( * ) FROM tab1 AS cor0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT ALL - COUNT( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6707
SELECT ALL - COUNT ( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - + col1 * col0 + 46 AS col2 FROM tab1 AS cor0
----
-379
-4231
-668

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 54 IN ( - 1 * - + 79, 51 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col1 * + + ( - col1 ) FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # DIV for integer division: 
query II rowsort label-6711
SELECT DISTINCT col1 DIV + ( col2 ) AS col2, col0 FROM tab0 AS cor0
----
0
97
1
15
2
87

skipif mysql # not compatible
query II rowsort label-6711
SELECT DISTINCT col1 / + ( col2 ) AS col2, col0 FROM tab0 AS cor0
----
0
97
1
15
2
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT MAX( - 83 ) AS col2 FROM tab2 cor0
----
-83

skipif mysql # not compatible
query I rowsort label-6712
SELECT MAX ( - 83 ) AS col2 FROM tab2 cor0
----
-83

query I rowsort
SELECT DISTINCT - col0 * - 8 + + col0 AS col1 FROM tab2 AS cor0
----
414
576
675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6714
SELECT ALL - - col0 * - ( - - CAST( - col0 AS SIGNED ) ) FROM tab2 cor0
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL - - col0 * - ( - - CAST ( - col0 AS INTEGER ) ) FROM tab2 cor0
----
2116
4096
5625

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 9 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * - + 85 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT - ( + COUNT( - col2 ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6717
SELECT - ( + COUNT ( - col2 ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6718
SELECT 25 DIV - - col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6718
SELECT 25 / - - col2 AS col0 FROM tab1
----
0
0
0

query II rowsort
SELECT + col0 AS col1, 34 + + - col1 FROM tab1
----
51
20
85
29
91
-13

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6721
SELECT 89 AS col1, - COUNT( * ) AS col0 FROM tab0
----
89
-3

skipif mysql # not compatible
query II rowsort label-6721
SELECT 89 AS col1, - COUNT ( * ) AS col0 FROM tab0
----
89
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6722
SELECT + 2, - CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab0
----
2
NULL
2
NULL
2
NULL

skipif mysql # not compatible
query II rowsort label-6722
SELECT + 2, - CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab0
----
2
NULL
2
NULL
2
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT DISTINCT COUNT( * ) * + COUNT( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6723
SELECT DISTINCT COUNT ( * ) * + COUNT ( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT col2 * - + col2 AS col0 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT ALL + MAX( DISTINCT col0 ) + - 53 AS col1 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-6725
SELECT ALL + MAX ( DISTINCT col0 ) + - 53 AS col1 FROM tab0 AS cor0
----
44

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 34 IS NULL
----

query I rowsort
SELECT ALL + col0 + - 57 + col1 AS col1 FROM tab0 AS cor0
----
39
41
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT - 87 * - - 85 * - + COUNT( * ) * + + 91 FROM tab1
----
2018835

skipif mysql # not compatible
query I rowsort label-6728
SELECT - 87 * - - 85 * - + COUNT ( * ) * + + 91 FROM tab1
----
2018835

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6729
SELECT ALL + col2 FROM tab1 WHERE NOT 42 NOT BETWEEN col1 * - ( + + col1 ) - col2 + + col2 - + col2 + CAST( + col0 AS SIGNED ) AND + 92 + - - 43
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL + col2 FROM tab1 WHERE NOT 42 NOT BETWEEN col1 * - ( + + col1 ) - col2 + + col2 - + col2 + CAST ( + col0 AS INTEGER ) AND + 92 + - - 43
----
59
68
96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6730
SELECT DISTINCT * FROM tab0 WHERE CAST( - + 0 AS DECIMAL ) / + - ( + 95 ) + + + col0 BETWEEN + col2 + - 98 * + 57 AND NULL
----

skipif mysql # not compatible
query III rowsort label-6730
SELECT DISTINCT * FROM tab0 WHERE CAST ( - + 0 AS REAL ) / + - ( + 95 ) + + + col0 BETWEEN + col2 + - 98 * + 57 AND NULL
----

query I rowsort
SELECT + 20 * col0 FROM tab2
----
1280
1500
920

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6732
SELECT + AVG ( DISTINCT - 49 ) * + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6732
SELECT + AVG ( DISTINCT - 49 ) * + CAST ( NULL AS REAL ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + - + col1 col0, - 70 FROM tab2 AS cor0
----
-13
-70
-5
-70
8
-70

query I rowsort
SELECT ALL - col2 + - col0 * + 14 FROM tab1 AS cor0
----
-1249
-1342
-810

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + - - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6736
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 * - col1, CAST( NULL AS SIGNED ) * CAST( - - 92 AS SIGNED ) * + col2 + - col0 - + col0 )
----

skipif mysql # not compatible
query III rowsort label-6736
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 * - col1, CAST ( NULL AS INTEGER ) * CAST ( - - 92 AS INTEGER ) * + col2 + - col0 - + col0 )
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 WHERE + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6738
SELECT ALL - 71 DIV col2 + + - col0 FROM tab0
----
-16
-94
-97

skipif mysql # not compatible
query I rowsort label-6738
SELECT ALL - 71 / col2 + + - col0 FROM tab0
----
-16
-94
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, + col1 col0 FROM tab1
----
59
5
68
47
96
14

query I rowsort
SELECT + + col2 FROM tab0 WHERE + col0 - + 9 + - col2 * col2 * col2 >= + + 60
----

query I rowsort
SELECT ALL - col0 + - col1 + + col1 AS col2 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT 72 * - 39 FROM tab0
----
-2808
-2808
-2808

query I rowsort
SELECT + 47 FROM tab2 AS cor0 WHERE NULL <= + col2
----

query I rowsort
SELECT + 5 AS col1 FROM tab1 AS cor0 WHERE + col1 * + col2 IS NOT NULL
----
5
5
5

query II rowsort
SELECT ALL 39 AS col1, - col0 AS col0 FROM tab1 AS cor0
----
39
-51
39
-85
39
-91

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT MIN( DISTINCT - ( - + col1 ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6747
SELECT MIN ( DISTINCT - ( - + col1 ) ) FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-6748
SELECT ALL COUNT( col0 ) AS col1, 72 AS col2 FROM tab2
----
3
72

skipif mysql # not compatible
query II rowsort label-6748
SELECT ALL COUNT ( col0 ) AS col1, 72 AS col2 FROM tab2
----
3
72

query I rowsort
SELECT ALL + + col2 FROM tab2 AS cor0 WHERE ( NOT - col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6750
SELECT ALL SUM( ALL 98 ) FROM tab0 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-6750
SELECT ALL SUM ( ALL 98 ) FROM tab0 AS cor0
----
294

query I rowsort
SELECT col2 * + 19 * + - col1 AS col1 FROM tab2 AS cor0
----
-22287
-58520
-73834

query I rowsort
SELECT - 74 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6753
SELECT * FROM tab2 cor0 WHERE NOT col1 NOT BETWEEN + CAST( NULL AS SIGNED ) * + - ( - + col1 ) + + + col1 + - 31 * + - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-6753
SELECT * FROM tab2 cor0 WHERE NOT col1 NOT BETWEEN + CAST ( NULL AS INTEGER ) * + - ( - + col1 ) + + + col1 + - 31 * + - col1 AND NULL
----

query I rowsort
SELECT col1 + - col1 FROM tab2 WHERE NOT + 76 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT ALL MIN( - 60 ) AS col2 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL MIN ( - 60 ) AS col2 FROM tab0
----
-60

query II rowsort
SELECT DISTINCT + col1 AS col0, 20 FROM tab0
----
1
20
21
20
81
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT ALL + 5 * COUNT( * ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-6757
SELECT ALL + 5 * COUNT ( * ) FROM tab2
----
15

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 47 * - - col2 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + - col1 AS col0, 67 * col1 FROM tab1 AS cor0
----
-14
938
-47
3149
-5
335

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT - - COUNT( * ) * - 36 AS col0 FROM tab0 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-6760
SELECT - - COUNT ( * ) * - 36 AS col0 FROM tab0 AS cor0
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6761
SELECT col1 * + + ( + + CAST( NULL AS SIGNED ) ) + - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6761
SELECT col1 * + + ( + + CAST ( NULL AS INTEGER ) ) + - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 6 FROM tab2, tab2 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT - + SUM( + 96 ) col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-864

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6763
SELECT - + SUM ( + 96 ) col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT DISTINCT 8 - - + COUNT( * ) + 30 AS col0 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-6764
SELECT DISTINCT 8 - - + COUNT ( * ) + 30 AS col0 FROM tab0 AS cor0
----
41

query I rowsort
SELECT ALL + col2 * + + col1 AS col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6766
SELECT DISTINCT - + 98 DIV + ( + + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-6766
SELECT DISTINCT - + 98 / + ( + + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT COUNT( * ) * + 69 AS col2 FROM tab1 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-6767
SELECT COUNT ( * ) * + 69 AS col2 FROM tab1 AS cor0
----
207

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6768
SELECT - CAST( NULL AS SIGNED ) AS col1, col0 AS col2 FROM tab2 cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-6768
SELECT - CAST ( NULL AS INTEGER ) AS col1, col0 AS col2 FROM tab2 cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6769
SELECT col1 DIV + + col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6769
SELECT col1 / + + col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6770
SELECT DISTINCT - - ( - + col2 ) DIV + 96 AS col2 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6770
SELECT DISTINCT - - ( - + col2 ) / + 96 AS col2 FROM tab0 AS cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6771
SELECT ALL + + 71 AS col2, - CAST( NULL AS SIGNED ) + + 95 col2 FROM tab0 AS cor0
----
71
NULL
71
NULL
71
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6771
SELECT ALL + + 71 AS col2, - CAST ( NULL AS INTEGER ) + + 95 col2 FROM tab0 AS cor0
----
71
NULL
71
NULL
71
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6772
SELECT ALL 30 - + col2 - - col2 - - col2 DIV + col1 * col2 FROM tab2
----
30
30
30

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL 30 - + col2 - - col2 - - col2 / + col1 * col2 FROM tab2
----
30
30
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6773
SELECT CAST( + + col2 AS SIGNED ) - - col2 * + 53 AS col2 FROM tab2
----
1242
2160
3132

skipif mysql # not compatible
query I rowsort label-6773
SELECT CAST ( + + col2 AS INTEGER ) - - col2 * + 53 AS col2 FROM tab2
----
1242
2160
3132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6774
SELECT + - CAST( - ( + 84 ) AS SIGNED ) - + col0 AS col1 FROM tab0 WHERE + 77 <= NULL
----

skipif mysql # not compatible
query I rowsort label-6774
SELECT + - CAST ( - ( + 84 ) AS INTEGER ) - + col0 AS col1 FROM tab0 WHERE + 77 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6775
SELECT ALL COUNT( ALL - ( + + 4 ) ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6775
SELECT ALL COUNT ( ALL - ( + + 4 ) ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col2 + - ( col2 ) FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col1 + 20 col2, - col1 AS col2, + col0 FROM tab0
----
9 values hashing to 3a333596cddde63cb3e2b695cdf149dc

query I rowsort
SELECT DISTINCT col1 * - - col0 - - col2 AS col0 FROM tab1
----
4345
484
810

query I rowsort
SELECT - 2 + + 1 AS col2 FROM tab0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6780
SELECT CAST( NULL AS SIGNED ) + + col1 * - 35 + + - col0 - 1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6780
SELECT CAST ( NULL AS INTEGER ) + + col1 * - 35 + + - col0 - 1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + + 1 * - + col0 NOT BETWEEN NULL AND + col0
----

query II rowsort
SELECT - col2 * col0 * - 6, 30 AS col0 FROM tab1 AS cor0
----
29376
30
30090
30
37128
30

query I rowsort
SELECT 5 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
5
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6784
SELECT * FROM tab2 WHERE NOT col2 NOT BETWEEN + col0 + + + 72 * - + col2 - + - col0 AND + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6784
SELECT * FROM tab2 WHERE NOT col2 NOT BETWEEN + col0 + + + 72 * - + col2 - + - col0 AND + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT SUM( ALL 51 ) AS col0 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-6785
SELECT SUM ( ALL 51 ) AS col0 FROM tab1 AS cor0
----
153

query I rowsort
SELECT + col0 * - 20 FROM tab2 AS cor0
----
-1280
-1500
-920

query II rowsort
SELECT + - col2, 37 * + 9 AS col1 FROM tab2 AS cor0
----
-23
333
-40
333
-58
333

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE col2 NOT BETWEEN col0 + + 60 AND + - col2
----
14
47
5

query I rowsort
SELECT DISTINCT - + 64 * ( + col1 ) * + col2 AS col1 FROM tab0 AS cor0
----
-13440
-243648
-6336

query I rowsort
SELECT - 65 * 69 AS col1 FROM tab2 AS cor0
----
-4485
-4485
-4485

query I rowsort
SELECT DISTINCT - 30 + - 13 AS col1 FROM tab1, tab2 AS cor0
----
-43

query I rowsort
SELECT ALL - 27 + - 32 FROM tab0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-6793
SELECT + MIN( + col2 ) AS col1, 89 AS col2 FROM tab2
----
23
89

skipif mysql # not compatible
query II rowsort label-6793
SELECT + MIN ( + col2 ) AS col1, 89 AS col2 FROM tab2
----
23
89

query II rowsort
SELECT col1 + + col2 AS col1, - col2 AS col2 FROM tab2
----
117
-40
125
-58
74
-23

query I rowsort
SELECT 25 + + 85 - - col2 * - col2 FROM tab0
----
-2099
-9691
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + - ( ( - col1 ) ) col2 FROM tab1 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6797
SELECT - col2 + + + CAST( NULL AS SIGNED ) + - - 40 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6797
SELECT - col2 + + + CAST ( NULL AS INTEGER ) + - - 40 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 30 + + + col0 FROM tab2 AS cor0
----
16
34
45

query I rowsort
SELECT + ( + + 34 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT col0 + - - col2 + - col2 AS col2 FROM tab2
----
46
64
75

query I rowsort
SELECT col0 + + - col1 + - 37 - col2 FROM tab1 AS cor0
----
-16
-61
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-6802
SELECT DISTINCT - 97 AS col0, COUNT( * ) FROM tab2 AS cor0
----
-97
3

skipif mysql # not compatible
query II rowsort label-6802
SELECT DISTINCT - 97 AS col0, COUNT ( * ) FROM tab2 AS cor0
----
-97
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6803
SELECT + 27 * CAST( NULL AS SIGNED ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6803
SELECT + 27 * CAST ( NULL AS INTEGER ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 <= col2 + + 80
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + col2 ) + - col2 - + - 50 FROM tab1 AS cor0
----
50
50
50

query I rowsort
SELECT DISTINCT - - col2 + + - 68 AS col2 FROM tab2 AS cor0
----
-10
-28
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-6807
SELECT 16 DIV ( - col1 ) AS col0 FROM tab0
----
-16
0
0

skipif mysql # not compatible
query I rowsort label-6807
SELECT 16 / ( - col1 ) AS col0 FROM tab0
----
-16
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT + 15 * - - 95 * + 65 * - COUNT( * ) + 89 AS col2 FROM tab1 WHERE - 46 / col1 + col1 + - col2 + + col2 * col1 > + col1
----
-277786

skipif mysql # not compatible
query I rowsort label-6808
SELECT + 15 * - - 95 * + 65 * - COUNT ( * ) + 89 AS col2 FROM tab1 WHERE - 46 / col1 + col1 + - col2 + + col2 * col1 > + col1
----
-277786

query I rowsort
SELECT DISTINCT 78 - + - col0 FROM tab0
----
165
175
93

query I rowsort
SELECT ALL - 86 * col1 + - col0 AS col0 FROM tab1
----
-1255
-4133
-515

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6811
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6811
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query II rowsort
SELECT 41, + col1 AS col1 FROM tab0
----
41
1
41
21
41
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6813
SELECT DISTINCT * FROM tab2 WHERE - CAST( - 88 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6813
SELECT DISTINCT * FROM tab2 WHERE - CAST ( - 88 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6814
SELECT ALL + - CAST( NULL AS DECIMAL ) / - + 71 * - col2 FROM tab1 WHERE NULL >= - - col0
----

skipif mysql # not compatible
query I rowsort label-6814
SELECT ALL + - CAST ( NULL AS REAL ) / - + 71 * - col2 FROM tab1 WHERE NULL >= - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT ALL MIN( - - col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL MIN ( - - col0 ) AS col0 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-6816
SELECT ALL SUM( col0 ) * - + 88 AS col2, 20 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL
20

skipif mysql # not compatible
query II rowsort label-6816
SELECT ALL SUM ( col0 ) * - + 88 AS col2, 20 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL
20

query I rowsort
SELECT DISTINCT 80 * + col2 AS col0 FROM tab2 AS cor0
----
1840
3200
4640

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 21 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 18 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT COUNT( * ) * - - 5 FROM tab0, tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-6820
SELECT COUNT ( * ) * - - 5 FROM tab0, tab0 AS cor0
----
45

query III rowsort
SELECT * FROM tab2 WHERE NOT 87 IN ( + 84, + col2 * col0, + ( col1 ), + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col0 AS col2, col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT DISTINCT - MIN( ALL - col2 ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-6823
SELECT DISTINCT - MIN ( ALL - col2 ) AS col2 FROM tab2
----
58

query I rowsort
SELECT - col0 + - col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT + MIN( DISTINCT 11 ) AS col2 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-6825
SELECT + MIN ( DISTINCT 11 ) AS col2 FROM tab2
----
11

query I rowsort
SELECT DISTINCT - - ( + 75 ) FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT - - SUM( ALL - col2 ) FROM tab1 AS cor0 WHERE NULL <= col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6827
SELECT - - SUM ( ALL - col2 ) FROM tab1 AS cor0 WHERE NULL <= col1
----
NULL

query I rowsort
SELECT ALL + ( col1 ) + 4 AS col1 FROM tab1 AS cor0 WHERE col2 * col2 - + col0 IS NOT NULL
----
18
51
9

query I rowsort
SELECT DISTINCT + 19 + 38 FROM tab0 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT - 65 + - COUNT( * ) FROM tab1 cor0
----
-68

skipif mysql # not compatible
query I rowsort label-6830
SELECT - 65 + - COUNT ( * ) FROM tab1 cor0
----
-68

query I rowsort
SELECT 83 + col0 AS col2 FROM tab0
----
170
180
98

query I rowsort
SELECT ALL 84 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 - + + 57 col1 FROM tab2
----
-21
-21
-21

query I rowsort
SELECT - col2 * - + 74 + col2 FROM tab1 cor0
----
4425
5100
7200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + ( + + 9 ) * + - col0 * + ( - + 92 ) * + 20 + + 27 col1 FROM tab1 AS cor0
----
-1407568
-1506886
-844519

query I rowsort
SELECT ALL - col1 * col2 * col2 FROM tab1 AS cor0
----
-129024
-17405
-217328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6837
SELECT ALL - - COUNT( * ) + + 4 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL - - COUNT ( * ) + + 4 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6838
SELECT DISTINCT 9 DIV - 5 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-6838
SELECT DISTINCT 9 / - 5 FROM tab2
----
-1

query II rowsort
SELECT + 2 AS col1, - 38 AS col2 FROM tab2
----
2
-38
2
-38
2
-38

query I rowsort
SELECT ALL + ( - col2 ) * col1 AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - - col1 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT ALL + COUNT( + - col2 ) * + 16 - + 25 AS col0 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL + COUNT ( + - col2 ) * + 16 - + 25 AS col0 FROM tab1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-6843
SELECT 75 DIV - 60 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6843
SELECT 75 / - 60 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 80 + col1 + + + 52 * - col2 AS col2 FROM tab1 cor0
----
-3143
-3569
-5058

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6845
SELECT ALL + col2 + + CAST( NULL AS SIGNED ) * + 92 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6845
SELECT ALL + col2 + + CAST ( NULL AS INTEGER ) * + 92 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 34 + + - col0 FROM tab1
----
-17
-51
-57

query I rowsort
SELECT 16 FROM tab2 WHERE + - col2 NOT BETWEEN + + 31 AND NULL
----
16
16
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col1 col0 FROM tab2
----
102
134
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + - col0 + + col0 col2 FROM tab0
----
15
87
97

query I rowsort
SELECT + 10 * - 21 + - 18 * + col1 FROM tab0
----
-1668
-228
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT DISTINCT + MAX( - - 42 ) + + COUNT( * ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-6851
SELECT DISTINCT + MAX ( - - 42 ) + + COUNT ( * ) FROM tab2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6852
SELECT DISTINCT + col1 + - col1 * 30 * col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT + col1 + - col1 * 30 * col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6853
SELECT DISTINCT col2 DIV - - col2 + ( - + 20 ) DIV - - 44 * + - col2 + - + col1 FROM tab0
----
-20
-80
0

skipif mysql # not compatible
query I rowsort label-6853
SELECT DISTINCT col2 / - - col2 + ( - + 20 ) / - - 44 * + - col2 + - + col1 FROM tab0
----
-20
-80
0

query I rowsort
SELECT col0 + - 88 AS col2 FROM tab1
----
-3
-37
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT DISTINCT - 85 + COUNT( + col0 ) * - 62 FROM tab1
----
-271

skipif mysql # not compatible
query I rowsort label-6855
SELECT DISTINCT - 85 + COUNT ( + col0 ) * - 62 FROM tab1
----
-271

query I rowsort
SELECT col1 / - + 33 FROM tab0 AS cor0 WHERE + ( - + col0 ) < NULL
----

query I rowsort
SELECT ALL - + col0 - 3 AS col0 FROM tab1 cor0
----
-54
-88
-94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 - - + col0 + - 27 + col2 = NULL
----

query I rowsort
SELECT ALL - 67 * col0 AS col1 FROM tab0 AS cor0
----
-1005
-5829
-6499

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN + 49 + - + col0 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT ALL + 97 * + COUNT( * ) FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-6861
SELECT ALL + 97 * + COUNT ( * ) FROM tab0 AS cor0
----
291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6862
SELECT - CAST( NULL AS SIGNED ) * 85 + 39 + - + 36 - + - col1 * + - col2 + col0 + - 26 + col1 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6862
SELECT - CAST ( NULL AS INTEGER ) * 85 + 39 + - + 36 - + - col1 * + - col2 + col0 + - 26 + col1 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6863
SELECT DISTINCT col0 * - col2 * CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6863
SELECT DISTINCT col0 * - col2 * CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6864
SELECT CAST( NULL AS SIGNED ) * + - COUNT( DISTINCT + col1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6864
SELECT CAST ( NULL AS INTEGER ) * + - COUNT ( DISTINCT + col1 ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6865
SELECT 39 * COUNT( - - 88 ) * - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6865
SELECT 39 * COUNT ( - - 88 ) * - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT ALL COUNT( * ) + - 32 + AVG ( ALL + col1 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL COUNT ( * ) + - 32 + AVG ( ALL + col1 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT col0 * + 14 AS col0, col1 + + + col0 FROM tab1
----
1190
90
1274
138
714
65

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 13 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 11 > + + 23
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6870
SELECT DISTINCT - col1 DIV - 41 AS col1, 48 AS col2 FROM tab1 AS cor0
----
0
48
1
48

skipif mysql # not compatible
query II rowsort label-6870
SELECT DISTINCT - col1 / - 41 AS col1, 48 AS col2 FROM tab1 AS cor0
----
0
48
1
48

query I rowsort
SELECT DISTINCT 4 + - col1 AS col0 FROM tab1
----
-1
-10
-43

query I rowsort
SELECT ALL 91 * - - 53 * 9 FROM tab0
----
43407
43407
43407

query I rowsort
SELECT ALL 3 FROM tab2 cor0
----
3
3
3

query I rowsort
SELECT - col0 * + - 69 AS col2 FROM tab0 AS cor0
----
1035
6003
6693

query II rowsort
SELECT DISTINCT + col2 * - col2 + col0 AS col1, - 48 FROM tab2 AS cor0
----
-1536
-48
-3289
-48
-483
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-6876
SELECT ALL + + COUNT( * ) col0, 42 AS col1 FROM tab2 AS cor0
----
3
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6876
SELECT ALL + + COUNT ( * ) col0, 42 AS col1 FROM tab2 AS cor0
----
3
42

query I rowsort
SELECT DISTINCT - - col2 + 49 FROM tab0 AS cor0
----
148
59
96

query I rowsort
SELECT DISTINCT + col0 + 92 AS col1 FROM tab0
----
107
179
189

query I rowsort
SELECT DISTINCT col0 + col1 + + - col2 AS col2 FROM tab0
----
-1
49
98

query I rowsort
SELECT ALL ( + + col2 ) + - col1 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT ALL - col2 * - + 99 * ( - - ( - + 61 ) ) AS col0 FROM tab0 WHERE - 98 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6882
SELECT ALL 11 + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6882
SELECT ALL 11 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT DISTINCT + SUM( - + col2 ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-6883
SELECT DISTINCT + SUM ( - + col2 ) AS col2 FROM tab0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6884
SELECT ALL * FROM tab1 cor0 WHERE NOT - col2 NOT BETWEEN + 92 * col0 * - 37 * + - ( - 83 ) * + + CAST( NULL AS SIGNED ) AND - + col1 / + + 64 + 32
----

skipif mysql # not compatible
query III rowsort label-6884
SELECT ALL * FROM tab1 cor0 WHERE NOT - col2 NOT BETWEEN + 92 * col0 * - 37 * + - ( - 83 ) * + + CAST ( NULL AS INTEGER ) AND - + col1 / + + 64 + 32
----

query I rowsort
SELECT + col1 + - - 89 FROM tab2 AS cor0
----
140
156
166

onlyif mysql # DIV for integer division: 
query I rowsort label-6886
SELECT - 11 + - col2 + 24 DIV 30 FROM tab2 AS cor0
----
-34
-51
-69

skipif mysql # not compatible
query I rowsort label-6886
SELECT - 11 + - col2 + 24 / 30 FROM tab2 AS cor0
----
-34
-51
-69

query I rowsort
SELECT - col1 * + 30 + - - col0 + 51 FROM tab0 AS cor0
----
-2364
-492
118

query I rowsort
SELECT DISTINCT + - col1 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT + ( - + col0 ) AS col2 FROM tab2 WHERE col2 <> - col1
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6890
SELECT ALL - 18 - + + col1 DIV col1 FROM tab2
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-6890
SELECT ALL - 18 - + + col1 / col1 FROM tab2
----
-19
-19
-19

query I rowsort
SELECT ALL + - 16 FROM tab0 AS cor0 WHERE - col2 + + col1 * - col0 IS NOT NULL
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT ALL - - COUNT( + - ( 87 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL - - COUNT ( + - ( 87 ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + col2 * - 23 * - + col2 FROM tab2 cor0 WHERE ( NULL = NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT DISTINCT + COUNT( * ) + - 21 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN + col1 AND NULL
----
-21

skipif mysql # not compatible
query I rowsort label-6894
SELECT DISTINCT + COUNT ( * ) + - 21 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN + col1 AND NULL
----
-21

query I rowsort
SELECT ALL + - col1 * 61 * + - col2 AS col0 FROM tab2 AS cor0
----
187880
237046
71553

query I rowsort
SELECT ALL col1 * - - ( - col0 ) FROM tab0
----
-1215
-1827
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 18 col2 FROM tab2
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 * - + 78 col1 FROM tab1
----
-5460
-5460
-5460

onlyif mysql # DIV for integer division: 
query I rowsort label-6899
SELECT + 3 DIV + 88 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6899
SELECT + 3 / + 88 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * 94 FROM tab2
----
2162
3760
5452

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6902
SELECT ALL * FROM tab2 WHERE ( + col2 ) / + - col1 + + col2 * + col2 + CAST( NULL AS SIGNED ) * - + col0 + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6902
SELECT ALL * FROM tab2 WHERE ( + col2 ) / + - col1 + + col2 * + col2 + CAST ( NULL AS INTEGER ) * - + col0 + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 85, - 72 AS col2 FROM tab1
----
85
-72
85
-72
85
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6904
SELECT CAST( 66 AS SIGNED ) AS col1 FROM tab1
----
66
66
66

skipif mysql # not compatible
query I rowsort label-6904
SELECT CAST ( 66 AS INTEGER ) AS col1 FROM tab1
----
66
66
66

query I rowsort
SELECT ALL - 29 * 94 * - col0 FROM tab2 AS cor0
----
125396
174464
204450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6906
SELECT + + CAST( - col0 AS SIGNED ) FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6906
SELECT + + CAST ( - col0 AS INTEGER ) FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-6907
SELECT ALL - 89 DIV - col0 col0 FROM tab0 AS cor0
----
0
1
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6907
SELECT ALL - 89 / - col0 col0 FROM tab0 AS cor0
----
0
1
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6908
SELECT ALL - - 56 DIV + - col2 + - col1 * + 80 + + col0 FROM tab0 AS cor0
----
-1598
-6466
17

skipif mysql # not compatible
query I rowsort label-6908
SELECT ALL - - 56 / + - col2 + - col1 * + 80 + + col0 FROM tab0 AS cor0
----
-1598
-6466
17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6909
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - + 39 ) * - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6909
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - + 39 ) * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT - MAX( DISTINCT - ( col0 ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-6910
SELECT - MAX ( DISTINCT - ( col0 ) ) FROM tab0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6911
SELECT ALL 88 * MAX( CAST( + + ( - 85 ) AS SIGNED ) ) FROM tab1
----
-7480

skipif mysql # not compatible
query I rowsort label-6911
SELECT ALL 88 * MAX ( CAST ( + + ( - 85 ) AS INTEGER ) ) FROM tab1
----
-7480

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT - - COUNT( * ) * + ( - - MIN( DISTINCT + col0 ) ) AS col0 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-6912
SELECT - - COUNT ( * ) * + ( - - MIN ( DISTINCT + col0 ) ) AS col0 FROM tab0 AS cor0
----
45

query I rowsort
SELECT DISTINCT + 45 * + col1 + + 3 FROM tab0 AS cor0
----
3648
48
948

onlyif mysql # DIV for integer division: 
query I rowsort label-6914
SELECT DISTINCT - col2 DIV 12 + - - col2 * - 7 FROM tab2 AS cor0
----
-162
-283
-410

skipif mysql # not compatible
query I rowsort label-6914
SELECT DISTINCT - col2 / 12 + - - col2 * - 7 FROM tab2 AS cor0
----
-162
-283
-410

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE 97 * + 31 IS NOT NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * - - col2, col2 col2 FROM tab2 AS cor0
----
1600
40
3364
58
529
23

onlyif mysql # DIV for integer division: 
query I rowsort label-6917
SELECT DISTINCT - col0 DIV - ( col1 ) FROM tab1 cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-6917
SELECT DISTINCT - col0 / - ( col1 ) FROM tab1 cor0
----
1
17
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( - 15 ) AND ( NULL )
----

query I rowsort
SELECT + col0 + - col0 + - + col1 * + - col1 AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( + - col1 ) IS NULL
----

query I rowsort
SELECT - col0 + - 50 AS col2 FROM tab0 AS cor0
----
-137
-147
-65

query II rowsort
SELECT DISTINCT col2 + col0 AS col2, col2 AS col2 FROM tab2 cor0
----
104
40
133
58
69
23

query I rowsort
SELECT DISTINCT + 8 + + ( col0 ) - + - col2 FROM tab1
----
152
155
167

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - + col1 col2 FROM tab0
----
-100
-128
-31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6925
SELECT ALL * FROM tab1 WHERE col2 - - - 58 > - + CAST( - + 94 AS SIGNED ) * + col1 + - - ( - col0 ) * - col2 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6925
SELECT ALL * FROM tab1 WHERE col2 - - - 58 > - + CAST ( - + 94 AS INTEGER ) * + col1 + - - ( - col0 ) * - col2 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE - ( ( - 48 ) ) * - + 34 + + col0 IS NULL
----

query II rowsort
SELECT 50 + - + col0 + col0, + col2 + + col0 AS col0 FROM tab1
----
50
144
50
147
50
159

query I rowsort
SELECT - + col1 AS col2 FROM tab2 WHERE col0 NOT BETWEEN NULL AND - - col0 + + 1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6929
SELECT DISTINCT 2 + - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6929
SELECT DISTINCT 2 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6930
SELECT DISTINCT 12 * - MIN( DISTINCT col2 ) + - MAX( - + 8 ) AS col1, COUNT( * ) AS col1 FROM tab1
----
-700
3

skipif mysql # not compatible
query II rowsort label-6930
SELECT DISTINCT 12 * - MIN ( DISTINCT col2 ) + - MAX ( - + 8 ) AS col1, COUNT ( * ) AS col1 FROM tab1
----
-700
3

query I rowsort
SELECT ALL 20 * + col1 AS col2 FROM tab2
----
1020
1340
1540

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6932
SELECT 33 AS col1, - CAST( NULL AS SIGNED ) / + - col2 * 89 FROM tab1
----
33
NULL
33
NULL
33
NULL

skipif mysql # not compatible
query II rowsort label-6932
SELECT 33 AS col1, - CAST ( NULL AS INTEGER ) / + - col2 * 89 FROM tab1
----
33
NULL
33
NULL
33
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6933
SELECT - col0 * CAST( - - col2 AS SIGNED ) FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-6933
SELECT - col0 * CAST ( - - col2 AS INTEGER ) FROM tab1
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6934
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) - + col1 AS col0, + col1 * - col0 AS col2 FROM tab2
----
NULL
-2346
NULL
-4928
NULL
-5025

skipif mysql # not compatible
query II rowsort label-6934
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) - + col1 AS col0, + col1 * - col0 AS col2 FROM tab2
----
NULL
-2346
NULL
-4928
NULL
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT 99 * COUNT( * ) AS col2 FROM tab2
----
297

skipif mysql # not compatible
query I rowsort label-6935
SELECT 99 * COUNT ( * ) AS col2 FROM tab2
----
297

query I rowsort
SELECT DISTINCT - 35 - + 73 + - col0 FROM tab1 AS cor0
----
-159
-193
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT ALL + COUNT( * ) - + 59 AS col1 FROM tab1 cor0
----
-56

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL + COUNT ( * ) - + 59 AS col1 FROM tab1 cor0
----
-56

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT - 27 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT DISTINCT ( + SUM( ALL col0 ) ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-6939
SELECT DISTINCT ( + SUM ( ALL col0 ) ) AS col1 FROM tab2
----
185

query I rowsort
SELECT DISTINCT + + 5 AS col1 FROM tab0 AS cor0 WHERE col2 * - + 81 * ( + + col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6941
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + + 33 AND + - 48 * - CAST( NULL AS SIGNED ) + - 14 * - col0 * + + 10
----

skipif mysql # not compatible
query III rowsort label-6941
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + + 33 AND + - 48 * - CAST ( NULL AS INTEGER ) + - 14 * - col0 * + + 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT + COUNT( * ) * 73 FROM tab2 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-6942
SELECT + COUNT ( * ) * 73 FROM tab2 AS cor0
----
219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6943
SELECT col2 * + + ( + + CAST( 44 AS SIGNED ) ) FROM tab0
----
2068
4356
440

skipif mysql # not compatible
query I rowsort label-6943
SELECT col2 * + + ( + + CAST ( 44 AS INTEGER ) ) FROM tab0
----
2068
4356
440

query II rowsort
SELECT DISTINCT ( col0 ) AS col0, - col1 FROM tab1
----
51
-14
85
-5
91
-47

query I rowsort
SELECT DISTINCT col2 * col0 AS col1 FROM tab1 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT ALL - col1 * + - col2 * - col0 * - - col1 AS col0 FROM tab0
----
-383670
-4625505
-9603

query I rowsort
SELECT ALL - 56 + + 39 FROM tab2
----
-17
-17
-17

query I rowsort
SELECT col1 * + - col0 AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT col2 * - - 64 FROM tab0 AS cor0
----
3008
6336
640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6950
SELECT + - CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6950
SELECT + - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6951
SELECT - col1 DIV 1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-6951
SELECT - col1 / 1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL - 99 * - col0 - col0 AS col2 FROM tab2 AS cor0 WHERE NOT 69 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6953
SELECT + COUNT( * ) col2, + 98 AS col2 FROM tab1 cor0
----
3
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6953
SELECT + COUNT ( * ) col2, + 98 AS col2 FROM tab1 cor0
----
3
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6954
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) + 35 * - 96 * + + col0 * + + col2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6954
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) + 35 * - 96 * + + col0 * + + col2 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + col1 FROM tab0 WHERE - 77 NOT BETWEEN NULL AND + + col2
----

query I rowsort
SELECT ALL 60 * - - 74 + - + col0 FROM tab1
----
4349
4355
4389

onlyif mysql # DIV for integer division: 
query I rowsort label-6957
SELECT DISTINCT - col0 DIV col2 + + col1 FROM tab0
----
1
13
81

skipif mysql # not compatible
query I rowsort label-6957
SELECT DISTINCT - col0 / col2 + + col1 FROM tab0
----
1
13
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 + col0 col1 FROM tab2
----
28
46
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6959
SELECT DISTINCT col2 col0 FROM tab2 AS cor0 WHERE NULL <> CAST( - + col2 AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6959
SELECT DISTINCT col2 col0 FROM tab2 AS cor0 WHERE NULL <> CAST ( - + col2 AS INTEGER )
----

query I rowsort
SELECT + + 25 * - col0 AS col2 FROM tab1 AS cor0
----
-1275
-2125
-2275

onlyif mysql # DIV for integer division: 
query I rowsort label-6961
SELECT + - col1 DIV + col1 + col1 FROM tab0 AS cor0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-6961
SELECT + - col1 / + col1 + col1 FROM tab0 AS cor0
----
0
20
80

query I rowsort
SELECT DISTINCT - col1 + + - 85 AS col0 FROM tab1 AS cor0
----
-132
-90
-99

query I rowsort
SELECT - col0 + + col1 AS col1 FROM tab1 WHERE NOT NULL IN ( - 96, - col2, - col2, col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6964
SELECT ALL col2 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL col2 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6965
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6965
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE ( NULL ) <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6967
SELECT - + col2 AS col1, - ( CAST( NULL AS SIGNED ) ) col2 FROM tab0 cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6967
SELECT - + col2 AS col1, - ( CAST ( NULL AS INTEGER ) ) col2 FROM tab0 cor0
----
-10
NULL
-47
NULL
-99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab2 WHERE NOT + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6968
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab2 WHERE NOT + col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT ALL + 19 * - COUNT( DISTINCT col2 ) AS col0 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-6969
SELECT ALL + 19 * - COUNT ( DISTINCT col2 ) AS col0 FROM tab2
----
-57

query II rowsort
SELECT DISTINCT col0, 27 FROM tab2
----
46
27
64
27
75
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6971
SELECT + COUNT( * ) * COUNT( * ) DIV + 2 AS col2 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-6971
SELECT + COUNT ( * ) * COUNT ( * ) / + 2 AS col2 FROM tab2
----
4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 97 >= col2 * - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - - col2 AS col0, col0 FROM tab2 cor0
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6974
SELECT col0 * CAST( - col1 AS SIGNED ) FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-6974
SELECT col0 * CAST ( - col1 AS INTEGER ) FROM tab2
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6975
SELECT DISTINCT + CAST( NULL AS SIGNED ), + 50 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
50

skipif mysql # not compatible
query II rowsort label-6975
SELECT DISTINCT + CAST ( NULL AS INTEGER ), + 50 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
50

query II rowsort
SELECT + 13 + - col2 AS col0, 42 FROM tab2 AS cor0
----
-10
42
-27
42
-45
42

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 - + + col2 + + col2 / + col2 IS NULL
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NULL > 40
----

query I rowsort
SELECT ALL + col2 * - - col2 + 15 FROM tab1 AS cor0
----
3496
4639
9231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6980
SELECT + MIN( ALL + col0 ) + + CAST( - + SUM( - 80 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-6980
SELECT + MIN ( ALL + col0 ) + + CAST ( - + SUM ( - 80 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
291

query I rowsort
SELECT + 82 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT DISTINCT + 80 - - col1 AS col1 FROM tab2
----
131
147
157

query I rowsort
SELECT ALL 81 + col1 AS col2 FROM tab0
----
102
162
82

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE - - 44 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT - COUNT( - col1 ) col0 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6985
SELECT - COUNT ( - col1 ) col0 FROM tab2
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6986
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab2 WHERE + 1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL CAST ( NULL AS REAL ) FROM tab2 WHERE + 1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT MAX( 94 ) FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-6987
SELECT MAX ( 94 ) FROM tab0
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 col2 FROM tab2
----
-3
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6989
SELECT DISTINCT col1 + 92 * + - col1 + + col2 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6989
SELECT DISTINCT col1 + 92 * + - col1 + + col2 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT + MAX( + 32 ) AS col2 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-6990
SELECT + MAX ( + 32 ) AS col2 FROM tab1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6991
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 + + col0 col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6991
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 + + col0 col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 36 * + 6 AS col1 FROM tab2 AS cor0
----
216

onlyif mysql # DIV for integer division: 
query I rowsort label-6993
SELECT ALL - + 26 DIV - - col1 AS col0 FROM tab0 cor0
----
-1
-26
0

skipif mysql # not compatible
query I rowsort label-6993
SELECT ALL - + 26 / - - col1 AS col0 FROM tab0 cor0
----
-1
-26
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT COUNT( * ) + - 73 AS col0 FROM tab0
----
-70

skipif mysql # not compatible
query I rowsort label-6995
SELECT COUNT ( * ) + - 73 AS col0 FROM tab0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT 9 + COUNT( * ) AS col1 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-6996
SELECT 9 + COUNT ( * ) AS col1 FROM tab0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6997
SELECT SUM( ALL - col0 ) * 35 - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6997
SELECT SUM ( ALL - col0 ) * 35 - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE NOT col0 * col0 + - 32 * col2 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6998
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE NOT col0 * col0 + - 32 * col2 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL - 88 FROM tab1 WHERE NOT NULL >= - col0
----

query I rowsort
SELECT ALL 80 FROM tab1 WHERE NOT ( + col0 ) <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 39 + col0 <> ( 61 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 58 FROM tab0 WHERE NOT NULL BETWEEN + col2 AND - 84
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + 82 )
----

query I rowsort
SELECT DISTINCT ( + 98 ) + col2 * col0 AS col0 FROM tab1
----
4994
5113
6286

query I rowsort
SELECT - 73 * 46 - + col2 AS col0 FROM tab2
----
-3381
-3398
-3416

query I rowsort
SELECT + col0 * - col0 + + col2 AS col1 FROM tab0
----
-178
-7559
-9310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7007
SELECT - AVG ( + col0 ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7007
SELECT - AVG ( + col0 ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NULL IN ( ( + 61 ) + - col0 * col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 37 BETWEEN NULL AND - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7010
SELECT CAST( NULL AS SIGNED ) + - SUM( + col0 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7010
SELECT CAST ( NULL AS INTEGER ) + - SUM ( + col0 ) AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( + col0 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( + 46 ) BETWEEN - ( - col1 ) AND col1
----

query III rowsort
SELECT * FROM tab2 WHERE col1 + + col2 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + - 12 AS col0 FROM tab2 WHERE ( 61 ) IS NULL
----

query I rowsort
SELECT DISTINCT 73 AS col0 FROM tab0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7016
SELECT ALL - CAST( 14 AS SIGNED ) + 73 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL - CAST ( 14 AS INTEGER ) + 73 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT - COUNT( * ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7017
SELECT - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT + 91 * MIN( col0 ) FROM tab1 AS cor0
----
4641

skipif mysql # not compatible
query I rowsort label-7019
SELECT + 91 * MIN ( col0 ) FROM tab1 AS cor0
----
4641

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT ALL + SUM( col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7020
SELECT ALL + SUM ( col1 ) AS col1 FROM tab1 AS cor0
----
66

query I rowsort
SELECT ALL + 60 + col1 AS col0 FROM tab0 AS cor0
----
141
61
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col2 ) IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col2 - 74 AS col1 FROM tab2 cor0
----
-114
-132
-97

query I rowsort
SELECT col1 * col2 - col0 AS col2 FROM tab1 AS cor0
----
1293
210
3105

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT + - COUNT( * ) - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7025
SELECT + - COUNT ( * ) - COUNT ( * ) FROM tab2 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab2 AS cor0 WHERE NOT + col0 NOT IN ( - col0 * col0 )
----

query I rowsort
SELECT ALL + col0 * + 45 * col0 + + col0 AS col2 FROM tab1
----
117096
325210
372736

query I rowsort
SELECT ( col2 ) FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN ( col2 * col0 ) AND ( + col0 )
----

query I rowsort
SELECT ALL + col1 * - col2 - ( + col1 ) * 20 AS col2 FROM tab0
----
-119
-5427
-630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7031
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE 75 BETWEEN 5 / + 10 AND + col1 + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7031
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE 75 BETWEEN 5 / + 10 AND + col1 + col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7032
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7032
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - ( 9 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 col0 FROM tab1 cor0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT COUNT( ALL - - col1 ) * 41 AS col1 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-7035
SELECT COUNT ( ALL - - col1 ) * 41 AS col1 FROM tab1 AS cor0
----
123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 + 45 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
131
131
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7037
SELECT DISTINCT 26 FROM tab0 AS cor0 WHERE NOT NULL IN ( + CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7037
SELECT DISTINCT 26 FROM tab0 AS cor0 WHERE NOT NULL IN ( + CAST ( col1 AS INTEGER ) )
----

query I rowsort
SELECT + 30 * + + col1 AS col1 FROM tab1 AS cor0
----
1410
150
420

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) >= ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT ALL - COUNT( * ) * COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col1 + - col0 BETWEEN ( 96 + + col2 ) AND + 6
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT + SUM( ALL - - 94 ) FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-7042
SELECT + SUM ( ALL - - 94 ) FROM tab2
----
282

query I rowsort
SELECT 6 * col1 * - col0 FROM tab1
----
-2550
-25662
-4284

query I rowsort
SELECT DISTINCT 91 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-7045
SELECT COUNT( * ) AS col0, 79 AS col2 FROM tab0
----
3
79

skipif mysql # not compatible
query II rowsort label-7045
SELECT COUNT ( * ) AS col0, 79 AS col2 FROM tab0
----
3
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT - COUNT( - 73 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7046
SELECT - COUNT ( - 73 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7047
SELECT + COUNT( * ) AS col1, + 67 FROM tab0 AS cor0
----
3
67

skipif mysql # not compatible
query II rowsort label-7047
SELECT + COUNT ( * ) AS col1, + 67 FROM tab0 AS cor0
----
3
67

query I rowsort
SELECT DISTINCT 83 * + col1 + - col1 AS col2 FROM tab1 AS cor0
----
1148
3854
410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7049
SELECT ALL - CAST( + col0 AS SIGNED ) * - col2 AS col2 FROM tab1 AS cor0
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-7049
SELECT ALL - CAST ( + col0 AS INTEGER ) * - col2 AS col2 FROM tab1 AS cor0
----
4896
5015
6188

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 46 * col0 + + col2 ) BETWEEN - 3 AND - 30 * col0 + 21
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 + ( 58 ) * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7052
SELECT DISTINCT - col1 DIV + col0 col0 FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7052
SELECT DISTINCT - col1 / + col0 col0 FROM tab0 AS cor0
----
-5
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7053
SELECT ALL 6 DIV + 80 * + - col2 - 31 * + col1 + + 72 * col1 AS col0 FROM tab2 AS cor0
----
2091
2747
3157

skipif mysql # not compatible
query I rowsort label-7053
SELECT ALL 6 / + 80 * + - col2 - 31 * + col1 + + 72 * col1 AS col0 FROM tab2 AS cor0
----
2091
2747
3157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7054
SELECT ALL 83 DIV - MIN( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7054
SELECT ALL 83 / - MIN ( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7055
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( col1 ) FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7055
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( col1 ) FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT NULL < + col2
----
0

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT NULL < + col2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 89 * + col0 <= col2 * - col2
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT DISTINCT MIN( 98 ) FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-7058
SELECT DISTINCT MIN ( 98 ) FROM tab2
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7059
SELECT + 87 DIV ( - ( + col1 ) ) + col0 AS col1 FROM tab1
----
45
68
90

skipif mysql # not compatible
query I rowsort label-7059
SELECT + 87 / ( - ( + col1 ) ) + col0 AS col1 FROM tab1
----
45
68
90

query I rowsort
SELECT + 49 + + col0 + 59 AS col1 FROM tab1
----
159
193
199

query III rowsort
SELECT * FROM tab2 WHERE + 77 > ( NULL )
----

query I rowsort
SELECT DISTINCT col0 * 13 AS col1 FROM tab1
----
1105
1183
663

onlyif mysql # DIV for integer division: 
query I rowsort label-7063
SELECT - col2 + + 2 + - + col2 DIV ( ( + 1 ) ) + 26 AS col0 FROM tab0
----
-170
-66
8

skipif mysql # not compatible
query I rowsort label-7063
SELECT - col2 + + 2 + - + col2 / ( ( + 1 ) ) + 26 AS col0 FROM tab0
----
-170
-66
8

query I rowsort
SELECT + 27 * col0 * + col2 * - - 9 FROM tab0 AS cor0
----
171315
211410
2333529

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( NOT ( + col1 ) IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( - 61 )
----

query I rowsort
SELECT DISTINCT - 45 - 99 FROM tab2
----
-144

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 * + - 50 IN ( - col1 + - col1 / - 68 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7069
SELECT - + col2 + - CAST( 61 AS SIGNED ) FROM tab2 AS cor0
----
-101
-119
-84

skipif mysql # not compatible
query I rowsort label-7069
SELECT - + col2 + - CAST ( 61 AS INTEGER ) FROM tab2 AS cor0
----
-101
-119
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT DISTINCT + MIN( - 91 ) col2 FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7070
SELECT DISTINCT + MIN ( - 91 ) col2 FROM tab0 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT DISTINCT + MIN( - + 24 ) AS col0 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-7071
SELECT DISTINCT + MIN ( - + 24 ) AS col0 FROM tab2 AS cor0
----
-24

query I rowsort
SELECT - + col1 * + 5 * - col2 * col0 FROM tab1 AS cor0
----
125375
1454180
342720

query I rowsort
SELECT ALL + col1 * - + 99 AS col0 FROM tab2 AS cor0
----
-5049
-6633
-7623

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7074
SELECT * FROM tab2 cor0 WHERE col1 * CAST( - - ( col0 ) AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7074
SELECT * FROM tab2 cor0 WHERE col1 * CAST ( - - ( col0 ) AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + + ( - 17 ) * + col2 AS col0, + col1 FROM tab2 AS cor0
----
-391
51
-680
77
-986
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT SUM( + 60 ) FROM tab1 WHERE 72 * col2 * + col2 / 6 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7076
SELECT SUM ( + 60 ) FROM tab1 WHERE 72 * col2 * + col2 / 6 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, + col1 AS col2 FROM tab1
----
-14
14
-47
47
-5
5

query I rowsort
SELECT DISTINCT - ( + 54 ) FROM tab0
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-7079
SELECT ( + + col2 ) DIV - - 25 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-7079
SELECT ( + + col2 ) / - - 25 FROM tab0
----
0
1
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 NOT BETWEEN col2 AND ( + col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7081
SELECT COUNT( * ) * MIN( DISTINCT col1 ) - + 51 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN 18 + + 0 * + - CAST( - + col0 AS SIGNED ) + col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7081
SELECT COUNT ( * ) * MIN ( DISTINCT col1 ) - + 51 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN 18 + + 0 * + - CAST ( - + col0 AS INTEGER ) + col2 AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 50 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN - 33 AND NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - - ( - col1 ) AS col0, 99 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-14
99
-47
99
-5
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7086
SELECT - col2 + + 63 DIV col2 FROM tab2 AS cor0 WHERE NOT + col0 IN ( - col2 )
----
-21
-39
-57

skipif mysql # not compatible
query I rowsort label-7086
SELECT - col2 + + 63 / col2 FROM tab2 AS cor0 WHERE NOT + col0 IN ( - col2 )
----
-21
-39
-57

query II rowsort
SELECT + 9 AS col0, - col0 * - col2 FROM tab0 AS cor0
----
9
705
9
870
9
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * - 96 col2, + col2 * + col2 * col0 + - + 30 FROM tab1
----
-5664
295855
-6528
420754
-9216
469986

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT + - 80 + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-71

skipif mysql # not compatible
query I rowsort label-7089
SELECT + - 80 + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7090
SELECT DISTINCT - SUM( ALL - CAST( + col2 AS SIGNED ) ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-7090
SELECT DISTINCT - SUM ( ALL - CAST ( + col2 AS INTEGER ) ) FROM tab1
----
223

query I rowsort
SELECT DISTINCT ( + + col1 ) AS col1 FROM tab2 AS cor0 WHERE + 36 - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 22 / + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7092
SELECT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 22 / + col2 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT DISTINCT + 58 - - 48 FROM tab1 AS cor0 WHERE ( NOT ( - col1 * + col1 ) BETWEEN - col2 * + col2 AND ( NULL ) )
----

query I rowsort
SELECT DISTINCT + + col0 + 35 FROM tab0 AS cor0
----
122
132
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT - SUM( ALL 35 ) AS col1 FROM tab2 cor0
----
-105

skipif mysql # not compatible
query I rowsort label-7096
SELECT - SUM ( ALL 35 ) AS col1 FROM tab2 cor0
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7097
SELECT DISTINCT + CAST( NULL AS SIGNED ) + ( col0 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7097
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + ( col0 ) AS col1 FROM tab2
----
NULL

query II rowsort
SELECT - 36 AS col1, - 59 FROM tab2
----
-36
-59
-36
-59
-36
-59

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 14 * - col2 * col0 / - - col1 IN ( + col0 + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE col0 >= ( + + 79 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 44 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7102
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7102
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col2 + 11 AS col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7104
SELECT DISTINCT - ( - + 65 ) + col2 + CAST( + + col2 AS SIGNED ) FROM tab1 AS cor0
----
183
201
257

skipif mysql # not compatible
query I rowsort label-7104
SELECT DISTINCT - ( - + 65 ) + col2 + CAST ( + + col2 AS INTEGER ) FROM tab1 AS cor0
----
183
201
257

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 7 * col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 55 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
55

query I rowsort
SELECT col0 * ( ( + - col2 ) ) AS col0 FROM tab2
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab1 WHERE - 27 / + 63 IS NULL
----

query I rowsort
SELECT ALL + + col2 - + 56 AS col2 FROM tab2 AS cor0
----
-16
-33
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT + - MAX( - + col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7110
SELECT + - MAX ( - + col2 ) AS col1 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT - 36 * - COUNT( 28 ) FROM tab1 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-7111
SELECT - 36 * - COUNT ( 28 ) FROM tab1 AS cor0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT + COUNT( - col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7112
SELECT + COUNT ( - col0 ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + - 27 * + col1 AND ( ( + - col1 ) )
----

query II rowsort
SELECT col2 AS col2, - col1 + + 9 * - col0 AS col1 FROM tab2
----
23
-465
40
-653
58
-742

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - - col2, col2, - 27 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 * col1 col1 FROM tab2
----
1887
2479
2849

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7117
SELECT COUNT( * ) DIV + 11 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7117
SELECT COUNT ( * ) / + 11 AS col1 FROM tab0
----
0

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT MAX( DISTINCT 28 ) FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-7119
SELECT MAX ( DISTINCT 28 ) FROM tab2
----
28

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL IN ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 7 / col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 >= - - 30 + - col2
----

query II rowsort
SELECT DISTINCT + - 62 AS col0, col2 * - col1 FROM tab2 AS cor0
----
-62
-1173
-62
-3080
-62
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7124
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN col0 * + CAST( NULL AS SIGNED ) * + + col1 AND + + col1 / col2 - - + col0 * - - ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-7124
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN col0 * + CAST ( NULL AS INTEGER ) * + + col1 AND + + col1 / col2 - - + col0 * - - ( - col1 )
----

query I rowsort
SELECT ALL - col0 * - 79 AS col0 FROM tab1
----
4029
6715
7189

query I rowsort
SELECT 84 * + + ( - 74 ) + - 0 + + - ( - 60 ) + - 67 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 5dd5538870ff05e6a20705d60386e898

query II rowsort
SELECT col2, col2 * - col1 FROM tab2
----
23
-1173
40
-3080
58
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7128
SELECT - + col2 * + col1 + col0 + col0 AS col1, - col2 + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-1081
NULL
-2952
NULL
-3736
NULL

skipif mysql # not compatible
query II rowsort label-7128
SELECT - + col2 * + col1 + col0 + col0 AS col1, - col2 + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-1081
NULL
-2952
NULL
-3736
NULL

query II rowsort
SELECT - 89 AS col2, col1 AS col2 FROM tab2 AS cor0
----
-89
51
-89
67
-89
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT ALL - + MIN( - col0 ) col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7130
SELECT ALL - + MIN ( - col0 ) col2 FROM tab2 AS cor0
----
75

query I rowsort
SELECT 73 + - 88 FROM tab1 AS cor0
----
-15
-15
-15

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> - col2 / - + 1
----

query I rowsort
SELECT col1 FROM tab2 WHERE NULL IN ( - 45 )
----

query I rowsort
SELECT + ( + - 81 ) + + + col0 AS col1 FROM tab1
----
-30
10
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col1 * + + col2 col2 FROM tab1
----
129024
17405
217328

query I rowsort
SELECT + ( + col0 ) + 90 FROM tab2
----
136
154
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7137
SELECT - ( + col0 ) + - + col2 * CAST( 85 AS SIGNED ) AS col0 FROM tab2
----
-2001
-3464
-5005

skipif mysql # not compatible
query I rowsort label-7137
SELECT - ( + col0 ) + - + col2 * CAST ( 85 AS INTEGER ) AS col0 FROM tab2
----
-2001
-3464
-5005

query I rowsort
SELECT + 37 * - ( - + ( + - 25 ) ) AS col1 FROM tab2
----
-925
-925
-925

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT DISTINCT + SUM( ALL - + col0 ) * + 10 + 22 AS col0 FROM tab0
----
-1968

skipif mysql # not compatible
query I rowsort label-7139
SELECT DISTINCT + SUM ( ALL - + col0 ) * + 10 + 22 AS col0 FROM tab0
----
-1968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7140
SELECT ALL col2 + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
144
147
159

skipif mysql # not compatible
query I rowsort label-7140
SELECT ALL col2 + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
144
147
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7141
SELECT CAST( NULL AS SIGNED ) + + SUM( DISTINCT - col1 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7141
SELECT CAST ( NULL AS INTEGER ) + + SUM ( DISTINCT - col1 ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT col2 + - 13 AS col0 FROM tab1
----
46
55
83

query I rowsort
SELECT ALL - ( + ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT - 5 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT DISTINCT - - COUNT( - - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7145
SELECT DISTINCT - - COUNT ( - - col1 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL + + 33, ( - - 94 ) AS col0 FROM tab1 cor0
----
33
94
33
94
33
94

query I rowsort
SELECT + col2 * + + 3 FROM tab1 AS cor0
----
177
204
288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 * 70 col1 FROM tab2 AS cor0
----
4410
4410
4410

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT + SUM( DISTINCT col1 ) * - - 34 FROM tab1 AS cor0
----
2244

skipif mysql # not compatible
query I rowsort label-7149
SELECT + SUM ( DISTINCT col1 ) * - - 34 FROM tab1 AS cor0
----
2244

query I rowsort
SELECT ALL + col2 * - - col2 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT col2 * col1 * - col0 AS col1 FROM tab2 cor0
----
-197120
-291450
-53958

query I rowsort
SELECT DISTINCT - + 71 * col2 AS col2 FROM tab0 cor0
----
-3337
-7029
-710

query I rowsort
SELECT - 15 * + + col1 + + - 60 AS col2 FROM tab1 AS cor0
----
-135
-270
-765

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7154
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 / CAST( NULL AS SIGNED ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7154
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 / CAST ( NULL AS INTEGER ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 13 * + col1 - - - ( - - 25 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
638
846
976

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT 73 * - - COUNT( * ) FROM tab0
----
219

skipif mysql # not compatible
query I rowsort label-7156
SELECT 73 * - - COUNT ( * ) FROM tab0
----
219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7157
SELECT ALL ( - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7157
SELECT ALL ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - - 52 - + col2 col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-2748
-4479
-4800

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 39 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7160
SELECT ALL 27 DIV + COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7160
SELECT ALL 27 / + COUNT ( * ) AS col1 FROM tab0
----
9

query II rowsort
SELECT ALL col1 + + 66 * 78 AS col0, col1 - + col0 AS col2 FROM tab0
----
5149
-96
5169
-66
5229
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT - + COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-7162
SELECT - + COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

query I rowsort
SELECT DISTINCT 47 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 35 IS NULL
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT 88 * - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-792

skipif mysql # not compatible
query I rowsort label-7164
SELECT 88 * - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-792

query I rowsort
SELECT DISTINCT - 35 FROM tab0, tab0 AS cor0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT ALL + COUNT( col1 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7166
SELECT ALL + COUNT ( col1 ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7167
SELECT DISTINCT + CAST( - ( - col1 ) AS SIGNED ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7167
SELECT DISTINCT + CAST ( - ( - col1 ) AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL - - col0 AS col0 FROM tab1 AS cor0 WHERE NOT + 5 IS NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col1, + ( 8 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT DISTINCT - MIN( ALL - + 1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7170
SELECT DISTINCT - MIN ( ALL - + 1 ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7171
SELECT ALL - col2 DIV - ( + ( - + col2 ) ) + - col2, - col1 * + ( col0 ) AS col0 FROM tab1 AS cor0
----
-60
-425
-69
-4277
-97
-714

skipif mysql # not compatible
query II rowsort label-7171
SELECT ALL - col2 / - ( + ( - + col2 ) ) + - col2, - col1 * + ( col0 ) AS col0 FROM tab1 AS cor0
----
-60
-425
-69
-4277
-97
-714

query I rowsort
SELECT - 66 FROM tab2 WHERE NULL IS NULL
----
-66
-66
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7173
SELECT DISTINCT + col1 * + ( - ( col1 ) ) + CAST( NULL AS SIGNED ) - + - 80 AS col0, + 79 FROM tab1
----
NULL
79

skipif mysql # not compatible
query II rowsort label-7173
SELECT DISTINCT + col1 * + ( - ( col1 ) ) + CAST ( NULL AS INTEGER ) - + - 80 AS col0, + 79 FROM tab1
----
NULL
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7174
SELECT - ( - COUNT( * ) ) * ( 0 ) AS col1 FROM tab0 WHERE - 23 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7174
SELECT - ( - COUNT ( * ) ) * ( 0 ) AS col1 FROM tab0 WHERE - 23 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT MIN( ALL + + 68 ) FROM tab0 AS cor0 WHERE ( + ( - ( - - 95 ) ) + - 79 * 59 * - - col0 <> ( - - col1 * col1 + - col0 - - - col1 + + 69 ) )
----
68

skipif mysql # not compatible
query I rowsort label-7175
SELECT MIN ( ALL + + 68 ) FROM tab0 AS cor0 WHERE ( + ( - ( - - 95 ) ) + - 79 * 59 * - - col0 <> ( - - col1 * col1 + - col0 - - - col1 + + 69 ) )
----
68

query I rowsort
SELECT - 37 + + 57 FROM tab1 AS cor0
----
20
20
20

query I rowsort
SELECT - + 43 * + col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-2193
-2881
-3311

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7178
SELECT + 12 + COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN + col0 * + col1 AND + CAST( col0 AS DECIMAL ) * + col2 * 13 * - - col2
----
12

skipif mysql # not compatible
query I rowsort label-7178
SELECT + 12 + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN + col0 * + col1 AND + CAST ( col0 AS REAL ) * + col2 * 13 * - - col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT - + COUNT( * ) * + COUNT( * ) * + - MIN( col0 ) AS col0 FROM tab0 WHERE + 24 IS NOT NULL
----
135

skipif mysql # not compatible
query I rowsort label-7179
SELECT - + COUNT ( * ) * + COUNT ( * ) * + - MIN ( col0 ) AS col0 FROM tab0 WHERE + 24 IS NOT NULL
----
135

query I rowsort
SELECT - col2 * - - 3 + + col1 * - 62 AS col2 FROM tab0 AS cor0
----
-1332
-359
-5163

query I rowsort
SELECT DISTINCT - + 82 * - + col2 FROM tab0 AS cor0
----
3854
8118
820

query II rowsort
SELECT - col2 AS col1, + col2 * - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7183
SELECT - ( - 97 ) * COUNT( * ) DIV 17 col0 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7183
SELECT - ( - 97 ) * COUNT ( * ) / 17 col0 FROM tab1 AS cor0
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * - col0 col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT DISTINCT COUNT( ALL 7 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7185
SELECT DISTINCT COUNT ( ALL 7 ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7186
SELECT DISTINCT ( + col1 ) DIV - 29 col2, + col2 AS col2 FROM tab1
----
-1
68
0
59
0
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7186
SELECT DISTINCT ( + col1 ) / - 29 col2, + col2 AS col2 FROM tab1
----
-1
68
0
59
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT DISTINCT MAX( DISTINCT - - 9 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7187
SELECT DISTINCT MAX ( DISTINCT - - 9 ) FROM tab2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7188
SELECT DISTINCT + col0 DIV - 52 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-7188
SELECT DISTINCT + col0 / - 52 FROM tab2
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7189
SELECT ALL + 50 DIV 45 + - col0 * - 6 FROM tab0 WHERE NOT NULL IS NOT NULL
----
523
583
91

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL + 50 / 45 + - col0 * - 6 FROM tab0 WHERE NOT NULL IS NOT NULL
----
523
583
91

query II rowsort
SELECT - + col1, - 93 AS col0 FROM tab0 AS cor0
----
-1
-93
-21
-93
-81
-93

query I rowsort
SELECT 67 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN ( col2 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + - 59 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7193
SELECT col0 AS col1 FROM tab1 WHERE + col1 * CAST( NULL AS SIGNED ) * 75 / + col0 IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7193
SELECT col0 AS col1 FROM tab1 WHERE + col1 * CAST ( NULL AS INTEGER ) * 75 / + col0 IS NULL
----
51
85
91

query I rowsort
SELECT 78 * + - col1 AS col0 FROM tab1
----
-1092
-3666
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT ALL - 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-7195
SELECT ALL - COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT DISTINCT ( + 81 ) AS col0 FROM tab1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT + SUM( DISTINCT + col0 ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
202

skipif mysql # not compatible
query I rowsort label-7197
SELECT + SUM ( DISTINCT + col0 ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
202

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT DISTINCT - - SUM( - 25 ) AS col1 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7199
SELECT DISTINCT - - SUM ( - 25 ) AS col1 FROM tab0 AS cor0
----
-75

query I rowsort
SELECT - col1 + - 80 AS col2 FROM tab0 cor0
----
-101
-161
-81

query I rowsort
SELECT col1 * + col0 * + + 5 + 95 AS col2 FROM tab2
----
11825
24735
25220

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT DISTINCT ( - MAX( - col2 ) ) + - - 91 FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT ( - MAX ( - col2 ) ) + - - 91 FROM tab2
----
114

query I rowsort
SELECT DISTINCT + 46 + - col1 AS col0 FROM tab1
----
-1
32
41

query I rowsort
SELECT col0 - - ( + - col2 ) + + 26 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 97 + - - col0 FROM tab2
----
143
161
172

query I rowsort
SELECT DISTINCT col2 - - 24 AS col2 FROM tab0
----
123
34
71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * + col1 / col2 > - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 25 - - 50 + - - col0 + + 43 + + col2 + + + 69 AS col1 FROM tab0 AS cor0
----
249
284
383

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT ALL COUNT( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7209
SELECT ALL COUNT ( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7210
SELECT + CAST( NULL AS SIGNED ) / + col0 / - col2 + - ( + + col0 ) * + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7210
SELECT + CAST ( NULL AS INTEGER ) / + col0 / - col2 + - ( + + col0 ) * + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col1, 65 AS col1 FROM tab0
----
-1
65
-21
65
-81
65

query I rowsort
SELECT + 2 * + col1 * - col0 AS col2 FROM tab2
----
-10050
-4692
-9856

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - - col2 AND - col2
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - ( - 37 ) IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE 71 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT ( - + COUNT( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7216
SELECT ( - + COUNT ( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT DISTINCT ( + 24 ) AS col0 FROM tab0 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT DISTINCT - COUNT( DISTINCT col1 ) * + 14 - + - 73 FROM tab2 cor0
----
31

skipif mysql # not compatible
query I rowsort label-7218
SELECT DISTINCT - COUNT ( DISTINCT col1 ) * + 14 - + - 73 FROM tab2 cor0
----
31

query I rowsort
SELECT DISTINCT - col2 * col0 * + 92 FROM tab1 AS cor0
----
-450432
-461380
-569296

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7220
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 + - CAST( col2 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-7220
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 + - CAST ( col2 AS REAL ) )
----

query I rowsort
SELECT + - 99 FROM tab0 AS cor0 WHERE NOT + col2 > + col1
----
-99
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 23 col0 FROM tab1 AS cor0
----
-1173
-1955
-2093

onlyif mysql # DIV for integer division: 
query II rowsort label-7223
SELECT + 50 * - - col0 AS col2, col2 DIV ( + 80 ) AS col0 FROM tab2 AS cor0
----
2300
0
3200
0
3750
0

skipif mysql # not compatible
query II rowsort label-7223
SELECT + 50 * - - col0 AS col2, col2 / ( + 80 ) AS col0 FROM tab2 AS cor0
----
2300
0
3200
0
3750
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7224
SELECT - ( - CAST( 56 AS SIGNED ) ) FROM tab1
----
56
56
56

skipif mysql # not compatible
query I rowsort label-7224
SELECT - ( - CAST ( 56 AS INTEGER ) ) FROM tab1
----
56
56
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7225
SELECT ALL + col0 AS col2 FROM tab2 WHERE NOT - CAST( col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7225
SELECT ALL + col0 AS col2 FROM tab2 WHERE NOT - CAST ( col2 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 / + col0 - + col2 / ( col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( - ( - col0 ) ) * + ( + 2 ) AS col1 FROM tab1
----
102
170
182

query I rowsort
SELECT 15 AS col1 FROM tab0 cor0 WHERE NOT col0 BETWEEN - col2 + - 34 AND NULL
----

query I rowsort
SELECT - col0 + - - ( + col2 ) AS col0 FROM tab0 AS cor0
----
-77
2
32

query III rowsort
SELECT ALL * FROM tab1 WHERE 68 * + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( col1, col0 + - col1, 19 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7233
SELECT + - col1 DIV + - col1 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7233
SELECT + - col1 / + - col1 FROM tab2 cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7234
SELECT ALL + - ( - ( + 2 ) ) DIV + 32 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7234
SELECT ALL + - ( - ( + 2 ) ) / + 32 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT ALL - + col2, col2 AS col0 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query II rowsort
SELECT 58 AS col2, col0 FROM tab2 AS cor0
----
58
46
58
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7237
SELECT + col1, + CAST( - - 2 AS SIGNED ) FROM tab1 AS cor0
----
14
2
47
2
5
2

skipif mysql # not compatible
query II rowsort label-7237
SELECT + col1, + CAST ( - - 2 AS INTEGER ) FROM tab1 AS cor0
----
14
2
47
2
5
2

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col2 <> - col0 * - ( - col0 ) + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 65 * + 46 * col1 AS col0 FROM tab0 AS cor0
----
242190
2990
62790

query I rowsort
SELECT col2 - - - 47 * + col1 + - - 28 FROM tab1
----
-148
-2113
-534

query I rowsort
SELECT ALL 61 + - - col0 * - col0 AS col0 FROM tab0
----
-164
-7508
-9348

query I rowsort
SELECT ALL - 36 + + col2 AS col0 FROM tab2
----
-13
22
4

onlyif mysql # DIV for integer division: 
query I rowsort label-7243
SELECT DISTINCT - 55 DIV col2 + - 70 AS col2 FROM tab0
----
-70
-71
-75

skipif mysql # not compatible
query I rowsort label-7243
SELECT DISTINCT - 55 / col2 + - 70 AS col2 FROM tab0
----
-70
-71
-75

query I rowsort
SELECT DISTINCT ( + + col2 ) - + col1 FROM tab0
----
-11
-34
98

query I rowsort
SELECT - + col2 + + col0 * - col0 AS col1 FROM tab1 cor0
----
-2697
-7284
-8349

query I rowsort
SELECT DISTINCT col0 + - col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT DISTINCT - SUM( - + ( - - ( col2 ) ) ) col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7247
SELECT DISTINCT - SUM ( - + ( - - ( col2 ) ) ) col1 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT - 87 * + + COUNT( - col0 ) FROM tab1 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-7248
SELECT - 87 * + + COUNT ( - col0 ) FROM tab1 AS cor0
----
-261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col2, - ( + ( + - ( col1 ) ) ) col0 FROM tab2
----
23
51
40
77
58
67

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NOT ( - - col2 / + - 2 * ( col1 ) ) > col2 )
----

query I rowsort
SELECT DISTINCT ( col0 ) * - + col2 FROM tab0 AS cor0
----
-705
-870
-9603

query II rowsort
SELECT - - 60, col1 FROM tab2 AS cor0
----
60
51
60
67
60
77

query I rowsort
SELECT ALL col0 + + + 20 * - col2 AS col0 FROM tab1 AS cor0 WHERE - col1 - - col1 + - col1 NOT BETWEEN col1 AND NULL
----
-1095
-1269
-1869

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7254
SELECT - CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7254
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 = + 15
----

query II rowsort
SELECT DISTINCT 27 AS col2, col0 FROM tab1 AS cor0
----
27
51
27
85
27
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col1 FROM tab0 AS cor0 WHERE NOT - col2 * 99 < NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 68 / - col2 * + col2 >= col2 + - col1 + + ( - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7259
SELECT + col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7259
SELECT + col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 68 * + ( 16 ) + + col0 FROM tab0
----
1103
1175
1185

query III rowsort
SELECT * FROM tab0 WHERE - col2 NOT BETWEEN - ( + col0 ) AND + ( + - 60 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 - + - 59 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-16
-5
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT - 85 * + COUNT( * ) FROM tab0
----
-255

skipif mysql # not compatible
query I rowsort label-7263
SELECT - 85 * + COUNT ( * ) FROM tab0
----
-255

query I rowsort
SELECT DISTINCT - 83 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT - COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-7265
SELECT - COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

query II rowsort
SELECT ALL + col2 + - 37, - col1 AS col2 FROM tab1
----
22
-5
31
-47
59
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT DISTINCT - 96 * ( - MAX( ALL - col0 ) ) + 54 AS col1 FROM tab2 AS cor0 WHERE NOT - ( + - col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7267
SELECT DISTINCT - 96 * ( - MAX ( ALL - col0 ) ) + 54 AS col1 FROM tab2 AS cor0 WHERE NOT - ( + - col1 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7268
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 / + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7268
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 / + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-7269
SELECT ALL + COUNT( + col1 ) AS col2, + 51 col1 FROM tab2 AS cor0
----
3
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7269
SELECT ALL + COUNT ( + col1 ) AS col2, + 51 col1 FROM tab2 AS cor0
----
3
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT ALL + COUNT( - - ( - + col2 ) ) + - MIN( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL + COUNT ( - - ( - + col2 ) ) + - MIN ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-12

query I rowsort
SELECT DISTINCT 14 + col1 * + 56 + + + col2 * + col2 AS col0 FROM tab2 cor0
----
3399
5926
7130

query II rowsort
SELECT col1, - 80 AS col0 FROM tab0
----
1
-80
21
-80
81
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT 15 - + COUNT( - col1 ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-7273
SELECT 15 - + COUNT ( - col1 ) FROM tab0
----
12

onlyif mysql # DIV for integer division: 
query II rowsort label-7274
SELECT ALL - col0 DIV 35 + - - 35 AS col2, - col2 * - - 16 + - + 40 + + 16 FROM tab1 AS cor0
----
33
-1112
33
-968
34
-1560

skipif mysql # not compatible
query II rowsort label-7274
SELECT ALL - col0 / 35 + - - 35 AS col2, - col2 * - - 16 + - + 40 + + 16 FROM tab1 AS cor0
----
33
-1112
33
-968
34
-1560

onlyif mysql # DIV for integer division: 
query II rowsort label-7275
SELECT ALL + ( - - col1 ) DIV - + 43, 93 DIV - + col2 AS col1 FROM tab1 cor0
----
-1
-1
0
-1
0
0

skipif mysql # not compatible
query II rowsort label-7275
SELECT ALL + ( - - col1 ) / - + 43, 93 / - + col2 AS col1 FROM tab1 cor0
----
-1
-1
0
-1
0
0

query I rowsort
SELECT col0 * + + col1 FROM tab1 cor0
----
425
4277
714

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NOT + col0 NOT IN ( - ( + col1 ) / 1, + 37 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 - col0 + 77 / - - col2 * - col2 - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - + ( col0 ), 20 AS col1 FROM tab1 AS cor0
----
-51
20
-85
20
-91
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT + SUM( ALL - + col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-7281
SELECT + SUM ( ALL - + col0 ) FROM tab0 AS cor0
----
-199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab2 cor0 WHERE ( - 72 ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL - + 15 AS col0 FROM tab2 AS cor0
----
-15
-15
-15

query I rowsort
SELECT DISTINCT + 70 + 38 AS col0 FROM tab0 cor0 WHERE NOT + col0 = ( - + 11 - + 48 )
----
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 49 col0 FROM tab1
----
108
117
145

query I rowsort
SELECT ALL - col1 * col1 + col1 + 47 * + + col0 FROM tab0
----
-5775
3669
4559

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7287
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE ( - - 69 ) > + 23 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-7287
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE ( - - 69 ) > + 23 * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT col0 * col0 AS col0 FROM tab1 WHERE NOT ( NOT + col0 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7289
SELECT - + col2 * + - ( + + CAST( NULL AS SIGNED ) ) + 13 + ( + col0 ) 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-7289
SELECT - + col2 * + - ( + + CAST ( NULL AS INTEGER ) ) + 13 + ( + col0 ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7290
SELECT + COUNT( * ) + - AVG ( CAST( - + col0 AS SIGNED ) ) + + + 78 - + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7290
SELECT + COUNT ( * ) + - AVG ( CAST ( - + col0 AS INTEGER ) ) + + + 78 - + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT ALL - COUNT( ALL - + 70 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL - COUNT ( ALL - + 70 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - + col0 * + col0 + + col1 + - col2 * - 32 AS col1 FROM tab2 AS cor0
----
-1329
-2739
-3702

query III rowsort
SELECT * FROM tab0 WHERE + col1 * col0 / + col1 + col0 + 33 * col2 <= - 30 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT ALL - SUM( + ( + 16 ) ) AS col0 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-7294
SELECT ALL - SUM ( + ( + 16 ) ) AS col0 FROM tab1
----
-48

query I rowsort
SELECT + 34 * - 34 FROM tab2
----
-1156
-1156
-1156

query I rowsort
SELECT DISTINCT - 50 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT col1 - 13 FROM tab1 AS cor0
----
-8
1
34

query II rowsort
SELECT + - col1 AS col0, - 29 FROM tab2 AS cor0 WHERE + col1 * + col1 < + col2 / col0 * - col0
----

query II rowsort
SELECT DISTINCT col1 AS col2, - col0 AS col2 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

query I rowsort
SELECT DISTINCT + 96 + 33 AS col2 FROM tab1 AS cor0
----
129

onlyif mysql # aggregate syntax: 
query II rowsort label-7301
SELECT ALL 8, COUNT( * ) AS col2 FROM tab1 AS cor0
----
8
3

skipif mysql # not compatible
query II rowsort label-7301
SELECT ALL 8, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
8
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT - ( + - 49 ) + + col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) <> NULL
----

query I rowsort
SELECT DISTINCT + + 80 * + - col2 AS col0 FROM tab1 AS cor0
----
-4720
-5440
-7680

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT COUNT( * ) + + - ( ( 40 ) ) AS col1 FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-7305
SELECT COUNT ( * ) + + - ( ( 40 ) ) AS col1 FROM tab0 AS cor0
----
-37

query I rowsort
SELECT ALL 83 + - + col0 + col1 FROM tab0 AS cor0
----
-13
149
17

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 21 + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col0, col0 * + ( - - col0 ) FROM tab2
----
46
2116
64
4096
75
5625

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7309
SELECT DISTINCT + col0, + col1 + - - 93 - + CAST( + 60 AS SIGNED ) * + col1 + - col1 * - - col1 * + - 9 AS col1 FROM tab0
----
15
54363
87
2823
97
43

skipif mysql # not compatible
query II rowsort label-7309
SELECT DISTINCT + col0, + col1 + - - 93 - + CAST ( + 60 AS INTEGER ) * + col1 + - col1 * - - col1 * + - 9 AS col1 FROM tab0
----
15
54363
87
2823
97
43

onlyif mysql # aggregate syntax: 
query II rowsort label-7310
SELECT - + 4, ( + + ( - MAX( DISTINCT - - 20 ) ) ) - + MIN( ALL + 6 ) AS col0 FROM tab0 AS cor0
----
-4
-26

skipif mysql # not compatible
query II rowsort label-7310
SELECT - + 4, ( + + ( - MAX ( DISTINCT - - 20 ) ) ) - + MIN ( ALL + 6 ) AS col0 FROM tab0 AS cor0
----
-4
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-7311
SELECT - - 61 DIV + col1 FROM tab0 cor0
----
0
2
61

skipif mysql # not compatible
query I rowsort label-7311
SELECT - - 61 / + col1 FROM tab0 cor0
----
0
2
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7312
SELECT ALL MAX( DISTINCT + CAST( 8 AS SIGNED ) ) FROM tab2 cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7312
SELECT ALL MAX ( DISTINCT + CAST ( 8 AS INTEGER ) ) FROM tab2 cor0 WHERE NULL < NULL
----
NULL

query I rowsort
SELECT DISTINCT + + ( 30 ) FROM tab1 AS cor0
----
30

query I rowsort
SELECT DISTINCT + 44 + - 1 AS col2 FROM tab2 AS cor0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7315
SELECT + CAST( NULL AS SIGNED ) * col2 + + - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7315
SELECT + CAST ( NULL AS INTEGER ) * col2 + + - col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 8 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + 23 + - col2 AS col2 FROM tab1
----
-31
-59
2

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 * col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + 57 )
----

query III rowsort
SELECT * FROM tab1 WHERE + + ( - + 20 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT - - COUNT( * ) * - - MIN( 79 ) FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-7321
SELECT - - COUNT ( * ) * - - MIN ( 79 ) FROM tab1 AS cor0
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT ALL COUNT( * ) * - 50 * - COUNT( * ) FROM tab2 AS cor0
----
450

skipif mysql # not compatible
query I rowsort label-7322
SELECT ALL COUNT ( * ) * - 50 * - COUNT ( * ) FROM tab2 AS cor0
----
450

query I rowsort
SELECT DISTINCT + ( 95 ) AS col2 FROM tab1 AS cor0
----
95

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 < - 98
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7325
SELECT DISTINCT + - 87 - + col1 DIV 68 - + 31 AS col0 FROM tab2 AS cor0
----
-118
-119

skipif mysql # not compatible
query I rowsort label-7325
SELECT DISTINCT + - 87 - + col1 / 68 - + 31 AS col0 FROM tab2 AS cor0
----
-118
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT ALL + + COUNT( * ) * - SUM( - - 79 ) FROM tab2 AS cor0
----
-711

skipif mysql # not compatible
query I rowsort label-7326
SELECT ALL + + COUNT ( * ) * - SUM ( - - 79 ) FROM tab2 AS cor0
----
-711

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT - 10 * - COUNT( * ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-7327
SELECT - 10 * - COUNT ( * ) FROM tab2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7328
SELECT + 40, 40 * + - CAST( - col1 AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
40
NULL
40
NULL
40
NULL

skipif mysql # not compatible
query II rowsort label-7328
SELECT + 40, 40 * + - CAST ( - col1 AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
40
NULL
40
NULL
40
NULL

query II rowsort
SELECT DISTINCT col0, col0 + + col0 - 55 + - col2 * col1 * + 11 FROM tab2
----
46
-12866
64
-33807
75
-42651

query II rowsort
SELECT ALL + col0, + col0 + col2 FROM tab1
----
51
147
85
144
91
159

onlyif mysql # aggregate syntax: 
query II rowsort label-7331
SELECT + 30 col2, COUNT( * ) FROM tab2
----
30
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7331
SELECT + 30 col2, COUNT ( * ) FROM tab2
----
30
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7332
SELECT ALL COUNT( * ) AS col0, MIN( DISTINCT ( + - col0 ) ) FROM tab1
----
3
-91

skipif mysql # not compatible
query II rowsort label-7332
SELECT ALL COUNT ( * ) AS col0, MIN ( DISTINCT ( + - col0 ) ) FROM tab1
----
3
-91

query I rowsort
SELECT DISTINCT col2 * + + 90 FROM tab0
----
4230
8910
900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, col1 + - col2 col2 FROM tab1 AS cor0
----
14
-82
47
-21
5
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 col0 FROM tab0 cor0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT MIN( DISTINCT 38 ) col1 FROM tab2 cor0
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7336
SELECT MIN ( DISTINCT 38 ) col1 FROM tab2 cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT ALL - COUNT( * ) + + - SUM( - 13 ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7337
SELECT ALL - COUNT ( * ) + + - SUM ( - 13 ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
108

query I rowsort
SELECT + 8 * 69 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c045ea12b9f5e9b205b584c0ffb24f89

query I rowsort
SELECT - ( 4 ) FROM tab2 AS cor0
----
-4
-4
-4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( ( + col1 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col2 + + 94 - - 81 col0 FROM tab1 AS cor0
----
149
152
220

onlyif mysql # DIV for integer division: 
query II rowsort label-7342
SELECT + col0 AS col1, 31 DIV + ( col1 ) FROM tab2
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-7342
SELECT + col0 AS col1, 31 / + ( col1 ) FROM tab2
----
46
0
64
0
75
0

query I rowsort
SELECT ALL + col2 * col0 + - col0 + + + col0 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT DISTINCT col0 + + - 9 FROM tab2
----
37
55
66

onlyif mysql # DIV for integer division: 
query I rowsort label-7345
SELECT DISTINCT + col2 + 91 DIV + col1 AS col1 FROM tab1
----
102
69
77

skipif mysql # not compatible
query I rowsort label-7345
SELECT DISTINCT + col2 + 91 / + col1 AS col1 FROM tab1
----
102
69
77

query I rowsort
SELECT DISTINCT - col1 * + 44 * + 87 - + - 4 FROM tab0
----
-310064
-3824
-80384

query I rowsort
SELECT ALL - 71 * col0 - col2 FROM tab1 AS cor0
----
-3717
-6094
-6529

query I rowsort
SELECT + 11 + - - col1 FROM tab0 AS cor0
----
12
32
92

query I rowsort
SELECT + - col2 + + 16 FROM tab2 cor0
----
-24
-42
-7

onlyif mysql # DIV for integer division: 
query II rowsort label-7350
SELECT - - ( + col2 ) DIV + 85, col2 * col0 * + + col1 AS col1 FROM tab0 AS cor0
----
0
18270
0
57105
1
9603

skipif mysql # not compatible
query II rowsort label-7350
SELECT - - ( + col2 ) / + 85, col2 * col0 * + + col1 AS col1 FROM tab0 AS cor0
----
0
18270
0
57105
1
9603

query I rowsort
SELECT ALL + + ( - 15 ) AS col0 FROM tab2 AS cor0
----
-15
-15
-15

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT - 36 + - col0 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7353
SELECT * FROM tab2 WHERE + col1 < + 27 * - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7353
SELECT * FROM tab2 WHERE + col1 < + 27 * - CAST ( NULL AS REAL )
----

query I rowsort
SELECT DISTINCT - col2 * + 89 + + col1 AS col2 FROM tab1 AS cor0
----
-5246
-6005
-8530

query I rowsort
SELECT ALL col2 FROM tab1 cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT col0 * + - col2 AS col1 FROM tab0 cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT DISTINCT 63 * + SUM( - 22 ) col1 FROM tab1 AS cor0
----
-4158

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7357
SELECT DISTINCT 63 * + SUM ( - 22 ) col1 FROM tab1 AS cor0
----
-4158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col2, col2 * - 48 - - - 1 col2 FROM tab1
----
59
-2833
68
-3265
96
-4609

onlyif mysql # aggregate syntax: 
query II rowsort label-7359
SELECT DISTINCT 22 col0, - MAX( ALL + - ( 42 ) ) AS col2 FROM tab0
----
22
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7359
SELECT DISTINCT 22 col0, - MAX ( ALL + - ( 42 ) ) AS col2 FROM tab0
----
22
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT + 26 * - COUNT( * ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-7360
SELECT + 26 * - COUNT ( * ) FROM tab0
----
-78

query I rowsort
SELECT - 93 * - 49 * col1 * + ( + 42 ) FROM tab0
----
15502914
191394
4019274

query I rowsort
SELECT ALL - 71 * - col0 AS col0 FROM tab1
----
3621
6035
6461

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT COUNT( * ) * - + 64 FROM tab2 AS cor0 WHERE NOT 14 > 20
----
-192

skipif mysql # not compatible
query I rowsort label-7363
SELECT COUNT ( * ) * - + 64 FROM tab2 AS cor0 WHERE NOT 14 > 20
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT DISTINCT - COUNT( * ) FROM tab1 cor0 WHERE ( + ( col2 ) - col1 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7364
SELECT DISTINCT - COUNT ( * ) FROM tab1 cor0 WHERE ( + ( col2 ) - col1 IS NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7365
SELECT - 7 DIV - - 24 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7365
SELECT - 7 / - - 24 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 col2 FROM tab0 AS cor0 WHERE NOT - col1 IN ( + - 12, + 54 )
----
84
84
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 2 col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-2

query I rowsort
SELECT DISTINCT - col1 * + 77 FROM tab0 WHERE NOT - 43 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7369
SELECT SUM( - 53 ) DIV + COUNT( * ) + - COUNT( * ) FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-7369
SELECT SUM ( - 53 ) / + COUNT ( * ) + - COUNT ( * ) FROM tab0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7370
SELECT - 10 * col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-7370
SELECT - 10 * col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL - col1 * + col0 + col1 * col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7372
SELECT - 49 + + - col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7372
SELECT - 49 + + - col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7373
SELECT COUNT( * ) + + - COUNT( * ) + - SUM( - 22 ) AS col1, + 10 AS col1 FROM tab1 AS cor0
----
66
10

skipif mysql # not compatible
query II rowsort label-7373
SELECT COUNT ( * ) + + - COUNT ( * ) + - SUM ( - 22 ) AS col1, + 10 AS col1 FROM tab1 AS cor0
----
66
10

onlyif mysql # DIV for integer division: 
query II rowsort label-7374
SELECT ALL + 88 DIV + + 60, + col0 - + 9 AS col1 FROM tab1 AS cor0
----
1
42
1
76
1
82

skipif mysql # not compatible
query II rowsort label-7374
SELECT ALL + 88 / + + 60, + col0 - + 9 AS col1 FROM tab1 AS cor0
----
1
42
1
76
1
82

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT ALL 39 + + 73 + + COUNT( * ) FROM tab2 cor0
----
115

skipif mysql # not compatible
query I rowsort label-7377
SELECT ALL 39 + + 73 + + COUNT ( * ) FROM tab2 cor0
----
115

query I rowsort
SELECT 25 * + 45 + + + col2 + + col0 * - col1 * + col1 FROM tab0 cor0
----
-37232
-97243
1127

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 58 * col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + - 7 AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT ALL COUNT( * ) + - + 57 AS col2 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-7381
SELECT ALL COUNT ( * ) + - + 57 AS col2 FROM tab1
----
-54

query II rowsort
SELECT DISTINCT + 65 * + + 54 * col2, + col1 FROM tab2
----
140400
77
203580
67
80730
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 95 ) + - + ( col0 ) col2 FROM tab2
----
-141
-159
-170

query I rowsort
SELECT 77 FROM tab2 WHERE + 54 = ( - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7385
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( 78 AS SIGNED ) NOT BETWEEN NULL AND + col2 * 38 / - + 83 + + col0
----

skipif mysql # not compatible
query III rowsort label-7385
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( 78 AS INTEGER ) NOT BETWEEN NULL AND + col2 * 38 / - + 83 + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7386
SELECT DISTINCT 93 DIV + col2 + col2 FROM tab2
----
27
42
59

skipif mysql # not compatible
query I rowsort label-7386
SELECT DISTINCT 93 / + col2 + col2 FROM tab2
----
27
42
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7387
SELECT ALL ( - col2 ) - + 72 DIV + 54 + + 14 FROM tab1
----
-46
-55
-83

skipif mysql # not compatible
query I rowsort label-7387
SELECT ALL ( - col2 ) - + 72 / + 54 + + 14 FROM tab1
----
-46
-55
-83

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 22 IS NOT NULL
----

query I rowsort
SELECT ALL ( 47 ) + col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
134
144
62

query I rowsort
SELECT DISTINCT - 75 * - 95 AS col1 FROM tab0 AS cor0
----
7125

query II rowsort
SELECT - + 76 AS col2, col2 AS col2 FROM tab2 AS cor0
----
-76
23
-76
40
-76
58

query I rowsort
SELECT 23 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
23
23

query II rowsort
SELECT DISTINCT + 11 AS col1, col1 AS col2 FROM tab2 AS cor0
----
11
51
11
67
11
77

query II rowsort
SELECT + col1 AS col0, - col0 * + col1 AS col0 FROM tab0 cor0
----
1
-97
21
-1827
81
-1215

query I rowsort
SELECT 89 * + 22 AS col1 FROM tab2
----
1958
1958
1958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 * - - 60 col0 FROM tab0
----
5820
5820
5820

onlyif mysql # DIV for integer division: 
query I rowsort label-7397
SELECT - col2 DIV - + col2 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7397
SELECT - col2 / - + col2 AS col0 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT + COUNT( ALL + col2 ) FROM tab0 WHERE NOT - + col0 NOT BETWEEN 10 AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-7398
SELECT + COUNT ( ALL + col2 ) FROM tab0 WHERE NOT - + col0 NOT BETWEEN 10 AND - col0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 39 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 10 * col2 AS col0 FROM tab1
----
-590
-680
-960

onlyif mysql # DIV for integer division: 
query I rowsort label-7401
SELECT col0 * col2 DIV - ( + 59 ) FROM tab0
----
-11
-14
-162

skipif mysql # not compatible
query I rowsort label-7401
SELECT col0 * col2 / - ( + 59 ) FROM tab0
----
-11
-14
-162

query I rowsort
SELECT + 10 * - ( - col0 ) + col0 * + 65 FROM tab2 AS cor0
----
3450
4800
5625

query I rowsort
SELECT ALL - - 14 + col0 + - ( + 74 ) * - 5 FROM tab2 AS cor0
----
430
448
459

query III rowsort
SELECT * FROM tab1 WHERE - 62 * col0 + + - col2 * 25 * + 69 <= - col0 / + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 87 + + col2 FROM tab1
----
146
155
183

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT ALL ( COUNT( * ) ) * - COUNT( * ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7406
SELECT ALL ( COUNT ( * ) ) * - COUNT ( * ) FROM tab1 cor0
----
-9

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE col1 - - ( - 81 ) * - + 78 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7408
SELECT 85 DIV + col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7408
SELECT 85 / + col0 FROM tab1 AS cor0
----
0
1
1

query II rowsort
SELECT + + 63, - 95 + + ( - 50 ) FROM tab2 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT - - 16 * + col2 FROM tab0 AS cor0
----
1584
160
752

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7412
SELECT - - CAST( + 91 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
91
91
91

skipif mysql # not compatible
query I rowsort label-7412
SELECT - - CAST ( + 91 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT - MAX( DISTINCT - 58 ) AS col1 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7413
SELECT - MAX ( DISTINCT - 58 ) AS col1 FROM tab1 AS cor0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7414
SELECT DISTINCT col2 DIV - - col2 + - 87 AS col2 FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-7414
SELECT DISTINCT col2 / - - col2 + - 87 AS col2 FROM tab0 AS cor0
----
-86

query I rowsort
SELECT + col2 - + 72 FROM tab2
----
-14
-32
-49

query I rowsort
SELECT ALL 8 + + ( col2 ) FROM tab1
----
104
67
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7417
SELECT ALL ( - ( + - col0 ) ) - - - 60 + - CAST( col2 AS SIGNED ) FROM tab0
----
-62
-92
17

skipif mysql # not compatible
query I rowsort label-7417
SELECT ALL ( - ( + - col0 ) ) - - - 60 + - CAST ( col2 AS INTEGER ) FROM tab0
----
-62
-92
17

query I rowsort
SELECT ALL + 77 - + col0 AS col0 FROM tab0
----
-10
-20
62

query III rowsort
SELECT * FROM tab0 WHERE - col0 * + col1 + - col0 IS NULL
----

query I rowsort
SELECT ALL col2 * + 92 * + 40 + - + col2 FROM tab0
----
172913
364221
36790

query I rowsort
SELECT DISTINCT ( - + col1 ) FROM tab1 WHERE NOT NULL >= col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 > - col2 - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 86 AS col0, + col1 AS col1 FROM tab2 AS cor0
----
86
51
86
67
86
77

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 + + + 88 * ( - + col0 ) * - 48 + + 69 * col2 + + col1 * - col1 * + 78 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * - + col2 + + + 94 FROM tab0 AS cor0
----
799
964
9697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 58 col1 FROM tab1 AS cor0
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT + - COUNT( * ) * - 75 + + - 94 FROM tab1 AS cor0
----
131

skipif mysql # not compatible
query I rowsort label-7427
SELECT + - COUNT ( * ) * - 75 + + - 94 FROM tab1 AS cor0
----
131

query I rowsort
SELECT DISTINCT - col2 * + - 20 AS col1 FROM tab0
----
1980
200
940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 53 col1 FROM tab0 WHERE NOT col1 >= - 12
----

query I rowsort
SELECT col2 * - - 33 * + col2 AS col0 FROM tab0
----
323433
3300
72897

query I rowsort
SELECT + + 93 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # aggregate syntax: 
query II rowsort label-7432
SELECT - MAX( - ( - 66 ) ) col2, 98 + - - COUNT( - + col0 ) FROM tab1
----
-66
101

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7432
SELECT - MAX ( - ( - 66 ) ) col2, 98 + - - COUNT ( - + col0 ) FROM tab1
----
-66
101

onlyif mysql # DIV for integer division: 
query I rowsort label-7433
SELECT - 13 DIV - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7433
SELECT - 13 / - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col0 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT col1 + - - ( + - col0 ) FROM tab1
----
-37
-44
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 58, + 22 col0 FROM tab1
----
58
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7437
SELECT ALL + - CAST( - col1 AS SIGNED ) col0 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7437
SELECT ALL + - CAST ( - col1 AS INTEGER ) col0 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE - col2 >= - col1 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT ALL COUNT( * ) * SUM( col2 ) AS col0 FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-7439
SELECT ALL COUNT ( * ) * SUM ( col2 ) AS col0 FROM tab2
----
363

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE + col1 + + col1 = + col1 + + col2
----

query III rowsort
SELECT * FROM tab2 WHERE - 42 IN ( 91 - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT - COUNT( DISTINCT - col0 ) - 51 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-7442
SELECT - COUNT ( DISTINCT - col0 ) - 51 FROM tab1
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7443
SELECT + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7443
SELECT + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 + col0 col2 FROM tab1
----
116
122
82

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT 30 * - 63 AS col0 FROM tab2
----
-1890
-1890
-1890

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE NULL <= ( 30 )
----

query I rowsort
SELECT 36 * col1 AS col0 FROM tab1
----
1692
180
504

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT DISTINCT - SUM( ALL col0 ) FROM tab1 WHERE NOT ( + 37 ) >= ( 77 )
----
-227

skipif mysql # not compatible
query I rowsort label-7449
SELECT DISTINCT - SUM ( ALL col0 ) FROM tab1 WHERE NOT ( + 37 ) >= ( 77 )
----
-227

query I rowsort
SELECT ALL + 21 * 73 + - col2 FROM tab1
----
1437
1465
1474

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT ALL COUNT( * ) * + 22 AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-7451
SELECT ALL COUNT ( * ) * + 22 AS col1 FROM tab1
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + ( + col1 ) col1 FROM tab1
----
196
2209
25

query I rowsort
SELECT - 39 - - col0 AS col1 FROM tab0 WHERE NOT col1 / col2 >= ( 31 )
----
-24
48
58

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= - col0 * + 77
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7455
SELECT DISTINCT - 16 DIV col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7455
SELECT DISTINCT - 16 / col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - col2 * col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 68 ) NOT IN ( 91 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7458
SELECT ALL + 80 DIV + ( COUNT( * ) * - ( - 75 ) ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7458
SELECT ALL + 80 / + ( COUNT ( * ) * - ( - 75 ) ) AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7459
SELECT - ( CAST( NULL AS DECIMAL ) ) + - col2 FROM tab0 WHERE NOT NULL < col2
----

skipif mysql # not compatible
query I rowsort label-7459
SELECT - ( CAST ( NULL AS REAL ) ) + - col2 FROM tab0 WHERE NOT NULL < col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7460
SELECT ALL - col1 DIV col0 col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7460
SELECT ALL - col1 / col0 col0 FROM tab0
----
-5
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7461
SELECT + col1 DIV + 62 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7461
SELECT + col1 / + 62 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT col0 + ( 95 + col0 * col0 ) FROM tab2 cor0 WHERE NOT NULL = ( NULL )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) <> col0 * col1
----

query I rowsort
SELECT DISTINCT 98 FROM tab0 AS cor0 WHERE NOT 59 + + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT DISTINCT 37 * MIN( - 30 ) FROM tab1
----
-1110

skipif mysql # not compatible
query I rowsort label-7465
SELECT DISTINCT 37 * MIN ( - 30 ) FROM tab1
----
-1110

query I rowsort
SELECT DISTINCT - ( + 41 ) FROM tab1 AS cor0 CROSS JOIN tab0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT - 90 * COUNT( ALL + col1 ) AS col1 FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-7467
SELECT - 90 * COUNT ( ALL + col1 ) AS col1 FROM tab2
----
-270

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 + + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7469
SELECT CAST( - MIN( col0 ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col0 * 56 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7469
SELECT CAST ( - MIN ( col0 ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col0 * 56 <> NULL
----
NULL

query I rowsort
SELECT ALL + 35 * col0 FROM tab2 cor0
----
1610
2240
2625

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT + + COUNT( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7471
SELECT + + COUNT ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + + col1 * 18 FROM tab1 AS cor0
----
252
846
90

query I rowsort
SELECT 90 + + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + AVG ( DISTINCT col1 ) col0 FROM tab0 AS cor0 WHERE - 50 = ( 69 * - 32 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7475
SELECT DISTINCT - COUNT( * ) + SUM( DISTINCT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7475
SELECT DISTINCT - COUNT ( * ) + SUM ( DISTINCT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 56 <= ( + col1 / ( + col2 ) + ( col2 ) )
----
46
51
23
64
77
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + 93 )
----

query I rowsort
SELECT ALL + ( col1 ) AS col1 FROM tab2 WHERE NOT + col0 / col1 + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7479
SELECT + col2 + col0 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN + CAST( col2 AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7479
SELECT + col2 + col0 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN + CAST ( col2 AS INTEGER ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col0 ) - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7481
SELECT + COUNT( DISTINCT col1 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7481
SELECT + COUNT ( DISTINCT col1 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7482
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7482
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7483
SELECT ALL + 42 DIV 50 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL + 42 / 50 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 56 * col1 - 98 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7485
SELECT col1 DIV - - col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7485
SELECT col1 / - - col1 FROM tab1
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 76 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * 33 * col2 FROM tab2
----
111012
17457
52800

query I rowsort
SELECT col1 + + 25 AS col2 FROM tab2 AS cor0
----
102
76
92

query I rowsort
SELECT ALL - 2 + + col1 AS col0 FROM tab2 AS cor0
----
49
65
75

query I rowsort
SELECT - 26 + col0 AS col2 FROM tab1 AS cor0
----
25
59
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 47 + 70 + col2 * 49 col2 FROM tab1 AS cor0
----
3008
3449
4821

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 + + 63 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
133

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 91 * + 31 NOT IN ( + col0 )
----

query I rowsort
SELECT - col0 * - + col2 AS col2 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT ALL + + col2 - col0 + - col0 + col0 AS col2 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT DISTINCT + 69 AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 + - 97 ) NOT IN ( - col0 + 99 )
----

query I rowsort
SELECT - + col1 - 17 - 75 * - 39 FROM tab1 AS cor0
----
2861
2894
2903

query I rowsort
SELECT col0 / - + col0 FROM tab2 AS cor0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7499
SELECT DISTINCT - AVG ( CAST( NULL AS SIGNED ) ) + - - 54 / 68 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7499
SELECT DISTINCT - AVG ( CAST ( NULL AS INTEGER ) ) + - - 54 / 68 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + ( ( + col2 ) ) - - 41 AS col2 FROM tab0 AS cor0
----
140
51
88

query I rowsort
SELECT DISTINCT - 18 * col0 * - + ( col1 ) + - 88 FROM tab1
----
12764
7562
76898

query II rowsort
SELECT 67 + + col1 AS col1, - 83 * + - col0 FROM tab2
----
118
3818
134
6225
144
5312

query I rowsort
SELECT DISTINCT col1 + + 0 * + col1 FROM tab0
----
1
21
81

query I rowsort
SELECT ALL col1 * - 13 * + col1 FROM tab0 AS cor0
----
-13
-5733
-85293

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN ( 49 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT + COUNT( - - 33 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7506
SELECT + COUNT ( - - 33 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 <> 21
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7509
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * + - CAST( NULL AS SIGNED ) * - col1 > + col0 + col2
----

skipif mysql # not compatible
query III rowsort label-7509
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * + - CAST ( NULL AS INTEGER ) * - col1 > + col0 + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7510
SELECT DISTINCT + 46 col1, - COUNT( * ) FROM tab1
----
46
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7510
SELECT DISTINCT + 46 col1, - COUNT ( * ) FROM tab1
----
46
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7511
SELECT DISTINCT CAST( - 37 AS SIGNED ) AS col0 FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-7511
SELECT DISTINCT CAST ( - 37 AS INTEGER ) AS col0 FROM tab1
----
-37

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 14 NOT BETWEEN NULL AND - + ( - 25 ) * + col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col2 * + col0 * - col0 * + 34 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 = - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - 59 * + - col1 * 44 AS col1 FROM tab1 AS cor0
----
122012
12980
36344

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 19 + 24 * + col0 * + col1 ) NOT BETWEEN NULL AND + 55 + 1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7517
SELECT + 81 * + - CAST( NULL AS SIGNED ) + 88 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7517
SELECT + 81 * + - CAST ( NULL AS INTEGER ) + 88 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 96 col1 FROM tab0
----
111
183
193

query I rowsort
SELECT ALL 60 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # DIV for integer division: 
query I rowsort label-7520
SELECT + col0 DIV col2 AS col2 FROM tab1 WHERE ( - col1 + col0 + + 85 <> col2 )
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7520
SELECT + col0 / col2 AS col2 FROM tab1 WHERE ( - col1 + col0 + + 85 <> col2 )
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT - SUM( - + col2 ) * + ( - + COUNT( * ) ) FROM tab0 AS cor0
----
-468

skipif mysql # not compatible
query I rowsort label-7521
SELECT - SUM ( - + col2 ) * + ( - + COUNT ( * ) ) FROM tab0 AS cor0
----
-468

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( 10 ) * + 78 * + - col0 * col0 ) NOT IN ( + col1 / col2 - col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7523
SELECT DISTINCT 13 * - ( ( - col2 ) ) AS col2, ( 24 ) DIV - 14 FROM tab2 AS cor0
----
299
-1
520
-1
754
-1

skipif mysql # not compatible
query II rowsort label-7523
SELECT DISTINCT 13 * - ( ( - col2 ) ) AS col2, ( 24 ) / - 14 FROM tab2 AS cor0
----
299
-1
520
-1
754
-1

query I rowsort
SELECT - 0 - - col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7525
SELECT col1 - - CAST( 88 AS SIGNED ) + col1 * + + col2 FROM tab1
----
1446
3331
388

skipif mysql # not compatible
query I rowsort label-7525
SELECT col1 - - CAST ( 88 AS INTEGER ) + col1 * + + col2 FROM tab1
----
1446
3331
388

query I rowsort
SELECT 41 * + col2 AS col2 FROM tab2 WHERE - col0 - - - col0 + col0 * + col0 IS NOT NULL
----
1640
2378
943

onlyif mysql # DIV for integer division: 
query I rowsort label-7527
SELECT ALL + col1 DIV col2 * col1 + col0 - 35 * - col0 AS col2 FROM tab0
----
3174
3492
621

skipif mysql # not compatible
query I rowsort label-7527
SELECT ALL + col1 / col2 * col1 + col0 - 35 * - col0 AS col2 FROM tab0
----
3174
3492
621

query II rowsort
SELECT col1 * + col1 + - col2 + col1 + + col0 AS col1, - 4 AS col2 FROM tab2
----
2675
-4
4573
-4
6030
-4

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0 + - + 66, col1 AS col2 FROM tab1 AS cor0
----
-15
14
19
5
25
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( NOT 2 * - 42 IS NOT NULL ) )
----

query I rowsort
SELECT ( col2 ) * - + 99 AS col2 FROM tab1 cor0
----
-5841
-6732
-9504

query I rowsort
SELECT - 41 * - - ( col2 ) AS col0 FROM tab0 AS cor0
----
-1927
-4059
-410

query I rowsort
SELECT ALL ( + 71 ) FROM tab1 AS cor0
----
71
71
71

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * 72 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7536
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= CAST( NULL AS SIGNED ) + + 72
----

skipif mysql # not compatible
query III rowsort label-7536
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= CAST ( NULL AS INTEGER ) + + 72
----

query I rowsort
SELECT ALL ( - - 9 ) AS col1 FROM tab1
----
9
9
9

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= + ( - + col1 ) * 26
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 NOT BETWEEN ( NULL ) AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT + 12 * - 18 + COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL NOT IN ( col0 * + 94, col2 )
----
-216

skipif mysql # not compatible
query I rowsort label-7540
SELECT + 12 * - 18 + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL NOT IN ( col0 * + 94, col2 )
----
-216

query I rowsort
SELECT ( - - col0 ) + + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - ( + col1 ) FROM tab2 AS cor0 WHERE - 49 NOT IN ( - col1 )
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 1 / + col0 + + + col0 <= NULL
----

query I rowsort
SELECT - + col2 + + 0 AS col0 FROM tab1 AS cor0 WHERE NOT 66 * 83 IS NULL
----
-59
-68
-96

query I rowsort
SELECT 74 * - + 55 AS col0 FROM tab2
----
-4070
-4070
-4070

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7546
SELECT ALL ( - col1 ) FROM tab1 AS cor0 WHERE CAST( + + 22 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-7546
SELECT ALL ( - col1 ) FROM tab1 AS cor0 WHERE CAST ( + + 22 AS INTEGER ) >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7547
SELECT + 51 * + CAST( NULL AS SIGNED ) - + COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7547
SELECT + 51 * + CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7548
SELECT ALL col2 FROM tab2 AS cor0 WHERE + 0 <> - 72 DIV + 87 * + + col2
----

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL col2 FROM tab2 AS cor0 WHERE + 0 <> - 72 / + 87 * + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT ALL - 57 + + COUNT( * ) - COUNT( * ) FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL - 57 + + COUNT ( * ) - COUNT ( * ) FROM tab2 AS cor0
----
-57

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE col0 = NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= + 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT - + ( - - MAX( ALL 36 ) ) AS col2 FROM tab0 WHERE ( NULL ) > 98 + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7552
SELECT - + ( - - MAX ( ALL 36 ) ) AS col2 FROM tab0 WHERE ( NULL ) > 98 + - col0
----
NULL

query I rowsort
SELECT 20 * col1 + - 68 * - + 29 AS col2 FROM tab1
----
2072
2252
2912

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT - COUNT( DISTINCT + col2 ) + + MAX( DISTINCT + 21 ) col0 FROM tab2
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7554
SELECT - COUNT ( DISTINCT + col2 ) + + MAX ( DISTINCT + 21 ) col0 FROM tab2
----
18

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT NULL < ( + col1 ) - - col2 * + col2 + - 38
----

query I rowsort
SELECT col1 + - 51 FROM tab0 AS cor0
----
-30
-50
30

onlyif mysql # DIV for integer division: 
query I rowsort label-7557
SELECT ALL col2 DIV + 93 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL col2 / + 93 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + - - col1 + + - col2 AS col0 FROM tab0
----
1
21
81

query I rowsort
SELECT ALL ( + col1 ) + - - col1 FROM tab2
----
102
134
154

onlyif mysql # DIV for integer division: 
query I rowsort label-7560
SELECT DISTINCT + col2 DIV - col0 + + - col1 - - - 42 AS col0 FROM tab2 cor0
----
-109
-119
-93

skipif mysql # not compatible
query I rowsort label-7560
SELECT DISTINCT + col2 / - col0 + + - col1 - - - 42 AS col0 FROM tab2 cor0
----
-109
-119
-93

query I rowsort
SELECT DISTINCT - 7 - + ( - 63 ) + + 82 AS col2 FROM tab1 AS cor0
----
138

query I rowsort
SELECT ( + 3 ) - + 53 * - col2 AS col2 FROM tab1 AS cor0
----
3130
3607
5091

query II rowsort
SELECT + + col2 AS col1, + 11 AS col2 FROM tab0 AS cor0
----
10
11
47
11
99
11

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 / 21 IS NOT NULL
----

query I rowsort
SELECT ALL + + col0 * + col0 + - 95 * - 60 FROM tab2 AS cor0
----
11325
7816
9796

query II rowsort
SELECT - + col1, + col0 * + 70 AS col2 FROM tab1 AS cor0
----
-14
3570
-47
6370
-5
5950

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 39 + 70 > + col2 / + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 0 BETWEEN - col2 AND - 89 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7569
SELECT + 42 DIV ( + col0 ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7569
SELECT + 42 / ( + col0 ) AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT ALL - MAX( ALL - 56 ) FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-7570
SELECT ALL - MAX ( ALL - 56 ) FROM tab1
----
56

query I rowsort
SELECT DISTINCT + ( - col0 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

query I rowsort
SELECT ALL ( col2 ) FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT 13 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + + col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 54 col0, - col2 FROM tab2
----
54
-23
54
-40
54
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, ( + - col0 ) * + 18 col1 FROM tab0
----
10
-1566
47
-270
99
-1746

query III rowsort
SELECT * FROM tab0 WHERE NOT 86 BETWEEN ( NULL ) AND ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * + + 0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - 33 * - ( + - 92 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 8c14bb506d0cdd7c7180a2e6609cabe5

query I rowsort
SELECT ALL - col0 * - ( - ( + + col0 ) ) * col2 FROM tab1 AS cor0
----
-249696
-426275
-563108

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT ALL MAX( + col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7581
SELECT ALL MAX ( + col0 ) AS col2 FROM tab0 AS cor0
----
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 50 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7583
SELECT ALL - + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) + - 29 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7583
SELECT ALL - + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 29 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7584
SELECT DISTINCT CAST( SUM( DISTINCT + ( + + col1 ) ) AS SIGNED ) + + MAX( DISTINCT + col1 ) FROM tab0
----
184

skipif mysql # not compatible
query I rowsort label-7584
SELECT DISTINCT CAST ( SUM ( DISTINCT + ( + + col1 ) ) AS INTEGER ) + + MAX ( DISTINCT + col1 ) FROM tab0
----
184

query II rowsort
SELECT ALL ( + col2 ) * + - col1 + col2, + col2 + col1 AS col0 FROM tab2
----
-1150
74
-3040
117
-3828
125

query I rowsort
SELECT + + col0 FROM tab2 WHERE NULL BETWEEN + - 65 / - + col2 * + col2 AND - 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT DISTINCT + COUNT( DISTINCT + - col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7587
SELECT DISTINCT + COUNT ( DISTINCT + - col2 ) AS col1 FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE 22 BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT - ( - + COUNT( * ) ) * MAX( - 24 ) AS col1 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-7589
SELECT - ( - + COUNT ( * ) ) * MAX ( - 24 ) AS col1 FROM tab0
----
-72

query I rowsort
SELECT col0 + + - col0 + - col1 FROM tab1
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7591
SELECT + - 77 DIV - + 27 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif mysql # not compatible
query I rowsort label-7591
SELECT + - 77 / - + 27 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 41 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7593
SELECT - CAST( NULL AS SIGNED ) * col1 + - 99 + - col1 * + col1 * + col1 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-7593
SELECT - CAST ( NULL AS INTEGER ) * col1 + - 99 + - col1 * + col1 * + col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 75 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT ALL 0 * - MIN( ALL col1 ) col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7595
SELECT ALL 0 * - MIN ( ALL col1 ) col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT + MAX( + 24 ) * 8 col2 FROM tab0 AS cor0
----
192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7596
SELECT + MAX ( + 24 ) * 8 col2 FROM tab0 AS cor0
----
192

query II rowsort
SELECT ALL + - 10 AS col2, + 98 + - - col1 + - col2 AS col1 FROM tab2 AS cor0
----
-10
107
-10
126
-10
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7598
SELECT - 82 * + 16 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7598
SELECT - 82 * + 16 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * - col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT + ( - 0 ) * 25 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT col1 AS col2, col0 * + 75 + + - col1 FROM tab0
----
1
7274
21
6504
81
1044

query I rowsort
SELECT ALL 68 FROM tab1 WHERE NOT - + col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 43 * ( ( - col2 ) ) * + 9 + - 32 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + 95 AS col0, + col2 AS col0 FROM tab2
----
95
23
95
40
95
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7605
SELECT DISTINCT 28 AS col0, col2 * + 2 - - 42 - + col2 * - col0 + - 67 + - col2 + - 82 * - - 99 / + 75 * + - 5 + - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
28
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7605
SELECT DISTINCT 28 AS col0, col2 * + 2 - - 42 - + col2 * - col0 + - 67 + - col2 + - 82 * - - 99 / + 75 * + - 5 + - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
28
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) col2 FROM tab0 AS cor0 WHERE NOT + 91 + + - 15 > + 16 + - 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT - COUNT( * ) + MAX( ALL - - col2 ) AS col0 FROM tab0 cor0
----
96

skipif mysql # not compatible
query I rowsort label-7607
SELECT - COUNT ( * ) + MAX ( ALL - - col2 ) AS col0 FROM tab0 cor0
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7608
SELECT COUNT( * ) DIV 24 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7608
SELECT COUNT ( * ) / 24 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT ALL - COUNT( + - 4 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL - COUNT ( + - 4 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - - col1 FROM tab2 AS cor0 WHERE 46 = NULL
----

query I rowsort
SELECT - 76 * 43 AS col1 FROM tab0 AS cor0
----
-3268
-3268
-3268

query I rowsort
SELECT DISTINCT - - col0 + col0 * col1 AS col0 FROM tab1 AS cor0
----
4368
510
765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 col0 FROM tab2 AS cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query II rowsort label-7614
SELECT - COUNT( + 96 ), - 71 AS col1 FROM tab1, tab1 cor0
----
-9
-71

skipif mysql # not compatible
query II rowsort label-7614
SELECT - COUNT ( + 96 ), - 71 AS col1 FROM tab1, tab1 cor0
----
-9
-71

query II rowsort
SELECT DISTINCT 18, col1 AS col0 FROM tab1 cor0
----
18
14
18
47
18
5

query I rowsort
SELECT ALL + + 60 + - 8 FROM tab2 AS cor0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT - + SUM( + + 90 ) FROM tab1 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-7617
SELECT - + SUM ( + + 90 ) FROM tab1 AS cor0
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT ALL + ( - - MAX( col2 ) ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL + ( - - MAX ( col2 ) ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT + col2 * 17 AS col0 FROM tab2 AS cor0
----
391
680
986

query I rowsort
SELECT + + col0 * + + col0 AS col2 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT MIN( col1 ) * - COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7621
SELECT MIN ( col1 ) * - COUNT ( * ) FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7622
SELECT DISTINCT 15 DIV + col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7622
SELECT DISTINCT 15 / + col1 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7623
SELECT ALL - col1 DIV ( + 2 ) FROM tab1
----
-2
-23
-7

skipif mysql # not compatible
query I rowsort label-7623
SELECT ALL - col1 / ( + 2 ) FROM tab1
----
-2
-23
-7

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT DISTINCT SUM( - + col0 ) * + ( 73 ) FROM tab0 AS cor0
----
-14527

skipif mysql # not compatible
query I rowsort label-7625
SELECT DISTINCT SUM ( - + col0 ) * + ( 73 ) FROM tab0 AS cor0
----
-14527

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 62 * - ( - col1 ) * + col2 BETWEEN NULL AND - - col1 / - ( - + col1 ) * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2 * col0 AS col0, + col2 FROM tab1 WHERE + col2 BETWEEN - col2 + + 64 AND NULL
----

query I rowsort
SELECT DISTINCT - - 79 AS col2 FROM tab1 WHERE NULL IS NULL
----
79

query I rowsort
SELECT DISTINCT - 13 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-13

query I rowsort
SELECT - col1 + - + col2 AS col0 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT - ( 83 ) * 1 + - col1 AS col0 FROM tab2 AS cor0
----
-134
-150
-160

query I rowsort
SELECT DISTINCT - col0 + 48 FROM tab1 AS cor0
----
-3
-37
-43

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE col1 * 54 < - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7634
SELECT DISTINCT - CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7634
SELECT DISTINCT - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 21 * - col2 + 36 + - + 77 + col0 col2 FROM tab0 AS cor0
----
2135
256
961

query I rowsort
SELECT col0 + + ( - 71 ) AS col0 FROM tab0 AS cor0
----
-56
16
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT DISTINCT - COUNT( * ) + 15 + + + COUNT( * ) + + 32 AS col0 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-7637
SELECT DISTINCT - COUNT ( * ) + 15 + + + COUNT ( * ) + + 32 AS col0 FROM tab2
----
47

query III rowsort
SELECT * FROM tab0 WHERE + - 72 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7639
SELECT - MIN( ALL - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7639
SELECT - MIN ( ALL - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 6 * - col2 * + + 6 FROM tab1
----
-2124
-2448
-3456

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT + COUNT( * ) * - 65 * + 31 + 91 AS col1 FROM tab1 AS cor0 WHERE NOT NULL < col0
----
91

skipif mysql # not compatible
query I rowsort label-7641
SELECT + COUNT ( * ) * - 65 * + 31 + 91 AS col1 FROM tab1 AS cor0 WHERE NOT NULL < col0
----
91

query I rowsort
SELECT DISTINCT - + 95 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 4 * + 28 IS NULL
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 18 AS col1, - 61 col2 FROM tab2
----
-18
-61
-18
-61
-18
-61

query I rowsort
SELECT ALL col2 * ( - 85 ) FROM tab2 cor0
----
-1955
-3400
-4930

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7645
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, + 14 AS col0 FROM tab2 AS cor0
----
NULL
14

skipif mysql # not compatible
query II rowsort label-7645
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, + 14 AS col0 FROM tab2 AS cor0
----
NULL
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7646
SELECT ALL - 41 * + MAX( - col2 ) FROM tab1 AS cor0
----
2419

skipif mysql # not compatible
query I rowsort label-7646
SELECT ALL - 41 * + MAX ( - col2 ) FROM tab1 AS cor0
----
2419

query I rowsort
SELECT DISTINCT - col0 * + + col0 AS col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7648
SELECT ALL - 11 * - COUNT( 78 ) DIV + 43 AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7648
SELECT ALL - 11 * - COUNT ( 78 ) / + 43 AS col1 FROM tab0 cor0
----
0

query I rowsort
SELECT - 29 AS col1 FROM tab1 AS cor0 WHERE NOT + 42 IS NULL
----
-29
-29
-29

query I rowsort
SELECT ALL + ( - ( + + col0 ) ) FROM tab0
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 NOT BETWEEN + - 83 AND col2
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7652
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT + + col1 / + ( + 14 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT + + col1 / + ( + 14 ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7653
SELECT - 39 DIV - + col0 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7653
SELECT - 39 / - + col0 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - 74 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 70 >= 33
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7656
SELECT + 87 + + COUNT( * ) DIV - 83 AS col2 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-7656
SELECT + 87 + + COUNT ( * ) / - 83 AS col2 FROM tab2 AS cor0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7657
SELECT ALL ( 75 ) * - 49 + col2 * + CAST( - + col0 AS SIGNED ) FROM tab0
----
-13278
-4380
-4545

skipif mysql # not compatible
query I rowsort label-7657
SELECT ALL ( 75 ) * - 49 + col2 * + CAST ( - + col0 AS INTEGER ) FROM tab0
----
-13278
-4380
-4545

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7658
SELECT ALL * FROM tab2 WHERE NOT CAST( NULL AS DECIMAL ) * + - col1 / - col1 - 10 / col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7658
SELECT ALL * FROM tab2 WHERE NOT CAST ( NULL AS REAL ) * + - col1 / - col1 - 10 / col1 IS NULL
----

query I rowsort
SELECT + - col1 * + + 6 - - col2 + - col1 AS col1 FROM tab1 AS cor0
----
-2
-261
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7660
SELECT + + COUNT( * ) * - CAST( - COUNT( * ) AS SIGNED ) DIV + 26 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7660
SELECT + + COUNT ( * ) * - CAST ( - COUNT ( * ) AS INTEGER ) / + 26 FROM tab1 cor0
----
0

query I rowsort
SELECT 80 - - + col0 FROM tab0 AS cor0
----
167
177
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + 73 ) - - 37 col2, col2 FROM tab1 AS cor0
----
110
59
110
68
110
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7663
SELECT DISTINCT - 74 DIV + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-7663
SELECT DISTINCT - 74 / + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-24

query I rowsort
SELECT - col0 * - + ( 19 ) - col0 AS col0 FROM tab1 cor0
----
1530
1638
918

query II rowsort
SELECT ALL - + 4, ( + col0 ) AS col1 FROM tab1 WHERE + + 91 IS NOT NULL
----
-4
51
-4
85
-4
91

query I rowsort
SELECT ALL col0 - - 83 FROM tab2
----
129
147
158

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7667
SELECT ALL + SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7667
SELECT ALL + SUM ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - col1 * + ( + - col1 ) AS col0 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT - ( + 82 ) AS col1 FROM tab0 AS cor0
----
-82
-82
-82

query I rowsort
SELECT ALL ( + + col2 ) AS col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL + - col2 FROM tab0 WHERE NOT + col2 * - col0 <> - + 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT + COUNT( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-7672
SELECT + COUNT ( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( ( NULL ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT COUNT( * ) * + ( - 18 ) AS col2 FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-7674
SELECT COUNT ( * ) * + ( - 18 ) AS col2 FROM tab0
----
-54

query I rowsort
SELECT ALL 67 FROM tab0 AS cor0 WHERE ( - ( - - ( + col2 ) ) ) IS NOT NULL
----
67
67
67

query II rowsort
SELECT DISTINCT - 63 * + 49 AS col2, col1 * - col1 FROM tab0 AS cor0
----
-3087
-1
-3087
-441
-3087
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7677
SELECT DISTINCT - 94 * + col0 + ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7677
SELECT DISTINCT - 94 * + col0 + ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7678
SELECT DISTINCT - COUNT( DISTINCT CAST( ( + ( col1 ) ) AS SIGNED ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7678
SELECT DISTINCT - COUNT ( DISTINCT CAST ( ( + ( col1 ) ) AS INTEGER ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT + COUNT( - ( - + 56 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT - 33 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7679
SELECT + COUNT ( - ( - + 56 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT - 33 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7680
SELECT 40 * 2 DIV + 25 FROM tab2 cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-7680
SELECT 40 * 2 / + 25 FROM tab2 cor0
----
3
3
3

query I rowsort
SELECT DISTINCT - col0 + col1 * + - col1 - - + col1 AS col1 FROM tab0 AS cor0
----
-507
-6495
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT DISTINCT COUNT( * ) + + ( - 31 ) FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-7682
SELECT DISTINCT COUNT ( * ) + + ( - 31 ) FROM tab2
----
-28

query I rowsort
SELECT DISTINCT 89 * + col0 AS col0 FROM tab1
----
4539
7565
8099

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT ALL COUNT( * ) * + + 68 AS col1 FROM tab1
----
204

skipif mysql # not compatible
query I rowsort label-7684
SELECT ALL COUNT ( * ) * + + 68 AS col1 FROM tab1
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT COUNT( * ) * + + COUNT( * ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7685
SELECT COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab2
----
9

query I rowsort
SELECT ALL + 73 * - col0 FROM tab0
----
-1095
-6351
-7081

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 15 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT ALL - MIN( DISTINCT 3 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7688
SELECT ALL - MIN ( DISTINCT 3 ) FROM tab0
----
-3

query I rowsort
SELECT ALL + col2 * + + col2 AS col0 FROM tab2
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7690
SELECT CAST( 70 AS SIGNED ) AS col1 FROM tab2
----
70
70
70

skipif mysql # not compatible
query I rowsort label-7690
SELECT CAST ( 70 AS INTEGER ) AS col1 FROM tab2
----
70
70
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7691
SELECT SUM( ALL + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7691
SELECT SUM ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7692
SELECT ALL - COUNT( * ) DIV - 42 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7692
SELECT ALL - COUNT ( * ) / - 42 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7693
SELECT DISTINCT COUNT( * ) DIV + - 7 * + 47 col1, CAST( NULL AS SIGNED ) FROM tab2 cor0
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7693
SELECT DISTINCT COUNT ( * ) / + - 7 * + 47 col1, CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7694
SELECT ALL col2 + + col0 DIV col0 FROM tab0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-7694
SELECT ALL col2 + + col0 / col0 FROM tab0
----
100
11
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT - 28 + - COUNT( - 60 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-37

skipif mysql # not compatible
query I rowsort label-7695
SELECT - 28 + - COUNT ( - 60 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-37

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND 5
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col1, + 56 * + 22, col2 )
----

query I rowsort
SELECT DISTINCT - 50 - 16 FROM tab2 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT DISTINCT MAX( + 23 ) FROM tab1 cor0
----
23

skipif mysql # not compatible
query I rowsort label-7699
SELECT DISTINCT MAX ( + 23 ) FROM tab1 cor0
----
23

query I rowsort
SELECT ALL col0 + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT ALL + SUM( + ( 70 ) ) FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-7701
SELECT ALL + SUM ( + ( 70 ) ) FROM tab1 AS cor0
----
210

onlyif mysql # DIV for integer division: 
query I rowsort label-7702
SELECT 88 DIV col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7702
SELECT 88 / col0 FROM tab1 AS cor0
----
0
1
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col1 ) + + ( - - 54 ) + - 60 + + col0 * col0 * + col0 * - - 37 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 33 + - + 79 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 72, 62 + + 48 AS col0 FROM tab2
----
-72
110
-72
110
-72
110

onlyif mysql # DIV for integer division: 
query I rowsort label-7706
SELECT ALL 17 * - col2 + 79 DIV + - col0 FROM tab0
----
-1683
-170
-804

skipif mysql # not compatible
query I rowsort label-7706
SELECT ALL 17 * - col2 + 79 / + - col0 FROM tab0
----
-1683
-170
-804

query II rowsort
SELECT ALL 95 + col2 + - col2, - col1 AS col2 FROM tab1
----
95
-14
95
-47
95
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7708
SELECT * FROM tab1 WHERE NULL <> ( - - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-7708
SELECT * FROM tab1 WHERE NULL <> ( - - CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT - 93 * - COUNT( * ) AS col1 FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-7709
SELECT - 93 * - COUNT ( * ) AS col1 FROM tab2
----
279

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 + + 27 IS NULL
----

query I rowsort
SELECT + 60 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT DISTINCT - MAX( + + 72 ) AS col1 FROM tab0 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-7712
SELECT DISTINCT - MAX ( + + 72 ) AS col1 FROM tab0 cor0
----
-72

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * - 37 - + col1 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT - 0 * + COUNT( * ) * - 37 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7714
SELECT - 0 * + COUNT ( * ) * - 37 FROM tab0
----
0

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < - 7 - - 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 25 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7716
SELECT + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 25 IS NULL
----
0

query I rowsort
SELECT DISTINCT - 68 * + - ( - col1 ) FROM tab2
----
-3468
-4556
-5236

query I rowsort
SELECT - - col2 AS col2 FROM tab1 cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7719
SELECT CAST( NULL AS SIGNED ) * + col0 / - + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7719
SELECT CAST ( NULL AS INTEGER ) * + col0 / - + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + - col0 AS col0, - 86 FROM tab2 cor0
----
-46
-86
-64
-86
-75
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT DISTINCT SUM( ALL 25 ) AS col2 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7721
SELECT DISTINCT SUM ( ALL 25 ) AS col2 FROM tab0 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7722
SELECT DISTINCT - 33 + - 19 DIV + 7 - - col1 FROM tab2 AS cor0
----
16
32
42

skipif mysql # not compatible
query I rowsort label-7722
SELECT DISTINCT - 33 + - 19 / + 7 - - col1 FROM tab2 AS cor0
----
16
32
42

query II rowsort
SELECT - + 48, col2 AS col1 FROM tab1 AS cor0
----
-48
59
-48
68
-48
96

query I rowsort
SELECT + ( + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7725
SELECT - 54 AS col1, COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
-54
9

skipif mysql # not compatible
query II rowsort label-7725
SELECT - 54 AS col1, COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
-54
9

query II rowsort
SELECT - 90 AS col2, + col0 - + col0 AS col2 FROM tab1 AS cor0
----
-90
0
-90
0
-90
0

query I rowsort
SELECT ALL 83 + + col0 + - 26 * + ( + col0 ) FROM tab1 AS cor0
----
-1192
-2042
-2192

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col1 BETWEEN - col0 * + - col1 AND - col0 - - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7729
SELECT ALL CAST( + MAX( col1 ) AS SIGNED ) + COUNT( - col0 ) FROM tab0 AS cor0 WHERE NULL BETWEEN + col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL CAST ( + MAX ( col1 ) AS INTEGER ) + COUNT ( - col0 ) FROM tab0 AS cor0 WHERE NULL BETWEEN + col2 AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 col2, col2 + - 76 FROM tab2 AS cor0
----
46
-53
64
-36
75
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7731
SELECT DISTINCT - 34 + + CAST( NULL AS SIGNED ) - - COUNT( * ) / - - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT - 34 + + CAST ( NULL AS INTEGER ) - - COUNT ( * ) / - - COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT ( - MAX( + - col0 ) ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7732
SELECT ( - MAX ( + - col0 ) ) AS col0 FROM tab2
----
46

query I rowsort
SELECT ALL + col0 * - + col1 + col2 AS col2 FROM tab0
----
-1168
-1817
2

query I rowsort
SELECT ALL + col0 * + 13 AS col1 FROM tab2
----
598
832
975

query I rowsort
SELECT DISTINCT 86 + col0 * - col2 * + col0 * - 47 FROM tab0
----
3557516
43780163
497111

onlyif mysql # DIV for integer division: 
query II rowsort label-7736
SELECT ALL + 51 DIV - col2 AS col2, - col2 FROM tab1
----
0
-59
0
-68
0
-96

skipif mysql # not compatible
query II rowsort label-7736
SELECT ALL + 51 / - col2 AS col2, - col2 FROM tab1
----
0
-59
0
-68
0
-96

query I rowsort
SELECT DISTINCT - col2 + + - 98 AS col0 FROM tab2 WHERE NOT - 40 * - - col0 IS NULL
----
-121
-138
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT MIN( DISTINCT - + 53 ) col2 FROM tab2
----
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7738
SELECT MIN ( DISTINCT - + 53 ) col2 FROM tab2
----
-53

query I rowsort
SELECT ALL - ( - 51 ) FROM tab0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT DISTINCT MIN( DISTINCT - + ( - - ( - - col1 ) ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7740
SELECT DISTINCT MIN ( DISTINCT - + ( - - ( - - col1 ) ) ) FROM tab0
----
-81

query I rowsort
SELECT ALL - col1 * + 80 AS col1 FROM tab0
----
-1680
-6480
-80

query I rowsort
SELECT + col2 + + - 88 FROM tab2 AS cor0
----
-30
-48
-65

query I rowsort
SELECT + - 64 + + + 46 + + 83 * - 24 FROM tab0 AS cor0
----
-2010
-2010
-2010

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT COUNT( * ) FROM tab1 WHERE 18 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7744
SELECT COUNT ( * ) FROM tab1 WHERE 18 IS NOT NULL
----
3

query I rowsort
SELECT + col2 * + 50 - + col1 + + col0 * col2 FROM tab2 AS cor0
----
2157
4483
7183

onlyif mysql # aggregate syntax: 
query II rowsort label-7746
SELECT ALL + COUNT( * ) AS col1, COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-7746
SELECT ALL + COUNT ( * ) AS col1, COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7747
SELECT ALL 93 * - COUNT( * ) * + COUNT( * ), - 24 AS col1 FROM tab1 AS cor0
----
-837
-24

skipif mysql # not compatible
query II rowsort label-7747
SELECT ALL 93 * - COUNT ( * ) * + COUNT ( * ), - 24 AS col1 FROM tab1 AS cor0
----
-837
-24

query I rowsort
SELECT - 90 * + + col0 + - + 99 + - + 62 - col0 FROM tab2 AS cor0
----
-4347
-5985
-6986

query I rowsort
SELECT + 68 - - col1 FROM tab1 AS cor0
----
115
73
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT - - MIN( DISTINCT - col1 ) + + - ( 64 ) FROM tab1 cor0
----
-111

skipif mysql # not compatible
query I rowsort label-7750
SELECT - - MIN ( DISTINCT - col1 ) + + - ( 64 ) FROM tab1 cor0
----
-111

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 79 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( col2 )
----

query II rowsort
SELECT DISTINCT col1, col0 * - col1 + ( + ( 22 ) ) AS col0 FROM tab0 AS cor0
----
1
-75
21
-1805
81
-1193

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 61 NOT BETWEEN - - col0 * - + 64 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7755
SELECT DISTINCT col2 * - CAST( NULL AS SIGNED ) / - 21 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7755
SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) / - 21 AS col1 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( + 94 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 >= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7758
SELECT DISTINCT + 86 + 27 / - col1 * + CAST( NULL AS SIGNED ) + + + col2 AS col2 FROM tab0 WHERE 91 >= NULL
----

skipif mysql # not compatible
query I rowsort label-7758
SELECT DISTINCT + 86 + 27 / - col1 * + CAST ( NULL AS INTEGER ) + + + col2 AS col2 FROM tab0 WHERE 91 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT DISTINCT + MIN( DISTINCT + 29 ) AS col0 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT + MIN ( DISTINCT + 29 ) AS col0 FROM tab2
----
29

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + col0 * + col1 + ( + col1 ) + + 90 ) IS NOT NULL
----

query II rowsort
SELECT col0, - 4 AS col2 FROM tab1 WHERE NOT + - 16 IS NULL
----
51
-4
85
-4
91
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-7762
SELECT DISTINCT col2 DIV - 12 col0, 68 AS col1 FROM tab0
----
-3
68
-8
68
0
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7762
SELECT DISTINCT col2 / - 12 col0, 68 AS col1 FROM tab0
----
-3
68
-8
68
0
68

onlyif mysql # aggregate syntax: 
query II rowsort label-7763
SELECT + COUNT( DISTINCT col0 ) AS col2, SUM( + - col1 ) AS col0 FROM tab0
----
3
-103

skipif mysql # not compatible
query II rowsort label-7763
SELECT + COUNT ( DISTINCT col0 ) AS col2, SUM ( + - col1 ) AS col0 FROM tab0
----
3
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT ALL COUNT( ALL + col2 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL COUNT ( ALL + col2 ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7765
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN CAST( NULL AS SIGNED ) AND + - col2
----

skipif mysql # not compatible
query III rowsort label-7765
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN CAST ( NULL AS INTEGER ) AND + - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7766
SELECT ALL col0 DIV - col1, col1 AS col2 FROM tab1 AS cor0
----
-1
47
-17
5
-3
14

skipif mysql # not compatible
query II rowsort label-7766
SELECT ALL col0 / - col1, col1 AS col2 FROM tab1 AS cor0
----
-1
47
-17
5
-3
14

query I rowsort
SELECT - - col1 * col2 * - + col2 * - col1 AS col0 FROM tab0 AS cor0
----
14493249
44100
9801

query I rowsort
SELECT ALL - col2 + + 74 AS col0 FROM tab1 AS cor0
----
-22
15
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL AND NOT NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) col0 FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7771
SELECT ALL col0 DIV - col2 + - col2 AS col1 FROM tab2 AS cor0
----
-25
-41
-59

skipif mysql # not compatible
query I rowsort label-7771
SELECT ALL col0 / - col2 + - col2 AS col1 FROM tab2 AS cor0
----
-25
-41
-59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - + 29 + + 63 IS NOT NULL AND ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7773
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col0 + - ( - CAST( NULL AS SIGNED ) ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7773
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col0 + - ( - CAST ( NULL AS INTEGER ) ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( + + 29 ) + + col2 AS col1 FROM tab2 AS cor0
----
52
69
87

query I rowsort
SELECT ALL - - col0 + - col1 FROM tab2 cor0
----
-13
-5
8

query I rowsort
SELECT + col0 FROM tab0 WHERE - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT DISTINCT - SUM( - col0 ) + + 77 AS col1 FROM tab1
----
304

skipif mysql # not compatible
query I rowsort label-7777
SELECT DISTINCT - SUM ( - col0 ) + + 77 AS col1 FROM tab1
----
304

query III rowsort
SELECT * FROM tab0 WHERE col0 * 90 IS NULL
----

query I rowsort
SELECT ALL ( - 91 ) + + + 17 + - col1 FROM tab2
----
-125
-141
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT DISTINCT + 6 * COUNT( * ) * - + 88 * + COUNT( + col1 ) + - 79 AS col0 FROM tab0
----
-4831

skipif mysql # not compatible
query I rowsort label-7780
SELECT DISTINCT + 6 * COUNT ( * ) * - + 88 * + COUNT ( + col1 ) + - 79 AS col0 FROM tab0
----
-4831

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT MIN( ALL - 11 ) AS col2 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-7781
SELECT MIN ( ALL - 11 ) AS col2 FROM tab2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT + SUM( DISTINCT - + col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-7782
SELECT + SUM ( DISTINCT - + col2 ) FROM tab0
----
-156

query I rowsort
SELECT ALL 59 + - col0 AS col2 FROM tab0 cor0 WHERE NOT - 87 IN ( + - col1, - 48, - - 70 + ( + col0 ) * col0 )
----
-28
-38
44

query I rowsort
SELECT DISTINCT - + ( + col0 ) + - - col1 FROM tab1 AS cor0
----
-37
-44
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 51 col2 FROM tab0
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT COUNT( * ) + + 59 FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-7786
SELECT COUNT ( * ) + + 59 FROM tab0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-7787
SELECT ALL col0 - ( - - col2 ) DIV + col2 - - col0 - + + 15 AS col1 FROM tab1
----
154
166
86

skipif mysql # not compatible
query I rowsort label-7787
SELECT ALL col0 - ( - - col2 ) / + col2 - - col0 - + + 15 AS col1 FROM tab1
----
154
166
86

query I rowsort
SELECT - 15 + + col1 FROM tab2
----
36
52
62

query I rowsort
SELECT col1 * 6 + - 53 AS col1 FROM tab1
----
-23
229
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT 79 * - - 59 + - + COUNT( * ) + + 52 FROM tab0
----
4710

skipif mysql # not compatible
query I rowsort label-7790
SELECT 79 * - - 59 + - + COUNT ( * ) + + 52 FROM tab0
----
4710

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > + 80 + + + 37 * col0 * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 col0 FROM tab1 cor0
----
-76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 66 = - 64
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * - 98 AS col1 FROM tab2 AS cor0
----
2254
3920
5684

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + 18
----

query I rowsort
SELECT col1 * - 63 AS col1 FROM tab1
----
-2961
-315
-882

query I rowsort
SELECT ALL ( + - col0 ) * + - col1 AS col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT DISTINCT - col2 * - 34 AS col1 FROM tab0
----
1598
3366
340

onlyif mysql # DIV for integer division: 
query II rowsort label-7800
SELECT - col0 AS col2, + 55 + 65 + + col2 DIV + 75 FROM tab1
----
-51
121
-85
120
-91
120

skipif mysql # not compatible
query II rowsort label-7800
SELECT - col0 AS col2, + 55 + 65 + + col2 / + 75 FROM tab1
----
-51
121
-85
120
-91
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7801
SELECT ALL COUNT( * ) DIV - 92 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL COUNT ( * ) / - 92 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7802
SELECT ALL 2 * + col1 DIV - ( + - col0 ) FROM tab0
----
0
0
10

skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL 2 * + col1 / - ( + - col0 ) FROM tab0
----
0
0
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7803
SELECT ( 97 ) * CAST( + 73 AS SIGNED ) + + COUNT( * ) FROM tab2 AS cor0
----
7084

skipif mysql # not compatible
query I rowsort label-7803
SELECT ( 97 ) * CAST ( + 73 AS INTEGER ) + + COUNT ( * ) FROM tab2 AS cor0
----
7084

onlyif mysql # DIV for integer division: 
query II rowsort label-7804
SELECT - col1 AS col2, 60 DIV + 71 AS col1 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

skipif mysql # not compatible
query II rowsort label-7804
SELECT - col1 AS col2, 60 / + 71 AS col1 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

query I rowsort
SELECT ALL - ( - + 30 ) * + 17 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d014015036bba0acfe641e14c6ddece9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7806
SELECT + SUM( - col1 ) DIV - 99 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7806
SELECT + SUM ( - col1 ) / - 99 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7807
SELECT + + 93 * - + 2 / + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7807
SELECT + + 93 * - + 2 / + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 21 + 21 + ( ( col0 ) ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL - col2 * + - 66 FROM tab1 AS cor0
----
3894
4488
6336

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col2, ( - col0 ), + + col2, + + col1, + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( - col0 ) > col1 / + col1 + + + col1
----
87
21
10
97
1
99

query I rowsort
SELECT ALL col0 + + 15 AS col1 FROM tab2
----
61
79
90

query I rowsort
SELECT DISTINCT col0 * - 16 - col2 FROM tab2
----
-1064
-1258
-759

query I rowsort
SELECT col2 + 23 FROM tab1 AS cor0
----
119
82
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < 47
----

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 cor0 WHERE NOT ( NOT 18 + col0 < col2 * + col0 + + col0 )
----
46
64
75

query I rowsort
SELECT ALL + 59 / col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT col0 IS NOT NULL ) )
----

query I rowsort
SELECT DISTINCT - 50 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7819
SELECT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) * 62 * + + ( - col1 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7819
SELECT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) * 62 * + + ( - col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7820
SELECT DISTINCT + col0 DIV 8 - col0 AS col1 FROM tab1
----
-45
-75
-80

skipif mysql # not compatible
query I rowsort label-7820
SELECT DISTINCT + col0 / 8 - col0 AS col1 FROM tab1
----
-45
-75
-80

query I rowsort
SELECT + ( - 21 ) AS col1 FROM tab0
----
-21
-21
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7822
SELECT ALL CAST( MIN( ALL - + col2 ) AS SIGNED ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-7822
SELECT ALL CAST ( MIN ( ALL - + col2 ) AS INTEGER ) AS col0 FROM tab0
----
-99

query I rowsort
SELECT DISTINCT ( + col2 ) * + + col1 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

query II rowsort
SELECT col0, col1 AS col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

query I rowsort
SELECT ALL - col1 * + - col0 FROM tab2 cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT - + COUNT( * ) * - + 13 * + 76 + - MIN( ALL 61 ) FROM tab1 AS cor0
----
2903

skipif mysql # not compatible
query I rowsort label-7826
SELECT - + COUNT ( * ) * - + 13 * + 76 + - MIN ( ALL 61 ) FROM tab1 AS cor0
----
2903

query I rowsort
SELECT DISTINCT - + col2 * ( col0 ) AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT - 59 * + 97 * 83 FROM tab0 cor0
----
-475009
-475009
-475009

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7829
SELECT AVG ( CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7829
SELECT AVG ( CAST ( NULL AS REAL ) ) AS col1 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT - 68 AS col2, col2 AS col0 FROM tab1 AS cor0
----
-68
59
-68
68
-68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 34 col2 FROM tab0 AS cor0
----
-34

query II rowsort
SELECT DISTINCT + 1 AS col2, + col1 AS col1 FROM tab0 cor0
----
1
1
1
21
1
81

query I rowsort
SELECT ALL - 10 * 75 * - ( + - col1 ) AS col1 FROM tab0 AS cor0
----
-15750
-60750
-750

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NULL IS NOT NULL OR NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 29 * - col1 col0, + 9 AS col0 FROM tab2
----
-1479
9
-1943
9
-2233
9

query II rowsort
SELECT col2 * col1 AS col1, - col1 AS col0 FROM tab0
----
210
-21
3807
-81
99
-1

query I rowsort
SELECT DISTINCT - + col1 + - ( - 77 ) FROM tab0 cor0
----
-4
56
76

query I rowsort
SELECT col1 * 96 * + ( + ( + 4 ) ) FROM tab2
----
19584
25728
29568

query I rowsort
SELECT DISTINCT + 50 * 88 FROM tab2
----
4400

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT DISTINCT MAX( - + 85 ) * - COUNT( * ) AS col1 FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-7840
SELECT DISTINCT MAX ( - + 85 ) * - COUNT ( * ) AS col1 FROM tab0
----
255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7841
SELECT 18 + + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7841
SELECT 18 + + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 0 col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7843
SELECT - col1 + + CAST( - 95 AS SIGNED ) FROM tab0 AS cor0
----
-116
-176
-96

skipif mysql # not compatible
query I rowsort label-7843
SELECT - col1 + + CAST ( - 95 AS INTEGER ) FROM tab0 AS cor0
----
-116
-176
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-7844
SELECT + - COUNT( ALL - col1 ) + + COUNT( * ), + 30 * + + 0 FROM tab0 cor0
----
0
0

skipif mysql # not compatible
query II rowsort label-7844
SELECT + - COUNT ( ALL - col1 ) + + COUNT ( * ), + 30 * + + 0 FROM tab0 cor0
----
0
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( ( 25 * - ( col1 ) * + 91 IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * - col0 + + + col1 FROM tab1 AS cor0
----
-4882
-5010
-6141

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + + 9 AS col0 FROM tab0 WHERE NULL IS NULL
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 28 + 64 + - col2 + 85 col2 FROM tab1
----
25
53
62

query III rowsort
SELECT * FROM tab0 WHERE + - ( + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7851
SELECT - + col0 / CAST( NULL AS SIGNED ) FROM tab1 WHERE - col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7851
SELECT - + col0 / CAST ( NULL AS INTEGER ) FROM tab1 WHERE - col0 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 - - 86 AS col1 FROM tab2
----
132
150
161

query I rowsort
SELECT ALL + 1 + - col1 AS col2 FROM tab2
----
-50
-66
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-7854
SELECT DISTINCT + col0 * col2 DIV + - 82 - + col1 FROM tab1
----
-122
-66
-73

skipif mysql # not compatible
query I rowsort label-7854
SELECT DISTINCT + col0 * col2 / + - 82 - + col1 FROM tab1
----
-122
-66
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7855
SELECT DISTINCT 22 DIV 87 * + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7855
SELECT DISTINCT 22 / 87 * + COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT col2 * + col0 + + col1 AS col1 FROM tab2
----
1109
2637
4417

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT DISTINCT COUNT( DISTINCT + - col2 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7857
SELECT DISTINCT COUNT ( DISTINCT + - col2 ) col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - + col0 * + 89 - col2 + - col0 FROM tab1 AS cor0
----
-4686
-7709
-8258

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + - + 74 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col1 AS col2, 83 FROM tab1 AS cor0
----
14
83
47
83
5
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT ALL + ( + COUNT( * ) ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7861
SELECT ALL + ( + COUNT ( * ) ) col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT ALL + - ( MAX( ALL + + col0 ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7862
SELECT ALL + - ( MAX ( ALL + + col0 ) ) FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-7863
SELECT ALL - COUNT( * ) col1, + MAX( DISTINCT - 92 ) - - 42 col1 FROM tab2
----
-3
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7863
SELECT ALL - COUNT ( * ) col1, + MAX ( DISTINCT - 92 ) - - 42 col1 FROM tab2
----
-3
-50

query I rowsort
SELECT + 58 * - 95 * - 6 FROM tab1 WHERE NOT col1 < - col0
----
33060
33060
33060

query II rowsort
SELECT - col1 AS col0, + col1 AS col1 FROM tab2
----
-51
51
-67
67
-77
77

query I rowsort
SELECT - col0 * + col1 * + 9 AS col1 FROM tab1
----
-3825
-38493
-6426

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7867
SELECT CAST( NULL AS SIGNED ) * - col0 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7867
SELECT CAST ( NULL AS INTEGER ) * - col0 col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT DISTINCT + - ( - MIN( + col1 ) ) * - COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-459

skipif mysql # not compatible
query I rowsort label-7868
SELECT DISTINCT + - ( - MIN ( + col1 ) ) * - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-459

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 17 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 FROM tab0 cor0 WHERE - 17 + col1 IS NOT NULL
----
-15
-87
-97

query II rowsort
SELECT 64 * + col0 + + + 72 + + + 5 AS col0, - col1 * col2 FROM tab1 AS cor0
----
3341
-1344
5517
-295
5901
-3196

query I rowsort
SELECT col1 + - - col1 * - ( + + col2 ) * - + 56 FROM tab2 AS cor0 WHERE NULL IS NULL
----
172557
217683
65739

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7873
SELECT - col2 + + col2 + CAST( + + col0 AS SIGNED ) FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7873
SELECT - col2 + + col2 + CAST ( + + col0 AS INTEGER ) FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT DISTINCT ( + 30 ) * - - MIN( col2 ) AS col0 FROM tab2
----
690

skipif mysql # not compatible
query I rowsort label-7874
SELECT DISTINCT ( + 30 ) * - - MIN ( col2 ) AS col0 FROM tab2
----
690

query I rowsort
SELECT 30 * 97 FROM tab1 AS cor0
----
2910
2910
2910

query I rowsort
SELECT DISTINCT - 88 * + col1 FROM tab2 AS cor0
----
-4488
-5896
-6776

query II rowsort
SELECT col1 AS col2, + col1 * 8 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
408
67
536
77
616

query I rowsort
SELECT 81 - - col2 FROM tab2 cor0
----
104
121
139

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT + 79 + + COUNT( * ) AS col1 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-7879
SELECT + 79 + + COUNT ( * ) AS col1 FROM tab1
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7880
SELECT ALL + col2 + + col0 + + col0 / - col2 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7880
SELECT ALL + col2 + + col0 + + col0 / - col2 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, 38 AS col2 FROM tab1
----
14
38
47
38
5
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col2, 38 col1 FROM tab1 AS cor0
----
59
38
68
38
96
38

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 95 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT + COUNT( * ) * + COUNT( + - col2 ) + + 57 col0 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7884
SELECT + COUNT ( * ) * + COUNT ( + - col2 ) + + 57 col0 FROM tab2 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT MAX( ALL 92 ) FROM tab1 cor0
----
92

skipif mysql # not compatible
query I rowsort label-7885
SELECT MAX ( ALL 92 ) FROM tab1 cor0
----
92

query I rowsort
SELECT ALL - + 51 FROM tab0 AS cor0 WHERE NOT col2 / - 75 + - 54 + ( + 77 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT + - 5 * + + COUNT( * ) FROM tab1 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7887
SELECT + - 5 * + + COUNT ( * ) FROM tab1 cor0
----
-15

query III rowsort
SELECT * FROM tab1 WHERE 27 < NULL
----

query I rowsort
SELECT ALL col2 + + 59 AS col2 FROM tab1 WHERE NULL BETWEEN 83 - - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT MAX( 13 ) AS col0 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-7890
SELECT MAX ( 13 ) AS col0 FROM tab2
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col0 * + ( - 65 ) col1 FROM tab0
----
5634
6304
894

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT NULL < col0 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-7892
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT NULL < col0 * - col2
----
0

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN ( col2 ) AND ( - 30 )
----

query I rowsort
SELECT + 20 * 25 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 90 * - col1 - col0 * 37 AS col0 FROM tab1
----
-2695
-627
863

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7896
SELECT + 99 * + COUNT( * ) - - ( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7896
SELECT + 99 * + COUNT ( * ) - - ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT - col2 - 43 AS col1 FROM tab0
----
-142
-53
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7898
SELECT col0 AS col0 FROM tab1 WHERE CAST( - col0 AS DECIMAL ) IS NOT NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7898
SELECT col0 AS col0 FROM tab1 WHERE CAST ( - col0 AS REAL ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT 84 * 66 FROM tab0
----
5544
5544
5544

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + col1 * - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 + col2 col1 FROM tab2
----
116
81
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7902
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = + CAST( col2 AS SIGNED ) + 25 * + 3
----

skipif mysql # not compatible
query III rowsort label-7902
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = + CAST ( col2 AS INTEGER ) + 25 * + 3
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7903
SELECT + ( - CAST( NULL AS SIGNED ) ) * col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7903
SELECT + ( - CAST ( NULL AS INTEGER ) ) * col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * + 35 AS col1 FROM tab0 AS cor0
----
2835
35
735

onlyif mysql # DIV for integer division: 
query I rowsort label-7905
SELECT DISTINCT + col0 * col2 + 39 DIV - col2 FROM tab2 AS cor0
----
1057
2560
4350

skipif mysql # not compatible
query I rowsort label-7905
SELECT DISTINCT + col0 * col2 + 39 / - col2 FROM tab2 AS cor0
----
1057
2560
4350

query I rowsort
SELECT DISTINCT + 61 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 77 + + col2 * - 47 col1 FROM tab1 AS cor0
----
-2696
-3119
-4435

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 22 >= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7909
SELECT - CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 WHERE ( - col2 ) BETWEEN NULL AND col1
----
0

skipif mysql # not compatible
query I rowsort label-7909
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 WHERE ( - col2 ) BETWEEN NULL AND col1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 NOT BETWEEN - ( ( 56 ) ) * col1 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7911
SELECT CAST( NULL AS DECIMAL ) FROM tab2 WHERE NULL <= 86 * col0 + col1
----

skipif mysql # not compatible
query I rowsort label-7911
SELECT CAST ( NULL AS REAL ) FROM tab2 WHERE NULL <= 86 * col0 + col1
----

query I rowsort
SELECT ALL + col1 * 15 FROM tab0
----
1215
15
315

query I rowsort
SELECT col1 + 68 * 35 FROM tab2
----
2431
2447
2457

query I rowsort
SELECT DISTINCT + col1 * col1 - + col2 FROM tab2
----
2578
4431
5889

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + + ( col2 ) IN ( - 27 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7916
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1 / col2
----

skipif mysql # not compatible
query I rowsort label-7916
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1 / col2
----

query I rowsort
SELECT DISTINCT col2 * col0 FROM tab0 AS cor0 WHERE NOT - 53 - - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT COUNT( col0 ) * - 75 FROM tab1 cor0 WHERE NULL = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7918
SELECT COUNT ( col0 ) * - 75 FROM tab1 cor0 WHERE NULL = ( NULL )
----
0

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT ALL + + MAX( + col0 ) * 16 FROM tab1 AS cor0
----
1456

skipif mysql # not compatible
query I rowsort label-7920
SELECT ALL + + MAX ( + col0 ) * 16 FROM tab1 AS cor0
----
1456

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT 81 + + col0 FROM tab0 AS cor0
----
168
178
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 * - 13 col1 FROM tab0 AS cor0
----
-676
-676
-676

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NULL = col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7925
SELECT DISTINCT 44 DIV 62 + col2 AS col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-7925
SELECT DISTINCT 44 / 62 + col2 AS col2 FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT - col1 * col0 - ( ( + col0 ) ) AS col2 FROM tab2
----
-2392
-4992
-5100

query I rowsort
SELECT ALL - 94 - - 43 AS col2 FROM tab1
----
-51
-51
-51

query III rowsort
SELECT * FROM tab1 WHERE - col1 * - col1 NOT IN ( - 72 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE col0 < ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 BETWEEN col2 AND col2
----

query I rowsort
SELECT DISTINCT + 6 + + 54 FROM tab1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT COUNT( * ) - - ( - ( COUNT( * ) ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7932
SELECT COUNT ( * ) - - ( - ( COUNT ( * ) ) ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT DISTINCT 83 - + COUNT( * ) FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-7933
SELECT DISTINCT 83 - + COUNT ( * ) FROM tab0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-7934
SELECT col0 DIV + 43 AS col2 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7934
SELECT col0 / + 43 AS col2 FROM tab1 AS cor0
----
1
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7935
SELECT - CAST( NULL AS SIGNED ) * + CAST( ( col1 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7935
SELECT - CAST ( NULL AS INTEGER ) * + CAST ( ( col1 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT ALL ( COUNT( * ) ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7936
SELECT ALL ( COUNT ( * ) ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9

query I rowsort
SELECT ( - col1 ) * col1 AS col2 FROM tab1
----
-196
-2209
-25

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 85 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7939
SELECT DISTINCT 18, COUNT( * ) AS col1 FROM tab0
----
18
3

skipif mysql # not compatible
query II rowsort label-7939
SELECT DISTINCT 18, COUNT ( * ) AS col1 FROM tab0
----
18
3

query II rowsort
SELECT + col2 AS col1, col1 * col1 AS col2 FROM tab1
----
59
25
68
2209
96
196

onlyif mysql # DIV for integer division: 
query I rowsort label-7941
SELECT DISTINCT ( - col1 ) * col2 DIV 71 - + col1 FROM tab2
----
-120
-121
-67

skipif mysql # not compatible
query I rowsort label-7941
SELECT DISTINCT ( - col1 ) * col2 / 71 - + col1 FROM tab2
----
-120
-121
-67

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0 WHERE ( + col0 ) >= 91 + - 41
----
1
21

query I rowsort
SELECT ALL + + 87 FROM tab2 cor0
----
87
87
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7944
SELECT DISTINCT + - CAST( ( - + COUNT( * ) ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7944
SELECT DISTINCT + - CAST ( ( - + COUNT ( * ) ) AS INTEGER ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT DISTINCT - COUNT( * ) + + + 12 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7945
SELECT DISTINCT - COUNT ( * ) + + + 12 FROM tab0 AS cor0
----
9

query II rowsort
SELECT - 80 AS col0, 67 FROM tab2 AS cor0
----
-80
67
-80
67
-80
67

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT 52 * - - col2 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - col1 ) + - 79 + + 4 col2 FROM tab0 AS cor0
----
-54
-74
6

query I rowsort
SELECT + col1 * + 77 AS col2 FROM tab2
----
3927
5159
5929

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col2 * 82 ) BETWEEN col0 AND 98 + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - 79 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + ( + - col2 ) AS col1, col1 * - 39 * col2 AS col2 FROM tab2
----
-23
-45747
-40
-120120
-58
-151554

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT COUNT( * ) * COUNT( * ) * - 11 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-7953
SELECT COUNT ( * ) * COUNT ( * ) * - 11 FROM tab0
----
-99

query I rowsort
SELECT ALL + col1 * - 94 FROM tab1 AS cor0 WHERE NOT - col0 NOT IN ( - col2 + - col0 + - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 * - col1 + + 74 col2 FROM tab0 cor0 WHERE NOT col0 IN ( 43 )
----
-10
-1690
-6730

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT - SUM( DISTINCT + col0 ) + + + 14 AS col2 FROM tab0 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-7956
SELECT - SUM ( DISTINCT + col0 ) + + + 14 AS col2 FROM tab0 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE ( NOT ( NULL ) > NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7957
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE ( NOT ( NULL ) > NULL )
----
0

query I rowsort
SELECT col1 + - col1 * - + 11 AS col0 FROM tab0 AS cor0
----
12
252
972

query I rowsort
SELECT ALL + col2 + + col0 * ( + col1 ) * + ( ( 61 ) ) FROM tab1 AS cor0
----
25984
260965
43650

query III rowsort
SELECT * FROM tab2 WHERE ( 27 ) IS NULL
----

query I rowsort
SELECT ALL - 87 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT DISTINCT - - 40 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT DISTINCT - + COUNT( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7963
SELECT DISTINCT - + COUNT ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 84 - col1 col1 FROM tab1 AS cor0
----
37
70
79

query I rowsort
SELECT - 74 * ( - - ( + 89 ) ) - - col0 AS col0 FROM tab2 cor0
----
-6511
-6522
-6540

query II rowsort
SELECT + col0 - + 87 * + + 80 AS col1, - col1 FROM tab0 AS cor0
----
-6863
-1
-6873
-21
-6945
-81

query I rowsort
SELECT - 68 - + 54 AS col2 FROM tab1 AS cor0
----
-122
-122
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT - 71 - - COUNT( * ) FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-7968
SELECT - 71 - - COUNT ( * ) FROM tab0 AS cor0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7969
SELECT ALL * FROM tab0 WHERE + ( - CAST( NULL AS SIGNED ) ) + + col1 + + 56 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7969
SELECT ALL * FROM tab0 WHERE + ( - CAST ( NULL AS INTEGER ) ) + + col1 + + 56 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT ALL 93 * COUNT( DISTINCT col0 ) FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-7970
SELECT ALL 93 * COUNT ( DISTINCT col0 ) FROM tab1
----
279

onlyif mysql # aggregate syntax: 
query II rowsort label-7971
SELECT + COUNT( * ), - ( - SUM( col1 ) ) AS col2 FROM tab2
----
3
195

skipif mysql # not compatible
query II rowsort label-7971
SELECT + COUNT ( * ), - ( - SUM ( col1 ) ) AS col2 FROM tab2
----
3
195

query II rowsort
SELECT DISTINCT + col0 * - col1, - 40 * col2 AS col0 FROM tab1 AS cor0
----
-425
-2360
-4277
-2720
-714
-3840

query I rowsort
SELECT ALL - + col1 * + 5 FROM tab1 AS cor0
----
-235
-25
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7975
SELECT ALL + CAST( - 71 AS SIGNED ), col2 * + col0 + + col1 * 42 col1 FROM tab0
----
-71
1752
-71
4107
-71
9645

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7975
SELECT ALL + CAST ( - 71 AS INTEGER ), col2 * + col0 + + col1 * 42 col1 FROM tab0
----
-71
1752
-71
4107
-71
9645

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 + - col1 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 97 / 87 ) <= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 NOT IN ( col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7980
SELECT - - col0 * + + 26 * 63 + col1 FROM tab2 cor0 WHERE NOT col0 + + CAST( NULL AS DECIMAL ) < col1
----

skipif mysql # not compatible
query I rowsort label-7980
SELECT - - col0 * + + 26 * 63 + col1 FROM tab2 cor0 WHERE NOT col0 + + CAST ( NULL AS REAL ) < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT ALL AVG ( - + col0 ) * - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( - col1 * + + col2 * col0 ) AND - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL AVG ( - + col0 ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( - col1 * + + col2 * col0 ) AND - col0
----
NULL

query I rowsort
SELECT col2 * 59 FROM tab1 AS cor0 WHERE NOT + ( - col1 ) + 64 - 58 > col2
----
3481
4012
5664

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7983
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 - + 83 <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7983
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 - + 83 <= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 35 + col0 * - 35 FROM tab2 AS cor0
----
-1645
-2275
-2660

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 > ( col2 - 90 )
----

query I rowsort
SELECT - + col0 + col1 + + + col1 * col0 AS col2 FROM tab0 AS cor0
----
1
1281
1761

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7987
SELECT * FROM tab0 WHERE col0 / + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7987
SELECT * FROM tab0 WHERE col0 / + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7988
SELECT ALL * FROM tab0 WHERE ( col2 ) * + 9 + 62 BETWEEN ( + - 49 ) - 82 AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7988
SELECT ALL * FROM tab0 WHERE ( col2 ) * + 9 + 62 BETWEEN ( + - 49 ) - 82 AND CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab2 WHERE NOT + 7 + - col1 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7989
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab2 WHERE NOT + 7 + - col1 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT - + MIN( ( - 91 ) ) FROM tab0 WHERE 92 + + ( + 87 ) * - - col1 IS NOT NULL
----
91

skipif mysql # not compatible
query I rowsort label-7990
SELECT - + MIN ( ( - 91 ) ) FROM tab0 WHERE 92 + + ( + 87 ) * - - col1 IS NOT NULL
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab1 WHERE NOT 15 * col1 * + - ( - 26 ) NOT BETWEEN NULL AND + col0 + - 54
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT 66 * - + col1 IS NULL
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 47 AS col2, - 33 col0 FROM tab0
----
-47
-33

query II rowsort
SELECT ALL col2 AS col0, - 2 AS col1 FROM tab0
----
10
-2
47
-2
99
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7995
SELECT - ( + + COUNT( * ) ) DIV + CAST( ( + MAX( + 29 ) ) AS SIGNED ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7995
SELECT - ( + + COUNT ( * ) ) / + CAST ( ( + MAX ( + 29 ) ) AS INTEGER ) AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT DISTINCT - SUM( col2 ) * - ( MIN( ALL col1 ) ) FROM tab2
----
6171

skipif mysql # not compatible
query I rowsort label-7996
SELECT DISTINCT - SUM ( col2 ) * - ( MIN ( ALL col1 ) ) FROM tab2
----
6171

query II rowsort
SELECT DISTINCT - col0 AS col0, col2 AS col0 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT - col2 * - + col2 * + + col0 * - ( 4 ) + - - col1 AS col2 FROM tab0
----
-132459
-34779
-3802787

query I rowsort
SELECT + ( - 1 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 13 * + - col2 BETWEEN NULL AND - ( - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT DISTINCT - COUNT( * ) - + - MAX( + col2 ) FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-8001
SELECT DISTINCT - COUNT ( * ) - + - MAX ( + col2 ) FROM tab1 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT ALL - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= - col2
----
0

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= - col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8003
SELECT + CAST( NULL AS SIGNED ) * - ( + + col2 ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col2 + + col1 * + 53 * - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8003
SELECT + CAST ( NULL AS INTEGER ) * - ( + + col2 ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col2 + + col1 * + 53 * - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 >= - col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 63 * - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT DISTINCT - + SUM( DISTINCT - 90 ) FROM tab2 cor0
----
90

skipif mysql # not compatible
query I rowsort label-8007
SELECT DISTINCT - + SUM ( DISTINCT - 90 ) FROM tab2 cor0
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8008
SELECT 29 DIV + - 43 * + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8008
SELECT 29 / + - 43 * + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col2 * - + 72 FROM tab0
----
3384
7128
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8010
SELECT DISTINCT - CAST( - + col1 AS SIGNED ) FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8010
SELECT DISTINCT - CAST ( - + col1 AS INTEGER ) FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8011
SELECT DISTINCT + col0 * - CAST( ( + col2 ) AS SIGNED ) FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-8011
SELECT DISTINCT + col0 * - CAST ( ( + col2 ) AS INTEGER ) FROM tab0
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, col1 AS col1 FROM tab0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT ALL + col0 * - col1 + - 41 FROM tab0 AS cor0
----
-1256
-138
-1868

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( - 32 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT + COUNT( * ) * + + COUNT( * ) * + + SUM( - col0 ) + COUNT( * ) * - - 96 AS col0 FROM tab2 AS cor0
----
-1377

skipif mysql # not compatible
query I rowsort label-8015
SELECT + COUNT ( * ) * + + COUNT ( * ) * + + SUM ( - col0 ) + COUNT ( * ) * - - 96 AS col0 FROM tab2 AS cor0
----
-1377

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT - 88 * - ( - MIN( DISTINCT + col2 ) ) FROM tab0
----
-880

skipif mysql # not compatible
query I rowsort label-8016
SELECT - 88 * - ( - MIN ( DISTINCT + col2 ) ) FROM tab0
----
-880

query I rowsort
SELECT - - 33 * + 41 + 35 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f331bec5e0c0044499672d01ad29d75f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8018
SELECT DISTINCT - col1 / - col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8018
SELECT DISTINCT - col1 / - col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - ( - 43 ) + col2 * - - 29 col2 FROM tab2 AS cor0
----
-1311
-1543
-1592

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 <> + 67
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - + col2, 66 AS col0 FROM tab1 AS cor0 WHERE - 1 + - + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8022
SELECT DISTINCT + CAST( - CAST( + col0 AS SIGNED ) AS SIGNED ) + + - col2 AS col1 FROM tab1 AS cor0
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-8022
SELECT DISTINCT + CAST ( - CAST ( + col0 AS INTEGER ) AS INTEGER ) + + - col2 AS col1 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT DISTINCT col0 + + 87 AS col0 FROM tab1
----
138
172
178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8024
SELECT 27 + - 83 + - ( + COUNT( * ) ) + - MIN( ALL + 88 ) DIV 51 FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-8024
SELECT 27 + - 83 + - ( + COUNT ( * ) ) + - MIN ( ALL + 88 ) / 51 FROM tab2
----
-60

query III rowsort
SELECT * FROM tab2 WHERE + + col1 <= 56
----
46
51
23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8026
SELECT DISTINCT ( - - 78 ) DIV ( - 20 ) * - col2 DIV - CAST( NULL AS SIGNED ) DIV + col2 AS col0, + ( col0 ) DIV + + col1 FROM tab2 AS cor0
----
NULL
0
NULL
1

skipif mysql # not compatible
query II rowsort label-8026
SELECT DISTINCT ( - - 78 ) / ( - 20 ) * - col2 / - CAST ( NULL AS INTEGER ) / + col2 AS col0, + ( col0 ) / + + col1 FROM tab2 AS cor0
----
NULL
0
NULL
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 65 ) col0 FROM tab0
----
65
65
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8028
SELECT - ( - ( - CAST( + - 90 AS SIGNED ) ) ) * + 56 col1 FROM tab0 cor0
----
5040
5040
5040

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8028
SELECT - ( - ( - CAST ( + - 90 AS INTEGER ) ) ) * + 56 col1 FROM tab0 cor0
----
5040
5040
5040

query II rowsort
SELECT + col2 AS col2, + 12 AS col2 FROM tab2 AS cor0
----
23
12
40
12
58
12

query I rowsort
SELECT 52 * + 98 AS col1 FROM tab1 AS cor0
----
5096
5096
5096

query II rowsort
SELECT + col0 AS col0, + col1 AS col2 FROM tab2 AS cor0
----
46
51
64
77
75
67

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 61 < NULL
----

query I rowsort
SELECT + 26 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT ALL + COUNT( DISTINCT - + ( - + 22 ) ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8034
SELECT ALL + COUNT ( DISTINCT - + ( - + 22 ) ) AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL + ( - - 35 ) AS col2 FROM tab0 AS cor0
----
35
35
35

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8036
SELECT DISTINCT * FROM tab2 WHERE NOT - - CAST( NULL AS SIGNED ) * - + col2 + 57 < - 24
----

skipif mysql # not compatible
query III rowsort label-8036
SELECT DISTINCT * FROM tab2 WHERE NOT - - CAST ( NULL AS INTEGER ) * - + col2 + 57 < - 24
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 <> ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + 62 NOT BETWEEN NULL AND - 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT ALL + - SUM( ALL - 1 ) AS col1 FROM tab0 WHERE - ( + col1 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8039
SELECT ALL + - SUM ( ALL - 1 ) AS col1 FROM tab0 WHERE - ( + col1 ) IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - col0 * + + col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT 62 AS col0 FROM tab0 AS cor0 WHERE NOT ( 77 ) IS NULL
----
62
62
62

query I rowsort
SELECT DISTINCT + ( - + col1 ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT ALL ( MAX( + + col0 ) ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL ( MAX ( + + col0 ) ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT DISTINCT col2 + - + col1 - - - col0 AS col1 FROM tab2 cor0
----
-101
-74
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT + 5 * + COUNT( * ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8045
SELECT + 5 * + COUNT ( * ) AS col0 FROM tab0
----
15

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 WHERE NOT NULL = - 50 * - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - - col0 col1 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT col1 + - - col2 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT ALL 0 + + - 87 AS col2 FROM tab1 AS cor0
----
-87
-87
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT ALL col1 + - 45 FROM tab2 cor0
----
22
32
6

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT ALL + 56 * - + COUNT( * ) FROM tab1
----
-168

skipif mysql # not compatible
query I rowsort label-8053
SELECT ALL + 56 * - + COUNT ( * ) FROM tab1
----
-168

query I rowsort
SELECT DISTINCT col2 * - 51 AS col2 FROM tab0
----
-2397
-5049
-510

query I rowsort
SELECT ALL - col2 + 23 * 96 * 75 AS col2 FROM tab0
----
165501
165553
165590

onlyif mysql # DIV for integer division: 
query I rowsort label-8056
SELECT ALL 58 DIV - col1 AS col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8056
SELECT ALL 58 / - col1 AS col0 FROM tab2
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8057
SELECT + 36 * col2 DIV - col0 FROM tab2
----
-18
-22
-27

skipif mysql # not compatible
query I rowsort label-8057
SELECT + 36 * col2 / - col0 FROM tab2
----
-18
-22
-27

query II rowsort
SELECT DISTINCT + - col2, col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8059
SELECT DISTINCT - col2 + + col1 DIV + col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8059
SELECT DISTINCT - col2 + + col1 / + col2 FROM tab1 AS cor0
----
-59
-68
-96

query II rowsort
SELECT DISTINCT - col2, col1 AS col2 FROM tab2 cor0
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT ALL 35 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-8061
SELECT ALL 35 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
38

query I rowsort
SELECT + - col1 + + + col1 - + - col0 FROM tab0 cor0
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8063
SELECT DISTINCT CAST( + - 4 AS SIGNED ) AS col1, - COUNT( 79 ) FROM tab2 AS cor0
----
-4
-3

skipif mysql # not compatible
query II rowsort label-8063
SELECT DISTINCT CAST ( + - 4 AS INTEGER ) AS col1, - COUNT ( 79 ) FROM tab2 AS cor0
----
-4
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 70 col2 FROM tab0 AS cor0
----
70
70
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 9 col1 FROM tab0 cor0 WHERE NOT + col2 NOT BETWEEN + - col2 + - - col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT - ( + - COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8066
SELECT - ( + - COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8067
SELECT DISTINCT + CAST( 54 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT + CAST ( 54 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT ALL MAX( - + col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8068
SELECT ALL MAX ( - + col0 ) FROM tab0 AS cor0
----
-15

query II rowsort
SELECT + col2 * + + col2, col1 FROM tab1 AS cor0
----
3481
5
4624
47
9216
14

query I rowsort
SELECT DISTINCT - + col1 FROM tab2 WHERE NOT + col0 + 55 BETWEEN + col0 * - 22 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8071
SELECT DISTINCT - 56 DIV - 69 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8071
SELECT DISTINCT - 56 / - 69 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8072
SELECT - col0 DIV 24 FROM tab1
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-8072
SELECT - col0 / 24 FROM tab1
----
-2
-3
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8073
SELECT - + COUNT( * ) col2, + COUNT( * ) FROM tab2 WHERE NOT col0 * + col1 * - - 47 IS NULL
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8073
SELECT - + COUNT ( * ) col2, + COUNT ( * ) FROM tab2 WHERE NOT col0 * + col1 * - - 47 IS NULL
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT DISTINCT - SUM( + - 67 ) FROM tab0
----
201

skipif mysql # not compatible
query I rowsort label-8074
SELECT DISTINCT - SUM ( + - 67 ) FROM tab0
----
201

query I rowsort
SELECT DISTINCT ( - - 66 ) FROM tab1
----
66

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + + col0 * 74 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + - col2, - 30 AS col2 FROM tab0 AS cor0
----
-10
-30
-47
-30
-99
-30

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 + col0 - - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT DISTINCT + - MAX( ALL col2 ) AS col0 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8079
SELECT DISTINCT + - MAX ( ALL col2 ) AS col0 FROM tab1 cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT + + MAX( ( - - 61 ) ) AS col2 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-8080
SELECT + + MAX ( ( - - 61 ) ) AS col2 FROM tab2 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT DISTINCT + SUM( + 34 ) + - - 62 * - COUNT( * ) FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-8081
SELECT DISTINCT + SUM ( + 34 ) + - - 62 * - COUNT ( * ) FROM tab2 AS cor0
----
-84

query I rowsort
SELECT + + 61 - ( - + col0 ) - 42 FROM tab2 AS cor0
----
65
83
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT DISTINCT - COUNT( * ) + - 39 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-8083
SELECT DISTINCT - COUNT ( * ) + - 39 FROM tab0 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT ALL - + 26 + - COUNT( * ) FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-8084
SELECT ALL - + 26 + - COUNT ( * ) FROM tab1 AS cor0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8085
SELECT + col1 + + + col0 - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8085
SELECT + col1 + + + col0 - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8086
SELECT + MIN( ALL - - 95 ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8086
SELECT + MIN ( ALL - - 95 ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8087
SELECT DISTINCT + col1 + - - 20 DIV + col1 * + ( + col1 ) AS col0 FROM tab0
----
21
81

skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT + col1 + - - 20 / + col1 * + ( + col1 ) AS col0 FROM tab0
----
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8088
SELECT ALL * FROM tab1 WHERE - CAST( NULL AS SIGNED ) >= + col2 * + col1
----

skipif mysql # not compatible
query III rowsort label-8088
SELECT ALL * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) >= + col2 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8089
SELECT DISTINCT col2 + - CAST( NULL AS SIGNED ) * + col1 / - - 56 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8089
SELECT DISTINCT col2 + - CAST ( NULL AS INTEGER ) * + col1 / - - 56 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND 13
----

query II rowsort
SELECT 88 AS col2, 89 + - col1 FROM tab2 WHERE NULL IS NULL
----
88
12
88
22
88
38

query I rowsort
SELECT - ( - + col2 ) + col0 AS col0 FROM tab0
----
196
62
97

query I rowsort
SELECT ALL - + col1 * + - col1 AS col2 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # DIV for integer division: 
query II rowsort label-8094
SELECT - 85 col0, col1 DIV 83 * + 95 + - col1 AS col1 FROM tab1 AS cor0
----
-85
-14
-85
-47
-85
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8094
SELECT - 85 col0, col1 / 83 * + 95 + - col1 AS col1 FROM tab1 AS cor0
----
-85
-14
-85
-47
-85
-5

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE col0 * + - ( - - 5 ) * - col0 * - - col1 * - + 87 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 30 * + 33 * - 78 col1, col1 * - - ( + 71 ) + - + 59 AS col0 FROM tab0 AS cor0
----
77220
12
77220
1432
77220
5692

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, col0 col2 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT - - ( - - COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8098
SELECT - - ( - - COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT 34 * + 57 FROM tab2
----
1938

query I rowsort
SELECT DISTINCT + 74 AS col2 FROM tab1, tab2 AS cor0
----
74

query I rowsort
SELECT - 50 * - - 64 AS col0 FROM tab0 AS cor0
----
-3200
-3200
-3200

query I rowsort
SELECT ( + - col1 ) * - col2 AS col2 FROM tab0 AS cor0
----
210
3807
99

query II rowsort
SELECT col1 * - - col0, col0 FROM tab2 AS cor0
----
2346
46
4928
64
5025
75

query I rowsort
SELECT - ( - ( - col0 ) ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT DISTINCT - MAX( ALL + + col2 ) col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8105
SELECT DISTINCT - MAX ( ALL + + col2 ) col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT - col0 * - 5 FROM tab1 AS cor0
----
255
425
455

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 3
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * - 43 >= NULL
----

query I rowsort
SELECT ALL + col0 + - col1 FROM tab0 AS cor0 WHERE NOT NULL <> - col1 * + col2
----

query I rowsort
SELECT - AVG ( ALL 41 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( + 92, col0 * + col0 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 27 * - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8112
SELECT DISTINCT SUM( ALL 65 ) DIV - 68 + - COUNT( * ) FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-8112
SELECT DISTINCT SUM ( ALL 65 ) / - 68 + - COUNT ( * ) FROM tab2
----
-5

query I rowsort
SELECT ALL 7 * + 11 AS col1 FROM tab0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT + 26 * - + COUNT( * ) AS col2 FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-8114
SELECT + 26 * - + COUNT ( * ) AS col2 FROM tab1
----
-78

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8115
SELECT DISTINCT CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8115
SELECT DISTINCT CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) col2 FROM tab1
----
NULL

query I rowsort
SELECT col0 * - col2 * - - 87 FROM tab2
----
-222720
-378450
-92046

query I rowsort
SELECT ALL - 97 + - + col2 AS col1 FROM tab0
----
-107
-144
-196

query I rowsort
SELECT ALL 99 + + col0 * - col2 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - 88 AS col0, + 36 FROM tab2 cor0
----
-88
36
-88
36
-88
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, + col2 col0 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT ALL + - ( + - col2 ) AS col1 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT ALL 58 AS col2, + ( 61 ) FROM tab2 AS cor0
----
58
61
58
61
58
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT + - COUNT( * ) + + 64 AS col0 FROM tab1 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-8123
SELECT + - COUNT ( * ) + + 64 AS col0 FROM tab1 AS cor0
----
61

query II rowsort
SELECT ALL + 71, - 22 + 66 AS col0 FROM tab1 AS cor0
----
71
44
71
44
71
44

query II rowsort
SELECT ALL + 20 AS col1, - col0 AS col2 FROM tab0 AS cor0
----
20
-15
20
-87
20
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8126
SELECT CAST( COUNT( ALL + col2 ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8126
SELECT CAST ( COUNT ( ALL + col2 ) AS INTEGER ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT - COUNT( + 82 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8127
SELECT - COUNT ( + 82 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8128
SELECT DISTINCT col0 + - + col0 + - CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8128
SELECT DISTINCT col0 + - + col0 + - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL

query II rowsort
SELECT - 92 * + col2 * + + 90 - + + 70, - col0 - col1 * + - 88 AS col2 FROM tab2
----
-190510
4442
-331270
6712
-480310
5821

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT DISTINCT + COUNT( * ) - + + 22 AS col1 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-8130
SELECT DISTINCT + COUNT ( * ) - + + 22 AS col1 FROM tab1
----
-19

query I rowsort
SELECT ALL - ( 6 ) * - col1 FROM tab2 AS cor0
----
306
402
462

query I rowsort
SELECT DISTINCT + col2 * col2 * - col0 + col2 FROM tab0 AS cor0
----
-33088
-8690
-950598

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * col1 col0, - 23 FROM tab0 AS cor0
----
210
-23
3807
-23
99
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT DISTINCT MAX( ALL 28 ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-8134
SELECT DISTINCT MAX ( ALL 28 ) FROM tab0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8135
SELECT * FROM tab0 WHERE NOT + + col2 < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8135
SELECT * FROM tab0 WHERE NOT + + col2 < CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 89 NOT BETWEEN NULL AND + 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT + + SUM( DISTINCT - col2 ) - - 22 FROM tab1 cor0 WHERE NOT NULL > - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8137
SELECT + + SUM ( DISTINCT - col2 ) - - 22 FROM tab1 cor0 WHERE NOT NULL > - col0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 + - - col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 95 <= + - 66
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 * + 69 AS col0 FROM tab0 AS cor0
----
3243
6831
690

query I rowsort
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8142
SELECT AVG ( + - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8142
SELECT AVG ( + - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 10 * - 91 AS col1 FROM tab2 AS cor0
----
-910

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND + - 99
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, + col0 * - 12 col1 FROM tab1
----
51
-612
85
-1020
91
-1092

query I rowsort
SELECT - 18 * col2 AS col0 FROM tab0
----
-1782
-180
-846

query I rowsort
SELECT + ( + + 99 ) FROM tab1
----
99
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8148
SELECT DISTINCT + col2, CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-8148
SELECT DISTINCT + col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT DISTINCT ( - + 38 ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-38

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN - - col1 AND 29
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 39 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8152
SELECT * FROM tab0 WHERE NOT + - 68 = - + CAST( NULL AS SIGNED ) - - col1 + ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-8152
SELECT * FROM tab0 WHERE NOT + - 68 = - + CAST ( NULL AS INTEGER ) - - col1 + ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8153
SELECT ALL - - ( + - col1 ) DIV + 51 AS col0 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8153
SELECT ALL - - ( + - col1 ) / + 51 AS col0 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8154
SELECT + col1 + CAST( - + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
28
37
9

skipif mysql # not compatible
query I rowsort label-8154
SELECT + col1 + CAST ( - + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT DISTINCT 79 + col1 AS col0 FROM tab1 AS cor0
----
126
84
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT ALL - + 12 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL - + 12 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-9

query II rowsort
SELECT DISTINCT col1 + col2 AS col2, - col1 * + + col2 FROM tab2 AS cor0
----
117
-3080
125
-3886
74
-1173

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8158
SELECT DISTINCT CAST( - 21 AS SIGNED ), CAST( col1 AS SIGNED ) + + ( - 4 ) AS col0 FROM tab0
----
-21
-3
-21
17
-21
77

skipif mysql # not compatible
query II rowsort label-8158
SELECT DISTINCT CAST ( - 21 AS INTEGER ), CAST ( col1 AS INTEGER ) + + ( - 4 ) AS col0 FROM tab0
----
-21
-3
-21
17
-21
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 col0 FROM tab2 AS cor0 WHERE NOT NULL > col2 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8160
SELECT DISTINCT - - 58 + 10 + + ( - CAST( 65 AS SIGNED ) ), col2 FROM tab2 cor0
----
3
23
3
40
3
58

skipif mysql # not compatible
query II rowsort label-8160
SELECT DISTINCT - - 58 + 10 + + ( - CAST ( 65 AS INTEGER ) ), col2 FROM tab2 cor0
----
3
23
3
40
3
58

query I rowsort
SELECT + - 75 - + 5 + + 15 * + col1 FROM tab2 AS cor0
----
1075
685
925

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT - - 36 - 9 * - COUNT( ALL + col1 ) FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-8162
SELECT - - 36 - 9 * - COUNT ( ALL + col1 ) FROM tab1 AS cor0
----
63

query I rowsort
SELECT 21 * - col0 - - col2 + + + col2 AS col1 FROM tab0 AS cor0
----
-1807
-1839
-221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8164
SELECT - ( + + CAST( COUNT( * ) AS SIGNED ) ) + - MIN( + - 49 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8164
SELECT - ( + + CAST ( COUNT ( * ) AS INTEGER ) ) + - MIN ( + - 49 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT + + ( col0 ) FROM tab2 AS cor0 WHERE ( NULL ) >= + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8166
SELECT DISTINCT col0 + + 20 - - col0 DIV col0 FROM tab2
----
67
85
96

skipif mysql # not compatible
query I rowsort label-8166
SELECT DISTINCT col0 + + 20 - - col0 / col0 FROM tab2
----
67
85
96

query I rowsort
SELECT ALL 62 * - + col0 - - col2 FROM tab2
----
-2829
-3928
-4592

query II rowsort
SELECT ALL col0 AS col2, 41 FROM tab2
----
46
41
64
41
75
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT ALL - SUM( + + 37 ) FROM tab2 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-8169
SELECT ALL - SUM ( + + 37 ) FROM tab2 AS cor0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT ALL + SUM( ( + col1 ) ) * - - 33 AS col2 FROM tab0 AS cor0
----
3399

skipif mysql # not compatible
query I rowsort label-8170
SELECT ALL + SUM ( ( + col1 ) ) * - - 33 AS col2 FROM tab0 AS cor0
----
3399

query I rowsort
SELECT - + col1 + 25 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-26
-42
-52

query I rowsort
SELECT DISTINCT + + ( - - col0 ) FROM tab2 AS cor0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query II rowsort
SELECT ALL + 21 * + col2, col0 AS col0 FROM tab2 AS cor0
----
1218
75
483
46
840
64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 57 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8177
SELECT - CAST( NULL AS SIGNED ) * + 52 - - + col0 + + 62 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8177
SELECT - CAST ( NULL AS INTEGER ) * + 52 - - + col0 + + 62 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT DISTINCT + - MAX( 29 ) AS col2 FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-8178
SELECT DISTINCT + - MAX ( 29 ) AS col2 FROM tab1 AS cor0
----
-29

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE ( col1 ) = - col1
----
0

skipif mysql # not compatible
query I rowsort label-8180
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE ( col1 ) = - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8181
SELECT + col1 * + CAST( + + col1 AS SIGNED ) + - col1 AS col0 FROM tab0
----
0
420
6480

skipif mysql # not compatible
query I rowsort label-8181
SELECT + col1 * + CAST ( + + col1 AS INTEGER ) + - col1 AS col0 FROM tab0
----
0
420
6480

query I rowsort
SELECT col1 + + - col1 + col0 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL - + 28 AS col2 FROM tab0 WHERE NOT + col1 + + col0 + + - col0 * - col1 = - 20
----
-28
-28
-28

query I rowsort
SELECT DISTINCT col0 + - - col1 * - 98 * ( + 96 ) AS col1 FROM tab1
----
-131661
-442085
-46955

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT DISTINCT - SUM( col0 ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-8185
SELECT DISTINCT - SUM ( col0 ) AS col1 FROM tab2
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 * - col1 col1 FROM tab1
----
154
517
55

query I rowsort
SELECT DISTINCT col2 * col0 + 28 AS col0 FROM tab2 AS cor0
----
1086
2588
4378

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> col1 AND NOT + 40 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8189
SELECT - col1 DIV + 23 + - col0 AS col1 FROM tab2
----
-48
-67
-77

skipif mysql # not compatible
query I rowsort label-8189
SELECT - col1 / + 23 + - col0 AS col1 FROM tab2
----
-48
-67
-77

query I rowsort
SELECT - col2 + col0 - + ( ( + 97 ) ) - - ( - 8 ) * + 73 AS col2 FROM tab2
----
-657
-658
-664

query III rowsort
SELECT * FROM tab2 WHERE + 4 + + col2 - + 34 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8192
SELECT ALL 80 AS col0, SUM( DISTINCT + - col2 ) FROM tab1
----
80
-223

skipif mysql # not compatible
query II rowsort label-8192
SELECT ALL 80 AS col0, SUM ( DISTINCT + - col2 ) FROM tab1
----
80
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8193
SELECT + - CAST( - col2 AS SIGNED ) + ( + + col0 ) col2 FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8193
SELECT + - CAST ( - col2 AS INTEGER ) + ( + + col0 ) col2 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8194
SELECT * FROM tab0 AS cor0 WHERE ( NOT - ( + - 79 ) / - CAST( NULL AS SIGNED ) - - 76 + - col0 + - + col0 * - col2 * - col2 >= NULL )
----

skipif mysql # not compatible
query III rowsort label-8194
SELECT * FROM tab0 AS cor0 WHERE ( NOT - ( + - 79 ) / - CAST ( NULL AS INTEGER ) - - 76 + - col0 + - + col0 * - col2 * - col2 >= NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8195
SELECT DISTINCT - SUM( + - 63 ), + ( + - 93 ) AS col1 FROM tab0 cor0
----
189
-93

skipif mysql # not compatible
query II rowsort label-8195
SELECT DISTINCT - SUM ( + - 63 ), + ( + - 93 ) AS col1 FROM tab0 cor0
----
189
-93

query I rowsort
SELECT DISTINCT - 69 + ( - 1 ) * + 53 FROM tab2 AS cor0
----
-122

query I rowsort
SELECT - 20 / 27 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8198
SELECT DISTINCT + CAST( - col1 AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8198
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
0

query II rowsort
SELECT ( + 0 ) AS col1, - 82 FROM tab0
----
0
-82
0
-82
0
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8200
SELECT + col1 * CAST( 19 AS SIGNED ), - 8 AS col2 FROM tab0
----
1539
-8
19
-8
399
-8

skipif mysql # not compatible
query II rowsort label-8200
SELECT + col1 * CAST ( 19 AS INTEGER ), - 8 AS col2 FROM tab0
----
1539
-8
19
-8
399
-8

query I rowsort
SELECT + col0 + col0 * - 84 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3818
-5312
-6225

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT - - MIN( ALL - 92 ) AS col1 FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-8202
SELECT - - MIN ( ALL - 92 ) AS col1 FROM tab0 AS cor0
----
-92

query II rowsort
SELECT ALL + col0, + 14 * + col1 FROM tab2 AS cor0
----
46
714
64
1078
75
938

query I rowsort
SELECT DISTINCT + 55 + - - col0 AS col1 FROM tab1 AS cor0
----
106
140
146

onlyif mysql # aggregate syntax: 
query II rowsort label-8205
SELECT - + 28, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-28
3

skipif mysql # not compatible
query II rowsort label-8205
SELECT - + 28, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-28
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8206
SELECT DISTINCT - - CAST( - col0 AS SIGNED ) + - + col0 FROM tab1 AS cor0
----
-102
-170
-182

skipif mysql # not compatible
query I rowsort label-8206
SELECT DISTINCT - - CAST ( - col0 AS INTEGER ) + - + col0 FROM tab1 AS cor0
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT ( - COUNT( * ) ) * COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-8207
SELECT ( - COUNT ( * ) ) * COUNT ( * ) FROM tab2
----
-9

query I rowsort
SELECT DISTINCT 9 + + - 11 FROM tab2
----
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8209
SELECT ALL 52 DIV ( - - col0 ) + + + 57 + - col1 * + + CAST( - col1 AS SIGNED ) FROM tab1
----
2266
254
82

skipif mysql # not compatible
query I rowsort label-8209
SELECT ALL 52 / ( - - col0 ) + + + 57 + - col1 * + + CAST ( - col1 AS INTEGER ) FROM tab1
----
2266
254
82

query I rowsort
SELECT DISTINCT + col1 * - + col2 AS col1 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT DISTINCT 96 * COUNT( * ) * 42 col0 FROM tab0
----
12096

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8211
SELECT DISTINCT 96 * COUNT ( * ) * 42 col0 FROM tab0
----
12096

onlyif mysql # DIV for integer division: 
query I rowsort label-8212
SELECT ALL + - 5 DIV - + col2 + - ( + col2 ) + + 4 FROM tab0 AS cor0
----
-43
-6
-95

skipif mysql # not compatible
query I rowsort label-8212
SELECT ALL + - 5 / - + col2 + - ( + col2 ) + + 4 FROM tab0 AS cor0
----
-43
-6
-95

query I rowsort
SELECT - ( + + col1 ) + + - 94 FROM tab0 AS cor0
----
-115
-175
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8214
SELECT COUNT( * ) DIV + COUNT( * ) + 42 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-8214
SELECT COUNT ( * ) / + COUNT ( * ) + 42 FROM tab0 AS cor0
----
43

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8215
SELECT * FROM tab0 cor0 WHERE CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8215
SELECT * FROM tab0 cor0 WHERE CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col2 + + col0 + + + 28 FROM tab1 AS cor0
----
-17
51
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 27 * ( col2 ) col0 FROM tab1 cor0 WHERE ( col0 ) > ( NULL )
----

query I rowsort
SELECT ALL 33 + + + 87 FROM tab1 AS cor0
----
120
120
120

query I rowsort
SELECT ALL - 86 - + - 62 AS col0 FROM tab2
----
-24
-24
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - ( + - col2 ) col0 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT 2 - + col1 AS col2 FROM tab2 AS cor0
----
-49
-65
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT MAX( ( - col2 ) ) - - - 16 AS col1 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-8222
SELECT MAX ( ( - col2 ) ) - - - 16 AS col1 FROM tab0 AS cor0
----
-26

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT - 15 * - 26 IS NULL AND NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8224
SELECT ALL - + CAST( col2 AS SIGNED ) col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8224
SELECT ALL - + CAST ( col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT col0 + - col2 + + - col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8226
SELECT DISTINCT col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8226
SELECT DISTINCT col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 82 - - + col2 AS col0 FROM tab1 AS cor0
----
141
150
178

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8228
SELECT * FROM tab0 WHERE NOT ( ( NOT - CAST( - col0 AS SIGNED ) * - - CAST( 43 AS SIGNED ) IN ( + col2, + CAST( - ( + col0 ) AS SIGNED ) ) ) )
----

skipif mysql # not compatible
query III rowsort label-8228
SELECT * FROM tab0 WHERE NOT ( ( NOT - CAST ( - col0 AS INTEGER ) * - - CAST ( 43 AS INTEGER ) IN ( + col2, + CAST ( - ( + col0 ) AS INTEGER ) ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8229
SELECT DISTINCT col2 DIV + - 9 AS col0 FROM tab0
----
-1
-11
-5

skipif mysql # not compatible
query I rowsort label-8229
SELECT DISTINCT col2 / + - 9 AS col0 FROM tab0
----
-1
-11
-5

query I rowsort
SELECT - - 69 FROM tab2 WHERE NOT NULL IS NOT NULL
----
69
69
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8231
SELECT COUNT( * ), + COUNT( * ) / - CAST( NULL AS SIGNED ) col0 FROM tab0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8231
SELECT COUNT ( * ), + COUNT ( * ) / - CAST ( NULL AS INTEGER ) col0 FROM tab0
----
3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 8 col2 FROM tab2
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-8233
SELECT - COUNT( - + col0 ) AS col1, + 86 AS col2 FROM tab2
----
-3
86

skipif mysql # not compatible
query II rowsort label-8233
SELECT - COUNT ( - + col0 ) AS col1, + 86 AS col2 FROM tab2
----
-3
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8234
SELECT DISTINCT + CAST( + 56 AS SIGNED ) col0 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8234
SELECT DISTINCT + CAST ( + 56 AS INTEGER ) col0 FROM tab1 AS cor0
----
56

query II rowsort
SELECT DISTINCT - col1 AS col1, + col1 * + 42 AS col1 FROM tab0 AS cor0
----
-1
42
-21
882
-81
3402

onlyif mysql # aggregate syntax: 
query II rowsort label-8236
SELECT + SUM( ALL - + col0 ), + 80 AS col0 FROM tab1 AS cor0
----
-227
80

skipif mysql # not compatible
query II rowsort label-8236
SELECT + SUM ( ALL - + col0 ), + 80 AS col0 FROM tab1 AS cor0
----
-227
80

onlyif mysql # DIV for integer division: 
query I rowsort label-8237
SELECT col2 DIV 97 DIV + + 27 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8237
SELECT col2 / 97 / + + 27 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT 9 * + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 81 * + col1 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - ( + col0 ) + - col0 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8241
SELECT CAST( NULL AS SIGNED ) / + + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8241
SELECT CAST ( NULL AS INTEGER ) / + + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8242
SELECT ALL col2 * - - ( + - col0 ) - - - CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE - col0 BETWEEN - + col2 AND + - 17
----
-4910

skipif mysql # not compatible
query I rowsort label-8242
SELECT ALL col2 * - - ( + - col0 ) - - - CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE - col0 BETWEEN - + col2 AND + - 17
----
-4910

query I rowsort
SELECT ALL + + ( - col0 ) FROM tab0 cor0
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 * + col1 * - col0 + - 12 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8245
SELECT + + col0 DIV col0 * - 97 + + 25 + + - col1 FROM tab1 AS cor0
----
-119
-77
-86

skipif mysql # not compatible
query I rowsort label-8245
SELECT + + col0 / col0 * - 97 + + 25 + + - col1 FROM tab1 AS cor0
----
-119
-77
-86

query I rowsort
SELECT ALL + - col0 + col0 * col0 AS col2 FROM tab2 cor0
----
2070
4032
5550

query I rowsort
SELECT DISTINCT - 64 + col0 AS col1 FROM tab1 AS cor0
----
-13
21
27

query II rowsort
SELECT 32, 93 * - col1 AS col0 FROM tab2
----
32
-4743
32
-6231
32
-7161

query I rowsort
SELECT ( + 76 ) FROM tab2
----
76
76
76

query I rowsort
SELECT ALL + 36 + - col1 FROM tab0
----
-45
15
35

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col0 ) BETWEEN NULL AND + 39 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8252
SELECT DISTINCT * FROM tab2 WHERE + 96 IN ( - 45, + col2 / - + CAST( + col1 AS SIGNED ) * + col1 )
----

skipif mysql # not compatible
query III rowsort label-8252
SELECT DISTINCT * FROM tab2 WHERE + 96 IN ( - 45, + col2 / - + CAST ( + col1 AS INTEGER ) * + col1 )
----

query II rowsort
SELECT ALL + col0, - ( col0 ) FROM tab1
----
51
-51
85
-85
91
-91

query I rowsort
SELECT 40 * - 7 FROM tab2
----
-280
-280
-280

query II rowsort
SELECT + col0 AS col2, col1 * - 32 AS col1 FROM tab2
----
46
-1632
64
-2464
75
-2144

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT DISTINCT - - MIN( - - col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8256
SELECT DISTINCT - - MIN ( - - col2 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT DISTINCT + 63 + - 68 AS col0 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT ALL - ( col0 ) + col0 * + 5 AS col2 FROM tab0 AS cor0
----
348
388
60

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8259
SELECT - 94 + CAST( NULL AS DECIMAL ), col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-8259
SELECT - 94 + CAST ( NULL AS REAL ), col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT - 33 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query III rowsort
SELECT * FROM tab1 WHERE col0 + - + 72 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8262
SELECT - col2 + CAST( + col1 AS SIGNED ) AS col1 FROM tab0
----
-98
11
34

skipif mysql # not compatible
query I rowsort label-8262
SELECT - col2 + CAST ( + col1 AS INTEGER ) AS col1 FROM tab0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT - - COUNT( - col1 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8263
SELECT - - COUNT ( - col1 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT ALL COUNT( * ) * - 20 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-8264
SELECT ALL COUNT ( * ) * - 20 FROM tab0 AS cor0
----
-60

query I rowsort
SELECT DISTINCT + 54 * 72 FROM tab2 AS cor0
----
3888

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 22 / col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * 76 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 + col0 AND NULL
----

query I rowsort
SELECT ALL - 60 * + 45 FROM tab1 AS cor0
----
-2700
-2700
-2700

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8269
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) = col0
----

skipif mysql # not compatible
query III rowsort label-8269
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT DISTINCT + COUNT( * ) * - - 19 AS col0 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-8270
SELECT DISTINCT + COUNT ( * ) * - - 19 AS col0 FROM tab1 AS cor0
----
57

query I rowsort
SELECT ALL + 32 AS col2 FROM tab1 AS cor0 WHERE NOT col1 * + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * - + 37 FROM tab1 AS cor0
----
2183
2516
3552

query I rowsort
SELECT + ( + - col2 ) AS col0 FROM tab0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-8274
SELECT + ( + - col1 ) DIV + + 36 AS col0, + 2 - + col1 AS col2 FROM tab1
----
-1
-45
0
-12
0
-3

skipif mysql # not compatible
query II rowsort label-8274
SELECT + ( + - col1 ) / + + 36 AS col0, + 2 - + col1 AS col2 FROM tab1
----
-1
-45
0
-12
0
-3

query I rowsort
SELECT ALL col2 FROM tab1 WHERE - 70 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8276
SELECT ALL 6 DIV - 92 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8276
SELECT ALL 6 / - 92 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * + ( col2 ) + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 29 col2 FROM tab0 AS cor0
----
29
29
29

query I rowsort
SELECT + col1 * - + 95 + + col1 FROM tab1 AS cor0 WHERE NOT col0 * col2 - + 8 / - - col0 <= + col0
----
-1316
-4418
-470

query I rowsort
SELECT col1 + - - 80 - col2 * - + col1 AS col1 FROM tab1
----
1438
3323
380

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 92 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8282
SELECT 15 DIV - col2 * - + 65 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8282
SELECT 15 / - col2 * - + 65 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - - col1 * col2 * - col0 + + 49 AS col0 FROM tab2 AS cor0
----
-197071
-291401
-53909

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 14 - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 80 FROM tab1 AS cor0 WHERE + 34 > - 32 * col1
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT - MAX( ( col1 ) ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8286
SELECT - MAX ( ( col1 ) ) FROM tab1 cor0
----
-47

query I rowsort
SELECT ALL - 46 + 45 FROM tab0 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 + + + ( + 73 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col1, + col0 + - + col1 * - + col0 + + col2 FROM tab1 AS cor0
----
14
861
47
4436
5
569

query I rowsort
SELECT + col1 * + col0 + - + 39 + 35 + col0 * 44 FROM tab0
----
1871
4361
5651

query I rowsort
SELECT - ( + - 34 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT + 64 + - COUNT( * ) FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-8292
SELECT + 64 + - COUNT ( * ) FROM tab0
----
61

query I rowsort
SELECT col0 * + - col0 FROM tab0 WHERE + col0 * - col2 IS NOT NULL
----
-225
-7569
-9409

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 * + + col2 * + - 18 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8295
SELECT ALL CAST( NULL AS SIGNED ) - + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL CAST ( NULL AS INTEGER ) - + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8296
SELECT ( + 35 ) DIV - col0 + - - col1 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8296
SELECT ( + 35 ) / - col0 + - - col1 FROM tab1 cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 96 - 65 * col1 col2 FROM tab1 cor0
----
-1006
-3151
-421

query I rowsort
SELECT ALL ( col1 ) * + - col1 + + col0 FROM tab0 AS cor0
----
-354
-6546
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT DISTINCT COUNT( DISTINCT - 92 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8299
SELECT DISTINCT COUNT ( DISTINCT - 92 ) AS col2 FROM tab2
----
1

query I rowsort
SELECT DISTINCT 81 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-8301
SELECT - MAX( - 33 ) - MIN( ALL - col0 ), - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + 87 > + 91 + + col0
----
124
-3

skipif mysql # not compatible
query II rowsort label-8301
SELECT - MAX ( - 33 ) - MIN ( ALL - col0 ), - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + 87 > + 91 + + col0
----
124
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8302
SELECT DISTINCT MAX( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8302
SELECT DISTINCT MAX ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT MIN( - 91 ) FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8303
SELECT MIN ( - 91 ) FROM tab0 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT ALL + 13 * SUM( - col1 ) AS col2 FROM tab0 AS cor0
----
-1339

skipif mysql # not compatible
query I rowsort label-8304
SELECT ALL + 13 * SUM ( - col1 ) AS col2 FROM tab0 AS cor0
----
-1339

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT DISTINCT + - COUNT( * ) * - 4 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8305
SELECT DISTINCT + - COUNT ( * ) * - 4 FROM tab2 AS cor0
----
12

query I rowsort
SELECT ( + + 30 ) FROM tab0
----
30
30
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8307
SELECT - - col1 FROM tab2 WHERE NOT col1 IN ( + ( CAST( NULL AS SIGNED ) ), col2, col2 + + - 24, - - col1 )
----

skipif mysql # not compatible
query I rowsort label-8307
SELECT - - col1 FROM tab2 WHERE NOT col1 IN ( + ( CAST ( NULL AS INTEGER ) ), col2, col2 + + - 24, - - col1 )
----

query I rowsort
SELECT 72 * - + col0 FROM tab1
----
-3672
-6120
-6552

query I rowsort
SELECT ALL + 85 * - - col1 FROM tab0
----
1785
6885
85

query I rowsort
SELECT + ( 81 ) * - - col2 FROM tab0
----
3807
8019
810

query I rowsort
SELECT DISTINCT col0 + + col1 * - + col2 FROM tab2 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT DISTINCT + ( COUNT( * ) ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8312
SELECT DISTINCT + ( COUNT ( * ) ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT + 42 + + col0 * col2 FROM tab1
----
4938
5057
6230

query I rowsort
SELECT col1 + 63 AS col0 FROM tab2
----
114
130
140

query I rowsort
SELECT DISTINCT + ( 87 ) FROM tab1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT - 16 + + + COUNT( * ) FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-8316
SELECT - 16 + + + COUNT ( * ) FROM tab1 AS cor0
----
-13

query I rowsort
SELECT DISTINCT col2 * - 62 AS col2 FROM tab1 AS cor0
----
-3658
-4216
-5952

query I rowsort
SELECT - - 4 + - - col0 FROM tab2 AS cor0
----
50
68
79

query I rowsort
SELECT ALL 79 + + 91 AS col0 FROM tab0
----
170
170
170

query II rowsort
SELECT ALL + col2 + + col0 AS col0, col0 FROM tab2
----
104
64
133
75
69
46

query II rowsort
SELECT - col0 AS col2, col2 * 68 + + col0 FROM tab1
----
-51
6579
-85
4097
-91
4715

query I rowsort
SELECT DISTINCT + ( - col2 ) - + 54 AS col2 FROM tab1
----
-113
-122
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT 78 - MIN( - ( + 93 ) ) * + + 41 * - COUNT( * ) * + 11 AS col2 FROM tab1
----
-125751

skipif mysql # not compatible
query I rowsort label-8323
SELECT 78 - MIN ( - ( + 93 ) ) * + + 41 * - COUNT ( * ) * + 11 AS col2 FROM tab1
----
-125751

query I rowsort
SELECT ALL - col1 - + + col1 FROM tab0
----
-162
-2
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 61 col2 FROM tab0 AS cor0 WHERE NOT ( NULL IN ( - col1 + col1 / + - 22 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT MIN( - - ( - col0 ) ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8326
SELECT MIN ( - - ( - col0 ) ) AS col1 FROM tab1
----
-91

query I rowsort
SELECT - 55 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT DISTINCT - col1 FROM tab0 cor0 WHERE 9 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT ALL + ( - 13 ) AS col0 FROM tab0 AS cor0
----
-13
-13
-13

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + ( ( col2 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT - - MIN( - col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8331
SELECT - - MIN ( - col2 ) AS col2 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) * - 66 AS col2 FROM tab1 AS cor0
----
-594

skipif mysql # not compatible
query I rowsort label-8332
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) * - 66 AS col2 FROM tab1 AS cor0
----
-594

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, + col0 col1 FROM tab2
----
-23
46
-40
64
-58
75

query I rowsort
SELECT 62 * 74 AS col2 FROM tab2
----
4588
4588
4588

query I rowsort
SELECT 52 * - - col1 FROM tab0
----
1092
4212
52

query I rowsort
SELECT 93 * - - 76 FROM tab2
----
7068
7068
7068

onlyif mysql # DIV for integer division: 
query II rowsort label-8337
SELECT + col1 + + 84 DIV + 93 AS col1, col2 DIV col0 AS col2 FROM tab0 AS cor0
----
1
1
21
0
81
3

skipif mysql # not compatible
query II rowsort label-8337
SELECT + col1 + + 84 / + 93 AS col1, col2 / col0 AS col2 FROM tab0 AS cor0
----
1
1
21
0
81
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> + 97
----

query I rowsort
SELECT col1 + 46 AS col2 FROM tab1 AS cor0
----
51
60
93

query I rowsort
SELECT ALL - 52 + col2 AS col2 FROM tab1 AS cor0
----
16
44
7

query I rowsort
SELECT ALL + col0 * ( + col1 ) AS col1 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT - col0 - - 65 FROM tab2 WHERE ( - col1 ) BETWEEN - col0 * + col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) IN ( col2 * + col1 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT + COUNT( * ) - + 20 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-8344
SELECT + COUNT ( * ) - + 20 FROM tab2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT DISTINCT 47 * + MAX( ALL - 67 * col2 ) AS col2 FROM tab2
----
-72427

skipif mysql # not compatible
query I rowsort label-8345
SELECT DISTINCT 47 * + MAX ( ALL - 67 * col2 ) AS col2 FROM tab2
----
-72427

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT ALL - ( COUNT( * ) ) * MAX( col2 ) + - COUNT( * ) AS col1 FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-8346
SELECT ALL - ( COUNT ( * ) ) * MAX ( col2 ) + - COUNT ( * ) AS col1 FROM tab1
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT 74 + - COUNT( * ) FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-8347
SELECT 74 + - COUNT ( * ) FROM tab0
----
71

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 NOT IN ( - 45 * col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE 23 + 36 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8350
SELECT - col1 DIV col2 FROM tab2 WHERE NULL IS NULL
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8350
SELECT - col1 / col2 FROM tab2 WHERE NULL IS NULL
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT - MAX( - col0 ) * - MAX( 86 ) col0 FROM tab1 WHERE + 64 * + col1 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8351
SELECT - MAX ( - col0 ) * - MAX ( 86 ) col0 FROM tab1 WHERE + 64 * + col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT + 47 * 68 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8352
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT + 47 * 68 IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - col2 AND 1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 40 BETWEEN ( NULL ) AND + 40 * col1 + + col2
----

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NULL > col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8356
SELECT DISTINCT col1 + + 95 DIV + col2 AS col1 FROM tab1
----
14
48
6

skipif mysql # not compatible
query I rowsort label-8356
SELECT DISTINCT col1 + + 95 / + col2 AS col1 FROM tab1
----
14
48
6

query I rowsort
SELECT DISTINCT - 45 + 79 AS col0 FROM tab2
----
34

query I rowsort
SELECT col0 - 0 FROM tab0
----
15
87
97

query III rowsort
SELECT * FROM tab2 WHERE NULL > - 87 + + 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT COUNT( DISTINCT - col2 ) FROM tab0 WHERE NOT - col2 <= + ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8360
SELECT COUNT ( DISTINCT - col2 ) FROM tab0 WHERE NOT - col2 <= + ( col2 )
----
0

query I rowsort
SELECT col0 * 89 FROM tab1
----
4539
7565
8099

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT COUNT( col2 ) + COUNT( DISTINCT - col2 ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8362
SELECT COUNT ( col2 ) + COUNT ( DISTINCT - col2 ) AS col0 FROM tab2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8363
SELECT DISTINCT 37 DIV - 41 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8363
SELECT DISTINCT 37 / - 41 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8364
SELECT ALL + 66 DIV 6 AS col0 FROM tab1
----
11
11
11

skipif mysql # not compatible
query I rowsort label-8364
SELECT ALL + 66 / 6 AS col0 FROM tab1
----
11
11
11

query I rowsort
SELECT ALL - 98 - + col0 * - col0 FROM tab1 AS cor0
----
2503
7127
8183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 col1 FROM tab2 cor0 WHERE + col2 > 98 * 27
----

query I rowsort
SELECT + 83 AS col2 FROM tab0 WHERE NOT ( NULL ) BETWEEN ( 20 ) AND col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 14 * + col1 ) NOT BETWEEN 45 AND ( 70 )
----
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT MAX( ALL 16 ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-8369
SELECT MAX ( ALL 16 ) FROM tab2
----
16

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + col1 * - col1 + - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT - SUM( + col2 ) * + 89 AS col1 FROM tab2 AS cor0
----
-10769

skipif mysql # not compatible
query I rowsort label-8371
SELECT - SUM ( + col2 ) * + 89 AS col1 FROM tab2 AS cor0
----
-10769

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT DISTINCT - - MIN( ALL + ( col1 ) ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8372
SELECT DISTINCT - - MIN ( ALL + ( col1 ) ) FROM tab1 AS cor0
----
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * 14 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 86 col1 FROM tab1 AS cor0 WHERE NOT ( ( + 37 ) * + 15 ) NOT BETWEEN col1 AND ( - col2 * + col2 )
----

query I rowsort
SELECT DISTINCT 12 + 26 AS col2 FROM tab2 cor0 WHERE + 1 IS NOT NULL
----
38

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 = col2 / + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + + col1 ) col1 FROM tab2
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8378
SELECT col0 DIV - ( + col1 ) FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8378
SELECT col0 / - ( + col1 ) FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT 31 * - + COUNT( 88 ) AS col2 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-8379
SELECT 31 * - + COUNT ( 88 ) AS col2 FROM tab0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8380
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 * CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8380
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 * CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8381
SELECT * FROM tab2 WHERE NOT ( CAST( + col1 AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8381
SELECT * FROM tab2 WHERE NOT ( CAST ( + col1 AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8382
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT ( col2 ) NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-8382
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT ( col2 ) NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 22 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8384
SELECT CAST( + 47 AS SIGNED ) FROM tab0
----
47
47
47

skipif mysql # not compatible
query I rowsort label-8384
SELECT CAST ( + 47 AS INTEGER ) FROM tab0
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8385
SELECT col1 * - CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-8385
SELECT col1 * - CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT DISTINCT SUM( DISTINCT col1 ) col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8386
SELECT DISTINCT SUM ( DISTINCT col1 ) col0 FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT + 55 + + col1 FROM tab2 AS cor0
----
106
122
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8388
SELECT ALL + MIN( + - 51 ) + 48 + - CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL + MIN ( + - 51 ) + 48 + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT ALL + 43 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8390
SELECT - CAST( NULL AS SIGNED ) - - MAX( ALL CAST( 85 AS SIGNED ) ) * - 17 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8390
SELECT - CAST ( NULL AS INTEGER ) - - MAX ( ALL CAST ( 85 AS INTEGER ) ) * - 17 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

query I rowsort
SELECT - - col2 * - - 31 + + 48 FROM tab0 AS cor0
----
1505
3117
358

query I rowsort
SELECT ALL ( + + 71 ) AS col0 FROM tab2 AS cor0
----
71
71
71

query I rowsort
SELECT DISTINCT + 45 + col1 AS col2 FROM tab1 AS cor0
----
50
59
92

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT DISTINCT 72 + - + MIN( - 26 ) FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-8395
SELECT DISTINCT 72 + - + MIN ( - 26 ) FROM tab2
----
98

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 * - 13 * + col0 IS NULL
----

query I rowsort
SELECT ALL + col2 * - col2 - col0 FROM tab1
----
-3566
-4715
-9267

query I rowsort
SELECT + col2 - - 16 FROM tab1
----
112
75
84

query I rowsort
SELECT col2 - + - 87 + - col1 AS col2 FROM tab0
----
185
53
76

onlyif mysql # DIV for integer division: 
query I rowsort label-8400
SELECT DISTINCT - 81 DIV - - col2 AS col1 FROM tab0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-8400
SELECT DISTINCT - 81 / - - col2 AS col1 FROM tab0
----
-1
-8
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 36 > - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8402
SELECT DISTINCT - MAX( DISTINCT + + col1 ) AS col0, + MAX( ALL + 22 ) AS col0 FROM tab1 AS cor0
----
-47
22

skipif mysql # not compatible
query II rowsort label-8402
SELECT DISTINCT - MAX ( DISTINCT + + col1 ) AS col0, + MAX ( ALL + 22 ) AS col0 FROM tab1 AS cor0
----
-47
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 98 col1 FROM tab2
----
2254
3920
5684

onlyif mysql # DIV for integer division: 
query I rowsort label-8404
SELECT ALL - 85 DIV - 29 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-8404
SELECT ALL - 85 / - 29 FROM tab2
----
2
2
2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 < - - col1
----
46
51
23
64
77
40

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < + col0
----

query I rowsort
SELECT ALL - 47 * + col2 * - 47 + - col0 AS col1 FROM tab0 AS cor0
----
103808
218594
22003

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8408
SELECT ALL COUNT( * ) DIV - SUM( DISTINCT + col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8408
SELECT ALL COUNT ( * ) / - SUM ( DISTINCT + col1 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT ALL MAX( DISTINCT - - col1 ) col0 FROM tab1
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8409
SELECT ALL MAX ( DISTINCT - - col1 ) col0 FROM tab1
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col2, + col0 + + col0 * - ( + col1 ) col2 FROM tab0
----
15
-1200
87
-1740
97
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8411
SELECT + CAST( - CAST( NULL AS DECIMAL ) AS DECIMAL ) * - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8411
SELECT + CAST ( - CAST ( NULL AS REAL ) AS REAL ) * - col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 NOT IN ( 46 / - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 11 = - 49
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT NULL NOT IN ( 27 * - - ( col1 ) )
----

query I rowsort
SELECT + + col0 + - col0 + + + 57 AS col0 FROM tab2 AS cor0
----
57
57
57

query I rowsort
SELECT ALL 90 + + 59 FROM tab0 AS cor0
----
149
149
149

query I rowsort
SELECT ALL + 65 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT ALL + 47 * + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
2397
3995
4277

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( NOT + col1 * - + col2 IS NOT NULL ) )
----

query I rowsort
SELECT - + col0 - - 66 * col1 FROM tab1 AS cor0
----
245
3011
873

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - - 63 col2 FROM tab1 AS cor0
----
122
131
159

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT - + MIN( 22 ) + COUNT( * ) FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-8422
SELECT - + MIN ( 22 ) + COUNT ( * ) FROM tab2 AS cor0
----
-19

query I rowsort
SELECT DISTINCT - col0 * + ( col0 ) + - 40 * col0 FROM tab0 WHERE + col1 IS NOT NULL
----
-11049
-13289
-825

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 ) BETWEEN NULL AND ( col0 + + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT ALL MIN( DISTINCT ( - ( col1 ) ) ) col1 FROM tab0 WHERE NOT ( + - col0 ) * - col0 IS NULL
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8425
SELECT ALL MIN ( DISTINCT ( - ( col1 ) ) ) col1 FROM tab0 WHERE NOT ( + - col0 ) * - col0 IS NULL
----
-81

query I rowsort
SELECT ALL + - col1 FROM tab2 WHERE + + ( 49 ) IS NOT NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 * + 29 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8428
SELECT + 5 col2, col2 * + ( - col1 ) - + - CAST( - col1 AS SIGNED ) AS col2 FROM tab2
----
5
-1224
5
-3157
5
-3953

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8428
SELECT + 5 col2, col2 * + ( - col1 ) - + - CAST ( - col1 AS INTEGER ) AS col2 FROM tab2
----
5
-1224
5
-3157
5
-3953

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE - col0 + + + 37 <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col0 * - 9 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 * - 78 AS col2 FROM tab1 AS cor0
----
-1092
-3666
-390

onlyif mysql # DIV for integer division: 
query I rowsort label-8432
SELECT ALL + 74 DIV - col2 AS col2 FROM tab0 cor0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL + 74 / - col2 AS col2 FROM tab0 cor0
----
-1
-7
0

query I rowsort
SELECT col2 * + 45 AS col2 FROM tab0 cor0
----
2115
4455
450

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col2 * - col0 + - + col0 = 80 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 col2 FROM tab0 AS cor0
----
26
26
26

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + - col0 + + col2 - - ( - + 32 ) FROM tab2 cor0
----
-4
18
21

onlyif mysql # DIV for integer division: 
query III rowsort label-8438
SELECT DISTINCT - col2 DIV + 34, col2 * - col2 + + col1 AS col0, col2 FROM tab1 AS cor0
----
9 values hashing to 2d1a95930868e41b54db68ffc813c0a5

skipif mysql # not compatible
query III rowsort label-8438
SELECT DISTINCT - col2 / + 34, col2 * - col2 + + col1 AS col0, col2 FROM tab1 AS cor0
----
9 values hashing to 2d1a95930868e41b54db68ffc813c0a5

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT + MAX( + 3 ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8439
SELECT + MAX ( + 3 ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
3

query I rowsort
SELECT ALL ( + 91 ) FROM tab1
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT ALL COUNT( * ) + - 99 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL COUNT ( * ) + - 99 FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT + COUNT( * ) * - 36 AS col1 FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-8442
SELECT + COUNT ( * ) * - 36 AS col1 FROM tab2
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT - 88 * + COUNT( * ) FROM tab0
----
-264

skipif mysql # not compatible
query I rowsort label-8443
SELECT - 88 * + COUNT ( * ) FROM tab0
----
-264

onlyif mysql # DIV for integer division: 
query I rowsort label-8444
SELECT 21 DIV + - col1 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8444
SELECT 21 / + - col1 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE - - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8446
SELECT DISTINCT COUNT( * ) AS col0, + 49 AS col1 FROM tab2
----
3
49

skipif mysql # not compatible
query II rowsort label-8446
SELECT DISTINCT COUNT ( * ) AS col0, + 49 AS col1 FROM tab2
----
3
49

query III rowsort
SELECT * FROM tab1 WHERE 24 > + col1
----
51
14
96
85
5
59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 / - col0 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL 25 AS col1, col1 FROM tab0 cor0
----
25
1
25
21
25
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT DISTINCT COUNT( DISTINCT ( + ( col1 ) ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8450
SELECT DISTINCT COUNT ( DISTINCT ( + ( col1 ) ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8451
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT col0 + + - col1 * + ( - 11 ) + 8 AS col0 FROM tab0
----
116
326
914

query II rowsort
SELECT + - col0 AS col2, ( 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 27 col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8455
SELECT ALL - col2 * - CAST( NULL AS DECIMAL ) * + + col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL - col2 * - CAST ( NULL AS REAL ) * + + col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - 99 FROM tab1
----
-1386
-4653
-495

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 78 col1 FROM tab1
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT COUNT( * ) * - COUNT( - col1 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-8458
SELECT COUNT ( * ) * - COUNT ( - col1 ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT - MAX( DISTINCT + col2 ) col1 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8459
SELECT - MAX ( DISTINCT + col2 ) col1 FROM tab0
----
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= col2 * - 5 * + + 99 + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8461
SELECT + col2 DIV 34 col1 FROM tab1
----
1
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8461
SELECT + col2 / 34 col1 FROM tab1
----
1
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT DISTINCT + MIN( col1 ) col0 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8462
SELECT DISTINCT + MIN ( col1 ) col0 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 col1 FROM tab1
----
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 5 * - 14 * + col2 IS NULL
----

query I rowsort
SELECT DISTINCT 44 * - col2 FROM tab0 AS cor0
----
-2068
-4356
-440

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 69 - col1 >= + + 72
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 * + col2 + + col1 + + col2 - + col0 >= NULL
----

query I rowsort
SELECT ALL col2 * - 39 FROM tab1
----
-2301
-2652
-3744

query I rowsort
SELECT + col1 / + col2 FROM tab2 WHERE NOT NULL IS NULL AND NOT ( NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - 95 * col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-5605
-6460
-9120

query I rowsort
SELECT - col2 + + 58 AS col2 FROM tab1 cor0 WHERE NOT + col0 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8472
SELECT DISTINCT CAST( 77 AS SIGNED ) * + - 47 + - col1 FROM tab0 AS cor0
----
-3620
-3640
-3700

skipif mysql # not compatible
query I rowsort label-8472
SELECT DISTINCT CAST ( 77 AS INTEGER ) * + - 47 + - col1 FROM tab0 AS cor0
----
-3620
-3640
-3700

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 + - - 85 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + + + 55 AS col1 FROM tab0 cor0
----
136
56
76

query II rowsort
SELECT - 18 AS col2, col1 AS col0 FROM tab1 AS cor0
----
-18
14
-18
47
-18
5

query II rowsort
SELECT - col0 + + col2, + col2 AS col2 FROM tab2
----
-17
58
-23
23
-24
40

query I rowsort
SELECT ALL + col2 * - 68 FROM tab1
----
-4012
-4624
-6528

query III rowsort
SELECT * FROM tab0 WHERE - + 55 * + - col0 + col1 IN ( col2, - col2, 61 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT + COUNT( * ) + - - 91 col1 FROM tab1 AS cor0
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8479
SELECT + COUNT ( * ) + - - 91 col1 FROM tab1 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT - - COUNT( * ) + COUNT( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8480
SELECT - - COUNT ( * ) + COUNT ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
6

query I rowsort
SELECT ALL - - 41 * - ( + + col2 ) AS col2 FROM tab1 AS cor0
----
-2419
-2788
-3936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8482
SELECT 74 DIV + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-8482
SELECT 74 / + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-8483
SELECT - COUNT( - + 26 ) AS col1, - 10 AS col0 FROM tab2 AS cor0
----
-3
-10

skipif mysql # not compatible
query II rowsort label-8483
SELECT - COUNT ( - + 26 ) AS col1, - 10 AS col0 FROM tab2 AS cor0
----
-3
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8484
SELECT ALL COUNT( * ) + - - MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8484
SELECT ALL COUNT ( * ) + - - MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query II rowsort
SELECT - 96 * - col2 - - col0, - ( - ( + col1 ) ) * + - ( - col1 ) + col2 AS col2 FROM tab0
----
1047
451
4527
6608
9601
100

query I rowsort
SELECT DISTINCT + ( + 79 ) FROM tab2 AS cor0
----
79

query II rowsort
SELECT col1, 29 FROM tab1 cor0
----
14
29
47
29
5
29

query II rowsort
SELECT - - ( + 84 ) * + - 59 * + - col0 - - col2, col1 AS col1 FROM tab0 AS cor0
----
431182
21
480831
1
74387
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT DISTINCT + MAX( + + 65 ) FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-8489
SELECT DISTINCT + MAX ( + + 65 ) FROM tab2 AS cor0
----
65

query II rowsort
SELECT ALL + col0, col2 - + 61 FROM tab1 AS cor0
----
51
35
85
-2
91
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT + - COUNT( * ) * - + COUNT( * ) AS col2 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8491
SELECT + - COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab0 cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8492
SELECT ALL 30 AS col1, - COUNT( col1 ) FROM tab0 AS cor0
----
30
-3

skipif mysql # not compatible
query II rowsort label-8492
SELECT ALL 30 AS col1, - COUNT ( col1 ) FROM tab0 AS cor0
----
30
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8493
SELECT + col0 / CAST( + col2 AS SIGNED ) / - - col1 + + col0 FROM tab2 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-8493
SELECT + col0 / CAST ( + col2 AS INTEGER ) / - - col1 + + col0 FROM tab2 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT ALL - MIN( DISTINCT 26 ) FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL - MIN ( DISTINCT 26 ) FROM tab1
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-8495
SELECT ( + 10 ) DIV + 77 + - - col1 AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8495
SELECT ( + 10 ) / + 77 + - - col1 AS col2 FROM tab2
----
51
67
77

onlyif mysql # DIV for integer division: 
query II rowsort label-8496
SELECT 52, - col1 DIV 75 * + 11 AS col1 FROM tab0
----
52
-11
52
0
52
0

skipif mysql # not compatible
query II rowsort label-8496
SELECT 52, - col1 / 75 * + 11 AS col1 FROM tab0
----
52
-11
52
0
52
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT ALL - COUNT( * ) * + 57 FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL - COUNT ( * ) * + 57 FROM tab2
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT + SUM( - - 55 ) AS col2 FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-8498
SELECT + SUM ( - - 55 ) AS col2 FROM tab2 AS cor0
----
165

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + - col0 * + col0 BETWEEN - col0 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT + ( ( + COUNT( * ) ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8500
SELECT + ( ( + COUNT ( * ) ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8501
SELECT DISTINCT - col1 * + - CAST( - col1 AS SIGNED ) + + col2 * col1 AS col2 FROM tab2 AS cor0
----
-1428
-2849
-603

skipif mysql # not compatible
query I rowsort label-8501
SELECT DISTINCT - col1 * + - CAST ( - col1 AS INTEGER ) + + col2 * col1 AS col2 FROM tab2 AS cor0
----
-1428
-2849
-603

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT 39 + - SUM( DISTINCT ( - col0 ) ) + + COUNT( ALL + col0 ) FROM tab1 AS cor0
----
269

skipif mysql # not compatible
query I rowsort label-8502
SELECT 39 + - SUM ( DISTINCT ( - col0 ) ) + + COUNT ( ALL + col0 ) FROM tab1 AS cor0
----
269

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8503
SELECT ALL + ( + col2 ) / + CAST( NULL AS SIGNED ) * 85 + + 10 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8503
SELECT ALL + ( + col2 ) / + CAST ( NULL AS INTEGER ) * 85 + + 10 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 AS col0 FROM tab2 AS cor0 WHERE - col2 + - col1 + + 19 IS NOT NULL
----
51
67
77

query I rowsort
SELECT - - col1 + - - 26 AS col1 FROM tab0 AS cor0
----
107
27
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT MAX( + + col2 ) AS col1 FROM tab0 WHERE NULL BETWEEN - 11 * - col1 + 79 - - 4 * + 98 AND - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-8506
SELECT MAX ( + + col2 ) AS col1 FROM tab0 WHERE NULL BETWEEN - 11 * - col1 + 79 - - 4 * + 98 AND - 12
----
NULL

query I rowsort
SELECT 64 * - + 79 FROM tab0
----
-5056
-5056
-5056

onlyif mysql # DIV for integer division: 
query I rowsort label-8508
SELECT ALL + col2 DIV - - 63 * + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8508
SELECT ALL + col2 / - - 63 * + col2 FROM tab2
----
0
0
0

query I rowsort
SELECT 5 * + col1 AS col1 FROM tab0
----
105
405
5

onlyif mysql # DIV for integer division: 
query II rowsort label-8510
SELECT DISTINCT col1, + 3 DIV - 36 AS col2 FROM tab1
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-8510
SELECT DISTINCT col1, + 3 / - 36 AS col2 FROM tab1
----
14
0
47
0
5
0

query I rowsort
SELECT DISTINCT col0 + + col0 + 4 - + col1 FROM tab2
----
45
55
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT ALL - + SUM( ALL col2 ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL - + SUM ( ALL col2 ) AS col2 FROM tab2 AS cor0
----
-121

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 66 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col2 * - + ( col2 ) * - col2 AS col2, + 64 FROM tab0 AS cor0
----
-1000
64
-103823
64
-970299
64

query I rowsort
SELECT DISTINCT - 96 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 32 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8517
SELECT + + MAX( col2 ) AS col0 FROM tab0 cor0 WHERE NOT - 59 * 94 - + - CAST( - 38 AS SIGNED ) > - col2
----
99

skipif mysql # not compatible
query I rowsort label-8517
SELECT + + MAX ( col2 ) AS col0 FROM tab0 cor0 WHERE NOT - 59 * 94 - + - CAST ( - 38 AS INTEGER ) > - col2
----
99

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE - - 51 - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT + + 82 + 26 * + + COUNT( * ) col2 FROM tab1 AS cor0
----
160

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8519
SELECT + + 82 + 26 * + + COUNT ( * ) col2 FROM tab1 AS cor0
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT ( SUM( ALL + + 79 ) ) + + 48 FROM tab0 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-8520
SELECT ( SUM ( ALL + + 79 ) ) + + 48 FROM tab0 AS cor0
----
285

query I rowsort
SELECT ALL 54 FROM tab0 WHERE NOT ( NOT col2 * + - col0 <> NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 57 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8523
SELECT ALL + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT - 9 <= CAST( NULL AS SIGNED ) * col1 * + col0
----

skipif mysql # not compatible
query I rowsort label-8523
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT - 9 <= CAST ( NULL AS INTEGER ) * col1 * + col0
----

query I rowsort
SELECT + + col2 - + + col0 AS col0 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT ALL ( - - 33 ) + + + 57 + - + col0 AS col1 FROM tab0 AS cor0
----
-7
3
75

query II rowsort
SELECT DISTINCT - col0 + - 79 + - col1 + - col1 + + 62 AS col0, - col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8527
SELECT col2 + + - col1, CAST( NULL AS SIGNED ) col2 FROM tab0
----
-11
NULL
-34
NULL
98
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8527
SELECT col2 + + - col1, CAST ( NULL AS INTEGER ) col2 FROM tab0
----
-11
NULL
-34
NULL
98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT ALL - 16 + - 13 + - COUNT( * ) FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-8528
SELECT ALL - 16 + - 13 + - COUNT ( * ) FROM tab1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT - + COUNT( ALL - col2 ) col2 FROM tab2 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8529
SELECT - + COUNT ( ALL - col2 ) col2 FROM tab2 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT DISTINCT 99 * 46 - ( + col2 ) FROM tab2 AS cor0
----
4496
4514
4531

onlyif mysql # DIV for integer division: 
query I rowsort label-8531
SELECT DISTINCT 78 DIV col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8531
SELECT DISTINCT 78 / col1 FROM tab2
----
1

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE + 43 <= col0 + + col2 / - - 18
----
1
21

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN + col2 AND ( NULL )
----

query II rowsort
SELECT DISTINCT - 89, - 19 AS col0 FROM tab2 AS cor0
----
-89
-19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 10 <= NULL
----

query I rowsort
SELECT DISTINCT - - 46 * + col1 AS col2 FROM tab1 AS cor0
----
2162
230
644

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT + + COUNT( * ) * + 75 AS col2 FROM tab1 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-8537
SELECT + + COUNT ( * ) * + 75 AS col2 FROM tab1 AS cor0
----
225

query I rowsort
SELECT DISTINCT col2 * + - 50 AS col1 FROM tab1 AS cor0
----
-2950
-3400
-4800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8539
SELECT DISTINCT + COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8539
SELECT DISTINCT + COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL 55 * col2 AS col0 FROM tab2 cor0 WHERE NOT + col1 - - 68 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 39 FROM tab2 AS cor0 WHERE NOT ( + col0 ) NOT BETWEEN + 40 AND - + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8542
SELECT ALL - + MAX( ALL + col2 ) DIV + + 80 * 13 * + + 89 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL - + MAX ( ALL + col2 ) / + + 80 * 13 * + + 89 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - - col0 * - col1 AS col0 FROM tab2 WHERE NOT ( col1 IS NULL )
----
-2346
-4928
-5025

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 > col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8545
SELECT + COUNT( - col2 ) * - + COUNT( * ) DIV - MAX( - col0 ) col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8545
SELECT + COUNT ( - col2 ) * - + COUNT ( * ) / - MAX ( - col0 ) col0 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 < col2
----

query II rowsort
SELECT ( - - col1 ), col0 * - + 56 AS col2 FROM tab2 AS cor0
----
51
-2576
67
-4200
77
-3584

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-8548
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif mysql # not compatible
query IIIIII rowsort label-8548
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 43 * + col2 <= - 60
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 79 + - + col1 FROM tab2 AS cor0
----
12
2
28

query I rowsort
SELECT DISTINCT - - 12 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - + col1
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND col1
----

query I rowsort
SELECT + + col0 * - + 31 + col0 + - - 96 + - + col2 + - col0 * + + col0 * + - col0 AS col0 FROM tab2 cor0
----
260280
419663
96029

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 8 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, - col1 FROM tab2
----
-46
-51
-64
-77
-75
-67

query I rowsort
SELECT ALL + 72 * col2 + - 54 FROM tab1
----
4194
4842
6858

query I rowsort
SELECT 36 * + + col2 - + 72 + + col2 - + col1 AS col0 FROM tab0
----
1586
277
3590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8558
SELECT - CAST( - col1 AS SIGNED ) AS col0 FROM tab2 WHERE + 91 IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8558
SELECT - CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 WHERE + 91 IS NOT NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 80 - - col2 col2 FROM tab0 AS cor0
----
-33
-70
19

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8560
SELECT * FROM tab2 AS cor0 WHERE col1 - - + col1 * + CAST( - 9 AS DECIMAL ) + + ( + + ( - CAST( NULL AS SIGNED ) ) ) + - col1 * + col1 <= NULL
----

skipif mysql # not compatible
query III rowsort label-8560
SELECT * FROM tab2 AS cor0 WHERE col1 - - + col1 * + CAST ( - 9 AS REAL ) + + ( + + ( - CAST ( NULL AS INTEGER ) ) ) + - col1 * + col1 <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 = - + col2 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT - COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT + 79 NOT IN ( - col1 * + col1 + + + col1 + - + 5 )
----
0

skipif mysql # not compatible
query I rowsort label-8562
SELECT - COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT + 79 NOT IN ( - col1 * + col1 + + + col1 + - + 5 )
----
0

query II rowsort
SELECT + col2 AS col2, col2 - + - col2 FROM tab2 AS cor0
----
23
46
40
80
58
116

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8565
SELECT ALL col2 * + col2 DIV - col2 AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL col2 * + col2 / - col2 AS col2 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + col2 < + + col0 )
----
85
5
59
91
47
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL >= col2
----
0

skipif mysql # not compatible
query I rowsort label-8568
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL >= col2
----
0

query I rowsort
SELECT ALL - col0 * - - col1 + - col1 + - col0 + + + col2 FROM tab0 AS cor0
----
-1264
-1925
-96

query I rowsort
SELECT + col1 * + 12 AS col0 FROM tab0 AS cor0
----
12
252
972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8571
SELECT 77 * CAST( col1 AS SIGNED ) + - - col2 AS col0 FROM tab2 AS cor0
----
3950
5217
5969

skipif mysql # not compatible
query I rowsort label-8571
SELECT 77 * CAST ( col1 AS INTEGER ) + - - col2 AS col0 FROM tab2 AS cor0
----
3950
5217
5969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 + col1, col1 col1 FROM tab1 AS cor0
----
-37
14
-44
47
-80
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 * - - col0 col0 FROM tab2
----
1610
2240
2625

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT + COUNT( ALL + - col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8574
SELECT + COUNT ( ALL + - col2 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT + MAX( ALL 27 ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-8576
SELECT + MAX ( ALL 27 ) FROM tab0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT ALL + - COUNT( * ) - - COUNT( * ) * 53 AS col1 FROM tab0 WHERE NOT - 65 + - 71 NOT BETWEEN NULL AND + ( - 39 )
----
0

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL + - COUNT ( * ) - - COUNT ( * ) * 53 AS col1 FROM tab0 WHERE NOT - 65 + - 71 NOT BETWEEN NULL AND + ( - 39 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8578
SELECT + SUM( + CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NULL < - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8578
SELECT + SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NULL < - col1
----
NULL

query II rowsort
SELECT ALL + + col0 + + - 30 AS col1, - col2 AS col2 FROM tab2 cor0
----
16
-23
34
-40
45
-58

query I rowsort
SELECT + 91 - + 98 FROM tab0 AS cor0
----
-7
-7
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8581
SELECT 2 - + MAX( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0 WHERE - ( col1 ) * + 57 * + + 62 * - 64 + + col2 IN ( - col2, col0 * + + col2 / + col2 + + 32, + col0 * col0 * - CAST( NULL AS SIGNED ) * + col1, - ( - ( col0 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8581
SELECT 2 - + MAX ( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0 WHERE - ( col1 ) * + 57 * + + 62 * - 64 + + col2 IN ( - col2, col0 * + + col2 / + col2 + + 32, + col0 * col0 * - CAST ( NULL AS INTEGER ) * + col1, - ( - ( col0 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT ALL + - COUNT( col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL + - COUNT ( col0 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - col0 - + col1 + + 51 FROM tab1 AS cor0
----
-14
-39
-87

query I rowsort
SELECT - 96 - - + ( + + 10 ) AS col0 FROM tab2 AS cor0
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT ALL + SUM( ALL + 33 ) AS col2 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8585
SELECT ALL + SUM ( ALL + 33 ) AS col2 FROM tab1 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8586
SELECT - + 84 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8586
SELECT - + 84 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT 2 + COUNT( + 15 ) FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8587
SELECT 2 + COUNT ( + 15 ) FROM tab0 AS cor0
----
5

query I rowsort
SELECT DISTINCT + + 9 AS col2 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT ALL + COUNT( * ) + - 21 AS col1 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL + COUNT ( * ) + - 21 AS col1 FROM tab0 AS cor0
----
-18

query I rowsort
SELECT + + col0 * col2 + - ( - - 84 ) * + 18 + + col1 + + + col0 FROM tab2 AS cor0
----
-357
1189
2980

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 - - - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT ALL - SUM( ALL + 71 ) FROM tab2
----
-213

skipif mysql # not compatible
query I rowsort label-8592
SELECT ALL - SUM ( ALL + 71 ) FROM tab2
----
-213

query I rowsort
SELECT ALL - col2 * + col2 * - - 89 FROM tab1
----
-309809
-411536
-820224

query I rowsort
SELECT DISTINCT ( col2 ) AS col2 FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----

query II rowsort
SELECT col0 AS col2, - col1 AS col2 FROM tab0 cor0
----
15
-81
87
-21
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT DISTINCT - - COUNT( * ) * - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8596
SELECT DISTINCT - - COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8597
SELECT - ( + CAST( + col2 AS SIGNED ) ) * + col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-8597
SELECT - ( + CAST ( + col2 AS INTEGER ) ) * + col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 20 * + col2 col2, - col1 * - + 43 FROM tab2
----
1160
2881
460
2193
800
3311

query I rowsort
SELECT ALL + col1 * + col1 + - 98 FROM tab2 AS cor0
----
2503
4391
5831

onlyif mysql # aggregate syntax: 
query II rowsort label-8600
SELECT - + COUNT( * ) AS col1, - COUNT( * ) + + 43 AS col0 FROM tab0 AS cor0
----
-3
40

skipif mysql # not compatible
query II rowsort label-8600
SELECT - + COUNT ( * ) AS col1, - COUNT ( * ) + + 43 AS col0 FROM tab0 AS cor0
----
-3
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8601
SELECT - CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8601
SELECT - CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 88 * + + 91 FROM tab2
----
-8008

onlyif mysql # DIV for integer division: 
query I rowsort label-8603
SELECT ALL col0 DIV + - ( - 36 ) AS col1 FROM tab0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-8603
SELECT ALL col0 / + - ( - 36 ) AS col1 FROM tab0
----
0
2
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8604
SELECT COUNT( ALL col2 ) DIV - 85 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8604
SELECT COUNT ( ALL col2 ) / - 85 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8605
SELECT ALL + col1 * col0 DIV - col1 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8605
SELECT ALL + col1 * col0 / - col1 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT - 18 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
-18
-18
-18

query I rowsort
SELECT DISTINCT - 51 * + 64 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-3264

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) < 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT + - COUNT( * ) FROM tab0 AS cor0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8609
SELECT + - COUNT ( * ) FROM tab0 AS cor0 WHERE + col0 IS NULL
----
0

query II rowsort
SELECT ALL + col2 AS col0, + col0 AS col1 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8611
SELECT + col0 DIV - - col2 FROM tab2 cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8611
SELECT + col0 / - - col2 FROM tab2 cor0
----
1
1
2

query I rowsort
SELECT - ( + - 87 ) FROM tab0
----
87
87
87

query III rowsort
SELECT ALL * FROM tab0 WHERE - 81 + col0 > NULL
----

query I rowsort
SELECT + ( - 98 ) FROM tab0 AS cor0
----
-98
-98
-98

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col0 * - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 53 + col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - 17 - 94 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-111
-111
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8618
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8619
SELECT ALL + ( - COUNT( * ) ) * + - COUNT( * ) DIV + 38 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8619
SELECT ALL + ( - COUNT ( * ) ) * + - COUNT ( * ) / + 38 AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL + + 6 * col1 + + col0 FROM tab0 AS cor0
----
103
213
501

onlyif mysql # DIV for integer division: 
query I rowsort label-8621
SELECT ALL - - col0 DIV col0 + col2 - - - col1 AS col1 FROM tab2 AS cor0
----
-27
-36
-8

skipif mysql # not compatible
query I rowsort label-8621
SELECT ALL - - col0 / col0 + col2 - - - col1 AS col1 FROM tab2 AS cor0
----
-27
-36
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT + - SUM( ALL ( + - 36 ) ) FROM tab1 cor0
----
108

skipif mysql # not compatible
query I rowsort label-8622
SELECT + - SUM ( ALL ( + - 36 ) ) FROM tab1 cor0
----
108

query I rowsort
SELECT ALL col1 FROM tab0 cor0 WHERE NULL IS NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 * - col1 col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

query I rowsort
SELECT col0 + + col0 AS col2 FROM tab0 AS cor0 WHERE ( col2 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT ALL 1 * + + COUNT( * ) + + 69 AS col0 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL 1 * + + COUNT ( * ) + + 69 AS col0 FROM tab0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT ALL COUNT( * ) * - COUNT( * ) * + 99 FROM tab1
----
-891

skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL COUNT ( * ) * - COUNT ( * ) * + 99 FROM tab1
----
-891

query II rowsort
SELECT DISTINCT col0 + col2 AS col2, - col1 AS col1 FROM tab1
----
144
-5
147
-14
159
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT DISTINCT COUNT( * ) + - 51 FROM tab2 WHERE NOT ( NOT 80 IS NULL )
----
-51

skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT COUNT ( * ) + - 51 FROM tab2 WHERE NOT ( NOT 80 IS NULL )
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8630
SELECT col2 + - + col0 - - col2 * - + CAST( - col2 AS SIGNED ) * + col1 AS col0, col2 FROM tab0
----
178961
47
2023
10
9803
99

skipif mysql # not compatible
query II rowsort label-8630
SELECT col2 + - + col0 - - col2 * - + CAST ( - col2 AS INTEGER ) * + col1 AS col0, col2 FROM tab0
----
178961
47
2023
10
9803
99

query I rowsort
SELECT DISTINCT + col1 * - - col1 AS col0 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT ( col0 ) FROM tab0 cor0 WHERE col2 <> NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE - + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8634
SELECT ALL 19 - + col0 * 17 + + col2 DIV - col1 FROM tab1
----
-1437
-1529
-854

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL 19 - + col0 * 17 + + col2 / - col1 FROM tab1
----
-1437
-1529
-854

query I rowsort
SELECT DISTINCT col0 - + - 16 FROM tab0
----
103
113
31

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 41 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8637
SELECT ALL - CAST( + - col0 AS SIGNED ), col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

skipif mysql # not compatible
query II rowsort label-8637
SELECT ALL - CAST ( + - col0 AS INTEGER ), col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 70 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + ( + + col0 ), - 90 FROM tab2 AS cor0
----
46
-90
64
-90
75
-90

query I rowsort
SELECT - col2 * - - 54 FROM tab0 AS cor0
----
-2538
-5346
-540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8641
SELECT + ( - col1 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8641
SELECT + ( - col1 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8642
SELECT + col2 DIV + 42 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8642
SELECT + col2 / + 42 FROM tab1 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT ALL - - 44 * - ( - COUNT( * ) ) * + COUNT( * ) FROM tab2 AS cor0
----
396

skipif mysql # not compatible
query I rowsort label-8643
SELECT ALL - - 44 * - ( - COUNT ( * ) ) * + COUNT ( * ) FROM tab2 AS cor0
----
396

query I rowsort
SELECT DISTINCT - ( + col2 ) * - col2 FROM tab1
----
3481
4624
9216

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IS NOT NULL OR NOT - 24 + col2 <> 49
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8646
SELECT 72 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8646
SELECT 72 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8647
SELECT - CAST( + ( - 71 ) AS SIGNED ) FROM tab2
----
71
71
71

skipif mysql # not compatible
query I rowsort label-8647
SELECT - CAST ( + ( - 71 ) AS INTEGER ) FROM tab2
----
71
71
71

query I rowsort
SELECT 97 * + 25 FROM tab0
----
2425
2425
2425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8649
SELECT ALL + MAX( + + col0 ) DIV - + 76 AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL + MAX ( + + col0 ) / - + 76 AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8650
SELECT DISTINCT 59 AS col1, COUNT( * ) FROM tab1 AS cor0
----
59
3

skipif mysql # not compatible
query II rowsort label-8650
SELECT DISTINCT 59 AS col1, COUNT ( * ) FROM tab1 AS cor0
----
59
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8651
SELECT + MIN( ALL CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8651
SELECT + MIN ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE ( 6 ) IS NULL
----

query I rowsort
SELECT + 27 + - col1 FROM tab1 AS cor0
----
-20
13
22

query I rowsort
SELECT DISTINCT + + col2 + + + 97 AS col2 FROM tab0 cor0
----
107
144
196

query I rowsort
SELECT ALL + col0 + col1 + - 41 FROM tab2 AS cor0
----
100
101
56

query III rowsort
SELECT * FROM tab2 WHERE - col0 NOT BETWEEN + 41 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( col2 ) * - 24 + + col1 AS col0 FROM tab0
----
1209
2377
261

query I rowsort
SELECT DISTINCT - col1 - - ( - 7 ) FROM tab0
----
-28
-8
-88

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8659
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 <> - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8659
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 <> - CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL - 43 - - col0 + - 2 + - col1 * + 64 * - col0 * col0 AS col1 FROM tab0
----
10172778
1166370
602228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8661
SELECT ALL - 44 col1, + CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-44
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8661
SELECT ALL - 44 col1, + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-44
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + - col2 * + - col2 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8663
SELECT DISTINCT + + ( ( - 98 ) ) AS col1, + col2 / col0 * - 32 * + col0 FROM tab2 WHERE - - col2 BETWEEN - col2 * - - 99 + + CAST( - col1 AS SIGNED ) * - col1 AND NULL
----

skipif mysql # not compatible
query II rowsort label-8663
SELECT DISTINCT + + ( ( - 98 ) ) AS col1, + col2 / col0 * - 32 * + col0 FROM tab2 WHERE - - col2 BETWEEN - col2 * - - 99 + + CAST ( - col1 AS INTEGER ) * - col1 AND NULL
----

query I rowsort
SELECT - 83 * + - col0 FROM tab0
----
1245
7221
8051

query I rowsort
SELECT + - ( - 86 ) AS col2 FROM tab2 AS cor0
----
86
86
86

query I rowsort
SELECT DISTINCT + 0 AS col2 FROM tab0 cor0
----
0

query I rowsort
SELECT DISTINCT - 70 AS col0 FROM tab2 cor0
----
-70

query I rowsort
SELECT ALL + col2 * + col2 + col2 AS col0 FROM tab1 AS cor0
----
3540
4692
9312

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8669
SELECT DISTINCT + ( COUNT( * ) ) * + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8669
SELECT DISTINCT + ( COUNT ( * ) ) * + CAST ( NULL AS REAL ) AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL - 13 * + col2 + - col1 * + 30 + - col1 * - + 46 AS col0 FROM tab1 AS cor0
----
-1024
-132
-687

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT - col1 NOT BETWEEN + col1 AND NULL
----

query II rowsort
SELECT col2 * 81, col0 AS col0 FROM tab1
----
4779
85
5508
91
7776
51

onlyif mysql # aggregate syntax: 
query II rowsort label-8673
SELECT COUNT( * ) * 47 AS col2, 4 * + COUNT( * ) AS col0 FROM tab1
----
141
12

skipif mysql # not compatible
query II rowsort label-8673
SELECT COUNT ( * ) * 47 AS col2, 4 * + COUNT ( * ) AS col0 FROM tab1
----
141
12

query I rowsort
SELECT - + col1 FROM tab1 AS cor0 WHERE NOT 49 = + col2
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 50 col2 FROM tab0 AS cor0
----
50

query I rowsort
SELECT - col0 + - + 79 AS col1 FROM tab1 AS cor0
----
-130
-164
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT ALL - COUNT( * ) + - 47 col2 FROM tab1 AS cor0 WHERE NOT col1 - - col1 * + col0 * + col1 IS NOT NULL
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8677
SELECT ALL - COUNT ( * ) + - 47 col2 FROM tab1 AS cor0 WHERE NOT col1 - - col1 * + col0 * + col1 IS NOT NULL
----
-47

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 21 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT + MIN( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0 WHERE col0 < + col1 + col2
----
-81

skipif mysql # not compatible
query I rowsort label-8679
SELECT + MIN ( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0 WHERE col0 < + col1 + col2
----
-81

query I rowsort
SELECT ALL col2 * - 52 AS col2 FROM tab2 AS cor0
----
-1196
-2080
-3016

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + - 8 >= ( - col2 ) + + 78
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / col2 * col2 <> NULL
----

query I rowsort
SELECT + ( col1 ) FROM tab1 AS cor0 WHERE - 89 / - col0 > NULL
----

query I rowsort
SELECT + col0 + 14 * + + 37 AS col0 FROM tab1 AS cor0
----
569
603
609

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT DISTINCT - + COUNT( * ) + + COUNT( * ) - + MIN( DISTINCT 97 ) FROM tab2 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8685
SELECT DISTINCT - + COUNT ( * ) + + COUNT ( * ) - + MIN ( DISTINCT 97 ) FROM tab2 AS cor0
----
-97

query I rowsort
SELECT DISTINCT - col2 + - - col2 AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8687
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 70 + + 28 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8687
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 70 + + 28 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + ( col0 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN ( NULL ) AND + 59
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN col0 AND + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT ALL + ( + - COUNT( DISTINCT + col2 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8691
SELECT ALL + ( + - COUNT ( DISTINCT + col2 ) ) FROM tab1
----
-3

query I rowsort
SELECT ALL - 66 AS col0 FROM tab1 WHERE - - col2 IS NOT NULL
----
-66
-66
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8693
SELECT CAST( MIN( DISTINCT 63 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-8693
SELECT CAST ( MIN ( DISTINCT 63 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
63

query I rowsort
SELECT - 46 * - col0 FROM tab1 AS cor0
----
2346
3910
4186

query I rowsort
SELECT + ( + - col0 ) * 35 FROM tab2 AS cor0
----
-1610
-2240
-2625

onlyif mysql # aggregate syntax: 
query II rowsort label-8696
SELECT ALL + + 4 * + COUNT( * ) col1, 67 FROM tab1 WHERE col2 IN ( - 70, 63, + 87 )
----
0
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8696
SELECT ALL + + 4 * + COUNT ( * ) col1, 67 FROM tab1 WHERE col2 IN ( - 70, 63, + 87 )
----
0
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT DISTINCT + + SUM( ALL - 42 ) AS col0 FROM tab2 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-8697
SELECT DISTINCT + + SUM ( ALL - 42 ) AS col0 FROM tab2 AS cor0
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT - COUNT( ALL + 28 ) FROM tab1 cor0 WHERE NOT + col2 / - col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8698
SELECT - COUNT ( ALL + 28 ) FROM tab1 cor0 WHERE NOT + col2 / - col2 <> NULL
----
0

query I rowsort
SELECT ALL + - 76 * col2 AS col2 FROM tab0 AS cor0
----
-3572
-7524
-760

onlyif mysql # DIV for integer division: 
query I rowsort label-8700
SELECT ALL + col2 DIV - + col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8700
SELECT ALL + col2 / - + col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + 36 * + - col1 * + - col0 FROM tab2 AS cor0
----
177408
180900
84456

onlyif mysql # DIV for integer division: 
query I rowsort label-8702
SELECT ALL - + col2 DIV col1 * + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL - + col2 / col1 * + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8703
SELECT 26 DIV + - col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8703
SELECT 26 / + - col2 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, - col2 * col2 AS col0 FROM tab0
----
1
-9801
21
-100
81
-2209

query I rowsort
SELECT + 22 FROM tab2 WHERE + 57 IS NOT NULL AND NOT col1 IS NULL
----
22
22
22

query I rowsort
SELECT - col1 * col2 * - ( - 77 ) AS col2 FROM tab2
----
-237160
-299222
-90321

query II rowsort
SELECT ALL + col0, 46 FROM tab1
----
51
46
85
46
91
46

query I rowsort
SELECT DISTINCT ( - - ( ( + + 34 ) ) ) FROM tab2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT ALL COUNT( ALL + - col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL COUNT ( ALL + - col0 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT ALL + 10 * + - ( COUNT( * ) ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-8710
SELECT ALL + 10 * + - ( COUNT ( * ) ) FROM tab0
----
-30

query I rowsort
SELECT DISTINCT 99 * + 91 * + + col0 FROM tab0
----
135135
783783
873873

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 8 + col1 <= + col0
----
75
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8713
SELECT ALL - col0 * col0 * - col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL - col0 * col0 * - col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 33 + - - col1 * + 14 + - ( - col0 ) AS col1 FROM tab2 AS cor0
----
1046
1175
793

query I rowsort
SELECT ALL + 21 + + - ( col1 ) FROM tab2
----
-30
-46
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 8 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT DISTINCT + 66 * - col2 + + - col0 AS col1 FROM tab1 WHERE NOT + col0 IS NULL
----
-3979
-4579
-6387

onlyif mysql # DIV for integer division: 
query I rowsort label-8718
SELECT col1 DIV 2 + - col2 AS col0 FROM tab2 cor0
----
-2
-25
2

skipif mysql # not compatible
query I rowsort label-8718
SELECT col1 / 2 + - col2 AS col0 FROM tab2 cor0
----
-2
-25
2

query I rowsort
SELECT col1 + - + col2 - 37 AS col0 FROM tab1 cor0
----
-119
-58
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8720
SELECT - CAST( NULL AS SIGNED ) + + col0 / 1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8720
SELECT - CAST ( NULL AS INTEGER ) + + col0 / 1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8721
SELECT - CAST( NULL AS SIGNED ) + + - CAST( NULL AS SIGNED ) - + COUNT( * ) - + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8721
SELECT - CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) - + COUNT ( * ) - + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 IS NULL AND NOT + 73 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 80 + - 88 AS col0 FROM tab1 AS cor0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT DISTINCT MIN( 86 ) FROM tab1 cor0
----
86

skipif mysql # not compatible
query I rowsort label-8724
SELECT DISTINCT MIN ( 86 ) FROM tab1 cor0
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8725
SELECT ALL + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col0 > - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col0 > - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT - COUNT( * ) - - 4 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8726
SELECT - COUNT ( * ) - - 4 FROM tab1
----
1

query I rowsort
SELECT - - 19 AS col0 FROM tab2 WHERE + + col0 = col1 * + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN col0 * + col0 + col0 AND 88
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 - + + col0 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT ALL - ( COUNT( * ) ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8730
SELECT ALL - ( COUNT ( * ) ) AS col0 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT ALL - COUNT( DISTINCT 30 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8731
SELECT ALL - COUNT ( DISTINCT 30 ) AS col1 FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8732
SELECT DISTINCT + col2 FROM tab2 WHERE NOT ( - col2 + ( col2 ) ) < + col2 * - CAST( col2 * col1 AS SIGNED )
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8732
SELECT DISTINCT + col2 FROM tab2 WHERE NOT ( - col2 + ( col2 ) ) < + col2 * - CAST ( col2 * col1 AS INTEGER )
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 37 - col2 / + ( + 8 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 - 25 * - col0 FROM tab0
----
2154
2424
294

query I rowsort
SELECT + col2 + - col2 * 94 AS col0 FROM tab2
----
-2139
-3720
-5394

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT NULL = ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 BETWEEN col1 AND + col2 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8738
SELECT * FROM tab2 WHERE CAST( + 29 AS SIGNED ) * 30 NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8738
SELECT * FROM tab2 WHERE CAST ( + 29 AS INTEGER ) * 30 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT COUNT( - ( 29 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8739
SELECT COUNT ( - ( 29 ) ) FROM tab2
----
3

query I rowsort
SELECT - col0 * + col0 - 25 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT DISTINCT MAX( col0 ) FROM tab1 WHERE NULL IS NULL
----
91

skipif mysql # not compatible
query I rowsort label-8741
SELECT DISTINCT MAX ( col0 ) FROM tab1 WHERE NULL IS NULL
----
91

query I rowsort
SELECT DISTINCT + col2 + - 73 FROM tab1 WHERE col1 + 17 >= 52 + - 58
----
-14
-5
23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8743
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + 43 * + col2 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT - CAST ( NULL AS REAL ) + + 43 * + col2 AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT COUNT( ALL ( 94 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8744
SELECT COUNT ( ALL ( 94 ) ) FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) <= ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8746
SELECT ALL * FROM tab1 WHERE NOT - col0 * col0 <> + 0 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8746
SELECT ALL * FROM tab1 WHERE NOT - col0 * col0 <> + 0 + - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE 45 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( 27 ) AS col0 FROM tab2 WHERE NOT ( 48 ) IS NULL
----
27
27
27

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN - col1 AND ( - col1 )
----

query I rowsort
SELECT + ( col0 ) AS col2 FROM tab0 WHERE NULL = + 91 * + ( 37 * + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * 6 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * + 76 + - col0 * col1 FROM tab0
----
-1067
2357
7427

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 + 56 < col2
----
46
51
23

query I rowsort
SELECT DISTINCT + 4 * + 72 FROM tab0
----
288

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8755
SELECT * FROM tab0 AS cor0 WHERE ( col2 * - CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8755
SELECT * FROM tab0 AS cor0 WHERE ( col2 * - CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8756
SELECT + + col1 - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8756
SELECT + + col1 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8757
SELECT COUNT( * ) * COUNT( * ) - CAST( 18 AS SIGNED ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-8757
SELECT COUNT ( * ) * COUNT ( * ) - CAST ( 18 AS INTEGER ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 84 ) + + col2 col2 FROM tab0 AS cor0
----
131
183
94

query I rowsort
SELECT - 42 + col2 AS col0 FROM tab1 AS cor0
----
17
26
54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8760
SELECT + col0 / - CAST( NULL AS DECIMAL ) + col1 / - 75 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8760
SELECT + col0 / - CAST ( NULL AS REAL ) + col1 / - 75 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * 19 + + col2 FROM tab2 AS cor0
----
1331
1503
992

query I rowsort
SELECT + 24 * col1 + col0 FROM tab1 AS cor0
----
1219
205
387

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) = - 29
----

query I rowsort
SELECT + col0 + + ( 99 ) FROM tab1 AS cor0
----
150
184
190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + col1 * - - 9 * 38 + col0 FROM tab1
----
16165
1795
4839

query I rowsort
SELECT DISTINCT - 43 - + 80 AS col0 FROM tab0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT ALL COUNT( * ) + - 75 col2 FROM tab0
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8768
SELECT ALL COUNT ( * ) + - 75 col2 FROM tab0
----
-72

query I rowsort
SELECT DISTINCT - col2 + - - 59 + + col1 AS col2 FROM tab0
----
-39
70
93

query I rowsort
SELECT DISTINCT col1 - + 50 FROM tab2
----
1
17
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8771
SELECT ALL - CAST( - MAX( DISTINCT + col0 ) AS SIGNED ) * MAX( + 16 + 76 ) + - 9 * + 73 FROM tab2
----
6243

skipif mysql # not compatible
query I rowsort label-8771
SELECT ALL - CAST ( - MAX ( DISTINCT + col0 ) AS INTEGER ) * MAX ( + 16 + 76 ) + - 9 * + 73 FROM tab2
----
6243

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 <= - col1 - col1
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND - 78
----

query I rowsort
SELECT DISTINCT 11 AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8776
SELECT ALL 96 DIV - COUNT( * ) - 8 * + 46 FROM tab0
----
-400

skipif mysql # not compatible
query I rowsort label-8776
SELECT ALL 96 / - COUNT ( * ) - 8 * + 46 FROM tab0
----
-400

query I rowsort
SELECT - col2 * + 88 FROM tab1 AS cor0
----
-5192
-5984
-8448

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 62 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8778
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 62 > NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + col0 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE col2 = col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + - 12 col2 FROM tab2 AS cor0
----
276
480
696

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8783
SELECT + 97 DIV + col1 AS col1 FROM tab1 AS cor0
----
19
2
6

skipif mysql # not compatible
query I rowsort label-8783
SELECT + 97 / + col1 AS col1 FROM tab1 AS cor0
----
19
2
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 31 * - col1 col1 FROM tab0
----
-118017
-3069
-6510

onlyif mysql # aggregate syntax: 
query II rowsort label-8785
SELECT DISTINCT - COUNT( * ) AS col1, MIN( - 38 ) AS col0 FROM tab0
----
-3
-38

skipif mysql # not compatible
query II rowsort label-8785
SELECT DISTINCT - COUNT ( * ) AS col1, MIN ( - 38 ) AS col0 FROM tab0
----
-3
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-8786
SELECT 24, + 15 * - - COUNT( * ) AS col0 FROM tab0
----
24
45

skipif mysql # not compatible
query II rowsort label-8786
SELECT 24, + 15 * - - COUNT ( * ) AS col0 FROM tab0
----
24
45

query II rowsort
SELECT 10, col2 * col0 AS col0 FROM tab1 cor0
----
10
4896
10
5015
10
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 * 66 col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3630

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT DISTINCT - COUNT( + col1 ) + 12 AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8789
SELECT DISTINCT - COUNT ( + col1 ) + 12 AS col2 FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8790
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-8790
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8791
SELECT DISTINCT - CAST( + - col2 AS SIGNED ) AS col0 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8791
SELECT DISTINCT - CAST ( + - col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8792
SELECT DISTINCT COUNT( * ) AS col2, MAX( ALL + - 97 ) + - 36 FROM tab0 AS cor0
----
3
-133

skipif mysql # not compatible
query II rowsort label-8792
SELECT DISTINCT COUNT ( * ) AS col2, MAX ( ALL + - 97 ) + - 36 FROM tab0 AS cor0
----
3
-133

onlyif mysql # DIV for integer division: 
query I rowsort label-8793
SELECT DISTINCT col2 DIV - col0 + 22 + col2 AS col2 FROM tab2
----
45
62
80

skipif mysql # not compatible
query I rowsort label-8793
SELECT DISTINCT col2 / - col0 + 22 + col2 AS col2 FROM tab2
----
45
62
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT ALL - SUM( - 56 ) FROM tab0 WHERE NOT col1 = ( - - col1 * + col2 )
----
168

skipif mysql # not compatible
query I rowsort label-8794
SELECT ALL - SUM ( - 56 ) FROM tab0 WHERE NOT col1 = ( - - col1 * + col2 )
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8795
SELECT + col0 * - CAST( NULL AS SIGNED ) AS col0, col2 + + 24 FROM tab2
----
NULL
47
NULL
64
NULL
82

skipif mysql # not compatible
query II rowsort label-8795
SELECT + col0 * - CAST ( NULL AS INTEGER ) AS col0, col2 + + 24 FROM tab2
----
NULL
47
NULL
64
NULL
82

query I rowsort
SELECT + ( - + col2 ) * + col2 FROM tab1
----
-3481
-4624
-9216

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + - 13 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * - col0 * 9 FROM tab0
----
-2025
-68121
-84681

query I rowsort
SELECT ALL + 49 FROM tab2 WHERE NOT - ( - 72 ) * 12 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8801
SELECT + - ( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8801
SELECT + - ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + + ( - col0 ) AS col2, - col1 * - col1 FROM tab1 AS cor0
----
-51
196
-85
25
-91
2209

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 <> + 74
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 37 + - - 36 FROM tab1
----
73
73
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8805
SELECT 83 + + - COUNT( * ) DIV + 83 AS col0 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-8805
SELECT 83 + + - COUNT ( * ) / + 83 AS col0 FROM tab0
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 17 col2 FROM tab0
----
-104
-114
-32

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 79 ) IS NULL
----

query I rowsort
SELECT - - 26 * + 94 AS col0 FROM tab0 AS cor0
----
2444
2444
2444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, - col0 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

query I rowsort
SELECT DISTINCT ( col2 ) + col0 FROM tab2 AS cor0 WHERE - col1 BETWEEN + + col1 + - - 58 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT DISTINCT COUNT( * ) - - SUM( ALL 27 ) AS col2 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-8811
SELECT DISTINCT COUNT ( * ) - - SUM ( ALL 27 ) AS col2 FROM tab1
----
84

query I rowsort
SELECT col0 - + - col1 + col1 FROM tab0
----
129
177
99

query I rowsort
SELECT + 31 - col0 AS col2 FROM tab0
----
-56
-66
16

query I rowsort
SELECT ALL - 21 * - col2 AS col1 FROM tab0
----
2079
210
987

query II rowsort
SELECT DISTINCT - col0, col2 AS col2 FROM tab1
----
-51
96
-85
59
-91
68

query II rowsort
SELECT DISTINCT 90 AS col1, col1 FROM tab1
----
90
14
90
47
90
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT DISTINCT MIN( DISTINCT + + col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8817
SELECT DISTINCT MIN ( DISTINCT + + col2 ) AS col0 FROM tab0 AS cor0
----
10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> - ( - col1 )
----

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8820
SELECT SUM( DISTINCT col1 ) col1, 58 FROM tab0
----
103
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8820
SELECT SUM ( DISTINCT col1 ) col1, 58 FROM tab0
----
103
58

query I rowsort
SELECT ALL + col2 * col2 AS col0 FROM tab2 AS cor0 WHERE NULL IN ( - col1, - col2 / - - 54, + col2 * + 30 )
----

query I rowsort
SELECT ALL + 87 AS col2 FROM tab1 cor0
----
87
87
87

query I rowsort
SELECT ( + 18 ) AS col2 FROM tab1 AS cor0
----
18
18
18

query II rowsort
SELECT 61, 90 AS col0 FROM tab1
----
61
90
61
90
61
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT DISTINCT 30 + + MIN( DISTINCT col1 ) FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-8825
SELECT DISTINCT 30 + + MIN ( DISTINCT col1 ) FROM tab1
----
35

query I rowsort
SELECT ( + 76 ) AS col0 FROM tab1
----
76
76
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8827
SELECT ALL * FROM tab0 WHERE NOT ( + - col1 * col2 + col0 + + CAST( col1 AS SIGNED ) * - 35 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8827
SELECT ALL * FROM tab0 WHERE NOT ( + - col1 * col2 + col0 + + CAST ( col1 AS INTEGER ) * - 35 ) IS NOT NULL
----

query I rowsort
SELECT ALL + 21 + col1 AS col0 FROM tab0
----
102
22
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT + COUNT( * ) * COUNT( * ) + 43 + - - 8 + 58 AS col0 FROM tab1
----
118

skipif mysql # not compatible
query I rowsort label-8829
SELECT + COUNT ( * ) * COUNT ( * ) + 43 + - - 8 + 58 AS col0 FROM tab1
----
118

query III rowsort
SELECT * FROM tab2 WHERE + - ( + - col0 ) + 85 IS NULL
----

query II rowsort
SELECT 94 * - col0 + + col0 AS col2, - col2 FROM tab0
----
-1395
-47
-8091
-10
-9021
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT - 60 * COUNT( * ) FROM tab1 cor0
----
-180

skipif mysql # not compatible
query I rowsort label-8832
SELECT - 60 * COUNT ( * ) FROM tab1 cor0
----
-180

onlyif mysql # aggregate syntax: 
query II rowsort label-8833
SELECT DISTINCT + SUM( ALL - col2 ) + + COUNT( * ), COUNT( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
-118
3

skipif mysql # not compatible
query II rowsort label-8833
SELECT DISTINCT + SUM ( ALL - col2 ) + + COUNT ( * ), COUNT ( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
-118
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT ALL + COUNT( * ) + + + MIN( DISTINCT + col1 ) * + + 99 + - + 27 * 82 AS col2 FROM tab1
----
-1716

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL + COUNT ( * ) + + + MIN ( DISTINCT + col1 ) * + + 99 + - + 27 * 82 AS col2 FROM tab1
----
-1716

query III rowsort
SELECT * FROM tab0 WHERE + - 24 / - 65 NOT IN ( + - 82, + 39 - 53 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT DISTINCT - 0 * COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8836
SELECT DISTINCT - 0 * COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT 47 + - col2 AS col1 FROM tab0 AS cor0
----
-52
0
37

query I rowsort
SELECT - col1 + col0 + - + 84 AS col0 FROM tab1 AS cor0
----
-4
-40
-47

query II rowsort
SELECT col1, 53 AS col1 FROM tab0
----
1
53
21
53
81
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8840
SELECT ALL 88 DIV - + COUNT( * ) FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL 88 / - + COUNT ( * ) FROM tab0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT ALL SUM( DISTINCT - - ( - + col2 ) ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL SUM ( DISTINCT - - ( - + col2 ) ) FROM tab2
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 col2 FROM tab1
----
24
24
24

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - + col2 + - 47 + - ( - col1 ) * - - ( col2 ) ) IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * - col0 * + col1 * - - col2 AS col2 FROM tab2
----
1241034
16904100
7884800

onlyif mysql # aggregate syntax: 
query II rowsort label-8845
SELECT DISTINCT COUNT( * ) * - + 79 * + COUNT( * ) AS col2, 49 + - 67 FROM tab1
----
-711
-18

skipif mysql # not compatible
query II rowsort label-8845
SELECT DISTINCT COUNT ( * ) * - + 79 * + COUNT ( * ) AS col2, 49 + - 67 FROM tab1
----
-711
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT ALL + MAX( - 72 ) AS col0 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL + MAX ( - 72 ) AS col0 FROM tab2 AS cor0
----
-72

query II rowsort
SELECT + 86 AS col0, + col0 + - col1 AS col0 FROM tab0 AS cor0
----
86
-66
86
66
86
96

query I rowsort
SELECT - + col1 * + 63 AS col1 FROM tab1 AS cor0
----
-2961
-315
-882

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 69 ) IS NOT NULL
----

query I rowsort
SELECT + col2 * - 90 * col2 FROM tab2
----
-144000
-302760
-47610

query I rowsort
SELECT ALL + 82 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # DIV for integer division: 
query I rowsort label-8852
SELECT DISTINCT col2 DIV - col2 * col0 DIV - col0 AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT col2 / - col2 * col0 / - col0 AS col1 FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8853
SELECT ALL + col1 * col2 AS col2 FROM tab1 WHERE NOT - - col2 * + CAST( - ( + 23 ) AS SIGNED ) * + 67 + + - 96 + - 14 - col1 * - - col1 - col2 / - col1 NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL + col1 * col2 AS col2 FROM tab1 WHERE NOT - - col2 * + CAST ( - ( + 23 ) AS INTEGER ) * + 67 + + - 96 + - 14 - col1 * - - col1 - col2 / - col1 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8854
SELECT + COUNT( * ) AS col0, 36 AS col2 FROM tab0
----
3
36

skipif mysql # not compatible
query II rowsort label-8854
SELECT + COUNT ( * ) AS col0, 36 AS col2 FROM tab0
----
3
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8855
SELECT - 81 + COUNT( CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NOT - + col0 IS NULL
----
-81

skipif mysql # not compatible
query I rowsort label-8855
SELECT - 81 + COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NOT - + col0 IS NULL
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-8856
SELECT - ( col2 ) + + ( - col1 ) DIV + + col1 FROM tab0 AS cor0
----
-100
-11
-48

skipif mysql # not compatible
query I rowsort label-8856
SELECT - ( col2 ) + + ( - col1 ) / + + col1 FROM tab0 AS cor0
----
-100
-11
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8857
SELECT - - 61 + - - CAST( NULL AS SIGNED ) + + 43 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8857
SELECT - - 61 + - - CAST ( NULL AS INTEGER ) + + 43 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT ALL - 81 * SUM( + + col0 ) FROM tab2 AS cor0
----
-14985

skipif mysql # not compatible
query I rowsort label-8858
SELECT ALL - 81 * SUM ( + + col0 ) FROM tab2 AS cor0
----
-14985

query II rowsort
SELECT DISTINCT - col2 AS col2, + ( col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 - + 90 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT DISTINCT - + MAX( - 47 ) AS col1 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8860
SELECT DISTINCT - + MAX ( - 47 ) AS col1 FROM tab2 AS cor0
----
47

query I rowsort
SELECT ALL 8 FROM tab1 AS cor0 WHERE - 31 <= - - 22 + ( - + col2 ) * - col1 + + - 21
----
8
8
8

query I rowsort
SELECT ALL - - col1 + - ( - col2 ) FROM tab0 cor0
----
100
128
31

query I rowsort
SELECT DISTINCT + 93 FROM tab1, tab1 AS cor0
----
93

query III rowsort
SELECT * FROM tab1 WHERE col2 BETWEEN - + col2 AND + col2 * 19
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 81 * - col0 AS col2, + col1 AS col1 FROM tab0
----
-1215
81
-7047
21
-7857
1

query I rowsort
SELECT ALL ( - ( 83 ) ) + col1 FROM tab0
----
-2
-62
-82

query II rowsort
SELECT 30 * ( - col0 ), col1 AS col2 FROM tab1
----
-1530
14
-2550
5
-2730
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT COUNT( * ) * - COUNT( * ) * 41 FROM tab2
----
-369

skipif mysql # not compatible
query I rowsort label-8868
SELECT COUNT ( * ) * - COUNT ( * ) * 41 FROM tab2
----
-369

onlyif mysql # DIV for integer division: 
query I rowsort label-8869
SELECT col2 DIV - + ( + col2 ) AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8869
SELECT col2 / - + ( + col2 ) AS col2 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8870
SELECT ALL - ( CAST( - COUNT( * ) AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8870
SELECT ALL - ( CAST ( - COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= 80 * + ( + ( - - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT MIN( - + col2 ) * - 82 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8872
SELECT MIN ( - + col2 ) * - 82 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8873
SELECT * FROM tab1 AS cor0 WHERE ( CAST( + + col0 AS SIGNED ) ) + col0 + + 92 NOT IN ( - 84 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8873
SELECT * FROM tab1 AS cor0 WHERE ( CAST ( + + col0 AS INTEGER ) ) + col0 + + 92 NOT IN ( - 84 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 51 + col2 AS col2 FROM tab2
----
109
74
91

query I rowsort
SELECT ALL col0 - - ( + col0 ) FROM tab2
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT DISTINCT - + MIN( DISTINCT - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8876
SELECT DISTINCT - + MIN ( DISTINCT - col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL - col0 - + col2 * col0 * - col0 + - col1 * col1 FROM tab2 cor0
----
157847
321686
46021

query I rowsort
SELECT col1 * + 4 AS col0 FROM tab0 AS cor0
----
324
4
84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8879
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 89 + 92 IN ( + + col1 * + col1 + CAST( + 47 AS SIGNED ) + - ( + + col2 ) * + col1, - 12 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8879
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 89 + 92 IN ( + + col1 * + col1 + CAST ( + 47 AS INTEGER ) + - ( + + col2 ) * + col1, - 12 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT 35 * + COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-8880
SELECT 35 * + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
102

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 74 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8883
SELECT - col0 DIV - 43, col0 AS col2 FROM tab2
----
1
46
1
64
1
75

skipif mysql # not compatible
query II rowsort label-8883
SELECT - col0 / - 43, col0 AS col2 FROM tab2
----
1
46
1
64
1
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8884
SELECT + ( - CAST( NULL AS SIGNED ) ) / col0 * + - col1 / - - col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8884
SELECT + ( - CAST ( NULL AS INTEGER ) ) / col0 * + - col1 / - - col0 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT COUNT( * ) * + 92 AS col0 FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-8885
SELECT COUNT ( * ) * + 92 AS col0 FROM tab0
----
276

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 48 + + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 * + - 11 * - - 38 AS col0 FROM tab0
----
-33858
-418
-8778

query I rowsort
SELECT DISTINCT + col0 + - - 7 + + 73 FROM tab0 AS cor0
----
167
177
95

query II rowsort
SELECT - + col2 * - col0, col2 FROM tab2 AS cor0
----
1058
23
2560
40
4350
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 + 0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8891
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8891
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - 73 ) NOT BETWEEN ( NULL ) AND col0
----

query I rowsort
SELECT - - ( - - col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND 17
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8894
SELECT + MIN( - col1 ) DIV + ( - 24 ) + - - 3 FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-8894
SELECT + MIN ( - col1 ) / + ( - 24 ) + - - 3 FROM tab2 cor0
----
6

query I rowsort
SELECT ALL - col2 * + + col2 AS col0 FROM tab0 cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT ALL ( - + 35 ) + ( COUNT( * ) ) * + SUM( ALL + 91 ) FROM tab1 AS cor0
----
784

skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL ( - + 35 ) + ( COUNT ( * ) ) * + SUM ( ALL + 91 ) FROM tab1 AS cor0
----
784

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8897
SELECT DISTINCT - - col2 * - ( + col1 ) / 30 + CAST( NULL AS DECIMAL ), + col0 AS col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-8897
SELECT DISTINCT - - col2 * - ( + col1 ) / 30 + CAST ( NULL AS REAL ), + col0 AS col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT - + 61 + 84 + - col1 * + ( - 23 ) - col0 AS col1 FROM tab2 AS cor0
----
1150
1489
1730

query I rowsort
SELECT DISTINCT ( - col2 ) + - + col2 AS col1 FROM tab1
----
-118
-136
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-8900
SELECT DISTINCT col2 + - - ( 88 ) + + col2 DIV ( + + col2 ) col0 FROM tab0
----
136
188
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8900
SELECT DISTINCT col2 + - - ( 88 ) + + col2 / ( + + col2 ) col0 FROM tab0
----
136
188
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8901
SELECT MIN( DISTINCT CAST( + col2 AS SIGNED ) ) * - 86 * - + COUNT( 9 ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8901
SELECT MIN ( DISTINCT CAST ( + col2 AS INTEGER ) ) * - 86 * - + COUNT ( 9 ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8902
SELECT ALL 43 * + col1 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8902
SELECT ALL 43 * + col1 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col1 * - col1 * col1 col1 FROM tab1
----
103776
120
2730

query II rowsort
SELECT ALL col0 AS col1, col0 * + - 97 FROM tab0
----
15
-1455
87
-8439
97
-9409

query III rowsort
SELECT * FROM tab1 WHERE - col2 * - col2 + - col0 <= - col0
----

query II rowsort
SELECT ALL + 66 AS col0, col1 FROM tab0
----
66
1
66
21
66
81

query I rowsort
SELECT ALL - col1 / col1 * 42 AS col2 FROM tab2 WHERE NOT 47 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8908
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / - + col2 + + - col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8908
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / - + col2 + + - col0 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8909
SELECT + 49 DIV + col1 AS col2 FROM tab0 cor0
----
0
2
49

skipif mysql # not compatible
query I rowsort label-8909
SELECT + 49 / + col1 AS col2 FROM tab0 cor0
----
0
2
49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < ( - col2 * + + 7 * - - 24 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN col2 * - + col2 AND NULL
----

query II rowsort
SELECT + 52, + col0 FROM tab2 AS cor0
----
52
46
52
64
52
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col2 * - 23 + + 59 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8914
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8914
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= 83
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8916
SELECT - col1 + CAST( - + col1 AS SIGNED ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col0 IN ( - col2 * - + CAST( + col0 AS SIGNED ), 61, col1 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8916
SELECT - col1 + CAST ( - + col1 AS INTEGER ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col0 IN ( - col2 * - + CAST ( + col0 AS INTEGER ), 61, col1 )
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 22 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( + col2 ) AND col2
----

query I rowsort
SELECT + col2 * - - 22 FROM tab1 AS cor0
----
1298
1496
2112

query I rowsort
SELECT DISTINCT - - 56 AS col2 FROM tab0 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT ( + MIN( + col0 ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8920
SELECT ( + MIN ( + col0 ) ) FROM tab1
----
51

query I rowsort
SELECT ALL col0 * 96 FROM tab2 AS cor0
----
4416
6144
7200

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT ALL + SUM( + 44 ) * - - COUNT( * ) FROM tab1
----
396

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL + SUM ( + 44 ) * - - COUNT ( * ) FROM tab1
----
396

query I rowsort
SELECT - col0 + - - 71 * col0 AS col1 FROM tab1
----
3570
5950
6370

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT 66 + - - 48 * + COUNT( * ) AS col2 FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-8924
SELECT 66 + - - 48 * + COUNT ( * ) AS col2 FROM tab2
----
210

query I rowsort
SELECT ALL - - col2 * - 97 AS col0 FROM tab2 AS cor0
----
-2231
-3880
-5626

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 44 * - - col0 - + + 79 + + col2 + col1 * - 74 col2 FROM tab1 AS cor0
----
-3263
-4130
-7493

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8927
SELECT DISTINCT - SUM( + 99 ) DIV - COUNT( * ) FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8927
SELECT DISTINCT - SUM ( + 99 ) / - COUNT ( * ) FROM tab2 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT DISTINCT COUNT( ALL - - col1 ) * + 19 + + - MIN( + + col0 ) FROM tab0 cor0
----
42

skipif mysql # not compatible
query I rowsort label-8928
SELECT DISTINCT COUNT ( ALL - - col1 ) * + 19 + + - MIN ( + + col0 ) FROM tab0 cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT DISTINCT - 33 + - COUNT( * ) AS col2 FROM tab0 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-8929
SELECT DISTINCT - 33 + - COUNT ( * ) AS col2 FROM tab0 cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT - 33 * COUNT( * ) FROM tab2 AS cor0 WHERE ( - col0 * - + col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8930
SELECT - 33 * COUNT ( * ) FROM tab2 AS cor0 WHERE ( - col0 * - + col1 ) IS NULL
----
0

query I rowsort
SELECT ALL - 92 * col2 + - 71 AS col2 FROM tab2 AS cor0
----
-2187
-3751
-5407

query III rowsort
SELECT * FROM tab1 WHERE - col1 * col1 > NULL
----

query I rowsort
SELECT - 20 * 80 FROM tab1
----
-1600
-1600
-1600

query I rowsort
SELECT ALL 17 * + col2 * 91 + + + col1 FROM tab0
----
153154
15491
72790

query I rowsort
SELECT + 38 * + - col1 FROM tab1
----
-1786
-190
-532

query I rowsort
SELECT 53 - - col1 AS col1 FROM tab0
----
134
54
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT DISTINCT MIN( ALL col2 ) * - 54 AS col1 FROM tab1
----
-3186

skipif mysql # not compatible
query I rowsort label-8937
SELECT DISTINCT MIN ( ALL col2 ) * - 54 AS col1 FROM tab1
----
-3186

onlyif mysql # DIV for integer division: 
query I rowsort label-8938
SELECT + col1 - + 14 DIV + + 26 * - + col2 col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8938
SELECT + col1 - + 14 / + + 26 * - + col2 col1 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT DISTINCT - + COUNT( * ) - - - 72 + + COUNT( * ) - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8939
SELECT DISTINCT - + COUNT ( * ) - - - 72 + + COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8940
SELECT ALL + - 24 DIV col1 FROM tab0 cor0
----
-1
-24
0

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL + - 24 / col1 FROM tab0 cor0
----
-1
-24
0

query II rowsort
SELECT col2 AS col0, - ( + 36 ) AS col2 FROM tab1
----
59
-36
68
-36
96
-36

query II rowsort
SELECT 61, col1 FROM tab2
----
61
51
61
67
61
77

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 99 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col0 AS col2, - ( - 17 ) AS col2 FROM tab0 cor0
----
15
17
87
17
97
17

query I rowsort
SELECT DISTINCT + 89 * - - col2 FROM tab2 AS cor0
----
2047
3560
5162

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT 39 + 95 * - 80 + - col1 + - ( - col0 ) <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8947
SELECT - COUNT( * ) * - CAST( + COUNT( ALL + col1 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8947
SELECT - COUNT ( * ) * - CAST ( + COUNT ( ALL + col1 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT ALL - - SUM( - - 56 ) FROM tab0 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL - - SUM ( - - 56 ) FROM tab0 AS cor0
----
168

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 + - 26 - - ( + + 32 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8950
SELECT 52 * + COUNT( ALL + ( col0 ) ) * + COUNT( * ) * + - 80 + + 45 AS col0, + ( 11 ) FROM tab2
----
-37395
11

skipif mysql # not compatible
query II rowsort label-8950
SELECT 52 * + COUNT ( ALL + ( col0 ) ) * + COUNT ( * ) * + - 80 + + 45 AS col0, + ( 11 ) FROM tab2
----
-37395
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - col2 ) col0, - 55 AS col0 FROM tab1
----
-59
-55
-68
-55
-96
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-8952
SELECT 44 DIV + + col2 AS col2 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-8952
SELECT 44 / + + col2 AS col2 FROM tab0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 85 col1 FROM tab0
----
85
85
85

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8954
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) BETWEEN col0 * ( + col0 ) * col2 AND + ( ( - - col1 ) ) * + + col2
----

skipif mysql # not compatible
query III rowsort label-8954
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) BETWEEN col0 * ( + col0 ) * col2 AND + ( ( - - col1 ) ) * + + col2
----

query I rowsort
SELECT ALL + 17 AS col0 FROM tab1 cor0
----
17
17
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8956
SELECT + col0 + - ( + col2 ) * + + CAST( 47 AS SIGNED ) FROM tab0 AS cor0
----
-2194
-383
-4556

skipif mysql # not compatible
query I rowsort label-8956
SELECT + col0 + - ( + col2 ) * + + CAST ( 47 AS INTEGER ) FROM tab0 AS cor0
----
-2194
-383
-4556

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8957
SELECT + + COUNT( * ) DIV - 92 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8957
SELECT + + COUNT ( * ) / - 92 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT ALL - COUNT( * ) * - + 64 FROM tab2 AS cor0 WHERE + 72 * col1 IS NOT NULL
----
192

skipif mysql # not compatible
query I rowsort label-8958
SELECT ALL - COUNT ( * ) * - + 64 FROM tab2 AS cor0 WHERE + 72 * col1 IS NOT NULL
----
192

query I rowsort
SELECT ALL ( - + col2 ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8960
SELECT - col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN - 86 * + - 64 * - CAST( NULL AS SIGNED ) AND + CAST( + 22 AS DECIMAL ) AND NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8960
SELECT - col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN - 86 * + - 64 * - CAST ( NULL AS INTEGER ) AND + CAST ( + 22 AS REAL ) AND NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8961
SELECT ALL + 11 DIV + - 81 + COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8961
SELECT ALL + 11 / + - 81 + COUNT ( * ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT col1 + - + col0 - + col1 * + + col1 AS col2 FROM tab0
----
-507
-6495
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT 35 + SUM( - 38 ) FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-8963
SELECT 35 + SUM ( - 38 ) FROM tab0
----
-79

query I rowsort
SELECT - col2 + - + 20 AS col0 FROM tab1
----
-116
-79
-88

query I rowsort
SELECT + col1 * - 38 FROM tab2
----
-1938
-2546
-2926

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab2 WHERE ( NULL IS NULL )
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-8967
SELECT 76 DIV - col2 + + col2 AS col0 FROM tab2 AS cor0
----
20
39
57

skipif mysql # not compatible
query I rowsort label-8967
SELECT 76 / - col2 + + col2 AS col0 FROM tab2 AS cor0
----
20
39
57

query I rowsort
SELECT ALL + + col1 * + 2 AS col1 FROM tab2 AS cor0
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT DISTINCT SUM( - - 69 ) FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-8969
SELECT DISTINCT SUM ( - - 69 ) FROM tab1
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT ALL - COUNT( * ) + - 25 - + COUNT( * ) + - + SUM( - col0 ) * 83 + + + 47 AS col2 FROM tab2 WHERE NULL = + col2 - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL - COUNT ( * ) + - 25 - + COUNT ( * ) + - + SUM ( - col0 ) * 83 + + + 47 AS col2 FROM tab2 WHERE NULL = + col2 - col1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab1 AS cor0 WHERE NOT 53 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 74 * + + 53 + + col0 + + 4 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 22 * - - col2 * col0 AS col2 FROM tab0 AS cor0
----
-15510
-19140
-211266

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT DISTINCT - - COUNT( - + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8974
SELECT DISTINCT - - COUNT ( - + col0 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 14 * 67 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT + + 41 * + COUNT( * ) FROM tab0 cor0
----
123

skipif mysql # not compatible
query I rowsort label-8976
SELECT + + 41 * + COUNT ( * ) FROM tab0 cor0
----
123

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8977
SELECT ALL - CAST( - - 16 AS SIGNED ) * 64 DIV - 31 AS col0 FROM tab1 AS cor0
----
33
33
33

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL - CAST ( - - 16 AS INTEGER ) * 64 / - 31 AS col0 FROM tab1 AS cor0
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT - + ( MAX( + col1 ) ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8978
SELECT - + ( MAX ( + col1 ) ) FROM tab2 AS cor0
----
-77

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 41 + - 31 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT ALL - SUM( - col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL - SUM ( - col2 ) AS col0 FROM tab0
----
156

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 30 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col0, ( - + 36 ) FROM tab2
----
46
-36
64
-36
75
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, - 20 AS col2 FROM tab1
----
-59
-20
-68
-20
-96
-20

query I rowsort
SELECT DISTINCT - - col1 * + col1 + col0 - - col0 FROM tab2 AS cor0
----
2693
4639
6057

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 73 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT DISTINCT SUM( DISTINCT - col2 ) col2 FROM tab2
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8988
SELECT DISTINCT SUM ( DISTINCT - col2 ) col2 FROM tab2
----
-121

onlyif mysql # aggregate syntax: 
query II rowsort label-8989
SELECT DISTINCT + COUNT( * ) + - - COUNT( * ), + 71 AS col1 FROM tab0 AS cor0
----
6
71

skipif mysql # not compatible
query II rowsort label-8989
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( * ), + 71 AS col1 FROM tab0 AS cor0
----
6
71

onlyif mysql # DIV for integer division: 
query I rowsort label-8990
SELECT + - 33 DIV - col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8990
SELECT + - 33 / - col2 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT + + ( 54 ) FROM tab2 AS cor0
----
54
54
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8992
SELECT 8 FROM tab1 AS cor0 WHERE + 90 <= - ( col2 ) * - ( - CAST( + - 7 AS SIGNED ) ) + - + 6
----
8
8
8

skipif mysql # not compatible
query I rowsort label-8992
SELECT 8 FROM tab1 AS cor0 WHERE + 90 <= - ( col2 ) * - ( - CAST ( + - 7 AS INTEGER ) ) + - + 6
----
8
8
8

query I rowsort
SELECT DISTINCT + + 90 + - + col1 AS col2 FROM tab0 AS cor0
----
69
89
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT ALL 93 + - COUNT( * ) FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-8994
SELECT ALL 93 + - COUNT ( * ) FROM tab1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT - SUM( + 0 ) * + + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8995
SELECT - SUM ( + 0 ) * + + COUNT ( * ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT 4 - - + 16 * + COUNT( * ) * - 37 + 46 FROM tab0
----
-1726

skipif mysql # not compatible
query I rowsort label-8996
SELECT 4 - - + 16 * + COUNT ( * ) * - 37 + 46 FROM tab0
----
-1726

query I rowsort
SELECT - 13 - - col1 + + + 2 + - 47 + + col2 FROM tab0
----
-27
42
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT DISTINCT + COUNT( * ) + - - COUNT( + col2 ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8998
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( + col2 ) AS col2 FROM tab2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8999
SELECT 42 + + col0 DIV + col1 AS col2 FROM tab2
----
42
42
43

skipif mysql # not compatible
query I rowsort label-8999
SELECT 42 + + col0 / + col1 AS col2 FROM tab2
----
42
42
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9000
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 9 * COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9000
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 9 * COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + 79 * - - col1 FROM tab0
----
1659
6399
79

query I rowsort
SELECT DISTINCT + 78 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
78

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 45 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT DISTINCT COUNT( ALL col1 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9004
SELECT DISTINCT COUNT ( ALL col1 ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 24 * + 58 FROM tab0 AS cor0
----
-1392

query I rowsort
SELECT ALL + - 49 + col2 * + col2 AS col1 FROM tab0 AS cor0
----
2160
51
9752

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NOT - col0 IN ( - col2, + col1 + 52 )
----
-3

skipif mysql # not compatible
query I rowsort label-9008
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT - col0 IN ( - col2, + col1 + 52 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9009
SELECT + CAST( NULL AS SIGNED ) FROM tab2 WHERE ( NOT NULL IS NULL )
----

skipif mysql # not compatible
query I rowsort label-9009
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 WHERE ( NOT NULL IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - + col2 ) + + + col1 + - - 24 * - + 5 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9011
SELECT ALL + ( + COUNT( * ) ) * 38 + + MIN( DISTINCT col0 ) + - 37 DIV - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL + ( + COUNT ( * ) ) * 38 + + MIN ( DISTINCT col0 ) + - 37 / - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
141

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 52 NOT IN ( + - col1, col1 * + + col2 * - + col1 * + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9013
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + + - 67 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9013
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + + - 67 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT DISTINCT + 12 + - + COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9014
SELECT DISTINCT + 12 + - + COUNT ( * ) FROM tab1 AS cor0
----
9

query II rowsort
SELECT + 23 AS col1, - col0 FROM tab1
----
23
-51
23
-85
23
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col0 * + col1 col0 FROM tab1
----
-430
-4324
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT + MAX( DISTINCT + ( 83 ) ) FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-9017
SELECT + MAX ( DISTINCT + ( 83 ) ) FROM tab0
----
83

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 / - + col1 + + + col2 + - ( + col2 ) / + col1 - - - col2 * 6 * 7 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 29 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9020
SELECT CAST( NULL AS SIGNED ) * - col0 - + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9020
SELECT CAST ( NULL AS INTEGER ) * - col0 - + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col1, 10 AS col0 FROM tab2 AS cor0
----
-51
10
-67
10
-77
10

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT - col2 + col2 IS NULL )
----

query I rowsort
SELECT + - ( + + 30 ) + + 92 + col0 * - 35 * + 75 * - 12 AS col0 FROM tab1 AS cor0
----
1606562
2677562
2866562

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9024
SELECT + col0 + + ( - + CAST( NULL AS SIGNED ) ) * + 18 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9024
SELECT + col0 + + ( - + CAST ( NULL AS INTEGER ) ) * + 18 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT ALL - SUM( ALL + - 44 ) AS col1 FROM tab1 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-9025
SELECT ALL - SUM ( ALL + - 44 ) AS col1 FROM tab1 AS cor0
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9026
SELECT - + 21 + - 34 + + COUNT( * ) * AVG ( ALL + col2 ) / + AVG ( + + CAST( NULL AS SIGNED ) ) / + 43 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9026
SELECT - + 21 + - 34 + + COUNT ( * ) * AVG ( ALL + col2 ) / + AVG ( + + CAST ( NULL AS INTEGER ) ) / + 43 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT - col0 * + col1 + - col1 * - 54, 90 AS col0 FROM tab1 AS cor0
----
-155
90
-1739
90
42
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT - COUNT( * ) + - 65 FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-9028
SELECT - COUNT ( * ) + - 65 FROM tab2 AS cor0
----
-68

query I rowsort
SELECT 83 + - - ( - 14 ) * col2 FROM tab1 AS cor0
----
-1261
-743
-869

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 71 AS col1, 86 * - col2 col1 FROM tab2 AS cor0
----
71
-1978
71
-3440
71
-4988

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT ALL - 6 + COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL - 6 + COUNT ( * ) FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9032
SELECT + ( - + 44 ) DIV + 23 + 40 FROM tab2
----
39
39
39

skipif mysql # not compatible
query I rowsort label-9032
SELECT + ( - + 44 ) / + 23 + 40 FROM tab2
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT MIN( ALL col1 ) * + SUM( DISTINCT col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9033
SELECT MIN ( ALL col1 ) * + SUM ( DISTINCT col2 ) FROM tab0
----
156

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 70 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT DISTINCT + SUM( - - 93 ) * 12 AS col0 FROM tab1 AS cor0
----
3348

skipif mysql # not compatible
query I rowsort label-9035
SELECT DISTINCT + SUM ( - - 93 ) * 12 AS col0 FROM tab1 AS cor0
----
3348

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT 11 NOT BETWEEN NULL AND + 27 )
----

query I rowsort
SELECT ALL + ( 61 ) AS col2 FROM tab1
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT DISTINCT - - COUNT( * ) + 71 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
80

skipif mysql # not compatible
query I rowsort label-9038
SELECT DISTINCT - - COUNT ( * ) + 71 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9039
SELECT DISTINCT col2 * col1 DIV col2 AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9039
SELECT DISTINCT col2 * col1 / col2 AS col1 FROM tab2
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * + col0 * - 40 col0 FROM tab2 AS cor0
----
197120
201000
93840

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 + - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9042
SELECT - CAST( + 54 AS SIGNED ) * col2 + 67 - col0 + - col2 * 61 AS col2 FROM tab0 AS cor0
----
-11415
-1170
-5353

skipif mysql # not compatible
query I rowsort label-9042
SELECT - CAST ( + 54 AS INTEGER ) * col2 + 67 - col0 + - col2 * 61 AS col2 FROM tab0 AS cor0
----
-11415
-1170
-5353

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT 62 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9043
SELECT 62 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9044
SELECT ALL + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9044
SELECT ALL + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < + col2 * + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 * + + col0 * - 95 FROM tab2
----
-201020
-389120
-534375

query I rowsort
SELECT - ( - 59 ) * col2 AS col2 FROM tab2
----
1357
2360
3422

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 67 < + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT ALL + 67 - COUNT( * ) FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-9050
SELECT ALL + 67 - COUNT ( * ) FROM tab0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT - ( - - SUM( + + col0 ) ) + + MIN( - + 49 ) FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-9051
SELECT - ( - - SUM ( + + col0 ) ) + + MIN ( - + 49 ) FROM tab1
----
-276

query I rowsort
SELECT - 86 + 18 FROM tab0
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT SUM( DISTINCT 38 ) FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-9053
SELECT SUM ( DISTINCT 38 ) FROM tab2
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 * + ( + col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
210
3807
99

query I rowsort
SELECT ALL ( - 42 ) FROM tab1 cor0
----
-42
-42
-42

query I rowsort
SELECT - + ( + 11 ) AS col0 FROM tab1 AS cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT ALL + SUM( + + ( + col0 ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL + SUM ( + + ( + col0 ) ) FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT SUM( DISTINCT + 33 ) FROM tab0, tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-9059
SELECT SUM ( DISTINCT + 33 ) FROM tab0, tab0 AS cor0
----
33

query II rowsort
SELECT col0, 71 AS col1 FROM tab1
----
51
71
85
71
91
71

onlyif mysql # aggregate syntax: 
query II rowsort label-9061
SELECT COUNT( DISTINCT + col0 ), 18 AS col1 FROM tab1
----
3
18

skipif mysql # not compatible
query II rowsort label-9061
SELECT COUNT ( DISTINCT + col0 ), 18 AS col1 FROM tab1
----
3
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9062
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-9062
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9063
SELECT ALL * FROM tab2 WHERE - - CAST( NULL AS DECIMAL ) + - col0 < - - col2 / - ( - - 28 ) * - col1
----

skipif mysql # not compatible
query III rowsort label-9063
SELECT ALL * FROM tab2 WHERE - - CAST ( NULL AS REAL ) + - col0 < - - col2 / - ( - - 28 ) * - col1
----

query I rowsort
SELECT ALL 54 FROM tab0 AS cor0 WHERE 25 IS NULL
----

query II rowsort
SELECT ALL + 94, - col0 + - col2 AS col2 FROM tab1 AS cor0
----
94
-144
94
-147
94
-159

query III rowsort
SELECT * FROM tab1 WHERE NOT 58 NOT IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT DISTINCT + - MIN( ALL + - 82 ) * + - 92 AS col1 FROM tab0 cor0
----
-7544

skipif mysql # not compatible
query I rowsort label-9067
SELECT DISTINCT + - MIN ( ALL + - 82 ) * + - 92 AS col1 FROM tab0 cor0
----
-7544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9068
SELECT ALL + ( - - ( + CAST( NULL AS SIGNED ) ) ) * - 38 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9068
SELECT ALL + ( - - ( + CAST ( NULL AS INTEGER ) ) ) * - 38 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9069
SELECT DISTINCT - col0 DIV - - 72 AS col2, ( - + 47 ) FROM tab2 AS cor0
----
-1
-47
0
-47

skipif mysql # not compatible
query II rowsort label-9069
SELECT DISTINCT - col0 / - - 72 AS col2, ( - + 47 ) FROM tab2 AS cor0
----
-1
-47
0
-47

query I rowsort
SELECT DISTINCT 38 * + - col0 FROM tab1
----
-1938
-3230
-3458

query I rowsort
SELECT - ( - 90 ) + + 47 AS col1 FROM tab1
----
137
137
137

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 + + col0 col1 FROM tab2
----
18
27
66

query I rowsort
SELECT DISTINCT col0 * + col1 * + - col0 + 97 AS col0 FROM tab1
----
-36028
-36317
-389110

query I rowsort
SELECT - ( - ( - col1 ) ) * 20 + - col1 * + 73 FROM tab0
----
-1953
-7533
-93

query II rowsort
SELECT col1 + - 78 * + col2 AS col2, - 28 * - - col2 FROM tab2
----
-1743
-644
-3043
-1120
-4457
-1624

query I rowsort
SELECT + col2 + - col0 + 30 FROM tab2
----
13
6
7

query I rowsort
SELECT ALL 38 * - col0 FROM tab1
----
-1938
-3230
-3458

query III rowsort
SELECT * FROM tab0 cor0 WHERE - - col2 + + col2 <> + + 77 AND - ( + + 86 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9079
SELECT - + col1 DIV + col0 - + col2 AS col1, + 85 AS col1 FROM tab2 AS cor0
----
-24
85
-41
85
-58
85

skipif mysql # not compatible
query II rowsort label-9079
SELECT - + col1 / + col0 - + col2 AS col1, + 85 AS col1 FROM tab2 AS cor0
----
-24
85
-41
85
-58
85

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 = ( + - 70 ) + + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9081
SELECT DISTINCT COUNT( * ) + 57 AS col1, - COUNT( * ) FROM tab0
----
60
-3

skipif mysql # not compatible
query II rowsort label-9081
SELECT DISTINCT COUNT ( * ) + 57 AS col1, - COUNT ( * ) FROM tab0
----
60
-3

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE 88 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT + 41 * - - col1 AS col1 FROM tab0 AS cor0
----
3321
41
861

query I rowsort
SELECT ALL + + col0 * - + col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT + + COUNT( * ) * + + 69 AS col2 FROM tab1 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-9085
SELECT + + COUNT ( * ) * + + 69 AS col2 FROM tab1 AS cor0
----
207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 col1 FROM tab0
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT ALL + MAX( DISTINCT + + 95 ) FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-9087
SELECT ALL + MAX ( DISTINCT + + 95 ) FROM tab1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9088
SELECT + ( - COUNT( * ) ) + + - CAST( NULL AS SIGNED ) col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9088
SELECT + ( - COUNT ( * ) ) + + - CAST ( NULL AS INTEGER ) col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + 78 * 18 FROM tab0 AS cor0
----
1404
1404
1404

query II rowsort
SELECT + 11 AS col0, col0 AS col0 FROM tab2 AS cor0
----
11
46
11
64
11
75

query I rowsort
SELECT DISTINCT + col0 + + + 7 + col2 AS col1 FROM tab1 WHERE NOT - - col1 IS NULL
----
151
154
166

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9092
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-9092
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL >= CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT DISTINCT + 46 * - + COUNT( * ) FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-9093
SELECT DISTINCT + 46 * - + COUNT ( * ) FROM tab0
----
-138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 + - - col1 col1 FROM tab2 cor0
----
1224
3157
3953

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT + 53 + COUNT( * ) FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-9095
SELECT + 53 + COUNT ( * ) FROM tab0 AS cor0
----
56

query I rowsort
SELECT DISTINCT col1 * - + col1 FROM tab0 AS cor0 WHERE col1 > NULL
----

query I rowsort
SELECT DISTINCT - 8 + col1 AS col2 FROM tab2 AS cor0
----
43
59
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT DISTINCT + - MAX( ALL - - col1 ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9098
SELECT DISTINCT + - MAX ( ALL - - col1 ) AS col2 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 36 + - col2 * - 55 * + + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT ALL - + 67 + + MAX( - + 49 ) FROM tab1 AS cor0
----
-116

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL - + 67 + + MAX ( - + 49 ) FROM tab1 AS cor0
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT ALL ( - SUM( col0 ) ) + ( - 0 ) FROM tab1 cor0 WHERE + 92 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL ( - SUM ( col0 ) ) + ( - 0 ) FROM tab1 cor0 WHERE + 92 IS NULL
----
NULL

query II rowsort
SELECT ALL + + 19, - col2 AS col1 FROM tab1 cor0
----
19
-59
19
-68
19
-96

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <= + ( + + 74 ) * + - col2 / 93
----

query I rowsort
SELECT DISTINCT 8 - - col0 FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col1 + - - col1 AS col1 FROM tab0
----
162
2
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 33 + - 72 * + - col2 col0 FROM tab2
----
1560
2262
897

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9107
SELECT + col2 * + + col1 * - CAST( + col0 AS SIGNED ) AS col1 FROM tab0 WHERE col2 NOT BETWEEN - 70 AND + 70 * + 21
----

skipif mysql # not compatible
query I rowsort label-9107
SELECT + col2 * + + col1 * - CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 WHERE col2 NOT BETWEEN - 70 AND + 70 * + 21
----

query I rowsort
SELECT + col2 * - col2 AS col0 FROM tab2 WHERE + 68 NOT BETWEEN + col0 AND - ( + 98 ) * - col2
----
-3364

query I rowsort
SELECT col0 * - ( - - col1 ) FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col1 + ( + 53 ) IS NOT NULL
----

query I rowsort
SELECT col1 * - col1 - col1 AS col1 FROM tab2
----
-2652
-4556
-6006

query I rowsort
SELECT + 22 - + - col1 AS col2 FROM tab2
----
73
89
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9113
SELECT - + col2 * - col2 - 33 + + + col1 + + ( - col1 ) * ( - 30 ) * CAST( col2 AS SIGNED ) col0 FROM tab0 AS cor0
----
116467
12739
6388

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9113
SELECT - + col2 * - col2 - 33 + + + col1 + + ( - col1 ) * ( - 30 ) * CAST ( col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
116467
12739
6388

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 67 * - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT DISTINCT + MAX( ALL 75 ) + + - 34 AS col0 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT + MAX ( ALL 75 ) + + - 34 AS col0 FROM tab2 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT ALL - 40 + - - MAX( - + 29 ) FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL - 40 + - - MAX ( - + 29 ) FROM tab0
----
-69

query I rowsort
SELECT DISTINCT col2 * - col0 * + col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT ALL MAX( + col1 ) * - ( 69 ) AS col1 FROM tab1 AS cor0
----
-3243

skipif mysql # not compatible
query I rowsort label-9118
SELECT ALL MAX ( + col1 ) * - ( 69 ) AS col1 FROM tab1 AS cor0
----
-3243

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND - col2 * 49
----

query I rowsort
SELECT + 26 FROM tab0 AS cor0 WHERE NOT - ( - + col2 ) <> col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 14 NOT BETWEEN + col2 * 45 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, ( - col1 ) FROM tab2 cor0
----
46
-51
64
-77
75
-67

query I rowsort
SELECT - col0 * + col2 * - col1 FROM tab2
----
197120
291450
53958

query I rowsort
SELECT DISTINCT col2 * - - 35 AS col2 FROM tab1
----
2065
2380
3360

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT DISTINCT COUNT( * ) * - MAX( + 65 ) AS col0 FROM tab1
----
-195

skipif mysql # not compatible
query I rowsort label-9125
SELECT DISTINCT COUNT ( * ) * - MAX ( + 65 ) AS col0 FROM tab1
----
-195

onlyif mysql # DIV for integer division: 
query II rowsort label-9126
SELECT DISTINCT col0 DIV - col2 AS col1, col1 FROM tab0
----
-8
21
0
1
0
81

skipif mysql # not compatible
query II rowsort label-9126
SELECT DISTINCT col0 / - col2 AS col1, col1 FROM tab0
----
-8
21
0
1
0
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 - - col1 IS NULL
----

query I rowsort
SELECT ALL - 70 * - 30 AS col2 FROM tab2 AS cor0
----
2100
2100
2100

query I rowsort
SELECT DISTINCT col2 * - col1 + + col1 FROM tab2 cor0
----
-1122
-3003
-3819

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT ALL + COUNT( * ) * + COUNT( * ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL + COUNT ( * ) * + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
27

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 68 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9132
SELECT ALL + CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL + CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab1, tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL ( - 16 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT - 84 FROM tab2 AS cor0 WHERE 76 IS NULL
----

query I rowsort
SELECT + + 93 AS col0 FROM tab2 cor0 WHERE col0 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9136
SELECT + col1 * 72 DIV + col0 FROM tab2 AS cor0
----
64
79
86

skipif mysql # not compatible
query I rowsort label-9136
SELECT + col1 * 72 / + col0 FROM tab2 AS cor0
----
64
79
86

query I rowsort
SELECT ( - + col1 ) AS col1 FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT ALL COUNT( + + col1 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9138
SELECT ALL COUNT ( + + col1 ) FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - 85, col0 * - - 46 + - + col0 + ( + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT - ( COUNT( * ) ) + 78 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9141
SELECT - ( COUNT ( * ) ) + 78 FROM tab0 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9142
SELECT - col0 + CAST( NULL AS SIGNED ) * 87 * ( ( - col0 ) ), col2 + + - 34 AS col0 FROM tab1
----
NULL
25
NULL
34
NULL
62

skipif mysql # not compatible
query II rowsort label-9142
SELECT - col0 + CAST ( NULL AS INTEGER ) * 87 * ( ( - col0 ) ), col2 + + - 34 AS col0 FROM tab1
----
NULL
25
NULL
34
NULL
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9143
SELECT - col0 + + col2 * + - CAST( + - 58 AS SIGNED ) AS col2 FROM tab0
----
2711
493
5645

skipif mysql # not compatible
query I rowsort label-9143
SELECT - col0 + + col2 * + - CAST ( + - 58 AS INTEGER ) AS col2 FROM tab0
----
2711
493
5645

query III rowsort
SELECT * FROM tab0 WHERE + 22 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9145
SELECT ALL col2 - - + 88 + col1 DIV + col2 FROM tab2
----
113
129
147

skipif mysql # not compatible
query I rowsort label-9145
SELECT ALL col2 - - + 88 + col1 / + col2 FROM tab2
----
113
129
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col2, col1 FROM tab0 WHERE NOT + col2 IS NULL
----
-15
81
-87
21
-97
1

query I rowsort
SELECT DISTINCT 17 - - col0 FROM tab1
----
102
108
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9148
SELECT + col2 AS col1, CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-9148
SELECT + col2 AS col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - + 9 + + ( col1 ) + col1 - - 24 * + 30 * col0 = + 35 - + col1 + col1 * - col1 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT + MIN( DISTINCT 24 ) - - COUNT( * ) col2 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9150
SELECT + MIN ( DISTINCT 24 ) - - COUNT ( * ) col2 FROM tab2 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT - + MIN( - ( - - 15 ) ) * + 47 * - 65 * - SUM( ALL + col0 ) - 69 AS col0 FROM tab0 AS cor0
----
9119106

skipif mysql # not compatible
query I rowsort label-9151
SELECT - + MIN ( - ( - - 15 ) ) * + 47 * - 65 * - SUM ( ALL + col0 ) - 69 AS col0 FROM tab0 AS cor0
----
9119106

query II rowsort
SELECT DISTINCT col2 AS col2, col0 AS col1 FROM tab1 WHERE ( - ( + col2 ) ) IS NOT NULL
----
59
85
68
91
96
51

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT ( NOT + 7 NOT IN ( - 77, 28, - 78 ) ) OR + col2 IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT DISTINCT - ( - ( + + COUNT( * ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9154
SELECT DISTINCT - ( - ( + + COUNT ( * ) ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT DISTINCT SUM( DISTINCT + col2 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
121

skipif mysql # not compatible
query I rowsort label-9155
SELECT DISTINCT SUM ( DISTINCT + col2 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT ALL - COUNT( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9156
SELECT ALL - COUNT ( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 * - col1 col1 FROM tab2 AS cor0
----
-119646
-336675
-379456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9158
SELECT 54 * - CAST( NULL AS SIGNED ) * - - col1 + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9158
SELECT 54 * - CAST ( NULL AS INTEGER ) * - - col1 + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9159
SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) + - col2 * + 22 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9159
SELECT DISTINCT + col0 * - CAST ( NULL AS INTEGER ) + - col2 * + 22 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9160
SELECT - - MIN( + col2 ) DIV 61 AS col2, - COUNT( * ) FROM tab2 AS cor0
----
0
-3

skipif mysql # not compatible
query II rowsort label-9160
SELECT - - MIN ( + col2 ) / 61 AS col2, - COUNT ( * ) FROM tab2 AS cor0
----
0
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT 35 * - + MAX( - 83 ) AS col2 FROM tab0 AS cor0
----
2905

skipif mysql # not compatible
query I rowsort label-9161
SELECT 35 * - + MAX ( - 83 ) AS col2 FROM tab0 AS cor0
----
2905

onlyif mysql # DIV for integer division: 
query II rowsort label-9162
SELECT ALL col1 AS col2, 77 DIV + + 7 AS col0 FROM tab2
----
51
11
67
11
77
11

skipif mysql # not compatible
query II rowsort label-9162
SELECT ALL col1 AS col2, 77 / + + 7 AS col0 FROM tab2
----
51
11
67
11
77
11

query I rowsort
SELECT col2 * - - 13 FROM tab0
----
1287
130
611

query II rowsort
SELECT ALL 48, + 96 AS col0 FROM tab1
----
48
96
48
96
48
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT ALL + 68 * COUNT( * ) FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL + 68 * COUNT ( * ) FROM tab0
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT ALL - COUNT( * ) AS col2 FROM tab0, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL - COUNT ( * ) AS col2 FROM tab0, tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9167
SELECT SUM( ALL - 56 ) * - CAST( + 1 AS SIGNED ) FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-9167
SELECT SUM ( ALL - 56 ) * - CAST ( + 1 AS INTEGER ) FROM tab2
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT - MAX( DISTINCT - + col0 ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-9168
SELECT - MAX ( DISTINCT - + col0 ) FROM tab2 cor0
----
46

query I rowsort
SELECT DISTINCT + 83 + - + col2 + + + ( col1 ) FROM tab2 cor0 WHERE col2 IS NOT NULL
----
111
120
92

query I rowsort
SELECT 72 + 61 FROM tab1
----
133
133
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9171
SELECT + col0 + + CAST( + 58 AS SIGNED ) FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9171
SELECT + col0 + + CAST ( + 58 AS INTEGER ) FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 * col2 AS col0 FROM tab0 WHERE NOT - col0 NOT IN ( ( - col2 ) * 75 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT SUM( col2 ) col2 FROM tab1 WHERE 25 * - 26 NOT IN ( col0 )
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9173
SELECT SUM ( col2 ) col2 FROM tab1 WHERE 25 * - 26 NOT IN ( col0 )
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9174
SELECT ALL * FROM tab1 WHERE ( - col0 * - col0 ) BETWEEN NULL AND + CAST( 88 AS SIGNED ) / col0
----

skipif mysql # not compatible
query III rowsort label-9174
SELECT ALL * FROM tab1 WHERE ( - col0 * - col0 ) BETWEEN NULL AND + CAST ( 88 AS INTEGER ) / col0
----

query I rowsort
SELECT ALL + col1 - + col2 * ( 14 ) AS col0 FROM tab0
----
-119
-1385
-577

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 / + col0 IN ( - 4 + + ( col2 ) )
----

query I rowsort
SELECT + col1 * 2 AS col2 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT + COUNT( DISTINCT - col1 ) * ( 21 * - 41 ) col2 FROM tab0
----
-2583

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9178
SELECT + COUNT ( DISTINCT - col1 ) * ( 21 * - 41 ) col2 FROM tab0
----
-2583

query I rowsort
SELECT ALL + col0 + + 27 AS col0 FROM tab0 WHERE - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 / col0 <= + 12
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE - col0 + + col2 * col1 IS NULL
----

query I rowsort
SELECT 13 - + col2 * + col1 AS col0 FROM tab2
----
-1160
-3067
-3873

query I rowsort
SELECT DISTINCT + col1 * 80 FROM tab1
----
1120
3760
400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9184
SELECT ALL col0 * - CAST( - 75 AS SIGNED ) + 90 col1 FROM tab0 WHERE NOT col0 IN ( - 26 )
----
1215
6615
7365

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9184
SELECT ALL col0 * - CAST ( - 75 AS INTEGER ) + 90 col1 FROM tab0 WHERE NOT col0 IN ( - 26 )
----
1215
6615
7365

query I rowsort
SELECT DISTINCT - 87 * - col1 FROM tab1
----
1218
4089
435

query I rowsort
SELECT ALL col0 * + col1 FROM tab1 WHERE NOT 36 IS NULL
----
425
4277
714

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 ) BETWEEN ( - col1 ) AND - 29
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9188
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9188
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9189
SELECT + 21 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9189
SELECT + 21 / col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT ALL - 28 + - COUNT( ALL col1 ) AS col0 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-9190
SELECT ALL - 28 + - COUNT ( ALL col1 ) AS col0 FROM tab0
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-9191
SELECT col1 DIV 97 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9191
SELECT col1 / 97 AS col0 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9192
SELECT col2 DIV - 67 AS col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9192
SELECT col2 / - 67 AS col2 FROM tab1
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9193
SELECT ALL 13 * col0 + + col0 DIV col2 FROM tab2
----
600
833
976

skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL 13 * col0 + + col0 / col2 FROM tab2
----
600
833
976

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9194
SELECT ALL CAST( 1 AS SIGNED ) DIV - col2 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL CAST ( 1 AS INTEGER ) / - col2 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT MAX( - col0 ) * + 36 FROM tab0
----
-540

skipif mysql # not compatible
query I rowsort label-9195
SELECT MAX ( - col0 ) * + 36 FROM tab0
----
-540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9196
SELECT 2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9196
SELECT 2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 / - 93 + + col1 = col2 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT ( + COUNT( * ) ) AS col0 FROM tab1 cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-9198
SELECT ( + COUNT ( * ) ) AS col0 FROM tab1 cor0 CROSS JOIN tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT ALL - COUNT( DISTINCT 57 ) * 24 FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9199
SELECT ALL - COUNT ( DISTINCT 57 ) * 24 FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + ( + 46 ) AS col2 FROM tab0
----
46
46
46

query I rowsort
SELECT DISTINCT 15 * + col2 AS col2 FROM tab2
----
345
600
870

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT + MAX( ALL 10 ) AS col0 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9202
SELECT + MAX ( ALL 10 ) AS col0 FROM tab1 AS cor0
----
10

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( col1 ) ) IS NULL
----

query I rowsort
SELECT ( + 69 ) FROM tab0 AS cor0
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT DISTINCT + - 68 * - COUNT( * ) AS col1 FROM tab2 cor0
----
204

skipif mysql # not compatible
query I rowsort label-9205
SELECT DISTINCT + - 68 * - COUNT ( * ) AS col1 FROM tab2 cor0
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT ALL + COUNT( * ) * - MAX( - col2 ) AS col1 FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-9206
SELECT ALL + COUNT ( * ) * - MAX ( - col2 ) AS col1 FROM tab1 AS cor0
----
177

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + col0 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9208
SELECT DISTINCT col2 + + 46 AS col0 FROM tab2 AS cor0 WHERE NOT ( CAST( 67 AS SIGNED ) * col1 + 77 ) IN ( + col2 * + col0 )
----
104
69
86

skipif mysql # not compatible
query I rowsort label-9208
SELECT DISTINCT col2 + + 46 AS col0 FROM tab2 AS cor0 WHERE NOT ( CAST ( 67 AS INTEGER ) * col1 + 77 ) IN ( + col2 * + col0 )
----
104
69
86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9209
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9209
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> CAST ( - col1 AS INTEGER )
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col0 )
----

query I rowsort
SELECT DISTINCT 0 + - ( col1 ) AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9212
SELECT ALL * FROM tab1 WHERE NOT - col1 IS NULL OR NOT NULL < - ( - CAST( NULL AS SIGNED ) ) / col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9212
SELECT ALL * FROM tab1 WHERE NOT - col1 IS NULL OR NOT NULL < - ( - CAST ( NULL AS INTEGER ) ) / col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9213
SELECT COUNT( * ) * - ( - 98 ) * COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9213
SELECT COUNT ( * ) * - ( - 98 ) * COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT DISTINCT + MAX( 0 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9214
SELECT DISTINCT + MAX ( 0 ) AS col2 FROM tab0
----
0

query I rowsort
SELECT col1 * 41 FROM tab0
----
3321
41
861

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT DISTINCT 54 * COUNT( col1 ) FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-9216
SELECT DISTINCT 54 * COUNT ( col1 ) FROM tab0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT DISTINCT + MIN( 63 ) * COUNT( * ) AS col0 FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-9217
SELECT DISTINCT + MIN ( 63 ) * COUNT ( * ) AS col0 FROM tab2
----
189

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 - - 37 * - 11 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE NOT ( 54 + + col1 ) NOT BETWEEN col2 + - col0 AND - col1 * + 16
----
0

skipif mysql # not compatible
query I rowsort label-9219
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( 54 + + col1 ) NOT BETWEEN col2 + - col0 AND - col1 * + 16
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT ALL COUNT( * ) * - - 80 FROM tab0 cor0
----
240

skipif mysql # not compatible
query I rowsort label-9220
SELECT ALL COUNT ( * ) * - - 80 FROM tab0 cor0
----
240

query I rowsort
SELECT ALL - 96 * + col0 FROM tab0 AS cor0
----
-1440
-8352
-9312

query I rowsort
SELECT 74 + 86 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 ) NOT BETWEEN ( col0 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 31 * col1 + + ( 35 ) * col0 AS col0 FROM tab1 cor0
----
1351
1728
2820

query I rowsort
SELECT 77 * 58 * + ( + col0 ) + 76 + col2 AS col2 FROM tab2 AS cor0
----
205535
285940
335084

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9226
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST( col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9226
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST ( col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9227
SELECT DISTINCT ( 12 ) DIV col1 * 99 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9227
SELECT DISTINCT ( 12 ) / col1 * 99 FROM tab2
----
0

query I rowsort
SELECT ALL 73 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + - 76 AND NULL
----

query I rowsort
SELECT - 81 * + col1 + - + col0 + col0 AS col1 FROM tab2 AS cor0
----
-4131
-5427
-6237

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 ) IN ( - 11 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9231
SELECT ALL - col1 DIV - col2 + + col2 AS col2 FROM tab2 AS cor0
----
25
41
59

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL - col1 / - col2 + + col2 AS col2 FROM tab2 AS cor0
----
25
41
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT ALL - - SUM( + col1 ) + - + COUNT( + 85 ) FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL - - SUM ( + col1 ) + - + COUNT ( + 85 ) FROM tab1 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT 93 * + - 34 + + - ( 21 ) + COUNT( * ) FROM tab2 AS cor0
----
-3180

skipif mysql # not compatible
query I rowsort label-9233
SELECT 93 * + - 34 + + - ( 21 ) + COUNT ( * ) FROM tab2 AS cor0
----
-3180

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT COUNT( * ) + - 36 * + SUM( + col2 ) + + 2 * + 12 FROM tab0
----
-5589

skipif mysql # not compatible
query I rowsort label-9234
SELECT COUNT ( * ) + - 36 * + SUM ( + col2 ) + + 2 * + 12 FROM tab0
----
-5589

onlyif mysql # DIV for integer division: 
query I rowsort label-9235
SELECT 8 + 40 + - col2 DIV + col0 * col0 AS col0 FROM tab2
----
48
48
48

skipif mysql # not compatible
query I rowsort label-9235
SELECT 8 + 40 + - col2 / + col0 * col0 AS col0 FROM tab2
----
48
48
48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9236
SELECT DISTINCT + COUNT( * ) - + CAST( NULL AS DECIMAL ) FROM tab2 WHERE ( + col2 * + 20 * col0 ) <= + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9236
SELECT DISTINCT + COUNT ( * ) - + CAST ( NULL AS REAL ) FROM tab2 WHERE ( + col2 * + 20 * col0 ) <= + col1
----
NULL

query I rowsort
SELECT DISTINCT + col2 * + 49 * - col1 + - col1 + col0 AS col1 FROM tab1
----
-14375
-156560
-65819

onlyif mysql # DIV for integer division: 
query I rowsort label-9238
SELECT - + 98 DIV col1 * ( - 33 ) + 66 col0 FROM tab2 AS cor0
----
99
99
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9238
SELECT - + 98 / col1 * ( - 33 ) + 66 col0 FROM tab2 AS cor0
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT DISTINCT - ( + SUM( DISTINCT + 96 ) ) AS col1 FROM tab1 WHERE NOT + + col2 NOT BETWEEN - - col0 AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9239
SELECT DISTINCT - ( + SUM ( DISTINCT + 96 ) ) AS col1 FROM tab1 WHERE NOT + + col2 NOT BETWEEN - - col0 AND ( NULL )
----
NULL

query I rowsort
SELECT + col2 * ( + 18 ) * + col0 FROM tab1
----
111384
88128
90270

onlyif mysql # aggregate syntax: 
query II rowsort label-9241
SELECT DISTINCT - COUNT( * ) AS col0, 85 FROM tab2
----
-3
85

skipif mysql # not compatible
query II rowsort label-9241
SELECT DISTINCT - COUNT ( * ) AS col0, 85 FROM tab2
----
-3
85

query I rowsort
SELECT ( + 63 ) AS col2 FROM tab0 cor0
----
63
63
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 19 col1 FROM tab2 cor0 WHERE + col1 * - + col0 IS NOT NULL
----
19
19
19

query I rowsort
SELECT - col1 + 51 FROM tab0 AS cor0
----
-30
30
50

query I rowsort
SELECT - 96 * - col1 + + col0 * + col2 FROM tab0 AS cor0
----
2886
8481
9699

query I rowsort
SELECT - col2 * + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 71 + col0 IS NULL
----

query I rowsort
SELECT - + ( - + col0 ) FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT ALL - 75 + + + 42 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 24, + 20 col2 FROM tab0
----
24
20
24
20
24
20

onlyif mysql # aggregate syntax: 
query II rowsort label-9251
SELECT ALL 60, - COUNT( + 14 ) AS col0 FROM tab1
----
60
-3

skipif mysql # not compatible
query II rowsort label-9251
SELECT ALL 60, - COUNT ( + 14 ) AS col0 FROM tab1
----
60
-3

query I rowsort
SELECT ( + col0 ) * col1 FROM tab1
----
425
4277
714

query III rowsort
SELECT * FROM tab1 WHERE - - col0 * + 37 > - + 28 * + col0 + 38
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9254
SELECT DISTINCT 10 * - CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9254
SELECT DISTINCT 10 * - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 12 + + 10 col1 FROM tab1 AS cor0
----
22

query III rowsort
SELECT * FROM tab1 WHERE ( - 84 + - + 16 - + col2 ) IS NULL
----

query I rowsort
SELECT 1 * + 44 FROM tab1 AS cor0
----
44
44
44

query II rowsort
SELECT 15 AS col0, 55 - - + 44 FROM tab1 AS cor0 WHERE NULL IS NULL
----
15
99
15
99
15
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT DISTINCT - COUNT( * ) - + 72 AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9259
SELECT DISTINCT - COUNT ( * ) - + 72 AS col2 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT DISTINCT - 35 + + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-9260
SELECT DISTINCT - 35 + + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0 + + 48 col2, col1 FROM tab2 AS cor0
----
-16
77
-27
67
2
51

query I rowsort
SELECT col2 - ( - col1 ) FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT DISTINCT COUNT( + col2 ) * + 0 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9263
SELECT DISTINCT COUNT ( + col2 ) * + 0 AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL + 79 * - col1 AS col2 FROM tab0
----
-1659
-6399
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-9265
SELECT 34, COUNT( ALL + 75 ) + - - 67 AS col0 FROM tab1
----
34
70

skipif mysql # not compatible
query II rowsort label-9265
SELECT 34, COUNT ( ALL + 75 ) + - - 67 AS col0 FROM tab1
----
34
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT DISTINCT 56 * ( MAX( - col2 ) ) AS col2 FROM tab0
----
-560

skipif mysql # not compatible
query I rowsort label-9266
SELECT DISTINCT 56 * ( MAX ( - col2 ) ) AS col2 FROM tab0
----
-560

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * - - col0 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9268
SELECT ALL + 96 DIV - 72 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL + 96 / - 72 FROM tab2
----
-1
-1
-1

query II rowsort
SELECT col2 AS col2, col1 + + + 28 AS col1 FROM tab1
----
59
33
68
75
96
42

query I rowsort
SELECT ( + + 12 ) FROM tab0
----
12
12
12

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9271
SELECT * FROM tab0 WHERE NOT + CAST( NULL AS DECIMAL ) * col1 * col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9271
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS REAL ) * col1 * col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 59 AS col1, col1 col0 FROM tab1 AS cor0
----
59
14
59
47
59
5

query I rowsort
SELECT 60 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT DISTINCT + MIN( - col2 ) AS col1 FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT + MIN ( - col2 ) AS col1 FROM tab2 cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT ALL - SUM( ALL - col2 ) * + MAX( ALL - ( - 70 ) ) AS col0 FROM tab0 AS cor0
----
10920

skipif mysql # not compatible
query I rowsort label-9275
SELECT ALL - SUM ( ALL - col2 ) * + MAX ( ALL - ( - 70 ) ) AS col0 FROM tab0 AS cor0
----
10920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9276
SELECT + CAST( NULL AS SIGNED ) + col2 FROM tab1 WHERE NOT NULL IN ( + col2, col2 * 48 )
----

skipif mysql # not compatible
query I rowsort label-9276
SELECT + CAST ( NULL AS INTEGER ) + col2 FROM tab1 WHERE NOT NULL IN ( + col2, col2 * 48 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT DISTINCT - COUNT( * ) * MIN( DISTINCT + 60 ) col0 FROM tab1 WHERE NOT - + 33 IS NULL
----
-180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9277
SELECT DISTINCT - COUNT ( * ) * MIN ( DISTINCT + 60 ) col0 FROM tab1 WHERE NOT - + 33 IS NULL
----
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 col2 FROM tab1 AS cor0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT DISTINCT - MIN( DISTINCT - 4 ) FROM tab1 cor0
----
4

skipif mysql # not compatible
query I rowsort label-9279
SELECT DISTINCT - MIN ( DISTINCT - 4 ) FROM tab1 cor0
----
4

query I rowsort
SELECT DISTINCT - + 94 FROM tab1 AS cor0 WHERE NOT ( - col1 ) / - - col2 + - col0 IS NULL
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-9281
SELECT DISTINCT - col0 + - 34 DIV - col1 FROM tab1 AS cor0
----
-49
-79
-91

skipif mysql # not compatible
query I rowsort label-9281
SELECT DISTINCT - col0 + - 34 / - col1 FROM tab1 AS cor0
----
-49
-79
-91

query II rowsort
SELECT col2 AS col1, col1 AS col2 FROM tab2
----
23
51
40
77
58
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - ( - col1 ) * - col2 col0 FROM tab1
----
-1248
-236
-3128

query I rowsort
SELECT ALL + ( - 61 ) AS col0 FROM tab1
----
-61
-61
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-9285
SELECT DISTINCT - 37 DIV + - col2 + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9285
SELECT DISTINCT - 37 / + - col2 + col2 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 / 46 * - 84 + - 89 = col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-9287
SELECT 83 col1, + MAX( - col0 ) col1 FROM tab2 AS cor0
----
83
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9287
SELECT 83 col1, + MAX ( - col0 ) col1 FROM tab2 AS cor0
----
83
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 69 * - - col0 col0 FROM tab0
----
5982
6692
954

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT ALL - - COUNT( * ) - 63 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-9289
SELECT ALL - - COUNT ( * ) - 63 FROM tab0 AS cor0
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 76 col1 FROM tab2 AS cor0
----
1748
3040
4408

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT ALL - - MIN( col2 ) col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9291
SELECT ALL - - MIN ( col2 ) col2 FROM tab2 AS cor0
----
23

query I rowsort
SELECT - 3 + col1 AS col0 FROM tab2 AS cor0
----
48
64
74

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col0 AND + 22 * 8
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9294
SELECT + ( - col0 ) + + 92 DIV - 58 FROM tab0 AS cor0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-9294
SELECT + ( - col0 ) + + 92 / - 58 FROM tab0 AS cor0
----
-16
-88
-98

query II rowsort
SELECT ALL + col2, 2 * 73 FROM tab1 AS cor0 WHERE NOT col1 * - col1 * + 34 * - col1 IS NOT NULL
----

query I rowsort
SELECT ALL 78 * col2 FROM tab1 AS cor0
----
4602
5304
7488

query I rowsort
SELECT col0 * 63 AS col0 FROM tab2 AS cor0
----
2898
4032
4725

query I rowsort
SELECT ALL + + col1 * + + col1 AS col0 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9299
SELECT ALL - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ( - + col1 ) AS col1, - 60 * + + col2 AS col0 FROM tab2
----
-51
-1380
-67
-3480
-77
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT ALL COUNT( * ) * - COUNT( * ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2
----
-9

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NOT col0 BETWEEN 59 AND ( NULL ) ) )
----
15
81
47

query II rowsort
SELECT 53 AS col2, - 22 * + 29 FROM tab2, tab2 AS cor0
----
18 values hashing to 01d153ed055da7769a370611d1168d62

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NOT ( - col1 / + col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col0 NOT IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 / 20 IS NOT NULL
----

query II rowsort
SELECT ALL ( + col1 ), col0 - 13 AS col2 FROM tab2 AS cor0
----
51
33
67
62
77
51

query I rowsort
SELECT DISTINCT + col2 * - 1 * + - col0 * + col2 AS col0 FROM tab2 AS cor0
----
102400
24334
252300

query I rowsort
SELECT ALL + - 52 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT + + col1 * - ( - col2 ) + - + col0 AS col1 FROM tab2 AS cor0
----
1127
3016
3811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0, - col0 col2 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9312
SELECT ALL + + MAX( + 55 ) + + MIN( + 5 ) DIV COUNT( * ) * + 99 FROM tab1 AS cor0
----
154

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL + + MAX ( + 55 ) + + MIN ( + 5 ) / COUNT ( * ) * + 99 FROM tab1 AS cor0
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT - + COUNT( * ) + 43 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-9313
SELECT - + COUNT ( * ) + 43 FROM tab1 AS cor0
----
40

query I rowsort
SELECT ALL + 37 * + + col2 + + col2 FROM tab2 AS cor0
----
1520
2204
874

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT ALL + MAX( + 50 ) + - 17 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL + MAX ( + 50 ) + - 17 FROM tab1
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9316
SELECT ALL col2 + CAST( NULL AS DECIMAL ) + + + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9316
SELECT ALL col2 + CAST ( NULL AS REAL ) + + + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * col0 * 96 * + 48 AS col0 FROM tab2
----
10810368
22708224
23155200

query III rowsort
SELECT * FROM tab0 WHERE - col1 / - ( - col0 ) + col1 <> NULL
----

query I rowsort
SELECT - col0 * - ( - col2 ) AS col2 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT ALL 89 - 48 + + col1 FROM tab2
----
108
118
92

query I rowsort
SELECT ALL col2 + + + col0 AS col1 FROM tab0 WHERE NOT + - col2 = col0
----
196
62
97

query I rowsort
SELECT + col2 + + col1 - + - col2 + + + col1 * + - col2 + + col0 FROM tab0 AS cor0
----
-3617
-82
197

onlyif mysql # aggregate syntax: 
query II rowsort label-9323
SELECT ALL 21 + - COUNT( * ), + MIN( 87 ) AS col2 FROM tab1 AS cor0
----
18
87

skipif mysql # not compatible
query II rowsort label-9323
SELECT ALL 21 + - COUNT ( * ), + MIN ( 87 ) AS col2 FROM tab1 AS cor0
----
18
87

query I rowsort
SELECT ALL - 20 + col2 AS col2 FROM tab0 AS cor0
----
-10
27
79

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE ( 64 ) * - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 40 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9327
SELECT + MAX( - + CAST( + col0 AS SIGNED ) ) AS col1, + ( 31 ) * - 27 FROM tab2
----
-46
-837

skipif mysql # not compatible
query II rowsort label-9327
SELECT + MAX ( - + CAST ( + col0 AS INTEGER ) ) AS col1, + ( 31 ) * - 27 FROM tab2
----
-46
-837

query I rowsort
SELECT - col1 * + col1 * + - 30 AS col1 FROM tab1
----
5880
66270
750

query II rowsort
SELECT ALL - - 89 AS col2, 72 FROM tab1 AS cor0
----
89
72
89
72
89
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9330
SELECT - col2, + CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-9330
SELECT - col2, + CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 98 <> NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col2 = ( NULL )
----

query I rowsort
SELECT ( + - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> + col0 + + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9334
SELECT ALL - col1, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 / - + col2 <= - 74
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-9334
SELECT ALL - col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 / - + col2 <= - 74
----
-51
NULL
-67
NULL
-77
NULL

query I rowsort
SELECT + 78 / + 81 * 54 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN 69 AND col0
----

query I rowsort
SELECT DISTINCT - + col1 FROM tab2 AS cor0 WHERE NOT + col1 * + + 0 <= NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col0, col1 AS col1 FROM tab0
----
10
21
47
81
99
1

query I rowsort
SELECT - 63 * + col0 AS col2 FROM tab1
----
-3213
-5355
-5733

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT - MAX( DISTINCT - 45 ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-9339
SELECT - MAX ( DISTINCT - 45 ) FROM tab0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9340
SELECT DISTINCT CAST( NULL AS SIGNED ) * - ( + AVG ( ALL - col1 ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9340
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - ( + AVG ( ALL - col1 ) ) FROM tab1
----
NULL

query II rowsort
SELECT ALL col2, col2 + + col1 FROM tab1
----
59
64
68
115
96
110

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE + - 92 BETWEEN col2 * 84 AND ( col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 61 < col1 + - col1 + 66
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9344
SELECT ALL - CAST( 76 AS SIGNED ) FROM tab2 AS cor0
----
-76
-76
-76

skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL - CAST ( 76 AS INTEGER ) FROM tab2 AS cor0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT 72 * SUM( col1 ) FROM tab1 AS cor0
----
4752

skipif mysql # not compatible
query I rowsort label-9345
SELECT 72 * SUM ( col1 ) FROM tab1 AS cor0
----
4752

query I rowsort
SELECT DISTINCT col0 * + col0 * ( - 94 ) AS col1 FROM tab2 AS cor0 WHERE NOT 40 IS NULL
----
-198904
-385024
-528750

query I rowsort
SELECT DISTINCT ( + 17 ) AS col2 FROM tab1
----
17

query I rowsort
SELECT col0 FROM tab0 WHERE NOT + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9349
SELECT - CAST( - 87 AS SIGNED ) col1 FROM tab1
----
87
87
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9349
SELECT - CAST ( - 87 AS INTEGER ) col1 FROM tab1
----
87
87
87

query I rowsort
SELECT DISTINCT + + col2 + - - col2 AS col0 FROM tab0 AS cor0
----
198
20
94

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 >= + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9352
SELECT - 81 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9352
SELECT - 81 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT ALL + COUNT( DISTINCT + col2 ) + - + ( + - SUM( DISTINCT col0 ) ) + + 22 AS col1 FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-9353
SELECT ALL + COUNT ( DISTINCT + col2 ) + - + ( + - SUM ( DISTINCT col0 ) ) + + 22 AS col1 FROM tab2
----
210

query II rowsort
SELECT ALL col0, 55 AS col1 FROM tab0
----
15
55
87
55
97
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9355
SELECT ALL COUNT( * ) DIV 71 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL COUNT ( * ) / 71 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9356
SELECT DISTINCT + 93 AS col1, SUM( + 52 ) FROM tab0 cor0
----
93
156

skipif mysql # not compatible
query II rowsort label-9356
SELECT DISTINCT + 93 AS col1, SUM ( + 52 ) FROM tab0 cor0
----
93
156

query I rowsort
SELECT ALL - 14 * - ( + col2 ) AS col2 FROM tab2 AS cor0
----
322
560
812

query I rowsort
SELECT + + col0 - + 46 * + col2 FROM tab0 AS cor0
----
-2147
-373
-4457

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT + COUNT( * ) * + COUNT( ALL + col2 ) - COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9359
SELECT + COUNT ( * ) * + COUNT ( ALL + col2 ) - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col1 * + + ( + - col0 ) + - 1 * - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9362
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NOT CAST( NULL AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-9362
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NOT CAST ( NULL AS INTEGER ) IS NULL )
----

query II rowsort
SELECT + - 64 * - - col0, + 27 AS col1 FROM tab2 AS cor0
----
-2944
27
-4096
27
-4800
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9364
SELECT + + CAST( NULL AS SIGNED ) * + col1 * col1 col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9364
SELECT + + CAST ( NULL AS INTEGER ) * + col1 * col1 col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9365
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IN ( + ( + + col0 ) + CAST( NULL AS SIGNED ), 16 ) )
----

skipif mysql # not compatible
query I rowsort label-9365
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IN ( + ( + + col0 ) + CAST ( NULL AS INTEGER ), 16 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT + + COUNT( + 0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9366
SELECT + + COUNT ( + 0 ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 + 69 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9368
SELECT ALL - CAST( + - ( col2 ) AS SIGNED ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9368
SELECT ALL - CAST ( + - ( col2 ) AS INTEGER ) FROM tab1
----
59
68
96

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN + col0 AND - - 55
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9370
SELECT + CAST( col2 AS SIGNED ) / - 7 - + 42 + col2 FROM tab2 WHERE NOT ( ( - CAST( - col1 AS SIGNED ) ) * - - col0 ) <> + col1
----

skipif mysql # not compatible
query I rowsort label-9370
SELECT + CAST ( col2 AS INTEGER ) / - 7 - + 42 + col2 FROM tab2 WHERE NOT ( ( - CAST ( - col1 AS INTEGER ) ) * - - col0 ) <> + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9371
SELECT 38 DIV - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9371
SELECT 38 / - col0 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT - 3 * COUNT( * ) * 75 FROM tab2 AS cor0
----
-675

skipif mysql # not compatible
query I rowsort label-9373
SELECT - 3 * COUNT ( * ) * 75 FROM tab2 AS cor0
----
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT COUNT( - - col0 ) + 68 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-9374
SELECT COUNT ( - - col0 ) + 68 FROM tab0 AS cor0
----
71

query I rowsort
SELECT ALL col0 + - + col2 * - col0 * ( col2 ) FROM tab0 AS cor0
----
33150
8787
950794

query II rowsort
SELECT + - col2, + 57 * - - ( + 74 ) + + + ( + 63 ) AS col0 FROM tab0 AS cor0
----
-10
4281
-47
4281
-99
4281

onlyif mysql # DIV for integer division: 
query II rowsort label-9377
SELECT ALL + col2 col0, col2 DIV - col2 FROM tab0 AS cor0
----
10
-1
47
-1
99
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9377
SELECT ALL + col2 col0, col2 / - col2 FROM tab0 AS cor0
----
10
-1
47
-1
99
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9378
SELECT ALL - - col2 DIV 1 + - col0 AS col0 FROM tab1 AS cor0
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL - - col2 / 1 + - col0 AS col0 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT ALL 25 + ( COUNT( * ) ) FROM tab1 cor0
----
28

skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL 25 + ( COUNT ( * ) ) FROM tab1 cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT DISTINCT + 86 - + - SUM( - + ( col0 ) ) AS col1 FROM tab0
----
-113

skipif mysql # not compatible
query I rowsort label-9380
SELECT DISTINCT + 86 - + - SUM ( - + ( col0 ) ) AS col1 FROM tab0
----
-113

query I rowsort
SELECT ALL ( - col1 ) - ( + ( 22 ) ) AS col1 FROM tab2
----
-73
-89
-99

query I rowsort
SELECT ALL col2 + - 41 + - col0 + + 26 + col2 FROM tab2
----
-15
1
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9383
SELECT DISTINCT col0 - - - ( - + 72 ) - - CAST( NULL AS SIGNED ) * + + col0 + - + 68 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9383
SELECT DISTINCT col0 - - - ( - + 72 ) - - CAST ( NULL AS INTEGER ) * + + col0 + - + 68 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col0 + - col1 - - + 28 FROM tab1 AS cor0
----
108
65
72

query I rowsort
SELECT DISTINCT 44 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * - - 65 * - ( + col2 ) AS col2 FROM tab1
----
-318240
-325975
-402220

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + col2 ) col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9388
SELECT ALL - 90 DIV COUNT( * ) FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL - 90 / COUNT ( * ) FROM tab1 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT ALL - + MAX( - - col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9389
SELECT ALL - + MAX ( - - col2 ) AS col0 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT DISTINCT + - 26 AS col0 FROM tab0 AS cor0
----
-26

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
-15
-87
-97

query I rowsort
SELECT ALL 40 AS col1 FROM tab0 cor0
----
40
40
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9393
SELECT col1 * + CAST( col1 AS SIGNED ) * - ( col2 ) - - + col2 AS col1 FROM tab0 AS cor0
----
-308320
-4400
0

skipif mysql # not compatible
query I rowsort label-9393
SELECT col1 * + CAST ( col1 AS INTEGER ) * - ( col2 ) - - + col2 AS col1 FROM tab0 AS cor0
----
-308320
-4400
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT ALL + MIN( 83 ) AS col1 FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL + MIN ( 83 ) AS col1 FROM tab1 AS cor0
----
83

query II rowsort
SELECT DISTINCT col2 AS col1, + col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT MIN( ALL + - 86 ) * 62 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
15996

skipif mysql # not compatible
query I rowsort label-9396
SELECT MIN ( ALL + - 86 ) * 62 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
15996

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT + COUNT( * ) * + SUM( DISTINCT col0 ) FROM tab0
----
597

skipif mysql # not compatible
query I rowsort label-9397
SELECT + COUNT ( * ) * + SUM ( DISTINCT col0 ) FROM tab0
----
597

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT ALL - MIN( - 20 ) AS col0 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-9398
SELECT ALL - MIN ( - 20 ) AS col0 FROM tab2
----
20

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 45 ) - + - col2 = col2 + + - col0
----

query II rowsort
SELECT col2, + col0 * + col1 AS col2 FROM tab0
----
10
1827
47
1215
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL > NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9401
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL > NULL )
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 >= - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( - col2 ) * + col1 + - 21 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * - - col2 * col1 FROM tab2 AS cor0
----
197120
291450
53958

query I rowsort
SELECT ALL col0 / + col1 + col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT 97 + - col2 * + 12 AS col0, col0 FROM tab2 cor0
----
-179
46
-383
64
-599
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 NOT IN ( + 73, col0, + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + col1 ) col2 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT DISTINCT - + COUNT( * ) + 92 FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-9409
SELECT DISTINCT - + COUNT ( * ) + 92 FROM tab2 AS cor0
----
89

query I rowsort
SELECT ( 70 ) + 95 * col1 + + + 21 FROM tab0
----
186
2086
7786

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9411
SELECT DISTINCT col2, CAST( NULL AS SIGNED ) FROM tab1 WHERE - 70 >= - col2 + CAST( 95 AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-9411
SELECT DISTINCT col2, CAST ( NULL AS INTEGER ) FROM tab1 WHERE - 70 >= - col2 + CAST ( 95 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( - 80 ) NOT IN ( + col2, 38 / 19 + col2, - - ( + 18 ), + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col2, col2 * + 28 AS col0 FROM tab1
----
59
1652
68
1904
96
2688

query I rowsort
SELECT DISTINCT + col0 - + 71 FROM tab2
----
-25
-7
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT ALL - COUNT( * ) * + + 56 FROM tab1 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-9415
SELECT ALL - COUNT ( * ) * + + 56 FROM tab1 AS cor0
----
-168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col1 ) col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9417
SELECT 56 / - + AVG ( DISTINCT 87 ) * + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9417
SELECT 56 / - + AVG ( DISTINCT 87 ) * + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 66 col2 FROM tab2 AS cor0
----
-3366
-4422
-5082

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE 81 NOT BETWEEN + col2 AND NULL
----
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT 95 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9421
SELECT DISTINCT + ( CAST( 0 AS SIGNED ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9421
SELECT DISTINCT + ( CAST ( 0 AS INTEGER ) ) AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT - - 40 - - - COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL
----
40

skipif mysql # not compatible
query I rowsort label-9422
SELECT - - 40 - - - COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-9423
SELECT 61 * + col0 DIV - col0 + - 15 + 8 DIV - 66 AS col0 FROM tab1 AS cor0
----
-76
-76
-76

skipif mysql # not compatible
query I rowsort label-9423
SELECT 61 * + col0 / - col0 + - 15 + 8 / - 66 AS col0 FROM tab1 AS cor0
----
-76
-76
-76

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( - 33 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 col0 FROM tab0 AS cor0
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT DISTINCT + MIN( DISTINCT + ( - 76 ) ) FROM tab2 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-9426
SELECT DISTINCT + MIN ( DISTINCT + ( - 76 ) ) FROM tab2 AS cor0
----
-76

query I rowsort
SELECT ALL + ( - + ( - - col2 ) ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-9428
SELECT ALL 25 DIV - - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL 25 / - - col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - - 92 FROM tab1 WHERE NOT NULL > - 3
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9430
SELECT CAST( NULL AS DECIMAL ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN + + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9430
SELECT CAST ( NULL AS REAL ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN + + col2 AND NULL
----

query II rowsort
SELECT DISTINCT + 15 AS col0, + col0 + col2 FROM tab1
----
15
144
15
147
15
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9432
SELECT ALL CAST( - ( + 84 ) AS SIGNED ) AS col2 FROM tab1
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-9432
SELECT ALL CAST ( - ( + 84 ) AS INTEGER ) AS col2 FROM tab1
----
-84
-84
-84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9433
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( - 67 * - - col1 + - col2 + + CAST( - col1 AS SIGNED ), + 99 + + - 92 + + ( 66 ) * + - ( + 72 ) * + col1 )
----

skipif mysql # not compatible
query III rowsort label-9433
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( - 67 * - - col1 + - col2 + + CAST ( - col1 AS INTEGER ), + 99 + + - 92 + + ( 66 ) * + - ( + 72 ) * + col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9434
SELECT ALL * FROM tab2 AS cor0 WHERE - ( + col1 ) + + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9434
SELECT ALL * FROM tab2 AS cor0 WHERE - ( + col1 ) + + CAST ( NULL AS REAL ) IS NOT NULL
----

query II rowsort
SELECT col0 AS col1, col0 + - col1 AS col1 FROM tab0 AS cor0
----
15
-66
87
66
97
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 <> - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + - col0 AS col2, + 19 FROM tab1 AS cor0
----
-51
19
-85
19
-91
19

query I rowsort
SELECT DISTINCT 49 * + col2 * - col1 + - - col0 * + col2 + + 27 FROM tab0 cor0
----
-185811
-9393
4779

query I rowsort
SELECT + + 65 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT + 47 AS col1 FROM tab2 WHERE NULL IS NULL
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT - MIN( + 70 ) AS col2 FROM tab0 cor0 WHERE col1 IS NOT NULL
----
-70

skipif mysql # not compatible
query I rowsort label-9441
SELECT - MIN ( + 70 ) AS col2 FROM tab0 cor0 WHERE col1 IS NOT NULL
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-9442
SELECT - SUM( - 37 ), 62 AS col0 FROM tab1 cor0
----
111
62

skipif mysql # not compatible
query II rowsort label-9442
SELECT - SUM ( - 37 ), 62 AS col0 FROM tab1 cor0
----
111
62

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 91 >= + col0
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT ALL - + MIN( - - 69 ) FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL - + MIN ( - - 69 ) FROM tab0 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT DISTINCT - MIN( ALL 49 ) + ( 38 ) AS col0 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-9445
SELECT DISTINCT - MIN ( ALL 49 ) + ( 38 ) AS col0 FROM tab0
----
-11

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN NULL AND 16
----

query I rowsort
SELECT - 71 - - - col1 AS col2 FROM tab1
----
-118
-76
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9448
SELECT 29 - - + COUNT( * ) DIV + + 87 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-9448
SELECT 29 - - + COUNT ( * ) / + + 87 FROM tab1
----
29

query I rowsort
SELECT - 1 * col2 AS col1 FROM tab1 WHERE ( NULL ) IS NULL
----
-59
-68
-96

query I rowsort
SELECT 21 + - col2 + - - col0 FROM tab1
----
-24
44
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9451
SELECT - col0 + - 24 AS col2 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN - 9 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9451
SELECT - col0 + - 24 AS col2 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN - 9 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9452
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + col1 NOT BETWEEN - col2 + - CAST( - 23 AS SIGNED ) AND + - col0
----

skipif mysql # not compatible
query III rowsort label-9452
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + col1 NOT BETWEEN - col2 + - CAST ( - 23 AS INTEGER ) AND + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT + 69 * + - SUM( DISTINCT - 48 ) FROM tab2
----
3312

skipif mysql # not compatible
query I rowsort label-9453
SELECT + 69 * + - SUM ( DISTINCT - 48 ) FROM tab2
----
3312

query I rowsort
SELECT ALL 17 FROM tab2 WHERE NOT NULL IS NOT NULL
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT ALL - SUM( ALL - col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9455
SELECT ALL - SUM ( ALL - col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9456
SELECT ALL + CAST( - CAST( - col2 AS SIGNED ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL + CAST ( - CAST ( - col2 AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col1 + + - col1 * - - 95, + ( - + 4 ), + 24 )
----

query I rowsort
SELECT ALL - + col2 * col0 * - 75 - - - 7 FROM tab0 AS cor0 WHERE ( NULL ) <= - + col2 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT - - COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT col0 = - - col2
----
3

skipif mysql # not compatible
query I rowsort label-9459
SELECT - - COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT col0 = - - col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9460
SELECT ALL col2 DIV + col1 col2 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9460
SELECT ALL col2 / + col1 col2 FROM tab0 AS cor0
----
0
0
99

onlyif mysql # aggregate syntax: 
query II rowsort label-9461
SELECT MAX( - - col0 ) AS col0, - COUNT( - col2 ) FROM tab0
----
97
-3

skipif mysql # not compatible
query II rowsort label-9461
SELECT MAX ( - - col0 ) AS col0, - COUNT ( - col2 ) FROM tab0
----
97
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9462
SELECT ( + col2 ) * + CAST( - ( - + col0 ) AS SIGNED ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-9462
SELECT ( + col2 ) * + CAST ( - ( - + col0 ) AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
1058
2560
4350

query I rowsort
SELECT 10 * - 51 FROM tab1
----
-510
-510
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT + SUM( col1 ) * 54 + - COUNT( * ) FROM tab0
----
5559

skipif mysql # not compatible
query I rowsort label-9464
SELECT + SUM ( col1 ) * 54 + - COUNT ( * ) FROM tab0
----
5559

query I rowsort
SELECT ALL + 7 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT - COUNT( * ) + + 40 FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-9466
SELECT - COUNT ( * ) + + 40 FROM tab0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT ALL + MIN( ALL - 52 ) AS col0 FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL + MIN ( ALL - 52 ) AS col0 FROM tab2
----
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * + + 28 col2, 46 AS col2 FROM tab1
----
1316
46
140
46
392
46

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + 3 * col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9470
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT - col1 IS NOT NULL
----
0

query I rowsort
SELECT ALL + col1 - + 50 * col2 AS col2 FROM tab0 cor0
----
-2269
-479
-4949

query I rowsort
SELECT 29 + - + col2 FROM tab2 AS cor0
----
-11
-29
6

query I rowsort
SELECT col1 + - 69 AS col0 FROM tab0 AS cor0 WHERE + ( 23 ) >= - col0 - + - col1
----
-48
-68

query II rowsort
SELECT DISTINCT col2 AS col0, + col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query II rowsort
SELECT DISTINCT + - 81 AS col1, + col2 - - col0 FROM tab0 AS cor0
----
-81
196
-81
62
-81
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 70 col2 FROM tab0 AS cor0
----
-157
-167
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT + COUNT( * ) + 69 + - 69 AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9477
SELECT + COUNT ( * ) + 69 + - 69 AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT + COUNT( * ) + - COUNT( * ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9478
SELECT + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT + MAX( ALL 44 ) AS col0 FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-9479
SELECT + MAX ( ALL 44 ) AS col0 FROM tab0
----
44

query I rowsort
SELECT ALL + 37 * + col0 FROM tab1
----
1887
3145
3367

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 * col1 NOT BETWEEN + col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col2 * ( + col2 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9483
SELECT ALL - CAST( + - col0 AS SIGNED ) FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9483
SELECT ALL - CAST ( + - col0 AS INTEGER ) FROM tab0
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9484
SELECT DISTINCT + 50 DIV col0 AS col1 FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT + 50 / col0 AS col1 FROM tab0 AS cor0
----
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 5 FROM tab2 WHERE NOT - col1 * - col2 + 47 > + + col2 * - ( + 70 )
----

query I rowsort
SELECT DISTINCT col2 * - - col1 + col2 FROM tab1 AS cor0
----
1440
3264
354

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 + + - 51 + - 55 + - col0 - + col1 * + + col0 * - + col1 * - + 33 col0 FROM tab0 AS cor0
----
-1266240
-3247752
-3340

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT DISTINCT - 95 * + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-9489
SELECT DISTINCT - 95 * + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-285

query I rowsort
SELECT DISTINCT - + col2 + - + col1 FROM tab2 AS cor0
----
-117
-125
-74

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + 83 ) NOT IN ( - + col2 + - 0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 + + 81 FROM tab1 AS cor0
----
132
166
172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + - col2 + - 66 * - col0 * + 59 * + col2 + + 49 col1 FROM tab1 cor0
----
19064881
19528341
24095985

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT + ( + + SUM( - col2 ) ) AS col1 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9494
SELECT + ( + + SUM ( - col2 ) ) AS col1 FROM tab0 cor0
----
-156

query I rowsort
SELECT DISTINCT 5 + col2 FROM tab0
----
104
15
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9496
SELECT CAST( + COUNT( * ) AS SIGNED ) * + 92 FROM tab1 WHERE ( ( - + col2 / + ( - + ( col2 ) ) IS NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-9496
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * + 92 FROM tab1 WHERE ( ( - + col2 / + ( - + ( col2 ) ) IS NULL ) )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab1 WHERE ( NULL ) BETWEEN ( NULL ) AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9498
SELECT 12 DIV 37 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9498
SELECT 12 / 37 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col2 * - 79 * 56 FROM tab2
----
-101752
-176960
-256592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9500
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + + col0 + col0 col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9500
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + + col0 + col0 col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9501
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col0, 45 AS col2 FROM tab0 AS cor0
----
NULL
45

skipif mysql # not compatible
query II rowsort label-9501
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col0, 45 AS col2 FROM tab0 AS cor0
----
NULL
45

query I rowsort
SELECT DISTINCT col2 * + col0 + + 97 * - col2 FROM tab2 AS cor0
----
-1173
-1276
-1320

query III rowsort
SELECT * FROM tab0 WHERE col2 - + + 77 / col0 BETWEEN + ( + 47 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9504
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - col0 * + col1 + col2 - + + 32 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9504
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - col0 * + col1 + col2 - + + 32 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0 * + col0 - - 23, 28 col0 FROM tab0 AS cor0
----
-202
28
-7546
28
-9386
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9506
SELECT DISTINCT + CAST( + - COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9506
SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9507
SELECT DISTINCT COUNT( * ), CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9507
SELECT DISTINCT COUNT ( * ), CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 col0 FROM tab0
----
-39
-39
-39

query III rowsort
SELECT * FROM tab0 WHERE NOT + 28 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT COUNT( * ) * + + 93 AS col2 FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-9510
SELECT COUNT ( * ) * + + 93 AS col2 FROM tab0
----
279

query I rowsort
SELECT DISTINCT + col1 * - 88 FROM tab1 AS cor0
----
-1232
-4136
-440

query II rowsort
SELECT ALL + + col2, 13 - + - col0 FROM tab0 cor0
----
10
100
47
28
99
110

onlyif mysql # aggregate syntax: 
query II rowsort label-9513
SELECT - - ( - + MAX( DISTINCT - col0 ) ) AS col0, 24 AS col2 FROM tab2 AS cor0
----
46
24

skipif mysql # not compatible
query II rowsort label-9513
SELECT - - ( - + MAX ( DISTINCT - col0 ) ) AS col0, 24 AS col2 FROM tab2 AS cor0
----
46
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9514
SELECT + COUNT( * ) DIV - - 54 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9514
SELECT + COUNT ( * ) / - - 54 AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + 95 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9516
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 0 * - + col2 / - col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * 66 FROM tab2
----
-3036
-4224
-4950

query I rowsort
SELECT ALL col2 * - 61 AS col0 FROM tab0
----
-2867
-6039
-610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9520
SELECT ALL CAST( NULL AS SIGNED ) - ( - col1 ) col1 FROM tab2 AS cor0 WHERE NOT - col2 <> NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9520
SELECT ALL CAST ( NULL AS INTEGER ) - ( - col1 ) col1 FROM tab2 AS cor0 WHERE NOT - col2 <> NULL
----

query I rowsort
SELECT ALL + - col0 * - - ( - col0 ) + ( col1 ) + + col1 * - col0 FROM tab2 AS cor0
----
-179
-755
667

query I rowsort
SELECT DISTINCT + - col0 * - - col2 + col1 FROM tab1 AS cor0
----
-4882
-5010
-6141

query I rowsort
SELECT ALL - col2 + + 12 AS col2 FROM tab0 AS cor0
----
-35
-87
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9524
SELECT - MIN( ALL - + col0 ) AS col1, + COUNT( DISTINCT + col2 ) FROM tab0 AS cor0
----
97
3

skipif mysql # not compatible
query II rowsort label-9524
SELECT - MIN ( ALL - + col0 ) AS col1, + COUNT ( DISTINCT + col2 ) FROM tab0 AS cor0
----
97
3

query I rowsort
SELECT 25 + 78 FROM tab1
----
103
103
103

query I rowsort
SELECT + 35 + + + 37 FROM tab2
----
72
72
72

query I rowsort
SELECT 74 + + col2 * + col1 AS col1 FROM tab2
----
1247
3154
3960

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * + col1 >= NULL
----

query I rowsort
SELECT DISTINCT ( + - 86 ) FROM tab2 AS cor0
----
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 + + 13 col2 FROM tab1 AS cor0
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 86 col2, - col1 col1 FROM tab1 cor0
----
86
-14
86
-47
86
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 * - col2 + + col0 + - 24 col0 FROM tab2 AS cor0
----
1471
2560
3705

query I rowsort
SELECT col2 * - col1 - + + col0 * - + 0 AS col1 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT ALL - 64 + 80 FROM tab2
----
16
16
16

query I rowsort
SELECT + - 78 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

onlyif mysql # DIV for integer division: 
query I rowsort label-9536
SELECT DISTINCT ( + + col1 ) DIV + + col2 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9536
SELECT DISTINCT ( + + col1 ) / + + col2 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT ALL + MAX( - col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL + MAX ( - col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col2, col0 - + + 48 FROM tab0 AS cor0
----
1
49
21
39
81
-33

query II rowsort
SELECT + col1, col2 + - + col2 AS col2 FROM tab2 AS cor0
----
51
0
67
0
77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT + SUM( DISTINCT + - ( - col2 ) ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9540
SELECT + SUM ( DISTINCT + - ( - col2 ) ) FROM tab0 AS cor0
----
156

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL <= 98
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9542
SELECT ALL col2 * - CAST( 10 AS SIGNED ) FROM tab2
----
-230
-400
-580

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL col2 * - CAST ( 10 AS INTEGER ) FROM tab2
----
-230
-400
-580

onlyif mysql # DIV for integer division: 
query I rowsort label-9543
SELECT ALL + ( col2 ) DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9543
SELECT ALL + ( col2 ) / - col1 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT - col2 AS col2, ( col0 ) FROM tab1 WHERE ( ( NULL ) IS NULL )
----
-59
85
-68
91
-96
51

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( + 45 ) AND ( + 23 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT 90 * COUNT( * ) FROM tab1 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-9546
SELECT 90 * COUNT ( * ) FROM tab1 AS cor0
----
270

query I rowsort
SELECT DISTINCT + + 53 AS col2 FROM tab1 AS cor0
----
53

query I rowsort
SELECT DISTINCT + col1 * + col1 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
196
2209
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - col2 ) + - col1 col2 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT DISTINCT - col0 + - col2 + - - col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT - + col1 * + ( - + col0 ) * - col1 FROM tab0 AS cor0
----
-38367
-97
-98415

query I rowsort
SELECT ALL + 1 + col0 AS col1 FROM tab1 AS cor0
----
52
86
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 84 + - 32 col2 FROM tab1 AS cor0
----
52
52
52

query I rowsort
SELECT DISTINCT + col1 * - - 7 + + col1 AS col2 FROM tab0 cor0
----
168
648
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9555
SELECT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-9555
SELECT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9556
SELECT col1 * - - CAST( NULL AS SIGNED ) - + + 68 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9556
SELECT col1 * - - CAST ( NULL AS INTEGER ) - + + 68 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 70 AS col1 FROM tab2 WHERE 98 > - 86 + + 95
----
-70

query I rowsort
SELECT ALL ( - - 62 ) AS col2 FROM tab1 AS cor0
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT COUNT( ALL - - col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9559
SELECT COUNT ( ALL - - col0 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT 81 + - COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9560
SELECT 81 + - COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT DISTINCT - COUNT( + - col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9561
SELECT DISTINCT - COUNT ( + - col2 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + ( - ( + col1 ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL col2 * + col1 * - col2 + - 23 + + 64 * col2 AS col1 FROM tab1 AS cor0
----
-122903
-13652
-212999

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 89 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9565
SELECT ALL + 19 DIV + - col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9565
SELECT ALL + 19 / + - col0 AS col1 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT - 11 AS col1, col1 FROM tab0
----
-11
1
-11
21
-11
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9567
SELECT ALL COUNT( * ) DIV + - MIN( 46 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL COUNT ( * ) / + - MIN ( 46 ) AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9568
SELECT - ( - - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9568
SELECT - ( - - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9570
SELECT ALL MIN( DISTINCT + 13 ) AS col2, - 34 FROM tab1
----
13
-34

skipif mysql # not compatible
query II rowsort label-9570
SELECT ALL MIN ( DISTINCT + 13 ) AS col2, - 34 FROM tab1
----
13
-34

query II rowsort
SELECT + + col0, col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT ALL col0 + + + col2 AS col1 FROM tab2 WHERE ( NULL ) BETWEEN - col1 AND NULL OR NOT NULL IS NOT NULL
----
104
133
69

query I rowsort
SELECT col2 * - - col2 AS col2 FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT DISTINCT COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-9574
SELECT DISTINCT COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT col1 + + 94 FROM tab1 cor0
----
108
141
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + + col2 col1, col1 FROM tab2 AS cor0
----
-28
51
-37
77
-9
67

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + + col0 NOT BETWEEN NULL AND NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 + - - 53 FROM tab2 cor0
----
111
76
93

query I rowsort
SELECT 88 + + col2 * - + col2 + - + 8 FROM tab2 AS cor0
----
-1520
-3284
-449

query I rowsort
SELECT 89 + - + 85 FROM tab1 AS cor0
----
4
4
4

query II rowsort
SELECT + - 20 + + col1 AS col1, 94 AS col0 FROM tab2 cor0
----
31
94
47
94
57
94

query III rowsort
SELECT * FROM tab1 WHERE - - ( 19 ) + col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9583
SELECT ALL CAST( - 90 AS SIGNED ) + - + 54 FROM tab2
----
-144
-144
-144

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL CAST ( - 90 AS INTEGER ) + - + 54 FROM tab2
----
-144
-144
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT ALL MAX( ALL + ( - col1 ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-9584
SELECT ALL MAX ( ALL + ( - col1 ) ) FROM tab1
----
-5

query I rowsort
SELECT - col1 + + col1 * + - 24 FROM tab0 WHERE + col2 / - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT DISTINCT 89 - - COUNT( * ) FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT 89 - - COUNT ( * ) FROM tab1
----
92

query I rowsort
SELECT DISTINCT - 33 AS col1 FROM tab2, tab0 AS cor0
----
-33

query I rowsort
SELECT - + col0 - ( 77 ) AS col1 FROM tab1 AS cor0
----
-128
-162
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9589
SELECT DISTINCT + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9589
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 28 AS col2, - col2 * 47 col0 FROM tab1 AS cor0
----
-28
-2773
-28
-3196
-28
-4512

query I rowsort
SELECT - - col0 - + - col2 AS col2 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT ALL - - 29 / 87 AS col0 FROM tab2 AS cor0 WHERE NOT 38 < col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9593
SELECT + - col1 * col0 + + CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-2397
-5005
-5092

skipif mysql # not compatible
query I rowsort label-9593
SELECT + - col1 * col0 + + CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-2397
-5005
-5092

query I rowsort
SELECT - ( col2 ) + + col2 * - col2 AS col0 FROM tab1
----
-3540
-4692
-9312

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 NOT IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 + col2 FROM tab0 WHERE NOT - col2 < col2
----

query I rowsort
SELECT + 97 + + col1 FROM tab2
----
148
164
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9598
SELECT MIN( - CAST( CAST( - 57 AS SIGNED ) AS SIGNED ) ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-9598
SELECT MIN ( - CAST ( CAST ( - 57 AS INTEGER ) AS INTEGER ) ) FROM tab2
----
57

query I rowsort
SELECT - 86 + 13 AS col2 FROM tab1
----
-73
-73
-73

query I rowsort
SELECT col1 / col2 AS col1 FROM tab0 WHERE NOT ( col2 ) NOT BETWEEN NULL AND - col0 + 64 / + 41
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 * - col0 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 66 + col1 * ( + col0 ) ) NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col0 ) <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9604
SELECT DISTINCT - COUNT( * ) DIV - MAX( - col0 DIV + col0 ) FROM tab0 WHERE NOT ( + col0 + col0 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9604
SELECT DISTINCT - COUNT ( * ) / - MAX ( - col0 / + col0 ) FROM tab0 WHERE NOT ( + col0 + col0 ) IS NULL
----
-3

query I rowsort
SELECT + 57 * col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 WHERE NULL IN ( 9 )
----

query I rowsort
SELECT DISTINCT + col1 - 67 FROM tab0
----
-46
-66
14

query I rowsort
SELECT DISTINCT - col0 * + col2 FROM tab1 WHERE + 75 * - col2 IS NOT NULL
----
-4896
-5015
-6188

query I rowsort
SELECT - col1 * 66 - col2 AS col0 FROM tab1
----
-1020
-3170
-389

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) <> 18 + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab2 WHERE NULL <> + col1 + 43 * col0
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE + col0 * col2 = col0
----

query I rowsort
SELECT + ( 70 ) AS col0 FROM tab0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT COUNT( * ) + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 * 47 ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9614
SELECT COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 * 47 ) >= NULL
----
0

query I rowsort
SELECT DISTINCT + col1 * 39 FROM tab1 AS cor0
----
1833
195
546

query I rowsort
SELECT ( + ( 99 ) ) AS col2 FROM tab1 AS cor0
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT ALL - COUNT( DISTINCT col2 ) + 80 FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL - COUNT ( DISTINCT col2 ) + 80 FROM tab0 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT MAX( 73 ) FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-9618
SELECT MAX ( 73 ) FROM tab1 AS cor0
----
73

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 6 + - 79 * - 35 ) NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9620
SELECT DISTINCT - 92 DIV - COUNT( * ) + 11 AS col1 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-9620
SELECT DISTINCT - 92 / - COUNT ( * ) + 11 AS col1 FROM tab2 AS cor0
----
41

query I rowsort
SELECT DISTINCT - 36 + col1 AS col2 FROM tab1
----
-22
-31
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT DISTINCT + SUM( DISTINCT 8 ) col1 FROM tab1
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9622
SELECT DISTINCT + SUM ( DISTINCT 8 ) col1 FROM tab1
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9623
SELECT DISTINCT - COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9623
SELECT DISTINCT - COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
-1

query III rowsort
SELECT * FROM tab2 WHERE 43 * + col0 <> NULL
----

query I rowsort
SELECT 42 * + 98 AS col1 FROM tab0 AS cor0
----
4116
4116
4116

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT - 37 - - COUNT( * ) FROM tab1 AS cor0 WHERE 72 - col2 <> 53 * - col0
----
-34

skipif mysql # not compatible
query I rowsort label-9626
SELECT - 37 - - COUNT ( * ) FROM tab1 AS cor0 WHERE 72 - col2 <> 53 * - col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT MIN( col1 ) FROM tab0 AS cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9627
SELECT MIN ( col1 ) FROM tab0 AS cor0 WHERE NULL < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT COUNT( + col0 ) * - 98 FROM tab1 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-9628
SELECT COUNT ( + col0 ) * - 98 FROM tab1 AS cor0
----
-294

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 50 < ( 83 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT ALL - COUNT( * ) * ( + COUNT( * ) ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL - COUNT ( * ) * ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT ALL + + 30 + col0 FROM tab0 AS cor0
----
117
127
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT MIN( col1 ) * - 87 FROM tab1 AS cor0
----
-435

skipif mysql # not compatible
query I rowsort label-9632
SELECT MIN ( col1 ) * - 87 FROM tab1 AS cor0
----
-435

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 74 BETWEEN + 74 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 9 IS NULL
----

query I rowsort
SELECT + ( ( + col1 ) ) AS col1 FROM tab2 AS cor0 WHERE - col2 * - col0 NOT IN ( - 94 )
----
51
67
77

query I rowsort
SELECT col1 + + ( col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9637
SELECT * FROM tab0 WHERE ( - 96 * - col2 + 24 * CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9637
SELECT * FROM tab0 WHERE ( - 96 * - col2 + 24 * CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 - + 76 FROM tab0
----
-61
11
21

query I rowsort
SELECT + 52 - - col2 AS col1 FROM tab1
----
111
120
148

query I rowsort
SELECT ALL - col1 + col1 - 5 * + 10 FROM tab1
----
-50
-50
-50

query I rowsort
SELECT 94 - + col1 AS col2 FROM tab2
----
17
27
43

onlyif mysql # DIV for integer division: 
query I rowsort label-9642
SELECT ALL - 30 - - + ( col1 ) + col1 DIV 41 FROM tab2
----
22
38
48

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL - 30 - - + ( col1 ) + col1 / 41 FROM tab2
----
22
38
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT DISTINCT COUNT( - 79 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT COUNT ( - 79 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT COUNT( * ) AS col2 FROM tab1 WHERE NULL < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9644
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NULL < ( NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col2 * 85 col0 FROM tab1
----
5020
5827
8174

query I rowsort
SELECT col2 + + + 0 AS col1 FROM tab2
----
23
40
58

query I rowsort
SELECT - col0 + col2 * + 39 AS col0 FROM tab1
----
2216
2561
3693

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT + COUNT( * ) + COUNT( col0 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9648
SELECT + COUNT ( * ) + COUNT ( col0 ) FROM tab0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9649
SELECT - - CAST( NULL AS SIGNED ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9649
SELECT - - CAST ( NULL AS INTEGER ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( - ( col0 ) ) * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 51 AS col1 FROM tab0 AS cor0 WHERE 21 * ( - col2 ) NOT BETWEEN - col0 AND ( NULL )
----
51
51
51

query I rowsort
SELECT DISTINCT - col0 * - ( - 17 ) FROM tab2 AS cor0
----
-1088
-1275
-782

query I rowsort
SELECT DISTINCT col1 * 42 + ( + 46 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <> ( + 60 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT ALL + 24 + - COUNT( * ) * + 42 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-354

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL + 24 + - COUNT ( * ) * + 42 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-354

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = + 17
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9656
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN ( + col0 ) AND + 74
----

skipif mysql # not compatible
query III rowsort label-9656
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN ( + col0 ) AND + 74
----

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NOT 93 IS NOT NULL
----

query I rowsort
SELECT ALL 37 * + 67 * col1 * 76 AS col1 FROM tab0 cor0
----
15260724
188404
3956484

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 15 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9660
SELECT ALL - + CAST( - col1 AS SIGNED ) * col1 FROM tab0 AS cor0
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL - + CAST ( - col1 AS INTEGER ) * col1 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 * + + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9662
SELECT - 76 DIV - 22 FROM tab2
----
3
3
3

skipif mysql # not compatible
query I rowsort label-9662
SELECT - 76 / - 22 FROM tab2
----
3
3
3

query I rowsort
SELECT ALL - ( 20 ) FROM tab0 WHERE NOT - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT DISTINCT - MIN( - 12 ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT - MIN ( - 12 ) FROM tab0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT DISTINCT + COUNT( * ) * - - 37 * 19 + - 45 AS col1 FROM tab0
----
2064

skipif mysql # not compatible
query I rowsort label-9665
SELECT DISTINCT + COUNT ( * ) * - - 37 * 19 + - 45 AS col1 FROM tab0
----
2064

query I rowsort
SELECT ALL + 75 FROM tab0 WHERE NOT - col2 = ( 11 )
----
75
75
75

onlyif mysql # DIV for integer division: 
query II rowsort label-9667
SELECT + col1 DIV col2, + col0 AS col2 FROM tab0
----
0
97
1
15
2
87

skipif mysql # not compatible
query II rowsort label-9667
SELECT + col1 / col2, + col0 AS col2 FROM tab0
----
0
97
1
15
2
87

query I rowsort
SELECT col1 + - ( 43 ) FROM tab2
----
24
34
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9669
SELECT - 52 * - col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9669
SELECT - 52 * - col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9670
SELECT ALL col1 * - - col1 * + 33 * + + CAST( NULL AS SIGNED ) * 33 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9670
SELECT ALL col1 * - - col1 * + 33 * + + CAST ( NULL AS INTEGER ) * 33 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9671
SELECT + 2 DIV + col0 + + col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9671
SELECT + 2 / + col0 + + col0 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL - col0 * - 61 * + col0 AS col0 FROM tab0
----
13725
461709
573949

query II rowsort
SELECT ALL - 4 * - col1, - 64 AS col1 FROM tab1
----
188
-64
20
-64
56
-64

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE ( 17 / col1 ) IS NOT NULL
----
15
87
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * + 44 * + + col0 NOT IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 + + 51 + - - ( - col1 ) + - col0 AS col0 FROM tab0 AS cor0
----
-144
-144
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9677
SELECT - - COUNT( - col0 ) AS col1, - SUM( - col2 ) - - CAST( NULL AS SIGNED ) * ( 9 ) AS col0 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9677
SELECT - - COUNT ( - col0 ) AS col1, - SUM ( - col2 ) - - CAST ( NULL AS INTEGER ) * ( 9 ) AS col0 FROM tab2 AS cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT - COUNT( ALL - + 71 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9678
SELECT - COUNT ( ALL - + 71 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + + col2 * + + col1 * - - col0 FROM tab0 AS cor0
----
18270
57105
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( ( col0 ) ) ) + 86 + col0 col1 FROM tab1
----
188
256
268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 52 col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
52

query I rowsort
SELECT DISTINCT - 83 * col2 * col1 FROM tab1 AS cor0
----
-111552
-24485
-265268

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT + MIN( - col2 ) FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-99

skipif mysql # not compatible
query I rowsort label-9683
SELECT + MIN ( - col2 ) FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9684
SELECT + CAST( - + col2 AS SIGNED ) + + 43 FROM tab0 AS cor0
----
-4
-56
33

skipif mysql # not compatible
query I rowsort label-9684
SELECT + CAST ( - + col2 AS INTEGER ) + + 43 FROM tab0 AS cor0
----
-4
-56
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9685
SELECT ALL 33 * + + CAST( NULL AS SIGNED ) * + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL 33 * + + CAST ( NULL AS INTEGER ) * + col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9686
SELECT DISTINCT + MIN( 64 ) DIV + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-9686
SELECT DISTINCT + MIN ( 64 ) / + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
21

query I rowsort
SELECT - col2 + - col2 + + + col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - 35 + col2 FROM tab1 AS cor0
----
24
33
61

query I rowsort
SELECT - col1 * - - 89 * + - col0 * + col1 + - + col0 AS col0 FROM tab1 AS cor0
----
17890600
189040
889593

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT DISTINCT - 6 + + COUNT( DISTINCT + + col0 ) * + + MAX( DISTINCT + 45 ) FROM tab0 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-9690
SELECT DISTINCT - 6 + + COUNT ( DISTINCT + + col0 ) * + + MAX ( DISTINCT + 45 ) FROM tab0 AS cor0
----
129

query I rowsort
SELECT - + col1 + + 59 * + 76 * - ( + col0 ) + + col0 FROM tab0 AS cor0
----
-390042
-434852
-67326

query I rowsort
SELECT + col0 * col0 + + - 89 + - + 82 + - col0 - - col1 FROM tab2 AS cor0
----
1950
3938
5446

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9693
SELECT - CAST( + COUNT( * ) AS SIGNED ) + 99 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-9693
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) + 99 FROM tab0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT ALL MAX( + + col2 ) + + 49 AS col2 FROM tab0
----
148

skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL MAX ( + + col2 ) + + 49 AS col2 FROM tab0
----
148

query I rowsort
SELECT DISTINCT - 64 - - ( 86 ) AS col0 FROM tab1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9696
SELECT CAST( NULL AS SIGNED ) * - + 3 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9696
SELECT CAST ( NULL AS INTEGER ) * - + 3 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 + 7 IN ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT ALL ( + COUNT( ( + - col0 ) ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9698
SELECT ALL ( + COUNT ( ( + - col0 ) ) ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9699
SELECT DISTINCT ( + 69 ) * COUNT( DISTINCT ( col0 ) ) AS col0, + COUNT( * ) * COUNT( * ) AS col1 FROM tab1
----
207
9

skipif mysql # not compatible
query II rowsort label-9699
SELECT DISTINCT ( + 69 ) * COUNT ( DISTINCT ( col0 ) ) AS col0, + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1
----
207
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT MIN( DISTINCT 10 ) AS col2 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-9700
SELECT MIN ( DISTINCT 10 ) AS col2 FROM tab1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9701
SELECT - 97 / - 91 - - 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-9701
SELECT - 97 / - 91 - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9702
SELECT DISTINCT + - CAST( CAST( + 93 AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-9702
SELECT DISTINCT + - CAST ( CAST ( + 93 AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9703
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col1 * - 1 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9703
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col1 * - 1 AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT + 25 + + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-9704
SELECT + 25 + + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT DISTINCT COUNT( * ) + - ( + ( - - MAX( ALL - - 95 ) ) ) FROM tab2 AS cor0 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT COUNT ( * ) + - ( + ( - - MAX ( ALL - - 95 ) ) ) FROM tab2 AS cor0 WHERE - col0 IS NULL
----
NULL

query I rowsort
SELECT ALL col2 - - 37 AS col1 FROM tab1 cor0 WHERE + col2 + col0 IS NOT NULL
----
105
133
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9707
SELECT + CAST( - ( + col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT - 97 * - col0 + - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9707
SELECT + CAST ( - ( + col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT - 97 * - col0 + - col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * + col1 - + col0 FROM tab1 AS cor0 WHERE ( - - col1 IS NOT NULL )
----
340
4186
663

onlyif mysql # DIV for integer division: 
query I rowsort label-9709
SELECT DISTINCT + 42 * col1 DIV + col0 AS col2 FROM tab2 AS cor0
----
37
46
50

skipif mysql # not compatible
query I rowsort label-9709
SELECT DISTINCT + 42 * col1 / + col0 AS col2 FROM tab2 AS cor0
----
37
46
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT ALL + COUNT( * ) AS col0 FROM tab1 WHERE NOT ( + + 72 * - col0 + col1 + col1 * + col2 + + col2 * col0 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9710
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( + + 72 * - col0 + col1 + col1 * + col2 + + col2 * col0 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT ALL - 37 + - - 63 - - COUNT( * ) FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-9711
SELECT ALL - 37 + - - 63 - - COUNT ( * ) FROM tab1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT + COUNT( * ) FROM tab2 WHERE col0 BETWEEN ( - col2 ) - + col1 - - col0 - + 92 * + 6 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9712
SELECT + COUNT ( * ) FROM tab2 WHERE col0 BETWEEN ( - col2 ) - + col1 - - col0 - + 92 * + 6 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT COUNT( * ) * 16 * COUNT( * ) AS col2 FROM tab2
----
144

skipif mysql # not compatible
query I rowsort label-9713
SELECT COUNT ( * ) * 16 * COUNT ( * ) AS col2 FROM tab2
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-9714
SELECT DISTINCT - col2 DIV - col2 col0 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9714
SELECT DISTINCT - col2 / - col2 col0 FROM tab1
----
1

query I rowsort
SELECT - 8 * + - 37 * - + col2 * + 75 AS col0 FROM tab2
----
-1287600
-510600
-888000

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * + col2 - - + 7 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT - SUM( DISTINCT + 29 ) AS col0 FROM tab1 AS cor0 WHERE - ( + col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9717
SELECT - SUM ( DISTINCT + 29 ) AS col0 FROM tab1 AS cor0 WHERE - ( + col0 ) IS NULL
----
NULL

query I rowsort
SELECT + 89 FROM tab1 AS cor0 WHERE NULL IS NULL
----
89
89
89

query III rowsort
SELECT * FROM tab2 WHERE - col2 >= ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + col2 * col2 + - + 0 - + col1 * col2 * + - col1 + + + 67 / - col0 AND - col2 * 63
----

query I rowsort
SELECT ALL - + 39 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9722
SELECT * FROM tab1 AS cor0 WHERE CAST( + col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9722
SELECT * FROM tab1 AS cor0 WHERE CAST ( + col0 AS INTEGER ) IS NULL
----

query I rowsort
SELECT + + 47 * + col2 FROM tab1 AS cor0
----
2773
3196
4512

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT + SUM( DISTINCT - col0 ) * + 91 FROM tab2 cor0
----
-16835

skipif mysql # not compatible
query I rowsort label-9724
SELECT + SUM ( DISTINCT - col0 ) * + 91 FROM tab2 cor0
----
-16835

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT DISTINCT 2 - + - MIN( ALL + col0 ) - - 68 FROM tab1 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9725
SELECT DISTINCT 2 - + - MIN ( ALL + col0 ) - - 68 FROM tab1 AS cor0
----
121

query I rowsort
SELECT DISTINCT + 44 + + col2 FROM tab1 AS cor0
----
103
112
140

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9727
SELECT DISTINCT - col0 col2, col0 AS col0 FROM tab1 AS cor0 WHERE - col1 + + col1 * CAST( NULL AS SIGNED ) * + ( - - 95 ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9727
SELECT DISTINCT - col0 col2, col0 AS col0 FROM tab1 AS cor0 WHERE - col1 + + col1 * CAST ( NULL AS INTEGER ) * + ( - - 95 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9728
SELECT + COUNT( + ( + - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9728
SELECT + COUNT ( + ( + - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9729
SELECT DISTINCT + 37 * - CAST( NULL AS DECIMAL ) * - 15 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9729
SELECT DISTINCT + 37 * - CAST ( NULL AS REAL ) * - 15 AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9730
SELECT ALL ( - 7 ) DIV - col0, col2 FROM tab2
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-9730
SELECT ALL ( - 7 ) / - col0, col2 FROM tab2
----
0
23
0
40
0
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT DISTINCT + COUNT( col2 ) * - 66 FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-9731
SELECT DISTINCT + COUNT ( col2 ) * - 66 FROM tab0
----
-198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9732
SELECT 86 DIV COUNT( DISTINCT + col2 ) AS col2 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-9732
SELECT 86 / COUNT ( DISTINCT + col2 ) AS col2 FROM tab2
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col1, col0 * 26 col0 FROM tab0
----
-10
2262
-47
390
-99
2522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 55 col1, - col1 AS col1 FROM tab1
----
55
-14
55
-47
55
-5

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( col0 * - col1 + + ( - 93 ) + + col1 * + col2 )
----

query II rowsort
SELECT col0, 99 AS col2 FROM tab0
----
15
99
87
99
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT ALL MAX( 12 ) AS col2 FROM tab2 cor0
----
12

skipif mysql # not compatible
query I rowsort label-9737
SELECT ALL MAX ( 12 ) AS col2 FROM tab2 cor0
----
12

query I rowsort
SELECT + 38 * + 11 FROM tab2 AS cor0
----
418
418
418

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9739
SELECT ALL COUNT( DISTINCT col2 ) DIV + COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL COUNT ( DISTINCT col2 ) / + COUNT ( * ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9740
SELECT COUNT( - - col2 ) AS col0, + 42 col1 FROM tab0
----
3
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9740
SELECT COUNT ( - - col2 ) AS col0, + 42 col1 FROM tab0
----
3
42

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 + col2 - - 1 ) = NULL
----

query I rowsort
SELECT ALL col2 + + col2 + + - col2 AS col0 FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT + + col2, + 38 FROM tab1 AS cor0
----
59
38
68
38
96
38

onlyif mysql # DIV for integer division: 
query I rowsort label-9744
SELECT ALL + col1 DIV + col0 * + col0 - 80 + + 27 FROM tab1 AS cor0
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL + col1 / + col0 * + col0 - 80 + + 27 FROM tab1 AS cor0
----
-53
-53
-53

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 >= col1 - + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 60 + + 99 + + 49 * col0 AS col2 FROM tab2 AS cor0
----
2413
3295
3834

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 + - 18 col0 FROM tab1
----
26
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 51 * + 47 + + - 58 * - col1 col1 FROM tab2
----
5355
6283
6863

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT 76 * + 76 * + COUNT( * ) + + 36 col2 FROM tab1
----
17364

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9749
SELECT 76 * + 76 * + COUNT ( * ) + + 36 col2 FROM tab1
----
17364

onlyif mysql # aggregate syntax: 
query II rowsort label-9750
SELECT 67 + + 67, COUNT( ALL + col0 ) col2 FROM tab2
----
134
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9750
SELECT 67 + + 67, COUNT ( ALL + col0 ) col2 FROM tab2
----
134
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT NULL <= NULL )
----

query I rowsort
SELECT col2 + col0 + - 39 FROM tab1
----
105
108
120

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT DISTINCT COUNT( * ) + - COUNT( * ) + MIN( + - col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-9753
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) + MIN ( + - col0 ) FROM tab2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9754
SELECT ALL - col1 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9754
SELECT ALL - col1 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 NOT IN ( 95, 11 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9756
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IN ( - - col2 )
----

skipif mysql # not compatible
query III rowsort label-9756
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IN ( - - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND 71 AND - col2 + col1 IS NULL
----

query I rowsort
SELECT 99 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 36 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9760
SELECT - col2 col0, 12 FROM tab0 cor0 WHERE + CAST( NULL AS DECIMAL ) IS NULL
----
-10
12
-47
12
-99
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9760
SELECT - col2 col0, 12 FROM tab0 cor0 WHERE + CAST ( NULL AS REAL ) IS NULL
----
-10
12
-47
12
-99
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT - MAX( - col1 ) FROM tab1 AS cor0 WHERE ( NOT NULL BETWEEN + 71 AND ( + + col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9761
SELECT - MAX ( - col1 ) FROM tab1 AS cor0 WHERE ( NOT NULL BETWEEN + 71 AND ( + + col2 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9762
SELECT - 73 DIV - 20 AS col1 FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-9762
SELECT - 73 / - 20 AS col1 FROM tab0 AS cor0
----
3
3
3

query II rowsort
SELECT - col0 * col2 * - + col2 AS col0, - col2 FROM tab0 AS cor0
----
33135
-47
8700
-10
950697
-99

query I rowsort
SELECT DISTINCT - + 66 * 71 AS col0 FROM tab0 AS cor0
----
-4686

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9765
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9765
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT col2 * + - 97 AS col0 FROM tab1
----
-5723
-6596
-9312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9767
SELECT ALL ( + col2 ) / - ( 6 ) * + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL ( + col2 ) / - ( 6 ) * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9768
SELECT * FROM tab0 WHERE NOT CAST( col2 AS SIGNED ) BETWEEN ( - CAST( + col2 AS SIGNED ) ) AND - 88 + + col0 * + - col0 * - col0
----

skipif mysql # not compatible
query III rowsort label-9768
SELECT * FROM tab0 WHERE NOT CAST ( col2 AS INTEGER ) BETWEEN ( - CAST ( + col2 AS INTEGER ) ) AND - 88 + + col0 * + - col0 * - col0
----

query I rowsort
SELECT DISTINCT + 29 * + - 82 AS col1 FROM tab0 WHERE NULL BETWEEN + + col0 + - 35 AND + 15
----

query I rowsort
SELECT + 17 + - col1 FROM tab1 WHERE NOT + 88 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT - SUM( - col2 ) + - 35 + - 11 FROM tab0 WHERE NOT col2 IS NULL
----
110

skipif mysql # not compatible
query I rowsort label-9771
SELECT - SUM ( - col2 ) + - 35 + - 11 FROM tab0 WHERE NOT col2 IS NULL
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT ALL MIN( ALL - col0 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9772
SELECT ALL MIN ( ALL - col0 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9773
SELECT DISTINCT - col1 * - CAST( NULL AS SIGNED ) AS col0, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-9773
SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) AS col0, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query II rowsort
SELECT ( - col0 ), + col0 AS col1 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 BETWEEN - 33 * col1 * + 15 AND - 31
----

query I rowsort
SELECT - - col1 + - col1 + - + col2 FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-9777
SELECT COUNT( * ), + 36 AS col2 FROM tab1 AS cor0
----
3
36

skipif mysql # not compatible
query II rowsort label-9777
SELECT COUNT ( * ), + 36 AS col2 FROM tab1 AS cor0
----
3
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - - 7 col1 FROM tab1 AS cor0
----
357
595
637

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9779
SELECT DISTINCT + 12 * CAST( + - ( - col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1188
120
564

skipif mysql # not compatible
query I rowsort label-9779
SELECT DISTINCT + 12 * CAST ( + - ( - col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1188
120
564

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT ( + MIN( DISTINCT col0 ) ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9780
SELECT ( + MIN ( DISTINCT col0 ) ) AS col0 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-9781
SELECT ALL COUNT( * ), COUNT( * ) AS col1 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-9781
SELECT ALL COUNT ( * ), COUNT ( * ) AS col1 FROM tab0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col1 FROM tab1 WHERE col2 * col0 IS NOT NULL
----
41
41
41

query I rowsort
SELECT ALL 24 * - 9 + - 73 AS col2 FROM tab0
----
-289
-289
-289

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT 59 + - 58 + + COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
4

skipif mysql # not compatible
query I rowsort label-9784
SELECT 59 + - 58 + + COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
4

query I rowsort
SELECT DISTINCT 81 + - col1 AS col0 FROM tab2
----
14
30
4

query I rowsort
SELECT + 61 - + col2 FROM tab1
----
-35
-7
2

query I rowsort
SELECT DISTINCT - col1 * - col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9788
SELECT CAST( NULL AS SIGNED ) / + + 24 + CAST( NULL AS SIGNED ) * + + ( + - col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9788
SELECT CAST ( NULL AS INTEGER ) / + + 24 + CAST ( NULL AS INTEGER ) * + + ( + - col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + + 92 FROM tab2 AS cor0
----
143
159
169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9790
SELECT ALL + 82 - - MIN( ALL + col2 ) DIV - COUNT( * ) AS col2 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-9790
SELECT ALL + 82 - - MIN ( ALL + col2 ) / - COUNT ( * ) AS col2 FROM tab1
----
63

query I rowsort
SELECT + + 96 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 + - - 25 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT DISTINCT + - COUNT( * ) * - ( + 87 ) AS col1 FROM tab1 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-9793
SELECT DISTINCT + - COUNT ( * ) * - ( + 87 ) AS col1 FROM tab1 AS cor0
----
261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9794
SELECT DISTINCT - + CAST( - col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9794
SELECT DISTINCT - + CAST ( - col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT - + 46 AS col1 FROM tab2 cor0
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9796
SELECT DISTINCT 51 * + + 58 - + MAX( ALL + + col0 ) DIV + + 21 FROM tab2 AS cor0
----
2955

skipif mysql # not compatible
query I rowsort label-9796
SELECT DISTINCT 51 * + + 58 - + MAX ( ALL + + col0 ) / + + 21 FROM tab2 AS cor0
----
2955

query I rowsort
SELECT DISTINCT - + 21 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col0 AND NULL
----

query II rowsort
SELECT ALL 93 AS col2, col2 - - + 54 FROM tab0
----
93
101
93
153
93
64

onlyif mysql # DIV for integer division: 
query I rowsort label-9799
SELECT + col2 DIV + col1 col0 FROM tab0
----
0
0
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9799
SELECT + col2 / + col1 col0 FROM tab0
----
0
0
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9800
SELECT ALL - col2 DIV + + col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9800
SELECT ALL - col2 / + + col1 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL 33 * - col2 * ( - col2 ) * + 95 FROM tab0
----
30726135
313500
6925215

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT MIN( - + 61 ) AS col2 FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-9802
SELECT MIN ( - + 61 ) AS col2 FROM tab0
----
-61

query I rowsort
SELECT col2 + col1 / + col1 AS col1 FROM tab1 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9804
SELECT + COUNT( * ), COUNT( * ) DIV - CAST( 40 AS SIGNED ) AS col0 FROM tab1
----
3
0

skipif mysql # not compatible
query II rowsort label-9804
SELECT + COUNT ( * ), COUNT ( * ) / - CAST ( 40 AS INTEGER ) AS col0 FROM tab1
----
3
0

query II rowsort
SELECT DISTINCT + col2 AS col0, - col2 * - - 39 FROM tab2 AS cor0
----
23
-897
40
-1560
58
-2262

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9806
SELECT DISTINCT + + 42 FROM tab2 AS cor0 WHERE 97 NOT IN ( + col0, + CAST( NULL AS SIGNED ), + col0 / - col0 + - - col1, + - col0 )
----

skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT + + 42 FROM tab2 AS cor0 WHERE 97 NOT IN ( + col0, + CAST ( NULL AS INTEGER ), + col0 / - col0 + - - col1, + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT DISTINCT + - COUNT( * ) + - 18 + + - SUM( DISTINCT 16 ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-37

skipif mysql # not compatible
query I rowsort label-9807
SELECT DISTINCT + - COUNT ( * ) + - 18 + + - SUM ( DISTINCT 16 ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-37

query I rowsort
SELECT - 73 * + col0 FROM tab2
----
-3358
-4672
-5475

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9809
SELECT 29 DIV + ( ( + 45 ) ) * - - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9809
SELECT 29 / + ( ( + 45 ) ) * - - COUNT ( * ) FROM tab0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9810
SELECT * FROM tab2 WHERE + col1 * + ( CAST( NULL AS DECIMAL ) ) / + 55 / + - 15 >= NULL
----

skipif mysql # not compatible
query III rowsort label-9810
SELECT * FROM tab2 WHERE + col1 * + ( CAST ( NULL AS REAL ) ) / + 55 / + - 15 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT DISTINCT + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN ( + col1 ) AND 42
----
1

skipif mysql # not compatible
query I rowsort label-9811
SELECT DISTINCT + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN ( + col1 ) AND 42
----
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + + col2 IS NULL )
----

query I rowsort
SELECT DISTINCT + - col1 + + col0 AS col0 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE - ( + col0 ) * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT DISTINCT - + 55 + + MIN( + 3 ) FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-9815
SELECT DISTINCT - + 55 + + MIN ( + 3 ) FROM tab2 AS cor0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT - COUNT( * ) + - 44 AS col0 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-9816
SELECT - COUNT ( * ) + - 44 AS col0 FROM tab0
----
-47

query I rowsort
SELECT ALL 91 + + - col0 FROM tab0
----
-6
4
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9818
SELECT ALL ( - col0 ) + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL ( - col0 ) + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT DISTINCT COUNT( * ) + + COUNT( * ) col0 FROM tab2
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9819
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) col0 FROM tab2
----
6

query I rowsort
SELECT - col0 + - 90 FROM tab0
----
-105
-177
-187

query I rowsort
SELECT - col0 * - + col2 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9822
SELECT col0 / + col2 + CAST( NULL AS DECIMAL ) * - 20 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9822
SELECT col0 / + col2 + CAST ( NULL AS REAL ) * - 20 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 + col1 col0 FROM tab1
----
-23
-32
10

query I rowsort
SELECT DISTINCT + col1 + - - ( 87 ) FROM tab0
----
108
168
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT DISTINCT MIN( DISTINCT + 14 ) col2 FROM tab2
----
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9825
SELECT DISTINCT MIN ( DISTINCT + 14 ) col2 FROM tab2
----
14

query II rowsort
SELECT DISTINCT ( + 17 ) AS col2, 84 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
17
84

query III rowsort
SELECT ALL * FROM tab2 WHERE + 2 IN ( - + col2, ( + 26 ) * - + 1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9828
SELECT ALL COUNT( * ) * COUNT( * ) DIV - 4 FROM tab1, tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL COUNT ( * ) * COUNT ( * ) / - 4 FROM tab1, tab0 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT DISTINCT COUNT( * ) * - ( 80 ) - 27 FROM tab2 WHERE NOT + col2 / + + col2 / + + col2 NOT BETWEEN ( - 69 ) AND NULL
----
-27

skipif mysql # not compatible
query I rowsort label-9829
SELECT DISTINCT COUNT ( * ) * - ( 80 ) - 27 FROM tab2 WHERE NOT + col2 / + + col2 / + + col2 NOT BETWEEN ( - 69 ) AND NULL
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT - 31 + - MIN( DISTINCT + + 90 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-121

skipif mysql # not compatible
query I rowsort label-9830
SELECT - 31 + - MIN ( DISTINCT + + 90 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-121

query I rowsort
SELECT - 54 * - - col1 AS col1 FROM tab0 AS cor0
----
-1134
-4374
-54

query I rowsort
SELECT DISTINCT - col2 * - - 21 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL ( - - 39 ) AS col0 FROM tab2 AS cor0
----
39
39
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9834
SELECT + COUNT( * ) * + CAST( + + 76 AS SIGNED ) FROM tab0 cor0
----
228

skipif mysql # not compatible
query I rowsort label-9834
SELECT + COUNT ( * ) * + CAST ( + + 76 AS INTEGER ) FROM tab0 cor0
----
228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9835
SELECT ALL + COUNT( * ) * COUNT( * ) * CAST( + + 29 AS SIGNED ) + - - COUNT( * ) FROM tab1 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL + COUNT ( * ) * COUNT ( * ) * CAST ( + + 29 AS INTEGER ) + - - COUNT ( * ) FROM tab1 AS cor0
----
264

query I rowsort
SELECT ALL - 22 * col0 FROM tab0 AS cor0
----
-1914
-2134
-330

query I rowsort
SELECT 11 AS col2 FROM tab0 AS cor0 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9838
SELECT + col2 AS col0 FROM tab2 WHERE NOT + - CAST( 38 AS SIGNED ) - 26 <> NULL
----

skipif mysql # not compatible
query I rowsort label-9838
SELECT + col2 AS col0 FROM tab2 WHERE NOT + - CAST ( 38 AS INTEGER ) - 26 <> NULL
----

query I rowsort
SELECT DISTINCT - - col1 * col0 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9840
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9840
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT ALL 95 * + COUNT( * ) FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-9841
SELECT ALL 95 * + COUNT ( * ) FROM tab1
----
285

query I rowsort
SELECT ALL col0 * - - 82 FROM tab1
----
4182
6970
7462

query I rowsort
SELECT - ( - col2 ) * col0 + - - col1 - + col0 + - col0 * - col2 + - ( - col2 ) - + + 88 AS col0 FROM tab0
----
1435
1596
19121

query I rowsort
SELECT ALL + + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL = col0 * col2
----

query I rowsort
SELECT DISTINCT + - col1 * + 48 FROM tab1 AS cor0
----
-2256
-240
-672

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 6 ) NOT BETWEEN 46 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col1 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT ALL + col1 + + 13 * + - 41 FROM tab2 AS cor0
----
-456
-466
-482

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9849
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9849
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - col2 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0 WHERE + col0 * col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9850
SELECT COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0 WHERE + col0 * col0 IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9851
SELECT ALL 40 DIV + - 43 * - - 51 * - 17 * - COUNT( * ) AS col2 FROM tab2, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9851
SELECT ALL 40 / + - 43 * - - 51 * - 17 * - COUNT ( * ) AS col2 FROM tab2, tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9852
SELECT * FROM tab0, tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

skipif mysql # not compatible
query IIIIII rowsort label-9852
SELECT * FROM tab0, tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT + col0 FROM tab2 WHERE ( NOT + col0 IS NOT NULL )
----

query I rowsort
SELECT - col0 - - - col1 FROM tab1
----
-138
-65
-90

query I rowsort
SELECT 44 - + + 48 - + + col2 AS col2 FROM tab0
----
-103
-14
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT DISTINCT - 33 + SUM( ALL - col1 ) FROM tab0 WHERE - 97 IS NOT NULL
----
-136

skipif mysql # not compatible
query I rowsort label-9856
SELECT DISTINCT - 33 + SUM ( ALL - col1 ) FROM tab0 WHERE - 97 IS NOT NULL
----
-136

query I rowsort
SELECT ALL 1 - + col2 FROM tab0
----
-46
-9
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT ALL + SUM( ALL - 21 ) FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-9858
SELECT ALL + SUM ( ALL - 21 ) FROM tab2
----
-63

query I rowsort
SELECT DISTINCT - col2 - - - 89 FROM tab2 AS cor0
----
-112
-129
-147

query I rowsort
SELECT - 1 FROM tab0 AS cor0 WHERE ( col0 ) IN ( - + 18, 23 )
----

query I rowsort
SELECT ALL + 2 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
2
2
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9862
SELECT - COUNT( * ) - + + CAST( NULL AS DECIMAL ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9862
SELECT - COUNT ( * ) - + + CAST ( NULL AS REAL ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > 43 + - col0
----

query II rowsort
SELECT DISTINCT - col1, col2 AS col2 FROM tab1 AS cor0 WHERE NOT 24 + + 8 < - - col0
----

query I rowsort
SELECT ALL + col2 + col0 * - ( - col1 ) * 16 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 33, - col0 )
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT + + col2 / - - ( - - col2 ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT - COUNT( + - col1 ) * - + 77 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-9868
SELECT - COUNT ( + - col1 ) * - + 77 FROM tab2 AS cor0
----
231

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 23 / 12 * col2 * - + col2 * - - 42 IS NOT NULL
----

query II rowsort
SELECT ( - col0 ) AS col0, col1 AS col0 FROM tab1
----
-51
14
-85
5
-91
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9871
SELECT ALL col0, CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-9871
SELECT ALL col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, + col2 FROM tab0
----
10
10
47
47
99
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 72 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 25, ( - 42 ) col0 FROM tab1 AS cor0
----
25
-42

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT 81 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 + col2 + - col0 + - col2 + + ( 79 ) FROM tab2 AS cor0
----
71
84
92

onlyif mysql # DIV for integer division: 
query I rowsort label-9877
SELECT ALL 95 DIV + + col0 + + 32 AS col2 FROM tab2 AS cor0
----
33
33
34

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL 95 / + + col0 + + 32 AS col2 FROM tab2 AS cor0
----
33
33
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9878
SELECT + ( - col1 ) + - CAST( NULL AS SIGNED ) + + - col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9878
SELECT + ( - col1 ) + - CAST ( NULL AS INTEGER ) + + - col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9879
SELECT ( + 48 ) * 86 + - + col0 - + + col1 DIV - 75 + + 95 + - - col1 + - 5 FROM tab0 AS cor0
----
4122
4152
4285

skipif mysql # not compatible
query I rowsort label-9879
SELECT ( + 48 ) * 86 + - + col0 - + + col1 / - 75 + + 95 + - - col1 + - 5 FROM tab0 AS cor0
----
4122
4152
4285

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT ALL + + MAX( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9880
SELECT ALL + + MAX ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9881
SELECT ALL - col1 + + col0 - CAST( 56 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-12
-19
24

skipif mysql # not compatible
query I rowsort label-9881
SELECT ALL - col1 + + col0 - CAST ( 56 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-12
-19
24

onlyif mysql # DIV for integer division: 
query II rowsort label-9882
SELECT DISTINCT + col0 + - 58 AS col0, + ( - col1 ) + + + ( - - col0 ) DIV col1 FROM tab2 AS cor0
----
-12
-51
17
-66
6
-77

skipif mysql # not compatible
query II rowsort label-9882
SELECT DISTINCT + col0 + - 58 AS col0, + ( - col1 ) + + + ( - - col0 ) / col1 FROM tab2 AS cor0
----
-12
-51
17
-66
6
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT + - MIN( + col2 ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-9883
SELECT + - MIN ( + col2 ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-13

query I rowsort
SELECT ALL 44 + - col1 FROM tab1
----
-3
30
39

query II rowsort
SELECT + col0 * + + col1 + - col0 AS col1, + 82 AS col1 FROM tab1
----
340
82
4186
82
663
82

query III rowsort
SELECT * FROM tab0 WHERE + col0 NOT BETWEEN NULL AND + + 39
----
87
21
10
97
1
99

query I rowsort
SELECT ALL 11 + + 70 FROM tab1
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT DISTINCT - COUNT( * ) - + + MIN( ALL + + col1 ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-9888
SELECT DISTINCT - COUNT ( * ) - + + MIN ( ALL + + col1 ) FROM tab0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT ALL COUNT( * ) + COUNT( ALL - - 39 ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9889
SELECT ALL COUNT ( * ) + COUNT ( ALL - - 39 ) AS col2 FROM tab0
----
6

query III rowsort
SELECT * FROM tab0 WHERE + - col0 / + col2 * 82 BETWEEN - ( - 80 ) AND col0
----

query I rowsort
SELECT col2 * + 81 * - 67 * - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9892
SELECT + CAST( 55 AS SIGNED ) / - 1 + + col1 FROM tab1 AS cor0 WHERE NOT 92 * - col2 + + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9892
SELECT + CAST ( 55 AS INTEGER ) / - 1 + + col1 FROM tab1 AS cor0 WHERE NOT 92 * - col2 + + - CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 49 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9894
SELECT DISTINCT + CAST( NULL AS SIGNED ), + col2 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-9894
SELECT DISTINCT + CAST ( NULL AS INTEGER ), + col2 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NOT + col0 + col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9895
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col0 + col0 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT - MIN( DISTINCT col2 ) col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9896
SELECT - MIN ( DISTINCT col2 ) col2 FROM tab2 AS cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 28 col0, - col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col0 col0 FROM tab2 cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9899
SELECT + 55 * ( + 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-9899
SELECT + 55 * ( + CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9900
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT col1 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT DISTINCT MAX( - + col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9901
SELECT DISTINCT MAX ( - + col1 ) AS col2 FROM tab0
----
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 / + 7 IN ( - 75 * - + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT + 88 BETWEEN NULL AND + col2 * + + 84 / + + 48 + - col2 * - 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT + MIN( - 0 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9904
SELECT + MIN ( - 0 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9905
SELECT COUNT( * ) DIV - ( + - 70 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9905
SELECT COUNT ( * ) / - ( + - 70 ) AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL + 11 * - + 19 + + + col2 FROM tab2
----
-151
-169
-186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9907
SELECT 37 DIV COUNT( * ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-9907
SELECT 37 / COUNT ( * ) FROM tab2 AS cor0
----
12

query II rowsort
SELECT ALL - ( col1 ) AS col0, - col2 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9909
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - CAST( + + 84 AS SIGNED ) / 66 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9909
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - CAST ( + + 84 AS INTEGER ) / 66 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9910
SELECT + col1 DIV - col0 - col2 - - + col2 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9910
SELECT + col1 / - col0 - col2 - - + col2 FROM tab2 AS cor0
----
-1
-1
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col0 AND + + 49
----

query I rowsort
SELECT ALL col1 + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

query I rowsort
SELECT - - col0 + col2 + + + col2 - - + col0 * - col2 - - + 81 * ( - 0 ) FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 22 - - col2 - - col2 + - col1 * col2 * + + col1 AS col2 FROM tab1
----
-1379
-150098
-18646

onlyif mysql # DIV for integer division: 
query I rowsort label-9915
SELECT DISTINCT + 89 - + 29 DIV + col0 FROM tab0
----
88
89

skipif mysql # not compatible
query I rowsort label-9915
SELECT DISTINCT + 89 - + 29 / + col0 FROM tab0
----
88
89

onlyif mysql # DIV for integer division: 
query I rowsort label-9916
SELECT ALL 95 DIV + - ( + - col0 ) AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9916
SELECT ALL 95 / + - ( + - col0 ) AS col2 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9917
SELECT CAST( - col0 AS SIGNED ) * + col0 * + + ( + 28 ) - col2 AS col1 FROM tab1
----
-202359
-231936
-72924

skipif mysql # not compatible
query I rowsort label-9917
SELECT CAST ( - col0 AS INTEGER ) * + col0 * + + ( + 28 ) - col2 AS col1 FROM tab1
----
-202359
-231936
-72924

query I rowsort
SELECT - ( - + col0 ) AS col2 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9919
SELECT ALL CAST( - + COUNT( ALL + + col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL CAST ( - + COUNT ( ALL + + col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9920
SELECT DISTINCT col1 * - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9920
SELECT DISTINCT col1 * - CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9921
SELECT DISTINCT col2 DIV + 52 AS col1 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT col2 / + 52 AS col1 FROM tab2
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * 90 + + + col2 BETWEEN - 45 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9923
SELECT + ( + COUNT( + - col1 ) ) AS col0, - 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-9923
SELECT + ( + COUNT ( + - col1 ) ) AS col0, - COUNT ( * ) col2 FROM tab2 AS cor0
----
3
-3

query I rowsort
SELECT - - 96 * col0 AS col2 FROM tab1 AS cor0
----
4896
8160
8736

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT ALL - COUNT( * ) + + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9925
SELECT ALL - COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT + 19 * COUNT( * ) AS col1 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-9926
SELECT + 19 * COUNT ( * ) AS col1 FROM tab2
----
57

query I rowsort
SELECT col0 + + - 27 - + 3 AS col1 FROM tab1
----
21
55
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9928
SELECT 6 + COUNT( DISTINCT + CAST( col2 AS DECIMAL ) ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9928
SELECT 6 + COUNT ( DISTINCT + CAST ( col2 AS REAL ) ) FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT DISTINCT MIN( DISTINCT + 31 ) AS col2 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-9929
SELECT DISTINCT MIN ( DISTINCT + 31 ) AS col2 FROM tab1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT DISTINCT COUNT( DISTINCT - col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT COUNT ( DISTINCT - col1 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT + 45 - 28 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
17

query I rowsort
SELECT DISTINCT + - 34 + - + 81 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - col1 ) - - ( - col2 ) + - + 99 AS col2, 97 col2 FROM tab0
----
-197
97
-65
97
-88
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9934
SELECT ALL - ( col1 ) - - CAST( + col1 AS SIGNED ) - + col2 DIV - col1 AS col1 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL - ( col1 ) - - CAST ( + col1 AS INTEGER ) - + col2 / - col1 AS col1 FROM tab1
----
1
11
6

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9935
SELECT ALL CAST( - col0 AS DECIMAL ) - - CAST( NULL AS SIGNED ) AS col1, - 80 + + col1 FROM tab2
----
NULL
-13
NULL
-29
NULL
-3

skipif mysql # not compatible
query II rowsort label-9935
SELECT ALL CAST ( - col0 AS REAL ) - - CAST ( NULL AS INTEGER ) AS col1, - 80 + + col1 FROM tab2
----
NULL
-13
NULL
-29
NULL
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col0 - + col0 * col1 <= 18 + col1 * + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9937
SELECT - + 61 + + COUNT( * ) - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9937
SELECT - + 61 + + COUNT ( * ) - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9938
SELECT + ( + 31 ) + - ( - COUNT( + + CAST( NULL AS SIGNED ) ) ) + - CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-9938
SELECT + ( + 31 ) + - ( - COUNT ( + + CAST ( NULL AS INTEGER ) ) ) + - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9939
SELECT + ( CAST( NULL AS DECIMAL ) ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9939
SELECT + ( CAST ( NULL AS REAL ) ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col2 AND - + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9941
SELECT DISTINCT - 95 * COUNT( * ) DIV + + COUNT( * ) FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-9941
SELECT DISTINCT - 95 * COUNT ( * ) / + + COUNT ( * ) FROM tab1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT + MAX( ALL - ( + + col0 ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-9942
SELECT + MAX ( ALL - ( + + col0 ) ) FROM tab0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9943
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, COUNT( col0 ) + 88 FROM tab2
----
NULL
91

skipif mysql # not compatible
query II rowsort label-9943
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, COUNT ( col0 ) + 88 FROM tab2
----
NULL
91

query I rowsort
SELECT ALL ( - + 73 ) FROM tab1
----
-73
-73
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9945
SELECT ALL + 98 * CAST( + 93 AS SIGNED ) AS col1 FROM tab0 WHERE - col2 / + 76 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL + 98 * CAST ( + 93 AS INTEGER ) AS col1 FROM tab0 WHERE - col2 / + 76 IS NULL
----

query I rowsort
SELECT ( + - 81 ) * + col1 AS col1 FROM tab2
----
-4131
-5427
-6237

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> 92 + - col0 + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + ( - col0 ) col1 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT - 6 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query II rowsort
SELECT col0 * - col0, - 57 + - + col1 AS col1 FROM tab1 cor0
----
-2601
-71
-7225
-62
-8281
-104

query I rowsort
SELECT ALL - col2 * + col1 * - 66 AS col2 FROM tab0 AS cor0
----
13860
251262
6534

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * + ( - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 + 8 + - - 74 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT + ( + + COUNT( * ) ) + - 46 + + + 55 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-9954
SELECT + ( + + COUNT ( * ) ) + - 46 + + + 55 FROM tab1
----
12

query I rowsort
SELECT - + col2 + + col2 + + - 89 AS col1 FROM tab1 AS cor0
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT ALL - COUNT( * ) + - MAX( ALL 65 ) AS col2 FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-9956
SELECT ALL - COUNT ( * ) + - MAX ( ALL 65 ) AS col2 FROM tab2 AS cor0
----
-68

query II rowsort
SELECT DISTINCT - col2 * - col0 * - col1 AS col0, - col1 + + 93 AS col2 FROM tab2 AS cor0
----
-197120
16
-291450
26
-53958
42

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9958
SELECT + CAST( NULL AS DECIMAL ) * - - col0, col0 AS col2 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-9958
SELECT + CAST ( NULL AS REAL ) * - - col0, col0 AS col2 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9959
SELECT ALL col1 DIV + col0 + - ( 83 ) FROM tab1 AS cor0
----
-83
-83
-83

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL col1 / + col0 + - ( 83 ) FROM tab1 AS cor0
----
-83
-83
-83

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT col2 + + - col0 > - + col2
----
-21

query III rowsort
SELECT * FROM tab2 WHERE + 51 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9962
SELECT ALL 52 * col0 + - - 3 * + CAST( - + col2 AS SIGNED ) * + + col2 + - 93 FROM tab2
----
-1565
-6285
712

skipif mysql # not compatible
query I rowsort label-9962
SELECT ALL 52 * col0 + - - 3 * + CAST ( - + col2 AS INTEGER ) * + + col2 + - 93 FROM tab2
----
-1565
-6285
712

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col1, col1 col0 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9964
SELECT DISTINCT - col2 DIV + ( - col2 ) + - col0 FROM tab2
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-9964
SELECT DISTINCT - col2 / + ( - col2 ) + - col0 FROM tab2
----
-45
-63
-74

query I rowsort
SELECT DISTINCT 82 * + + col2 * + + col1 FROM tab1
----
110208
24190
262072

onlyif mysql # DIV for integer division: 
query I rowsort label-9966
SELECT - 97 DIV col2 AS col2 FROM tab0
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-9966
SELECT - 97 / col2 AS col2 FROM tab0
----
-2
-9
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9967
SELECT 96 DIV 77 * - MIN( 38 ) FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-9967
SELECT 96 / 77 * - MIN ( 38 ) FROM tab2
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-9968
SELECT + + col1 + - 17 DIV + 86 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9968
SELECT + + col1 + - 17 / + 86 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - + col0 + + 60 FROM tab1 AS cor0
----
-25
-31
9

query I rowsort
SELECT - + col2 + 44 FROM tab2 cor0
----
-14
21
4

query II rowsort
SELECT ALL + col0 AS col2, - 38 FROM tab1 AS cor0 WHERE NULL <> col1
----

query I rowsort
SELECT + col2 * + col1 + + col0 FROM tab0
----
196
297
3822

query I rowsort
SELECT ALL 96 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT + COUNT( - - 79 ) - 2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9974
SELECT + COUNT ( - - 79 ) - 2 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9975
SELECT - - CAST( - - COUNT( col2 ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9975
SELECT - - CAST ( - - COUNT ( col2 ) AS INTEGER ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9976
SELECT ALL + COUNT( * ) col1, - COUNT( * ) FROM tab1
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9976
SELECT ALL + COUNT ( * ) col1, - COUNT ( * ) FROM tab1
----
3
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 BETWEEN col2 AND + col2 * + ( col0 ) + col0
----
87
21
10

query III rowsort
SELECT * FROM tab0 WHERE NOT + 29 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - ( + 51 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT ALL MIN( - - 28 ) AS col1 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-9980
SELECT ALL MIN ( - - 28 ) AS col1 FROM tab2
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 41 col2 FROM tab1
----
-1927
-205
-574

onlyif mysql # aggregate syntax: 
query II rowsort label-9982
SELECT ALL - + COUNT( * ) AS col0, 54 col1 FROM tab2 cor0
----
-3
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9982
SELECT ALL - + COUNT ( * ) AS col0, 54 col1 FROM tab2 cor0
----
-3
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT - MIN( - + col1 ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9983
SELECT - MIN ( - + col1 ) AS col1 FROM tab2 AS cor0
----
77

query II rowsort
SELECT + + col0 AS col2, col2 * - col0 FROM tab0 cor0
----
15
-705
87
-870
97
-9603

query I rowsort
SELECT 97 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT ALL - 23 * + 84 * - 82 AS col0 FROM tab1
----
158424
158424
158424

query I rowsort
SELECT ALL - 46 AS col2 FROM tab2 cor0 WHERE NOT + col2 IS NULL
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT DISTINCT - SUM( - + col2 ) * - 84 AS col0 FROM tab2 cor0
----
-10164

skipif mysql # not compatible
query I rowsort label-9988
SELECT DISTINCT - SUM ( - + col2 ) * - 84 AS col0 FROM tab2 cor0
----
-10164

query I rowsort
SELECT ALL - - 72 + + + col0 AS col1 FROM tab0 AS cor0
----
159
169
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9990
SELECT ALL - 11 DIV + MAX( DISTINCT - + 86 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9990
SELECT ALL - 11 / + MAX ( DISTINCT - + 86 ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 + - ( - + col0 ) * col2 FROM tab1 AS cor0
----
4992
5074
6256

query I rowsort
SELECT ALL - + 42 + col1 AS col0 FROM tab1 AS cor0
----
-28
-37
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 42 * + ( + + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 38 * col0 + + col2 AS col0 FROM tab1
----
2034
3289
3526

query III rowsort
SELECT * FROM tab2 WHERE + col2 BETWEEN - - 84 AND ( + 5 )
----

query I rowsort
SELECT - col0 + col2 * 5 FROM tab2
----
136
215
69

query II rowsort
SELECT + col2 AS col2, col0 FROM tab2 WHERE ( NOT + 59 * + 21 >= - ( + 89 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9998
SELECT DISTINCT + - 83 AS col0 FROM tab2 AS cor0 WHERE NOT + ( - col2 ) * + col0 + 68 + + - 59 + CAST( - col1 AS SIGNED ) IS NULL
----
-83

skipif mysql # not compatible
query I rowsort label-9998
SELECT DISTINCT + - 83 AS col0 FROM tab2 AS cor0 WHERE NOT + ( - col2 ) * + col0 + 68 + + - 59 + CAST ( - col1 AS INTEGER ) IS NULL
----
-83

query I rowsort
SELECT + - 25 AS col0 FROM tab2 cor0
----
-25
-25
-25

