sqllogictest
Artifact Content
Not logged in

Artifact 5ee9dc75fe1eb7f8eb9e203f2515e9dc6be566e1:


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 mys