sqllogictest
Artifact Content
Not logged in

Artifact bdf91d95833fed1eb164a44e30645042998c6240:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1
SELECT ALL - CAST( - MIN( 74 ) AS SIGNED ) FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-1
SELECT ALL - CAST ( - MIN ( 74 ) AS INTEGER ) FROM tab0
----
74

query I rowsort
SELECT col2 * - col1 * - col2 FROM tab1
----
129024
17405
217328

query I rowsort
SELECT - col1 * - + 94 AS col0 FROM tab2
----
4794
6298
7238

query I rowsort
SELECT - col2 * + + 39 AS col1 FROM tab0
----
-1833
-3861
-390

onlyif mysql # DIV for integer division: 
query I rowsort label-5
SELECT DISTINCT + 42 * col0 DIV col0 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-5
SELECT DISTINCT + 42 * col0 / col0 FROM tab1
----
42

query I rowsort
SELECT 99 FROM tab2 WHERE NOT + col1 * - 62 = col1
----
99
99
99

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8
SELECT DISTINCT - MIN ( - col0 ) col0 FROM tab1 cor0
----
91

query I rowsort
SELECT ALL - 14 + - 65 - col2 - + 0 * - col1 * - col1 AS col1 FROM tab1
----
-138
-147
-175

onlyif mysql # aggregate syntax: 
query II rowsort label-10
SELECT DISTINCT + COUNT( * ), + COUNT( * ) AS col1 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-10
SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) AS col1 FROM tab1
----
3
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col1 col1 FROM tab1 cor0
----
110
115
64

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT DISTINCT - 35 + + ( - 72 ) + - COUNT( * ) AS col2 FROM tab2
----
-110

skipif mysql # not compatible
query I rowsort label-15
SELECT DISTINCT - 35 + + ( - 72 ) + - COUNT ( * ) AS col2 FROM tab2
----
-110

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

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT + MAX( ALL - 71 ) FROM tab0
----
-71

skipif mysql # not compatible
query I rowsort label-17
SELECT + MAX ( ALL - 71 ) FROM tab0
----
-71

query II rowsort
SELECT DISTINCT col1 + 18 AS col1, - col2 AS col0 FROM tab1
----
23
-59
32
-96
65
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT + COUNT( * ) + 53 AS col0 FROM tab2 WHERE NOT ( + 25 ) BETWEEN col0 + + col1 * 80 AND + col2 AND NOT ( NULL ) IS NOT NULL
----
56

skipif mysql # not compatible
query I rowsort label-19
SELECT + COUNT ( * ) + 53 AS col0 FROM tab2 WHERE NOT ( + 25 ) BETWEEN col0 + + col1 * 80 AND + col2 AND NOT ( NULL ) IS NOT NULL
----
56

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * 69 * 21 BETWEEN - col2 * + col1 AND col0 * + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-21
SELECT + 83 + - ( col0 ) DIV + col0 FROM tab1 AS cor0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-21
SELECT + 83 + - ( col0 ) / + col0 FROM tab1 AS cor0
----
82
82
82

query I rowsort
SELECT DISTINCT 56 / 78 + + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT ALL COUNT( * ) * + + 51 AS col0 FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-23
SELECT ALL COUNT ( * ) * + + 51 AS col0 FROM tab2
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT DISTINCT + MIN( ALL - + 47 ) AS col1 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-24
SELECT DISTINCT + MIN ( ALL - + 47 ) AS col1 FROM tab0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT DISTINCT COUNT( * ) * + 87 AS col1 FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-25
SELECT DISTINCT COUNT ( * ) * + 87 AS col1 FROM tab0
----
261

query I rowsort
SELECT DISTINCT - ( + + 43 ) FROM tab2 AS cor0
----
-43

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

query II rowsort
SELECT DISTINCT - col2 AS col1, col0 AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-29
SELECT ALL + 32 * - CAST( NULL AS SIGNED ) + col0 * 33 * + 87 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-29
SELECT ALL + 32 * - CAST ( NULL AS INTEGER ) + col0 * 33 * + 87 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 - - 41 NOT BETWEEN ( - col0 ) AND 23
----

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 12 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 95 AS col1, + col0 + + - 70 FROM tab1
----
95
-19
95
15
95
21

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 NOT IN ( + + 70 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT ALL - 81 * + + SUM( col1 ) AS col0 FROM tab0
----
-8343

skipif mysql # not compatible
query I rowsort label-35
SELECT ALL - 81 * + + SUM ( col1 ) AS col0 FROM tab0
----
-8343

query I rowsort
SELECT ALL + 75 * - - col1 FROM tab2
----
3825
5025
5775

query I rowsort
SELECT + 98 * - col0 FROM tab1
----
-4998
-8330
-8918

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT COUNT( * ) FROM tab2 WHERE NOT ( NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-38
SELECT COUNT ( * ) FROM tab2 WHERE NOT ( NULL IS NULL )
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 + 51 * + col2 col2 FROM tab1 AS cor0
----
14112
6490
8092

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT ALL + + COUNT( + ( - + 66 ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-42
SELECT ALL + + COUNT ( + ( - + 66 ) ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 29 - 8 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > + - col0
----

query I rowsort
SELECT col2 * col2 FROM tab2 WHERE col2 + + col0 NOT BETWEEN NULL AND - col0 * + col2
----
1600
3364
529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - col2 + 45 * - + col1 col1 FROM tab2 AS cor0
----
-2295
-3015
-3465

query I rowsort
SELECT DISTINCT + 21 * col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT ( - col2 * 28 NOT IN ( - col0 / + col0 + col1 ) ) ) )
----

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

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

query I rowsort
SELECT + - 63 + 15 - 59 * col2 AS col1 FROM tab2 AS cor0
----
-1405
-2408
-3470

query I rowsort
SELECT - col1 + + 4 AS col0 FROM tab0 AS cor0
----
-17
-77
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 55 * - - 91 * - col1 col0, 16 * + col2 * + col2 AS col0 FROM tab2 AS cor0
----
255255
8464
335335
53824
385385
25600

query III rowsort
SELECT * FROM tab1 cor0 WHERE 83 - + col2 + - col0 < NULL
----

query I rowsort
SELECT ALL + + 62 + col0 * + col0 * col1 FROM tab1 cor0
----
36187
36476
389269

query II rowsort
SELECT ALL - col0 * + + col2 * + - 99, col0 AS col0 FROM tab1
----
484704
51
496485
85
612612
91

onlyif mysql # aggregate syntax: 
query II rowsort label-56
SELECT DISTINCT + MAX( + 6 ) + 15 AS col0, - 28 col2 FROM tab0
----
21
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-56
SELECT DISTINCT + MAX ( + 6 ) + 15 AS col0, - 28 col2 FROM tab0
----
21
-28

query I rowsort
SELECT DISTINCT - 26 * col2 * col0 AS col2 FROM tab1 WHERE - 15 IN ( col2 )
----

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

query I rowsort
SELECT DISTINCT col1 - - col1 * + col0 + col0 FROM tab0 AS cor0
----
1311
1935
195

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-61
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE - 88 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-61
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE - 88 IS NOT NULL
----
NULL

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

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

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( col0 ) < ( + - 64 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + col0 = - 31
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT DISTINCT 41 * - MIN( DISTINCT 94 ) AS col1 FROM tab2
----
-3854

skipif mysql # not compatible
query I rowsort label-67
SELECT DISTINCT 41 * - MIN ( DISTINCT 94 ) AS col1 FROM tab2
----
-3854

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 30 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT COUNT( * ) * MAX( ALL 68 ) FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-69
SELECT COUNT ( * ) * MAX ( ALL 68 ) FROM tab0
----
204

query I rowsort
SELECT col2 * - 4 AS col1 FROM tab1
----
-236
-272
-384

query I rowsort
SELECT ALL - 14 AS col0 FROM tab0 WHERE NOT col0 IN ( col0 * + + col2, - 12 )
----
-14
-14
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-72
SELECT DISTINCT - col0 * - 6 AS col1, ( - CAST( + col2 AS SIGNED ) ) + + ( - - col2 ) FROM tab2 AS cor0 WHERE NOT + col2 * - 48 IS NULL
----
276
0
384
0
450
0

skipif mysql # not compatible
query II rowsort label-72
SELECT DISTINCT - col0 * - 6 AS col1, ( - CAST ( + col2 AS INTEGER ) ) + + ( - - col2 ) FROM tab2 AS cor0 WHERE NOT + col2 * - 48 IS NULL
----
276
0
384
0
450
0

query I rowsort
SELECT + 6 FROM tab0 AS cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT + 53 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-74
SELECT + 53 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
56

query II rowsort
SELECT ALL col2, col2 - - + col1 FROM tab1
----
59
64
68
115
96
110

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT DISTINCT - MIN( + col0 ) + - - 2 FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-76
SELECT DISTINCT - MIN ( + col0 ) + - - 2 FROM tab2
----
-44

query I rowsort
SELECT ALL + col1 - - + col2 - - col0 AS col0 FROM tab0 cor0
----
118
143
197

query I rowsort
SELECT ALL + - 13 * - col1 AS col2 FROM tab2 AS cor0
----
1001
663
871

query I rowsort
SELECT - 89 * col2 * - col0 * - col1 FROM tab0 AS cor0
----
-1626030
-5082345
-854667

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

onlyif mysql # DIV for integer division: 
query II rowsort label-81
SELECT ALL + col2 AS col2, col0 DIV + col2 + 52 DIV - col2 FROM tab2 AS cor0
----
23
0
40
0
58
1

skipif mysql # not compatible
query II rowsort label-81
SELECT ALL + col2 AS col2, col0 / + col2 + 52 / - col2 FROM tab2 AS cor0
----
23
0
40
0
58
1

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT - MAX( DISTINCT - col1 ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-82
SELECT - MAX ( DISTINCT - col1 ) FROM tab2 cor0
----
51

query I rowsort
SELECT ALL + ( + ( + col0 ) ) - ( + 76 ) FROM tab2 AS cor0
----
-1
-12
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT DISTINCT - 87 * - + COUNT( * ) + 90 FROM tab1 AS cor0
----
351

skipif mysql # not compatible
query I rowsort label-84
SELECT DISTINCT - 87 * - + COUNT ( * ) + 90 FROM tab1 AS cor0
----
351

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

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

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

query I rowsort
SELECT DISTINCT + col0 * + 33 AS col1 FROM tab0 AS cor0
----
2871
3201
495

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

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

query I rowsort
SELECT ALL col0 * + - col1 * - - col0 AS col2 FROM tab0 AS cor0
----
-158949
-18225
-9409

query I rowsort
SELECT ALL + col0 + + 67 AS col2 FROM tab1
----
118
152
158

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

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

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

query I rowsort
SELECT ALL - col2 + + + 61 FROM tab0
----
-38
14
51

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT DISTINCT COUNT( * ) * 86 col2 FROM tab0 AS cor0
----
258

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-94
SELECT DISTINCT COUNT ( * ) * 86 col2 FROM tab0 AS cor0
----
258

query I rowsort
SELECT + col1 * + 28 * ( + col1 ) FROM tab1 AS cor0
----
5488
61852
700

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT - 88 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-98
SELECT - 88 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-264

query II rowsort
SELECT DISTINCT - 1, + 30 * - - 30 + + - col2 AS col2 FROM tab1 AS cor0
----
-1
804
-1
832
-1
841

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT + MAX( + col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-103
SELECT + MAX ( + col2 ) AS col1 FROM tab1 AS cor0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-104
SELECT 4 DIV + 18 + + 21 FROM tab0 WHERE NOT + 61 + col1 BETWEEN + - ( col1 ) AND ( + 90 )
----
21

skipif mysql # not compatible
query I rowsort label-104
SELECT 4 / + 18 + + 21 FROM tab0 WHERE NOT + 61 + col1 BETWEEN + - ( col1 ) AND ( + 90 )
----
21

query I rowsort
SELECT ALL col1 + + + 98 AS col0 FROM tab1
----
103
112
145

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

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE - 39 - - + 4 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT + COUNT( * ) + SUM( - col2 ) FROM tab2
----
-118

skipif mysql # not compatible
query I rowsort label-108
SELECT + COUNT ( * ) + SUM ( - col2 ) FROM tab2
----
-118

query I rowsort
SELECT DISTINCT - 64 * 76 * + col2 FROM tab1 AS cor0
----
-286976
-330752
-466944

query I rowsort
SELECT col2 * 95 AS col1 FROM tab0 AS cor0 WHERE NULL IN ( 9 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 77 * - + col0 = ( - 52 + - 96 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-112
SELECT ALL - CAST( NULL AS SIGNED ) - - - 69 col1 FROM tab2
----
NULL
NULL
NULL

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

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

skipif mysql # not compatible
query I rowsort label-113
SELECT ALL + col0 / - col2 + + col1 AS col0 FROM tab2 AS cor0
----
49
66
76

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) < - - 73
----

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

query I rowsort
SELECT ALL col1 * 53 FROM tab2 cor0
----
2703
3551
4081

query I rowsort
SELECT DISTINCT - ( + col0 ) * - col0 FROM tab2 AS cor0
----
2116
4096
5625

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-119
SELECT - 75 / - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-119
SELECT - 75 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT + COUNT( DISTINCT 76 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-120
SELECT + COUNT ( DISTINCT 76 ) FROM tab0
----
1

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

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

skipif mysql # not compatible
query I rowsort label-122
SELECT + 41 / - COUNT ( * ) AS col0 FROM tab1
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-123
SELECT ALL - col1 DIV 67 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-123
SELECT ALL - col1 / 67 AS col0 FROM tab0
----
-1
0
0

query II rowsort
SELECT + 21 * col2, col2 FROM tab1
----
1239
59
1428
68
2016
96

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

skipif mysql # not compatible
query I rowsort label-125
SELECT + MAX ( + 53 ) AS col0 FROM tab2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT MAX( ALL + 17 ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-126
SELECT MAX ( ALL + 17 ) FROM tab0
----
17

query I rowsort
SELECT ALL + - 91 * + 64 AS col1 FROM tab2 AS cor0
----
-5824
-5824
-5824

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

query I rowsort
SELECT DISTINCT - + 61 * + col0 AS col0 FROM tab0 AS cor0
----
-5307
-5917
-915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-130
SELECT - + CAST( NULL AS SIGNED ), COUNT( * ) * + 35 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL
315

skipif mysql # not compatible
query II rowsort label-130
SELECT - + CAST ( NULL AS INTEGER ), COUNT ( * ) * + 35 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL
315

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

query I rowsort
SELECT - col0 + col1 - + 30 FROM tab0 AS cor0
----
-126
-96
36

onlyif mysql # DIV for integer division: 
query I rowsort label-133
SELECT ALL - ( - col0 ) DIV + 51 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-133
SELECT ALL - ( - col0 ) / + 51 FROM tab2 AS cor0
----
0
1
1

query II rowsort
SELECT ( col0 ), 43 FROM tab0 AS cor0
----
15
43
87
43
97
43

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 34 + + col0 NOT BETWEEN - - 85 AND + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + col1 ) AS col2, - col0 * - col0 - + + ( - 89 ) col2 FROM tab2 AS cor0
----
51
2205
67
5714
77
4185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-137
SELECT DISTINCT + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * 2 * - 55 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-137
SELECT DISTINCT + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * 2 * - 55 FROM tab0
----
NULL

query I rowsort
SELECT ALL col2 * + 12 AS col2 FROM tab1
----
1152
708
816

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

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

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

query I rowsort
SELECT DISTINCT 27 AS col2 FROM tab0, tab0 AS cor0
----
27

query I rowsort
SELECT ALL 55 * - 14 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 3f8d4755ba812a0bdb3342c0c8eceb6a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - + 46 * + col0 + + 95 * - col1 col1 FROM tab1 AS cor0
----
-3772
-4444
-8719

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab2 WHERE NULL IS NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - 47 - - - col1 AS col0 FROM tab0
----
-128
-48
-68

query I rowsort
SELECT ALL - col0 * - 51 * + 85 - 47 FROM tab2 AS cor0
----
199363
277393
325078

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT + + 33 - 90 - + COUNT( * ) FROM tab2 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-149
SELECT + + 33 - 90 - + COUNT ( * ) FROM tab2 cor0
----
-60

query I rowsort
SELECT ALL - col2 * - 58 FROM tab0 AS cor0
----
2726
5742
580

query I rowsort
SELECT 51 * col2 AS col1 FROM tab0 AS cor0
----
2397
5049
510

onlyif mysql # aggregate syntax: 
query II rowsort label-152
SELECT ALL - - COUNT( * ) AS col0, - 37 FROM tab0 AS cor0 WHERE ( NOT + 27 * + 76 / 67 IS NOT NULL )
----
0
-37

skipif mysql # not compatible
query II rowsort label-152
SELECT ALL - - COUNT ( * ) AS col0, - 37 FROM tab0 AS cor0 WHERE ( NOT + 27 * + 76 / 67 IS NOT NULL )
----
0
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT DISTINCT MIN( + - 57 ) AS col1 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-153
SELECT DISTINCT MIN ( + - 57 ) AS col1 FROM tab2 AS cor0
----
-57

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( + + 71 ) BETWEEN col1 + + + 8 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

query I rowsort
SELECT col2 * ( + col0 ) + 65 FROM tab0 WHERE NOT 22 IN ( + col2, col1 / + col2 )
----
770
935
9668

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT DISTINCT SUM( - - col0 ) AS col1 FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-163
SELECT DISTINCT SUM ( - - col0 ) AS col1 FROM tab0 cor0
----
199

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

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

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

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

query I rowsort
SELECT ALL 12 * - 74 + - - 82 AS col0 FROM tab0
----
-806
-806
-806

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

onlyif mysql # DIV for integer division: 
query I rowsort label-168
SELECT 71 DIV + col1 + + - col0 FROM tab1
----
-46
-71
-90

skipif mysql # not compatible
query I rowsort label-168
SELECT 71 / + col1 + + - col0 FROM tab1
----
-46
-71
-90

query I rowsort
SELECT ALL + col1 + + 15 - col1 FROM tab1
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT + 97 + + COUNT( DISTINCT + col1 ) AS col0 FROM tab2
----
100

skipif mysql # not compatible
query I rowsort label-170
SELECT + 97 + + COUNT ( DISTINCT + col1 ) AS col0 FROM tab2
----
100

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-174
SELECT + - 19 * - col2 + - CAST( + - 27 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1148
1319
1851

skipif mysql # not compatible
query I rowsort label-174
SELECT + - 19 * - col2 + - CAST ( + - 27 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1148
1319
1851

query I rowsort
SELECT - - 50 * + + 52 AS col1 FROM tab2 AS cor0
----
2600
2600
2600

query I rowsort
SELECT + col0 / + 56 + col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT - 3 * COUNT( * ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-177
SELECT - 3 * COUNT ( * ) FROM tab1 cor0
----
-9

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

onlyif mysql # DIV for integer division: 
query I rowsort label-179
SELECT col1 DIV + + col2 * + - col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-179
SELECT col1 / + + col2 * + - col0 AS col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + - 56 ) * col2 - - - col2 AS col2, col2 col1 FROM tab2
----
-1311
23
-2280
40
-3306
58

onlyif mysql # DIV for integer division: 
query II rowsort label-181
SELECT + col2 DIV 40, - 66 AS col2 FROM tab1
----
1
-66
1
-66
2
-66

skipif mysql # not compatible
query II rowsort label-181
SELECT + col2 / 40, - 66 AS col2 FROM tab1
----
1
-66
1
-66
2
-66

query II rowsort
SELECT DISTINCT 82 * - 12 AS col1, - 14 AS col0 FROM tab1
----
-984
-14

query I rowsort
SELECT ALL - col2 * + - col2 AS col0 FROM tab2
----
1600
3364
529

onlyif mysql # DIV for integer division: 
query I rowsort label-184
SELECT ALL + 3 DIV + col1 FROM tab2 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-184
SELECT ALL + 3 / + col1 FROM tab2 WHERE NULL IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-185
SELECT 32 * 97 * - + COUNT( * ) FROM tab0
----
-9312

skipif mysql # not compatible
query I rowsort label-185
SELECT 32 * 97 * - + COUNT ( * ) FROM tab0
----
-9312

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 92 IS NOT NULL
----

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

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

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

query I rowsort
SELECT + col1 + + + col1 + + - 68 * + 89 AS col0 FROM tab1
----
-5958
-6024
-6042

query III rowsort
SELECT * FROM tab2 WHERE NOT + - ( - col0 ) NOT IN ( - + 18 / + col2 * + + 23 + col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT DISTINCT 14 * + 67 - COUNT( * ) - + + 14 FROM tab0 cor0
----
921

skipif mysql # not compatible
query I rowsort label-192
SELECT DISTINCT 14 * + 67 - COUNT ( * ) - + + 14 FROM tab0 cor0
----
921

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 / + - 74 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-194
SELECT DISTINCT col0 DIV + 52 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-194
SELECT DISTINCT col0 / + 52 FROM tab2 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT DISTINCT - - SUM( + 81 ) FROM tab1 cor0
----
243

skipif mysql # not compatible
query I rowsort label-195
SELECT DISTINCT - - SUM ( + 81 ) FROM tab1 cor0
----
243

query I rowsort
SELECT + - col2 * + + col1 + 3 AS col0 FROM tab0 AS cor0
----
-207
-3804
-96

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= 8
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, 5 FROM tab2 AS cor0
----
51
5
67
5
77
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-200
SELECT + CAST( 66 AS SIGNED ) DIV + ( + 34 ) - - col1 FROM tab0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-200
SELECT + CAST ( 66 AS INTEGER ) / + ( + 34 ) - - col1 FROM tab0
----
2
22
82

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

skipif mysql # not compatible
query II rowsort label-201
SELECT 49, + COUNT ( * ) AS col2 FROM tab2
----
49
3

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> + 87 + 78
----

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

query I rowsort
SELECT ALL - 83 - + 57 AS col1 FROM tab1
----
-140
-140
-140

query I rowsort
SELECT ALL col0 * + 19 + + + 63 AS col2 FROM tab2
----
1279
1488
937

onlyif mysql # DIV for integer division: 
query I rowsort label-207
SELECT col0 * 33 + + ( - 42 ) DIV - + 64 AS col0 FROM tab2
----
1518
2112
2475

skipif mysql # not compatible
query I rowsort label-207
SELECT col0 * 33 + + ( - 42 ) / - + 64 AS col0 FROM tab2
----
1518
2112
2475

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

onlyif mysql # DIV for integer division: 
query I rowsort label-209
SELECT - 61 DIV - + 47 + + - col2 FROM tab2 AS cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-209
SELECT - 61 / - + 47 + + - col2 FROM tab2 AS cor0
----
-22
-39
-57

query I rowsort
SELECT - col0 * - - 29 + + col1 FROM tab0 AS cor0
----
-2502
-2812
-354

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-211
SELECT DISTINCT + COUNT ( * ) col1, + 37 FROM tab1 AS cor0
----
3
37

query I rowsort
SELECT + - 19 + - 62 AS col0 FROM tab0 AS cor0
----
-81
-81
-81

query I rowsort
SELECT - ( 90 ) + - - col0 FROM tab1 cor0
----
-39
-5
1

query I rowsort
SELECT - 34 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-217
SELECT DISTINCT - col0 + + 85 AS col1, + CAST( - 89 AS SIGNED ) * 93 + + col1 FROM tab1 AS cor0 WHERE - col1 + 23 IS NULL
----

skipif mysql # not compatible
query II rowsort label-217
SELECT DISTINCT - col0 + + 85 AS col1, + CAST ( - 89 AS INTEGER ) * 93 + + col1 FROM tab1 AS cor0 WHERE - col1 + 23 IS NULL
----

query II rowsort
SELECT + - col1 * col1 AS col0, - 20 + + - col0 * 36 FROM tab2 cor0
----
-2601
-1676
-4489
-2720
-5929
-2324

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

query I rowsort
SELECT ALL - 55 + + col2 + - 89 FROM tab2 AS cor0 WHERE - 33 IS NULL
----

query II rowsort
SELECT DISTINCT + col0 * col1 / - col2, 2 * + col0 FROM tab2 AS cor0 WHERE col0 + + 22 + - + 59 IS NULL
----

query I rowsort
SELECT + col2 * + col1 * - col2 FROM tab1 AS cor0
----
-129024
-17405
-217328

query II rowsort
SELECT ALL + 78 AS col0, - col2 * col1 FROM tab1
----
78
-1344
78
-295
78
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-224
SELECT ALL * FROM tab2 WHERE NOT NULL <> + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-224
SELECT ALL * FROM tab2 WHERE NOT NULL <> + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT 79 * + - col0 FROM tab2
----
-3634
-5056
-5925

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

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT + + ( + 6 ) * - COUNT( * ) * 24 + 44 FROM tab2 WHERE NOT + col1 * - col0 IS NULL
----
-388

skipif mysql # not compatible
query I rowsort label-227
SELECT + + ( + 6 ) * - COUNT ( * ) * 24 + 44 FROM tab2 WHERE NOT + col1 * - col0 IS NULL
----
-388

query II rowsort
SELECT DISTINCT - 11, - 94 AS col1 FROM tab0
----
-11
-94

query I rowsort
SELECT DISTINCT 50 FROM tab0 WHERE NOT + 49 IS NULL
----
50

query I rowsort
SELECT - 12 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT + + 84 * col2 + + col2 - - - col1 * col1 FROM tab2 AS cor0
----
-2529
-646
441

query II rowsort
SELECT DISTINCT - col2 AS col2, + col1 * - - ( - - 73 ) + - col0 AS col0 FROM tab1 AS cor0
----
-59
280
-68
3340
-96
971

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-233
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 66 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to a408108d423d7784b7d610cb779e515a

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-235
SELECT ALL - CAST( - 83 AS SIGNED ) + + COUNT( * ) AS col2 FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-235
SELECT ALL - CAST ( - 83 AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab1
----
86

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col0 NOT IN ( + 28 )
----

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

skipif mysql # not compatible
query I rowsort label-237
SELECT COUNT ( * ) / - - 52 * SUM ( DISTINCT - + col2 ) FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT col1 * - 36 + - col1 * col0 AS col0 FROM tab0 AS cor0
----
-133
-2583
-4131

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

query I rowsort
SELECT col2 * - + col0 FROM tab2 cor0 WHERE NULL BETWEEN 87 / - col2 + + ( + col0 ) AND - 29
----

query I rowsort
SELECT + 79 + + + col2 AS col0 FROM tab2 cor0
----
102
119
137

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT DISTINCT MIN( ALL + col2 ) * + 16 FROM tab0 AS cor0
----
160

skipif mysql # not compatible
query I rowsort label-244
SELECT DISTINCT MIN ( ALL + col2 ) * + 16 FROM tab0 AS cor0
----
160

query I rowsort
SELECT DISTINCT - + col2 + + col1 * + col0 AS col1 FROM tab2 AS cor0
----
2323
4888
4967

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

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

query III rowsort
SELECT * FROM tab0 WHERE + + 39 * col1 IS NULL
----

query I rowsort
SELECT col2 * - 89 AS col2 FROM tab1
----
-5251
-6052
-8544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, ( - col2 ) col0 FROM tab2
----
-23
-23
-40
-40
-58
-58

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

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

query I rowsort
SELECT ALL + + 89 * + col1 - col1 AS col2 FROM tab0 AS cor0
----
1848
7128
88

query I rowsort
SELECT ALL - 51 - + col1 FROM tab2 AS cor0
----
-102
-118
-128

query I rowsort
SELECT - col1 - 29 FROM tab0 AS cor0
----
-110
-30
-50

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT + col2 IN ( col2, + col0 + - col1 * col1 / + col1, ( + + 66 ) )
----

query I rowsort
SELECT + 40 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # DIV for integer division: 
query I rowsort label-256
SELECT - 72 DIV - - col1 FROM tab1
----
-1
-14
-5

skipif mysql # not compatible
query I rowsort label-256
SELECT - 72 / - - col1 FROM tab1
----
-1
-14
-5

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

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

query I rowsort
SELECT col1 * - + col0 * + 65 FROM tab0
----
-118755
-6305
-78975

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-260
SELECT ALL - + 68 AS col2, COUNT( * ) + + + COUNT( * ) * + COUNT( * ) * - MAX( ALL col2 ) AS col1 FROM tab0 cor0
----
-68
-888

skipif mysql # not compatible
query II rowsort label-260
SELECT ALL - + 68 AS col2, COUNT ( * ) + + + COUNT ( * ) * + COUNT ( * ) * - MAX ( ALL col2 ) AS col1 FROM tab0 cor0
----
-68
-888

query I rowsort
SELECT 35 + + + 32 FROM tab2 cor0 WHERE NOT NULL > ( NULL )
----

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

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

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

query I rowsort
SELECT 57 * + col0 AS col1 FROM tab2
----
2622
3648
4275

query I rowsort
SELECT DISTINCT col1 * - + 54 * - 56 AS col0 FROM tab1
----
142128
15120
42336

query I rowsort
SELECT ALL - 39 * 95 * col0 FROM tab1
----
-188955
-314925
-337155

query I rowsort
SELECT DISTINCT - 57 + + col1 * - + col0 AS col2 FROM tab1 AS cor0
----
-4334
-482
-771

query I rowsort
SELECT ALL ( 77 ) + + col1 AS col1 FROM tab0 AS cor0
----
158
78
98

query I rowsort
SELECT - ( - col2 ) + col0 + + 32 * - 23 + + 42 * + 95 FROM tab2 AS cor0
----
3323
3358
3387

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT - 27 + + MAX( + - ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-270
SELECT - 27 + + MAX ( + - ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT ALL - 43 + 45 + - MIN( ALL col1 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-271
SELECT ALL - 43 + 45 + - MIN ( ALL col1 ) AS col2 FROM tab0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 48, - 17, - - col0, - col0 * - col1 + + col0 )
----

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN NULL AND col2
----

query I rowsort
SELECT + - col1 * - 62 AS col0 FROM tab0 AS cor0
----
1302
5022
62

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + AVG ( 85 ) * - - 59 col2 FROM tab0 AS cor0 WHERE NULL = ( NULL )
----
NULL

query I rowsort
SELECT col2 * 17 AS col0 FROM tab0 AS cor0
----
1683
170
799

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT ALL - 84 * SUM( + - col0 ) * COUNT( * ) FROM tab1 AS cor0
----
57204

skipif mysql # not compatible
query I rowsort label-279
SELECT ALL - 84 * SUM ( + - col0 ) * COUNT ( * ) FROM tab1 AS cor0
----
57204

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 25 * - + 41 IS NULL AND - col0 IS NULL
----

query I rowsort
SELECT ALL ( - 21 ) + + - col1 AS col1 FROM tab1
----
-26
-35
-68

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT - MAX( - 52 ) FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-285
SELECT - MAX ( - 52 ) FROM tab2 AS cor0
----
52

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-288
SELECT + col2 DIV + col0 + + - col1 FROM tab1 AS cor0
----
-13
-47
-5

skipif mysql # not compatible
query I rowsort label-288
SELECT + col2 / + col0 + + - col1 FROM tab1 AS cor0
----
-13
-47
-5

query I rowsort
SELECT + ( 42 ) * - 74 FROM tab2 AS cor0
----
-3108
-3108
-3108

query I rowsort
SELECT + 64 * - 91 + + 81 FROM tab2 AS cor0
----
-5743
-5743
-5743

onlyif mysql # DIV for integer division: 
query I rowsort label-291
SELECT ALL + + 69 DIV - 75 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-291
SELECT ALL + + 69 / - 75 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT + 52 * + - COUNT( * ) + - + 19 AS col1 FROM tab2 AS cor0 WHERE NOT ( 62 * - - col2 + col2 ) <= NULL
----
-19

skipif mysql # not compatible
query I rowsort label-292
SELECT + 52 * + - COUNT ( * ) + - + 19 AS col1 FROM tab2 AS cor0 WHERE NOT ( 62 * - - col2 + col2 ) <= NULL
----
-19

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

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

skipif mysql # not compatible
query I rowsort label-294
SELECT + MIN ( 82 ) AS col1 FROM tab1 AS cor0
----
82

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-296
SELECT DISTINCT - + col1 AS col2 FROM tab1 WHERE NOT NULL > - CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-296
SELECT DISTINCT - + col1 AS col2 FROM tab1 WHERE NOT NULL > - CAST ( - col2 AS INTEGER )
----

query I rowsort
SELECT ALL 66 * + col1 AS col2 FROM tab1
----
3102
330
924

onlyif mysql # DIV for integer division: 
query I rowsort label-298
SELECT col1 + - col1 + col0 DIV - 76 + + + 85 AS col1 FROM tab2
----
85
85
85

skipif mysql # not compatible
query I rowsort label-298
SELECT col1 + - col1 + col0 / - 76 + + + 85 AS col1 FROM tab2
----
85
85
85

query I rowsort
SELECT - 86 + - 92 FROM tab0
----
-178
-178
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-300
SELECT ALL - 59 * COUNT( * ) col2 FROM tab0, tab0 cor0
----
-531

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-300
SELECT ALL - 59 * COUNT ( * ) col2 FROM tab0, tab0 cor0
----
-531

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

query I rowsort
SELECT + col2 * - 23 * - - 98 FROM tab1 AS cor0
----
-132986
-153272
-216384

query I rowsort
SELECT ALL - col2 + col2 + 15 * - col1 FROM tab2 AS cor0
----
-1005
-1155
-765

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-304
SELECT ALL - 83 + - col0, CAST( + col2 AS SIGNED ) - + col1 * - 76 AS col0 FROM tab0
----
-170
1606
-180
175
-98
6203

skipif mysql # not compatible
query II rowsort label-304
SELECT ALL - 83 + - col0, CAST ( + col2 AS INTEGER ) - + col1 * - 76 AS col0 FROM tab0
----
-170
1606
-180
175
-98
6203

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

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

query I rowsort
SELECT - + col2 + col1 - col2 AS col1 FROM tab1 cor0
----
-113
-178
-89

query I rowsort
SELECT 48 + + col2 AS col1 FROM tab0 AS cor0
----
147
58
95

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 * + + 93 FROM tab2
----
-2139
-3720
-5394

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

query I rowsort
SELECT DISTINCT + ( + + col1 ) * - 85 + + 48 + col1 FROM tab1 AS cor0
----
-1128
-372
-3900

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT + SUM( + + 19 ) AS col0 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-317
SELECT + SUM ( + + 19 ) AS col0 FROM tab0
----
57

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 + + col2 + col0 * + + col2 = 54
----

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

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

query I rowsort
SELECT - + 28 AS col1 FROM tab0 WHERE NOT + - col0 <= NULL
----

query I rowsort
SELECT DISTINCT + 77 + - + 30 + + + col0 - col1 * + col2 * - col1 * - col0 * col1 FROM tab0
----
-374665843
-8056936
-9459

query I rowsort
SELECT ALL 97 * + + 36 FROM tab2
----
3492
3492
3492

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT DISTINCT 28 * + + 97 * - COUNT( * ) + - 63 AS col1 FROM tab0
----
-8211

skipif mysql # not compatible
query I rowsort label-324
SELECT DISTINCT 28 * + + 97 * - COUNT ( * ) + - 63 AS col1 FROM tab0
----
-8211

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

query I rowsort
SELECT ALL col1 + - 80 AS col2 FROM tab2
----
-13
-29
-3

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-328
SELECT CAST( NULL AS DECIMAL ) AS col1, COUNT( * ) AS col2 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-328
SELECT CAST ( NULL AS REAL ) AS col1, COUNT ( * ) AS col2 FROM tab2
----
NULL
3

query I rowsort
SELECT + 31 + + col1 FROM tab0 WHERE NULL IS NULL
----
112
32
52

query II rowsort
SELECT ALL col2 AS col1, col1 AS col2 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # DIV for integer division: 
query I rowsort label-331
SELECT + - col2 * - col2 DIV col2 * + col1 + - + col2 + + col2 + - - 53 AS col2 FROM tab1 AS cor0
----
1397
3249
348

skipif mysql # not compatible
query I rowsort label-331
SELECT + - col2 * - col2 / col2 * + col1 + - + col2 + + col2 + - - 53 AS col2 FROM tab1 AS cor0
----
1397
3249
348

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - 49 + col1 + - col2 * + col0 + + col1 NOT IN ( + ( - col0 ) * + col2 * col2 + col1 * ( - 95 ) / - - 28 + + col2 - - col2 * col1 * - ( + col2 ) + - col2, ( - col0 ), ( col1 ), - + col2 * - 61 * + col1, - 13 ) )
----

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT DISTINCT 51 - + - 43 + COUNT( * ) + + COUNT( * ) * - + 23 * - 74 + + ( 1 ) FROM tab1 AS cor0
----
5204

skipif mysql # not compatible
query I rowsort label-336
SELECT DISTINCT 51 - + - 43 + COUNT ( * ) + + COUNT ( * ) * - + 23 * - 74 + + ( 1 ) FROM tab1 AS cor0
----
5204

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

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

query I rowsort
SELECT ALL + - col0 - col2 AS col0 FROM tab2 AS cor0
----
-104
-133
-69

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

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

query I rowsort
SELECT col2 * + col0 - - col1 - - 23 FROM tab2 AS cor0
----
1132
2660
4440

query I rowsort
SELECT - - col0 - - col2 * - - col2 + + 68 FROM tab0 cor0
----
2292
255
9966

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + + col1 + + 47 col1 FROM tab1
----
127
84
91

onlyif mysql # DIV for integer division: 
query I rowsort label-344
SELECT + col1 * + col0 DIV - - col0 AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-344
SELECT + col1 * + col0 / - - col0 AS col2 FROM tab0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 WHERE + 80 <= + - col0 + + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT - col1 * - 9 BETWEEN NULL AND NULL )
----

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 WHERE + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 * 28 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT + 38 * col1 AS col1 FROM tab1
----
1786
190
532

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 * + + 62 col2 FROM tab1
----
310
310
310

query I rowsort
SELECT 80 * + col0 AS col2 FROM tab0 AS cor0
----
1200
6960
7760

onlyif mysql # DIV for integer division: 
query I rowsort label-354
SELECT DISTINCT - 84 DIV col1 col2 FROM tab0 AS cor0
----
-1
-4
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-354
SELECT DISTINCT - 84 / col1 col2 FROM tab0 AS cor0
----
-1
-4
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-355
SELECT ALL + SUM( ALL + CAST( + col0 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-355
SELECT ALL + SUM ( ALL + CAST ( + col0 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
185

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

query I rowsort
SELECT ALL + 80 + - 8 FROM tab0 AS cor0
----
72
72
72

onlyif mysql # DIV for integer division: 
query II rowsort label-358
SELECT - 45 AS col0, - col2 DIV - col2 col2 FROM tab0 AS cor0
----
-45
1
-45
1
-45
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-358
SELECT - 45 AS col0, - col2 / - col2 col2 FROM tab0 AS cor0
----
-45
1
-45
1
-45
1

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT ALL + MIN( ALL + col0 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 + - col1 + - - col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-359
SELECT ALL + MIN ( ALL + col0 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 + - col1 + - - col1 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT ALL - 78 + - ( COUNT( * ) ) AS col2 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-360
SELECT ALL - 78 + - ( COUNT ( * ) ) AS col2 FROM tab1
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-361
SELECT + col2 + - col2 AS col1, CAST( NULL AS SIGNED ) + + col1 FROM tab0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-361
SELECT + col2 + - col2 AS col1, CAST ( NULL AS INTEGER ) + + col1 FROM tab0
----
0
NULL
0
NULL
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-362
SELECT DISTINCT 93 DIV + 97 + + + col0 * + col2 + + + 22 - + 12 FROM tab0
----
715
880
9613

skipif mysql # not compatible
query I rowsort label-362
SELECT DISTINCT 93 / + 97 + + + col0 * + col2 + + + 22 - + 12 FROM tab0
----
715
880
9613

query I rowsort
SELECT ALL - col2 * - col1 * + 98 FROM tab2
----
114954
301840
380828

query I rowsort
SELECT + ( + 77 ) AS col1 FROM tab1
----
77
77
77

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

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

query II rowsort
SELECT - col2 * + col2 AS col0, + col0 * + + col1 FROM tab1 cor0
----
-3481
425
-4624
4277
-9216
714

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

query I rowsort
SELECT DISTINCT - col2 FROM tab1 cor0 WHERE NOT + 1 <= col2 * 82 + col2 + - - ( col2 ) * col0
----

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

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

query I rowsort
SELECT DISTINCT - 32 + - col1 FROM tab2
----
-109
-83
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-372
SELECT - 31 AS col0, CAST( + + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-31
9

skipif mysql # not compatible
query II rowsort label-372
SELECT - 31 AS col0, CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-31
9

query I rowsort
SELECT - col2 + - 95 AS col0 FROM tab0
----
-105
-142
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1, 71 * - + col2 col2 FROM tab2 AS cor0 WHERE 78 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT + MIN( + + col1 ) AS col0 FROM tab1 AS cor0 WHERE + col2 * + 38 < col2
----
NULL

skipif mysql # not compatible
query I rowsort label-375
SELECT + MIN ( + + col1 ) AS col0 FROM tab1 AS cor0 WHERE + col2 * + 38 < col2
----
NULL

query I rowsort
SELECT DISTINCT + + 36 * - col1 - + col1 FROM tab2 AS cor0
----
-1887
-2479
-2849

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-377
SELECT DISTINCT - col1 AS col1, 20 * - ( col2 ) / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-377
SELECT DISTINCT - col1 AS col1, 20 * - ( col2 ) / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

query I rowsort
SELECT + - col1 * - - 42 AS col0 FROM tab1 cor0
----
-1974
-210
-588

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT col0 - - col2 + + + col2 + 44 / 33 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-380
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT col0 - - col2 + + + col2 + 44 / 33 <= NULL
----
0

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-382
SELECT ALL CAST( NULL AS DECIMAL ) AS col0, + 21 FROM tab0
----
NULL
21
NULL
21
NULL
21

skipif mysql # not compatible
query II rowsort label-382
SELECT ALL CAST ( NULL AS REAL ) AS col0, + 21 FROM tab0
----
NULL
21
NULL
21
NULL
21

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

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

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

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

query II rowsort
SELECT DISTINCT + col1 AS col0, + ( + + col2 ) AS col0 FROM tab1
----
14
96
47
68
5
59

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND 51 * - - 45 * col2 * + 16 / - + col1 * col0
----

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

query I rowsort
SELECT - col1 + - 73 + - 28 * col1 * + + 98 AS col1 FROM tab2
----
-140068
-183988
-211438

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + - col1 IS NOT NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-393
SELECT DISTINCT - - COUNT ( * ) col1 FROM tab0 AS cor0
----
3

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

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

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

query I rowsort
SELECT ALL + - col2 * - col0 + + 60 AS col1 FROM tab1 AS cor0
----
4956
5075
6248

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col0 * + - 75 <= ( col1 ) / - - col2 + - 80 + + col2
----

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE - + col2 * - 7 IS NULL
----

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

skipif mysql # not compatible
query III rowsort label-401
SELECT * FROM tab1 WHERE - - col1 * - col1 + + CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 * col1 < NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT DISTINCT - 53 * + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
-477

skipif mysql # not compatible
query I rowsort label-405
SELECT DISTINCT - 53 * + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
-477

query I rowsort
SELECT ALL - col0 - - + 23 AS col2 FROM tab2 AS cor0
----
-23
-41
-52

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE 48 >= 90
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-408
SELECT + CAST( NULL AS SIGNED ) + + - 37 * 17, - 41 AS col0 FROM tab1 AS cor0
----
NULL
-41
NULL
-41
NULL
-41

skipif mysql # not compatible
query II rowsort label-408
SELECT + CAST ( NULL AS INTEGER ) + + - 37 * 17, - 41 AS col0 FROM tab1 AS cor0
----
NULL
-41
NULL
-41
NULL
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-409
SELECT + 4 + + MAX( - 38 ), + 95 AS col1 FROM tab2 AS cor0
----
-34
95

skipif mysql # not compatible
query II rowsort label-409
SELECT + 4 + + MAX ( - 38 ), + 95 AS col1 FROM tab2 AS cor0
----
-34
95

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT ALL - COUNT( * ) * + 90 AS col2 FROM tab1
----
-270

skipif mysql # not compatible
query I rowsort label-410
SELECT ALL - COUNT ( * ) * + 90 AS col2 FROM tab1
----
-270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-411
SELECT CAST( + 20 AS SIGNED ) - 7 AS col2 FROM tab2
----
13
13
13

skipif mysql # not compatible
query I rowsort label-411
SELECT CAST ( + 20 AS INTEGER ) - 7 AS col2 FROM tab2
----
13
13
13

query III rowsort
SELECT * FROM tab2 WHERE NOT 16 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-413
SELECT ( CAST( - 63 AS SIGNED ) ) FROM tab2
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-413
SELECT ( CAST ( - 63 AS INTEGER ) ) FROM tab2
----
-63
-63
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT SUM( DISTINCT ( - 10 ) ) AS col1 FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-414
SELECT SUM ( DISTINCT ( - 10 ) ) AS col1 FROM tab1
----
-10

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( col1 * - col2 + ( col2 ) )
----

query I rowsort
SELECT ( - ( 71 ) ) AS col2 FROM tab1
----
-71
-71
-71

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NOT NULL < - 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-418
SELECT DISTINCT + 15 + COUNT( * ) col0 FROM tab0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-418
SELECT DISTINCT + 15 + COUNT ( * ) col0 FROM tab0
----
18

query I rowsort
SELECT - 1 FROM tab2 WHERE col2 - col0 NOT BETWEEN NULL AND - col2 / col1
----

query I rowsort
SELECT ALL 86 + - 84 FROM tab1
----
2
2
2

query I rowsort
SELECT - col1 + + 64 AS col0 FROM tab2
----
-13
-3
13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-422
SELECT DISTINCT * FROM tab1 WHERE + col0 NOT IN ( - CAST( 27 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-422
SELECT DISTINCT * FROM tab1 WHERE + col0 NOT IN ( - CAST ( 27 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( col0 * - 1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-424
SELECT ALL ( + CAST( + COUNT( * ) AS SIGNED ) ) - + 32 FROM tab0 WHERE NOT - 70 > 47 * + col0 + col0
----
-29

skipif mysql # not compatible
query I rowsort label-424
SELECT ALL ( + CAST ( + COUNT ( * ) AS INTEGER ) ) - + 32 FROM tab0 WHERE NOT - 70 > 47 * + col0 + col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT - MIN( ALL + 95 ) FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-425
SELECT - MIN ( ALL + 95 ) FROM tab2
----
-95

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 34 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT - ( - MIN( + 69 ) ) AS col0 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-428
SELECT - ( - MIN ( + 69 ) ) AS col0 FROM tab2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT SUM( ALL col1 ) AS col0 FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-429
SELECT SUM ( ALL col1 ) AS col0 FROM tab0 cor0
----
103

query I rowsort
SELECT 5 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----

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

query I rowsort
SELECT ALL - 21 * - 46 FROM tab2 AS cor0
----
966
966
966

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-433
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( - col2 / CAST( NULL AS DECIMAL ) + + col0 )
----

skipif mysql # not compatible
query III rowsort label-433
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( - col2 / CAST ( NULL AS REAL ) + + col0 )
----

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

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

query I rowsort
SELECT DISTINCT + 11 FROM tab0 WHERE - 46 NOT IN ( - col0 / + ( col0 ) + col1 * col1 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT SUM( DISTINCT col2 ) FROM tab0 WHERE NOT ( col1 ) IN ( col2 )
----
156

skipif mysql # not compatible
query I rowsort label-436
SELECT SUM ( DISTINCT col2 ) FROM tab0 WHERE NOT ( col1 ) IN ( col2 )
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT + COUNT( * ) * - 66 col0 FROM tab0
----
-198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-437
SELECT + COUNT ( * ) * - 66 col0 FROM tab0
----
-198

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

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

query I rowsort
SELECT - col0 * + 45 AS col0 FROM tab1 AS cor0
----
-2295
-3825
-4095

query I rowsort
SELECT - + 40 + + col0 AS col2 FROM tab0 AS cor0
----
-25
47
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab1 cor0 WHERE NOT + 5 + + 97 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT 20 + - COUNT( * ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-442
SELECT 20 + - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
11

query I rowsort
SELECT DISTINCT 49 + + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
148
59
96

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

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

query I rowsort
SELECT DISTINCT - col1 * 44 FROM tab2 cor0 WHERE - 80 IS NOT NULL
----
-2244
-2948
-3388

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT 29 + - 47 * MIN( ALL 60 ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-448
SELECT 29 + - 47 * MIN ( ALL 60 ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 56 FROM tab0 WHERE NULL IS NULL
----
56
56
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 + - + col0 * - col0 col1 FROM tab1
----
2686
7310
8366

onlyif mysql # aggregate syntax: 
query I rowsort label-451
SELECT DISTINCT COUNT( * ) + - COUNT( * ) + 46 AS col0 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-451
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) + 46 AS col0 FROM tab0
----
46

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - 81 * + - 61 * - col1 FROM tab1 AS cor0
----
-232227
-24705
-69174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-460
SELECT ALL MAX( DISTINCT 19 ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-460
SELECT ALL MAX ( DISTINCT 19 ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL >= NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-461
SELECT DISTINCT 27 DIV + col2 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-461
SELECT DISTINCT 27 / + col2 FROM tab0 AS cor0
----
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT ALL - COUNT( * ) * + 50 FROM tab0 cor0
----
-150

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL - COUNT ( * ) * + 50 FROM tab0 cor0
----
-150

query I rowsort
SELECT DISTINCT col2 * + - col1 * + 39 AS col1 FROM tab0 AS cor0
----
-148473
-3861
-8190

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 AS cor0 WHERE NULL < - 39 * - + 46
----

query I rowsort
SELECT ALL 18 * - col1 AS col2 FROM tab1 AS cor0
----
-252
-846
-90

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-468
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE NOT 2 * - - col1 + + 57 NOT BETWEEN ( + col0 ) AND - ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-468
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE NOT 2 * - - col1 + + 57 NOT BETWEEN ( + col0 ) AND - ( - CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT ALL - COUNT( * ) * + + 35 AS col1 FROM tab1
----
-105

skipif mysql # not compatible
query I rowsort label-469
SELECT ALL - COUNT ( * ) * + + 35 AS col1 FROM tab1
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT DISTINCT + SUM( DISTINCT - 66 ) AS col2 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-470
SELECT DISTINCT + SUM ( DISTINCT - 66 ) AS col2 FROM tab2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT COUNT( * ) * 77 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-471
SELECT COUNT ( * ) * 77 FROM tab2
----
231

query II rowsort
SELECT col0 * - col2 AS col0, col0 AS col1 FROM tab0
----
-705
15
-870
87
-9603
97

query I rowsort
SELECT - 10 FROM tab0 AS cor0 WHERE NOT col2 = + 96 - - 55 + col1
----
-10
-10
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-474
SELECT ALL + COUNT( * ) DIV 83 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-474
SELECT ALL + COUNT ( * ) / 83 FROM tab0 AS cor0
----
0

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

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

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

query I rowsort
SELECT col0 * - + ( - - col1 ) + - col1 * + col2 FROM tab0
----
-196
-2037
-5022

query II rowsort
SELECT - ( + 23 ) + + 16, + col1 AS col1 FROM tab2
----
-7
51
-7
67
-7
77

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

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

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

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

query I rowsort
SELECT - - 12 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 10 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 + - + 32 AS col2 FROM tab1 AS cor0
----
19
53
59

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT DISTINCT + ( - - MIN( 94 ) ) AS col1 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-483
SELECT DISTINCT + ( - - MIN ( 94 ) ) AS col1 FROM tab2 AS cor0
----
94

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - col2 * - - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-486
SELECT + col0 / CAST( 25 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE - 92 / col0 / col0 IN ( - 45 / + col1 + + 1 )
----

skipif mysql # not compatible
query I rowsort label-486
SELECT + col0 / CAST ( 25 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE - 92 / col0 / col0 IN ( - 45 / + col1 + + 1 )
----

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

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

query I rowsort
SELECT col0 * + + col0 * - col1 FROM tab0 cor0
----
-158949
-18225
-9409

query I rowsort
SELECT ALL col2 + - 13 FROM tab2
----
10
27
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-490
SELECT + CAST( + 53 AS SIGNED ) - ( col2 ) FROM tab0
----
-46
43
6

skipif mysql # not compatible
query I rowsort label-490
SELECT + CAST ( + 53 AS INTEGER ) - ( col2 ) FROM tab0
----
-46
43
6

query I rowsort
SELECT ALL col2 + + - 10 FROM tab1
----
49
58
86

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT ALL COUNT( * ) - MIN( ALL col0 ) AS col1 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-492
SELECT ALL COUNT ( * ) - MIN ( ALL col0 ) AS col1 FROM tab0
----
-12

query I rowsort
SELECT ALL 50 * col1 AS col2 FROM tab1
----
2350
250
700

query I rowsort
SELECT - - col1 + ( - col1 ) * - + 39 + + col0 AS col1 FROM tab0 AS cor0
----
137
3255
927

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

query I rowsort
SELECT ALL - + 70 AS col0 FROM tab1 AS cor0
----
-70
-70
-70

query I rowsort
SELECT DISTINCT + 27 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-498
SELECT DISTINCT + CAST( - 38 AS SIGNED ) * + - 92 - + 71 AS col2 FROM tab0 cor0
----
3425

skipif mysql # not compatible
query I rowsort label-498
SELECT DISTINCT + CAST ( - 38 AS INTEGER ) * + - 92 - + 71 AS col2 FROM tab0 cor0
----
3425

query I rowsort
SELECT - - 8 FROM tab0 cor0
----
8
8
8

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> + 45
----

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

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

query I rowsort
SELECT ALL + col2 * - - 41 FROM tab0
----
1927
4059
410

query I rowsort
SELECT - col1 * - 77 + - 27 AS col2 FROM tab2 WHERE NOT col0 BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-506
SELECT ALL * FROM tab2 WHERE NOT - + 85 + - - col2 + + 7 / - col0 * - ( + col2 ) * + 32 - col1 * ( + 64 ) BETWEEN - col0 + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-506
SELECT ALL * FROM tab2 WHERE NOT - + 85 + - - col2 + + 7 / - col0 * - ( + col2 ) * + 32 - col1 * ( + 64 ) BETWEEN - col0 + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-507
SELECT DISTINCT - col1 DIV - - 97 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-507
SELECT DISTINCT - col1 / - - 97 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-508
SELECT + col2 * + col0 * 88 - col0 FROM tab0 WHERE NOT NULL >= + + CAST( NULL AS SIGNED ) / - col1 + 26
----

skipif mysql # not compatible
query I rowsort label-508
SELECT + col2 * + col0 * 88 - col0 FROM tab0 WHERE NOT NULL >= + + CAST ( NULL AS INTEGER ) / - col1 + 26
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT - COUNT( * ) * + 44 AS col2 FROM tab0 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-510
SELECT - COUNT ( * ) * + 44 AS col2 FROM tab0 AS cor0
----
-132

query II rowsort
SELECT ALL + col1 AS col0, 81 * + + col0 FROM tab2 AS cor0
----
51
3726
67
6075
77
5184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, ( col1 ) + - - ( + + 16 ) + - - 68 col0 FROM tab1 AS cor0
----
59
89
68
131
96
98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT ALL - SUM( + 34 ) FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-514
SELECT ALL - SUM ( + 34 ) FROM tab0 AS cor0
----
-102

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 < 7
----

query I rowsort
SELECT - ( 0 ) + - + 39 FROM tab1
----
-39
-39
-39

query I rowsort
SELECT col1 + - col0 * + - 88 AS col1 FROM tab0
----
1401
7677
8537

query I rowsort
SELECT - - 25 + col2 AS col0 FROM tab1 AS cor0
----
121
84
93

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

query I rowsort
SELECT + 8 FROM tab1 AS cor0 WHERE 63 IS NULL
----

query I rowsort
SELECT + col0 + - 63 * - + col0 AS col1 FROM tab2 AS cor0
----
2944
4096
4800

onlyif mysql # aggregate syntax: 
query II rowsort label-522
SELECT ALL + COUNT( col1 ), ( - 99 ) AS col0 FROM tab0 AS cor0
----
3
-99

skipif mysql # not compatible
query II rowsort label-522
SELECT ALL + COUNT ( col1 ), ( - 99 ) AS col0 FROM tab0 AS cor0
----
3
-99

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

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

query I rowsort
SELECT DISTINCT - col1 + - - 43 * - col1 + 59 AS col1 FROM tab0
----
-3505
-865
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-525
SELECT DISTINCT 1 AS col2 FROM tab0 WHERE NOT - - CAST( NULL AS DECIMAL ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-525
SELECT DISTINCT 1 AS col2 FROM tab0 WHERE NOT - - CAST ( NULL AS REAL ) <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-526
SELECT + - COUNT( * ) AS col1 FROM tab2 WHERE NULL BETWEEN - - 39 AND + + CAST( NULL AS DECIMAL ) * 33 * - 28
----
0

skipif mysql # not compatible
query I rowsort label-526
SELECT + - COUNT ( * ) AS col1 FROM tab2 WHERE NULL BETWEEN - - 39 AND + + CAST ( NULL AS REAL ) * 33 * - 28
----
0

query I rowsort
SELECT ALL + col1 * col2 - + 33 + - 94 FROM tab1
----
1217
168
3069

onlyif mysql # DIV for integer division: 
query I rowsort label-528
SELECT + col0 DIV col1 DIV + - col1 FROM tab1
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-528
SELECT + col0 / col1 / + - col1 FROM tab1
----
-3
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT ( - + MIN( 53 ) ) col2 FROM tab1
----
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-529
SELECT ( - + MIN ( 53 ) ) col2 FROM tab1
----
-53

query I rowsort
SELECT DISTINCT + ( col1 ) * col0 + - - col0 - + col2 AS col0 FROM tab0
----
1183
1904
95

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-534
SELECT 47 AS col2, - COUNT( * ) AS col2 FROM tab2
----
47
-3

skipif mysql # not compatible
query II rowsort label-534
SELECT 47 AS col2, - COUNT ( * ) AS col2 FROM tab2
----
47
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-535
SELECT + 25 DIV - - COUNT( * ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-535
SELECT + 25 / - - COUNT ( * ) FROM tab1
----
8

query I rowsort
SELECT - 95 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-537
SELECT ALL col0, CAST( NULL AS DECIMAL ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-537
SELECT ALL col0, CAST ( NULL AS REAL ) FROM tab1
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT ALL - + 24 * + AVG ( - col1 ) FROM tab0 AS cor0 WHERE col2 IS NULL
----
NULL

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

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

query I rowsort
SELECT + + col1 FROM tab2 AS cor0 WHERE NOT 28 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-541
SELECT DISTINCT COUNT( * ) * CAST( NULL AS SIGNED ) + - + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( + 31 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-541
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( + 31 ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + ( 46 ) FROM tab1 cor0
----
46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT ALL MIN( DISTINCT + col2 ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-544
SELECT ALL MIN ( DISTINCT + col2 ) AS col2 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT DISTINCT MIN( ALL 50 ) * + 74 AS col2 FROM tab1
----
3700

skipif mysql # not compatible
query I rowsort label-545
SELECT DISTINCT MIN ( ALL 50 ) * + 74 AS col2 FROM tab1
----
3700

query I rowsort
SELECT ALL + col0 * + col1 + - 60 + - 70 FROM tab2
----
2216
4798
4895

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 * - col0 col0 FROM tab1
----
-249696
-426275
-563108

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

query I rowsort
SELECT DISTINCT + - 47 FROM tab0 cor0
----
-47

query I rowsort
SELECT + ( 1 ) + + col2 * - col2 FROM tab2 AS cor0 WHERE ( + ( + col1 ) ) IS NULL
----

query II rowsort
SELECT ALL + ( + 50 ) - - 2, 27 * + col2 AS col0 FROM tab2 AS cor0
----
52
1080
52
1566
52
621

onlyif mysql # aggregate syntax: 
query I rowsort label-553
SELECT MIN( col1 ) - - MAX( + col2 ) + + - COUNT( * ) FROM tab1 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-553
SELECT MIN ( col1 ) - - MAX ( + col2 ) + + - COUNT ( * ) FROM tab1 AS cor0
----
98

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

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

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

query I rowsort
SELECT ALL - ( + + 1 ) + col2 * + col0 FROM tab2 AS cor0
----
1057
2559
4349

query I rowsort
SELECT - + 91 - + 85 FROM tab1 AS cor0
----
-176
-176
-176

query I rowsort
SELECT DISTINCT - col0 + + - col1 AS col0 FROM tab1
----
-138
-65
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-559
SELECT DISTINCT - CAST( - - 76 AS SIGNED ) + + + col1 FROM tab1
----
-29
-62
-71

skipif mysql # not compatible
query I rowsort label-559
SELECT DISTINCT - CAST ( - - 76 AS INTEGER ) + + + col1 FROM tab1
----
-29
-62
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT + MAX( DISTINCT - col2 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-560
SELECT + MAX ( DISTINCT - col2 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT DISTINCT - 77 * COUNT( * ) FROM tab1
----
-231

skipif mysql # not compatible
query I rowsort label-561
SELECT DISTINCT - 77 * COUNT ( * ) FROM tab1
----
-231

query I rowsort
SELECT ALL - 71 + - col0 AS col1 FROM tab0
----
-158
-168
-86

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

query I rowsort
SELECT ALL - - 35 AS col0 FROM tab1 AS cor0
----
35
35
35

query I rowsort
SELECT DISTINCT 33 AS col1 FROM tab0 cor0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + - col2 - col2 col0 FROM tab2 AS cor0
----
-1196
-3120
-3944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 35 col0 FROM tab1 AS cor0
----
2065
2380
3360

query I rowsort
SELECT DISTINCT ( col2 ) * + col2 AS col0 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT DISTINCT + - 7 * + + ( 83 ) AS col0 FROM tab1 AS cor0
----
-581

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

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

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

query II rowsort
SELECT + 72 AS col2, col2 AS col1 FROM tab1 AS cor0
----
72
59
72
68
72
96

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 50 BETWEEN ( - 41 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT DISTINCT - 77 * COUNT( * ) FROM tab1 cor0
----
-231

skipif mysql # not compatible
query I rowsort label-576
SELECT DISTINCT - 77 * COUNT ( * ) FROM tab1 cor0
----
-231

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, col0 - col2 FROM tab1
----
-51
-45
-85
26
-91
23

query II rowsort
SELECT - col0 * + col2 AS col2, - 7 FROM tab0 AS cor0
----
-705
-7
-870
-7
-9603
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT ALL - + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= - 98
----
0

skipif mysql # not compatible
query I rowsort label-583
SELECT ALL - + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= - 98
----
0

query II rowsort
SELECT ALL + 18 AS col2, + 8 FROM tab1 AS cor0
----
18
8
18
8
18
8

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

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

query II rowsort
SELECT DISTINCT col0 * + 26 AS col2, col1 * - col2 AS col1 FROM tab2
----
1196
-1173
1664
-3080
1950
-3886

query I rowsort
SELECT DISTINCT - 0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT ALL + - 82 * - + COUNT( - col0 ) - COUNT( * ) col2 FROM tab1 AS cor0
----
243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-589
SELECT ALL + - 82 * - + COUNT ( - col0 ) - COUNT ( * ) col2 FROM tab1 AS cor0
----
243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-590
SELECT DISTINCT - - 73 * - CAST( + 3 AS SIGNED ) FROM tab1 cor0
----
-219

skipif mysql # not compatible
query I rowsort label-590
SELECT DISTINCT - - 73 * - CAST ( + 3 AS INTEGER ) FROM tab1 cor0
----
-219

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-593
SELECT - col0, ( col1 ) DIV col0 DIV - + col2 AS col0 FROM tab1
----
-51
0
-85
0
-91
0

skipif mysql # not compatible
query II rowsort label-593
SELECT - col0, ( col1 ) / col0 / - + col2 AS col0 FROM tab1
----
-51
0
-85
0
-91
0

query II rowsort
SELECT ALL 81, col2 AS col0 FROM tab1
----
81
59
81
68
81
96

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT 8 * - COUNT( * ) AS col0 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-595
SELECT 8 * - COUNT ( * ) AS col0 FROM tab1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-596
SELECT MIN( col1 ) DIV CAST( - + COUNT( * ) AS SIGNED ) AS col2, - COUNT( * ) FROM tab1
----
-1
-3

skipif mysql # not compatible
query II rowsort label-596
SELECT MIN ( col1 ) / CAST ( - + COUNT ( * ) AS INTEGER ) AS col2, - COUNT ( * ) FROM tab1
----
-1
-3

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

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

query I rowsort
SELECT DISTINCT - col1 * - 88 FROM tab2
----
4488
5896
6776

query I rowsort
SELECT + col0 * 44 AS col1 FROM tab2 AS cor0
----
2024
2816
3300

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + - + col2 + 47 + - 4 * - + col2 IS NOT NULL
----

query I rowsort
SELECT + 98 * 81 FROM tab0 AS cor0
----
7938
7938
7938

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

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

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

query I rowsort
SELECT DISTINCT - - col1 + + + 74 AS col2 FROM tab2 AS cor0
----
125
141
151

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT ALL 12 * COUNT( * ) + + + 69 AS col1 FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-607
SELECT ALL 12 * COUNT ( * ) + + + 69 AS col1 FROM tab1
----
105

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-608
SELECT - - COUNT ( * ) * + 27 col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL - col1 + - - ( - col1 ) AS col0 FROM tab2
----
-102
-134
-154

query I rowsort
SELECT 22 + - 99 FROM tab2 AS cor0
----
-77
-77
-77

query I rowsort
SELECT ALL col2 * - col2 - + + col0 FROM tab1
----
-3566
-4715
-9267

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

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

query I rowsort
SELECT ALL + + ( 60 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query II rowsort
SELECT ALL + ( + + col1 ) * - + 89 + + col1 AS col2, col1 FROM tab2
----
-4488
51
-5896
67
-6776
77

query I rowsort
SELECT DISTINCT col0 * + 19 AS col1 FROM tab1 AS cor0
----
1615
1729
969

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 24 + col1 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-617
SELECT + col2 - - - 21 DIV - - 46 - - 2 FROM tab2 AS cor0
----
25
42
60

skipif mysql # not compatible
query I rowsort label-617
SELECT + col2 - - - 21 / - - 46 - - 2 FROM tab2 AS cor0
----
25
42
60

query I rowsort
SELECT - - col0 + + - col1 FROM tab2 AS cor0 WHERE - 7 = - 54
----

query I rowsort
SELECT ALL col1 * + + col1 * + col2 FROM tab0 cor0
----
308367
4410
99

query I rowsort
SELECT + 30 - - + col2 FROM tab2 cor0
----
53
70
88

query I rowsort
SELECT + - 55 - + - col2 AS col0 FROM tab1 AS cor0
----
13
4
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 69 col0 FROM tab1 cor0 WHERE NULL BETWEEN ( NULL ) AND col0
----

query I rowsort
SELECT - 35 * col2 * + col1 AS col2 FROM tab2 AS cor0
----
-107800
-136010
-41055

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

skipif mysql # not compatible
query I rowsort label-624
SELECT DISTINCT + + col2 / - col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT 31 * - col0 AS col0 FROM tab2 AS cor0
----
-1426
-1984
-2325

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

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

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

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

query I rowsort
SELECT 67 AS col1 FROM tab0 WHERE NOT col1 + ( + ( + - 30 ) ) < + col0
----
67

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

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

skipif mysql # not compatible
query I rowsort label-631
SELECT ALL 64 / CAST ( NULL AS INTEGER ) / col2 * - - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT ALL - - col2 FROM tab2 cor0 WHERE - 6 + - col2 IS NOT NULL
----
23
40
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT DISTINCT ( SUM( + 41 ) ) FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-635
SELECT DISTINCT ( SUM ( + 41 ) ) FROM tab1
----
123

query I rowsort
SELECT ALL + col2 * 37 FROM tab0
----
1739
3663
370

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

query I rowsort
SELECT DISTINCT + col2 * + 37 AS col1 FROM tab2
----
1480
2146
851

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT DISTINCT + COUNT( * ) + + 42 AS col1 FROM tab0 AS cor0 WHERE NOT col2 + - col2 <> ( - col0 )
----
42

skipif mysql # not compatible
query I rowsort label-639
SELECT DISTINCT + COUNT ( * ) + + 42 AS col1 FROM tab0 AS cor0 WHERE NOT col2 + - col2 <> ( - col0 )
----
42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT DISTINCT - + COUNT( * ) + 53 AS col1 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-641
SELECT DISTINCT - + COUNT ( * ) + 53 AS col1 FROM tab1 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT DISTINCT ( MIN( ( - - col0 ) ) ) + + MIN( - col1 ) * - 32 FROM tab2
----
2510

skipif mysql # not compatible
query I rowsort label-642
SELECT DISTINCT ( MIN ( ( - - col0 ) ) ) + + MIN ( - col1 ) * - 32 FROM tab2
----
2510

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT - ( - COUNT( * ) ) + - - 18 FROM tab2 WHERE - col0 / col1 IS NOT NULL
----
21

skipif mysql # not compatible
query I rowsort label-643
SELECT - ( - COUNT ( * ) ) + - - 18 FROM tab2 WHERE - col0 / col1 IS NOT NULL
----
21

query I rowsort
SELECT col1 + - - 61 + col0 AS col0 FROM tab1
----
126
151
199

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-645
SELECT 96 DIV - - COUNT( ALL - col0 ) + - SUM( 29 ) AS col0 FROM tab1
----
-55

skipif mysql # not compatible
query I rowsort label-645
SELECT 96 / - - COUNT ( ALL - col0 ) + - SUM ( 29 ) AS col0 FROM tab1
----
-55

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

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

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

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

query I rowsort
SELECT DISTINCT col1 * - 20 + + 81 AS col1 FROM tab0
----
-1539
-339
61

query I rowsort
SELECT - 90 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-651
SELECT 91 DIV COUNT( DISTINCT + + col2 ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-651
SELECT 91 / COUNT ( DISTINCT + + col2 ) FROM tab2
----
30

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

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

query I rowsort
SELECT ALL - 96 + + ( col0 ) AS col0 FROM tab1
----
-11
-45
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-654
SELECT DISTINCT + ( + col1 ) + 14 DIV col1 col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-654
SELECT DISTINCT + ( + col1 ) + 14 / col1 col0 FROM tab2
----
51
67
77

query I rowsort
SELECT 13 + + col1 AS col2 FROM tab0
----
14
34
94

query II rowsort
SELECT 31, - col1 * col0 AS col0 FROM tab0
----
31
-1215
31
-1827
31
-97

query I rowsort
SELECT ALL - 67 + + col1 + - col1 * + 89 FROM tab0 cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT 21 * - + col0 AS col2 FROM tab0 AS cor0
----
-1827
-2037
-315

query I rowsort
SELECT ALL - - 11 * - col2 AS col1 FROM tab2 AS cor0
----
-253
-440
-638

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT ALL - + SUM( ALL 8 ) AS col1 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-661
SELECT ALL - + SUM ( ALL 8 ) AS col1 FROM tab1 AS cor0
----
-24

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-662
SELECT ALL + MIN ( + col0 ) col1 FROM tab2
----
46

onlyif mysql # DIV for integer division: 
query II rowsort label-663
SELECT DISTINCT col1 AS col1, col0 DIV - 12 - - 0 AS col0 FROM tab2
----
51
-3
67
-6
77
-5

skipif mysql # not compatible
query II rowsort label-663
SELECT DISTINCT col1 AS col1, col0 / - 12 - - 0 AS col0 FROM tab2
----
51
-3
67
-6
77
-5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( - ( - col1 ), - col0 * + col2, - col0 )
----

query I rowsort
SELECT ALL - col2 * + + ( 94 ) * + 41 + + col0 FROM tab0
----
-181123
-381449
-38453

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 col2 FROM tab2
----
10
10
10

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

skipif mysql # not compatible
query I rowsort label-667
SELECT col2 / - - col1 AS col0 FROM tab0
----
0
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT DISTINCT MAX( DISTINCT + + col0 ) * + 90 * COUNT( * ) FROM tab2
----
20250

skipif mysql # not compatible
query I rowsort label-668
SELECT DISTINCT MAX ( DISTINCT + + col0 ) * + 90 * COUNT ( * ) FROM tab2
----
20250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 74 * - - 95 + - - 3 col2 FROM tab0 cor0
----
7033

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + ( - col2 ) * + - col0 col2 FROM tab0
----
786
891
9604

query I rowsort
SELECT ALL col2 * 59 AS col0 FROM tab1
----
3481
4012
5664

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

query I rowsort
SELECT ALL - + 93 AS col1 FROM tab1 AS cor0
----
-93
-93
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-675
SELECT SUM( ALL + + col1 ) DIV + 32 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-675
SELECT SUM ( ALL + + col1 ) / + 32 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-676
SELECT - 8 * - 94 AS col1, 20 + MIN( - + 8 ) DIV + 32 FROM tab1 AS cor0
----
752
20

skipif mysql # not compatible
query II rowsort label-676
SELECT - 8 * - 94 AS col1, 20 + MIN ( - + 8 ) / + 32 FROM tab1 AS cor0
----
752
20

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT MIN( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-677
SELECT MIN ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT ALL 65 + - + 8 * - 87 + 88 - - 34 FROM tab0
----
883
883
883

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 col2 FROM tab2 WHERE - - col1 * + 75 < col2 / - 81
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-680
SELECT COUNT ( 18 ) col0 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + col1 - col1, col0 col1 FROM tab0
----
-1
97
-21
87
-81
15

query III rowsort
SELECT * FROM tab2 WHERE + + col2 > + 8
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 - - col2 * + - 59 * + col1 AS col1 FROM tab1
----
-17346
-188496
-79200

query I rowsort
SELECT + col1 + + - 34 FROM tab2
----
17
33
43

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT + 17 + MAX( DISTINCT + col1 ) FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-685
SELECT + 17 + MAX ( DISTINCT + col1 ) FROM tab1
----
64

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 4 = - col1 / - + 76 + + col0 / - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) = 11
----

query I rowsort
SELECT - 98 * - 85 + + 71 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b09f3c30aff2cad60b9b0bcbf0bab062

query I rowsort
SELECT ALL 53 AS col2 FROM tab2 AS cor0
----
53
53
53

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 * col0 col1 FROM tab1 AS cor0
----
-249696
-426275
-563108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

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

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

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

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

query II rowsort
SELECT - - col0, col2 AS col2 FROM tab2 WHERE NOT NULL BETWEEN - + 80 AND - col2
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-698
SELECT - MAX( DISTINCT CAST( NULL AS DECIMAL ) ) FROM tab0, tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-698
SELECT - MAX ( DISTINCT CAST ( NULL AS REAL ) ) FROM tab0, tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT - 58 * 12 FROM tab2
----
-696

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT ALL COUNT( * ) + COUNT( * ) col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-703
SELECT ALL COUNT ( * ) + COUNT ( * ) col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
18

query II rowsort
SELECT DISTINCT col2, col1 * col2 AS col1 FROM tab1
----
59
295
68
3196
96
1344

onlyif mysql # DIV for integer division: 
query I rowsort label-705
SELECT ( - col2 ) * + col0 + col2 DIV + col2 + + col1 FROM tab2 cor0
----
-1006
-2482
-4282

skipif mysql # not compatible
query I rowsort label-705
SELECT ( - col2 ) * + col0 + col2 / + col2 + + col1 FROM tab2 cor0
----
-1006
-2482
-4282

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-708
SELECT ALL - col1 * - col2 DIV - col2 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-708
SELECT ALL - col1 * - col2 / - col2 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL - col0 + 31 FROM tab2 AS cor0
----
-15
-33
-44

query I rowsort
SELECT DISTINCT + 80 * 36 * col2 FROM tab0
----
135360
285120
28800

onlyif mysql # DIV for integer division: 
query I rowsort label-711
SELECT ALL col1 + - 21 DIV + col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-711
SELECT ALL col1 + - 21 / + col0 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL 88 * + 14 + + col0 FROM tab1
----
1283
1317
1323

query II rowsort
SELECT ( + + col0 ) AS col2, 6 FROM tab2
----
46
6
64
6
75
6

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-714
SELECT col0 / - + 82 col2 FROM tab0
----
-1
-1
0

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

query I rowsort
SELECT ALL - - 23 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT + 82 * + + 4 AS col1 FROM tab2 AS cor0
----
328
328
328

query I rowsort
SELECT DISTINCT col2 * - col2 AS col0 FROM tab1 AS cor0 WHERE NULL < NULL
----

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

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

query I rowsort
SELECT - ( - ( - ( - 26 ) ) ) FROM tab0 AS cor0 WHERE NOT + col2 + + col1 / - + ( - - col0 ) BETWEEN + ( + col1 ) * + 33 * - col0 AND 54
----
26

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 <> - col1
----

query II rowsort
SELECT 50, + col0 * - + col0 + - + 8 - + - 59 AS col2 FROM tab1 AS cor0
----
50
-2550
50
-7174
50
-8230

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

query I rowsort
SELECT col1 * - 76 AS col2 FROM tab1
----
-1064
-3572
-380

query I rowsort
SELECT - col1 * - 30 AS col0 FROM tab1
----
1410
150
420

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT - SUM( DISTINCT + 20 ) col2 FROM tab0
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-727
SELECT - SUM ( DISTINCT + 20 ) col2 FROM tab0
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-728
SELECT + 13 DIV COUNT( * ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-728
SELECT + 13 / COUNT ( * ) FROM tab0
----
4

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 <> + 5 + - col0
----

query I rowsort
SELECT + 14 * - - col1 * col2 AS col1 FROM tab1 AS cor0
----
18816
4130
44744

onlyif mysql # DIV for integer division: 
query I rowsort label-731
SELECT + col0 + - 37 DIV + - 59 AS col1 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-731
SELECT + col0 + - 37 / + - 59 AS col1 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT - col0 * + 15 + - - col1 + + ( - 6 ) + + 36 FROM tab0
----
-114
-1254
-1424

query II rowsort
SELECT + 48 + col1 + + col2, col0 FROM tab2
----
122
46
165
64
173
75

query I rowsort
SELECT ALL - 74 + + col0 - col1 AS col2 FROM tab1
----
-30
-37
6

query I rowsort
SELECT DISTINCT - 41 + + - col0 AS col0 FROM tab1
----
-126
-132
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT MIN( DISTINCT + col0 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-736
SELECT MIN ( DISTINCT + col0 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
51

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

query I rowsort
SELECT ALL - - 76 * - col1 AS col0 FROM tab0 AS cor0
----
-1596
-6156
-76

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-740
SELECT - CAST( - - 29 AS SIGNED ) DIV - col1 AS col0 FROM tab0 AS cor0
----
0
1
29

skipif mysql # not compatible
query I rowsort label-740
SELECT - CAST ( - - 29 AS INTEGER ) / - col1 AS col0 FROM tab0 AS cor0
----
0
1
29

query I rowsort
SELECT + - col2 * - - 80 AS col1 FROM tab1 AS cor0
----
-4720
-5440
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 16 * + col0 col2 FROM tab2 AS cor0
----
-1024
-1200
-736

query I rowsort
SELECT ALL + col0 + + 71 FROM tab0 AS cor0
----
158
168
86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT DISTINCT + MAX( ALL + + 33 ) + - COUNT( * ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-746
SELECT DISTINCT + MAX ( ALL + + 33 ) + - COUNT ( * ) FROM tab2
----
30

query I rowsort
SELECT col1 * + col0 + - col1 AS col0 FROM tab2
----
2295
4851
4958

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-748
SELECT DISTINCT - SUM( ALL col1 ) DIV - 38 + + - 29 + + 39 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-748
SELECT DISTINCT - SUM ( ALL col1 ) / - 38 + + - 29 + + 39 FROM tab0
----
12

query I rowsort
SELECT DISTINCT col1 * - col2 - - col2 AS col2 FROM tab2
----
-1150
-3040
-3828

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 65 > NULL
----

query I rowsort
SELECT ALL col0 - - - col2 FROM tab2 cor0
----
17
23
24

query I rowsort
SELECT ALL col0 * - col0 + - col0 FROM tab1 AS cor0
----
-2652
-7310
-8372

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) col2 FROM tab0 WHERE NOT col0 IS NULL
----
9

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

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT ALL ( - SUM( ALL - 66 ) ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-757
SELECT ALL ( - SUM ( ALL - 66 ) ) FROM tab1
----
198

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

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

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

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

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

query II rowsort
SELECT DISTINCT + + col0 + + col2 AS col2, - col1 AS col1 FROM tab2 AS cor0
----
104
-77
133
-67
69
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-762
SELECT DISTINCT - 45 DIV - - col2 AS col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT - 45 / - - col2 AS col0 FROM tab2
----
-1
0

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

query I rowsort
SELECT ALL col0 + 89 FROM tab1
----
140
174
180

query II rowsort
SELECT DISTINCT 91 + - ( + 38 ) AS col1, + 68 + - col1 AS col0 FROM tab1
----
53
21
53
54
53
63

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

query I rowsort
SELECT 43 + ( + - col1 ) AS col2 FROM tab0
----
-38
22
42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-768
SELECT 51 + + col2 + + + col0 DIV - col0 + col2 - + CAST( col2 AS SIGNED ) * col2 * col1 FROM tab1
----
-128782
-17237
-217142

skipif mysql # not compatible
query I rowsort label-768
SELECT 51 + + col2 + + + col0 / - col0 + col2 - + CAST ( col2 AS INTEGER ) * col2 * col1 FROM tab1
----
-128782
-17237
-217142

query I rowsort
SELECT - 75 * 63 AS col0 FROM tab0
----
-4725
-4725
-4725

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 IN ( - col0 * - + col0, col2, - + col1, col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

query II rowsort
SELECT + col0 + - col0 + + + 16 + + + col2 AS col1, col2 * - col1 AS col1 FROM tab0
----
115
-99
26
-210
63
-3807

query I rowsort
SELECT ALL + col1 + - + col0 - - ( col1 ) FROM tab1
----
-23
-75
3

query I rowsort
SELECT - - 38 + - - 22 * + 54 AS col0 FROM tab0 AS cor0
----
1226
1226
1226

query II rowsort
SELECT - - 23 + - 37 AS col0, col0 AS col0 FROM tab2 AS cor0
----
-14
46
-14
64
-14
75

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

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

query I rowsort
SELECT 76 * - - 13 FROM tab2 AS cor0
----
988
988
988

query I rowsort
SELECT - 23 * 65 FROM tab2 AS cor0
----
-1495
-1495
-1495

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT ALL MIN( + col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-780
SELECT ALL MIN ( + col0 ) AS col1 FROM tab1
----
51

query I rowsort
SELECT 34 * - + col0 FROM tab0
----
-2958
-3298
-510

query I rowsort
SELECT DISTINCT + 96 - + + 92 AS col0 FROM tab2
----
4

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 * + 92 * + col0 col2 FROM tab1
----
14076
23460
25116

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 >= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 44 + - 16 * ( - col0 ) * + + 62 + + - col1 + 98 * - + ( col0 ) + col1 = + 93
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

skipif mysql # not compatible
query I rowsort label-789
SELECT + col2 / 87 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT - 75, 72 * - col0 AS col0 FROM tab2
----
-75
-3312
-75
-4608
-75
-5400

query I rowsort
SELECT DISTINCT - col1 * - - 51 * - col0 FROM tab1 AS cor0
----
21675
218127
36414

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT DISTINCT - + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN + col0 / 63 + 22 AND + - col2 * - col1 * - col2 * + col2 * + col1 * + - col2 * + + col0
----
-3

skipif mysql # not compatible
query I rowsort label-792
SELECT DISTINCT - + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN + col0 / 63 + 22 AND + - col2 * - col1 * - col2 * + col2 * + col1 * + - col2 * + + col0
----
-3

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

query I rowsort
SELECT - 86 + + - 89 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * - 43 AS col2 FROM tab0 cor0
----
-3483
-43
-903

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT - - MIN( ALL - col2 ) FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-796
SELECT - - MIN ( ALL - col2 ) FROM tab0 cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT ALL + 51 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-797
SELECT ALL + 51 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
54

query I rowsort
SELECT DISTINCT 89 + - ( col0 ) AS col0 FROM tab0
----
-8
2
74

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

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT ALL 73 + - ( + MAX( + col0 ) ) AS col1 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-800
SELECT ALL 73 + - ( + MAX ( + col0 ) ) AS col1 FROM tab2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-801
SELECT - MIN( ALL 89 ), - COUNT( * ) col1 FROM tab1
----
-89
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-801
SELECT - MIN ( ALL 89 ), - COUNT ( * ) col1 FROM tab1
----
-89
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT DISTINCT SUM( col1 ) * + - MIN( ( - - 55 ) ) AS col2 FROM tab0
----
-5665

skipif mysql # not compatible
query I rowsort label-803
SELECT DISTINCT SUM ( col1 ) * + - MIN ( ( - - 55 ) ) AS col2 FROM tab0
----
-5665

query I rowsort
SELECT + col0 * + 54 FROM tab2 WHERE ( col1 IS NULL )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-806
SELECT ALL + + ( + COUNT( * ) ) AS col0, 79 FROM tab1 AS cor0
----
3
79

skipif mysql # not compatible
query II rowsort label-806
SELECT ALL + + ( + COUNT ( * ) ) AS col0, 79 FROM tab1 AS cor0
----
3
79

query I rowsort
SELECT + 26 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # aggregate syntax: 
query II rowsort label-808
SELECT DISTINCT - 70 * + MIN( - + 91 ) col2, + MAX( - - 6 ) * SUM( DISTINCT - col1 ) FROM tab0 cor0
----
6370
-618

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-808
SELECT DISTINCT - 70 * + MIN ( - + 91 ) col2, + MAX ( - - 6 ) * SUM ( DISTINCT - col1 ) FROM tab0 cor0
----
6370
-618

query I rowsort
SELECT DISTINCT + col0 - 63 FROM tab0 cor0
----
-48
24
34

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT + 4 - COUNT( * ) AS col1 FROM tab1 AS cor0
----
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-811
SELECT + - 15 * col0 DIV col1 DIV - col2 - + - col0 * col2 * + col1 AS col0 FROM tab2 AS cor0
----
197120
291450
53958

skipif mysql # not compatible
query I rowsort label-811
SELECT + - 15 * col0 / col1 / - col2 - + - col0 * col2 * + col1 AS col0 FROM tab2 AS cor0
----
197120
291450
53958

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-813
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + + col0 + + + 30 AS col0, + col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-813
SELECT DISTINCT - CAST ( NULL AS REAL ) + + + col0 + + + 30 AS col0, + col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

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

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

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

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

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT NULL BETWEEN col0 AND + col1
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-820
SELECT ALL CAST( - 84 AS SIGNED ) AS col0, + 79 DIV 99 + - ( - 46 ) FROM tab2 AS cor0
----
-84
46
-84
46
-84
46

skipif mysql # not compatible
query II rowsort label-820
SELECT ALL CAST ( - 84 AS INTEGER ) AS col0, + 79 / 99 + - ( - 46 ) FROM tab2 AS cor0
----
-84
46
-84
46
-84
46

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

skipif mysql # not compatible
query II rowsort label-821
SELECT - + MAX ( - col2 ) AS col2, - COUNT ( * ) FROM tab2 AS cor0
----
23
-3

query I rowsort
SELECT DISTINCT - - ( - + col2 ) * - - 41 * + col0 * 80 AS col2 FROM tab1 AS cor0
----
-16058880
-16449200
-20296640

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-823
SELECT DISTINCT * FROM tab0 WHERE + + 48 + + col1 * + CAST( + - 68 AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-823
SELECT DISTINCT * FROM tab0 WHERE + + 48 + + col1 * + CAST ( + - 68 AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 INNER JOIN tab1 AS cor1 ON NOT - - 49 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 53 NOT BETWEEN - col2 AND - 86
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT + MIN( + col2 ) * - 86 AS col1 FROM tab2 AS cor0
----
-1978

skipif mysql # not compatible
query I rowsort label-826
SELECT + MIN ( + col2 ) * - 86 AS col1 FROM tab2 AS cor0
----
-1978

query I rowsort
SELECT ALL - col1 * 73 FROM tab2 AS cor0
----
-3723
-4891
-5621

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-828
SELECT - 91 * - CAST( - 18 AS SIGNED ) col1 FROM tab0 AS cor0
----
-1638
-1638
-1638

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

query I rowsort
SELECT 60 * + col1 FROM tab0 AS cor0
----
1260
4860
60

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 + ( - 44 ) col2 FROM tab1
----
-7
-7
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-833
SELECT DISTINCT + col1, col2 * + - col1 + 48 * + + ( + 55 ) * - + 83 AS col1 FROM tab0 WHERE CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query II rowsort label-833
SELECT DISTINCT + col1, col2 * + - col1 + 48 * + + ( + 55 ) * - + 83 AS col1 FROM tab0 WHERE CAST ( NULL AS INTEGER ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT ALL + + COUNT( * ) * + 10 AS col0 FROM tab2 WHERE + - 18 IS NOT NULL
----
30

skipif mysql # not compatible
query I rowsort label-834
SELECT ALL + + COUNT ( * ) * + 10 AS col0 FROM tab2 WHERE + - 18 IS NOT NULL
----
30

query I rowsort
SELECT + 50 * - col1 FROM tab2
----
-2550
-3350
-3850

query II rowsort
SELECT ALL 93, col0 AS col2 FROM tab0
----
93
15
93
87
93
97

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT + - MAX( ALL col0 ) * - + ( + 35 ) * COUNT( * ) FROM tab0 AS cor0
----
10185

skipif mysql # not compatible
query I rowsort label-837
SELECT + - MAX ( ALL col0 ) * - + ( + 35 ) * COUNT ( * ) FROM tab0 AS cor0
----
10185

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-838
SELECT ALL - + col0, + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT 94 * COUNT( * ) + + 38 col2 FROM tab0 AS cor0 WHERE + 20 IS NOT NULL
----
320

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-840
SELECT 94 * COUNT ( * ) + + 38 col2 FROM tab0 AS cor0 WHERE + 20 IS NOT NULL
----
320

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

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT DISTINCT + - SUM( ALL 93 ) - + SUM( DISTINCT - - 81 ) FROM tab2 AS cor0
----
-360

skipif mysql # not compatible
query I rowsort label-842
SELECT DISTINCT + - SUM ( ALL 93 ) - + SUM ( DISTINCT - - 81 ) FROM tab2 AS cor0
----
-360

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

query I rowsort
SELECT - + col2 * - 10 FROM tab2 AS cor0
----
230
400
580

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT DISTINCT + 23 * - COUNT( * ) col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-845
SELECT DISTINCT + 23 * - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT DISTINCT + MAX( ALL - 40 ) * - + MAX( ALL col1 ) FROM tab2
----
3080

skipif mysql # not compatible
query I rowsort label-846
SELECT DISTINCT + MAX ( ALL - 40 ) * - + MAX ( ALL col1 ) FROM tab2
----
3080

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-848
SELECT DISTINCT 90 DIV - + col2 FROM tab0
----
-1
-9
0

skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT 90 / - + col2 FROM tab0
----
-1
-9
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, - 37 + 14 FROM tab0
----
15
-23
87
-23
97
-23

query II rowsort
SELECT ALL 87 AS col0, col2 FROM tab1
----
87
59
87
68
87
96

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT COUNT( * ) * - 4 AS col2 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-852
SELECT COUNT ( * ) * - 4 AS col2 FROM tab0
----
-12

query II rowsort
SELECT ALL col0 AS col0, - 64 FROM tab2 WHERE NOT ( NULL BETWEEN NULL AND NULL )
----

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

query I rowsort
SELECT DISTINCT + + 13 FROM tab2 cor0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-856
SELECT ALL + - CAST( NULL AS SIGNED ), col1 AS col2 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-856
SELECT ALL + - CAST ( NULL AS INTEGER ), col1 AS col2 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

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

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE ( 13 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-859
SELECT DISTINCT CAST( NULL AS DECIMAL ) + col1 FROM tab0 WHERE - 81 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-859
SELECT DISTINCT CAST ( NULL AS REAL ) + col1 FROM tab0 WHERE - 81 IS NOT NULL
----
NULL

query I rowsort
SELECT col1 * + ( col0 ) AS col0 FROM tab2 WHERE NOT - col1 NOT IN ( + col0 * col1 + col1 )
----

query I rowsort
SELECT DISTINCT + 93 * 46 FROM tab1
----
4278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-862
SELECT ALL - CAST( - 38 AS SIGNED ) + 14 * + col1 FROM tab2
----
1116
752
976

skipif mysql # not compatible
query I rowsort label-862
SELECT ALL - CAST ( - 38 AS INTEGER ) + 14 * + col1 FROM tab2
----
1116
752
976

query I rowsort
SELECT - col0 + - col2 * 16 AS col2 FROM tab2 WHERE NOT + col0 * + 23 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-864
SELECT ALL col2 FROM tab0 WHERE 69 + - CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-864
SELECT ALL col2 FROM tab0 WHERE 69 + - CAST ( NULL AS INTEGER ) >= NULL
----

query I rowsort
SELECT 39 * col1 AS col1 FROM tab0
----
3159
39
819

query III rowsort
SELECT ALL * FROM tab0 WHERE 52 + - ( 75 - - col0 ) * - 15 >= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( col0 ) * col0 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT + 88 * - MAX( ALL - col0 ) col0 FROM tab2
----
4048

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-868
SELECT + 88 * - MAX ( ALL - col0 ) col0 FROM tab2
----
4048

onlyif mysql # DIV for integer division: 
query I rowsort label-869
SELECT DISTINCT - col1 + - 18 DIV 1 AS col1 FROM tab2
----
-69
-85
-95

skipif mysql # not compatible
query I rowsort label-869
SELECT DISTINCT - col1 + - 18 / 1 AS col1 FROM tab2
----
-69
-85
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT + COUNT( * ) - + 70 AS col1 FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-870
SELECT + COUNT ( * ) - + 70 AS col1 FROM tab1
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-871
SELECT - COUNT( * ) DIV - COUNT( * ) + 29 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-871
SELECT - COUNT ( * ) / - COUNT ( * ) + 29 FROM tab2
----
30

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( 11 * ( - col2 * col1 ) )
----

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

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

query I rowsort
SELECT col0 - + 98 FROM tab1 WHERE + ( + col2 ) <= ( col2 * 80 + col0 )
----
-13
-47
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN 86 AND - col2 - col0 * 86
----
0

skipif mysql # not compatible
query I rowsort label-875
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN 86 AND - col2 - col0 * 86
----
0

query I rowsort
SELECT DISTINCT col0 * 66 FROM tab0
----
5742
6402
990

query III rowsort
SELECT * FROM tab2 WHERE + 72 <> NULL
----

query I rowsort
SELECT + 84 * 3 FROM tab0
----
252
252
252

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + + col0 BETWEEN NULL AND 97 + 34
----
75
67
58

query I rowsort
SELECT ALL + 29 * - 52 FROM tab2 AS cor0
----
-1508
-1508
-1508

query I rowsort
SELECT DISTINCT - 96 * ( + col2 * - col1 ) FROM tab1 AS cor0
----
129024
28320
306816

query I rowsort
SELECT DISTINCT - 64 - - 6 * col0 FROM tab1
----
242
446
482

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

onlyif mysql # DIV for integer division: 
query I rowsort label-884
SELECT DISTINCT col1 DIV - col0 - - 85 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-884
SELECT DISTINCT col1 / - col0 - - 85 FROM tab1
----
85

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 90 > - col0 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( + col2 ) * col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col1 col0 FROM tab1 AS cor0 WHERE - 96 BETWEEN NULL AND ( col1 )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col2 * - col2 BETWEEN 61 AND - col1
----

query I rowsort
SELECT + + col0 * + ( col0 ) FROM tab2 AS cor0
----
2116
4096
5625

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

skipif mysql # not compatible
query I rowsort label-893
SELECT - + COUNT ( col0 ) / MIN ( col2 ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-894
SELECT DISTINCT - 99 DIV + 11 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-894
SELECT DISTINCT - 99 / + 11 FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-895
SELECT ALL 44 / col2 FROM tab1 WHERE NOT CAST( + col1 AS DECIMAL ) NOT BETWEEN col2 * - 71 + + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-895
SELECT ALL 44 / col2 FROM tab1 WHERE NOT CAST ( + col1 AS REAL ) NOT BETWEEN col2 * - 71 + + CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT + 33 * 75 FROM tab2
----
2475
2475
2475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col1 col1 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-898
SELECT DISTINCT - 73 DIV - - col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-898
SELECT DISTINCT - 73 / - - col2 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT DISTINCT MAX( DISTINCT 37 ) FROM tab0 WHERE NOT 4 NOT IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-899
SELECT DISTINCT MAX ( DISTINCT 37 ) FROM tab0 WHERE NOT 4 NOT IN ( col1 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-900
SELECT - CAST( NULL AS SIGNED ) * - SUM( col1 ) col2 FROM tab2
----
NULL

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

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 WHERE NOT + col2 + - col0 IS NULL OR NOT + 74 / col0 IS NOT NULL
----
46
64
75

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

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

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

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

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

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

query I rowsort
SELECT ALL - col0 * + - ( col1 ) AS col2 FROM tab2 AS cor0
----
2346
4928
5025

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

query I rowsort
SELECT ALL ( - col1 ) * - col2 AS col0 FROM tab0 AS cor0 WHERE NOT + 63 >= col0
----
210
99

query II rowsort
SELECT + col0 AS col2, col2 + - 31 AS col2 FROM tab0
----
15
16
87
-21
97
68

query I rowsort
SELECT + col1 * + 30 * - col0 FROM tab2
----
-147840
-150750
-70380

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

skipif mysql # not compatible
query I rowsort label-911
SELECT + - SUM ( DISTINCT - col1 ) + + + COUNT ( * ) * + COUNT ( ALL - 3 ) AS col0 FROM tab2 cor0
----
204

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-912
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( + 8 + + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-912
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( + 8 + + - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-913
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-913
SELECT DISTINCT col2, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 88 * - col1 col1 FROM tab0 AS cor0
----
1848
7128
88

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

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

query III rowsort
SELECT * FROM tab2 WHERE ( NULL <= NULL )
----

query II rowsort
SELECT col2 * - col2 + - + col1, + ( - col1 ) AS col0 FROM tab1
----
-3486
-5
-4671
-47
-9230
-14

query I rowsort
SELECT ALL + col1 + + + 67 FROM tab0
----
148
68
88

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

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

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

query I rowsort
SELECT ALL + ( + 11 ) FROM tab0
----
11
11
11

query I rowsort
SELECT + 81 + 96 * - + col2 * + col2 FROM tab2
----
-153519
-322863
-50703

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT 91 * + 22 + MIN( ALL + 12 ) AS col2 FROM tab2 AS cor0
----
2014

skipif mysql # not compatible
query I rowsort label-923
SELECT 91 * + 22 + MIN ( ALL + 12 ) AS col2 FROM tab2 AS cor0
----
2014

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-924
SELECT col1 + col2 * CAST( col2 * CAST( + col0 AS DECIMAL ) - col2 AS SIGNED ) FROM tab1
----
292409
416207
460814

skipif mysql # not compatible
query I rowsort label-924
SELECT col1 + col2 * CAST ( col2 * CAST ( + col0 AS REAL ) - col2 AS INTEGER ) FROM tab1
----
292409
416207
460814

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-926
SELECT 63 AS col1 FROM tab1 WHERE CAST( NULL AS SIGNED ) * col1 IS NULL
----
63
63
63

skipif mysql # not compatible
query I rowsort label-926
SELECT 63 AS col1 FROM tab1 WHERE CAST ( NULL AS INTEGER ) * col1 IS NULL
----
63
63
63

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col1 + 10 ) = ( col2 )
----

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

query I rowsort
SELECT DISTINCT - col0 + + col1 * col2 AS col1 FROM tab0
----
123
2
3792

onlyif mysql # DIV for integer division: 
query I rowsort label-930
SELECT - 55 DIV 37 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-930
SELECT - 55 / 37 FROM tab0
----
-1
-1
-1

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

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NULL BETWEEN NULL AND ( NULL )
----

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

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NULL IN ( 85 * col2 )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * + col0 + col1 IS NOT NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-939
SELECT - COUNT ( * ) * - ( COUNT ( * ) ) FROM tab1 WHERE NOT NULL >= + 42
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT COUNT( DISTINCT - 11 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-941
SELECT COUNT ( DISTINCT - 11 ) FROM tab0
----
1

query I rowsort
SELECT col0 FROM tab0 WHERE 98 * + 56 + - col1 < NULL
----

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE + col1 <= col2
----
99

query I rowsort
SELECT ALL 87 * 40 - 97 AS col2 FROM tab1
----
3383
3383
3383

query III rowsort
SELECT * FROM tab1 WHERE NOT - 77 BETWEEN - ( - col1 ) AND - 95
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT + MAX( + col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-947
SELECT + MAX ( + col1 ) FROM tab0
----
81

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

skipif mysql # not compatible
query I rowsort label-948
SELECT + SUM ( ALL + col2 ) AS col0 FROM tab2
----
121

query I rowsort
SELECT ( 89 ) FROM tab1
----
89
89
89

query I rowsort
SELECT DISTINCT + col1 + col2 * + 98 FROM tab2
----
2305
3997
5751

query I rowsort
SELECT DISTINCT - col2 * 68 AS col2 FROM tab1 cor0
----
-4012
-4624
-6528

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 40 > 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-956
SELECT ALL col0 DIV + 30 FROM tab1 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-956
SELECT ALL col0 / + 30 FROM tab1 cor0
----
1
2
3

query I rowsort
SELECT 40 FROM tab1 AS cor0 WHERE NOT + col2 * - 11 <= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT MIN( DISTINCT + 18 ) * - COUNT( DISTINCT - col1 * 30 ) AS col0 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-959
SELECT MIN ( DISTINCT + 18 ) * - COUNT ( DISTINCT - col1 * 30 ) AS col0 FROM tab1
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-960
SELECT ALL col2 + + col0 DIV + col1 FROM tab2 cor0
----
23
40
59

skipif mysql # not compatible
query I rowsort label-960
SELECT ALL col2 + + col0 / + col1 FROM tab2 cor0
----
23
40
59

query I rowsort
SELECT DISTINCT - - ( 41 ) + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-10
-44
-50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-962
SELECT * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) > ( - col0 / col1 )
----

skipif mysql # not compatible
query III rowsort label-962
SELECT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) > ( - col0 / col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT ALL COUNT( * ) + MIN( + 48 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL COUNT ( * ) + MIN ( + 48 ) FROM tab1 AS cor0
----
51

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

onlyif mysql # DIV for integer division: 
query I rowsort label-965
SELECT ALL col1 DIV 9 AS col0 FROM tab1 AS cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-965
SELECT ALL col1 / 9 AS col0 FROM tab1 AS cor0
----
0
1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT 26 * - COUNT( * ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-966
SELECT 26 * - COUNT ( * ) FROM tab0
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-967
SELECT ( - + 56 ) DIV - col2 AS col2 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-967
SELECT ( - + 56 ) / - col2 AS col2 FROM tab0
----
0
1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT - MIN( ALL - col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-968
SELECT - MIN ( ALL - col2 ) FROM tab2
----
58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 + 25 NOT BETWEEN + col0 AND 84 / - col1
----

query I rowsort
SELECT 75 * - 28 AS col1 FROM tab1
----
-2100
-2100
-2100

query I rowsort
SELECT ALL 13 + - - col0 FROM tab0 AS cor0
----
100
110
28

query I rowsort
SELECT ALL + + 45 - + + 62 AS col1 FROM tab1 AS cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT - - COUNT( * ) + MAX( ALL col0 ) * - 18 FROM tab1 AS cor0
----
-1635

skipif mysql # not compatible
query I rowsort label-973
SELECT - - COUNT ( * ) + MAX ( ALL col0 ) * - 18 FROM tab1 AS cor0
----
-1635

query I rowsort
SELECT + - 96 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > col1 / + + 35
----

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

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

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

query I rowsort
SELECT 89 * col0 FROM tab1 AS cor0
----
4539
7565
8099

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col1 * + + col2 - - 93 ) IS NOT NULL
----

query I rowsort
SELECT + 66 * + - ( - - col2 ) AS col2 FROM tab2 AS cor0
----
-1518
-2640
-3828

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-982
SELECT DISTINCT - col0 * - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-982
SELECT DISTINCT - col0 * - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT 48 * + + col1 AS col0 FROM tab0
----
1008
3888
48

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-984
SELECT DISTINCT col0 * + CAST ( - col0 AS INTEGER ) col2 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT ALL 6 FROM tab1 WHERE NULL < ( - col2 - 56 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-986
SELECT * FROM tab1 WHERE NOT + - col0 * - - 68 + + CAST( - 92 + col1 AS SIGNED ) * col0 + col1 <> ( + 24 )
----

skipif mysql # not compatible
query III rowsort label-986
SELECT * FROM tab1 WHERE NOT + - col0 * - - 68 + + CAST ( - 92 + col1 AS INTEGER ) * col0 + col1 <> ( + 24 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT - COUNT( - col0 ) col2 FROM tab1
----
-3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 91 col0 FROM tab1 WHERE - - col2 * 36 > col0
----
105
138
96

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 < 26
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - 8 * + col1 - ( + 95 ) FROM tab1 AS cor0
----
-55
17
281

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 18 BETWEEN + col1 AND ( + 43 - 48 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-995
SELECT 19 FROM tab0 AS cor0 WHERE NOT + col2 NOT IN ( ( + - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-995
SELECT 19 FROM tab0 AS cor0 WHERE NOT + col2 NOT IN ( ( + - CAST ( NULL AS INTEGER ) ) )
----

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

skipif mysql # not compatible
query I rowsort label-996
SELECT ALL + COUNT ( * ) / ( - - COUNT ( * ) ) * CAST ( NULL AS REAL ) * + COUNT ( * ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT ALL + + 79 * + 52 + - MAX( DISTINCT 31 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
4077

skipif mysql # not compatible
query I rowsort label-997
SELECT ALL + + 79 * + 52 + - MAX ( DISTINCT 31 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
4077

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 23 col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

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

query I rowsort
SELECT 98 AS col1 FROM tab1 WHERE NOT 77 / - col1 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1001
SELECT + MAX ( ALL col0 ) FROM tab0
----
97

query I rowsort
SELECT DISTINCT - ( ( col0 ) ) AS col0 FROM tab2 WHERE col0 BETWEEN + col1 AND - col0 + col2 * col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT DISTINCT + SUM( 56 ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
504

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1003
SELECT DISTINCT + SUM ( 56 ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
504

query II rowsort
SELECT - col1 AS col2, 63 AS col0 FROM tab2
----
-51
63
-67
63
-77
63

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

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

query I rowsort
SELECT ALL + 87 + - - col1 + 4 + col2 FROM tab0 AS cor0
----
122
191
219

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

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

query I rowsort
SELECT DISTINCT + 37 + + col1 FROM tab0 AS cor0
----
118
38
58

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 >= NULL
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 ) NOT BETWEEN ( col1 ) AND - 74
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 84 + + col0 AS col0 FROM tab2 AS cor0
----
130
148
159

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT DISTINCT 34 * - + COUNT( * ) AS col0 FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-1015
SELECT DISTINCT 34 * - + COUNT ( * ) AS col0 FROM tab2
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-1016
SELECT DISTINCT col0 + + 42 DIV ( + - col1 ) + 30 + col0 * col2 FROM tab1
----
4974
5122
6309

skipif mysql # not compatible
query I rowsort label-1016
SELECT DISTINCT col0 + + 42 / ( + - col1 ) + 30 + col0 * col2 FROM tab1
----
4974
5122
6309

query I rowsort
SELECT DISTINCT + col0 + + col2 + 51 AS col0 FROM tab1 AS cor0
----
195
198
210

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

query I rowsort
SELECT DISTINCT 84 + - col1 + + 33 FROM tab0 AS cor0
----
116
36
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT DISTINCT - MAX( + col0 ) - - ( - 70 ) AS col1 FROM tab0
----
-167

skipif mysql # not compatible
query I rowsort label-1021
SELECT DISTINCT - MAX ( + col0 ) - - ( - 70 ) AS col1 FROM tab0
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT DISTINCT + COUNT( ALL 14 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1022
SELECT DISTINCT + COUNT ( ALL 14 ) FROM tab1
----
3

query I rowsort
SELECT + ( - 48 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

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

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

query I rowsort
SELECT - col1 * + - col1 FROM tab2 cor0
----
2601
4489
5929

query I rowsort
SELECT - - 83 AS col0 FROM tab0 AS cor0
----
83
83
83

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL SUM ( ALL + + col1 ) FROM tab1
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 25 col1, col1 + + col1 AS col1 FROM tab0
----
-25
162
-25
2
-25
42

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) >= - col0 + 74 + - 88 + - + col1 * - col1 * col0 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1033
SELECT DISTINCT - CAST( NULL AS SIGNED ), col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-1033
SELECT DISTINCT - CAST ( NULL AS INTEGER ), col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

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

query II rowsort
SELECT ALL + col2 AS col0, 66 AS col2 FROM tab1 AS cor0
----
59
66
68
66
96
66

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE NOT - 81 = - col1 + + 51
----
-10
-47
-99

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1039
SELECT DISTINCT * FROM tab1 WHERE NOT + 42 + - - CAST( + 0 AS SIGNED ) - - + 23 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1039
SELECT DISTINCT * FROM tab1 WHERE NOT + 42 + - - CAST ( + 0 AS INTEGER ) - - + 23 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - col2 + + col0 + - 47 FROM tab2 AS cor0
----
22
57
86

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

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

query I rowsort
SELECT + 25 * - + 16 + + 19 - ( + 86 ) FROM tab0 cor0
----
-467
-467
-467

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

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

skipif mysql # not compatible
query I rowsort label-1045
SELECT - 13 / + COUNT ( * ) AS col0 FROM tab0
----
-4

query I rowsort
SELECT ALL 31 - col1 AS col2 FROM tab0
----
-50
10
30

query I rowsort
SELECT + 79 - + + 34 - - + 80 * + col0 * - col1 FROM tab0
----
-146115
-7715
-97155

onlyif mysql # aggregate syntax: 
query II rowsort label-1048
SELECT ALL + ( + + 22 ) * COUNT( * ) AS col1, 72 + - 57 AS col2 FROM tab2
----
66
15

skipif mysql # not compatible
query II rowsort label-1048
SELECT ALL + ( + + 22 ) * COUNT ( * ) AS col1, 72 + - 57 AS col2 FROM tab2
----
66
15

query I rowsort
SELECT DISTINCT + 98 * + - 99 AS col1 FROM tab1
----
-9702

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

skipif mysql # not compatible
query I rowsort label-1050
SELECT DISTINCT + 57 + + + 11 + + CAST ( NULL AS INTEGER ) - - - col2 * + + col2 + + col2 AS col1 FROM tab1 AS cor0
----
NULL

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * 84 + + + col1 <> + col0
----

query I rowsort
SELECT - - 63 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( - col1 ) BETWEEN + - col1 AND - col1 * + col0 * - - 57
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT + - 94 - COUNT( * ) * - 34 AS col2 FROM tab2 AS cor0 WHERE NOT 59 * + - ( col2 ) IS NOT NULL
----
-94

skipif mysql # not compatible
query I rowsort label-1058
SELECT + - 94 - COUNT ( * ) * - 34 AS col2 FROM tab2 AS cor0 WHERE NOT 59 * + - ( col2 ) IS NOT NULL
----
-94

query I rowsort
SELECT 98 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
98
98
98

query II rowsort
SELECT ALL + - 36 AS col0, + 62 * col0 + + 88 FROM tab2 AS cor0
----
-36
2940
-36
4056
-36
4738

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1061
SELECT - CAST( NULL AS SIGNED ), - ( - + 59 ) * + col1 col0 FROM tab2 AS cor0
----
NULL
3009
NULL
3953
NULL
4543

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1061
SELECT - CAST ( NULL AS INTEGER ), - ( - + 59 ) * + col1 col0 FROM tab2 AS cor0
----
NULL
3009
NULL
3953
NULL
4543

query II rowsort
SELECT DISTINCT + 52, col1 * + col2 AS col1 FROM tab1 AS cor0
----
52
1344
52
295
52
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT + SUM( col0 ) * 63 col2 FROM tab1 AS cor0
----
14301

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1063
SELECT + SUM ( col0 ) * 63 col2 FROM tab1 AS cor0
----
14301

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( - 69 ) AS col1 FROM tab2
----
-69

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 / col1 - - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 60 AS col0 FROM tab0
----
60

query I rowsort
SELECT DISTINCT col0 + + ( + + 24 ) + - - 33 FROM tab1 AS cor0
----
108
142
148

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT DISTINCT - MAX( + col2 ) FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1071
SELECT DISTINCT - MAX ( + col2 ) FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1073
SELECT + col2 * CAST( + - col1 AS SIGNED ), + col2 FROM tab1 AS cor0
----
-1344
96
-295
59
-3196
68

skipif mysql # not compatible
query II rowsort label-1073
SELECT + col2 * CAST ( + - col1 AS INTEGER ), + col2 FROM tab1 AS cor0
----
-1344
96
-295
59
-3196
68

query I rowsort
SELECT DISTINCT + + col0 FROM tab0 AS cor0 WHERE NOT ( col2 + 45 + + 58 ) BETWEEN col2 AND + col0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1075
SELECT DISTINCT - col0 AS col0, - col0 AS col0 FROM tab1 AS cor0 WHERE NOT + 56 IN ( + col1, - 1 + + CAST( - - col1 AS SIGNED ) )
----
-51
-51
-85
-85
-91
-91

skipif mysql # not compatible
query II rowsort label-1075
SELECT DISTINCT - col0 AS col0, - col0 AS col0 FROM tab1 AS cor0 WHERE NOT + 56 IN ( + col1, - 1 + + CAST ( - - col1 AS INTEGER ) )
----
-51
-51
-85
-85
-91
-91

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

query II rowsort
SELECT ALL 25, col0 AS col1 FROM tab0 AS cor0
----
25
15
25
87
25
97

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

query I rowsort
SELECT - - ( - - ( - - col2 ) ) + - 59 AS col1 FROM tab2 AS cor0
----
-1
-19
-36

query I rowsort
SELECT DISTINCT col0 * + - ( + - col2 ) - + col0 + + col2 + + + col2 AS col1 FROM tab0 AS cor0
----
784
803
9704

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1082
SELECT + 61 + - - CAST( ( col0 ) AS SIGNED ) col1, - col1 FROM tab1
----
112
-14
146
-5
152
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1082
SELECT + 61 + - - CAST ( ( col0 ) AS INTEGER ) col1, - col1 FROM tab1
----
112
-14
146
-5
152
-47

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) <= col1 / + 54
----

query I rowsort
SELECT ALL - 58 * - col2 AS col0 FROM tab0
----
2726
5742
580

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 69 col1 FROM tab0
----
1035
6003
6693

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT ALL 51 + COUNT( * ) FROM tab2 WHERE NOT + 45 IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-1088
SELECT ALL 51 + COUNT ( * ) FROM tab2 WHERE NOT + 45 IS NOT NULL
----
51

query I rowsort
SELECT ALL + 31 * - col1 FROM tab2
----
-1581
-2077
-2387

onlyif mysql # DIV for integer division: 
query I rowsort label-1090
SELECT - col2 DIV col0 * - col0 AS col0 FROM tab1
----
0
0
51

skipif mysql # not compatible
query I rowsort label-1090
SELECT - col2 / col0 * - col0 AS col0 FROM tab1
----
0
0
51

onlyif mysql # DIV for integer division: 
query I rowsort label-1091
SELECT ALL 13 DIV - col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL 13 / - col1 AS col0 FROM tab2
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-1092
SELECT DISTINCT + COUNT ( * ) / - ( - COUNT ( * ) ) FROM tab1 cor0
----
1

query I rowsort
SELECT ALL 40 * - col1 FROM tab0 AS cor0
----
-3240
-40
-840

query I rowsort
SELECT + 78 * + col1 + + + col0 * col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
10251
10934
6324

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT ALL MAX( DISTINCT - - col0 ) * + - COUNT( * ) FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-1095
SELECT ALL MAX ( DISTINCT - - col0 ) * + - COUNT ( * ) FROM tab0 AS cor0
----
-291

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1096
SELECT DISTINCT - COUNT( col0 ) DIV - ( 72 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1096
SELECT DISTINCT - COUNT ( col0 ) / - ( 72 ) FROM tab1
----
0

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NULL >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 1 <> ( - 75 )
----

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

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

query II rowsort
SELECT DISTINCT + - 5 AS col2, - 13 AS col2 FROM tab0 AS cor0
----
-5
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1102
SELECT DISTINCT + - 72, - MAX( ALL - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-72
NULL

skipif mysql # not compatible
query II rowsort label-1102
SELECT DISTINCT + - 72, - MAX ( ALL - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-72
NULL

query II rowsort
SELECT ALL + col2, + 0 + col0 FROM tab0 cor0
----
10
87
47
15
99
97

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

skipif mysql # not compatible
query I rowsort label-1104
SELECT ALL - SUM ( col2 ) AS col0 FROM tab2 AS cor0
----
-121

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

query I rowsort
SELECT DISTINCT - col0 * - col1 FROM tab0 WHERE NOT - col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1107
SELECT col1 DIV + + col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1107
SELECT col1 / + + col2 FROM tab0
----
0
1
2

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 52, + col1 col1 FROM tab2
----
52
51
52
67
52
77

query I rowsort
SELECT + - col0 AS col2 FROM tab2 WHERE NOT + 62 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT DISTINCT - 16 + COUNT( * ) * + ( - 38 ) FROM tab2
----
-130

skipif mysql # not compatible
query I rowsort label-1111
SELECT DISTINCT - 16 + COUNT ( * ) * + ( - 38 ) FROM tab2
----
-130

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

skipif mysql # not compatible
query I rowsort label-1112
SELECT DISTINCT - COUNT ( * ) * - 90 + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col2 * + col1 + col1 AS col2 FROM tab1 AS cor0
----
-1330
-290
-3149

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT SUM( - + col0 ) + + - 16 FROM tab0 AS cor0
----
-215

skipif mysql # not compatible
query I rowsort label-1115
SELECT SUM ( - + col0 ) + + - 16 FROM tab0 AS cor0
----
-215

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

query I rowsort
SELECT DISTINCT col0 + - + ( 88 ) FROM tab1
----
-3
-37
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1118
SELECT + - col0 * col0 + CAST( + ( 84 ) AS SIGNED ) FROM tab1 cor0 WHERE 5 / - 23 / - + col2 > NULL
----

skipif mysql # not compatible
query I rowsort label-1118
SELECT + - col0 * col0 + CAST ( + ( 84 ) AS INTEGER ) FROM tab1 cor0 WHERE 5 / - 23 / - + col2 > NULL
----

query I rowsort
SELECT ALL - col2 + + - ( col1 ) AS col0 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT DISTINCT MIN( 83 ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-1120
SELECT DISTINCT MIN ( 83 ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
86

query I rowsort
SELECT ALL - - col1 + + ( - + col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT + - col0 - + col1 AS col1, + col2 * + - col1 FROM tab0 AS cor0
----
-108
-210
-96
-3807
-98
-99

query I rowsort
SELECT - 5 - + col0 * - 88 + + 30 AS col2 FROM tab1
----
4513
7505
8033

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT ALL + COUNT( * ) - + 46 FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL + COUNT ( * ) - + 46 FROM tab2
----
-43

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

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

query I rowsort
SELECT + 44 * + ( + 69 ) AS col0 FROM tab2
----
3036
3036
3036

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1128
SELECT * FROM tab1 WHERE NOT NULL <> + 41 * - CAST( + + 91 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1128
SELECT * FROM tab1 WHERE NOT NULL <> + 41 * - CAST ( + + 91 AS INTEGER )
----

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

query I rowsort
SELECT - + ( col0 ) * - col2 FROM tab0 AS cor0
----
705
870
9603

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

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

query II rowsort
SELECT ALL - + col1, col0 * + + col1 * + - col2 + - - ( + col1 ) AS col2 FROM tab0 AS cor0
----
-1
-9602
-21
-18249
-81
-57024

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT + - COUNT( - 45 ) * + 50 AS col0 FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-1135
SELECT + - COUNT ( - 45 ) * + 50 AS col0 FROM tab0 AS cor0
----
-150

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

skipif mysql # not compatible
query I rowsort label-1136
SELECT ALL - COUNT ( * ) + + CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT - - 76 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = col1
----

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

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

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

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

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

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

query I rowsort
SELECT + col2 * col0 + - col2 AS col2 FROM tab2
----
1035
2520
4292

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

query I rowsort
SELECT col2 + + ( + - col0 ) + - col2 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT col1 + - - col2 * + - 43 AS col1 FROM tab1
----
-2532
-2877
-4114

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

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1149
SELECT + ( COUNT ( * ) ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-1150
SELECT DISTINCT - COUNT( * ) AS col2, - SUM( ALL + col0 ) FROM tab2
----
-3
-185

skipif mysql # not compatible
query II rowsort label-1150
SELECT DISTINCT - COUNT ( * ) AS col2, - SUM ( ALL + col0 ) FROM tab2
----
-3
-185

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1151
SELECT * FROM tab2 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON + + CAST( - - 58 AS SIGNED ) >= NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

skipif mysql # not compatible
query IIIIII rowsort label-1151
SELECT * FROM tab2 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON + + CAST ( - - 58 AS INTEGER ) >= NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

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

skipif mysql # not compatible
query I rowsort label-1152
SELECT + COUNT ( * ) + 4 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
13

query I rowsort
SELECT + col1 - 79 * + + col0 AS col0 FROM tab2
----
-3583
-4979
-5858

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

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

query I rowsort
SELECT DISTINCT - 96 * + 65 FROM tab0 WHERE NOT + - col0 + + col2 IS NOT NULL
----

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

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

query I rowsort
SELECT col1 * + col1 + + col2 FROM tab1
----
2277
292
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT - MAX( ALL - col2 ) + - - 98 AS col2 FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-1158
SELECT - MAX ( ALL - col2 ) + - - 98 AS col2 FROM tab0
----
108

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

skipif mysql # not compatible
query I rowsort label-1159
SELECT DISTINCT 89 + + + ( + + 0 ) + - CAST ( NULL AS INTEGER ) * + + col1 AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL + - ( 62 ) + + 32 FROM tab1 AS cor0
----
-30
-30
-30

query I rowsort
SELECT + - col0 + - col1 - + 56 FROM tab0 AS cor0
----
-152
-154
-164

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

query II rowsort
SELECT + 68 + - + col2 AS col0, - 28 * - - 82 * - ( 90 ) AS col2 FROM tab1 AS cor0
----
-28
206640
0
206640
9
206640

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT ALL + 80 + + + COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-1164
SELECT ALL + 80 + + + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
86

query I rowsort
SELECT DISTINCT col1 + - + ( + col2 ) AS col2 FROM tab2 cor0
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1166
SELECT ALL ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0 WHERE - 50 = - col2
----

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0 WHERE - 50 = - col2
----

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE 79 <= - 96
----

query I rowsort
SELECT DISTINCT - 59 AS col2 FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-1171
SELECT + ( 24 ), COUNT( * ) + + 78 col0 FROM tab2
----
24
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1171
SELECT + ( 24 ), COUNT ( * ) + + 78 col0 FROM tab2
----
24
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT SUM( + - 94 ) * + 86 + - + 60 AS col0 FROM tab0
----
-24312

skipif mysql # not compatible
query I rowsort label-1172
SELECT SUM ( + - 94 ) * + 86 + - + 60 AS col0 FROM tab0
----
-24312

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

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

query I rowsort
SELECT col1 * + ( col2 ) * + - 67 FROM tab2
----
-206360
-260362
-78591

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

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

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

skipif mysql # not compatible
query I rowsort label-1176
SELECT - COUNT ( ALL col0 ) AS col2 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1177
SELECT - col1 + - CAST( - 15 AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL < col2 + - 52
----

skipif mysql # not compatible
query I rowsort label-1177
SELECT - col1 + - CAST ( - 15 AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL < col2 + - 52
----

query I rowsort
SELECT DISTINCT col2 - + col2 * - 59 * - + 14 FROM tab1 WHERE ( 46 + + 61 ) IS NULL
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 66 + col0 * + col1 + col2 FROM tab2 AS cor0
----
2435
5034
5149

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT 0 * - MAX( + col1 ) + SUM( DISTINCT - col2 ) * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-1185
SELECT 0 * - MAX ( + col1 ) + SUM ( DISTINCT - col2 ) * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
468

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

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

query I rowsort
SELECT + col0 * col0 * + col0 FROM tab1
----
132651
614125
753571

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * col0 AS col2, ( - col1 ) col0 FROM tab0
----
705
-81
870
-21
9603
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT 40 * COUNT( * ) FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-1190
SELECT 40 * COUNT ( * ) FROM tab1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT COUNT( + col2 ) * - + 52 + + - 96 col0 FROM tab1 WHERE NULL = ( + col1 )
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1191
SELECT COUNT ( + col2 ) * - + 52 + + - 96 col0 FROM tab1 WHERE NULL = ( + col1 )
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1192
SELECT ALL - col0 * + + col1 * 41 * ( ( - 58 ) ) - + + ( - + 86 ) + + col2 + - col1 * ( - 49 ) + + col1 * + col1 + + 87 * CAST( col2 AS SIGNED ) FROM tab2 cor0
----
11732092
11962412
5585998

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL - col0 * + + col1 * 41 * ( ( - 58 ) ) - + + ( - + 86 ) + + col2 + - col1 * ( - 49 ) + + col1 * + col1 + + 87 * CAST ( col2 AS INTEGER ) FROM tab2 cor0
----
11732092
11962412
5585998

query I rowsort
SELECT 71 + + + 21 - - - col1 AS col1 FROM tab2 AS cor0
----
15
25
41

query I rowsort
SELECT ALL - - 99 FROM tab1 AS cor0 WHERE 79 IS NOT NULL
----
99
99
99

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

query II rowsort
SELECT ALL + 6 + - 65, - col2 AS col1 FROM tab0 AS cor0
----
-59
-10
-59
-47
-59
-99

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

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

query I rowsort
SELECT DISTINCT + 57 + ( + 48 ) FROM tab0 AS cor0
----
105

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

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

query I rowsort
SELECT + + 39 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

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

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

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE ( NULL ) < + col2
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1204
SELECT COUNT ( * ) / 63 FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT col0 * - + ( + 61 ) - - col1 AS col2 FROM tab2 AS cor0
----
-2755
-3827
-4508

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 71 ) < NULL
----

query II rowsort
SELECT - 35, 63 AS col2 FROM tab2
----
-35
63
-35
63
-35
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1212
SELECT + CAST( + 62 AS SIGNED ) FROM tab0 WHERE NOT col2 * - col2 <= - 55
----

skipif mysql # not compatible
query I rowsort label-1212
SELECT + CAST ( + 62 AS INTEGER ) FROM tab0 WHERE NOT col2 * - col2 <= - 55
----

query I rowsort
SELECT DISTINCT ( + 87 ) FROM tab2
----
87

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

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

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

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

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

query I rowsort
SELECT ALL 83 * - 9 * 10 AS col0 FROM tab0 AS cor0
----
-7470
-7470
-7470

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1219
SELECT ALL + + COUNT( DISTINCT CAST( - 91 AS DECIMAL ) ) FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN 47 AND NULL
----
1

skipif mysql # not compatible
query I rowsort label-1219
SELECT ALL + + COUNT ( DISTINCT CAST ( - 91 AS REAL ) ) FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN 47 AND NULL
----
1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1220
SELECT DISTINCT + + CAST ( + 99 AS INTEGER ) col2 FROM tab2 AS cor0
----
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT DISTINCT MAX( DISTINCT ( 85 ) ) FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-1222
SELECT DISTINCT MAX ( DISTINCT ( 85 ) ) FROM tab2
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-1223
SELECT ALL + COUNT( * ) * - COUNT( * ), - COUNT( * ) AS col0 FROM tab0
----
-9
-3

skipif mysql # not compatible
query II rowsort label-1223
SELECT ALL + COUNT ( * ) * - COUNT ( * ), - COUNT ( * ) AS col0 FROM tab0
----
-9
-3

query I rowsort
SELECT ALL - 92 + + 63 FROM tab2 AS cor0
----
-29
-29
-29

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

query I rowsort
SELECT ALL col1 + + col2 + - + col1 FROM tab2 AS cor0
----
23
40
58

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1228
SELECT - col1 * + - 18 + + CAST( + col2 AS SIGNED ) AS col1 FROM tab1 cor0
----
149
348
914

skipif mysql # not compatible
query I rowsort label-1228
SELECT - col1 * + - 18 + + CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 cor0
----
149
348
914

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT ALL - SUM( - + col1 ) * - COUNT( * ) FROM tab2
----
-585

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL - SUM ( - + col1 ) * - COUNT ( * ) FROM tab2
----
-585

query I rowsort
SELECT DISTINCT - col0 * - 86 * - 84 * 64 FROM tab1 AS cor0
----
-23579136
-39298560
-42072576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1232
SELECT ALL 54 + - + 35 + + + CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) / - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1232
SELECT ALL 54 + - + 35 + + + CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) / - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 82 BETWEEN + - col1 * + 76 AND - 56 + + col2 + - - 28 * + - col0
----

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

query I rowsort
SELECT - ( + - 83 ) - + - col1 AS col2 FROM tab0
----
104
164
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT DISTINCT 9 - 28 + - - COUNT( * ) AS col0 FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-1236
SELECT DISTINCT 9 - 28 + - - COUNT ( * ) AS col0 FROM tab2
----
-16

query I rowsort
SELECT + ( - 25 ) FROM tab0 cor0
----
-25
-25
-25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT DISTINCT + + MIN( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1240
SELECT DISTINCT + + MIN ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
51

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT MAX( DISTINCT + - col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-1244
SELECT MAX ( DISTINCT + - col2 ) FROM tab0
----
-10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT DISTINCT COUNT( * ) * - COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-1246
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) FROM tab0
----
-9

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

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

query I rowsort
SELECT DISTINCT 91 + + + col0 AS col2 FROM tab0 AS cor0 WHERE NOT - 7 = NULL
----

query II rowsort
SELECT - + col2 AS col1, col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > 77
----

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

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

query I rowsort
SELECT DISTINCT + 45 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
45

query I rowsort
SELECT - 50 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE col1 * + 33 IS NOT NULL
----
46
64
75

query I rowsort
SELECT col2 * + 77 FROM tab1 AS cor0
----
4543
5236
7392

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT ALL - MAX( 35 ) - - 3 AS col0 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-1257
SELECT ALL - MAX ( 35 ) - - 3 AS col0 FROM tab0 AS cor0
----
-32

query I rowsort
SELECT - 87 * 63 AS col0 FROM tab2 AS cor0
----
-5481
-5481
-5481

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

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

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

query I rowsort
SELECT + - 22 * - AVG ( - 65 ) * + 13 FROM tab2 WHERE + 62 BETWEEN NULL AND NULL
----
NULL

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

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

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

query II rowsort
SELECT DISTINCT col2, - col2 + + col0 * + ( - col0 ) FROM tab0 cor0
----
10
-7579
47
-272
99
-9508

query I rowsort
SELECT DISTINCT 26 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1266
SELECT - 72 DIV 20 AS col1 FROM tab0 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-1266
SELECT - 72 / 20 AS col1 FROM tab0 AS cor0
----
-3
-3
-3

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

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

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

skipif mysql # not compatible
query II rowsort label-1268
SELECT DISTINCT 86 AS col2, COUNT ( * ) FROM tab2 AS cor0
----
86
3

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

query I rowsort
SELECT ALL col2 * - - 18 AS col1 FROM tab1
----
1062
1224
1728

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1273
SELECT DISTINCT col0 DIV + + col2 AS col0 FROM tab0
----
0
8

skipif mysql # not compatible
query I rowsort label-1273
SELECT DISTINCT col0 / + + col2 AS col0 FROM tab0
----
0
8

query I rowsort
SELECT ALL + 71 * col2 / ( - + col0 ) AS col0 FROM tab2 WHERE + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1275
SELECT ALL col2 DIV - - 86 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL col2 / - - 86 FROM tab2
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1277
SELECT - col0 + col2 - 21 + col2 + - + 79 - + 78 DIV col0 AS col0 FROM tab2
----
-101
-60
-85

skipif mysql # not compatible
query I rowsort label-1277
SELECT - col0 + col2 - 21 + col2 + - + 79 - + 78 / col0 AS col0 FROM tab2
----
-101
-60
-85

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

query I rowsort
SELECT + - col1 * + col0 + 40 AS col0 FROM tab2 AS cor0
----
-2306
-4888
-4985

query I rowsort
SELECT + ( 20 ) FROM tab2 cor0
----
20
20
20

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

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL CAST ( - - 22 AS INTEGER ) FROM tab0 AS cor0
----
22
22
22

query I rowsort
SELECT ( 59 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT + MIN( + col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-1283
SELECT + MIN ( + col0 ) AS col0 FROM tab1
----
51

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

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

query I rowsort
SELECT ALL + col1 + + + col1 AS col2 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT DISTINCT - MIN( - + col0 ) + ( 92 ) + + ( COUNT( * ) ) FROM tab1 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-1286
SELECT DISTINCT - MIN ( - + col0 ) + ( 92 ) + + ( COUNT ( * ) ) FROM tab1 AS cor0
----
186

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

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

query II rowsort
SELECT ALL 48 * col1 + + col1, + 81 AS col1 FROM tab2 AS cor0
----
2499
81
3283
81
3773
81

query II rowsort
SELECT ALL ( + - ( 22 ) ) + ( col2 ) + - 32 * + 50 + - col1, 58 AS col1 FROM tab0 AS cor0
----
-1524
58
-1633
58
-1656
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1290
SELECT DISTINCT + - col2 * - CAST( col2 AS SIGNED ) - + + 3 + + 71 * col2 + ( + 34 ), col0 AS col1 FROM tab2 AS cor0
----
2193
46
4471
64
7513
75

skipif mysql # not compatible
query II rowsort label-1290
SELECT DISTINCT + - col2 * - CAST ( col2 AS INTEGER ) - + + 3 + + 71 * col2 + ( + 34 ), col0 AS col1 FROM tab2 AS cor0
----
2193
46
4471
64
7513
75

query I rowsort
SELECT DISTINCT - col2 + 48 FROM tab0 cor0
----
-51
1
38

onlyif mysql # DIV for integer division: 
query II rowsort label-1292
SELECT - ( col1 ) * + + col0 + - + 45 AS col0, - col1 DIV col2 FROM tab1
----
-4322
0
-470
0
-759
0

skipif mysql # not compatible
query II rowsort label-1292
SELECT - ( col1 ) * + + col0 + - + 45 AS col0, - col1 / col2 FROM tab1
----
-4322
0
-470
0
-759
0

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

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

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

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

query I rowsort
SELECT DISTINCT + 80 * + 92 AS col1 FROM tab2 cor0
----
7360

query I rowsort
SELECT ALL 95 * col0 FROM tab0 AS cor0
----
1425
8265
9215

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1297
SELECT ALL + - CAST( col0 AS SIGNED ) col0 FROM tab1 AS cor0 WHERE ( + col2 ) IN ( col0, ( + 82 ), col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1297
SELECT ALL + - CAST ( col0 AS INTEGER ) col0 FROM tab1 AS cor0 WHERE ( + col2 ) IN ( col0, ( + 82 ), col1 )
----

query II rowsort
SELECT ALL col0 * col2, - ( + col1 ) AS col1 FROM tab1
----
4896
-14
5015
-5
6188
-47

query I rowsort
SELECT DISTINCT + 51 + - 34 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
17

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

query I rowsort
SELECT ALL + col2 * col2 * col0 FROM tab2 AS cor0
----
102400
24334
252300

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT ALL - MAX( DISTINCT ( - col2 ) ) / + 27 * - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL <= + 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1303
SELECT ALL - MAX ( DISTINCT ( - col2 ) ) / + 27 * - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL <= + 43 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1304
SELECT DISTINCT - - ( + CAST( - col1 AS SIGNED ) ) AS col1, CAST( col1 AS SIGNED ) / + - col2 AS col2 FROM tab0 AS cor0 WHERE NULL > col1
----

skipif mysql # not compatible
query II rowsort label-1304
SELECT DISTINCT - - ( + CAST ( - col1 AS INTEGER ) ) AS col1, CAST ( col1 AS INTEGER ) / + - col2 AS col2 FROM tab0 AS cor0 WHERE NULL > col1
----

query I rowsort
SELECT col2 * + 60 + + - 63 + col2 + col0 FROM tab2 AS cor0
----
1386
2441
3550

query I rowsort
SELECT DISTINCT + 27 * - + 19 + + col1 * col2 + + col2 AS col0 FROM tab0 AS cor0
----
-293
-315
3341

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1308
SELECT - col2, + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-1308
SELECT - col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1309
SELECT DISTINCT col0 DIV - - col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-1309
SELECT DISTINCT col0 / - - col1 FROM tab1
----
1
17
3

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

query II rowsort
SELECT DISTINCT col2 * - 4 * + col0 + col0, - col1 * - col0 AS col1 FROM tab0
----
-2805
1215
-3393
1827
-38315
97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 col0 FROM tab1 WHERE NOT - col0 >= NULL
----

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

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

query I rowsort
SELECT ALL + col1 * 23 + + 44 AS col1 FROM tab0 cor0
----
1907
527
67

query I rowsort
SELECT + 92 * - + col0 AS col0 FROM tab2 AS cor0
----
-4232
-5888
-6900

query I rowsort
SELECT - + 58 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT ALL + - 88 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

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

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT col2 - - 35 - - col0 IS NOT NULL )
----

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

skipif mysql # not compatible
query I rowsort label-1323
SELECT COUNT ( * ) FROM tab1 WHERE - + col1 / + - col1 + + col0 IS NOT NULL
----
3

query I rowsort
SELECT - col0 * + 54 + + col0 * col2 * + + col2 + col2 FROM tab0
----
32372
4012
945558

query I rowsort
SELECT + 0 + - col0 FROM tab0
----
-15
-87
-97

query II rowsort
SELECT ALL - col0 AS col0, col1 FROM tab2 AS cor0 WHERE NOT 89 <= + col2 - col0
----
-46
51
-64
77
-75
67

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 * - col1 NOT BETWEEN - col1 + + 23 * + 76 * - col2 + - col1 AND NULL
----

query I rowsort
SELECT + col2 * 12 * - col0 FROM tab1 AS cor0
----
-58752
-60180
-74256

query I rowsort
SELECT ALL - 79 * 9 + - 24 + ( + ( - col1 ) ) FROM tab0 AS cor0
----
-736
-756
-816

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

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

query I rowsort
SELECT ALL 46 - - 92 FROM tab2 AS cor0
----
138
138
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1333
SELECT DISTINCT - CAST( + ( + col2 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1333
SELECT DISTINCT - CAST ( + ( + col2 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT + 56 - - + 35 + + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-1334
SELECT + 56 - - + 35 + + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT + 7 * COUNT( * ) - + - MIN( col0 ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-1336
SELECT + 7 * COUNT ( * ) - + - MIN ( col0 ) FROM tab1
----
72

query I rowsort
SELECT 70 + + col0 FROM tab1
----
121
155
161

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1341
SELECT col0 * 91 DIV + + col1 FROM tab2 AS cor0
----
101
75
82

skipif mysql # not compatible
query I rowsort label-1341
SELECT col0 * 91 / + + col1 FROM tab2 AS cor0
----
101
75
82

query I rowsort
SELECT DISTINCT + + ( ( col1 ) ) * - - ( col1 ) + + col0 * col0 FROM tab1 AS cor0
----
10490
2797
7250

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1343
SELECT DISTINCT CAST( + col1 AS SIGNED ), + col0 AS col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

skipif mysql # not compatible
query II rowsort label-1343
SELECT DISTINCT CAST ( + col1 AS INTEGER ), + col0 AS col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1344
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, 47 AS col0, - 73 + - - col2 AS col0 FROM tab2 AS cor0
----
9 values hashing to 902a9753b9b6f989be390fb2cacbd5ad

skipif mysql # not compatible
query III rowsort label-1344
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, 47 AS col0, - 73 + - - col2 AS col0 FROM tab2 AS cor0
----
9 values hashing to 902a9753b9b6f989be390fb2cacbd5ad

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1346
SELECT + col2 DIV - CAST( + col1 AS SIGNED ) + + 59 FROM tab0 AS cor0
----
-40
59
59

skipif mysql # not compatible
query I rowsort label-1346
SELECT + col2 / - CAST ( + col1 AS INTEGER ) + + 59 FROM tab0 AS cor0
----
-40
59
59

query I rowsort
SELECT DISTINCT + - 93 * col1 + + - 69 - + + col1 AS col0 FROM tab2 AS cor0
----
-4863
-6367
-7307

query II rowsort
SELECT DISTINCT 72 AS col0, 68 FROM tab1 AS cor0
----
72
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1351
SELECT MIN( + + col2 ) + + MAX( ALL + - 84 ) AS col0 FROM tab0
----
-74

skipif mysql # not compatible
query I rowsort label-1351
SELECT MIN ( + + col2 ) + + MAX ( ALL + - 84 ) AS col0 FROM tab0
----
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( + - col1 ) AS col2, + col2 col2 FROM tab2
----
-51
23
-67
58
-77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1353
SELECT col2 + CAST( + col0 AS SIGNED ) AS col1 FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-1353
SELECT col2 + CAST ( + col0 AS INTEGER ) AS col1 FROM tab2
----
104
133
69

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT + 83 + + COUNT( * ) FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-1357
SELECT + 83 + + COUNT ( * ) FROM tab0
----
86

query I rowsort
SELECT + ( - + 15 ) + ( - col0 ) FROM tab0
----
-102
-112
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT DISTINCT + COUNT( DISTINCT - - 55 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT + COUNT ( DISTINCT - - 55 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT - 35 FROM tab1 AS cor0 WHERE NOT 99 * - col0 <> col1 + + col2 * + col2
----

query I rowsort
SELECT - - 44 + 89 FROM tab1 AS cor0
----
133
133
133

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1362
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * + col0 IN ( 39 - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1362
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * + col0 IN ( 39 - CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 - - col2 col0 FROM tab0 cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT DISTINCT COUNT( * ) col2 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-1364
SELECT DISTINCT COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + col0 ) - col0 * - + col1 + - 96 * - 35 * 47 - - col0 col1 FROM tab2
----
160358
162976
163095

onlyif mysql # DIV for integer division: 
query I rowsort label-1366
SELECT DISTINCT + col1 DIV - - 58 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-1366
SELECT DISTINCT + col1 / - - 58 FROM tab0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT ALL - COUNT( * ) * 64 col2 FROM tab0
----
-192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1367
SELECT ALL - COUNT ( * ) * 64 col2 FROM tab0
----
-192

query I rowsort
SELECT + col1 * ( + + 43 ) FROM tab1
----
2021
215
602

query I rowsort
SELECT DISTINCT - 91 AS col1 FROM tab2
----
-91

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1371
SELECT ALL ( + - 61 ), + COUNT( * ) DIV + COUNT( * ) + 46 AS col1 FROM tab0, tab0 AS cor0
----
-61
47

skipif mysql # not compatible
query II rowsort label-1371
SELECT ALL ( + - 61 ), + COUNT ( * ) / + COUNT ( * ) + 46 AS col1 FROM tab0, tab0 AS cor0
----
-61
47

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

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

query I rowsort
SELECT + 60 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT DISTINCT + 21 + col0 FROM tab2 AS cor0
----
67
85
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1375
SELECT + SUM( DISTINCT CAST( + - col1 AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND - col1 * - ( - - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1375
SELECT + SUM ( DISTINCT CAST ( + - col1 AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND - col1 * - ( - - col1 )
----
NULL

query I rowsort
SELECT ALL col0 + - col0 FROM tab1 AS cor0 WHERE NOT - col1 * - col1 IN ( - - col2 )
----
0
0
0

query I rowsort
SELECT - - col1 * + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
2346
4928
5025

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1381
SELECT - COUNT( * ) col2, - MAX( - col2 ) FROM tab1 AS cor0
----
-3
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1381
SELECT - COUNT ( * ) col2, - MAX ( - col2 ) FROM tab1 AS cor0
----
-3
59

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1383
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT + 21 BETWEEN NULL AND - col0 + - CAST( col2 AS DECIMAL ) + col2
----
-3

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT + 21 BETWEEN NULL AND - col0 + - CAST ( col2 AS REAL ) + col2
----
-3

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1386
SELECT col0 DIV - 41 AS col0 FROM tab1
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-1386
SELECT col0 / - 41 AS col0 FROM tab1
----
-1
-2
-2

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 BETWEEN NULL AND col0 * col1 + - 36 - + col2 + + ( - col1 ) / col0
----

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

query II rowsort
SELECT ALL + col1, + col1 FROM tab0 WHERE NOT - 6 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1390
SELECT col2 DIV 37 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1390
SELECT col2 / 37 FROM tab2
----
0
1
1

query I rowsort
SELECT - 54 * - - 34 FROM tab1
----
-1836
-1836
-1836

query I rowsort
SELECT DISTINCT col0 * + 66 + col1 + - col0 * + 91 AS col2 FROM tab1
----
-1261
-2120
-2228

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT ALL SUM( ALL col2 ) + COUNT( * ) AS col2 FROM tab1
----
226

skipif mysql # not compatible
query I rowsort label-1394
SELECT ALL SUM ( ALL col2 ) + COUNT ( * ) AS col2 FROM tab1
----
226

query I rowsort
SELECT DISTINCT 47 + - col0 AS col1 FROM tab2 AS cor0
----
-17
-28
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT DISTINCT + - 14 + + COUNT( * ) FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-1396
SELECT DISTINCT + - 14 + + COUNT ( * ) FROM tab0 AS cor0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1397
SELECT DISTINCT - col1 - - - 33 + + 72 - - 28 / - CAST( NULL AS SIGNED ) * + - col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1397
SELECT DISTINCT - col1 - - - 33 + + 72 - - 28 / - CAST ( NULL AS INTEGER ) * + - col1 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT 20 + - + COUNT( * ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-1398
SELECT 20 + - + COUNT ( * ) FROM tab1
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-1399
SELECT col0 DIV col2 + - col0 * + col0 col1 FROM tab2
----
-2114
-4095
-5624

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1399
SELECT col0 / col2 + - col0 * + col0 col1 FROM tab2
----
-2114
-4095
-5624

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1400
SELECT DISTINCT + CAST( + col2 AS SIGNED ) DIV - - col0 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-1400
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) / - - col0 FROM tab0
----
0
1
3

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 81 + - - col1 - + col0 - + col2 + col1 IS NULL
----

query I rowsort
SELECT ALL col1 * 99 + + - col2 + col2 AS col0 FROM tab2 cor0
----
5049
6633
7623

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1405
SELECT - 94 DIV + - 24 FROM tab2 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-1405
SELECT - 94 / + - 24 FROM tab2 AS cor0
----
3
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1406
SELECT DISTINCT + - col2 DIV + 58 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT + - col2 / + 58 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT + col0 * + col1 * + col0 - + col0 FROM tab0 cor0
----
158862
18210
9312

query II rowsort
SELECT col1 - + col2 AS col1, - col0 FROM tab2 AS cor0
----
28
-46
37
-64
9
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT ALL - ( + 6 ) - - MAX( col0 ) AS col2 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-1409
SELECT ALL - ( + 6 ) - - MAX ( col0 ) AS col2 FROM tab1 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT ALL - 37 * + - 34 - - COUNT( * ) FROM tab0 cor0 WHERE ( + + col2 ) - + + 65 - 9 NOT BETWEEN col2 * + - col1 + - col2 - col0 + - col2 AND + col1
----
1259

skipif mysql # not compatible
query I rowsort label-1410
SELECT ALL - 37 * + - 34 - - COUNT ( * ) FROM tab0 cor0 WHERE ( + + col2 ) - + + 65 - 9 NOT BETWEEN col2 * + - col1 + - col2 - col0 + - col2 AND + col1
----
1259

onlyif mysql # aggregate syntax: 
query I rowsort label-1411
SELECT - + COUNT( * ) FROM tab1 WHERE NOT + + col0 BETWEEN col2 AND + col2
----
-3

skipif mysql # not compatible
query I rowsort label-1411
SELECT - + COUNT ( * ) FROM tab1 WHERE NOT + + col0 BETWEEN col2 AND + col2
----
-3

query I rowsort
SELECT - col1 * - col1 * col1 - col2 AS col0 FROM tab2 WHERE NOT NULL > NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + col0 * 77 * col2 + - col2 FROM tab2 AS cor0
----
197080
334892
81443

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

query I rowsort
SELECT 54 + col2 AS col2 FROM tab1
----
113
122
150

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 >= ( col1 )
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1424
SELECT - CAST( col2 AS DECIMAL ) * + 74 FROM tab1 WHERE - col1 * + 30 + col1 * ( + col1 ) BETWEEN NULL AND - 58 - - col2
----

skipif mysql # not compatible
query I rowsort label-1424
SELECT - CAST ( col2 AS REAL ) * + 74 FROM tab1 WHERE - col1 * + 30 + col1 * ( + col1 ) BETWEEN NULL AND - 58 - - col2
----

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE col1 <> - 75
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 * + 11 col1 FROM tab2
----
584
795
887

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

query I rowsort
SELECT ALL ( col2 ) * + 20 FROM tab1
----
1180
1360
1920

query I rowsort
SELECT ALL - ( - 30 ) * col0 FROM tab0
----
2610
2910
450

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT + COUNT( + 44 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1430
SELECT + COUNT ( + 44 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT ALL + 82 * - col1 FROM tab0
----
-1722
-6642
-82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT MAX( DISTINCT - 6 ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-1433
SELECT MAX ( DISTINCT - 6 ) FROM tab2
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-1434
SELECT + col2 * ( col1 DIV + ( col1 ) ) + + col0 col1 FROM tab1
----
144
147
159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1434
SELECT + col2 * ( col1 / + ( col1 ) ) + + col0 col1 FROM tab1
----
144
147
159

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

query I rowsort
SELECT col1 * - 80 AS col2 FROM tab1
----
-1120
-3760
-400

query I rowsort
SELECT 75 FROM tab1 WHERE ( 51 * 32 ) IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 / - col0 col2 FROM tab1 WHERE NULL NOT BETWEEN - 97 AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1440
SELECT col0 DIV col1 - + col1 AS col0 FROM tab0
----
-17
-81
96

skipif mysql # not compatible
query I rowsort label-1440
SELECT col0 / col1 - + col1 AS col0 FROM tab0
----
-17
-81
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 * - 42 + - ( col1 ) col1 FROM tab2
----
-3957
-3973
-3983

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT SUM( 12 ) * MAX( col2 ) FROM tab1
----
3456

skipif mysql # not compatible
query I rowsort label-1442
SELECT SUM ( 12 ) * MAX ( col2 ) FROM tab1
----
3456

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * col1 >= ( col2 + - 2 )
----
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT - 15 * ( - COUNT( DISTINCT + col0 ) ) AS col1 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-1444
SELECT - 15 * ( - COUNT ( DISTINCT + col0 ) ) AS col1 FROM tab1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT ALL + MIN( - ( - 90 ) ) FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL + MIN ( - ( - 90 ) ) FROM tab0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT ALL SUM( DISTINCT - 92 ) + - 18 AS col2 FROM tab2
----
-110

skipif mysql # not compatible
query I rowsort label-1446
SELECT ALL SUM ( DISTINCT - 92 ) + - 18 AS col2 FROM tab2
----
-110

query I rowsort
SELECT ALL ( + 26 ) * col2 FROM tab2
----
1040
1508
598

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

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

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

skipif mysql # not compatible
query I rowsort label-1449
SELECT - CAST ( 44 AS INTEGER ) FROM tab1 AS cor0
----
-44
-44
-44

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 ) NOT BETWEEN NULL AND + col2 / 34
----
15
81
47
87
21
10

query I rowsort
SELECT ALL + ( - col1 ) - 21 AS col1 FROM tab1 AS cor0
----
-26
-35
-68

query I rowsort
SELECT - 40 AS col1 FROM tab1 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT col0 * col0 FROM tab2 WHERE NOT col2 BETWEEN col0 AND - col0
----
2116
4096
5625

query I rowsort
SELECT ALL + 83 AS col1 FROM tab2 WHERE NOT ( col1 ) IS NOT NULL
----

query I rowsort
SELECT col2 FROM tab2 WHERE NULL IS NULL
----
23
40
58

query I rowsort
SELECT - 37 + - col2 FROM tab2
----
-60
-77
-95

query I rowsort
SELECT DISTINCT - 38 FROM tab0 AS cor0 WHERE NOT ( - 4 ) <> - 68
----

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

query I rowsort
SELECT ALL - - col1 * col1 + col1 FROM tab2 AS cor0
----
2652
4556
6006

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT ( + MAX( col1 ) ) * - 26 AS col1 FROM tab2 AS cor0
----
-2002

skipif mysql # not compatible
query I rowsort label-1461
SELECT ( + MAX ( col1 ) ) * - 26 AS col1 FROM tab2 AS cor0
----
-2002

onlyif mysql # DIV for integer division: 
query I rowsort label-1462
SELECT col1 DIV - 8 AS col0 FROM tab1 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-1462
SELECT col1 / - 8 AS col0 FROM tab1 AS cor0
----
-1
-5
0

query I rowsort
SELECT DISTINCT - - col2 * 86 FROM tab1 AS cor0
----
5074
5848
8256

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

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

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

query I rowsort
SELECT col0 AS col0 FROM tab0 cor0 WHERE NOT ( - ( - col1 ) ) < col0
----
15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 98 BETWEEN NULL AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT DISTINCT - + MIN( - 99 ) * + 38 FROM tab0 cor0
----
3762

skipif mysql # not compatible
query I rowsort label-1468
SELECT DISTINCT - + MIN ( - 99 ) * + 38 FROM tab0 cor0
----
3762

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

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

query I rowsort
SELECT DISTINCT + 60 * - col2 FROM tab2
----
-1380
-2400
-3480

onlyif mysql # DIV for integer division: 
query I rowsort label-1471
SELECT ALL - col0 * 20 DIV + 92 FROM tab2
----
-10
-13
-16

skipif mysql # not compatible
query I rowsort label-1471
SELECT ALL - col0 * 20 / + 92 FROM tab2
----
-10
-13
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1472
SELECT ALL - CAST( - - COUNT( * ) AS SIGNED ) DIV 21 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1472
SELECT ALL - CAST ( - - COUNT ( * ) AS INTEGER ) / 21 FROM tab1
----
0

query I rowsort
SELECT ( - 56 ) AS col1 FROM tab2
----
-56
-56
-56

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1477
SELECT + ( CAST( NULL AS SIGNED ) ) * 76 FROM tab0 WHERE NOT col0 / col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1477
SELECT + ( CAST ( NULL AS INTEGER ) ) * 76 FROM tab0 WHERE NOT col0 / col2 IS NOT NULL
----

query I rowsort
SELECT ALL - 45 * - 23 FROM tab1
----
1035
1035
1035

query I rowsort
SELECT DISTINCT 61 AS col0 FROM tab1
----
61

query I rowsort
SELECT DISTINCT - 76 * - col0 FROM tab0 AS cor0
----
1140
6612
7372

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1483
SELECT ALL - col2 * + - col2 DIV col2 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1483
SELECT ALL - col2 * + - col2 / col2 FROM tab2 cor0
----
23
40
58

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1485
SELECT ALL - 18 * - CAST( col1 AS SIGNED ) col1 FROM tab1 AS cor0
----
252
846
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1485
SELECT ALL - 18 * - CAST ( col1 AS INTEGER ) col1 FROM tab1 AS cor0
----
252
846
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT DISTINCT - - COUNT( DISTINCT 41 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1486
SELECT DISTINCT - - COUNT ( DISTINCT 41 ) AS col1 FROM tab1 AS cor0
----
1

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1489
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
1

query III rowsort
SELECT ALL * FROM tab0 WHERE + 39 * col2 IS NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col1, col0 * + col0 AS col0 FROM tab2 AS cor0
----
23
2116
40
4096
58
5625

query I rowsort
SELECT DISTINCT + 66 + + col2 + - col1 * 12 AS col2 FROM tab1 AS cor0
----
-430
-6
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + + col0 col1 FROM tab1 AS cor0
----
144
147
159

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col2 / - + 12 * 55 + col2 IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 16 col0 FROM tab2 AS cor0
----
-1072
-1232
-816

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE - col2 / - col2 <= + col0 * + col1
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1498
SELECT ALL - + col0 DIV + CAST( - + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1498
SELECT ALL - + col0 / + CAST ( - + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1
1
1

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

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

query I rowsort
SELECT DISTINCT col1 + 54 AS col1 FROM tab2 AS cor0
----
105
121
131

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1504
SELECT * FROM tab1 WHERE NULL NOT IN ( - 96 * + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - col1 )
----

skipif mysql # not compatible
query III rowsort label-1504
SELECT * FROM tab1 WHERE NULL NOT IN ( - 96 * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1505
SELECT ALL col0 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( + 82 + 86 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1505
SELECT ALL col0 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( + 82 + 86 + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - col1 * - col2 FROM tab0 WHERE + 25 / + 15 IS NOT NULL
----
210
3807
99

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

query I rowsort
SELECT - col0 - + 91 + - 21 AS col1 FROM tab0
----
-127
-199
-209

query II rowsort
SELECT ALL ( - 12 ), col1 AS col0 FROM tab1
----
-12
14
-12
47
-12
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT + COUNT( * ) * 63 + - 20 + 83 AS col1 FROM tab1 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-1510
SELECT + COUNT ( * ) * 63 + - 20 + 83 AS col1 FROM tab1 AS cor0
----
252

query I rowsort
SELECT ALL + - 20 + ( + col1 ) FROM tab1 AS cor0
----
-15
-6
27

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( col1 ) <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 90 - ( - col1 ) AS col1 FROM tab2
----
141
157
167

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT - SUM( + 29 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-261

skipif mysql # not compatible
query I rowsort label-1514
SELECT - SUM ( + 29 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-261

query II rowsort
SELECT ALL - + 54 AS col2, 44 FROM tab1 AS cor0
----
-54
44
-54
44
-54
44

query I rowsort
SELECT 87 * - col0 AS col1 FROM tab2 AS cor0
----
-4002
-5568
-6525

query I rowsort
SELECT ALL - 53 * col1 * + - 26 FROM tab0 AS cor0
----
111618
1378
28938

onlyif mysql # DIV for integer division: 
query I rowsort label-1518
SELECT + + col2 * + col0 DIV col0 AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1518
SELECT + + col2 * + col0 / col0 AS col0 FROM tab0 AS cor0
----
10
47
99

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

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

query I rowsort
SELECT ALL - 30 * - - 58 FROM tab1 AS cor0
----
-1740
-1740
-1740

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 12 + col2 NOT BETWEEN ( - col0 ) AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( col1 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT ( - MIN( DISTINCT - col0 ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1523
SELECT ( - MIN ( DISTINCT - col0 ) ) FROM tab2
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1524
SELECT - col0 AS col0, + col1 * - 29 * - CAST( NULL AS DECIMAL ) / + col1 + col2 AS col2 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-1524
SELECT - col0 AS col0, + col1 * - 29 * - CAST ( NULL AS REAL ) / + col1 + col2 AS col2 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT ALL - COUNT( ALL - 62 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1525
SELECT ALL - COUNT ( ALL - 62 ) FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col2 - - 77 ) < 65
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col1 * - col1 + + col1 + 84 - ( 71 ) ) NOT BETWEEN - col0 AND + 42 / col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 17 * - ( - col0 ) + + col1 + 66 + col1 <> ( + col2 / - col1 + 65 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1530
SELECT ALL - CAST( NULL AS DECIMAL ) AS col0, - COUNT( * ) - + 21 AS col0 FROM tab0, tab0 AS cor0
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-1530
SELECT ALL - CAST ( NULL AS REAL ) AS col0, - COUNT ( * ) - + 21 AS col0 FROM tab0, tab0 AS cor0
----
NULL
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT DISTINCT SUM( + col0 ) - COUNT( 2 ) AS col1 FROM tab0 WHERE ( col1 ) BETWEEN - col0 AND + 12 * - col0 * 28 - + col2 / + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-1531
SELECT DISTINCT SUM ( + col0 ) - COUNT ( 2 ) AS col1 FROM tab0 WHERE ( col1 ) BETWEEN - col0 AND + 12 * - col0 * 28 - + col2 / + 32
----
NULL

query I rowsort
SELECT DISTINCT - 47 AS col0 FROM tab2 WHERE NOT - col0 NOT BETWEEN NULL AND - col2 + - 61
----

query I rowsort
SELECT + - 56 FROM tab2 AS cor0
----
-56
-56
-56

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

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

skipif mysql # not compatible
query I rowsort label-1535
SELECT DISTINCT 94 / 5 - + 60 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 25 FROM tab0 WHERE NOT + 73 = - ( - col0 )
----
25

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1539
SELECT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) * + + 9 * - col1 BETWEEN ( NULL ) AND col0
----

skipif mysql # not compatible
query III rowsort label-1539
SELECT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * + + 9 * - col1 BETWEEN ( NULL ) AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 + col2 * 64 col0, ( - 60 ) FROM tab0 AS cor0
----
2993
-60
553
-60
6239
-60

query I rowsort
SELECT + col2 + + ( - 91 ) FROM tab2 AS cor0
----
-33
-51
-68

query I rowsort
SELECT ALL + + 29 + 94 AS col0 FROM tab2 AS cor0
----
123
123
123

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT DISTINCT + 55 + + MIN( ALL col2 ) + + 80 AS col2 FROM tab2 AS cor0
----
158

skipif mysql # not compatible
query I rowsort label-1543
SELECT DISTINCT + 55 + + MIN ( ALL col2 ) + + 80 AS col2 FROM tab2 AS cor0
----
158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1544
SELECT DISTINCT - MAX( DISTINCT - - col0 ) DIV COUNT( * ) * + - 74 FROM tab1 AS cor0
----
2220

skipif mysql # not compatible
query I rowsort label-1544
SELECT DISTINCT - MAX ( DISTINCT - - col0 ) / COUNT ( * ) * + - 74 FROM tab1 AS cor0
----
2220

query II rowsort
SELECT ALL + + 34 + - col2, col0 AS col2 FROM tab2 AS cor0
----
-24
75
-6
64
11
46

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 93 <> + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab2 WHERE NULL NOT IN ( + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE + - col1 / + 14 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1550
SELECT DISTINCT - 90 - COUNT( * ) + + ( + - CAST( NULL AS DECIMAL ) ) + - COUNT( - - 7 ) * + + COUNT( * ) + + 72 * AVG ( DISTINCT + col0 - - col2 / 39 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1550
SELECT DISTINCT - 90 - COUNT ( * ) + + ( + - CAST ( NULL AS REAL ) ) + - COUNT ( - - 7 ) * + + COUNT ( * ) + + 72 * AVG ( DISTINCT + col0 - - col2 / 39 ) FROM tab1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1551
SELECT + col1 / + 17 AS col0 FROM tab2
----
3
3
4

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

query I rowsort
SELECT 86 - - 46 FROM tab0 AS cor0
----
132
132
132

query I rowsort
SELECT - 11 * + - 45 AS col2 FROM tab1
----
495
495
495

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1555
SELECT MIN( + 3 ) AS col1, 63 DIV + - 78 FROM tab0 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-1555
SELECT MIN ( + 3 ) AS col1, 63 / + - 78 FROM tab0 AS cor0
----
3
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT - ( - MAX( DISTINCT - + col1 ) ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-1557
SELECT - ( - MAX ( DISTINCT - + col1 ) ) AS col1 FROM tab2
----
-51

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1559
SELECT col2 DIV - - ( col0 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1559
SELECT col2 / - - ( col0 ) FROM tab2
----
0
0
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 92 * 65 + col2 + + - 21 NOT IN ( col2 * - - 41 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 57 FROM tab0 WHERE NULL IS NULL
----
57

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

query I rowsort
SELECT ALL 53 + - col0 AS col2 FROM tab2 cor0
----
-11
-22
7

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

query I rowsort
SELECT + col0 * - col1 + + - col1 AS col1 FROM tab2 AS cor0
----
-2397
-5005
-5092

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

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

skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL 17 * + COUNT ( * ) FROM tab1
----
51

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

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

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

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

query I rowsort
SELECT ALL - col0 - + 86 + + col0 + + + 35 FROM tab2 AS cor0
----
-51
-51
-51

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

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

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

query I rowsort
SELECT + 83 * + ( - col0 ) FROM tab1 AS cor0
----
-4233
-7055
-7553

query I rowsort
SELECT ALL - 52 / - 94 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1 / + 66
----

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

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

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

query II rowsort
SELECT + 89 - + + col2 AS col1, 31 * + col1 * - col2 * + col2 AS col0 FROM tab1
----
-7
-3999744
21
-6737168
30
-539555

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT 64 - + - SUM( DISTINCT 3 ) FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-1580
SELECT 64 - + - SUM ( DISTINCT 3 ) FROM tab2
----
67

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

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

query I rowsort
SELECT col0 - 60 AS col0 FROM tab2
----
-14
15
4

onlyif mysql # aggregate syntax: 
query II rowsort label-1583
SELECT ALL 8 * + 88 AS col2, MAX( DISTINCT + 2 ) AS col0 FROM tab1
----
704
2

skipif mysql # not compatible
query II rowsort label-1583
SELECT ALL 8 * + 88 AS col2, MAX ( DISTINCT + 2 ) AS col0 FROM tab1
----
704
2

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 IN ( - col0 / 42 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 50 + - - ( + + col0 ) FROM tab0
----
-35
37
47

query I rowsort
SELECT ALL col0 + + col2 * + ( + + col1 ) FROM tab2
----
1219
3144
3961

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT - MIN( ALL + 11 ) AS col2 FROM tab0 cor0
----
-11

skipif mysql # not compatible
query I rowsort label-1588
SELECT - MIN ( ALL + 11 ) AS col2 FROM tab0 cor0
----
-11

query I rowsort
SELECT - col2 * + - col2 AS col0 FROM tab0 AS cor0
----
100
2209
9801

query II rowsort
SELECT DISTINCT col0 AS col0, col0 AS col1 FROM tab0
----
15
15
87
87
97
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT DISTINCT + MIN( + 90 ) FROM tab1 WHERE NOT NULL >= - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-1592
SELECT DISTINCT + MIN ( + 90 ) FROM tab1 WHERE NOT NULL >= - 63
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, 27 AS col2 FROM tab2
----
51
27
67
27
77
27

query II rowsort
SELECT ALL - col2 - col0, + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT MIN( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-1595
SELECT MIN ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
59

query I rowsort
SELECT - + 9 * + 31 * col0 AS col1 FROM tab2 AS cor0
----
-12834
-17856
-20925

query I rowsort
SELECT col0 * + 1 + + col1 * + col1 FROM tab0 AS cor0
----
528
6576
98

onlyif mysql # DIV for integer division: 
query I rowsort label-1598
SELECT + col1 DIV + + 13 col1 FROM tab2 cor0
----
3
5
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1598
SELECT + col1 / + + 13 col1 FROM tab2 cor0
----
3
5
5

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

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

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

query I rowsort
SELECT - + 86 * - col2 FROM tab0 AS cor0
----
4042
8514
860

query I rowsort
SELECT 68 * col0 AS col1 FROM tab1 AS cor0
----
3468
5780
6188

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

query I rowsort
SELECT col2 + - col1 + - - 40 + + 8 FROM tab1 WHERE NOT + 84 = col2
----
102
130
69

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 - col2 + + - 83 * col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 41 + - 75 FROM tab0 AS cor0
----
-34

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 * 32 IS NULL )
----

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( - - col2 ) + - + ( 79 ) FROM tab0 cor0
----
-32
-69
20

query I rowsort
SELECT DISTINCT + col1 * - 84 + col0 FROM tab2 cor0
----
-4238
-5553
-6404

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 16 * - col1 col1 FROM tab1
----
-224
-752
-80

query I rowsort
SELECT ALL - 83 * - + 84 FROM tab0
----
6972
6972
6972

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

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

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

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

query I rowsort
SELECT col0 * - 17 AS col1 FROM tab0
----
-1479
-1649
-255

query I rowsort
SELECT DISTINCT 5 - - 65 FROM tab2
----
70

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1623
SELECT DISTINCT 32 DIV + - 96 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1623
SELECT DISTINCT 32 / + - 96 FROM tab1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1624
SELECT DISTINCT - - CAST( NULL AS DECIMAL ), - col0 + ( + col2 ) AS col1 FROM tab0 AS cor0
----
NULL
-77
NULL
2
NULL
32

skipif mysql # not compatible
query II rowsort label-1624
SELECT DISTINCT - - CAST ( NULL AS REAL ), - col0 + ( + col2 ) AS col1 FROM tab0 AS cor0
----
NULL
-77
NULL
2
NULL
32

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

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

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

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

query I rowsort
SELECT ALL + col0 * - - 73 FROM tab1
----
3723
6205
6643

query I rowsort
SELECT ALL col0 * - col0 * + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL > 1 + - col0
----

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

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

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

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

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

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

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

query I rowsort
SELECT col2 * - 44 AS col2 FROM tab1
----
-2596
-2992
-4224

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT MAX( 86 ) FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-1635
SELECT MAX ( 86 ) FROM tab1
----
86

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 68 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1637
SELECT + 4 / + + col2 AS col1 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL - 77 AS col0, 31 AS col2 FROM tab1 WHERE NOT + col2 + + col2 * + col2 IS NOT NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab1 AS cor0 WHERE 32 * + 82 + - + 84 <= - + 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT DISTINCT - SUM( 59 ) AS col2 FROM tab2 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-1641
SELECT DISTINCT - SUM ( 59 ) AS col2 FROM tab2 AS cor0
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT 92 + + COUNT( * ) + - 77 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-1642
SELECT 92 + + COUNT ( * ) + - 77 FROM tab2
----
18

query IIIIII rowsort
SELECT ALL * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE - 98 BETWEEN 77 AND ( + - ( - - 71 ) ) + + + 14
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + + col1 BETWEEN col0 AND + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1646
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE CAST( - 65 AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1646
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE CAST ( - 65 AS INTEGER ) IS NULL
----
0

query II rowsort
SELECT + - ( + col2 ) AS col0, + col1 * - 2 AS col0 FROM tab1 AS cor0
----
-59
-10
-68
-94
-96
-28

query I rowsort
SELECT ALL + 59 + - 78 + - col0 AS col2 FROM tab2 AS cor0
----
-65
-83
-94

query I rowsort
SELECT + col0 - + 59 * 14 FROM tab0 AS cor0
----
-729
-739
-811

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT ALL - - 70 + - COUNT( * ) FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-1650
SELECT ALL - - 70 + - COUNT ( * ) FROM tab0 AS cor0
----
67

query II rowsort
SELECT + - col2 - - 66, 83 - - col1 * + col2 AS col0 FROM tab2 AS cor0
----
26
3163
43
1256
8
3969

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1654
SELECT DISTINCT - col2 - + col1 - - 20 DIV - - col0 FROM tab2
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-1654
SELECT DISTINCT - col2 - + col1 - - 20 / - - col0 FROM tab2
----
-117
-125
-74

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

query I rowsort
SELECT + col2 + + - col2 * + 42 FROM tab1
----
-2419
-2788
-3936

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT ALL - COUNT( * ) * - 87 AS col2 FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL - COUNT ( * ) * - 87 AS col2 FROM tab2
----
261

onlyif mysql # aggregate syntax: 
query II rowsort label-1658
SELECT + 45 col2, COUNT( * ) AS col0 FROM tab1
----
45
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1658
SELECT + 45 col2, COUNT ( * ) AS col0 FROM tab1
----
45
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 57 * col0 >= + 68
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1660
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col0 * - CAST( - 49 AS DECIMAL ) / + 14 * + col0 / - col0 + - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1660
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col0 * - CAST ( - 49 AS REAL ) / + 14 * + col0 / - col0 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT - MIN( DISTINCT col0 ) * - 15 AS col0 FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-1661
SELECT - MIN ( DISTINCT col0 ) * - 15 AS col0 FROM tab0 AS cor0
----
225

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

query I rowsort
SELECT 91 + + + col2 * + col1 - - 46 FROM tab0 AS cor0 WHERE NOT + col0 <> - 25
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1664
SELECT ALL + col2 * - + col0 + - + 66 + + 20 DIV - col2 * col0 FROM tab2 AS cor0
----
-1124
-2626
-4416

skipif mysql # not compatible
query I rowsort label-1664
SELECT ALL + col2 * - + col0 + - + 66 + + 20 / - col2 * col0 FROM tab2 AS cor0
----
-1124
-2626
-4416

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 NOT IN ( - + 32 + + 15 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1666
SELECT DISTINCT + COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1669
SELECT + 57 AS col1, + ( - CAST( NULL AS SIGNED ) ) - + col2 * + - col2 AS col0 FROM tab0 AS cor0
----
57
NULL
57
NULL
57
NULL

skipif mysql # not compatible
query II rowsort label-1669
SELECT + 57 AS col1, + ( - CAST ( NULL AS INTEGER ) ) - + col2 * + - col2 AS col0 FROM tab0 AS cor0
----
57
NULL
57
NULL
57
NULL

query I rowsort
SELECT ALL 67 * col2 + 43 AS col1 FROM tab2 AS cor0
----
1584
2723
3929

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

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

skipif mysql # not compatible
query I rowsort label-1672
SELECT DISTINCT col1 / - + col1 * 1 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + - col1 * - 53 * - - 63 + - col0 * - col0 FROM tab0 AS cor0
----
12748
270684
77688

query II rowsort
SELECT 70 * col1 * + - col1, - col1 AS col0 FROM tab0 WHERE NULL IS NULL
----
-30870
-21
-459270
-81
-70
-1

query I rowsort
SELECT col0 * - - 12 + + col2 * + 22 FROM tab0
----
1214
1264
3342

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

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

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

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

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

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

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

query I rowsort
SELECT + - col0 + - - col1 * - + 45 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <= - 47 * - ( col0 )
----

query II rowsort
SELECT DISTINCT 71 + + col1 * - + 57 AS col0, col2 * 87 FROM tab1 AS cor0
----
-214
5133
-2608
5916
-727
8352

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

query I rowsort
SELECT ALL col2 * col0 + 75 AS col1 FROM tab2
----
1133
2635
4425

query I rowsort
SELECT 99 + 27 AS col1 FROM tab1 AS cor0
----
126
126
126

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT DISTINCT 63 - + COUNT( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-1687
SELECT DISTINCT 63 - + COUNT ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
60

query I rowsort
SELECT - 31 + + 20 * + 75 FROM tab2 AS cor0
----
1469
1469
1469

query I rowsort
SELECT ALL - 92 + - col1 AS col1 FROM tab0 AS cor0
----
-113
-173
-93

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( + - 3 ) NOT BETWEEN NULL AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT ALL + + MIN( - + col2 ) * + 61 FROM tab1 AS cor0
----
-5856

skipif mysql # not compatible
query I rowsort label-1693
SELECT ALL + + MIN ( - + col2 ) * + 61 FROM tab1 AS cor0
----
-5856

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab2 WHERE + ( - col0 ) - + + 90 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT DISTINCT COUNT( ALL 29 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1696
SELECT DISTINCT COUNT ( ALL 29 ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT col0 * + - col2 * ( + 93 ) * + 53 AS col1 FROM tab1
----
-24132384
-24718935
-30500652

query I rowsort
SELECT + ( + col0 ) * - col0 AS col2 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT ALL - 59 + - col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - - col0 + - 1 col2 FROM tab2 AS cor0
----
-2347
-4929
-5026

query II rowsort
SELECT + col2, ( - + 75 ) FROM tab0
----
10
-75
47
-75
99
-75

query II rowsort
SELECT + 48 AS col0, - 85 + + + 89 FROM tab2
----
48
4
48
4
48
4

query I rowsort
SELECT ALL + 89 * + col1 * + + col2 FROM tab1
----
119616
26255
284444

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1708
SELECT - 41 DIV - - 8 + + - 47 FROM tab0
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-1708
SELECT - 41 / - - 8 + + - 47 FROM tab0
----
-52
-52
-52

query I rowsort
SELECT DISTINCT ( + col1 ) * - + col2 * - 19 AS col1 FROM tab1
----
25536
5605
60724

onlyif mysql # DIV for integer division: 
query I rowsort label-1710
SELECT - col1 DIV col1 * - + col2 * - col1 + - col2 + + col0 + 36 col1 FROM tab0 cor0
----
-3803
-65
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1710
SELECT - col1 / col1 * - + col2 * - col1 + - col2 + + col0 + 36 col1 FROM tab0 cor0
----
-3803
-65
-97

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

query I rowsort
SELECT ALL - 48 + + col0 * + + 65 AS col2 FROM tab0 cor0
----
5607
6257
927

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1714
SELECT DISTINCT - col0 DIV + 8 FROM tab1 AS cor0
----
-10
-11
-6

skipif mysql # not compatible
query I rowsort label-1714
SELECT DISTINCT - col0 / + 8 FROM tab1 AS cor0
----
-10
-11
-6

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

query I rowsort
SELECT col0 * - - 26 + col2 AS col1 FROM tab0 AS cor0
----
2272
2621
437

query I rowsort
SELECT col1 FROM tab1 WHERE + + 72 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1718
SELECT DISTINCT MIN( DISTINCT + 97 ) AS col2, COUNT( ALL 71 ) AS col1 FROM tab2
----
97
3

skipif mysql # not compatible
query II rowsort label-1718
SELECT DISTINCT MIN ( DISTINCT + 97 ) AS col2, COUNT ( ALL 71 ) AS col1 FROM tab2
----
97
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1719
SELECT DISTINCT 94 AS col0, + COUNT( * ) FROM tab1
----
94
3

skipif mysql # not compatible
query II rowsort label-1719
SELECT DISTINCT 94 AS col0, + COUNT ( * ) FROM tab1
----
94
3

query I rowsort
SELECT + 65 * col2 * col1 FROM tab2
----
200200
252590
76245

query II rowsort
SELECT + col2 AS col1, - 96 + + col0 * + 38 + - 45 - + - col1 * - 13 AS col0 FROM tab1
----
59
3024
68
2706
96
1615

query I rowsort
SELECT + col2 * + 13 AS col2 FROM tab2
----
299
520
754

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT - MIN( DISTINCT + col2 ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-1723
SELECT - MIN ( DISTINCT + col2 ) AS col2 FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT DISTINCT - MAX( ALL 6 ) + - 6 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-1724
SELECT DISTINCT - MAX ( ALL 6 ) + - 6 FROM tab2
----
-12

query I rowsort
SELECT DISTINCT col1 + - 24 FROM tab2
----
27
43
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1726
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= - + 9 AND NOT - col1 - col0 * - col1 / - col0 + 39 + CAST( NULL AS SIGNED ) * + ( + + col0 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1726
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= - + 9 AND NOT - col1 - col0 * - col1 / - col0 + 39 + CAST ( NULL AS INTEGER ) * + ( + + col0 ) IS NOT NULL
----

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

query I rowsort
SELECT ALL 39 + col1 AS col1 FROM tab2 AS cor0
----
106
116
90

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

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

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NULL <> col0 + - - 7
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT + + SUM( ALL - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-1733
SELECT + + SUM ( ALL - col2 ) FROM tab0 AS cor0
----
-156

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1734
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - 48, col1 AS col0 FROM tab1
----
-48
14
-48
47
-48
5

query I rowsort
SELECT 79 * - col2 AS col1 FROM tab1
----
-4661
-5372
-7584

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT - MAX( + col2 ) col2 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1737
SELECT - MAX ( + col2 ) col2 FROM tab0
----
-99

query II rowsort
SELECT DISTINCT + - col1 AS col2, col0 FROM tab0 WHERE NULL IS NULL
----
-1
97
-21
87
-81
15

query I rowsort
SELECT + 42 * - 24 FROM tab1
----
-1008
-1008
-1008

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT DISTINCT COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1740
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT + - col1 * - - col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE NOT 78 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT - + MIN( - col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1743
SELECT - + MIN ( - col0 ) AS col1 FROM tab2 AS cor0
----
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 86 * col1 * - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1745
SELECT DISTINCT ( + col1 ) AS col2, + 40 - col1 * col1 DIV 60 AS col1 FROM tab0 AS cor0
----
1
40
21
33
81
-69

skipif mysql # not compatible
query II rowsort label-1745
SELECT DISTINCT ( + col1 ) AS col2, + 40 - col1 * col1 / 60 AS col1 FROM tab0 AS cor0
----
1
40
21
33
81
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1746
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1, tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1747
SELECT col1 DIV 12 + - + col2 DIV + col0 FROM tab0
----
-1
1
3

skipif mysql # not compatible
query I rowsort label-1747
SELECT col1 / 12 + - + col2 / + col0 FROM tab0
----
-1
1
3

query I rowsort
SELECT ALL 80 * col0 * - col2 * + col2 AS col2 FROM tab1
----
-23670800
-33662720
-37601280

query I rowsort
SELECT ALL - col1 * - + col1 AS col0 FROM tab1
----
196
2209
25

query I rowsort
SELECT ALL - col0 + - - col2 + - + ( + - 21 ) FROM tab0 AS cor0
----
-56
23
53

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col1 + - 45 * - col1 + col1 * + col2 IS NULL
----

query I rowsort
SELECT ALL - + col0 + - - 49 FROM tab2 AS cor0 WHERE col1 * - + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 54 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-1754
SELECT ALL col1 * 9 DIV - 83 FROM tab2
----
-5
-7
-8

skipif mysql # not compatible
query I rowsort label-1754
SELECT ALL col1 * 9 / - 83 FROM tab2
----
-5
-7
-8

query II rowsort
SELECT + col0 * + col0 - 74 + - col1, + col0 AS col2 FROM tab1 cor0
----
2513
51
7146
85
8160
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT DISTINCT + - SUM( ALL + + col0 ) FROM tab0 AS cor0 WHERE NOT ( NULL <> NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1756
SELECT DISTINCT + - SUM ( ALL + + col0 ) FROM tab0 AS cor0 WHERE NOT ( NULL <> NULL )
----
NULL

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 + + - 64 * - col1 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1758
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1758
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1759
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - 43 ) FROM tab0 AS cor0
----
-43
-43
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1762
SELECT DISTINCT - 11 * + - COUNT( * ) DIV - 77 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1762
SELECT DISTINCT - 11 * + - COUNT ( * ) / - 77 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1763
SELECT 48 * - 99 AS col0, COUNT( * ) AS col0 FROM tab2
----
-4752
3

skipif mysql # not compatible
query II rowsort label-1763
SELECT 48 * - 99 AS col0, COUNT ( * ) AS col0 FROM tab2
----
-4752
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1764
SELECT CAST( + CAST( col2 AS SIGNED ) AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1764
SELECT CAST ( + CAST ( col2 AS INTEGER ) AS INTEGER ) FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT DISTINCT COUNT( col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1765
SELECT DISTINCT COUNT ( col2 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT - - COUNT( ALL + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1766
SELECT - - COUNT ( ALL + col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT + + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) > + col1 + - - 37 + col0 * - col0
----

query I rowsort
SELECT 70 + + 66 FROM tab2
----
136
136
136

onlyif mysql # DIV for integer division: 
query I rowsort label-1769
SELECT - 81 DIV - - col1 + col2 DIV - col2 FROM tab1
----
-17
-2
-6

skipif mysql # not compatible
query I rowsort label-1769
SELECT - 81 / - - col1 + col2 / - col2 FROM tab1
----
-17
-2
-6

query I rowsort
SELECT col1 + - + 85 FROM tab2
----
-18
-34
-8

query I rowsort
SELECT - ( 11 ) + - 45 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT ALL - + 46 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT ALL 87 * + col1 FROM tab0 cor0
----
1827
7047
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1774
SELECT DISTINCT + 54 * + - col0 * + col1 * - col2 + + + CAST( NULL AS SIGNED ) * - - 48 + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1774
SELECT DISTINCT + 54 * + - col0 * + col1 * - col2 + + + CAST ( NULL AS INTEGER ) * - - 48 + col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT - COUNT( * ) * + - 21 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-1775
SELECT - COUNT ( * ) * + - 21 FROM tab1 AS cor0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-1776
SELECT ALL - col0 DIV ( - + col1 ) + col2 + - 64 + - 38 + col0 AS col0 FROM tab1 AS cor0
----
48
58
59

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL - col0 / ( - + col1 ) + col2 + - 64 + - 38 + col0 AS col0 FROM tab1 AS cor0
----
48
58
59

query I rowsort
SELECT DISTINCT - col1 + + col1 - + col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col1 ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - - col1 + - col0 * + 45 + col1 + col1 AS col1 FROM tab0 AS cor0
----
-3852
-432
-4362

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1780
SELECT - CAST( - + col1 AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1780
SELECT - CAST ( - + col1 AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-1781
SELECT + 56 - COUNT( * ), - 57 AS col0 FROM tab1
----
53
-57

skipif mysql # not compatible
query II rowsort label-1781
SELECT + 56 - COUNT ( * ), - 57 AS col0 FROM tab1
----
53
-57

query I rowsort
SELECT DISTINCT - col0 * - + col1 * + + col1 FROM tab1
----
201019
2125
9996

query I rowsort
SELECT DISTINCT col1 * + - 31 AS col2 FROM tab0
----
-2511
-31
-651

query I rowsort
SELECT DISTINCT col2 * + - ( - + col2 ) FROM tab1
----
3481
4624
9216

query I rowsort
SELECT ALL 10 * + col2 AS col0 FROM tab0
----
100
470
990

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1786
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) AS col0, 1 AS col2 FROM tab0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1786
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) AS col0, 1 AS col2 FROM tab0
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1787
SELECT 95 + 50 AS col0, + 55 * + + 43 + + + COUNT( * ) AS col1 FROM tab1
----
145
2368

skipif mysql # not compatible
query II rowsort label-1787
SELECT 95 + 50 AS col0, + 55 * + + 43 + + + COUNT ( * ) AS col1 FROM tab1
----
145
2368

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 72 ) + col2 + + col0 IS NULL
----

query I rowsort
SELECT + + col0 * - 83 + + ( + 52 ) - + + 45 + + 85 FROM tab2 AS cor0
----
-3726
-5220
-6133

query I rowsort
SELECT ALL + 11 + col2 FROM tab1 AS cor0
----
107
70
79

query I rowsort
SELECT ALL - col2 * + + ( 16 ) * - + col0 FROM tab0 AS cor0
----
11280
13920
153648

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2, col1 col0 FROM tab2 WHERE NOT + 80 + 92 IS NULL
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT - MIN( + col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1794
SELECT - MIN ( + col1 ) FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT MAX( col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-1795
SELECT MAX ( col2 ) AS col0 FROM tab0 AS cor0
----
99

query I rowsort
SELECT + - col2 * 57 AS col0 FROM tab2 AS cor0
----
-1311
-2280
-3306

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT - COUNT( * ) * - - 30 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-1797
SELECT - COUNT ( * ) * - - 30 FROM tab0 AS cor0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1798
SELECT CAST( NULL AS SIGNED ) * + 5 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1798
SELECT CAST ( NULL AS INTEGER ) * + 5 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1799
SELECT col1 DIV + - 46 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1799
SELECT col1 / + - 46 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - col2 * - - ( + 97 ) AS col0 FROM tab1
----
-5723
-6596
-9312

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT SUM( 80 ) AS col0 FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-1801
SELECT SUM ( 80 ) AS col0 FROM tab0
----
240

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1802
SELECT DISTINCT * FROM tab0 WHERE - + ( + col2 ) / CAST( + col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1802
SELECT DISTINCT * FROM tab0 WHERE - + ( + col2 ) / CAST ( + col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 * - - col0 + + + col1 col0 FROM tab0
----
3153
3493
621

query I rowsort
SELECT + 73 * - 84 + + col0 * + + col0 * + 94 FROM tab2 WHERE NOT NULL IS NOT NULL
----
192772
378892
522618

query I rowsort
SELECT ALL + - col2 AS col0 FROM tab0 WHERE NOT + - col2 * + col2 > NULL
----

query I rowsort
SELECT DISTINCT - col1 * + - 5 + + + col1 FROM tab0 AS cor0
----
126
486
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1807
SELECT CAST( NULL AS SIGNED ) * col1 * - ( - 93 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1807
SELECT CAST ( NULL AS INTEGER ) * col1 * - ( - 93 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col0 * - ( - 33 ) + col1 AS col2 FROM tab1 AS cor0
----
-1669
-2800
-2956

query I rowsort
SELECT ( + 94 ) * + 20 FROM tab0 AS cor0
----
1880
1880
1880

query I rowsort
SELECT ALL - 85 * + col1 + - col0 AS col0 FROM tab0 AS cor0
----
-182
-1872
-6900

query I rowsort
SELECT DISTINCT 75 * - + 46 * + col2 + + ( + col2 ) FROM tab2 AS cor0 WHERE NOT NULL >= - col0
----

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 36 + 82 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query IIIIII rowsort
SELECT ALL * FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT + 25 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT DISTINCT - COUNT( * ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1814
SELECT DISTINCT - COUNT ( * ) col2 FROM tab1
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1815
SELECT ALL * FROM tab0 WHERE NOT - col2 * - - CAST( - 60 AS DECIMAL ) + - - col1 + - + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1815
SELECT ALL * FROM tab0 WHERE NOT - col2 * - - CAST ( - 60 AS REAL ) + - - col1 + - + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 28 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
28

query I rowsort
SELECT col2 * - 97 + + col2 * + 81 * col2 FROM tab0
----
174370
7130
784278

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT 92 + - + ( - COUNT( * ) ) FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-1818
SELECT 92 + - + ( - COUNT ( * ) ) FROM tab2 AS cor0
----
95

query I rowsort
SELECT ( col2 ) * + 45 + - col2 FROM tab2 cor0
----
1012
1760
2552

onlyif mysql # aggregate syntax: 
query II rowsort label-1820
SELECT DISTINCT + 46 + - COUNT( * ) AS col2, - COUNT( * ) FROM tab0 AS cor0
----
43
-3

skipif mysql # not compatible
query II rowsort label-1820
SELECT DISTINCT + 46 + - COUNT ( * ) AS col2, - COUNT ( * ) FROM tab0 AS cor0
----
43
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT ALL - COUNT( * ) + - COUNT( * ) + - SUM( - - col2 ) FROM tab1 AS cor0
----
-229

skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL - COUNT ( * ) + - COUNT ( * ) + - SUM ( - - col2 ) FROM tab1 AS cor0
----
-229

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1822
SELECT - COUNT( * ) * + + 2 + - CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1822
SELECT - COUNT ( * ) * + + 2 + - CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT 7 + - - COUNT( * ) FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-1823
SELECT 7 + - - COUNT ( * ) FROM tab2 AS cor0
----
10

query I rowsort
SELECT + - col0 + - + 37 AS col2 FROM tab1 AS cor0
----
-122
-128
-88

query I rowsort
SELECT + col1 + - col0 * 45 FROM tab2 AS cor0
----
-2019
-2803
-3308

query I rowsort
SELECT ALL - col2 + - - col2 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - ( - + 18 ) AS col0 FROM tab0 AS cor0
----
18
18
18

query III rowsort
SELECT * FROM tab0 WHERE col0 / + 7 BETWEEN ( + col1 ) AND ( NULL )
----

query I rowsort
SELECT - col0 * + 40 FROM tab0
----
-3480
-3880
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT DISTINCT - + COUNT( - + 84 ) AS col0 FROM tab0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1830
SELECT DISTINCT - + COUNT ( - + 84 ) AS col0 FROM tab0 WHERE NOT + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT ALL + MIN( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1831
SELECT ALL + MIN ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
51

query II rowsort
SELECT col1, 9 + + - 26 AS col2 FROM tab0 AS cor0
----
1
-17
21
-17
81
-17

query I rowsort
SELECT - 43 FROM tab1 AS cor0 WHERE NOT col2 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 * + 0 - ( 29 ) col2 FROM tab2 cor0
----
-29
-29
-29

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( col1 ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 col2 FROM tab1
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT ALL - MAX( - + 28 ) AS col2 FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-1837
SELECT ALL - MAX ( - + 28 ) AS col2 FROM tab2 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT ALL + MAX( DISTINCT + - col2 ) FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL + MAX ( DISTINCT + - col2 ) FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + - col0 * + + col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT DISTINCT + col2 * + ( - col0 ) FROM tab1 cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT DISTINCT - SUM( ALL - - 68 ) AS col0 FROM tab1 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-1841
SELECT DISTINCT - SUM ( ALL - - 68 ) AS col0 FROM tab1 AS cor0
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT - + MIN( DISTINCT + 95 ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN + + col0 AND col2
----
-95

skipif mysql # not compatible
query I rowsort label-1842
SELECT - + MIN ( DISTINCT + 95 ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN + + col0 AND col2
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1843
SELECT + COUNT( * ) DIV - - ( + 40 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1843
SELECT + COUNT ( * ) / - - ( + 40 ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1844
SELECT DISTINCT + ( - - col0 ) DIV 94 + + 51 * col0 * col2 AS col0 FROM tab2 AS cor0
----
130560
221850
53958

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT + ( - - col0 ) / 94 + + 51 * col0 * col2 AS col0 FROM tab2 AS cor0
----
130560
221850
53958

query II rowsort
SELECT ALL + col0 AS col0, col1 AS col2 FROM tab1
----
51
14
85
5
91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 88 * - + col1 col2 FROM tab2
----
-228888
-395032
-521752

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT ALL - COUNT( * ) FROM tab0 WHERE - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL - COUNT ( * ) FROM tab0 WHERE - col1 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT + COUNT( DISTINCT - - 19 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1848
SELECT + COUNT ( DISTINCT - - 19 ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT + MAX( DISTINCT + - col1 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-1849
SELECT + MAX ( DISTINCT + - col1 ) AS col2 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT ALL - - MAX( col1 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
77

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL - - MAX ( col1 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1851
SELECT DISTINCT + + col0 FROM tab0 AS cor0 WHERE col2 BETWEEN col0 AND - ( ( - CAST( NULL AS SIGNED ) ) ) + + col1
----

skipif mysql # not compatible
query I rowsort label-1851
SELECT DISTINCT + + col0 FROM tab0 AS cor0 WHERE col2 BETWEEN col0 AND - ( ( - CAST ( NULL AS INTEGER ) ) ) + + col1
----

query I rowsort
SELECT + - col1 + + - 37 AS col1 FROM tab2 AS cor0
----
-104
-114
-88

query I rowsort
SELECT DISTINCT + + col0 + - - col1 + + ( + + col0 ) * col1 * - col0 FROM tab1 AS cor0
----
-36035
-36349
-389069

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + col2 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1855
SELECT DISTINCT - 35 + 90 DIV - col2 AS col2 FROM tab1 AS cor0
----
-35
-36

skipif mysql # not compatible
query I rowsort label-1855
SELECT DISTINCT - 35 + 90 / - col2 AS col2 FROM tab1 AS cor0
----
-35
-36

query I rowsort
SELECT ALL - - col2 + + 21 FROM tab0 AS cor0
----
120
31
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1857
SELECT DISTINCT + col2 * + CAST( NULL AS DECIMAL ) / + - 88 - - + col0 + col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1857
SELECT DISTINCT + col2 * + CAST ( NULL AS REAL ) / + - 88 - - + col0 + col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT col2 - col2 + + - 21 AS col1 FROM tab0 cor0
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT ALL COUNT( * ) * - - ( + 94 ) - - COUNT( ALL col0 ) AS col0 FROM tab2 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL COUNT ( * ) * - - ( + 94 ) - - COUNT ( ALL col0 ) AS col0 FROM tab2 AS cor0
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT 31 - + SUM( ALL - col2 ) FROM tab0 AS cor0
----
187

skipif mysql # not compatible
query I rowsort label-1860
SELECT 31 - + SUM ( ALL - col2 ) FROM tab0 AS cor0
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT + 24 - + SUM( - + 84 ) AS col1 FROM tab2 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-1861
SELECT + 24 - + SUM ( - + 84 ) AS col1 FROM tab2 AS cor0
----
276

query I rowsort
SELECT DISTINCT + col1 * + 66 - - 86 + - 18 AS col0 FROM tab1
----
3170
398
992

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 63 = + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE NULL BETWEEN NULL AND + 33
----

query I rowsort
SELECT DISTINCT - + 1 * - 58 + - col0 FROM tab1 AS cor0
----
-27
-33
7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1866
SELECT ALL * FROM tab0 WHERE ( 23 ) <> + col2 * 14 * + ( col2 ) / col0 + + 57 * - + CAST( NULL AS DECIMAL ) * - col2
----

skipif mysql # not compatible
query III rowsort label-1866
SELECT ALL * FROM tab0 WHERE ( 23 ) <> + col2 * 14 * + ( col2 ) / col0 + + 57 * - + CAST ( NULL AS REAL ) * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT DISTINCT - - 50 * COUNT( * ) - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-1867
SELECT DISTINCT - - 50 * COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
153

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > - 99
----

query I rowsort
SELECT - ( - 77 ) AS col1 FROM tab0 AS cor0
----
77
77
77

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 >= - - 84
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 10 * + + col0 AS col2 FROM tab2 AS cor0
----
460
640
750

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT ALL COUNT( - - col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL COUNT ( - - col1 ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT DISTINCT + COUNT( DISTINCT - col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1874
SELECT DISTINCT + COUNT ( DISTINCT - col0 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT DISTINCT - + 1 * + 14 + + 72 + - + SUM( ALL + 71 ) FROM tab2 AS cor0
----
-155

skipif mysql # not compatible
query I rowsort label-1875
SELECT DISTINCT - + 1 * + 14 + + 72 + - + SUM ( ALL + 71 ) FROM tab2 AS cor0
----
-155

query I rowsort
SELECT + col0 * ( + - 52 ) FROM tab1 cor0
----
-2652
-4420
-4732

query I rowsort
SELECT DISTINCT col2 + - + ( - 4 ) FROM tab1 AS cor0
----
100
63
72

query I rowsort
SELECT DISTINCT + + 13 + - - col2 + 11 AS col2 FROM tab0 AS cor0
----
123
34
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT SUM( col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-1879
SELECT SUM ( col2 ) AS col1 FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1880
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + CAST( col0 AS SIGNED ) - + col2 * + - col1 < 36 + col1 * 27 + col2
----
64
77
40
75
67
58

skipif mysql # not compatible
query III rowsort label-1880
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + CAST ( col0 AS INTEGER ) - + col2 * + - col1 < 36 + col1 * 27 + col2
----
64
77
40
75
67
58

query I rowsort
SELECT DISTINCT + 91 - col2 + col1 * - + col0 AS col2 FROM tab1
----
-393
-4254
-719

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT 81 + + 54 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * - 0 AS col1 FROM tab1
----
0

query I rowsort
SELECT + - 49 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - - 60 - + - 5 - + col2 col2 FROM tab0 AS cor0
----
65
65
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col0 * ( - col1 ) col1 FROM tab1 AS cor0
----
420
4230
700

query I rowsort
SELECT ALL 5 + + col0 AS col0 FROM tab2 AS cor0
----
51
69
80

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 + + + col1 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1890
SELECT DISTINCT + 29 DIV ( + col0 ) - - + col1 FROM tab0 AS cor0
----
1
21
82

skipif mysql # not compatible
query I rowsort label-1890
SELECT DISTINCT + 29 / ( + col0 ) - - + col1 FROM tab0 AS cor0
----
1
21
82

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 IS NULL OR NOT + col2 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1893
SELECT DISTINCT * FROM tab2 WHERE + + CAST( + col0 AS SIGNED ) * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1893
SELECT DISTINCT * FROM tab2 WHERE + + CAST ( + col0 AS INTEGER ) * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( col0 ) * + col2 AS col1 FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1895
SELECT - CAST( - 97 AS SIGNED ), col2 AS col1 FROM tab1
----
97
59
97
68
97
96

skipif mysql # not compatible
query II rowsort label-1895
SELECT - CAST ( - 97 AS INTEGER ), col2 AS col1 FROM tab1
----
97
59
97
68
97
96

query II rowsort
SELECT DISTINCT col0 AS col2, 75 AS col0 FROM tab1
----
51
75
85
75
91
75

query I rowsort
SELECT DISTINCT + 74 AS col2 FROM tab2
----
74

query II rowsort
SELECT col0, - 29 - - 25 FROM tab1
----
51
-4
85
-4
91
-4

query II rowsort
SELECT ALL col0, col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query I rowsort
SELECT col1 * - + col0 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1901
SELECT + CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1901
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT 74 IS NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1903
SELECT + 63 AS col1 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
63
63
63

skipif mysql # not compatible
query I rowsort label-1903
SELECT + 63 AS col1 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT ALL COUNT( ( - col1 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL COUNT ( ( - col1 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + + - 26 col1 FROM tab0 AS cor0
----
-16
21
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1906
SELECT + + COUNT( DISTINCT - col0 ) * - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1906
SELECT + + COUNT ( DISTINCT - col0 ) * - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1907
SELECT - col1 AS col1, CAST( NULL AS SIGNED ) FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-1907
SELECT - col1 AS col1, CAST ( NULL AS INTEGER ) FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT 99 * COUNT( * ) AS col1 FROM tab2
----
297

skipif mysql # not compatible
query I rowsort label-1908
SELECT 99 * COUNT ( * ) AS col1 FROM tab2
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT COUNT( - col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1909
SELECT COUNT ( - col1 ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1910
SELECT ALL * FROM tab2 WHERE + - CAST( NULL AS SIGNED ) - + + col0 - - 12 > - 24 - - - 29
----

skipif mysql # not compatible
query III rowsort label-1910
SELECT ALL * FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) - + + col0 - - 12 > - 24 - - - 29
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1911
SELECT ALL 12 + + COUNT( * ) + - + CAST( NULL AS SIGNED ) * - COUNT( * ) * + + 59 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL 12 + + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + + 59 FROM tab1
----
NULL

query I rowsort
SELECT ALL + 3 + + col1 AS col0 FROM tab1
----
17
50
8

query I rowsort
SELECT col0 + + - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1914
SELECT + 43 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1914
SELECT + 43 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1915
SELECT - col2 * + CAST( NULL AS SIGNED ) + - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1915
SELECT - col2 * + CAST ( NULL AS INTEGER ) + - col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * ( col2 * ( col1 ) ) AS col2 FROM tab0 WHERE NOT NULL <> 68 * + 77
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( 67 )
----

query I rowsort
SELECT ( 71 ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( + 42 ) AND col0 * - 58 + col2
----

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE + 86 NOT IN ( 4 / + col2 + + 61 * col2 )
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1921
SELECT CAST( col0 AS SIGNED ) FROM tab0 WHERE NOT NULL > col0 + - 29
----

skipif mysql # not compatible
query I rowsort label-1921
SELECT CAST ( col0 AS INTEGER ) FROM tab0 WHERE NOT NULL > col0 + - 29
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1922
SELECT - ( + 40 ) DIV + col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1922
SELECT - ( + 40 ) / + col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - 53 - 53 AS col2 FROM tab0
----
-106
-106
-106

query I rowsort
SELECT DISTINCT + col1 * + 54 AS col1 FROM tab0
----
1134
4374
54

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) = 0
----

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE NOT ( + col1 ) BETWEEN ( - 19 ) AND + 66
----
-47

query I rowsort
SELECT DISTINCT 88 + 24 AS col1 FROM tab1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT MAX( + col2 ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-1928
SELECT MAX ( + col2 ) AS col2 FROM tab2
----
58

query III rowsort
SELECT * FROM tab0 WHERE NOT + 23 - + 55 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT DISTINCT - ( COUNT( - 26 ) ) + + 25 FROM tab1 WHERE NOT - col0 >= - col2
----
23

skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT - ( COUNT ( - 26 ) ) + + 25 FROM tab1 WHERE NOT - col0 >= - col2
----
23

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 2 / - 18 ) <= + ( ( col2 ) ) / - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( 51 * col1 )
----

query I rowsort
SELECT - col1 FROM tab1 WHERE col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 30 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT - COUNT( * ) * 42 FROM tab2 cor0
----
-126

skipif mysql # not compatible
query I rowsort label-1935
SELECT - COUNT ( * ) * 42 FROM tab2 cor0
----
-126

query I rowsort
SELECT + 71 FROM tab2 AS cor0 WHERE NOT + 61 * col1 IS NULL
----
71
71
71

query I rowsort
SELECT DISTINCT 79 * + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT ALL + ( COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL + ( COUNT ( * ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1939
SELECT COUNT( * ) DIV - ( 96 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1939
SELECT COUNT ( * ) / - ( 96 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 9 * 86 AS col2 FROM tab0
----
-774

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1941
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1941
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT + 57 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT 75 AS col0 FROM tab1 WHERE NOT + 25 + 67 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT ALL + + 5 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-1944
SELECT ALL + + 5 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
2

query I rowsort
SELECT - col0 + - 28 AS col2 FROM tab0 AS cor0
----
-115
-125
-43

query I rowsort
SELECT - col2 + 47 AS col2 FROM tab1 cor0
----
-12
-21
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT + COUNT( * ) + 32 * 76 FROM tab2 cor0
----
2435

skipif mysql # not compatible
query I rowsort label-1947
SELECT + COUNT ( * ) + 32 * 76 FROM tab2 cor0
----
2435

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT MIN( col0 ) col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1948
SELECT MIN ( col0 ) col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1950
SELECT DISTINCT 90 * + + col1 + 16 DIV + col0 AS col2 FROM tab2
----
4590
6030
6930

skipif mysql # not compatible
query I rowsort label-1950
SELECT DISTINCT 90 * + + col1 + 16 / + col0 AS col2 FROM tab2
----
4590
6030
6930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1951
SELECT CAST( + - col2 AS SIGNED ) * + col2 AS col0 FROM tab2
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-1951
SELECT CAST ( + - col2 AS INTEGER ) * + col2 AS col0 FROM tab2
----
-1600
-3364
-529

query III rowsort
SELECT ALL * FROM tab2 WHERE 1 < - col0
----

query I rowsort
SELECT ALL 9 * + 75 AS col0 FROM tab0
----
675
675
675

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT + MIN( ALL + - col1 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-1954
SELECT + MIN ( ALL + - col1 ) AS col2 FROM tab2
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-1955
SELECT - 15 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1955
SELECT - 15 / + col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1956
SELECT ALL - 4 - col0 DIV col0 FROM tab2 AS cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL - 4 - col0 / col0 FROM tab2 AS cor0
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT DISTINCT + ( MAX( ALL + col0 ) ) * - 26 - 48 * - COUNT( * ) col0 FROM tab1 AS cor0
----
-2222

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1957
SELECT DISTINCT + ( MAX ( ALL + col0 ) ) * - 26 - 48 * - COUNT ( * ) col0 FROM tab1 AS cor0
----
-2222

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 29 + 56 ) NOT BETWEEN + col1 AND NULL
----
15
81
47

query I rowsort
SELECT ALL + 46 - - col0 FROM tab2
----
110
121
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT col2 + - + col0 * + + col0 FROM tab0
----
-178
-7559
-9310

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT COUNT( * ) - COUNT( * ) col1 FROM tab2 WHERE ( + col1 ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1962
SELECT COUNT ( * ) - COUNT ( * ) col1 FROM tab2 WHERE ( + col1 ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1963
SELECT DISTINCT col0, 61 DIV - col2 FROM tab2 AS cor0
----
46
-2
64
-1
75
-1

skipif mysql # not compatible
query II rowsort label-1963
SELECT DISTINCT col0, 61 / - col2 FROM tab2 AS cor0
----
46
-2
64
-1
75
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 col2 FROM tab1 AS cor0 WHERE NOT - 23 IS NULL
----
51
85
91

query I rowsort
SELECT + + col1 * + + col0 AS col1 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT - 74 * - col0 FROM tab1 cor0
----
3774
6290
6734

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1967
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) * col0 * + 88 NOT IN ( col0 + + col1 )
----

skipif mysql # not compatible
query III rowsort label-1967
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * col0 * + 88 NOT IN ( col0 + + col1 )
----

query II rowsort
SELECT DISTINCT - 98 AS col0, - col2 FROM tab0 cor0
----
-98
-10
-98
-47
-98
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1969
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( + - 39 AS SIGNED ) * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1969
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( + - 39 AS INTEGER ) * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 * - 80 FROM tab1
----
1120
3760
400

query II rowsort
SELECT col0 * - 87 AS col1, + 92 * 12 * 58 FROM tab1
----
-4437
64032
-7395
64032
-7917
64032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1972
SELECT ALL - col1 / CAST( + 13 + col2 * + col0 AS SIGNED ) FROM tab1 WHERE + + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL - col1 / CAST ( + 13 + col2 * + col0 AS INTEGER ) FROM tab1 WHERE + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1973
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + + col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1973
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + + col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL 46 * - col1 AS col1 FROM tab1
----
-2162
-230
-644

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1975
SELECT CAST( NULL AS DECIMAL ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1975
SELECT CAST ( NULL AS REAL ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - ( - ( - ( - col0 ) ) ) AS col2 FROM tab2 WHERE + 50 * - 78 < ( + 19 / col0 + + col2 )
----
46
64
75

query I rowsort
SELECT - 7 * col0 - - col0 AS col1 FROM tab0 AS cor0
----
-522
-582
-90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1978
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 66 + - CAST( NULL AS DECIMAL ) + - + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1978
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 66 + - CAST ( NULL AS REAL ) + - + col2 )
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 > + col0 * - col2 * ( + col1 ) + col2 * 62
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col2 + + - col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1981
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + ( - ( - CAST( NULL AS SIGNED ) ) ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

skipif mysql # not compatible
query IIIIII rowsort label-1981
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + ( - ( - CAST ( NULL AS INTEGER ) ) ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT - col1 * col2 + + col0 * 40 * col1 * - 32 FROM tab2
----
-3004053
-6310920
-6435886

query I rowsort
SELECT DISTINCT - 51 * - col1 FROM tab2 WHERE ( NULL ) IS NULL
----
2601
3417
3927

query I rowsort
SELECT DISTINCT 29 * + col0 + - col1 AS col0 FROM tab1
----
1465
2460
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT DISTINCT + COUNT( * ) + + 69 AS col2 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT + COUNT ( * ) + + 69 AS col2 FROM tab1 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT - - ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0 WHERE col1 - col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1986
SELECT - - ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0 WHERE col1 - col0 IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab2 AS cor0 WHERE NULL <> + col0 + - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT ALL COUNT( + col1 ) AS col0 FROM tab0 AS cor0 WHERE col0 * - 79 - + - col0 BETWEEN + ( - 31 ) AND + col0
----
0

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL COUNT ( + col1 ) AS col0 FROM tab0 AS cor0 WHERE col0 * - 79 - + - col0 BETWEEN + ( - 31 ) AND + col0
----
0

query I rowsort
SELECT ALL - col1 + - - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT DISTINCT COUNT( * ) + - 75 AS col1 FROM tab0 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-1990
SELECT DISTINCT COUNT ( * ) + - 75 AS col1 FROM tab0 cor0
----
-72

query I rowsort
SELECT DISTINCT - col1 - + + 90 * - 59 FROM tab2 AS cor0 WHERE NULL <> NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( col1 )
----

query II rowsort
SELECT - col1, + col1 AS col2 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT - - MIN( - col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1994
SELECT - - MIN ( - col1 ) AS col2 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT DISTINCT - COUNT( DISTINCT - + col0 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1995
SELECT DISTINCT - COUNT ( DISTINCT - + col0 ) AS col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-1996
SELECT ( + COUNT( * ) ), + 3 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-1996
SELECT ( + COUNT ( * ) ), + 3 FROM tab1
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1997
SELECT 81 DIV + col0 AS col2 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-1997
SELECT 81 / + col0 AS col2 FROM tab0
----
0
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN + - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1998
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN + - col0 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1999
SELECT ( + col1 ) + + CAST( - col1 AS SIGNED ) * - ( - col0 ) * - col1 + 29 DIV - col2 FROM tab2
----
119696
336742
379533

skipif mysql # not compatible
query I rowsort label-1999
SELECT ( + col1 ) + + CAST ( - col1 AS INTEGER ) * - ( - col0 ) * - col1 + 29 / - col2 FROM tab2
----
119696
336742
379533

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 AND ( - ( col0 ) * - + ( col1 ) )
----

query I rowsort
SELECT - - col0 + - 2 + + - col2 AS col2 FROM tab2 AS cor0
----
15
21
22

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + - + col1 * col0 > + 2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2003
SELECT DISTINCT + col1 DIV + + 83 + 10 AS col0 FROM tab2 cor0
----
10

skipif mysql # not compatible
query I rowsort label-2003
SELECT DISTINCT + col1 / + + 83 + 10 AS col0 FROM tab2 cor0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2004
SELECT - - MAX( ALL - 50 ) + - COUNT( * ) + - + CAST( NULL AS SIGNED ) - - 63 FROM tab2 cor0 WHERE col2 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2004
SELECT - - MAX ( ALL - 50 ) + - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) - - 63 FROM tab2 cor0 WHERE col2 < NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2005
SELECT ALL col2 + - + col0 DIV col1 AS col1 FROM tab1 AS cor0
----
42
67
93

skipif mysql # not compatible
query I rowsort label-2005
SELECT ALL col2 + - + col0 / col1 AS col1 FROM tab1 AS cor0
----
42
67
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2006
SELECT + + col1 DIV + col1 + col0 col0 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2006
SELECT + + col1 / + col1 + col0 col0 FROM tab0 AS cor0
----
16
88
98

query I rowsort
SELECT - + 82 + + col1 + - col1 FROM tab0 cor0
----
-82
-82
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-2008
SELECT DISTINCT + 80 - col1 * + - col1 + col1 DIV 19 AS col1 FROM tab1
----
105
2291
276

skipif mysql # not compatible
query I rowsort label-2008
SELECT DISTINCT + 80 - col1 * + - col1 + col1 / 19 AS col1 FROM tab1
----
105
2291
276

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT - + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2009
SELECT - + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT ALL SUM( + col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL SUM ( + col0 ) FROM tab1
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col1 FROM tab2 AS cor0 WHERE ( + - 43 * + 92 + 9 NOT BETWEEN NULL AND + col1 * 11 )
----

query I rowsort
SELECT 48 AS col0 FROM tab1 cor0
----
48
48
48

query I rowsort
SELECT DISTINCT + col2 * + + col1 + + - col1 FROM tab1 AS cor0
----
1330
290
3149

onlyif mysql # DIV for integer division: 
query I rowsort label-2014
SELECT - - col0 DIV - 35 FROM tab1 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-2014
SELECT - - col0 / - 35 FROM tab1 AS cor0
----
-1
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT ALL - COUNT( * ) * - 18 FROM tab1 AS cor0 WHERE NOT NULL >= ( - col0 * - - 51 + - - col1 * col0 * + 14 + col1 + 11 )
----
0

skipif mysql # not compatible
query I rowsort label-2015
SELECT ALL - COUNT ( * ) * - 18 FROM tab1 AS cor0 WHERE NOT NULL >= ( - col0 * - - 51 + - - col1 * col0 * + 14 + col1 + 11 )
----
0

query I rowsort
SELECT ALL + 53 * - + 54 FROM tab0 AS cor0
----
-2862
-2862
-2862

query II rowsort
SELECT col1, 33 FROM tab0
----
1
33
21
33
81
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2018
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 22 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * + 71 FROM tab2
----
1633
2840
4118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2021
SELECT ALL CAST( + col0 AS SIGNED ) AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2021
SELECT ALL CAST ( + col0 AS INTEGER ) AS col1 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT + 25 * + + col1 + - + 0 FROM tab2
----
1275
1675
1925

query I rowsort
SELECT + ( + - ( - - col0 ) ) * ( + col1 ) FROM tab2 AS cor0
----
-2346
-4928
-5025

query II rowsort
SELECT 8, - ( - col0 ) AS col0 FROM tab0 AS cor0
----
8
15
8
87
8
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2025
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT - 23 * + 20 AS col0 FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT + col1 + col0 * + col2 AS col2 FROM tab2 AS cor0
----
1109
2637
4417

onlyif mysql # DIV for integer division: 
query I rowsort label-2028
SELECT ALL - ( col1 ) DIV col1 + col2 AS col1 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-2028
SELECT ALL - ( col1 ) / col1 + col2 AS col1 FROM tab0 AS cor0
----
46
9
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2029
SELECT col1 + - col1 DIV + - col1 col2 FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2029
SELECT col1 + - col1 / + - col1 col2 FROM tab0 AS cor0
----
2
22
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 64 col2 FROM tab0 AS cor0
----
145
65
85

query I rowsort
SELECT - - col1 + - 28 + 60 FROM tab1 AS cor0
----
37
46
79

query I rowsort
SELECT + 10 + 7 FROM tab0 AS cor0
----
17
17
17

query I rowsort
SELECT ALL - + 11 + + 31 FROM tab0 AS cor0
----
20
20
20

query I rowsort
SELECT + - col0 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2035
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2035
SELECT ALL + CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 80 FROM tab0 WHERE NOT col0 IN ( + col2, col2 )
----
-80

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 * + col2 - + col2 + + col0 / - col2 * + - col1 + + - 74 + ( 42 ) + col1 < NULL
----

query I rowsort
SELECT DISTINCT 73 AS col1 FROM tab0 WHERE NOT NULL > ( + + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2039
SELECT col1 DIV - 30 AS col1 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2039
SELECT col1 / - 30 AS col1 FROM tab0
----
-2
0
0

query III rowsort
SELECT * FROM tab0 WHERE - + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT + MIN( col2 ) * MAX( + col2 ) AS col2 FROM tab2
----
1334

skipif mysql # not compatible
query I rowsort label-2041
SELECT + MIN ( col2 ) * MAX ( + col2 ) AS col2 FROM tab2
----
1334

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT + 70 * - COUNT( * ) * + - 28 FROM tab2
----
5880

skipif mysql # not compatible
query I rowsort label-2042
SELECT + 70 * - COUNT ( * ) * + - 28 FROM tab2
----
5880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2043
SELECT + AVG ( ALL + CAST( NULL AS SIGNED ) ) * - - COUNT( * ) * - 3 FROM tab0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2043
SELECT + AVG ( ALL + CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) * - 3 FROM tab0 WHERE NULL >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT ALL ( COUNT( * ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL ( COUNT ( * ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT ALL + 41 + COUNT( * ) AS col0 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL + 41 + COUNT ( * ) AS col0 FROM tab1
----
44

query I rowsort
SELECT DISTINCT + col0 + + - 16 FROM tab1
----
35
69
75

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE col2 + - 82 * + col2 < NULL
----

query I rowsort
SELECT - + col1 * + col1 * + col2 FROM tab2 AS cor0 WHERE col1 + + col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2049
SELECT + CAST( 87 AS SIGNED ) - + + col0 AS col1, + CAST( + 95 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
95
0
95
72
95

skipif mysql # not compatible
query II rowsort label-2049
SELECT + CAST ( 87 AS INTEGER ) - + + col0 AS col1, + CAST ( + 95 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
95
0
95
72
95

query I rowsort
SELECT ALL 56 + - col2 FROM tab2 AS cor0
----
-2
16
33

query I rowsort
SELECT DISTINCT + - col1 + - col1 + - col1 FROM tab1 cor0
----
-141
-15
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2052
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2053
SELECT + COUNT( DISTINCT - col2 ) * - - SUM( col2 ) AS col1, + 89 FROM tab2
----
363
89

skipif mysql # not compatible
query II rowsort label-2053
SELECT + COUNT ( DISTINCT - col2 ) * - - SUM ( col2 ) AS col1, + 89 FROM tab2
----
363
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT DISTINCT + 94 + + COUNT( ALL - ( col1 ) ) FROM tab2 WHERE NOT col2 + - 96 < NULL
----
94

skipif mysql # not compatible
query I rowsort label-2054
SELECT DISTINCT + 94 + + COUNT ( ALL - ( col1 ) ) FROM tab2 WHERE NOT col2 + - 96 < NULL
----
94

query II rowsort
SELECT - 90 AS col1, - col2 AS col0 FROM tab1 AS cor0
----
-90
-59
-90
-68
-90
-96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2056
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( CAST( NULL AS DECIMAL ) * col2 + col1 - + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ), col2 * + col2 )
----

skipif mysql # not compatible
query III rowsort label-2056
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( CAST ( NULL AS REAL ) * col2 + col1 - + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ), col2 * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2057
SELECT DISTINCT + col1 * - 73 FROM tab0 AS cor0 WHERE NOT - 17 + + - CAST( NULL AS SIGNED ) NOT BETWEEN 13 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2057
SELECT DISTINCT + col1 * - 73 FROM tab0 AS cor0 WHERE NOT - 17 + + - CAST ( NULL AS INTEGER ) NOT BETWEEN 13 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT + MIN( ALL - col0 ) col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2058
SELECT + MIN ( ALL - col0 ) col1 FROM tab0 AS cor0
----
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 37 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT DISTINCT SUM( ALL + 62 ) AS col2 FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-2060
SELECT DISTINCT SUM ( ALL + 62 ) AS col2 FROM tab0
----
186

query I rowsort
SELECT ALL - 96 FROM tab2 WHERE NOT NULL NOT BETWEEN + col2 - - - col2 + - - ( ( - col1 ) ) + col1 * - + col2 AND 7
----

query II rowsort
SELECT DISTINCT + 8 + - col2 + + col2 * - - col2 * + - 37 AS col1, - col0 FROM tab1
----
-128848
-85
-171148
-91
-341080
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 col0 FROM tab1
----
-79
-79
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2064
SELECT + CAST( - ( - col1 ) AS SIGNED ) FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2064
SELECT + CAST ( - ( - col1 ) AS INTEGER ) FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2065
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN CAST( NULL AS DECIMAL ) AND + col0
----

skipif mysql # not compatible
query III rowsort label-2065
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS REAL ) AND + col0
----

query I rowsort
SELECT ALL + col0 + 85 AS col1 FROM tab2 AS cor0
----
131
149
160

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 IN ( col0, col0, - + 29 + - + 44 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 IN ( col1 / col1, 40 + - + 23 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + col1 + col2 AS col1 FROM tab2 cor0 WHERE NOT + col2 IS NULL
----
117
125
74

query I rowsort
SELECT col0 * - col0 + - col1 + col0 AS col1 FROM tab0 AS cor0
----
-291
-7503
-9313

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2071
SELECT ALL - CAST( NULL AS SIGNED ) + col0 + col2 + col0 * col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2071
SELECT ALL - CAST ( NULL AS INTEGER ) + col0 + col2 + col0 * col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + + 11 - + - ( - 29 ) FROM tab0 AS cor0
----
-8
29
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT ALL 3 + + + 44 AS col2 FROM tab2 cor0
----
47
47
47

query II rowsort
SELECT + 88, + 61 AS col1 FROM tab0 AS cor0
----
88
61
88
61
88
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 - + ( + 69 ) col1 FROM tab1 AS cor0
----
-116
-74
-83

query II rowsort
SELECT DISTINCT - 1 * col1 AS col2, 80 AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, col1 col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT - 89 - col0 FROM tab0 AS cor0
----
-104
-176
-186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2080
SELECT ALL + CAST( - 27 AS SIGNED ) * col1 col2 FROM tab2
----
-1377
-1809
-2079

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2080
SELECT ALL + CAST ( - 27 AS INTEGER ) * col1 col2 FROM tab2
----
-1377
-1809
-2079

query II rowsort
SELECT DISTINCT col0 - - 18, col1 FROM tab2
----
64
51
82
77
93
67

query I rowsort
SELECT DISTINCT 0 * - col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT ALL - COUNT( * ) - 29 FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-2083
SELECT ALL - COUNT ( * ) - 29 FROM tab1
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-2084
SELECT ALL col0 DIV - col1 AS col1 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL col0 / - col1 AS col1 FROM tab0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT DISTINCT 27 + - + COUNT( * ) * + 76 col0 FROM tab0
----
-201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2085
SELECT DISTINCT 27 + - + COUNT ( * ) * + 76 col0 FROM tab0
----
-201

query I rowsort
SELECT col1 * - + col2 + + - col2 FROM tab1
----
-1440
-3264
-354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2087
SELECT ALL CAST( + MAX( DISTINCT - - col2 ) AS SIGNED ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL CAST ( + MAX ( DISTINCT - - col2 ) AS INTEGER ) FROM tab0
----
99

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE - 0 IS NULL
----

query II rowsort
SELECT 3, + col0 + 9 + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
147
3
74
3
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 48 col0 FROM tab1 AS cor0 WHERE + 80 / - 59 IS NULL
----

query I rowsort
SELECT ALL col2 + - col0 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN ( ( - ( - col0 ) ) ) AND ( + col2 )
----

query I rowsort
SELECT + - 92 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + + col0 * col0 / + + col1 ) >= - col0 * + 42 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col0 AS col2, + col0 AS col1 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query I rowsort
SELECT + - ( + col2 ) * 15 + - - col2 FROM tab2 cor0
----
-322
-560
-812

query I rowsort
SELECT DISTINCT - - 71 AS col1 FROM tab1 AS cor0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2098
SELECT - COUNT( * ) DIV - ( - 72 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2098
SELECT - COUNT ( * ) / - ( - 72 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + 48 * col2 AS col1 FROM tab0 cor0
----
2256
4752
480

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT DISTINCT - - COUNT( * ) col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2100
SELECT DISTINCT - - COUNT ( * ) col2 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT ALL MIN( ALL - col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL MIN ( ALL - col0 ) FROM tab0
----
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 + + - 79 IS NULL AND ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT 51 * + col0 AS col0 FROM tab2
----
2346
3264
3825

query I rowsort
SELECT DISTINCT ( + col0 ) + - col1 + - 39 + - col1 AS col0 FROM tab1
----
-16
-42
36

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE + col1 IN ( 64 + - + 75 * + col2, - col1 )
----

query I rowsort
SELECT + col0 / 66 * + col1 FROM tab1 WHERE NOT ( col1 ) <= NULL
----

query II rowsort
SELECT + col2 AS col2, col2 AS col2 FROM tab0
----
10
10
47
47
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query II rowsort
SELECT DISTINCT col1 + + col0 AS col1, - 67 FROM tab0 AS cor0
----
108
-67
96
-67
98
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT - 20 * - COUNT( * ) FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-2110
SELECT - 20 * - COUNT ( * ) FROM tab1 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT DISTINCT 23 * COUNT( * ) * - + 27 AS col0 FROM tab2
----
-1863

skipif mysql # not compatible
query I rowsort label-2111
SELECT DISTINCT 23 * COUNT ( * ) * - + 27 AS col0 FROM tab2
----
-1863

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2112
SELECT + 80 FROM tab1 WHERE - col2 * - CAST( NULL AS SIGNED ) + 80 <= NULL
----

skipif mysql # not compatible
query I rowsort label-2112
SELECT + 80 FROM tab1 WHERE - col2 * - CAST ( NULL AS INTEGER ) + 80 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 42 + col0 * - + 60 - 65 col1 FROM tab2
----
-2783
-3863
-4523

query II rowsort
SELECT DISTINCT + 73 + + + 6 AS col2, col0 + + + col1 FROM tab0 cor0
----
79
108
79
96
79
98

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 7 ) IS NULL
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 WHERE + col0 < + - 26
----

query II rowsort
SELECT + + 90 + + 40, + col2 FROM tab0 AS cor0
----
130
10
130
47
130
99

query I rowsort
SELECT DISTINCT - col0 + + + col2 AS col0 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT ALL col2 * + 82 FROM tab0 AS cor0
----
3854
8118
820

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2120
SELECT * FROM tab0 WHERE + - 97 NOT BETWEEN NULL AND + - CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2120
SELECT * FROM tab0 WHERE + - 97 NOT BETWEEN NULL AND + - CAST ( - col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT + MIN( DISTINCT + 11 ) * + 15 AS col2 FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-2121
SELECT + MIN ( DISTINCT + 11 ) * + 15 AS col2 FROM tab1
----
165

query I rowsort
SELECT - 29 * - col1 FROM tab1 WHERE - + 38 < col1
----
1363
145
406

query I rowsort
SELECT - col1 + - 40 FROM tab0 WHERE NULL = col2
----

query I rowsort
SELECT - col0 * - 7 AS col1 FROM tab1
----
357
595
637

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 >= NULL
----

query I rowsort
SELECT + col2 * - - col2 AS col1 FROM tab2
----
1600
3364
529

query I rowsort
SELECT DISTINCT + 46 * + 17 AS col1 FROM tab1
----
782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 col0 FROM tab1
----
-38
-38
-38

query I rowsort
SELECT - col1 * - - col0 FROM tab0
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2130
SELECT ALL + 29 DIV 9 AS col1 FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL + 29 / 9 AS col1 FROM tab0 AS cor0
----
3
3
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN NULL AND - - col1
----

query I rowsort
SELECT + 36 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2134
SELECT + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT DISTINCT - 45 * + - 97 AS col2 FROM tab2 cor0
----
4365

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= - col1 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT ALL + COUNT( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL + COUNT ( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT 50 * - 63 + + 18 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT SUM( - + col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-2139
SELECT SUM ( - + col2 ) FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT DISTINCT + MIN( - 49 ) FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-2140
SELECT DISTINCT + MIN ( - 49 ) FROM tab0
----
-49

onlyif mysql # DIV for integer division: 
query II rowsort label-2141
SELECT DISTINCT + col1 + - col0 + - ( col2 ) * - col1 AS col0, 68 DIV + 45 FROM tab1
----
1307
1
215
1
3152
1

skipif mysql # not compatible
query II rowsort label-2141
SELECT DISTINCT + col1 + - col0 + - ( col2 ) * - col1 AS col0, 68 / + 45 FROM tab1
----
1307
1
215
1
3152
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2142
SELECT col1 DIV + - 70 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2142
SELECT col1 / + - 70 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2143
SELECT - CAST( NULL AS SIGNED ) AS col0, col0 + col0 FROM tab1
----
NULL
102
NULL
170
NULL
182

skipif mysql # not compatible
query II rowsort label-2143
SELECT - CAST ( NULL AS INTEGER ) AS col0, col0 + col0 FROM tab1
----
NULL
102
NULL
170
NULL
182

query II rowsort
SELECT ( + ( - + col0 ) ), + col2 FROM tab2
----
-46
23
-64
40
-75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT ALL COUNT( DISTINCT + ( - col1 ) ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2145
SELECT ALL COUNT ( DISTINCT + ( - col1 ) ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

query II rowsort
SELECT + col2 AS col2, 13 * + col0 FROM tab1
----
59
1105
68
1183
96
663

query III rowsort
SELECT * FROM tab1 WHERE - 72 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2148
SELECT - AVG ( - col1 ) + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2148
SELECT - AVG ( - col1 ) + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 32 * - 67 + 84 AS col1 FROM tab2 AS cor0
----
-2060
-2060
-2060

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, 95 + - col2 FROM tab0 AS cor0
----
15
48
87
85
97
-4

query I rowsort
SELECT + col2 + + col2 + col2 FROM tab2
----
120
174
69

query I rowsort
SELECT - 90 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( + + 11 IS NOT NULL )
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT + MIN( - 82 ) AS col0 FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-2154
SELECT + MIN ( - 82 ) AS col0 FROM tab2 AS cor0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT ALL - MAX( ALL 51 ) AS col2 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL - MAX ( ALL 51 ) AS col2 FROM tab0 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2156
SELECT DISTINCT - 95 * + + col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT - 95 * + + col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2157
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-2157
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT ALL + - COUNT( * ) - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL + - COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + - 13 - 60 AS col1 FROM tab1 AS cor0
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT - + SUM( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0 WHERE - col2 BETWEEN + + col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2160
SELECT - + SUM ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0 WHERE - col2 BETWEEN + + col1 AND NULL
----
NULL

query I rowsort
SELECT + 73 + - + col0 AS col1 FROM tab0
----
-14
-24
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2162
SELECT DISTINCT - COUNT( * ) DIV + + 11 * - 80 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2162
SELECT DISTINCT - COUNT ( * ) / + + 11 * - 80 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 / + + col0 IN ( + col2, - ( - col0 ) * - - col2, - + 14 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + 85 * col0 AS col1, - col0 AS col1 FROM tab0
----
1275
-15
7395
-87
8245
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * - ( col0 ) * + col2 + + col1 AS col0 FROM tab1 AS cor0
----
-25070
-290789
-68530

query I rowsort
SELECT ALL + + 95 - - 75 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + 24
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2169
SELECT + 93 DIV + 90 AS col1, 29 AS col0 FROM tab1 AS cor0
----
1
29
1
29
1
29

skipif mysql # not compatible
query II rowsort label-2169
SELECT + 93 / + 90 AS col1, 29 AS col0 FROM tab1 AS cor0
----
1
29
1
29
1
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT ALL + + COUNT( * ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2170
SELECT ALL + + COUNT ( * ) AS col0 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT ALL + SUM( - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL + SUM ( - col2 ) FROM tab1 AS cor0
----
-223

query I rowsort
SELECT DISTINCT col2 * ( + 41 ) FROM tab1 AS cor0
----
2419
2788
3936

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT - + ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2173
SELECT - + ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT 25 * col1 FROM tab2
----
1275
1675
1925

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 * col2 * + ( - ( - 68 ) ) + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT - 31 * + COUNT( * ) FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-2176
SELECT - 31 * + COUNT ( * ) FROM tab1 AS cor0
----
-93

query II rowsort
SELECT ALL col2 + - col2 + + col0 AS col1, - col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > + + ( - col1 )
----

query I rowsort
SELECT + - 78 * + col0 FROM tab0 cor0
----
-1170
-6786
-7566

query I rowsort
SELECT ALL col0 * + - col1 AS col2 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT + ( MAX( ALL - - 42 ) ) * + 87 FROM tab1 AS cor0
----
3654

skipif mysql # not compatible
query I rowsort label-2181
SELECT + ( MAX ( ALL - - 42 ) ) * + 87 FROM tab1 AS cor0
----
3654

onlyif mysql # DIV for integer division: 
query I rowsort label-2182
SELECT DISTINCT + col2 DIV + + 83 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2182
SELECT DISTINCT + col2 / + + 83 FROM tab2 AS cor0
----
0

query II rowsort
SELECT - - 9 * + ( col1 ) AS col2, - col0 * + 12 AS col1 FROM tab1 AS cor0
----
126
-612
423
-1092
45
-1020

query II rowsort
SELECT DISTINCT + col1 + + 48 + + 79, col1 FROM tab0 AS cor0
----
128
1
148
21
208
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2185
SELECT ALL + col2, CAST( NULL AS SIGNED ) + + ( 47 ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-2185
SELECT ALL + col2, CAST ( NULL AS INTEGER ) + + ( 47 ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 74 * - + ( 58 ) + - - 41 - + + col0 = NULL
----

query I rowsort
SELECT col0 + - + 61 AS col1 FROM tab0 AS cor0
----
-46
26
36

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE col2 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT ALL + SUM( col1 ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL + SUM ( col1 ) AS col0 FROM tab0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2190
SELECT ALL - 27 col1 FROM tab0 WHERE NOT col0 * col2 / - col1 <> - CAST( - - col0 AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2190
SELECT ALL - 27 col1 FROM tab0 WHERE NOT col0 * col2 / - col1 <> - CAST ( - - col0 AS INTEGER )
----

query I rowsort
SELECT col2 FROM tab0 WHERE ( 99 ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT - 86 AS col1 FROM tab1
----
-86
-86
-86

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE 28 = 92
----

query I rowsort
SELECT DISTINCT + + 86 + + col0 AS col2 FROM tab2 AS cor0
----
132
150
161

query I rowsort
SELECT - ( - - col0 ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2196
SELECT DISTINCT 82 + - col0 DIV col2 FROM tab2 AS cor0
----
80
81

skipif mysql # not compatible
query I rowsort label-2196
SELECT DISTINCT 82 + - col0 / col2 FROM tab2 AS cor0
----
80
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2197
SELECT ALL + 9 * + CAST( NULL AS SIGNED ) + - 16 AS col0 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL + 9 * + CAST ( NULL AS INTEGER ) + - 16 AS col0 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2198
SELECT - col1 * + + col2 + - 15 * + + ( + CAST( - col0 AS SIGNED ) ) * + col2 AS col1 FROM tab2 AS cor0
----
14697
35320
61364

skipif mysql # not compatible
query I rowsort label-2198
SELECT - col1 * + + col2 + - 15 * + + ( + CAST ( - col0 AS INTEGER ) ) * + col2 AS col1 FROM tab2 AS cor0
----
14697
35320
61364

query I rowsort
SELECT - 26 + - 72 FROM tab1 AS cor0
----
-98
-98
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2200
SELECT DISTINCT - + COUNT( * ) + - CAST( AVG ( - col0 ) AS SIGNED ) FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-2200
SELECT DISTINCT - + COUNT ( * ) + - CAST ( AVG ( - col0 ) AS INTEGER ) FROM tab0 AS cor0
----
63

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + col2 IS NOT NULL
----

query II rowsort
SELECT - + col1 / - col1 * + - col2 AS col1, col2 FROM tab1 WHERE NOT + col2 + - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT - - COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2203
SELECT - - COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2204
SELECT - CAST( + + MAX( - col0 ) AS SIGNED ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2204
SELECT - CAST ( + + MAX ( - col0 ) AS INTEGER ) AS col2 FROM tab2
----
46

onlyif mysql # DIV for integer division: 
query II rowsort label-2205
SELECT - col2, - col0 DIV col0 AS col1 FROM tab1
----
-59
-1
-68
-1
-96
-1

skipif mysql # not compatible
query II rowsort label-2205
SELECT - col2, - col0 / col0 AS col1 FROM tab1
----
-59
-1
-68
-1
-96
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT DISTINCT - - COUNT( * ) * 92 FROM tab2 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-2206
SELECT DISTINCT - - COUNT ( * ) * 92 FROM tab2 AS cor0
----
276

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 75 + - - 43 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2208
SELECT DISTINCT + - col1 * - 24 - ( + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT + - col1 * - 24 - ( + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 * col0 * ( col2 ) FROM tab2
----
-102400
-24334
-252300

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT - 59 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT ALL - 50 + - COUNT( * ) col0 FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2211
SELECT ALL - 50 + - COUNT ( * ) col0 FROM tab0 AS cor0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT ALL - + COUNT( * ) FROM tab0 AS cor0 WHERE col1 * col0 + - 74 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL - + COUNT ( * ) FROM tab0 AS cor0 WHERE col1 * col0 + - 74 IS NULL
----
0

query II rowsort
SELECT + 5 * 73 * - + ( 3 ) * - col1 AS col1, 83 * - - 27 AS col0 FROM tab1 cor0
----
15330
2241
51465
2241
5475
2241

onlyif mysql # DIV for integer division: 
query I rowsort label-2214
SELECT ALL + + 20 DIV col2 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2214
SELECT ALL + + 20 / col2 FROM tab0 AS cor0
----
0
0
2

query II rowsort
SELECT ALL + col1 + - col0 AS col1, + 38 FROM tab0 AS cor0
----
-66
38
-96
38
66
38

query I rowsort
SELECT col1 * + 33 * - col0 AS col2 FROM tab0
----
-3201
-40095
-60291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2217
SELECT ALL - AVG ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL - AVG ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT COUNT( * ) * - ( + - ( MAX( DISTINCT + 39 ) ) ) FROM tab0
----
117

skipif mysql # not compatible
query I rowsort label-2218
SELECT COUNT ( * ) * - ( + - ( MAX ( DISTINCT + 39 ) ) ) FROM tab0
----
117

query II rowsort
SELECT + 27 AS col1, - ( - col0 ) FROM tab2
----
27
46
27
64
27
75

query III rowsort
SELECT * FROM tab2 WHERE + col0 - + - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2221
SELECT 47 DIV + 42 + + ( - 28 ), + 65 AS col2 FROM tab0
----
-27
65
-27
65
-27
65

skipif mysql # not compatible
query II rowsort label-2221
SELECT 47 / + 42 + + ( - 28 ), + 65 AS col2 FROM tab0
----
-27
65
-27
65
-27
65

query I rowsort
SELECT col1 + + - col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2223
SELECT + CAST( NULL AS SIGNED ) * - + col2 + - 90 * - - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2223
SELECT + CAST ( NULL AS INTEGER ) * - + col2 + - 90 * - - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2224
SELECT ALL 41 DIV 93 + - - 10 FROM tab1
----
10
10
10

skipif mysql # not compatible
query I rowsort label-2224
SELECT ALL 41 / 93 + - - 10 FROM tab1
----
10
10
10

query I rowsort
SELECT DISTINCT col1 - + - col0 AS col2 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2226
SELECT ALL 22, CAST( NULL AS SIGNED ) + - col0 - - col0 col1 FROM tab0 AS cor0
----
22
NULL
22
NULL
22
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2226
SELECT ALL 22, CAST ( NULL AS INTEGER ) + - col0 - - col0 col1 FROM tab0 AS cor0
----
22
NULL
22
NULL
22
NULL

query I rowsort
SELECT ALL - col0 - 54 AS col1 FROM tab1 AS cor0
----
-105
-139
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2228
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT - 23 FROM tab2 WHERE NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2230
SELECT - col0 DIV 68 col0 FROM tab0 cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2230
SELECT - col0 / 68 col0 FROM tab0 cor0
----
-1
-1
0

query I rowsort
SELECT ALL + - col2 * + col0 + + col2 FROM tab2 AS cor0
----
-1035
-2520
-4292

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + ( - 99 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT + - ( - + MAX( + col0 ) ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2233
SELECT + - ( - + MAX ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT + MAX( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2234
SELECT + MAX ( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
77

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT - MAX( ALL - col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2236
SELECT - MAX ( ALL - col1 ) AS col0 FROM tab2
----
51

query I rowsort
SELECT - 86 FROM tab2 WHERE NOT + + col1 > NULL
----

query II rowsort
SELECT - col2, 59 * 1 * - + 66 AS col1 FROM tab0
----
-10
-3894
-47
-3894
-99
-3894

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 col1 FROM tab2
----
18
18
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2240
SELECT ALL - - 75 AS col1 FROM tab0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL - - 75 AS col1 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT COUNT( DISTINCT + 81 ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2241
SELECT COUNT ( DISTINCT + 81 ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT - - ( + - COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2242
SELECT - - ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2243
SELECT ALL 33 + + CAST( NULL AS SIGNED ) + - - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2243
SELECT ALL 33 + + CAST ( NULL AS INTEGER ) + - - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE ( NOT + 28 >= + - 56 )
----

query I rowsort
SELECT + ( ( col0 ) ) FROM tab1 cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT DISTINCT - ( COUNT( * ) ) + + - COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT - ( COUNT ( * ) ) + + - COUNT ( * ) FROM tab1 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-2247
SELECT ALL + 13 * + col2 + - 67 + + 10 DIV col2 FROM tab1 AS cor0
----
1181
700
817

skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL + 13 * + col2 + - 67 + + 10 / col2 FROM tab1 AS cor0
----
1181
700
817

query I rowsort
SELECT + col0 + - - ( + 58 ) AS col1 FROM tab2 AS cor0
----
104
122
133

query I rowsort
SELECT DISTINCT + - col0 + - 20 + - 11 * - + col2 FROM tab1 AS cor0
----
544
637
985

query I rowsort
SELECT DISTINCT + + 62 FROM tab0 cor0
----
62

query III rowsort
SELECT * FROM tab1 WHERE NULL < - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2252
SELECT ALL col0 + col0 DIV + col2 AS col0 FROM tab0
----
15
95
97

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL col0 + col0 / + col2 AS col0 FROM tab0
----
15
95
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2253
SELECT + col2 DIV + ( 59 ) AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2253
SELECT + col2 / + ( 59 ) AS col2 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT DISTINCT - SUM( + col0 ) * - 9 AS col1 FROM tab1
----
2043

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT - SUM ( + col0 ) * - 9 AS col1 FROM tab1
----
2043

query I rowsort
SELECT DISTINCT 65 * - 16 AS col0 FROM tab0
----
-1040

query I rowsort
SELECT 40 FROM tab1 WHERE NULL IS NULL
----
40
40
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2257
SELECT DISTINCT col2 * + col2 + + + ( + CAST( - + col2 AS SIGNED ) ) FROM tab2 AS cor0
----
1560
3306
506

skipif mysql # not compatible
query I rowsort label-2257
SELECT DISTINCT col2 * + col2 + + + ( + CAST ( - + col2 AS INTEGER ) ) FROM tab2 AS cor0
----
1560
3306
506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + 2 * + col2 col1 FROM tab1 cor0
----
-123
-183
-206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2259
SELECT 68 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND NOT ( ( NOT - col1 / + ( + + CAST( NULL AS SIGNED ) ) IS NOT NULL ) )
----

skipif mysql # not compatible
query I rowsort label-2259
SELECT 68 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND NOT ( ( NOT - col1 / + ( + + CAST ( NULL AS INTEGER ) ) IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2260
SELECT DISTINCT 71 AS col0, - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
71
-9

skipif mysql # not compatible
query II rowsort label-2260
SELECT DISTINCT 71 AS col0, - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
71
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2261
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2262
SELECT + ( + CAST( - 28 AS SIGNED ) ) FROM tab0, tab1 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

skipif mysql # not compatible
query I rowsort label-2262
SELECT + ( + CAST ( - 28 AS INTEGER ) ) FROM tab0, tab1 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query II rowsort
SELECT col1, + col1 * - 94 FROM tab2
----
51
-4794
67
-6298
77
-7238

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT MAX( - ( col0 ) ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2264
SELECT MAX ( - ( col0 ) ) FROM tab2
----
-46

query II rowsort
SELECT ALL - col1, 43 AS col1 FROM tab1
----
-14
43
-47
43
-5
43

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < - 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT COUNT( + + col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2267
SELECT COUNT ( + + col1 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + 41 FROM tab1 cor0
----
41
41
41

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + + 32 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT DISTINCT + MIN( - col1 ) FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2270
SELECT DISTINCT + MIN ( - col1 ) FROM tab0 cor0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 14 col2 FROM tab2
----
-322
-560
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT + COUNT( * ) col2 FROM tab1 WHERE NOT + 13 = NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2272
SELECT + COUNT ( * ) col2 FROM tab1 WHERE NOT + 13 = NULL
----
0

query I rowsort
SELECT ALL 56 * + col0 FROM tab0
----
4872
5432
840

query II rowsort
SELECT ( - + col0 ), col2 FROM tab2
----
-46
23
-64
40
-75
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2276
SELECT * FROM tab1 WHERE NOT NULL IN ( - col2, 92 * + ( + col1 ), 53 + + CAST( NULL AS SIGNED ) + col2, - col2 )
----

skipif mysql # not compatible
query III rowsort label-2276
SELECT * FROM tab1 WHERE NOT NULL IN ( - col2, 92 * + ( + col1 ), 53 + + CAST ( NULL AS INTEGER ) + col2, - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2277
SELECT DISTINCT 61 DIV ( + + col0 ) + - col2 FROM tab0 AS cor0
----
-10
-43
-99

skipif mysql # not compatible
query I rowsort label-2277
SELECT DISTINCT 61 / ( + + col0 ) + - col2 FROM tab0 AS cor0
----
-10
-43
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-2278
SELECT - + col1 + - col2 DIV + 95 AS col0 FROM tab0 AS cor0
----
-2
-21
-81

skipif mysql # not compatible
query I rowsort label-2278
SELECT - + col1 + - col2 / + 95 AS col0 FROM tab0 AS cor0
----
-2
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2279
SELECT + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT col2 + + - col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT col1 + + ( 27 ) AS col1 FROM tab0
----
108
28
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT ALL MIN( 75 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL MIN ( 75 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col2 + - - col1 FROM tab2
----
117
125
74

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 53 BETWEEN NULL AND ( + 24 ) / col1 * - col1 * col2 - - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT ALL + COUNT( * ) + - COUNT( DISTINCT + + col1 ) col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2285
SELECT ALL + COUNT ( * ) + - COUNT ( DISTINCT + + col1 ) col2 FROM tab2 cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / - + 27 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2287
SELECT ALL - col2 * + + 45 + - CAST( NULL AS DECIMAL ) + - col0 / - ( + - col0 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2287
SELECT ALL - col2 * + + 45 + - CAST ( NULL AS REAL ) + - col0 / - ( + - col0 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT + COUNT( DISTINCT - 17 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2288
SELECT + COUNT ( DISTINCT - 17 ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT DISTINCT - MAX( ALL col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2289
SELECT DISTINCT - MAX ( ALL col1 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT - + ( col2 ) - + col2 * + col1 AS col0 FROM tab0 AS cor0
----
-198
-220
-3854

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT DISTINCT + COUNT( * ) - + MAX( ALL 88 ) AS col0 FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-2291
SELECT DISTINCT + COUNT ( * ) - + MAX ( ALL 88 ) AS col0 FROM tab2
----
-85

query I rowsort
SELECT DISTINCT col2 - + - 12 AS col2 FROM tab1
----
108
71
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2293
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( - CAST( NULL AS SIGNED ) < + 75 * + - 60 + - + 34 + 51 ) )
----

skipif mysql # not compatible
query III rowsort label-2293
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( - CAST ( NULL AS INTEGER ) < + 75 * + - 60 + - + 34 + 51 ) )
----

query I rowsort
SELECT - ( - col0 ) + + - 21 * col2 AS col0 FROM tab0
----
-123
-1982
-972

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT col2 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT - 15 + COUNT( * ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2297
SELECT - 15 + COUNT ( * ) FROM tab0 AS cor0
----
-12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2299
SELECT - CAST( ( - SUM( DISTINCT - - 61 ) ) AS SIGNED ) col0 FROM tab1 AS cor0
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2299
SELECT - CAST ( ( - SUM ( DISTINCT - - 61 ) ) AS INTEGER ) col0 FROM tab1 AS cor0
----
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 84 col2, col2 AS col2 FROM tab1 cor0
----
-84
59
-84
68
-84
96

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2302
SELECT * FROM tab2 WHERE NOT ( + col2 ) BETWEEN + + col2 AND + col2 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2302
SELECT * FROM tab2 WHERE NOT ( + col2 ) BETWEEN + + col2 AND + col2 + + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2303
SELECT 47 * - CAST( - col2 AS SIGNED ) * + + col0 FROM tab0
----
33135
40890
451341

skipif mysql # not compatible
query I rowsort label-2303
SELECT 47 * - CAST ( - col2 AS INTEGER ) * + + col0 FROM tab0
----
33135
40890
451341

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2304
SELECT - ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2304
SELECT - ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * + - 53 AS col2 FROM tab0 AS cor0
----
-1113
-4293
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2306
SELECT DISTINCT + - CAST( + - ( - + SUM( DISTINCT + col2 ) ) AS SIGNED ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2306
SELECT DISTINCT + - CAST ( + - ( - + SUM ( DISTINCT + col2 ) ) AS INTEGER ) FROM tab0 AS cor0
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-2307
SELECT + + col2 DIV + + 7 AS col1 FROM tab0 AS cor0
----
1
14
6

skipif mysql # not compatible
query I rowsort label-2307
SELECT + + col2 / + + 7 AS col1 FROM tab0 AS cor0
----
1
14
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT ( SUM( DISTINCT - 9 ) ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-2308
SELECT ( SUM ( DISTINCT - 9 ) ) AS col0 FROM tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2309
SELECT DISTINCT * FROM tab0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2309
SELECT DISTINCT * FROM tab0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT ALL + COUNT( ALL + + col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL + COUNT ( ALL + + col2 ) AS col0 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2311
SELECT + col2 DIV - 84 col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2311
SELECT + col2 / - 84 col1 FROM tab1
----
-1
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - 49 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 99 IS NOT NULL
----

query I rowsort
SELECT - col0 + + col2 FROM tab0 WHERE NOT - col0 IS NULL
----
-77
2
32

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = - 81 * 4 - + 69 + - 14 + - + 31
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT - SUM( ALL + col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2317
SELECT - SUM ( ALL + col1 ) FROM tab2
----
-195

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE 44 IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT DISTINCT - MIN( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2319
SELECT DISTINCT - MIN ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2320
SELECT DISTINCT - CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) + - COUNT( * ) + 94 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2320
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) + - COUNT ( * ) + 94 FROM tab0 AS cor0
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - + 93 col0 FROM tab2
----
-4278
-5952
-6975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + ( col2 ) col0 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2324
SELECT + col1 + CAST( + + col1 AS SIGNED ) + col0 FROM tab2 AS cor0
----
148
209
218

skipif mysql # not compatible
query I rowsort label-2324
SELECT + col1 + CAST ( + + col1 AS INTEGER ) + col0 FROM tab2 AS cor0
----
148
209
218

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT DISTINCT - MAX( DISTINCT col0 ) + - 27 FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-2325
SELECT DISTINCT - MAX ( DISTINCT col0 ) + - 27 FROM tab2 AS cor0
----
-102

onlyif mysql # DIV for integer division: 
query II rowsort label-2326
SELECT + - 54 AS col1, + col2 DIV - col1 FROM tab0 AS cor0 WHERE + col2 < col1
----
-54
0
-54
0

skipif mysql # not compatible
query II rowsort label-2326
SELECT + - 54 AS col1, + col2 / - col1 FROM tab0 AS cor0 WHERE + col2 < col1
----
-54
0
-54
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) > - 50 / - col0
----
0

skipif mysql # not compatible
query I rowsort label-2327
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) > - 50 / - col0
----
0

query I rowsort
SELECT - 16 + col1 AS col2 FROM tab1 AS cor0
----
-11
-2
31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2329
SELECT * FROM tab1 WHERE NULL BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2329
SELECT * FROM tab1 WHERE NULL BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT DISTINCT col2 * + - ( + + col1 ) AS col0 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2331
SELECT ALL * FROM tab1 WHERE NOT CAST( ( - + col1 ) AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2331
SELECT ALL * FROM tab1 WHERE NOT CAST ( ( - + col1 ) AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col1, col2 FROM tab2
----
-51
23
-67
58
-77
40

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 3 * + - col2 * - + 38 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2334
SELECT col0 DIV - ( + - 95 ) AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2334
SELECT col0 / - ( + - 95 ) AS col0 FROM tab0
----
0
0
1

query I rowsort
SELECT + 31 * 91 FROM tab1
----
2821
2821
2821

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT ALL MAX( DISTINCT 90 ) AS col0 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL MAX ( DISTINCT 90 ) AS col0 FROM tab0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT DISTINCT - SUM( 41 ) FROM tab2
----
-123

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT - SUM ( 41 ) FROM tab2
----
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-2338
SELECT DISTINCT 92 DIV - - col0 + col0 AS col1 FROM tab1
----
52
86
92

skipif mysql # not compatible
query I rowsort label-2338
SELECT DISTINCT 92 / - - col0 + col0 AS col1 FROM tab1
----
52
86
92

query I rowsort
SELECT 74 * + + col0 * - col2 FROM tab0 AS cor0
----
-52170
-64380
-710622

query I rowsort
SELECT ALL + - col0 * - + col2 AS col1 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT DISTINCT 31 * col1 FROM tab0
----
2511
31
651

query II rowsort
SELECT + col0 AS col0, + col2 AS col1 FROM tab2
----
46
23
64
40
75
58

query I rowsort
SELECT ( - + 50 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

onlyif mysql # DIV for integer division: 
query II rowsort label-2344
SELECT ALL - 16 DIV col1, + col0 AS col0 FROM tab1
----
-1
51
-3
85
0
91

skipif mysql # not compatible
query II rowsort label-2344
SELECT ALL - 16 / col1, + col0 AS col0 FROM tab1
----
-1
51
-3
85
0
91

query I rowsort
SELECT + 78 AS col0 FROM tab0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT ALL COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query II rowsort
SELECT DISTINCT 95, col0 * - - col0 AS col0 FROM tab2 AS cor0
----
95
2116
95
4096
95
5625

query II rowsort
SELECT ALL col2, + 4 AS col0 FROM tab2 AS cor0
----
23
4
40
4
58
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 33 col1 FROM tab2 cor0
----
33

onlyif mysql # DIV for integer division: 
query II rowsort label-2350
SELECT - col2 AS col1, + col2 DIV - 92 + - 78 FROM tab1 cor0
----
-59
-78
-68
-78
-96
-79

skipif mysql # not compatible
query II rowsort label-2350
SELECT - col2 AS col1, + col2 / - 92 + - 78 FROM tab1 cor0
----
-59
-78
-68
-78
-96
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT ALL + 41 * - 90 * - SUM( 31 ) col1 FROM tab1 AS cor0
----
343170

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2351
SELECT ALL + 41 * - 90 * - SUM ( 31 ) col1 FROM tab1 AS cor0
----
343170

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * col0 > - + 76
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2353
SELECT ALL + + COUNT( * ) DIV - COUNT( ALL - - col0 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL + + COUNT ( * ) / - COUNT ( ALL - - col0 ) FROM tab2 AS cor0
----
-1

query II rowsort
SELECT - 36 AS col0, - col1 FROM tab1 AS cor0
----
-36
-14
-36
-47
-36
-5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 IN ( - + 21 + - ( + col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col0 AS col0, - 60 + + - 7 AS col2 FROM tab2 cor0
----
-46
-67
-64
-67
-75
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT DISTINCT - - SUM( - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2357
SELECT DISTINCT - - SUM ( - col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT + COUNT( * ) FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2358
SELECT + COUNT ( * ) FROM tab0, tab2 AS cor0
----
9

query I rowsort
SELECT - ( - col1 ) FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2360
SELECT + COUNT( * ) DIV + 94 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2360
SELECT + COUNT ( * ) / + 94 AS col0 FROM tab2
----
0

query II rowsort
SELECT ALL col0 + + col2 AS col1, + col2 FROM tab1
----
144
59
147
96
159
68

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 15 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT - COUNT( ALL + col0 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2363
SELECT - COUNT ( ALL + col0 ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT ALL + col1 * + - col0 + + + col0 * - col0 AS col1 FROM tab1
----
-12558
-3315
-7650

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2365
SELECT + 24 / - CAST( + - 49 AS DECIMAL ) AS col2 FROM tab0 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-2365
SELECT + 24 / - CAST ( + - 49 AS REAL ) AS col2 FROM tab0 WHERE NULL >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 92 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + 65 AND + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT DISTINCT + - ( 45 ) * - + COUNT( * ) + COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT + - ( 45 ) * - + COUNT ( * ) + COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
141

query I rowsort
SELECT - - col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2371
SELECT + - CAST( NULL AS SIGNED ) - - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2371
SELECT + - CAST ( NULL AS INTEGER ) - - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2372
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 66 + + 68 * + col1 / + CAST( NULL AS SIGNED ) * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2372
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 66 + + 68 * + col1 / + CAST ( NULL AS INTEGER ) * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 80 - + col0 FROM tab0 AS cor0
----
-17
-7
65

query I rowsort
SELECT - 82 - - + 76 * + col0 FROM tab0 AS cor0
----
1058
6530
7290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2375
SELECT ALL + + col2 + - + 46 + + + CAST( - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-63
-69
-70

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL + + col2 + - + 46 + + + CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-63
-69
-70

query I rowsort
SELECT ALL col2 - - - col0 AS col1 FROM tab1 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT COUNT( * ) + - 91 FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-2377
SELECT COUNT ( * ) + - 91 FROM tab1
----
-88

query II rowsort
SELECT DISTINCT 67 * - col2 - + col1 - col0 AS col0, - col2 FROM tab1
----
-4043
-59
-4694
-68
-6497
-96

query I rowsort
SELECT DISTINCT col0 - - col0 * + ( - col1 ) AS col1 FROM tab2
----
-2300
-4864
-4950

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT + COUNT( ALL - 33 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2381
SELECT + COUNT ( ALL - 33 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + ( + - 48 ) FROM tab1
----
-48

query I rowsort
SELECT DISTINCT - 21 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT DISTINCT - COUNT( * ) FROM tab2, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2384
SELECT DISTINCT - COUNT ( * ) FROM tab2, tab0 AS cor0
----
-9

query I rowsort
SELECT ( + 26 ) FROM tab2 AS cor0
----
26
26
26

query I rowsort
SELECT 89 FROM tab0 cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( - + col1 ) * + col1 * col0 AS col1 FROM tab0 AS cor0
----
-38367
-97
-98415

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT ALL 5 + - + COUNT( * ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL 5 + - + COUNT ( * ) FROM tab2 AS cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2390
SELECT ALL - col1 DIV ( + col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL - col1 / ( + col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + 85 * - + col1 + - col2 FROM tab1 AS cor0
----
-1286
-4063
-484

onlyif mysql # DIV for integer division: 
query I rowsort label-2393
SELECT ( 10 ) DIV + col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2393
SELECT ( 10 ) / + col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2394
SELECT DISTINCT - - CAST( - 48 AS SIGNED ) + - + col0 AS col2 FROM tab0 AS cor0 WHERE NOT + 45 - - col0 < col2 * + 42 + ( CAST( 88 AS SIGNED ) ) / - 45
----

skipif mysql # not compatible
query I rowsort label-2394
SELECT DISTINCT - - CAST ( - 48 AS INTEGER ) + - + col0 AS col2 FROM tab0 AS cor0 WHERE NOT + 45 - - col0 < col2 * + 42 + ( CAST ( 88 AS INTEGER ) ) / - 45
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 + + + 96 col2 FROM tab0 AS cor0
----
191
191
191

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL ( + 4 ) FROM tab2
----
4
4
4

query II rowsort
SELECT DISTINCT + 42 AS col0, - col2 + - 20 FROM tab1
----
42
-116
42
-79
42
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT DISTINCT MAX( DISTINCT - 42 ) FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-2399
SELECT DISTINCT MAX ( DISTINCT - 42 ) FROM tab1
----
-42

query II rowsort
SELECT col2, col2 * - + 32 FROM tab0
----
10
-320
47
-1504
99
-3168

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT - SUM( - col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2401
SELECT - SUM ( - col2 ) AS col0 FROM tab2 AS cor0
----
121

query I rowsort
SELECT col1 * + col2 + col2 * + ( - ( - 94 ) ) AS col0 FROM tab1
----
10368
5841
9588

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2403
SELECT DISTINCT - 92 * - + CAST( NULL AS DECIMAL ) + col0 AS col2, + col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-2403
SELECT DISTINCT - 92 * - + CAST ( NULL AS REAL ) + col0 AS col2, + col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT ALL 99 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + + ( - + col0 ) FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT ALL - - 98 * + 33 * + ( - 97 ) * 78 + + 80 + + + COUNT( ALL + - 15 ) FROM tab1 AS cor0
----
-24468361

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL - - 98 * + 33 * + ( - 97 ) * 78 + + 80 + + + COUNT ( ALL + - 15 ) FROM tab1 AS cor0
----
-24468361

query I rowsort
SELECT DISTINCT - 40 * - - ( - col2 ) + + col2 AS col0 FROM tab2 AS cor0
----
1640
2378
943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2408
SELECT DISTINCT CAST( + - 51 AS SIGNED ) - + col2 - + col0 AS col1 FROM tab1 AS cor0
----
-195
-198
-210

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT CAST ( + - 51 AS INTEGER ) - + col2 - + col0 AS col1 FROM tab1 AS cor0
----
-195
-198
-210

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT 85 * + + col0 IS NULL
----
46
64
75

query I rowsort
SELECT 7 * + - 76 FROM tab1
----
-532
-532
-532

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 58 col0, - 58 FROM tab2
----
58
-58
58
-58
58
-58

query I rowsort
SELECT DISTINCT ( 3 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT MAX( ALL col0 ) * COUNT( * ) AS col2 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-2413
SELECT MAX ( ALL col0 ) * COUNT ( * ) AS col2 FROM tab1
----
273

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 >= NULL
----

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT NULL <> NULL
----

query II rowsort
SELECT col1, + col0 * col0 AS col1 FROM tab1
----
14
2601
47
8281
5
7225

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

query II rowsort
SELECT + + col0, + 38 FROM tab1 AS cor0
----
51
38
85
38
91
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT MIN( ( + col1 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2419
SELECT MIN ( ( + col1 ) ) FROM tab0
----
1

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + col0 * 1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT ALL + 94 + + COUNT( * ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL + 94 + + COUNT ( * ) FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT DISTINCT + MAX( ALL + 91 ) * + 96 - - 31 * 30 AS col2 FROM tab0
----
9666

skipif mysql # not compatible
query I rowsort label-2422
SELECT DISTINCT + MAX ( ALL + 91 ) * + 96 - - 31 * 30 AS col2 FROM tab0
----
9666

query I rowsort
SELECT DISTINCT + 34 * col0 FROM tab2
----
1564
2176
2550

query I rowsort
SELECT + 86 * + col0 FROM tab2 WHERE - 6 + + col2 NOT BETWEEN ( - col0 ) AND col1 - - 50
----

query I rowsort
SELECT ALL - col0 - 87 * - col2 AS col0 FROM tab2 WHERE NULL NOT IN ( col1 - - col1 )
----

query I rowsort
SELECT ALL + col2 * col0 FROM tab2 WHERE - col2 * col1 NOT IN ( + col0 )
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2427
SELECT ALL - col2 / + col0 AS col1 FROM tab1 WHERE + CAST( NULL AS SIGNED ) / + col0 > ( 69 * + 30 )
----

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL - col2 / + col0 AS col1 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) / + col0 > ( 69 * + 30 )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 / + col0 NOT IN ( - col2 * ( + col2 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * col0 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT ALL 69 + + 8 * COUNT( * ) AS col0 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL 69 + + 8 * COUNT ( * ) AS col0 FROM tab1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT SUM( ALL + 95 ) AS col1 FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-2432
SELECT SUM ( ALL + 95 ) AS col1 FROM tab2
----
285

query I rowsort
SELECT ( - col2 ) AS col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT COUNT( DISTINCT col1 ) - - 17 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-2434
SELECT COUNT ( DISTINCT col1 ) - - 17 FROM tab1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT ALL + MIN( - col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL + MIN ( - col1 ) FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT 71 - COUNT( * ) FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-2436
SELECT 71 - COUNT ( * ) FROM tab0
----
68

query I rowsort
SELECT col2 * 22 AS col0 FROM tab2
----
1276
506
880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2438
SELECT DISTINCT 17 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2438
SELECT DISTINCT 17 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT ALL - COUNT( * ) * + 78 FROM tab0
----
-234

skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL - COUNT ( * ) * + 78 FROM tab0
----
-234

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2440
SELECT * FROM tab1 AS cor0 WHERE CAST( - col1 AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2440
SELECT * FROM tab1 AS cor0 WHERE CAST ( - col1 AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT DISTINCT COUNT( * ) + 83 FROM tab0 cor0
----
86

skipif mysql # not compatible
query I rowsort label-2441
SELECT DISTINCT COUNT ( * ) + 83 FROM tab0 cor0
----
86

query I rowsort
SELECT col0 * 68 AS col0 FROM tab1 AS cor0
----
3468
5780
6188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2443
SELECT ALL * FROM tab1 WHERE NOT NULL > ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2443
SELECT ALL * FROM tab1 WHERE NOT NULL > ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2444
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

skipif mysql # not compatible
query IIIIII rowsort label-2444
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # DIV for integer division: 
query I rowsort label-2445
SELECT ALL + 5 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2445
SELECT ALL + 5 / col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab0 AS cor0 WHERE NULL BETWEEN col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 <= col2 + + col2
----

query I rowsort
SELECT + 61 - 15 FROM tab0 cor0
----
46
46
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2449
SELECT - 66 - COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2449
SELECT - 66 - COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab2 AS cor0 WHERE NOT - col1 * + 64 + - col0 BETWEEN col1 + 24 AND - ( - col2 ) * + col0
----
23
40
58

query I rowsort
SELECT DISTINCT - + 46 AS col0 FROM tab1 AS cor0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-2452
SELECT + + col2 DIV - 82 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2452
SELECT + + col2 / - 82 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - AVG ( ( + 59 ) ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT DISTINCT COUNT( * ) FROM tab2 cor0 WHERE - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2454
SELECT DISTINCT COUNT ( * ) FROM tab2 cor0 WHERE - col1 IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + col0 * + 87
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 col0 FROM tab2
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT SUM( - + col1 ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2457
SELECT SUM ( - + col1 ) AS col1 FROM tab1
----
-66

query III rowsort
SELECT * FROM tab2 WHERE NOT 76 / col1 = NULL
----

query I rowsort
SELECT DISTINCT 15 * col2 * + 33 FROM tab1
----
29205
33660
47520

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2460
SELECT DISTINCT + COUNT( CAST( NULL AS DECIMAL ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2460
SELECT DISTINCT + COUNT ( CAST ( NULL AS REAL ) ) FROM tab2
----
0

query I rowsort
SELECT ALL + 9 * - + 2 FROM tab0
----
-18
-18
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2462
SELECT * FROM tab0 WHERE NOT - 34 > - 17 + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2462
SELECT * FROM tab0 WHERE NOT - 34 > - 17 + CAST ( NULL AS REAL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN col0 AND col2
----

query I rowsort
SELECT 10 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2465
SELECT - + CAST( + + col0 AS SIGNED ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2465
SELECT - + CAST ( + + col0 AS INTEGER ) FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT - SUM( ALL + col1 ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-66

skipif mysql # not compatible
query I rowsort label-2466
SELECT - SUM ( ALL + col1 ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-66

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2468
SELECT + 1 DIV - MAX( DISTINCT + 64 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2468
SELECT + 1 / - MAX ( DISTINCT + 64 ) AS col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 26 col1 FROM tab2 AS cor0
----
26
26
26

query I rowsort
SELECT col2 * + + 49 FROM tab2
----
1127
1960
2842

query I rowsort
SELECT ALL - - 38 * + 98 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e0df2f7f7c1fb62cd6ab7e73eb5ed505

query I rowsort
SELECT + + 37 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query II rowsort
SELECT DISTINCT + col1 AS col0, ( - 6 ) * col1 + + 62 * col0 FROM tab2 AS cor0
----
51
2546
67
4248
77
3506

query II rowsort
SELECT - + col1, - 92 AS col2 FROM tab1 AS cor0
----
-14
-92
-47
-92
-5
-92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + ( - + 72 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col0 * - 86 + ( col0 ) + 29 AS col1 FROM tab2 AS cor0
----
-3881
-5411
-6346

query I rowsort
SELECT ALL + + col0 + 14 AS col0 FROM tab1 AS cor0
----
105
65
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT 13 + COUNT( * ) * + + COUNT( col1 ) FROM tab1 cor0
----
22

skipif mysql # not compatible
query I rowsort label-2478
SELECT 13 + COUNT ( * ) * + + COUNT ( col1 ) FROM tab1 cor0
----
22

query I rowsort
SELECT ALL - 75 + - col0 AS col0 FROM tab1 AS cor0
----
-126
-160
-166

query I rowsort
SELECT DISTINCT col2 * - col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE col1 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col1 BETWEEN ( - col0 ) AND ( NULL )
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2483
SELECT ALL * FROM tab1 WHERE NOT ( + CAST( NULL AS SIGNED ) ) NOT BETWEEN col2 AND + ( col2 ) + col0
----

skipif mysql # not compatible
query III rowsort label-2483
SELECT ALL * FROM tab1 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) NOT BETWEEN col2 AND + ( col2 ) + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2484
SELECT - 82 / col2 AS col1 FROM tab0 WHERE + 7 / + CAST( NULL AS SIGNED ) > + col0
----

skipif mysql # not compatible
query I rowsort label-2484
SELECT - 82 / col2 AS col1 FROM tab0 WHERE + 7 / + CAST ( NULL AS INTEGER ) > + col0
----

query I rowsort
SELECT col1 FROM tab0 WHERE - col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + 82 NOT BETWEEN - 93 AND NULL
----

query I rowsort
SELECT DISTINCT - 0 * + col1 AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT DISTINCT + COUNT( * ) * 47 + COUNT( * ) FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-2488
SELECT DISTINCT + COUNT ( * ) * 47 + COUNT ( * ) FROM tab0
----
144

query I rowsort
SELECT + col0 * - - col1 * - col0 FROM tab0
----
-158949
-18225
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT + ( MAX( + ( + + 25 ) ) ) FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-2490
SELECT + ( MAX ( + ( + + 25 ) ) ) FROM tab1
----
25

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE + col1 BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT + COUNT( * ) FROM tab0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2492
SELECT + COUNT ( * ) FROM tab0 WHERE + col0 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2493
SELECT col1 DIV + col2 AS col0, - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
0
NULL
1
NULL
2
NULL

skipif mysql # not compatible
query II rowsort label-2493
SELECT col1 / + col2 AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
0
NULL
1
NULL
2
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT + SUM( - + ( - col2 ) ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-2494
SELECT + SUM ( - + ( - col2 ) ) AS col0 FROM tab1
----
223

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 + ( - 27 ) ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 49 + + col2 + col1 * + col2 col0 FROM tab2 AS cor0 WHERE NULL > - col2
----

query I rowsort
SELECT ALL ( - 96 ) + + 70 AS col0 FROM tab2 AS cor0
----
-26
-26
-26

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 50 IN ( + + 18 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 <> + col2 / - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE ( + - ( 19 ) ) NOT BETWEEN NULL AND NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2502
SELECT ALL - COUNT( * ) AS col0, COUNT( * ) col2 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2502
SELECT ALL - COUNT ( * ) AS col0, COUNT ( * ) col2 FROM tab2 AS cor0
----
-3
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col0 - col0 * + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 57 col0 FROM tab1 AS cor0
----
-57
-57
-57

query I rowsort
SELECT DISTINCT + ( - 6 ) FROM tab0 cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col1 * - - col0 / - - 6 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2506
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col1 * - - col0 / - - 6 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2507
SELECT 37 * 90 DIV + 3 AS col0 FROM tab2 cor0
----
1110
1110
1110

skipif mysql # not compatible
query I rowsort label-2507
SELECT 37 * 90 / + 3 AS col0 FROM tab2 cor0
----
1110
1110
1110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2508
SELECT ALL + + COUNT( DISTINCT + + col1 ) * COUNT( * ) DIV - CAST( - 64 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2508
SELECT ALL + + COUNT ( DISTINCT + + col1 ) * COUNT ( * ) / - CAST ( - 64 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT DISTINCT SUM( - col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT SUM ( - col0 ) AS col1 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT ALL + 12 * + + COUNT( * ) * + COUNT( * ) FROM tab2 cor0
----
108

skipif mysql # not compatible
query I rowsort label-2510
SELECT ALL + 12 * + + COUNT ( * ) * + COUNT ( * ) FROM tab2 cor0
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2511
SELECT ALL - col0 * + - ( - + CAST( NULL AS SIGNED ) ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL - col0 * + - ( - + CAST ( NULL AS INTEGER ) ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN 50 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - 82, col0 / ( + col1 ) + - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 56 IN ( ( 51 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + 47 * + col2 AS col1 FROM tab1 WHERE NOT + + col0 / + col0 < - 80 * col0
----
2778
3243
4526

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2516
SELECT - CAST( NULL AS SIGNED ) * - - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2516
SELECT - CAST ( NULL AS INTEGER ) * - - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - - ( col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 48 * + col0 FROM tab2
----
2208
3072
3600

onlyif mysql # aggregate syntax: 
query III rowsort label-2519
SELECT COUNT( * ), - 59 AS col2, MIN( - 21 ) col0 FROM tab1
----
3
-59
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2519
SELECT COUNT ( * ), - 59 AS col2, MIN ( - 21 ) col0 FROM tab1
----
3
-59
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT 40 * + COUNT( * ) * - 30 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3600

skipif mysql # not compatible
query I rowsort label-2520
SELECT 40 * + COUNT ( * ) * - 30 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3600

onlyif mysql # DIV for integer division: 
query I rowsort label-2521
SELECT ALL + 99 DIV - col2 col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2521
SELECT ALL + 99 / - col2 col1 FROM tab1
----
-1
-1
-1

query II rowsort
SELECT ALL col2 AS col0, 99 FROM tab0
----
10
99
47
99
99
99

query III rowsort
SELECT * FROM tab0 WHERE NOT - 74 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( + - col0 ) FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ALL + ( - 38 ) FROM tab0, tab2 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT DISTINCT - col2 * + 86 FROM tab0 cor0
----
-4042
-8514
-860

query I rowsort
SELECT DISTINCT + 99 * + + col1 FROM tab2 cor0
----
5049
6633
7623

query I rowsort
SELECT DISTINCT + 98 * - col0 AS col1 FROM tab1 WHERE - + col2 * + col1 + col2 NOT IN ( 8 )
----
-4998
-8330
-8918

query I rowsort
SELECT - col0 + - col0 * - col2 AS col2 FROM tab1
----
4845
4930
6097

onlyif mysql # DIV for integer division: 
query I rowsort label-2530
SELECT - col2 + - + col1 DIV + - col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2530
SELECT - col2 + - + col1 / + - col0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT 42 + + 31 AS col0 FROM tab0
----
73
73
73

query II rowsort
SELECT ALL + col2 + + + col2 AS col2, + col1 FROM tab0 AS cor0
----
198
1
20
21
94
81

query I rowsort
SELECT ALL col1 * ( - 27 ) + 86 AS col2 FROM tab0 AS cor0
----
-2101
-481
59

query I rowsort
SELECT ALL + - col1 + + 14 FROM tab2 cor0
----
-37
-53
-63

query I rowsort
SELECT DISTINCT 23 + - 45 * + col0 AS col2 FROM tab1 AS cor0
----
-2272
-3802
-4072

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT ALL + MAX( DISTINCT ( - ( 61 ) ) ) AS col0 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL + MAX ( DISTINCT ( - ( 61 ) ) ) AS col0 FROM tab0 AS cor0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2537
SELECT ALL * FROM tab0 WHERE NOT col2 / col1 NOT IN ( - col0 + - ( + CAST( col1 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-2537
SELECT ALL * FROM tab0 WHERE NOT col2 / col1 NOT IN ( - col0 + - ( + CAST ( col1 AS INTEGER ) ) )
----

query I rowsort
SELECT + col2 - + + 74 FROM tab2
----
-16
-34
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2539
SELECT ALL CAST( - - 16 AS SIGNED ) FROM tab1
----
16
16
16

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL CAST ( - - 16 AS INTEGER ) FROM tab1
----
16
16
16

query II rowsort
SELECT ALL col2 AS col1, - 85 FROM tab2
----
23
-85
40
-85
58
-85

query III rowsort
SELECT * FROM tab0 WHERE - 36 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2542
SELECT DISTINCT - 40 FROM tab2 WHERE NOT + - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2542
SELECT DISTINCT - 40 FROM tab2 WHERE NOT + - CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT - COUNT( * ) + SUM( - + 86 ) FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-2543
SELECT - COUNT ( * ) + SUM ( - + 86 ) FROM tab0
----
-261

query I rowsort
SELECT ALL 44 FROM tab0 WHERE NOT + + col2 IS NULL
----
44
44
44

query I rowsort
SELECT DISTINCT 52 + 42 + col1 * - + 81 AS col1 FROM tab1 AS cor0
----
-1040
-311
-3713

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT ALL + COUNT( * ) + - 11 AS col0 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-2547
SELECT ALL + COUNT ( * ) + - 11 AS col0 FROM tab1 AS cor0
----
-8

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NULL IN ( col0, - col0 )
----

query I rowsort
SELECT ALL col0 * - + col0 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL >= 61 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-2550
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL >= 61 * - col2
----
0

query I rowsort
SELECT - ( + col2 ) * + 63 FROM tab2 AS cor0
----
-1449
-2520
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT ALL - 34 * 13 * - - MIN( - 1 ) FROM tab1 AS cor0
----
442

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL - 34 * 13 * - - MIN ( - 1 ) FROM tab1 AS cor0
----
442

query I rowsort
SELECT DISTINCT - + col0 * col0 - - 4 + - col1 FROM tab0 AS cor0 WHERE NOT NULL >= col2
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 87 <= - - 7
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT MAX( - + 27 ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-2555
SELECT MAX ( - + 27 ) FROM tab2 AS cor0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2556
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + + CAST( - col1 AS SIGNED ) + + - col0 - col2 + ( col2 ) - + col2 BETWEEN col0 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2556
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + + CAST ( - col1 AS INTEGER ) + + - col0 - col2 + ( col2 ) - + col2 BETWEEN col0 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2557
SELECT DISTINCT * FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2557
SELECT DISTINCT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + - 76 FROM tab1 WHERE NOT + - 33 - 65 BETWEEN + 92 AND - col0
----
-76
-76
-76

query II rowsort
SELECT ALL + col2, col2 * - 99 FROM tab0
----
10
-990
47
-4653
99
-9801

query II rowsort
SELECT ALL 24, col2 * - + col2 AS col2 FROM tab2
----
24
-1600
24
-3364
24
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT ALL - MAX( - 85 ) AS col1 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-2561
SELECT ALL - MAX ( - 85 ) AS col1 FROM tab2
----
85

query I rowsort
SELECT DISTINCT 8 * 97 * 33 FROM tab1
----
25608

onlyif mysql # aggregate syntax: 
query II rowsort label-2563
SELECT DISTINCT - MIN( ALL 68 ), 79 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-68
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2563
SELECT DISTINCT - MIN ( ALL 68 ), 79 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-68
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT ALL - + 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-2564
SELECT ALL - + COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT col1 + + - 80 + - ( + col0 ) * + col0 AS col2 FROM tab2 AS cor0
----
-2145
-4099
-5638

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2566
SELECT DISTINCT - col2, CAST( NULL AS DECIMAL ) + 30 AS col1 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-2566
SELECT DISTINCT - col2, CAST ( NULL AS REAL ) + 30 AS col1 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT DISTINCT + - ( COUNT( * ) ) * - - 50 + - COUNT( * ) FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-2567
SELECT DISTINCT + - ( COUNT ( * ) ) * - - 50 + - COUNT ( * ) FROM tab1 AS cor0
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2568
SELECT DISTINCT - col2 - 61 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2568
SELECT DISTINCT - col2 - 61 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2569
SELECT DISTINCT - - CAST( - - 7 AS SIGNED ) AS col1, - col2 * ( - + col0 ) AS col2 FROM tab0 AS cor0 WHERE col1 BETWEEN + 75 AND ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query II rowsort label-2569
SELECT DISTINCT - - CAST ( - - 7 AS INTEGER ) AS col1, - col2 * ( - + col0 ) AS col2 FROM tab0 AS cor0 WHERE col1 BETWEEN + 75 AND ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - col0 + + + 62 + + 82 - col1 * - - 86 + col0 AS col0 FROM tab1 cor0
----
-1060
-286
-3898

query I rowsort
SELECT - ( 6 ) * col2 AS col2 FROM tab0 AS cor0 WHERE + 59 NOT IN ( + + 49 * - col2 + - 6, 87, - + col1 * + col2 + col2 + - ( 71 ) )
----
-282
-594
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT - + MIN( ALL col2 ) FROM tab0 AS cor0 WHERE NULL >= col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2572
SELECT - + MIN ( ALL col2 ) FROM tab0 AS cor0 WHERE NULL >= col1
----
NULL

query I rowsort
SELECT - + 56 FROM tab2 AS cor0 WHERE - col2 * - + col0 IS NOT NULL
----
-56
-56
-56

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 * - + col2 ) NOT IN ( col0, + col1 * - col2 * + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2575
SELECT + 47 DIV - col0 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-2575
SELECT + 47 / - col0 FROM tab0
----
-3
0
0

query II rowsort
SELECT ALL col1 + - ( + 67 ), - col1 AS col1 FROM tab0
----
-46
-21
-66
-1
14
-81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2578
SELECT ALL ( + + col1 ) * - CAST( NULL AS SIGNED ) - - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2578
SELECT ALL ( + + col1 ) * - CAST ( NULL AS INTEGER ) - - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( col1 ) - - - col2 FROM tab1 cor0
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT DISTINCT MIN( + ( + + col1 ) ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2580
SELECT DISTINCT MIN ( + ( + + col1 ) ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT + + ( - 37 ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-37

query I rowsort
SELECT ALL - 55 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT - 97 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2584
SELECT ALL * FROM tab2 WHERE NOT col2 / + CAST( + col1 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2584
SELECT ALL * FROM tab2 WHERE NOT col2 / + CAST ( + col1 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT COUNT( * ) + - 71 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-62

skipif mysql # not compatible
query I rowsort label-2585
SELECT COUNT ( * ) + - 71 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT - ( COUNT( * ) ) * + - 55 AS col2 FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-2586
SELECT - ( COUNT ( * ) ) * + - 55 AS col2 FROM tab1
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2587
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) * + col1 * + col2 + - - col2 * + - 72 + - col1 + ( + col1 ) * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2587
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * + col1 * + col2 + - - col2 * + - 72 + - col1 + ( + col1 ) * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT + + SUM( DISTINCT col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2588
SELECT + + SUM ( DISTINCT col1 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT + col1 * - - 44 AS col0 FROM tab2 AS cor0
----
2244
2948
3388

query I rowsort
SELECT DISTINCT - col2 * - 31 FROM tab2 AS cor0
----
1240
1798
713

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + ( + + 79 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col2, col0 FROM tab1 cor0
----
59
85
68
91
96
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 * + col2 col0 FROM tab2
----
1196
2080
3016

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT DISTINCT + MAX( DISTINCT - + 88 ) FROM tab2 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT + MAX ( DISTINCT - + 88 ) FROM tab2 WHERE NULL <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT + 51 * - MIN( DISTINCT 67 ) * ( - - 61 ) AS col2 FROM tab0
----
-208437

skipif mysql # not compatible
query I rowsort label-2595
SELECT + 51 * - MIN ( DISTINCT 67 ) * ( - - 61 ) AS col2 FROM tab0
----
-208437

query I rowsort
SELECT DISTINCT col1 + - + col0 AS col0 FROM tab2
----
-8
13
5

query II rowsort
SELECT ( + 28 ), col0 FROM tab1 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT - ( SUM( ALL col0 ) ) - AVG ( + + col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT - ( + 76 ) NOT BETWEEN + ( - 25 ) AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2598
SELECT - ( SUM ( ALL col0 ) ) - AVG ( + + col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT - ( + 76 ) NOT BETWEEN + ( - 25 ) AND col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2599
SELECT + - 47 * + col1 / + 65 + + ( col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT CAST( + 34 AS SIGNED ) - - 93 + + - 8 + col2 + col0 >= col1
----

skipif mysql # not compatible
query I rowsort label-2599
SELECT + - 47 * + col1 / + 65 + + ( col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT CAST ( + 34 AS INTEGER ) - - 93 + + - 8 + col2 + col0 >= col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 15 * col2 ) = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2601
SELECT DISTINCT 27 * + - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2601
SELECT DISTINCT 27 * + - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 86 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
86

query I rowsort
SELECT DISTINCT + 86 - - - 61 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
25

query I rowsort
SELECT DISTINCT + 66 * + col1 FROM tab1
----
3102
330
924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2605
SELECT + CAST( + + 14 AS SIGNED ) col1 FROM tab1 AS cor0
----
14
14
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2605
SELECT + CAST ( + + 14 AS INTEGER ) col1 FROM tab1 AS cor0
----
14
14
14

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 55 IS NULL
----

query I rowsort
SELECT DISTINCT - + col2 + + 65 AS col0 FROM tab2 cor0
----
25
42
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT + SUM( - col1 ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2608
SELECT + SUM ( - col1 ) FROM tab1 cor0
----
-66

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col0 + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 + + - col1 * - 3 * col2 * ( - + col2 ) + + + col2 - - 48 * + col0 FROM tab1 AS cor0
----
-384624
-48135
-647616

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col0 * - 34 / + col0 IS NULL
----

query I rowsort
SELECT col2 - + col2 - + + 79 FROM tab2
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT ALL COUNT( * ) - - 6 + + + MIN( - - 47 ) FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL COUNT ( * ) - - 6 + + + MIN ( - - 47 ) FROM tab2
----
56

onlyif mysql # DIV for integer division: 
query II rowsort label-2614
SELECT DISTINCT + 54 AS col0, col2 DIV + col1 AS col2 FROM tab1
----
54
1
54
11
54
6

skipif mysql # not compatible
query II rowsort label-2614
SELECT DISTINCT + 54 AS col0, col2 / + col1 AS col2 FROM tab1
----
54
1
54
11
54
6

query I rowsort
SELECT - - col1 * - 99 AS col2 FROM tab2 WHERE + col2 NOT BETWEEN NULL AND + 37 * + col0
----

query I rowsort
SELECT ALL col2 * - 94 FROM tab1
----
-5546
-6392
-9024

query II rowsort
SELECT ALL - col0, col1 * + 24 FROM tab1 WHERE NOT ( NULL ) IN ( col1, - col2, col2, - + 75 * - col0 + - + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 * col0 * + 25 IS NULL
----

query II rowsort
SELECT DISTINCT col0 AS col2, col1 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT + MIN( ALL col1 ) AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2620
SELECT + MIN ( ALL col1 ) AS col0 FROM tab0 cor0
----
1

query I rowsort
SELECT + ( + - col0 ) FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2622
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2623
SELECT ALL - - COUNT( DISTINCT col1 ), CAST( AVG ( DISTINCT + + col1 ) AS SIGNED ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
102

skipif mysql # not compatible
query II rowsort label-2623
SELECT ALL - - COUNT ( DISTINCT col1 ), CAST ( AVG ( DISTINCT + + col1 ) AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT SUM( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2624
SELECT SUM ( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * col2 AS col2, + col0 col0 FROM tab0 AS cor0
----
705
15
870
87
9603
97

query I rowsort
SELECT - 42 * + col0 AS col1 FROM tab1 AS cor0
----
-2142
-3570
-3822

query I rowsort
SELECT ( + col2 ) * - - col2 * + 38 * + 66 FROM tab0 cor0
----
24580908
250800
5540172

query I rowsort
SELECT - 52 * - col0 + - col0 AS col2 FROM tab2 AS cor0
----
2346
3264
3825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - 61 ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 84 col1 FROM tab1
----
84
84
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2632
SELECT COUNT( * ) + + 33 DIV + 86 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2632
SELECT COUNT ( * ) + + 33 / + 86 FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT ALL - COUNT( * ) FROM tab1 WHERE ( NOT ( NULL ) IN ( - ( - 5 ), - col1 + - col1 + - col1 + + + col1, + 63 * - 45 - col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2634
SELECT ALL - COUNT ( * ) FROM tab1 WHERE ( NOT ( NULL ) IN ( - ( - 5 ), - col1 + - col1 + - col1 + + + col1, + 63 * - 45 - col1 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT DISTINCT COUNT( - col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2635
SELECT DISTINCT COUNT ( - col0 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2636
SELECT + + COUNT( * ) * - 40 + - 81 col1, - 59 FROM tab0 AS cor0
----
-201
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2636
SELECT + + COUNT ( * ) * - 40 + - 81 col1, - 59 FROM tab0 AS cor0
----
-201
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-2637
SELECT - COUNT( * ), + 16 AS col0 FROM tab0 AS cor0
----
-3
16

skipif mysql # not compatible
query II rowsort label-2637
SELECT - COUNT ( * ), + 16 AS col0 FROM tab0 AS cor0
----
-3
16

query II rowsort
SELECT + - col2, col1 AS col2 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-23
51
-40
77
-58
67

query II rowsort
SELECT - - col1 * col2 * col2 AS col2, - ( col1 ) * + 42 AS col0 FROM tab0 AS cor0
----
178929
-3402
2100
-882
9801
-42

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN col2 + - ( + - 41 ) / + 94 AND + col2 / - col2
----

query I rowsort
SELECT - 49 AS col1 FROM tab2 WHERE - 52 <> + 20
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2642
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT 30 + + COUNT( * ) * - COUNT( * ) * 23 AS col2 FROM tab1 cor0
----
-177

skipif mysql # not compatible
query I rowsort label-2644
SELECT 30 + + COUNT ( * ) * - COUNT ( * ) * 23 AS col2 FROM tab1 cor0
----
-177

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 + + 65 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT - 36 + + - col0 / - 61 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 3 >= + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2648
SELECT DISTINCT + 12 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2648
SELECT DISTINCT + 12 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2649
SELECT ALL ( + CAST( NULL AS SIGNED ) ) - + 18 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) - + 18 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col0 >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) * + col0 - - col0 - + 37 col0 FROM tab2
----
-2337
-4901
-4987

query I rowsort
SELECT + col2 * 13 AS col1 FROM tab0
----
1287
130
611

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - + col1 col1 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT - col0 * - - 86 FROM tab1
----
-4386
-7310
-7826

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + - 63 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2656
SELECT col0 DIV + + 76 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2656
SELECT col0 / + + 76 FROM tab0
----
0
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2657
SELECT + 63 DIV - 61 AS col0, col0 AS col0 FROM tab0 AS cor0 WHERE NOT col1 DIV - - col2 IN ( + + 99 + - col0, + col0, + - col0 + + col2 )
----
-1
15
-1
87
-1
97

skipif mysql # not compatible
query II rowsort label-2657
SELECT + 63 / - 61 AS col0, col0 AS col0 FROM tab0 AS cor0 WHERE NOT col1 / - - col2 IN ( + + 99 + - col0, + col0, + - col0 + + col2 )
----
-1
15
-1
87
-1
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + 2 + 42 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col1, - 85 FROM tab0 AS cor0
----
-10
-85
-47
-85
-99
-85

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT + - 59 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT 85 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2664
SELECT + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT ALL + ( - COUNT( * ) ) FROM tab0, tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2665
SELECT ALL + ( - COUNT ( * ) ) FROM tab0, tab1 cor0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2666
SELECT 9 DIV + COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2666
SELECT 9 / + COUNT ( * ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT ALL + + SUM( - + 0 ) AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL + + SUM ( - + 0 ) AS col1 FROM tab0 cor0
----
0

query I rowsort
SELECT + 62 * - col0 FROM tab1 cor0
----
-3162
-5270
-5642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 col2 FROM tab2 AS cor0 WHERE NOT + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT DISTINCT SUM( DISTINCT + + ( col1 ) ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT SUM ( DISTINCT + + ( col1 ) ) FROM tab0 AS cor0
----
103

query II rowsort
SELECT col2 * col0, + col1 AS col0 FROM tab1
----
4896
14
5015
5
6188
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2672
SELECT ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2672
SELECT ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 42 * + col1 + + col2 FROM tab0
----
141
3449
892

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT DISTINCT + 75 * MIN( ALL + col1 ) + + COUNT( DISTINCT - - ( + col1 ) ) FROM tab2
----
3828

skipif mysql # not compatible
query I rowsort label-2674
SELECT DISTINCT + 75 * MIN ( ALL + col1 ) + + COUNT ( DISTINCT - - ( + col1 ) ) FROM tab2
----
3828

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT DISTINCT - + COUNT( * ) + - COUNT( - col2 ) FROM tab1 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT - + COUNT ( * ) + - COUNT ( - col2 ) FROM tab1 cor0
----
-6

query I rowsort
SELECT - - col2 + - 70 + col1 AS col1 FROM tab0 cor0
----
-39
30
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + - - col0 * col0 + col1 col2 FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # DIV for integer division: 
query I rowsort label-2678
SELECT 61 + + col0 DIV col2 FROM tab1 AS cor0
----
61
62
62

skipif mysql # not compatible
query I rowsort label-2678
SELECT 61 + + col0 / col2 FROM tab1 AS cor0
----
61
62
62

query I rowsort
SELECT + - col1 + + 42 FROM tab2 AS cor0
----
-25
-35
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT COUNT( * ) * + - 81 * MIN( DISTINCT 60 ) AS col2 FROM tab2
----
-14580

skipif mysql # not compatible
query I rowsort label-2680
SELECT COUNT ( * ) * + - 81 * MIN ( DISTINCT 60 ) AS col2 FROM tab2
----
-14580

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 <> NULL AND NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2682
SELECT + col2 DIV - col0 - col1 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2682
SELECT + col2 / - col0 - col1 FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + col2 + - 43 FROM tab1 AS cor0
----
16
25
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT - MAX( - 28 ) - - - SUM( - - 55 ) - + + 62 FROM tab2 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2684
SELECT - MAX ( - 28 ) - - - SUM ( - - 55 ) - + + 62 FROM tab2 AS cor0
----
-199

query I rowsort
SELECT DISTINCT + 75 - - col0 AS col0 FROM tab2 AS cor0
----
121
139
150

query I rowsort
SELECT ALL col1 * - 97 AS col1 FROM tab2 AS cor0
----
-4947
-6499
-7469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2687
SELECT DISTINCT + 87 FROM tab1 WHERE - CAST( NULL AS SIGNED ) * + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2687
SELECT DISTINCT + 87 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) * + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * - col2 * - 48 FROM tab0
----
106032
470448
4800

query I rowsort
SELECT ALL + - col2 FROM tab0 WHERE NOT + - col0 IS NULL
----
-10
-47
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + + 51 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT + COUNT( + col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2691
SELECT + COUNT ( + col0 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT - - COUNT( * ) * + MIN( DISTINCT col1 ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-2692
SELECT - - COUNT ( * ) * + MIN ( DISTINCT col1 ) FROM tab2 AS cor0
----
153

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2694
SELECT DISTINCT - - CAST( 66 AS SIGNED ) * - + col0 AS col2 FROM tab1 AS cor0
----
-3366
-5610
-6006

skipif mysql # not compatible
query I rowsort label-2694
SELECT DISTINCT - - CAST ( 66 AS INTEGER ) * - + col0 AS col2 FROM tab1 AS cor0
----
-3366
-5610
-6006

query I rowsort
SELECT DISTINCT col1 * - 89 + - 44 AS col0 FROM tab0 AS cor0
----
-133
-1913
-7253

query I rowsort
SELECT - 83 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

onlyif mysql # DIV for integer division: 
query I rowsort label-2697
SELECT DISTINCT - col2 DIV + ( - - col0 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2697
SELECT DISTINCT - col2 / + ( - - col0 ) AS col2 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 - + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 3 + + + 1 FROM tab2
----
4
4
4

query I rowsort
SELECT DISTINCT - - 62 AS col0 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT + ( + col1 ) - 37 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2702
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) DIV - COUNT( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) / - COUNT ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + - 40 * + 82 FROM tab2 cor0
----
-3280
-3280
-3280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 8 col2 FROM tab0 AS cor0
----
8
8
8

query I rowsort
SELECT DISTINCT 3 + 69 FROM tab1 AS cor0
----
72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2706
SELECT DISTINCT + + col1 + + CAST( NULL AS DECIMAL ) / - col0 * + + col1 + + 18 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2706
SELECT DISTINCT + + col1 + + CAST ( NULL AS REAL ) / - col0 * + + col1 + + 18 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col1 + 32 FROM tab1 AS cor0
----
37
46
79

query I rowsort
SELECT - - 86 + + 50 + - col2 AS col1 FROM tab0 AS cor0
----
126
37
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT - + SUM( - col2 ) + + - MIN( DISTINCT - - col2 ) FROM tab2 cor0
----
98

skipif mysql # not compatible
query I rowsort label-2709
SELECT - + SUM ( - col2 ) + + - MIN ( DISTINCT - - col2 ) FROM tab2 cor0
----
98

query III rowsort
SELECT * FROM tab0 WHERE NOT + 41 IS NULL OR + - col1 > col2 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col1 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 62 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 28 + + col1 AS col2 FROM tab1
----
-14
-23
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 4 col0 FROM tab1 WHERE NOT col0 >= - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 col2 FROM tab1
----
-1

query II rowsort
SELECT col0 AS col0, + col0 + + col2 + - + 80 FROM tab1
----
51
67
85
64
91
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2717
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
3

query II rowsort
SELECT + col0, - 35 AS col2 FROM tab2 cor0 WHERE ( NULL ) > + 80 * col0 / + 37
----

query II rowsort
SELECT col0, col2 AS col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query I rowsort
SELECT col2 - - 49 * + + col1 AS col2 FROM tab2 AS cor0
----
2522
3341
3813

query I rowsort
SELECT DISTINCT + 18 + + - col1 AS col2 FROM tab0 AS cor0
----
-3
-63
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT ALL - - COUNT( * ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2722
SELECT ALL - - COUNT ( * ) FROM tab1 cor0
----
3

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT 96 + + + 43 AS col0, - 12 AS col2 FROM tab0
----
139
-12
139
-12
139
-12

query III rowsort
SELECT * FROM tab2 WHERE ( ( NULL ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT COUNT( ALL - - col0 ) * ( MAX( ALL + col1 ) ) col1 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2726
SELECT COUNT ( ALL - - col0 ) * ( MAX ( ALL + col1 ) ) col1 FROM tab1 AS cor0
----
141

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT DISTINCT - col2 * ( + col0 ), col1 FROM tab2 AS cor0
----
-1058
51
-2560
77
-4350
67

query I rowsort
SELECT DISTINCT + + col0 * col0 * - - col0 FROM tab1 AS cor0
----
132651
614125
753571

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2730
SELECT DISTINCT - ( + - col2 ) * + 70 AS col1, 12 + + col0 - - + col0 + + CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab0 AS cor0
----
3290
NULL
6930
NULL
700
NULL

skipif mysql # not compatible
query II rowsort label-2730
SELECT DISTINCT - ( + - col2 ) * + 70 AS col1, 12 + + col0 - - + col0 + + CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab0 AS cor0
----
3290
NULL
6930
NULL
700
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT + SUM( 52 ) AS col1 FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-2731
SELECT + SUM ( 52 ) AS col1 FROM tab1
----
156

query II rowsort
SELECT col1, + col2 AS col1 FROM tab2
----
51
23
67
58
77
40

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 89 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 48, ( + col2 ) AS col1 FROM tab1
----
-48
59
-48
68
-48
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT + MAX( ALL - 63 ) FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-2735
SELECT + MAX ( ALL - 63 ) FROM tab2
----
-63

query I rowsort
SELECT col2 * - - 9 AS col0 FROM tab1
----
531
612
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 col0 FROM tab1
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT - 93 * - COUNT( * ) FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-2738
SELECT - 93 * - COUNT ( * ) FROM tab0
----
279

onlyif mysql # aggregate syntax: 
query II rowsort label-2739
SELECT DISTINCT 49 AS col2, COUNT( * ) FROM tab2
----
49
3

skipif mysql # not compatible
query II rowsort label-2739
SELECT DISTINCT 49 AS col2, COUNT ( * ) FROM tab2
----
49
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT ALL + ( - MAX( DISTINCT - col0 ) ) * - - 68 col0 FROM tab1
----
3468

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2740
SELECT ALL + ( - MAX ( DISTINCT - col0 ) ) * - - 68 col0 FROM tab1
----
3468

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2742
SELECT DISTINCT CAST( + - ( + + col0 ) AS SIGNED ) DIV + + col0 AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2742
SELECT DISTINCT CAST ( + - ( + + col0 ) AS INTEGER ) / + + col0 AS col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2744
SELECT - col1 + CAST( NULL AS SIGNED ) - CAST( ( - - col0 ) AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2744
SELECT - col1 + CAST ( NULL AS INTEGER ) - CAST ( ( - - col0 ) AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2745
SELECT ALL + col2 * CAST( - col2 AS SIGNED ) * + - col0 + + - col1 FROM tab0
----
33054
8679
950696

skipif mysql # not compatible
query I rowsort label-2745
SELECT ALL + col2 * CAST ( - col2 AS INTEGER ) * + - col0 + + - col1 FROM tab0
----
33054
8679
950696

query I rowsort
SELECT + col2 * + 88 + col0 + + col1 FROM tab2 AS cor0 WHERE - 61 * - col1 > - - col0
----
2121
3661
5246

onlyif mysql # DIV for integer division: 
query I rowsort label-2747
SELECT DISTINCT - col2 + + col0 DIV col0 FROM tab2 AS cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-2747
SELECT DISTINCT - col2 + + col0 / col0 FROM tab2 AS cor0
----
-22
-39
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2748
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE ( - - CAST( + ( ( 83 ) ) AS SIGNED ) ) + + - col2 * + 73 * - col1 + + col0 IS NOT NULL
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2748
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE ( - - CAST ( + ( ( 83 ) ) AS INTEGER ) ) + + - col2 * + 73 * - col1 + + col0 IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2749
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - 67 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2749
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - 67 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 16 <> + - col1
----

query I rowsort
SELECT - ( - - 84 ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-84
-84
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2752
SELECT + 56 * - - CAST( NULL AS SIGNED ) / + + ( col0 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2752
SELECT + 56 * - - CAST ( NULL AS INTEGER ) / + + ( col0 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2753
SELECT DISTINCT + COUNT( * ) DIV + - COUNT( * ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT + COUNT ( * ) / + - COUNT ( * ) AS col2 FROM tab1
----
-1

query III rowsort
SELECT * FROM tab0 WHERE ( ( col0 ) NOT BETWEEN - 54 AND 85 + + 80 )
----

query I rowsort
SELECT DISTINCT - col1 + + - 62 AS col0 FROM tab1
----
-109
-67
-76

query III rowsort
SELECT * FROM tab0 WHERE NULL <= col2
----

query I rowsort
SELECT col0 + 92 FROM tab2
----
138
156
167

onlyif mysql # DIV for integer division: 
query I rowsort label-2758
SELECT ALL - + col1 * - 10 + - 61 DIV col0 col0 FROM tab0 AS cor0
----
10
210
806

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2758
SELECT ALL - + col1 * - 10 + - 61 / col0 col0 FROM tab0 AS cor0
----
10
210
806

query I rowsort
SELECT DISTINCT - - col1 - + - ( col0 ) + + col0 AS col2 FROM tab2 AS cor0
----
143
205
217

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2760
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) = - 97
----

skipif mysql # not compatible
query III rowsort label-2760
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) = - 97
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2761
SELECT * FROM tab2 cor0 WHERE col1 IN ( 40, col2, - CAST( NULL AS SIGNED ), - 36 * + - col1 / + + ( + col1 ) / col2 + + ( + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-2761
SELECT * FROM tab2 cor0 WHERE col1 IN ( 40, col2, - CAST ( NULL AS INTEGER ), - 36 * + - col1 / + + ( + col1 ) / col2 + + ( + CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT DISTINCT + ( 61 ) FROM tab1
----
61

query II rowsort
SELECT ALL + 61 AS col2, 30 FROM tab1 cor0
----
61
30
61
30
61
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2764
SELECT - 78 AS col1, CAST( CAST( + 4 AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-78
4
-78
4
-78
4

skipif mysql # not compatible
query II rowsort label-2764
SELECT - 78 AS col1, CAST ( CAST ( + 4 AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-78
4
-78
4
-78
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 7, - 4 * - 47 col0 FROM tab2 AS cor0
----
-7
188
-7
188
-7
188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2766
SELECT DISTINCT + + col1 * - CAST( + + col1 AS SIGNED ) * - 72 * 75 + col2 + - ( 66 ) + + col2 * + 85 AS col2 FROM tab1 AS cor0
----
1066590
11934382
140008

skipif mysql # not compatible
query I rowsort label-2766
SELECT DISTINCT + + col1 * - CAST ( + + col1 AS INTEGER ) * - 72 * 75 + col2 + - ( 66 ) + + col2 * + 85 AS col2 FROM tab1 AS cor0
----
1066590
11934382
140008

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT + col1 * col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2768
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) - + col0 < NULL
----

skipif mysql # not compatible
query III rowsort label-2768
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) - + col0 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2769
SELECT ALL 56 AS col2, 17 DIV + 4 + + COUNT( * ) FROM tab0 AS cor0
----
56
7

skipif mysql # not compatible
query II rowsort label-2769
SELECT ALL 56 AS col2, 17 / + 4 + + COUNT ( * ) FROM tab0 AS cor0
----
56
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2770
SELECT - 99 AS col2, CAST( - + col0 AS SIGNED ) col0 FROM tab1 AS cor0
----
-99
-51
-99
-85
-99
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2770
SELECT - 99 AS col2, CAST ( - + col0 AS INTEGER ) col0 FROM tab1 AS cor0
----
-99
-51
-99
-85
-99
-91

query II rowsort
SELECT + - col1 AS col0, - col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 11 / - col2 * col2 - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( + + col2 ) * col0 AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT DISTINCT - + SUM( 68 ) FROM tab2 cor0 WHERE + 51 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2774
SELECT DISTINCT - + SUM ( 68 ) FROM tab2 cor0 WHERE + 51 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2776
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2776
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * CAST ( CAST ( NULL AS INTEGER ) AS REAL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2777
SELECT DISTINCT * FROM tab0 WHERE - col1 < CAST( + col2 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2777
SELECT DISTINCT * FROM tab0 WHERE - col1 < CAST ( + col2 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 21 AS col0 FROM tab2
----
-21
-21
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2779
SELECT CAST( NULL AS SIGNED ) * - 12 * - + 72 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2779
SELECT CAST ( NULL AS INTEGER ) * - 12 * - + 72 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2780
SELECT + - col1 DIV + col2 + + 48 col0 FROM tab0 AS cor0
----
46
47
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2780
SELECT + - col1 / + col2 + + 48 col0 FROM tab0 AS cor0
----
46
47
48

query II rowsort
SELECT + col2 AS col1, 17 + + 59 * + col2 * + col0 AS col1 FROM tab1
----
59
295902
68
365109
96
288881

query III rowsort
SELECT * FROM tab0 WHERE + col1 / - 11 BETWEEN NULL AND - 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT + COUNT( DISTINCT + 56 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2783
SELECT + COUNT ( DISTINCT + 56 ) AS col2 FROM tab0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2784
SELECT ALL - CAST( NULL AS SIGNED ) * + COUNT( * ) + + - 98 col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2784
SELECT ALL - CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + - 98 col0 FROM tab0
----
NULL

query I rowsort
SELECT - col1 + + 47 AS col2 FROM tab2 AS cor0
----
-20
-30
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2786
SELECT - - CAST( NULL AS SIGNED ), - col0 * - ( + 90 ) + - 45 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-2786
SELECT - - CAST ( NULL AS INTEGER ), - col0 * - ( + 90 ) + - 45 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT - 71 + - MAX( + col1 ) AS col1 FROM tab0 AS cor0
----
-152

skipif mysql # not compatible
query I rowsort label-2787
SELECT - 71 + - MAX ( + col1 ) AS col1 FROM tab0 AS cor0
----
-152

query I rowsort
SELECT ALL + - col1 + 1 + - col0 * + 36 * + ( - - col2 ) FROM tab2 AS cor0
----
-156666
-38138
-92236

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2789
SELECT ALL + + col0 AS col1, CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-2789
SELECT ALL + + col0 AS col1, CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 95 NOT BETWEEN NULL AND 85 * - col0 + - - 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT ALL - MAX( 35 ) FROM tab0 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL - MAX ( 35 ) FROM tab0 AS cor0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2792
SELECT DISTINCT + 59 + SUM( ALL + col1 ) FROM tab2 WHERE NOT + 22 - + col1 * - + CAST( NULL AS SIGNED ) + - 11 * col0 - + - CAST( col1 AS SIGNED ) <> - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-2792
SELECT DISTINCT + 59 + SUM ( ALL + col1 ) FROM tab2 WHERE NOT + 22 - + col1 * - + CAST ( NULL AS INTEGER ) + - 11 * col0 - + - CAST ( col1 AS INTEGER ) <> - 21
----
NULL

query II rowsort
SELECT ALL - col0 * + col0, + col1 AS col1 FROM tab2
----
-2116
51
-4096
77
-5625
67

query I rowsort
SELECT + col0 * - col1 * - col1 FROM tab0
----
38367
97
98415

query III rowsort
SELECT * FROM tab0 WHERE + - col1 NOT BETWEEN - col0 AND 29
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2796
SELECT DISTINCT - col2 + - + 61 + - + CAST( - col2 AS SIGNED ) + - col2 * - - col1 FROM tab2
----
-1234
-3141
-3947

skipif mysql # not compatible
query I rowsort label-2796
SELECT DISTINCT - col2 + - + 61 + - + CAST ( - col2 AS INTEGER ) + - col2 * - - col1 FROM tab2
----
-1234
-3141
-3947

query II rowsort
SELECT + 76 * + col2 AS col0, + col1 AS col2 FROM tab0
----
3572
81
7524
1
760
21

query I rowsort
SELECT DISTINCT - col2 * - - col0 AS col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2799
SELECT COUNT( * ) DIV - + MAX( 20 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2799
SELECT COUNT ( * ) / - + MAX ( 20 ) AS col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 - + + col0, col1 col0 FROM tab1 AS cor0
----
-37
14
-44
47
-80
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT + 14 - SUM( ALL - - col1 ) AS col0 FROM tab2 cor0
----
-181

skipif mysql # not compatible
query I rowsort label-2801
SELECT + 14 - SUM ( ALL - - col1 ) AS col0 FROM tab2 cor0
----
-181

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2802
SELECT col1 - + - CAST( NULL AS DECIMAL ) - 39 + - col1 + CAST( NULL AS SIGNED ) * - 11 * - - col2 - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2802
SELECT col1 - + - CAST ( NULL AS REAL ) - 39 + - col1 + CAST ( NULL AS INTEGER ) * - 11 * - - col2 - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col1 ) + col0 + 46 + - 3 FROM tab2 AS cor0
----
140
184
185

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT + MAX( - 98 ) FROM tab2
----
-98

skipif mysql # not compatible
query I rowsort label-2805
SELECT + MAX ( - 98 ) FROM tab2
----
-98

query I rowsort
SELECT ALL + 52 AS col1 FROM tab1
----
52
52
52

query I rowsort
SELECT ALL + ( 68 ) FROM tab1
----
68
68
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2808
SELECT + CAST( - - 6 AS SIGNED ) - col0 FROM tab2 cor0 WHERE NOT col0 * + - col0 BETWEEN - 66 AND NULL
----
-40
-58
-69

skipif mysql # not compatible
query I rowsort label-2808
SELECT + CAST ( - - 6 AS INTEGER ) - col0 FROM tab2 cor0 WHERE NOT col0 * + - col0 BETWEEN - 66 AND NULL
----
-40
-58
-69

query I rowsort
SELECT ALL 43 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 47 * - 54 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 20 - 39 NOT IN ( + col0, + ( - + col1 ), - col1 )
----

query I rowsort
SELECT DISTINCT - 1 AS col2 FROM tab0 cor0
----
-1

query II rowsort
SELECT + col1 AS col0, + col2 * 28 AS col2 FROM tab1
----
14
2688
47
1904
5
1652

onlyif mysql # DIV for integer division: 
query I rowsort label-2814
SELECT - 86 DIV - - col0 AS col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-2814
SELECT - 86 / - - col0 AS col0 FROM tab0
----
-5
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT SUM( DISTINCT + - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2815
SELECT SUM ( DISTINCT + - col1 ) FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT DISTINCT ( ( COUNT( * ) ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT ( ( COUNT ( * ) ) ) AS col1 FROM tab0
----
3

query II rowsort
SELECT DISTINCT + col1, ( - col1 ) AS col0 FROM tab0
----
1
-1
21
-21
81
-81

query II rowsort
SELECT DISTINCT + col0 AS col1, - 42 * - col0 FROM tab1
----
51
2142
85
3570
91
3822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2819
SELECT ( col2 ) FROM tab1 WHERE NOT - col0 NOT BETWEEN NULL AND 15 * col0 + + CAST( NULL AS SIGNED ) / + 71
----

skipif mysql # not compatible
query I rowsort label-2819
SELECT ( col2 ) FROM tab1 WHERE NOT - col0 NOT BETWEEN NULL AND 15 * col0 + + CAST ( NULL AS INTEGER ) / + 71
----

query I rowsort
SELECT DISTINCT - col2 + - - 74 FROM tab1
----
-22
15
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2821
SELECT ALL - - col2 AS col2, + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

skipif mysql # not compatible
query II rowsort label-2821
SELECT ALL - - col2 AS col2, + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN - 46 * - col0 + col1 AND + 60 - col2 + + 46 - + - col2
----
-51
-85
-91

query I rowsort
SELECT ALL - + 88 + + col0 FROM tab1 AS cor0
----
-3
-37
3

query II rowsort
SELECT ALL + col1, col0 AS col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # DIV for integer division: 
query I rowsort label-2825
SELECT - 81 + - col0 + - - col1 DIV - 52 + + col2 AS col1 FROM tab1 AS cor0
----
-104
-107
-36

skipif mysql # not compatible
query I rowsort label-2825
SELECT - 81 + - col0 + - - col1 / - 52 + + col2 AS col1 FROM tab1 AS cor0
----
-104
-107
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-2826
SELECT 89 DIV col0 + + 30 DIV - + 4 FROM tab2
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-2826
SELECT 89 / col0 + + 30 / - + 4 FROM tab2
----
-6
-6
-6

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # DIV for integer division: 
query I rowsort label-2828
SELECT + col1 * col2 + 21 + col1 + col2 DIV - col1 FROM tab1
----
1373
310
3263

skipif mysql # not compatible
query I rowsort label-2828
SELECT + col1 * col2 + 21 + col1 + col2 / - col1 FROM tab1
----
1373
310
3263

query I rowsort
SELECT col0 + - 4 AS col1 FROM tab2
----
42
60
71

onlyif mysql # DIV for integer division: 
query I rowsort label-2830
SELECT - col0 DIV col0 * - 68 FROM tab2
----
68
68
68

skipif mysql # not compatible
query I rowsort label-2830
SELECT - col0 / col0 * - 68 FROM tab2
----
68
68
68

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2832
SELECT ALL + 64 + - col1 DIV + 12 AS col1 FROM tab1 AS cor0
----
61
63
64

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL + 64 + - col1 / + 12 AS col1 FROM tab1 AS cor0
----
61
63
64

query I rowsort
SELECT ALL + col2 - - col1 * + - col1 AS col2 FROM tab0 AS cor0
----
-431
-6514
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT DISTINCT + COUNT( * ) + - ( - + COUNT( * ) ) * COUNT( * ) + MIN( + 65 ) AS col0 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2834
SELECT DISTINCT + COUNT ( * ) + - ( - + COUNT ( * ) ) * COUNT ( * ) + MIN ( + 65 ) AS col0 FROM tab1 AS cor0
----
77

query I rowsort
SELECT ALL - - 85 + - 11 AS col1 FROM tab0 AS cor0
----
74
74
74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 36 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 - - + col0 FROM tab2 AS cor0
----
104
133
69

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) < - + col0
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 41 < + col0 + 43
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( + 75 ) * - - 0 AS col0 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT - - col2 - + col1 AS col0, col0 + - - 49 AS col0 FROM tab1 AS cor0
----
21
140
54
134
82
100

query I rowsort
SELECT DISTINCT col1 * 12 * + col1 * + + 87 AS col0 FROM tab2
----
2715444
4686516
6189876

query I rowsort
SELECT col0 + - + 23 AS col2 FROM tab0
----
-8
64
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT ALL 53 * - + MIN( ALL - col1 ) FROM tab2
----
4081

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL 53 * - + MIN ( ALL - col1 ) FROM tab2
----
4081

query I rowsort
SELECT 63 + - col0 FROM tab2
----
-1
-12
17

query I rowsort
SELECT - col1 + - - 22 FROM tab1
----
-25
17
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT + + COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2847
SELECT + + COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 92 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2849
SELECT ALL COUNT( * ) / + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2849
SELECT ALL COUNT ( * ) / + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 73 = NULL
----

query I rowsort
SELECT ALL 66 * - col0 * ( - - col1 ) * - col0 + + - 18 + + 78 AS col2 FROM tab0 AS cor0
----
10490694
1202910
621054

query II rowsort
SELECT - + 82, col2 AS col2 FROM tab1 cor0
----
-82
59
-82
68
-82
96

query I rowsort
SELECT DISTINCT - 80 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-80

query I rowsort
SELECT - - 6 * - 85 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aab2be19f25ca873297e15374a97f6ee

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT - - 18 * - 58 * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9396

skipif mysql # not compatible
query I rowsort label-2855
SELECT - - 18 * - 58 * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2856
SELECT SUM( ALL - - col1 ) DIV + 31 AS col1 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-2856
SELECT SUM ( ALL - - col1 ) / + 31 AS col1 FROM tab1 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT + MIN( + 6 ) AS col1 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-2857
SELECT + MIN ( + 6 ) AS col1 FROM tab0 cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2858
SELECT 21 DIV + col2 col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2858
SELECT 21 / + col2 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 + + 4 AS col0 FROM tab1
----
100
63
72

onlyif mysql # aggregate syntax: 
query II rowsort label-2860
SELECT DISTINCT 28 AS col2, + SUM( col1 ) FROM tab1
----
28
66

skipif mysql # not compatible
query II rowsort label-2860
SELECT DISTINCT 28 AS col2, + SUM ( col1 ) FROM tab1
----
28
66

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT COUNT( * ) AS col2 FROM tab1 WHERE NOT col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2862
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NOT col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT DISTINCT + COUNT( DISTINCT - col1 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2863
SELECT DISTINCT + COUNT ( DISTINCT - col1 ) col0 FROM tab0
----
3

query I rowsort
SELECT + + 57 AS col2 FROM tab2 AS cor0
----
57
57
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 52, + col2 col0 FROM tab0 AS cor0
----
-52
10
-52
47
-52
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col1 < + + ( - 67 ) + - col2 + + col1
----
-3

skipif mysql # not compatible
query I rowsort label-2866
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col1 < + + ( - 67 ) + - col2 + + col1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 col1 FROM tab0 AS cor0 WHERE NULL >= - col1
----

query III rowsort
SELECT * FROM tab0 WHERE + 38 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT MIN( + 56 ) + + 90 FROM tab1
----
146

skipif mysql # not compatible
query I rowsort label-2869
SELECT MIN ( + 56 ) + + 90 FROM tab1
----
146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 43 + + col1 * col2 col1 FROM tab2
----
3366
6391
6767

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE 88 - col1 IS NOT NULL
----
10
47
99

query I rowsort
SELECT + col1 + + ( + - 41 ) FROM tab1 AS cor0
----
-27
-36
6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 <= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 <= - col1 * + 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT - 8 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-2875
SELECT - 8 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT 31 + - COUNT( * ) + 73 AS col0 FROM tab0 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-2876
SELECT 31 + - COUNT ( * ) + 73 AS col0 FROM tab0 AS cor0
----
101

query I rowsort
SELECT col0 + + 46 AS col0 FROM tab1 AS cor0
----
131
137
97

query I rowsort
SELECT DISTINCT + col1 - + col2 AS col0 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT DISTINCT 93 + - + 92 AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE col0 NOT BETWEEN col0 AND col1
----
87
97

query II rowsort
SELECT - - 50 * + 84 AS col0, 9 FROM tab1 WHERE col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT 68 FROM tab1 WHERE - col2 IS NULL
----

query II rowsort
SELECT ALL - col2 - + ( - + col2 ), - 21 - + col0 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
-108
0
-118
0
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( col0 ) - + col2 - - 6 * - - 40 col0, col1 * col0 FROM tab1
----
195
714
263
4277
266
425

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT ALL COUNT( * ) + + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL COUNT ( * ) + + COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT 50 - + col1 * + 25 FROM tab1
----
-1125
-300
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT ALL + COUNT( DISTINCT + col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2887
SELECT ALL + COUNT ( DISTINCT + col1 ) AS col1 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2888
SELECT - col1 DIV 89 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2888
SELECT - col1 / 89 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 21 FROM tab1 WHERE NOT + - 46 + + + 79 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2890
SELECT - COUNT( * ), COUNT( * ) + - - 46 col0 FROM tab2
----
-3
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2890
SELECT - COUNT ( * ), COUNT ( * ) + - - 46 col0 FROM tab2
----
-3
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT + MAX( ALL + col2 ) col2 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2891
SELECT + MAX ( ALL + col2 ) col2 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT ALL + + COUNT( * ) * COUNT( * ) col0 FROM tab0 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2892
SELECT ALL + + COUNT ( * ) * COUNT ( * ) col0 FROM tab0 WHERE NULL IS NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT - MAX( + 15 ) col0 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2893
SELECT - MAX ( + 15 ) col0 FROM tab2 AS cor0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 10 AS col1, - col0 col2 FROM tab2 AS cor0
----
-10
-46
-10
-64
-10
-75

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + ( - + col0 ) AND col0
----

query I rowsort
SELECT ALL + ( - 17 ) AS col0 FROM tab0 AS cor0
----
-17
-17
-17

query I rowsort
SELECT ALL ( - + col1 ) + + - col0 FROM tab2 AS cor0 WHERE NOT NULL = ( NULL )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 46 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * 93, 60 col1 FROM tab1
----
-4743
60
-7905
60
-8463
60

query I rowsort
SELECT DISTINCT - ( - 68 ) * 54 FROM tab1
----
3672

onlyif mysql # DIV for integer division: 
query I rowsort label-2901
SELECT col1 DIV col1 * col1 AS col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2901
SELECT col1 / col1 * col1 AS col0 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2902
SELECT ALL + - CAST( NULL AS SIGNED ) * ( 86 ) FROM tab0 WHERE NOT NULL <> - col0 * + col2
----

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL + - CAST ( NULL AS INTEGER ) * ( 86 ) FROM tab0 WHERE NOT NULL <> - col0 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2903
SELECT DISTINCT CAST( NULL AS SIGNED ) / 26 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 26 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT - SUM( DISTINCT - - col2 ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-2904
SELECT - SUM ( DISTINCT - - col2 ) AS col0 FROM tab0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 col0 FROM tab0 AS cor0
----
70
70
70

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN NULL AND - 62
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2907
SELECT ALL ( + + CAST( NULL AS SIGNED ) ) AS col0, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2907
SELECT ALL ( + + CAST ( NULL AS INTEGER ) ) AS col0, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query II rowsort
SELECT ALL 76, col2 FROM tab1
----
76
59
76
68
76
96

query I rowsort
SELECT ALL - + 16 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL = 0 * - 19
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query III rowsort
SELECT * FROM tab1 WHERE ( NOT - 16 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2913
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> + col2 + - 80 + CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2913
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> + col2 + - 80 + CAST ( + col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT ALL - + COUNT( * ) * - COUNT( * ) - + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL - + COUNT ( * ) * - COUNT ( * ) - + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
12

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col2 ) * + - 26 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 - - - col2 FROM tab1 AS cor0
----
-118
-136
-192

onlyif mysql # aggregate syntax: 
query II rowsort label-2917
SELECT ALL - COUNT( * ), - COUNT( DISTINCT + + ( - col1 ) ) FROM tab2
----
-3
-3

skipif mysql # not compatible
query II rowsort label-2917
SELECT ALL - COUNT ( * ), - COUNT ( DISTINCT + + ( - col1 ) ) FROM tab2
----
-3
-3

query III rowsort
SELECT * FROM tab2 WHERE - - col0 * - col2 + + - col1 IS NULL
----

query I rowsort
SELECT - col0 + ( - 23 ) FROM tab0
----
-110
-120
-38

query III rowsort
SELECT * FROM tab0 WHERE col0 BETWEEN col0 / col2 AND + col1
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT - MIN( - + col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2921
SELECT - MIN ( - + col1 ) AS col1 FROM tab0
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2922
SELECT ALL + CAST( NULL AS DECIMAL ) * - ( - 5 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL + CAST ( NULL AS REAL ) * - ( - 5 ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 52 AS col1 FROM tab1
----
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col0, col0 AS col2 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2925
SELECT - 70 - SUM( ALL + + 69 ) DIV + 29 AS col0, 38 * + + COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-77
114

skipif mysql # not compatible
query II rowsort label-2925
SELECT - 70 - SUM ( ALL + + 69 ) / + 29 AS col0, 38 * + + COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-77
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2926
SELECT DISTINCT CAST( - - ( - 14 ) AS SIGNED ) FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-2926
SELECT DISTINCT CAST ( - - ( - 14 ) AS INTEGER ) FROM tab0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2927
SELECT DISTINCT 46, - SUM( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
46
NULL

skipif mysql # not compatible
query II rowsort label-2927
SELECT DISTINCT 46, - SUM ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
46
NULL

query II rowsort
SELECT - col1 AS col0, 22 FROM tab0
----
-1
22
-21
22
-81
22

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 27 * col2 * - col1 NOT BETWEEN NULL AND + col0
----

query II rowsort
SELECT ALL - col2, col2 * 2 + col1 + + 23 AS col2 FROM tab2 cor0
----
-23
120
-40
180
-58
206

onlyif mysql # aggregate syntax: 
query II rowsort label-2931
SELECT DISTINCT + - 47 AS col2, MIN( DISTINCT + - col2 ) AS col1 FROM tab1 AS cor0
----
-47
-96

skipif mysql # not compatible
query II rowsort label-2931
SELECT DISTINCT + - 47 AS col2, MIN ( DISTINCT + - col2 ) AS col1 FROM tab1 AS cor0
----
-47
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT DISTINCT + 97 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-2932
SELECT DISTINCT + 97 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
291

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 92 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT MIN( + ( + + col2 ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2934
SELECT MIN ( + ( + + col2 ) ) FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT ALL - ( + + 80 ) + - COUNT( * ) FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-2935
SELECT ALL - ( + + 80 ) + - COUNT ( * ) FROM tab0 AS cor0
----
-83

onlyif mysql # DIV for integer division: 
query II rowsort label-2936
SELECT ALL ( - + 67 ) DIV - 50 AS col0, col0 + - 38 AS col1 FROM tab2 AS cor0
----
1
26
1
37
1
8

skipif mysql # not compatible
query II rowsort label-2936
SELECT ALL ( - + 67 ) / - 50 AS col0, col0 + - 38 AS col1 FROM tab2 AS cor0
----
1
26
1
37
1
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2937
SELECT + - col1 / - CAST( NULL AS SIGNED ) + col0 + + 67 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2937
SELECT + - col1 / - CAST ( NULL AS INTEGER ) + col0 + + 67 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2938
SELECT ALL - COUNT( - col0 ) DIV + + 19 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2938
SELECT ALL - COUNT ( - col0 ) / + + 19 AS col2 FROM tab1 AS cor0
----
0

query II rowsort
SELECT - + 77 + - col0, col1 AS col0 FROM tab2 AS cor0
----
-123
51
-141
77
-152
67

query I rowsort
SELECT col2 + - col1 * - col0 * + 34 AS col2 FROM tab2 cor0
----
167592
170908
79787

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT ALL ( COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL ( COUNT ( * ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT DISTINCT + + 57 * COUNT( * ) + ( COUNT( ALL + col0 ) ) AS col1 FROM tab0 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-2942
SELECT DISTINCT + + 57 * COUNT ( * ) + ( COUNT ( ALL + col0 ) ) AS col1 FROM tab0 AS cor0
----
174

query I rowsort
SELECT + ( + + col2 ) * + col0 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, - col1 FROM tab2
----
46
-51
64
-77
75
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 25, - col1 col2 FROM tab1
----
-25
-14
-25
-47
-25
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2946
SELECT ALL 66 * + col0 * + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL 66 * + col0 * + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----

query II rowsort
SELECT DISTINCT + 66 AS col1, + col0 + - + col1 AS col2 FROM tab0
----
66
-66
66
66
66
96

query I rowsort
SELECT - 90 * + 43 FROM tab2
----
-3870
-3870
-3870

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE - - col2 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT ALL - COUNT( - + 43 ) + - 19 AS col1 FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL - COUNT ( - + 43 ) + - 19 AS col1 FROM tab1
----
-22

query I rowsort
SELECT DISTINCT - col2 FROM tab0 cor0 WHERE col0 + col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 22 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT - COUNT( ALL col1 ) * 75 AS col0 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-2953
SELECT - COUNT ( ALL col1 ) * 75 AS col0 FROM tab2
----
-225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2954
SELECT + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2954
SELECT + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + ( 43 + + col2 ) * col1 FROM tab2
----
3343
6351
6709

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 NOT IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * - 87 AS col0 FROM tab0
----
-1305
-7569
-8439

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT + 24 + - 80 * + COUNT( * ) FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-2958
SELECT + 24 + - 80 * + COUNT ( * ) FROM tab0
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT ALL + COUNT( * ) AS col2 FROM tab1 WHERE NULL IN ( + col2 + 30 )
----
0

skipif mysql # not compatible
query I rowsort label-2959
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 WHERE NULL IN ( + col2 + 30 )
----
0

query I rowsort
SELECT + col1 + + ( 89 ) AS col0 FROM tab2
----
140
156
166

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col2 * col1 - col1 * - 77 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + ( - col2 ) ) * + col2 - + col2 FROM tab1
----
-3540
-4692
-9312

query I rowsort
SELECT DISTINCT - 27 * + col1 AS col1 FROM tab1
----
-1269
-135
-378

query I rowsort
SELECT + ( - 60 ) * + col2 - 80 FROM tab0
----
-2900
-6020
-680

query I rowsort
SELECT 79 * 41 FROM tab2
----
3239
3239
3239

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 + - col2 ) IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NULL <> - col2
----

query I rowsort
SELECT ( + col2 ) + - col1 AS col1 FROM tab0 WHERE NOT ( NULL ) < col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2969
SELECT ALL - ( - col0 ) DIV - col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL - ( - col0 ) / - col0 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2970
SELECT col1 * col2 + 69 FROM tab1 WHERE NOT NULL < ( CAST( col2 AS SIGNED ) * 89 )
----

skipif mysql # not compatible
query I rowsort label-2970
SELECT col1 * col2 + 69 FROM tab1 WHERE NOT NULL < ( CAST ( col2 AS INTEGER ) * 89 )
----

query I rowsort
SELECT + col2 - ( col2 ) AS col2 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2972
SELECT DISTINCT col0 DIV col0 + + col2 AS col1 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-2972
SELECT DISTINCT col0 / col0 + + col2 AS col1 FROM tab2
----
24
41
59

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE - 25 NOT BETWEEN 97 AND NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT ALL COUNT( col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL COUNT ( col0 ) AS col1 FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN ( - col0 ) AND 55 * ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 22 ) col0 FROM tab1
----
22
22
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2977
SELECT 83 DIV COUNT( * ) - COUNT( - col0 ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-2977
SELECT 83 / COUNT ( * ) - COUNT ( - col0 ) FROM tab2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT COUNT( - 40 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2978
SELECT COUNT ( - 40 ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2979
SELECT DISTINCT AVG ( DISTINCT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2979
SELECT DISTINCT AVG ( DISTINCT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2981
SELECT 72 DIV 30 AS col1 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-2981
SELECT 72 / 30 AS col1 FROM tab0 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT ALL COUNT( * ) * - MAX( - 64 ) AS col2 FROM tab1 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL COUNT ( * ) * - MAX ( - 64 ) AS col2 FROM tab1 AS cor0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT ALL COUNT( * ) * - COUNT( * ) col0 FROM tab0 AS cor0 WHERE + col2 / col2 + + col2 NOT IN ( - col0 )
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2983
SELECT ALL COUNT ( * ) * - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE + col2 / col2 + + col2 NOT IN ( - col0 )
----
-9

query I rowsort
SELECT - col1 * + ( col2 ) + col0 * + 24 AS col0 FROM tab2 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT MAX( DISTINCT + col1 ) * - ( MIN( DISTINCT + col1 ) * + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-2985
SELECT MAX ( DISTINCT + col1 ) * - ( MIN ( DISTINCT + col1 ) * + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-2986
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NOT 43 + 1 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT ALL COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT 33 AS col2 FROM tab2 cor0
----
33

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 NOT IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + 56 AS col2 FROM tab1 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT ALL - COUNT( + 38 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2992
SELECT ALL - COUNT ( + 38 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col1 + 92 FROM tab0 AS cor0 WHERE NOT col1 + + col2 * 36 IS NULL
----
113
173
93

query I rowsort
SELECT col1 * ( col1 * col2 ) FROM tab0 AS cor0
----
308367
4410
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2995
SELECT + col1 / + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2995
SELECT + col1 / + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 48 FROM tab1 WHERE ( col1 + - 13 ) <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 77 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * ( 35 ) NOT IN ( col2 ) OR ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT + COUNT( * ) * + 55 * COUNT( * ) + - COUNT( * ) col0 FROM tab0
----
492

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2999
SELECT + COUNT ( * ) * + 55 * COUNT ( * ) + - COUNT ( * ) col0 FROM tab0
----
492

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 IN ( ( 93 ) + - 87 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3001
SELECT DISTINCT CAST( + col0 AS SIGNED ) col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3001
SELECT DISTINCT CAST ( + col0 AS INTEGER ) col2 FROM tab1
----
51
85
91

query I rowsort
SELECT 94 + - 36 AS col0 FROM tab2
----
58
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3003
SELECT col0 + + - CAST( col2 AS SIGNED ) FROM tab0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-3003
SELECT col0 + + - CAST ( col2 AS INTEGER ) FROM tab0
----
-2
-32
77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND ( + col2 )
----

query I rowsort
SELECT DISTINCT - - col2 + + + 26 AS col1 FROM tab2 AS cor0
----
49
66
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3006
SELECT CAST( NULL AS SIGNED ) + + COUNT( - 29 ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3006
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( - 29 ) col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 90 * - 67 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-6030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3008
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3008
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT - 6 * - 49 + + COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
303

skipif mysql # not compatible
query I rowsort label-3009
SELECT - 6 * - 49 + + COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
303

query I rowsort
SELECT - 32 - col0 FROM tab1
----
-117
-123
-83

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( 90 ) BETWEEN 3 AND col0
----

query I rowsort
SELECT DISTINCT - 49 AS col0 FROM tab0 AS cor0 WHERE NOT - 75 = + 14
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3013
SELECT * FROM tab0 AS cor0 WHERE NOT 26 NOT BETWEEN + + col1 AND ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3013
SELECT * FROM tab0 AS cor0 WHERE NOT 26 NOT BETWEEN + + col1 AND ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - + col2 AS col2 FROM tab1 AS cor0 WHERE NOT 26 IS NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( - 5 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3016
SELECT CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT 97 * + - 73 + 13 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3016
SELECT CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT 97 * + - 73 + 13 IS NULL
----
3

query II rowsort
SELECT DISTINCT col0 AS col1, - col2 + 89 FROM tab0 AS cor0
----
15
42
87
79
97
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1, - 43 + + - col2 col2 FROM tab1 AS cor0
----
-14
-139
-47
-111
-5
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT + COUNT( * ) - - 80 AS col0 FROM tab2 WHERE NOT NULL < + col0
----
80

skipif mysql # not compatible
query I rowsort label-3019
SELECT + COUNT ( * ) - - 80 AS col0 FROM tab2 WHERE NOT NULL < + col0
----
80

query I rowsort
SELECT DISTINCT 61 FROM tab1 WHERE NULL IS NULL
----
61

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 70 = ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 67 * 4 AS col0 FROM tab0
----
268

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE + 39 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT + + 76 * SUM( 26 - col1 * - col1 ) FROM tab2 WHERE NOT + col2 IS NULL
----
995372

skipif mysql # not compatible
query I rowsort label-3024
SELECT + + 76 * SUM ( 26 - col1 * - col1 ) FROM tab2 WHERE NOT + col2 IS NULL
----
995372

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL NOT IN ( + - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3025
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL NOT IN ( + - col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3026
SELECT + CAST( NULL AS SIGNED ) * + col2 - + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3026
SELECT + CAST ( NULL AS INTEGER ) * + col2 - + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 IN ( - 95 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT DISTINCT + MAX( DISTINCT + + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT + MAX ( DISTINCT + + col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE + 34 * col1 / ( - col2 ) IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT ALL COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT DISTINCT MAX( ALL col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-3031
SELECT DISTINCT MAX ( ALL col2 ) FROM tab2
----
58

query I rowsort
SELECT - col2 + 36 FROM tab1 AS cor0
----
-23
-32
-60

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 61 / - - col1 ) IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3034
SELECT ALL - col1 * + col1 + + CAST( NULL AS SIGNED ) + - col0 * + 1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL - col1 * + col1 + + CAST ( NULL AS INTEGER ) + - col0 * + 1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 = - - col2 * - col2 - - 22
----

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE - 77 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT - 92 * - 40 * - COUNT( ALL - col0 ) + - + MIN( + col2 ) AS col1 FROM tab0 cor0
----
-11050

skipif mysql # not compatible
query I rowsort label-3037
SELECT - 92 * - 40 * - COUNT ( ALL - col0 ) + - + MIN ( + col2 ) AS col1 FROM tab0 cor0
----
-11050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3038
SELECT ALL - CAST( NULL AS SIGNED ) * col2 + - - ( col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3038
SELECT ALL - CAST ( NULL AS INTEGER ) * col2 + - - ( col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT ALL SUM( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-3039
SELECT ALL SUM ( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-3040
SELECT DISTINCT - - col2 + + - 9 + - col2 * 21 DIV 21 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3040
SELECT DISTINCT - - col2 + + - 9 + - col2 * 21 / 21 FROM tab1 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 - + 24 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3042
SELECT + - 0 * - col0 * - + col1 + + + col0 - 41 - col2 DIV + col0 col2 FROM tab2 AS cor0
----
23
34
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3042
SELECT + - 0 * - col0 * - + col1 + + + col0 - 41 - col2 / + col0 col2 FROM tab2 AS cor0
----
23
34
5

query I rowsort
SELECT - - 84 + col2 + + col0 * - - 12 AS col0 FROM tab0 AS cor0
----
1138
1347
311

query III rowsort
SELECT * FROM tab0 WHERE ( - - col0 ) BETWEEN ( - col2 ) * - col0 * + col2 AND NULL
----

query I rowsort
SELECT + col0 FROM tab2 WHERE 40 IN ( + col2 )
----
64

query I rowsort
SELECT DISTINCT - 51 + - col0 + col2 * + + 7 AS col0 FROM tab1
----
277
334
570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3047
SELECT COUNT( * ) * - + COUNT( * ) DIV + + COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3047
SELECT COUNT ( * ) * - + COUNT ( * ) / + + COUNT ( * ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3048
SELECT ALL + MIN( 73 ) DIV + 7 FROM tab1 WHERE NOT ( - 78 IN ( + + col2 + + col0 * col0 ) )
----
10

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL + MIN ( 73 ) / + 7 FROM tab1 WHERE NOT ( - 78 IN ( + + col2 + + col0 * col0 ) )
----
10

query I rowsort
SELECT 64 * + + col2 FROM tab0
----
3008
6336
640

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT ALL - + 90 + + + COUNT( * ) col2 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3050
SELECT ALL - + 90 + + + COUNT ( * ) col2 FROM tab0 AS cor0
----
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-3051
SELECT + 8 DIV + + col2 + + - 32 + - + 52 AS col0, col0 FROM tab2 AS cor0
----
-84
46
-84
64
-84
75

skipif mysql # not compatible
query II rowsort label-3051
SELECT + 8 / + + col2 + + - 32 + - + 52 AS col0, col0 FROM tab2 AS cor0
----
-84
46
-84
64
-84
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( - - col1 ) + - + col1 * col1 - + col1 col2 FROM tab2 AS cor0
----
-1078
-306
469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3053
SELECT ALL + col2 - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL + col2 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 19 NOT IN ( + col1 * + col0 / + col1 - + + col1 / + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 83 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT DISTINCT COUNT( DISTINCT 96 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3056
SELECT DISTINCT COUNT ( DISTINCT 96 ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 51 * - - col0 + - col0 < NULL
----

query II rowsort
SELECT 31 AS col2, - col1 FROM tab2
----
31
-51
31
-67
31
-77

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3061
SELECT + 44 * - 30 * CAST( + + 40 AS SIGNED ) * - col1 FROM tab0 WHERE NOT - 57 = - - col0
----
1108800
4276800
52800

skipif mysql # not compatible
query I rowsort label-3061
SELECT + 44 * - 30 * CAST ( + + 40 AS INTEGER ) * - col1 FROM tab0 WHERE NOT - 57 = - - col0
----
1108800
4276800
52800

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT ALL - 6 * + + COUNT( * ) AS col1 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-3062
SELECT ALL - 6 * + + COUNT ( * ) AS col1 FROM tab0
----
-18

query I rowsort
SELECT 90 AS col0 FROM tab1 WHERE NOT - col0 - - ( 41 ) - col0 + col2 BETWEEN + - col1 * 19 + col2 AND ( col2 - col0 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3064
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3065
SELECT DISTINCT 16 DIV - COUNT( ALL col2 ) AS col2, CAST( NULL AS DECIMAL ) FROM tab1
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-3065
SELECT DISTINCT 16 / - COUNT ( ALL col2 ) AS col2, CAST ( NULL AS REAL ) FROM tab1
----
-5
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 65 col2 FROM tab2
----
3315
4355
5005

query II rowsort
SELECT - col2 AS col1, - 94 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-94
-47
-94
-99
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT MIN( + col1 ) col2 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3068
SELECT MIN ( + col1 ) col2 FROM tab1
----
5

query II rowsort
SELECT col1, + col1 * + col0 FROM tab1
----
14
714
47
4277
5
425

query III rowsort
SELECT * FROM tab1 WHERE NOT + 28 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 87 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3072
SELECT CAST( + ( - COUNT( * ) ) AS SIGNED ) + + 95 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-3072
SELECT CAST ( + ( - COUNT ( * ) ) AS INTEGER ) + + 95 FROM tab2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3073
SELECT * FROM tab2 WHERE ( NOT - col0 / CAST( NULL AS SIGNED ) - + + col2 + + + col0 + + col2 * - - col0 + - 89 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3073
SELECT * FROM tab2 WHERE ( NOT - col0 / CAST ( NULL AS INTEGER ) - + + col2 + + + col0 + + col2 * - - col0 + - 89 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 10 + - - col2 AS col1 FROM tab0 AS cor0
----
0
37
89

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 6 * + 74 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= ( 3 ) * + col2 + - - 61 + + + ( + - col1 ) * - 88 / col1
----

query I rowsort
SELECT - col1 * + 21 - + - 26 AS col1 FROM tab0 AS cor0
----
-1675
-415
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT DISTINCT + + MAX( - col2 ) col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3078
SELECT DISTINCT + + MAX ( - col2 ) col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT MIN( + col0 ) + + MIN( col2 ) AS col0 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-3079
SELECT MIN ( + col0 ) + + MIN ( col2 ) AS col0 FROM tab2
----
69

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= NULL AND NOT NULL > col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 col2 FROM tab1
----
3
3
3

query I rowsort
SELECT col0 + + + ( + col2 ) + - + col2 * - col0 AS col1 FROM tab1
----
5043
5159
6347

onlyif mysql # DIV for integer division: 
query I rowsort label-3083
SELECT + col1 DIV col1 DIV 52 + - - 75 DIV + - col2 AS col0 FROM tab2
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-3083
SELECT + col1 / col1 / 52 + - - 75 / + - col2 AS col0 FROM tab2
----
-1
-1
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3084
SELECT ALL col0 * - col1 + + CAST( - + 6 AS SIGNED ) FROM tab2
----
-2352
-4934
-5031

skipif mysql # not compatible
query I rowsort label-3084
SELECT ALL col0 * - col1 + + CAST ( - + 6 AS INTEGER ) FROM tab2
----
-2352
-4934
-5031

query I rowsort
SELECT DISTINCT + col2 + + + col2 AS col0 FROM tab1
----
118
136
192

query I rowsort
SELECT ALL + 64 + + 2 FROM tab2
----
66
66
66

query I rowsort
SELECT ALL + + ( - + col0 ) * - col1 + + - col1 AS col0 FROM tab0 AS cor0
----
1134
1806
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3088
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3088
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 37 + - col0 NOT IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN NULL AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 61 ) * + + col0 + + col0 col0 FROM tab1 AS cor0
----
-3060
-5100
-5460

onlyif mysql # DIV for integer division: 
query I rowsort label-3092
SELECT ALL 39 DIV - + 70 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3092
SELECT ALL 39 / - + 70 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 1 * - col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT + + 22 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3095
SELECT DISTINCT CAST( + + col0 AS SIGNED ) AS col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3095
SELECT DISTINCT CAST ( + + col0 AS INTEGER ) AS col0 FROM tab0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + - 45 col2, ( - 0 ) * ( col1 ) AS col1 FROM tab1 AS cor0
----
-2295
0
-3825
0
-4095
0

query II rowsort
SELECT DISTINCT - 57 * - + 10, + col0 * + - col1 AS col1 FROM tab0 AS cor0
----
570
-1215
570
-1827
570
-97

query II rowsort
SELECT col0, + col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT COUNT( + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3099
SELECT COUNT ( + col1 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL - col1 AS col2, + col1 AS col1, 55 FROM tab0 cor0
----
9 values hashing to ec8ed29c72ab904c18f5990c96b4392d

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 * + col1 AND + 17
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3102
SELECT ALL - ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 col0 FROM tab1
----
83
83
83

query I rowsort
SELECT - 33 * ( - ( + col1 ) ) AS col1 FROM tab1 WHERE NOT - 65 IS NULL
----
1551
165
462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3105
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3105
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + 21 <= - col1 * - 96
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT ALL + + 44 + + + COUNT( * ) + - MIN( + + col2 ) col0 FROM tab0 AS cor0 WHERE NOT NULL = - col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3107
SELECT ALL + + 44 + + + COUNT ( * ) + - MIN ( + + col2 ) col0 FROM tab0 AS cor0 WHERE NOT NULL = - col2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 62 + ( - - 73 ) BETWEEN + - col0 AND NULL
----

query I rowsort
SELECT ( - ( col2 ) ) + + col1 FROM tab1
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT ALL COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT - MAX( DISTINCT + col0 ) * 88 + + 57 FROM tab0 AS cor0
----
-8479

skipif mysql # not compatible
query I rowsort label-3112
SELECT - MAX ( DISTINCT + col0 ) * 88 + + 57 FROM tab0 AS cor0
----
-8479

query I rowsort
SELECT col0 + + 12 AS col1 FROM tab1 AS cor0
----
103
63
97

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( - col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT - + COUNT( * ) col1 FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3115
SELECT - + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT DISTINCT - - 3 + COUNT( * ) - 31 + + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-3116
SELECT DISTINCT - - 3 + COUNT ( * ) - 31 + + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-28

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 >= + + col1 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT ALL COUNT( * ) + COUNT( * ) * 5 + + MIN( ALL - 16 ) AS col0 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL COUNT ( * ) + COUNT ( * ) * 5 + + MIN ( ALL - 16 ) AS col0 FROM tab1
----
2

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + - 90 + col2 * - 91 col0 FROM tab0
----
-4202
-9016
-907

query I rowsort
SELECT - - 39 - 68 AS col1 FROM tab1 AS cor0
----
-29
-29
-29

query I rowsort
SELECT DISTINCT - 20 * col0 + - ( + 35 ) AS col2 FROM tab0 AS cor0
----
-1775
-1975
-335

query I rowsort
SELECT DISTINCT - - 17 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT DISTINCT + MIN( ALL + 23 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
23

skipif mysql # not compatible
query I rowsort label-3124
SELECT DISTINCT + MIN ( ALL + 23 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3125
SELECT - CAST( - - col0 AS SIGNED ) AS col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3125
SELECT - CAST ( - - col0 AS INTEGER ) AS col0 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT ALL + ( ( + + COUNT( * ) ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3126
SELECT ALL + ( ( + + COUNT ( * ) ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 29 * + col0 col0 FROM tab1 AS cor0
----
-1479
-2465
-2639

query I rowsort
SELECT DISTINCT - col0 + - col0 * ( - + 59 ) * col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + - col0 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3130
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3130
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> CAST ( - col1 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + 4 * - 19 * 62 FROM tab0 AS cor0
----
-221464
-466488
-47120

onlyif mysql # aggregate syntax: 
query II rowsort label-3133
SELECT ALL COUNT( * ) AS col0, 58 FROM tab2
----
3
58

skipif mysql # not compatible
query II rowsort label-3133
SELECT ALL COUNT ( * ) AS col0, 58 FROM tab2
----
3
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT + COUNT( col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3134
SELECT + COUNT ( col2 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT ALL + 68 * SUM( - col0 ) AS col0 FROM tab1 WHERE + 55 * 85 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3135
SELECT ALL + 68 * SUM ( - col0 ) AS col0 FROM tab1 WHERE + 55 * 85 >= NULL
----
NULL

query I rowsort
SELECT - ( - - col1 ) AS col2 FROM tab0
----
-1
-21
-81

query II rowsort
SELECT - col0 AS col2, col2 FROM tab2
----
-46
23
-64
40
-75
58

query II rowsort
SELECT - col0, col1 FROM tab2
----
-46
51
-64
77
-75
67

query II rowsort
SELECT col0, - 74 * col0 * + 93 FROM tab0
----
15
-103230
87
-598734
97
-667554

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT ALL 11 + - COUNT( * ) FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL 11 + - COUNT ( * ) FROM tab2
----
8

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 AS cor0 WHERE NOT ( + - 70 ) BETWEEN NULL AND - col2
----
96

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 * + - col1 <> + 62 * + 72 - + col2
----

query I rowsort
SELECT ALL 57 * 37 + + + ( + col1 ) FROM tab2 AS cor0
----
2160
2176
2186

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT ALL - COUNT( * ) - - 48 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL - COUNT ( * ) - - 48 FROM tab0 AS cor0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 26 - + col1 col1 FROM tab2 AS cor0
----
-103
-77
-93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * - col0 * - + 24 IN ( - col1, - col1, + 88 * - col2 )
----

query II rowsort
SELECT 79 + - ( col0 ), col1 AS col0 FROM tab1
----
-12
47
-6
5
28
14

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) > + col0 * + 88 + + - col0 + 6
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3150
SELECT ALL - CAST( - SUM( ALL - 7 ) AS SIGNED ) AS col0, COUNT( * ) col0 FROM tab1
----
-21
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3150
SELECT ALL - CAST ( - SUM ( ALL - 7 ) AS INTEGER ) AS col0, COUNT ( * ) col0 FROM tab1
----
-21
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND ( + col2 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT DISTINCT MAX( ALL 18 ) AS col0 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-3152
SELECT DISTINCT MAX ( ALL 18 ) AS col0 FROM tab0
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-3153
SELECT DISTINCT 51 * 28 AS col0, SUM( DISTINCT col2 ) * + 71 * - - MAX( col1 ) AS col2 FROM tab1 WHERE - col1 IN ( + 93 )
----
1428
NULL

skipif mysql # not compatible
query II rowsort label-3153
SELECT DISTINCT 51 * 28 AS col0, SUM ( DISTINCT col2 ) * + 71 * - - MAX ( col1 ) AS col2 FROM tab1 WHERE - col1 IN ( + 93 )
----
1428
NULL

query I rowsort
SELECT + col2 + - - col2 FROM tab1
----
118
136
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3155
SELECT + CAST( - COUNT( * ) AS SIGNED ) + + + COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3155
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) + + + COUNT ( * ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT ALL - 95 * COUNT( * ) AS col2 FROM tab2
----
-285

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL - 95 * COUNT ( * ) AS col2 FROM tab2
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT DISTINCT ( + - 68 ) * - COUNT( * ) col0 FROM tab2
----
204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3157
SELECT DISTINCT ( + - 68 ) * - COUNT ( * ) col0 FROM tab2
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT DISTINCT SUM( - - 4 ) AS col2 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-3158
SELECT DISTINCT SUM ( - - 4 ) AS col2 FROM tab1
----
12

query II rowsort
SELECT ALL + col1, - col2 AS col0 FROM tab0
----
1
-99
21
-10
81
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT ALL COUNT( ALL 34 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL COUNT ( ALL 34 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3161
SELECT ALL - col1 * + col2 * - ( CAST( col1 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
1475
150212
18816

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL - col1 * + col2 * - ( CAST ( col1 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
1475
150212
18816

query I rowsort
SELECT ALL 22 AS col2 FROM tab1 AS cor0
----
22
22
22

query II rowsort
SELECT col2 AS col2, + col1 * - col0 FROM tab1 AS cor0
----
59
-425
68
-4277
96
-714

query I rowsort
SELECT - col1 + col2 * col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 21 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 14 col1 FROM tab1
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT DISTINCT + + COUNT( * ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3167
SELECT DISTINCT + + COUNT ( * ) col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT COUNT( DISTINCT col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3168
SELECT COUNT ( DISTINCT col0 ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 * + 90 AS col2, col0 * + 58 col1 FROM tab2 AS cor0
----
2070
2668
3600
3712
5220
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col1 FROM tab2 AS cor0 WHERE NOT ( - col0 BETWEEN + 7 AND - col2 )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT ALL - COUNT( - 14 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL - COUNT ( - 14 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 51 * col1 - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 + + + col2 - col0 + + 72 AS col0 FROM tab1
----
103
2
41

query III rowsort
SELECT ALL * FROM tab2 WHERE 4 * + col0 - + col2 + - - col2 + + 16 * + col0 BETWEEN + col0 AND + 65
----

query I rowsort
SELECT DISTINCT ( + 14 ) FROM tab2
----
14

query I rowsort
SELECT DISTINCT + col0 * + 10 + col0 FROM tab1
----
1001
561
935

query I rowsort
SELECT ( - 86 ) AS col1 FROM tab1
----
-86
-86
-86

query II rowsort
SELECT col0, ( + col1 ) AS col0 FROM tab2 AS cor0
----
46
51
64
77
75
67

query I rowsort
SELECT DISTINCT col0 + - - 13 FROM tab1 AS cor0
----
104
64
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3180
SELECT + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT SUM( + 73 ) + + + 30 FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-3181
SELECT SUM ( + 73 ) + + + 30 FROM tab2
----
249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3182
SELECT DISTINCT ( + + col2 ) * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3182
SELECT DISTINCT ( + + col2 ) * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT col0 * col0 + col1 AS col0 FROM tab0 WHERE NULL BETWEEN 79 * - col2 AND + 2
----

query I rowsort
SELECT DISTINCT col2 + - - col2 * - 90 * - - col2 + - 82 FROM tab0 AS cor0
----
-198845
-882073
-9072

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT + + COUNT( * ) + - - 58 * - 48 * + - 48 FROM tab2 AS cor0
----
133635

skipif mysql # not compatible
query I rowsort label-3185
SELECT + + COUNT ( * ) + - - 58 * - 48 * + - 48 FROM tab2 AS cor0
----
133635

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3186
SELECT - 75 AS col2, - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
-75
NULL
-75
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-3186
SELECT - 75 AS col2, - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
-75
NULL
-75
NULL
-75
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3187
SELECT - COUNT( * ) DIV + 24 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3187
SELECT - COUNT ( * ) / + 24 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + 4 + + 98 * - 49 FROM tab2 AS cor0
----
-4798
-4798
-4798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3189
SELECT CAST( - - col1 AS SIGNED ) FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3189
SELECT CAST ( - - col1 AS INTEGER ) FROM tab0
----
1
21
81

query I rowsort
SELECT ALL - - col1 + + 3 FROM tab2 WHERE + 4 IS NOT NULL
----
54
70
80

query I rowsort
SELECT DISTINCT col1 * - - col0 - + ( col1 ) AS col1 FROM tab2
----
2295
4851
4958

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT + col1 < NULL
----

query I rowsort
SELECT col0 * - 52 FROM tab2
----
-2392
-3328
-3900

query I rowsort
SELECT 97 * + + col0 FROM tab2
----
4462
6208
7275

onlyif mysql # aggregate syntax: 
query II rowsort label-3195
SELECT + MIN( DISTINCT col1 ) AS col0, + COUNT( * ) col2 FROM tab1
----
5
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3195
SELECT + MIN ( DISTINCT col1 ) AS col0, + COUNT ( * ) col2 FROM tab1
----
5
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3196
SELECT CAST( + 18 AS SIGNED ) FROM tab1
----
18
18
18

skipif mysql # not compatible
query I rowsort label-3196
SELECT CAST ( + 18 AS INTEGER ) FROM tab1
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT ALL + COUNT( * ) FROM tab0 WHERE col2 > + + col2
----
0

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL + COUNT ( * ) FROM tab0 WHERE col2 > + + col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3198
SELECT 95 * col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3198
SELECT 95 * col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col2 NOT IN ( col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3200
SELECT ALL col2 * 18 + + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3200
SELECT ALL col2 * 18 + + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < 25
----

query II rowsort
SELECT ALL - 53, - col2 AS col0 FROM tab2
----
-53
-23
-53
-40
-53
-58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 BETWEEN - - col1 * 14 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT + MAX( DISTINCT + + ( + col0 ) ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3204
SELECT + MAX ( DISTINCT + + ( + col0 ) ) AS col2 FROM tab0
----
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= - col2 + - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + 3 ) col1 FROM tab0 AS cor0
----
-3
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + - + col1 col1 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT DISTINCT - col2 * + - col1 + col2 AS col2 FROM tab1 cor0
----
1440
3264
354

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT col2 * + - col1 / + col2 * - + col2 FROM tab2 AS cor0 WHERE NOT col0 * col0 IS NOT NULL
----

query I rowsort
SELECT - col1 + + 98 + - col0 * - - col2 AS col0 FROM tab1
----
-4812
-4922
-6137

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT ALL COUNT( * ) + - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL COUNT ( * ) + - COUNT ( * ) FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 81 - - col1 - - 37 * ( + + 83 ) * ( - - 84 ) col1 FROM tab1
----
258109
258155
258160

query I rowsort
SELECT col2 * - 34 + - col1 FROM tab1 AS cor0
----
-2011
-2359
-3278

query I rowsort
SELECT DISTINCT - ( - 23 ) * - col1 AS col0 FROM tab1
----
-1081
-115
-322

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT ALL - COUNT( * ) * + 58 FROM tab0
----
-174

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL - COUNT ( * ) * + 58 FROM tab0
----
-174

onlyif mysql # DIV for integer division: 
query I rowsort label-3217
SELECT ALL - - col1 DIV ( - + col0 ) AS col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3217
SELECT ALL - - col1 / ( - + col0 ) AS col0 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT ALL 11 + - COUNT( * ) * - + COUNT( * ) FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL 11 + - COUNT ( * ) * - + COUNT ( * ) FROM tab0 AS cor0
----
20

query I rowsort
SELECT + col1 + - 16 FROM tab2 AS cor0
----
35
51
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT - MAX( ALL ( + - col2 ) ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3221
SELECT - MAX ( ALL ( + - col2 ) ) FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3222
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 73 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 73 AS col1 FROM tab0
----
NULL

query II rowsort
SELECT col0 AS col2, - col0 AS col1 FROM tab1
----
51
-51
85
-85
91
-91

query I rowsort
SELECT DISTINCT + + 95 + + 61 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 36 * + col1 AS col1 FROM tab0
----
2916
36
756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3226
SELECT CAST( + col0 AS SIGNED ) * - + col0 - col0 FROM tab1
----
-2652
-7310
-8372

skipif mysql # not compatible
query I rowsort label-3226
SELECT CAST ( + col0 AS INTEGER ) * - + col0 - col0 FROM tab1
----
-2652
-7310
-8372

onlyif mysql # DIV for integer division: 
query I rowsort label-3227
SELECT ALL - col1 DIV + col1 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL - col1 / + col1 AS col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT + - COUNT( * ) + - COUNT( * ) FROM tab0 WHERE NOT NULL BETWEEN - - 31 AND - 24 - - + 1 * - col2 * + 79
----
0

skipif mysql # not compatible
query I rowsort label-3229
SELECT + - COUNT ( * ) + - COUNT ( * ) FROM tab0 WHERE NOT NULL BETWEEN - - 31 AND - 24 - - + 1 * - col2 * + 79
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 46 ) col0 FROM tab2 AS cor0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-3231
SELECT col1 * + col2 DIV col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3231
SELECT col1 * + col2 / col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + ( + 94 ) AS col2 FROM tab2 AS cor0
----
94

query I rowsort
SELECT DISTINCT - - 46 / - col0 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 69 * + 13 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT - 11 + col1 AS col1 FROM tab2 AS cor0
----
40
56
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3236
SELECT DISTINCT + COUNT( DISTINCT + col0 ) * + COUNT( * ) * - 29 + ( - 21 ) FROM tab1 AS cor0 WHERE NOT NULL IN ( + CAST( NULL AS SIGNED ) / + + col0, - col1 )
----
-21

skipif mysql # not compatible
query I rowsort label-3236
SELECT DISTINCT + COUNT ( DISTINCT + col0 ) * + COUNT ( * ) * - 29 + ( - 21 ) FROM tab1 AS cor0 WHERE NOT NULL IN ( + CAST ( NULL AS INTEGER ) / + + col0, - col1 )
----
-21

query I rowsort
SELECT ALL - col2 + - col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3238
SELECT - - col0 + + CAST( NULL AS SIGNED ) + 73 + + col0 * + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT - - col0 + + CAST ( NULL AS INTEGER ) + 73 + + col0 * + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 1 + col0 col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query II rowsort label-3240
SELECT + SUM( - + col2 ) + - ( + - ( - COUNT( * ) ) ) col0, + 58 FROM tab2 cor0
----
-124
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3240
SELECT + SUM ( - + col2 ) + - ( + - ( - COUNT ( * ) ) ) col0, + 58 FROM tab2 cor0
----
-124
58

query I rowsort
SELECT 49 + - 68 AS col0 FROM tab0
----
-19
-19
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3242
SELECT ALL - CAST( NULL AS SIGNED ) * - - col0 + 13 AS col1 FROM tab2 WHERE NOT - 6 * 31 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3242
SELECT ALL - CAST ( NULL AS INTEGER ) * - - col0 + 13 AS col1 FROM tab2 WHERE NOT - 6 * 31 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 / 94 IS NOT NULL
----

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab2 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3245
SELECT + COUNT( * ) AS col1, 57 FROM tab2
----
3
57

skipif mysql # not compatible
query II rowsort label-3245
SELECT + COUNT ( * ) AS col1, 57 FROM tab2
----
3
57

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 28 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col0 - col0 * - + col2 AS col1 FROM tab1 AS cor0
----
4845
4930
6097

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + col0 + + col0 * + col1 >= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT + ( COUNT( * ) ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3249
SELECT + ( COUNT ( * ) ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT DISTINCT - MAX( DISTINCT + 95 ) FROM tab0 WHERE NOT + 50 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3250
SELECT DISTINCT - MAX ( DISTINCT + 95 ) FROM tab0 WHERE NOT + 50 > NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3252
SELECT + ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3252
SELECT + ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 32 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3254
SELECT - MAX( ALL + col2 ) DIV - - 42 + - + ( ( - + 2 ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3254
SELECT - MAX ( ALL + col2 ) / - - 42 + - + ( ( - + 2 ) ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT ALL ( + + COUNT( * ) ) * - COUNT( * ) AS col1 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3255
SELECT ALL ( + + COUNT ( * ) ) * - COUNT ( * ) AS col1 FROM tab2 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 WHERE NULL < + col2
----
0

skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 WHERE NULL < + col2
----
0

query I rowsort
SELECT ALL col0 * - - col0 AS col0 FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT DISTINCT - SUM( ALL - - col1 ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-3258
SELECT DISTINCT - SUM ( ALL - - col1 ) AS col2 FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT ALL - MIN( DISTINCT + 85 ) FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL - MIN ( DISTINCT + 85 ) FROM tab2
----
-85

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT ALL - 26 * + MAX( DISTINCT + + col0 ) AS col1 FROM tab2 AS cor0
----
-1950

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL - 26 * + MAX ( DISTINCT + + col0 ) AS col1 FROM tab2 AS cor0
----
-1950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3262
SELECT ALL - + col1 * - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3262
SELECT ALL - + col1 * - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col1 + col2 AS col0, - 20 * + - ( + col2 ) + + - col0 * + ( col2 ) FROM tab0
----
100
-7623
128
235
31
-670

query I rowsort
SELECT 35 * + 9 AS col0 FROM tab0
----
315
315
315

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT + SUM( DISTINCT 65 ) FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-3265
SELECT + SUM ( DISTINCT 65 ) FROM tab2
----
65

query II rowsort
SELECT + 74, col2 FROM tab2 AS cor0
----
74
23
74
40
74
58

query I rowsort
SELECT col1 * - + col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * - col0 NOT BETWEEN - + 40 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT ALL - MIN( - col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3269
SELECT ALL - MIN ( - col0 ) AS col0 FROM tab1 AS cor0
----
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < 58
----

query III rowsort
SELECT * FROM tab0 WHERE col1 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 36 + col2 FROM tab2
----
59
76
94

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= - - col1
----

query I rowsort
SELECT - ( + - col2 ) + + + 83 + - + 46 FROM tab0
----
136
47
84

query I rowsort
SELECT col0 * - col2 * - col2 + - col0 AS col2 FROM tab0
----
33120
8613
950600

onlyif mysql # DIV for integer division: 
query I rowsort label-3276
SELECT + col0 + col1 - col2 * 57 DIV + + ( 52 ) - + 88 - + col0 FROM tab0
----
-195
-58
-77

skipif mysql # not compatible
query I rowsort label-3276
SELECT + col0 + col1 - col2 * 57 / + + ( 52 ) - + 88 - + col0 FROM tab0
----
-195
-58
-77

query I rowsort
SELECT DISTINCT + col1 + + col0 * + col0 FROM tab0
----
306
7590
9410

query I rowsort
SELECT - 6 * ( - 18 ) + col2 AS col0 FROM tab0 AS cor0
----
118
155
207

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= - + col2 * + col1 * - col0 / + 22 + + col1
----

query I rowsort
SELECT DISTINCT + 5 AS col1 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT DISTINCT SUM( + - 59 ) FROM tab0 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT SUM ( + - 59 ) FROM tab0 AS cor0
----
-177

query I rowsort
SELECT ALL + 8 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
8
8
8

query I rowsort
SELECT ALL + + 42 AS col2 FROM tab0 AS cor0
----
42
42
42

onlyif mysql # DIV for integer division: 
query I rowsort label-3284
SELECT + col2 DIV + 43 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3284
SELECT + col2 / + 43 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT ALL + MAX( DISTINCT - + 1 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3285
SELECT ALL + MAX ( DISTINCT - + 1 ) FROM tab1 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3286
SELECT + col0 DIV - 5 FROM tab0 cor0
----
-17
-19
-3

skipif mysql # not compatible
query I rowsort label-3286
SELECT + col0 / - 5 FROM tab0 cor0
----
-17
-19
-3

query II rowsort
SELECT ALL + ( + 31 ) AS col1, - col1 AS col1 FROM tab2
----
31
-51
31
-67
31
-77

query I rowsort
SELECT ALL 27 * col2 FROM tab1
----
1593
1836
2592

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 < col1
----
75
67
58

query I rowsort
SELECT + 13 * + - col1 * + col1 FROM tab0 cor0
----
-13
-5733
-85293

query I rowsort
SELECT DISTINCT 83 * - col2 AS col2 FROM tab1 cor0
----
-4897
-5644
-7968

query I rowsort
SELECT - col1 * + col1 + - 53 FROM tab1 AS cor0
----
-2262
-249
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-3293
SELECT DISTINCT - + col2 + - + col1 DIV col1 * + col1 AS col1 FROM tab1 AS cor0
----
-110
-115
-64

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT - + col2 + - + col1 / col1 * + col1 AS col1 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3294
SELECT ALL + col0 / + CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL + col0 / + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 74 ) AS col1 FROM tab1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT ALL ( + COUNT( * ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3296
SELECT ALL ( + COUNT ( * ) ) AS col2 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3297
SELECT 4 DIV - - col0 * + - 37 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3297
SELECT 4 / - - col0 * + - 37 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2, + 26 + col2 col0 FROM tab0
----
10
36
47
73
99
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3299
SELECT col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3299
SELECT col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 16 col0 FROM tab2 AS cor0
----
62
80
91

query I rowsort
SELECT DISTINCT - col1 + + - col1 AS col2 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3302
SELECT ALL 7 FROM tab1 cor0 WHERE NOT - CAST( NULL AS SIGNED ) BETWEEN ( NULL ) AND col1 * col1 / col1
----

skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL 7 FROM tab1 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN ( NULL ) AND col1 * col1 / col1
----

query I rowsort
SELECT + - 51 * + + 39 + 87 AS col2 FROM tab1 AS cor0
----
-1902
-1902
-1902

query I rowsort
SELECT ALL + col0 + - + col2 AS col2 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT + col2 + + col0 + col1 FROM tab2 AS cor0
----
120
181
200

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT ( - COUNT( DISTINCT + col0 ) ) + - MAX( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-3306
SELECT ( - COUNT ( DISTINCT + col0 ) ) + - MAX ( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
-102

query II rowsort
SELECT col2 * + + 39 + - 94 * 46 * + - 55, ( col2 ) AS col0 FROM tab1 AS cor0
----
240121
59
240472
68
241564
96

query II rowsort
SELECT ALL + col2 AS col1, - col2 FROM tab1
----
59
-59
68
-68
96
-96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( - + col0, col2 )
----

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT col1 + - 44 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-3311
SELECT 45, + COUNT( * ) AS col2 FROM tab2
----
45
3

skipif mysql # not compatible
query II rowsort label-3311
SELECT 45, + COUNT ( * ) AS col2 FROM tab2
----
45
3

query II rowsort
SELECT + 52 - - col2, col1 AS col1 FROM tab1
----
111
5
120
47
148
14

query I rowsort
SELECT - ( + ( + col2 ) ) - + - 32 AS col0 FROM tab0
----
-15
-67
22

query II rowsort
SELECT ALL 95, - 40 * - - col0 AS col1 FROM tab1 AS cor0
----
95
-2040
95
-3400
95
-3640

query I rowsort
SELECT + 25 + + col0 AS col1 FROM tab1 AS cor0 WHERE + ( 79 ) IS NOT NULL
----
110
116
76

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 cor0 WHERE col0 IS NULL
----

query II rowsort
SELECT ( - col0 ), col0 AS col0 FROM tab0 cor0 WHERE + 18 IS NOT NULL
----
-15
15
-87
87
-97
97

query II rowsort
SELECT ALL col2, - 90 FROM tab1 AS cor0
----
59
-90
68
-90
96
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT MIN( + col2 ) * - 7 AS col1 FROM tab1
----
-413

skipif mysql # not compatible
query I rowsort label-3319
SELECT MIN ( + col2 ) * - 7 AS col1 FROM tab1
----
-413

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3320
SELECT DISTINCT - COUNT( * ) DIV - 65 AS col0, - CAST( - MAX( DISTINCT col0 ) AS SIGNED ) FROM tab0
----
0
97

skipif mysql # not compatible
query II rowsort label-3320
SELECT DISTINCT - COUNT ( * ) / - 65 AS col0, - CAST ( - MAX ( DISTINCT col0 ) AS INTEGER ) FROM tab0
----
0
97

query I rowsort
SELECT 24 * + col1 * - - col1 FROM tab0 AS cor0
----
10584
157464
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT COUNT( - 11 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3322
SELECT COUNT ( - 11 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + + ( + col0 ) AS col0 FROM tab1 cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT ALL + + COUNT( * ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3324
SELECT ALL + + COUNT ( * ) col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 91 * + col0 AS col2 FROM tab0
----
-1365
-7917
-8827

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT MIN( + - 95 ) AS col2 FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-3326
SELECT MIN ( + - 95 ) AS col2 FROM tab1
----
-95

query II rowsort
SELECT ALL + col2, col2 + 63 FROM tab0
----
10
73
47
110
99
162

query II rowsort
SELECT DISTINCT 69, col2 + col0 AS col0 FROM tab1
----
69
144
69
147
69
159

query I rowsort
SELECT DISTINCT - + col0 FROM tab0 WHERE NULL > col1 * - + col2 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT COUNT( DISTINCT + + col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3330
SELECT COUNT ( DISTINCT + + col1 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT COUNT( * ) * - - COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3331
SELECT COUNT ( * ) * - - COUNT ( * ) FROM tab2
----
9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) < col1 / + + 73
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1 col2, col2 AS col0 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3334
SELECT ALL - CAST( 85 AS SIGNED ) + - - col1 FROM tab2 AS cor0
----
-18
-34
-8

skipif mysql # not compatible
query I rowsort label-3334
SELECT ALL - CAST ( 85 AS INTEGER ) + - - col1 FROM tab2 AS cor0
----
-18
-34
-8

query I rowsort
SELECT - 19 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3336
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2, tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - col2 * + + 53 * + 15 AS col2 FROM tab1
----
-46905
-54060
-76320

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 - + + col1 NOT BETWEEN - - ( - col0 ) + + + col2 AND NULL
----
51
14
96

query I rowsort
SELECT 6 + ( ( 49 ) ) FROM tab1 cor0
----
55
55
55

onlyif mysql # DIV for integer division: 
query I rowsort label-3340
SELECT 9 DIV + col1 + - col2 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3340
SELECT 9 / + col1 + - col2 FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT - ( col2 ) * + col1 + ( - 99 ) + + - 32 FROM tab1
----
-1475
-3327
-426

query I rowsort
SELECT DISTINCT 44 * 65 AS col0 FROM tab2
----
2860

query I rowsort
SELECT ALL 49 * + 33 - - 32 AS col0 FROM tab0
----
1649
1649
1649

query I rowsort
SELECT col0 + - - 62 + col1 AS col0 FROM tab2
----
159
203
204

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + - col1 + + 10 - + 96 )
----

query I rowsort
SELECT 11 + - - ( col2 ) AS col0 FROM tab2
----
34
51
69

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT - ( + + 10 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT - - COUNT( * ) AS col0 FROM tab2 WHERE - col2 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3348
SELECT - - COUNT ( * ) AS col0 FROM tab2 WHERE - col2 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT + col2 + + 54 FROM tab0
----
101
153
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3350
SELECT DISTINCT CAST( NULL AS SIGNED ) / col2 col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3350
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col2 col0 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > col1 * + 2 * 85
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > 4
----

query I rowsort
SELECT - 34 AS col1 FROM tab2 cor0
----
-34
-34
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-3354
SELECT + 34 DIV + 36 col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3354
SELECT + 34 / + 36 col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - col0, - 91 col0 FROM tab0
----
-225
-91
-7569
-91
-9409
-91

query I rowsort
SELECT ALL col1 + - - col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
141
142
97

query I rowsort
SELECT + 55 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col2, - col0 AS col0 FROM tab2 AS cor0
----
-51
-46
-67
-75
-77
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-3359
SELECT - - COUNT( * ) AS col2, + 61 FROM tab1 AS cor0
----
3
61

skipif mysql # not compatible
query II rowsort label-3359
SELECT - - COUNT ( * ) AS col2, + 61 FROM tab1 AS cor0
----
3
61

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 19 ) > NULL
----

query I rowsort
SELECT 50 * - col1 FROM tab1 AS cor0
----
-2350
-250
-700

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3362
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * col1 + + - 68 NOT BETWEEN CAST( NULL AS SIGNED ) - - + 2 * - - col2 AND - col0
----

skipif mysql # not compatible
query III rowsort label-3362
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * col1 + + - 68 NOT BETWEEN CAST ( NULL AS INTEGER ) - - + 2 * - - col2 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT ALL MIN( ALL - + col2 ) col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3363
SELECT ALL MIN ( ALL - + col2 ) col2 FROM tab1 AS cor0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3364
SELECT + + col2 + - + col2 DIV col0 AS col1 FROM tab0 AS cor0
----
10
44
98

skipif mysql # not compatible
query I rowsort label-3364
SELECT + + col2 + - + col2 / col0 AS col1 FROM tab0 AS cor0
----
10
44
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3365
SELECT + - 17 AS col1, - col1 AS col2 FROM tab0 WHERE NOT CAST( col0 AS SIGNED ) - + col1 > + - col1
----

skipif mysql # not compatible
query II rowsort label-3365
SELECT + - 17 AS col1, - col1 AS col2 FROM tab0 WHERE NOT CAST ( col0 AS INTEGER ) - + col1 > + - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3366
SELECT + 1 + COUNT( * ), - COUNT( * ) DIV 51 * 85 AS col0 FROM tab1
----
4
0

skipif mysql # not compatible
query II rowsort label-3366
SELECT + 1 + COUNT ( * ), - COUNT ( * ) / 51 * 85 AS col0 FROM tab1
----
4
0

query I rowsort
SELECT DISTINCT ( - 96 ) FROM tab2
----
-96

query I rowsort
SELECT - - col1 AS col0 FROM tab0 WHERE NOT + + col2 + - col0 < + 39
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3369
SELECT CAST( - COUNT( DISTINCT - ( - - 0 ) ) AS SIGNED ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3369
SELECT CAST ( - COUNT ( DISTINCT - ( - - 0 ) ) AS INTEGER ) FROM tab2
----
-1

query I rowsort
SELECT 3 - + col0 + + - col0 AS col2 FROM tab2 WHERE NOT NULL <= + col0 + + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3371
SELECT - COUNT( * ) AS col2, COUNT( * ) AS col0 FROM tab1, tab1 AS cor0
----
-9
9

skipif mysql # not compatible
query II rowsort label-3371
SELECT - COUNT ( * ) AS col2, COUNT ( * ) AS col0 FROM tab1, tab1 AS cor0
----
-9
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3372
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + 26 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + 26 FROM tab2
----
NULL

query II rowsort
SELECT - ( col2 ) AS col0, 3 * - col1 FROM tab2 cor0
----
-23
-153
-40
-231
-58
-201

query I rowsort
SELECT col1 * - + 0 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3375
SELECT DISTINCT ( - col2 ), 49 DIV 93 AS col0 FROM tab0 AS cor0
----
-10
0
-47
0
-99
0

skipif mysql # not compatible
query II rowsort label-3375
SELECT DISTINCT ( - col2 ), 49 / 93 AS col0 FROM tab0 AS cor0
----
-10
0
-47
0
-99
0

query II rowsort
SELECT DISTINCT + + ( 3 ), + col2 FROM tab1 cor0
----
3
59
3
68
3
96

query I rowsort
SELECT - 17 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT DISTINCT col2 * - 9 * - + col1 * - col0 * + ( + + 57 ) + - col0 + - + col2 AS col2 FROM tab1
----
-12863619
-149199027
-35163219

query I rowsort
SELECT - col2 * - col1 AS col0 FROM tab1 WHERE - 19 * - ( - 58 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3380
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3380
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT ALL COUNT( * ) + 96 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL COUNT ( * ) + 96 FROM tab2
----
99

query I rowsort
SELECT DISTINCT - ( col2 ) + - + col0 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3383
SELECT DISTINCT + 69 * CAST( NULL AS SIGNED ) + + COUNT( * ) / + COUNT( * ) + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT + 69 * CAST ( NULL AS INTEGER ) + + COUNT ( * ) / + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 * col2 + + + ( - + col2 ) IS NULL )
----

query I rowsort
SELECT ALL + col2 + - col0 * - 27 * - 27 + 14 + 19 AS col2 FROM tab2 AS cor0
----
-33478
-46583
-54584

onlyif mysql # DIV for integer division: 
query I rowsort label-3386
SELECT DISTINCT + col0 DIV + 9 + + col1 FROM tab1 AS cor0
----
14
19
57

skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT + col0 / + 9 + + col1 FROM tab1 AS cor0
----
14
19
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3387
SELECT DISTINCT col2 * + col0 * - 87 - + col1 + - CAST( NULL AS SIGNED ) * + 47 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3387
SELECT DISTINCT col2 * + col0 * - 87 - + col1 + - CAST ( NULL AS INTEGER ) * + 47 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3388
SELECT col2, CAST( NULL AS SIGNED ) FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-3388
SELECT col2, CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( - - col0 ) <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col2 BETWEEN NULL AND - 71 - + - 26 + + col1 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - 30 col0 FROM tab1
----
115
121
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3392
SELECT ALL 93 * 59 DIV COUNT( * ) AS col2 FROM tab0
----
1829

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL 93 * 59 / COUNT ( * ) AS col2 FROM tab0
----
1829

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3393
SELECT SUM( DISTINCT - CAST( + + col1 AS SIGNED ) ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-3393
SELECT SUM ( DISTINCT - CAST ( + + col1 AS INTEGER ) ) FROM tab1
----
-66

query I rowsort
SELECT ALL + 53 * + - ( - 5 ) FROM tab0
----
265
265
265

query III rowsort
SELECT * FROM tab1 WHERE + - col0 * + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3396
SELECT DISTINCT - ( + + col1 ) DIV ( col1 ) * + - 86 + + - 80 + + - 46 AS col0, + col2 AS col2 FROM tab2
----
-40
23
-40
40
-40
58

skipif mysql # not compatible
query II rowsort label-3396
SELECT DISTINCT - ( + + col1 ) / ( col1 ) * + - 86 + + - 80 + + - 46 AS col0, + col2 AS col2 FROM tab2
----
-40
23
-40
40
-40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3397
SELECT + 74 * + + col1 DIV col1 FROM tab2
----
74
74
74

skipif mysql # not compatible
query I rowsort label-3397
SELECT + 74 * + + col1 / col1 FROM tab2
----
74
74
74

onlyif mysql # DIV for integer division: 
query I rowsort label-3398
SELECT col2 DIV - + col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3398
SELECT col2 / - + col2 FROM tab1
----
-1
-1
-1

query II rowsort
SELECT + 6 * - col2 AS col1, ( + col2 ) AS col0 FROM tab0
----
-282
47
-594
99
-60
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT ALL + ( SUM( DISTINCT - col0 ) ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL + ( SUM ( DISTINCT - col0 ) ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) < - 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT COUNT( 54 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3403
SELECT COUNT ( 54 ) col2 FROM tab0
----
3

query I rowsort
SELECT ALL + col0 * + 62 FROM tab1
----
3162
5270
5642

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3405
SELECT DISTINCT - 30 DIV - + COUNT( - col2 ) AS col1, COUNT( * ) col0 FROM tab0
----
10
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3405
SELECT DISTINCT - 30 / - + COUNT ( - col2 ) AS col1, COUNT ( * ) col0 FROM tab0
----
10
3

query I rowsort
SELECT ALL - - 41 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT DISTINCT ( + COUNT( * ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3407
SELECT DISTINCT ( + COUNT ( * ) ) FROM tab2
----
3

query I rowsort
SELECT + col1 * - 52 FROM tab2
----
-2652
-3484
-4004

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT - + MAX( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3409
SELECT - + MAX ( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3411
SELECT DISTINCT COUNT( * ) col1, - SUM( + col0 ) + + 90 * - + 11 FROM tab1 AS cor0
----
3
-1217

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3411
SELECT DISTINCT COUNT ( * ) col1, - SUM ( + col0 ) + + 90 * - + 11 FROM tab1 AS cor0
----
3
-1217

onlyif mysql # aggregate syntax: 
query II rowsort label-3412
SELECT DISTINCT + COUNT( * ), 27 * + - 54 AS col0 FROM tab0 AS cor0 WHERE NOT 13 IS NULL
----
3
-1458

skipif mysql # not compatible
query II rowsort label-3412
SELECT DISTINCT + COUNT ( * ), 27 * + - 54 AS col0 FROM tab0 AS cor0 WHERE NOT 13 IS NULL
----
3
-1458

query I rowsort
SELECT ALL - ( - + col1 ) * 70 FROM tab2 AS cor0
----
3570
4690
5390

query I rowsort
SELECT DISTINCT - col1 * + - col0 FROM tab2 AS cor0
----
2346
4928
5025

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT ALL - + COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL - + COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT + - col2 FROM tab1 WHERE NOT - col1 IS NULL
----
-59
-68
-96

query I rowsort
SELECT - ( + + 30 ) FROM tab2
----
-30
-30
-30

query I rowsort
SELECT ALL - col2 + 90 + + 26 FROM tab1
----
20
48
57

query I rowsort
SELECT - ( - + col2 ) AS col2 FROM tab2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 90 + + - col2 col2 FROM tab2
----
118
127
99

onlyif mysql # DIV for integer division: 
query II rowsort label-3422
SELECT col0 + - col0 AS col2, col0 DIV - col2 FROM tab1
----
0
-1
0
-1
0
0

skipif mysql # not compatible
query II rowsort label-3422
SELECT col0 + - col0 AS col2, col0 / - col2 FROM tab1
----
0
-1
0
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3423
SELECT - 45 + 40 + - + COUNT( * ) DIV MAX( + - col0 ) + - - COUNT( * ) + + 27, COUNT( * ) col1 FROM tab0
----
25
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3423
SELECT - 45 + 40 + - + COUNT ( * ) / MAX ( + - col0 ) + - - COUNT ( * ) + + 27, COUNT ( * ) col1 FROM tab0
----
25
3

query II rowsort
SELECT col0 + + - 57 + - col1 + + + ( - - 92 ) * + col0 * + col2, + ( + col0 ) * + 42 AS col2 FROM tab1
----
450412
2142
461403
3570
569283
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT ALL + 14 * - 8 + - COUNT( * ) - + 29 + + 64 FROM tab2 cor0
----
-80

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL + 14 * - 8 + - COUNT ( * ) - + 29 + + 64 FROM tab2 cor0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT MAX( 49 ) FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-3426
SELECT MAX ( 49 ) FROM tab2
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 35 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 98 + 24 col0 FROM tab0 AS cor0
----
-74

query I rowsort
SELECT col1 * + col1 * 12 - col2 * - - col0 AS col2 FROM tab0 cor0
----
-9591
4422
78027

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN - col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT col0 - - 46 AS col1 FROM tab2
----
110
121
92

query I rowsort
SELECT + col2 + + 86 AS col2 FROM tab2
----
109
126
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3433
SELECT CAST( - + 63 AS SIGNED ) * - col2 FROM tab0
----
2961
6237
630

skipif mysql # not compatible
query I rowsort label-3433
SELECT CAST ( - + 63 AS INTEGER ) * - col2 FROM tab0
----
2961
6237
630

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT MIN( ALL + - 69 ) AS col0 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-3434
SELECT MIN ( ALL + - 69 ) AS col0 FROM tab1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT ALL 90 * + 91 * ( - SUM( ALL + col0 ) ) col2 FROM tab1
----
-1859130

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3435
SELECT ALL 90 * + 91 * ( - SUM ( ALL + col0 ) ) col2 FROM tab1
----
-1859130

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT DISTINCT MIN( ALL - + col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT MIN ( ALL - + col2 ) FROM tab0
----
-99

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + 77 - + col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT DISTINCT - COUNT( ALL + + 4 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3438
SELECT DISTINCT - COUNT ( ALL + + 4 ) AS col2 FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT + 64 * + - col2 * - col1 < - col1 + + col2 ) OR 87 >= - + col1 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3440
SELECT - 32 DIV + col2 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-3440
SELECT - 32 / + col2 FROM tab0 AS cor0
----
-3
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL <= col1 + - - col2 / - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3442
SELECT ALL + 64 + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL + 64 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 82 + - 91 AS col0 FROM tab1
----
-9

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 * 85 + col2 * + col0 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= col1 + 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT ALL COUNT( * ) + 19 AS col2 FROM tab2 WHERE NOT col2 + col2 >= - col0
----
19

skipif mysql # not compatible
query I rowsort label-3446
SELECT ALL COUNT ( * ) + 19 AS col2 FROM tab2 WHERE NOT col2 + col2 >= - col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3447
SELECT - CAST( NULL AS SIGNED ) + COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3447
SELECT - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT col1 * col2 AS col0 FROM tab2 WHERE NOT NULL > col0 * col1 + + col2 * - 65
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 89 NOT BETWEEN col1 * - 2 AND - col2 + - col2
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT MAX( ALL - 9 ) col1 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3450
SELECT MAX ( ALL - 9 ) col1 FROM tab2
----
-9

query I rowsort
SELECT DISTINCT 44 FROM tab1 WHERE NOT col1 NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT 24 AS col2 FROM tab2 WHERE ( - 62 ) >= 89 + - col0
----

query I rowsort
SELECT DISTINCT col0 * - col2 - 84 FROM tab1
----
-4980
-5099
-6272

onlyif mysql # DIV for integer division: 
query I rowsort label-3454
SELECT col0 + - col0 DIV - col1 AS col1 FROM tab1 WHERE NOT + 15 IN ( - 49 + - 77 )
----
102
54
92

skipif mysql # not compatible
query I rowsort label-3454
SELECT col0 + - col0 / - col1 AS col1 FROM tab1 WHERE NOT + 15 IN ( - 49 + - 77 )
----
102
54
92

query I rowsort
SELECT + 94 FROM tab1 WHERE 51 IN ( + col1 )
----

query I rowsort
SELECT + 4 * + 9 FROM tab1
----
36
36
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 col1 FROM tab2 WHERE NOT 58 IS NOT NULL
----

query I rowsort
SELECT 29 * 47 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 * - 30 AS col0 FROM tab1
----
-1770
-2040
-2880

query I rowsort
SELECT + 89 * col0 + - col2 AS col1 FROM tab2
----
4071
5656
6617

query III rowsort
SELECT ALL * FROM tab0 WHERE + 90 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3462
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3462
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT ( ( COUNT( * ) ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3463
SELECT ( ( COUNT ( * ) ) ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT ALL + COUNT( ALL + col1 ) AS col1 FROM tab2 WHERE NOT + 53 * col0 + - col2 NOT BETWEEN NULL AND ( 49 * 20 + 95 )
----
0

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL + COUNT ( ALL + col1 ) AS col1 FROM tab2 WHERE NOT + 53 * col0 + - col2 NOT BETWEEN NULL AND ( 49 * 20 + 95 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3465
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 ) BETWEEN 45 * - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 14 col1 FROM tab2 AS cor0
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT COUNT( - col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3468
SELECT COUNT ( - col1 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col0 - 91 AS col2 FROM tab2 AS cor0
----
-137
-155
-166

query I rowsort
SELECT - col0 - + 79 AS col0 FROM tab1 AS cor0
----
-130
-164
-170

onlyif mysql # DIV for integer division: 
query I rowsort label-3471
SELECT ALL - col1 DIV - col2 + - 32 AS col1 FROM tab0
----
-30
-31
-32

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL - col1 / - col2 + - 32 AS col1 FROM tab0
----
-30
-31
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3472
SELECT - CAST( NULL AS SIGNED ) + - col2 * col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3472
SELECT - CAST ( NULL AS INTEGER ) + - col2 * col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 59 * - 6 AS col1 FROM tab0 AS cor0
----
354
354
354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3474
SELECT CAST( 75 AS SIGNED ) * 43 FROM tab2 AS cor0
----
3225
3225
3225

skipif mysql # not compatible
query I rowsort label-3474
SELECT CAST ( 75 AS INTEGER ) * 43 FROM tab2 AS cor0
----
3225
3225
3225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 col1 FROM tab1 cor0
----
89
89
89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3476
SELECT DISTINCT * FROM tab0 cor0 WHERE ( col1 + col2 ) NOT BETWEEN ( NULL ) AND - CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3476
SELECT DISTINCT * FROM tab0 cor0 WHERE ( col1 + col2 ) NOT BETWEEN ( NULL ) AND - CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 ) IS NULL
----

query I rowsort
SELECT + col0 - 50 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-4
14
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT ALL - MIN( DISTINCT - 4 ) FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL - MIN ( DISTINCT - 4 ) FROM tab1 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT ALL SUM( DISTINCT + col1 ) AS col2 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL SUM ( DISTINCT + col1 ) AS col2 FROM tab2 cor0
----
195

query I rowsort
SELECT ALL 30 * col0 FROM tab1 WHERE + col1 * col1 IS NOT NULL
----
1530
2550
2730

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 - ( col1 + - col0 ) > NULL
----

query I rowsort
SELECT 72 * + - 37 AS col2 FROM tab2
----
-2664
-2664
-2664

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3484
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT + CAST ( NULL AS REAL ) * + + col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 81 + - 80 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3486
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 14 - - col0 col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3486
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 14 - - col0 col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3487
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-3487
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT ALL + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT ALL SUM( ALL - - col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL SUM ( ALL - - col1 ) FROM tab0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3490
SELECT DISTINCT col1 * + col1 + - col1 + - CAST( 88 AS SIGNED ) * - 39 * + col2 FROM tab2
----
143132
203478
81486

skipif mysql # not compatible
query I rowsort label-3490
SELECT DISTINCT col1 * + col1 + - col1 + - CAST ( 88 AS INTEGER ) * - 39 * + col2 FROM tab2
----
143132
203478
81486

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 95 <> ( + 1 )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3492
SELECT ALL + 83 DIV - MIN( DISTINCT + + 1 ) + + ( - COUNT( ALL col0 ) ) col2 FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3492
SELECT ALL + 83 / - MIN ( DISTINCT + + 1 ) + + ( - COUNT ( ALL col0 ) ) col2 FROM tab1 AS cor0
----
-86

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 44 > + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT 1 + - SUM( - col1 + - col1 ) FROM tab0 AS cor0 WHERE NOT ( col2 ) IN ( col1 * + col0 )
----
207

skipif mysql # not compatible
query I rowsort label-3494
SELECT 1 + - SUM ( - col1 + - col1 ) FROM tab0 AS cor0 WHERE NOT ( col2 ) IN ( col1 * + col0 )
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT ( - COUNT( * ) ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3495
SELECT ( - COUNT ( * ) ) col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3496
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL + - 43 + ( + col1 ) AS col1 FROM tab2 AS cor0
----
24
34
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 AS cor0 WHERE ( col2 ) IS NOT NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 col2 FROM tab1 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-3500
SELECT col0 DIV + - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3500
SELECT col0 / + - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IS NOT NULL AND NOT - - col1 BETWEEN ( col1 ) AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3503
SELECT col2 + 44 col2, col2 + CAST( NULL AS SIGNED ) * - 60 FROM tab0
----
143
NULL
54
NULL
91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3503
SELECT col2 + 44 col2, col2 + CAST ( NULL AS INTEGER ) * - 60 FROM tab0
----
143
NULL
54
NULL
91
NULL

query I rowsort
SELECT - col1 + + + 87 + + col2 * - col2 FROM tab1
----
-3399
-4584
-9143

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3505
SELECT ALL * FROM tab2 WHERE CAST( - + ( 79 ) AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-3505
SELECT ALL * FROM tab2 WHERE CAST ( - + ( 79 ) AS INTEGER ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3506
SELECT + 31 FROM tab0 cor0 WHERE - CAST( NULL AS SIGNED ) NOT IN ( col0 * + + 22 * - col0 )
----

skipif mysql # not compatible
query I rowsort label-3506
SELECT + 31 FROM tab0 cor0 WHERE - CAST ( NULL AS INTEGER ) NOT IN ( col0 * + + 22 * - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col0, col2 )
----

query I rowsort
SELECT ALL - + 12 FROM tab0 AS cor0 WHERE + col1 BETWEEN - + 43 AND NULL
----

query I rowsort
SELECT - 14 AS col2 FROM tab1 AS cor0 WHERE col0 IN ( + 75 * col2 * + 71 )
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( + col1 ) - + col0 FROM tab2
----
-8
13
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 6 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3513
SELECT ALL + col2 DIV - 30 col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3513
SELECT ALL + col2 / - 30 col0 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT DISTINCT + + MIN( ALL + 67 ) AS col0 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-3514
SELECT DISTINCT + + MIN ( ALL + 67 ) AS col0 FROM tab0 AS cor0
----
67

query I rowsort
SELECT + 38 * + + 79 + + + col2 FROM tab0 AS cor0
----
3012
3049
3101

query I rowsort
SELECT - + 41 FROM tab1 cor0
----
-41
-41
-41

query I rowsort
SELECT - - 56 AS col1 FROM tab1 AS cor0
----
56
56
56

query I rowsort
SELECT + - 57 AS col0 FROM tab0 AS cor0
----
-57
-57
-57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3519
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-3519
SELECT - CAST ( NULL AS REAL ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT DISTINCT + SUM( DISTINCT col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-3520
SELECT DISTINCT + SUM ( DISTINCT col0 ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT - 42 + - col0 * col2 AS col0 FROM tab1 AS cor0 WHERE ( - col0 + col1 / - col1 ) NOT IN ( + col2 )
----
-4938
-5057
-6230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3522
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) FROM tab2 WHERE + col2 * + col1 / - col0 + - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3522
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 WHERE + col2 * + col1 / - col0 + - col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT col1 * - + col0 AS col0 FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 <> + 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT MIN( DISTINCT - col0 ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-3525
SELECT MIN ( DISTINCT - col0 ) AS col0 FROM tab0
----
-97

query II rowsort
SELECT DISTINCT + col2, col2 FROM tab0
----
10
10
47
47
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 74 col1 FROM tab1
----
74

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 > col1 * - col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 90 > ( + 95 / col0 - + + 54 + col1 + - col2 )
----

query I rowsort
SELECT 24 * - col2 FROM tab0 WHERE NOT ( + ( ( + - col0 ) ) ) NOT BETWEEN ( 41 ) AND ( 39 * + 20 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 < + 24
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( NULL IS NULL ) )
----

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT + - col0 * + + col2 IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col1, col0 )
----

query II rowsort
SELECT DISTINCT + - col0, - 51 AS col0 FROM tab1 AS cor0
----
-51
-51
-85
-51
-91
-51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 8 * + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 49 col0, + col2 * - - col2 FROM tab0 AS cor0
----
49
100
49
2209
49
9801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3539
SELECT COUNT( * ) FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-3539
SELECT COUNT ( * ) FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND + col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + + col1 ) col2 FROM tab2
----
51
67
77

query I rowsort
SELECT col1 + ( - col0 ) + col1 FROM tab0
----
-45
-95
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3542
SELECT + - CAST( - - col1 AS SIGNED ) + 4 FROM tab1 AS cor0
----
-1
-10
-43

skipif mysql # not compatible
query I rowsort label-3542
SELECT + - CAST ( - - col1 AS INTEGER ) + 4 FROM tab1 AS cor0
----
-1
-10
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT DISTINCT - COUNT( * ) + + + 7 FROM tab1 AS cor0 WHERE NOT 85 IS NOT NULL
----
7

skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT - COUNT ( * ) + + + 7 FROM tab1 AS cor0 WHERE NOT 85 IS NOT NULL
----
7

query I rowsort
SELECT - col1 * col0 + + - ( - - col0 ) * + - 59 + 15 AS col0 FROM tab1 cor0
----
1107
2310
4605

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col1 ) NOT IN ( + col2 * + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 0 + + + 52 AS col1 FROM tab2 AS cor0
----
52
52
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3547
SELECT + COUNT( * ) + - 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-3547
SELECT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 + col0 - - 91 FROM tab0 AS cor0
----
157
187
25

query I rowsort
SELECT col0 * + 71 + 33 AS col2 FROM tab0 AS cor0
----
1098
6210
6920

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT DISTINCT + ( - SUM( col2 ) ) FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT + ( - SUM ( col2 ) ) FROM tab1 cor0
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3551
SELECT DISTINCT 36 * - col2, + col1 FROM tab0 WHERE NOT + + col0 * - - CAST( NULL AS SIGNED ) IS NOT NULL
----
-1692
81
-3564
1
-360
21

skipif mysql # not compatible
query II rowsort label-3551
SELECT DISTINCT 36 * - col2, + col1 FROM tab0 WHERE NOT + + col0 * - - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-1692
81
-3564
1
-360
21

query I rowsort
SELECT + col0 * - 42 AS col0 FROM tab0
----
-3654
-4074
-630

onlyif mysql # DIV for integer division: 
query I rowsort label-3553
SELECT ALL col0 * + col1 DIV + col1 col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3553
SELECT ALL col0 * + col1 / + col1 col0 FROM tab1
----
51
85
91

query II rowsort
SELECT - col2 * col2 * 13, - col1 AS col1 FROM tab1
----
-119808
-14
-45253
-5
-60112
-47

query II rowsort
SELECT DISTINCT + + 6, 25 AS col2 FROM tab1 WHERE NOT + col1 IS NULL
----
6
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3556
SELECT + CAST( + col1 AS SIGNED ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3556
SELECT + CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 88 * + col2 AS col1 FROM tab1
----
-5192
-5984
-8448

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 95 ) NOT BETWEEN col2 AND + 23 AND NOT 56 <= + col0 * - 46 + col0 / 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT - + COUNT( * ) FROM tab0 WHERE NULL >= + - col0 - + + col0
----
0

skipif mysql # not compatible
query I rowsort label-3559
SELECT - + COUNT ( * ) FROM tab0 WHERE NULL >= + - col0 - + + col0
----
0

query I rowsort
SELECT ALL - 92 * col2 AS col1 FROM tab0
----
-4324
-9108
-920

query I rowsort
SELECT + 99 * + - col0 FROM tab0 AS cor0
----
-1485
-8613
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT DISTINCT + - MIN( col0 ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3562
SELECT DISTINCT + - MIN ( col0 ) AS col1 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT DISTINCT - + ( - + ( - col1 ) ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT ALL + + MAX( DISTINCT + + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL + + MAX ( DISTINCT + + col1 ) FROM tab2 AS cor0
----
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> 41 / - col2
----

query I rowsort
SELECT DISTINCT 89 * 37 AS col0 FROM tab1 AS cor0
----
3293

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT - 84 * + 73 = - + col0 + col1
----
15
87
97

query I rowsort
SELECT ALL col1 * ( - col2 ) FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT ( - + 23 ) FROM tab1
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT ALL + MIN( ALL - col2 ) col2 FROM tab1
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3570
SELECT ALL + MIN ( ALL - col2 ) col2 FROM tab1
----
-96

query I rowsort
SELECT - col0 * 59 FROM tab1
----
-3009
-5015
-5369

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 IS NULL
----

query I rowsort
SELECT ( - 32 ) AS col0 FROM tab2
----
-32
-32
-32

query II rowsort
SELECT col2, col1 * - - 6 FROM tab1
----
59
30
68
282
96
84

query I rowsort
SELECT + col2 * + col1 + 99 FROM tab1
----
1443
3295
394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3576
SELECT CAST( NULL AS SIGNED ) * - + MAX( ALL col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3576
SELECT CAST ( NULL AS INTEGER ) * - + MAX ( ALL col2 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3577
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT DISTINCT col2 + - 60 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-13
-50
39

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE + col2 - + 87 > + - col1
----
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3580
SELECT ALL - + COUNT( * ) + + - CAST( SUM( DISTINCT - 71 ) AS SIGNED ) DIV + + 65 col2 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3580
SELECT ALL - + COUNT ( * ) + + - CAST ( SUM ( DISTINCT - 71 ) AS INTEGER ) / + + 65 col2 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT - col0 - + - col0 * - 4 * + 56 FROM tab1 AS cor0
----
-11475
-19125
-20475

query I rowsort
SELECT DISTINCT + - col1 + - 40 FROM tab0 AS cor0
----
-121
-41
-61

query I rowsort
SELECT DISTINCT + 90 AS col2 FROM tab2 cor0
----
90

query II rowsort
SELECT + + 69 + - 88 AS col1, + 35 AS col0 FROM tab0 AS cor0
----
-19
35
-19
35
-19
35

query I rowsort
SELECT ALL 95 - + + col2 * - 70 FROM tab0 AS cor0
----
3385
7025
795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3586
SELECT + 77 * + - CAST( - - col0 AS SIGNED ) + + col1 AS col2 FROM tab1
----
-3913
-6540
-6960

skipif mysql # not compatible
query I rowsort label-3586
SELECT + 77 * + - CAST ( - - col0 AS INTEGER ) + + col1 AS col2 FROM tab1
----
-3913
-6540
-6960

query I rowsort
SELECT 34 + 57 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 * - - ( col1 ) * - col1 + + + col0 FROM tab0 WHERE NOT ( - 87 + - ( col2 ) IS NOT NULL )
----

query I rowsort
SELECT col0 + + 63 - - 51 FROM tab1
----
165
199
205

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3590
SELECT DISTINCT 31 * + + col0 AS col2, col2 * - CAST( ( - col0 ) AS SIGNED ) FROM tab0
----
2697
870
3007
9603
465
705

skipif mysql # not compatible
query II rowsort label-3590
SELECT DISTINCT 31 * + + col0 AS col2, col2 * - CAST ( ( - col0 ) AS INTEGER ) FROM tab0
----
2697
870
3007
9603
465
705

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 44 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT MAX( + col2 ) + MAX( col1 ) - - 76 AS col1 FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-3592
SELECT MAX ( + col2 ) + MAX ( col1 ) - - 76 AS col1 FROM tab1
----
219

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3593
SELECT * FROM tab2 WHERE ( NOT 12 + - 63 * + col1 * - CAST( col0 AS SIGNED ) * - - col2 = - + 72 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3593
SELECT * FROM tab2 WHERE ( NOT 12 + - 63 * + col1 * - CAST ( col0 AS INTEGER ) * - - col2 = - + 72 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + 95 AND col2 * - 31 + - col1
----

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( NOT col0 > NULL ) )
----

query I rowsort
SELECT ( - - col2 ) * + + 96 FROM tab1
----
5664
6528
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT ALL + + COUNT( * ) - + ( - 81 ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL + + COUNT ( * ) - + ( - 81 ) FROM tab0 AS cor0
----
84

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3598
SELECT ALL - 79 + CAST( - col1 AS SIGNED ) + - 24 / + CAST( NULL AS DECIMAL ) * ( - - 76 ) * + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL - 79 + CAST ( - col1 AS INTEGER ) + - 24 / + CAST ( NULL AS REAL ) * ( - - 76 ) * + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT - - COUNT( DISTINCT - + col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3599
SELECT - - COUNT ( DISTINCT - + col1 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3600
SELECT ALL - 10 DIV - col2 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL - 10 / - col2 AS col2 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3601
SELECT - CAST( COUNT( * ) AS SIGNED ) AS col0, COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3601
SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col0, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3
3

query I rowsort
SELECT - 35 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT - COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3603
SELECT - COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( + 61 ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NOT - 30 BETWEEN NULL AND + + col1 * - + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3605
SELECT - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NOT - 30 BETWEEN NULL AND + + col1 * - + col1 )
----
0

query I rowsort
SELECT - + 34 * - col0 FROM tab0 cor0
----
2958
3298
510

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3607
SELECT DISTINCT - CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3607
SELECT DISTINCT - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL

query I rowsort
SELECT - + 65 * 48 * - 68 FROM tab0 AS cor0
----
212160
212160
212160

query I rowsort
SELECT - 83 * + 49 * ( - col0 ) FROM tab2 AS cor0
----
187082
260288
305025

query I rowsort
SELECT DISTINCT + col1 FROM tab0 cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT + COUNT( * ) / - + AVG ( ALL col2 ) FROM tab1 AS cor0 WHERE NOT ( ( + col0 ) IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3611
SELECT + COUNT ( * ) / - + AVG ( ALL col2 ) FROM tab1 AS cor0 WHERE NOT ( ( + col0 ) IS NOT NULL )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT NULL IS NULL ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * 94 + - - ( + col0 ) / 90 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3614
SELECT + COUNT( * ) DIV 39 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3614
SELECT + COUNT ( * ) / 39 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 21 * + col0 AS col2 FROM tab1
----
-1071
-1785
-1911

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT DISTINCT - MIN( + col2 ) col2 FROM tab0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3616
SELECT DISTINCT - MIN ( + col2 ) col2 FROM tab0
----
-10

query I rowsort
SELECT + 64 * col2 + col0 + 94 - + + col1 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1561
2641
3814

query I rowsort
SELECT col0 + - 93 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3619
SELECT DISTINCT COUNT( * ) / CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3619
SELECT DISTINCT COUNT ( * ) / CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 90 * + - col2 FROM tab0
----
-4230
-8910
-900

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3622
SELECT DISTINCT + 74 + - 70 DIV col1 AS col1 FROM tab0 AS cor0
----
4
71
74

skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT + 74 + - 70 / col1 AS col1 FROM tab0 AS cor0
----
4
71
74

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col1 * - 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 50 + - col1, - 69, - 20 )
----
0

skipif mysql # not compatible
query I rowsort label-3624
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 50 + - col1, - 69, - 20 )
----
0

query I rowsort
SELECT DISTINCT ( col1 ) FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT DISTINCT + COUNT( + ( - col2 ) ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3626
SELECT DISTINCT + COUNT ( + ( - col2 ) ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT DISTINCT - + MIN( - - 57 ) AS col2 FROM tab1 cor0 WHERE NOT NULL IN ( 30 * + 81 + + col1, + col2, - col2 + - col1 * col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT - + MIN ( - - 57 ) AS col2 FROM tab1 cor0 WHERE NOT NULL IN ( 30 * + 81 + + col1, + col2, - col2 + - col1 * col1 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3628
SELECT + + COUNT( * ) * - CAST( + 54 AS SIGNED ) FROM tab1 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-3628
SELECT + + COUNT ( * ) * - CAST ( + 54 AS INTEGER ) FROM tab1 AS cor0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT + 8 * + COUNT( * ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-3629
SELECT + 8 * + COUNT ( * ) FROM tab1 AS cor0
----
24

query III rowsort
SELECT * FROM tab2 WHERE ( - 37 + + col1 / + - col2 + col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT ALL COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 81 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3631
SELECT ALL COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 81 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3632
SELECT + CAST( NULL AS SIGNED ) * - - 52 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3632
SELECT + CAST ( NULL AS INTEGER ) * - - 52 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT ALL + COUNT( * ) + + - COUNT( * ) + + + MAX( DISTINCT 27 ) FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL + COUNT ( * ) + + - COUNT ( * ) + + + MAX ( DISTINCT 27 ) FROM tab1 AS cor0
----
27

query I rowsort
SELECT + col1 + - 7 FROM tab0 AS cor0
----
-6
14
74

onlyif mysql # DIV for integer division: 
query I rowsort label-3635
SELECT DISTINCT + 29 DIV 90 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3635
SELECT DISTINCT + 29 / 90 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE col1 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT - COUNT( DISTINCT + 4 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3637
SELECT - COUNT ( DISTINCT + 4 ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT DISTINCT + COUNT( * ) - 11 AS col0 FROM tab1 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-3638
SELECT DISTINCT + COUNT ( * ) - 11 AS col0 FROM tab1 cor0
----
-8

query II rowsort
SELECT DISTINCT col0, col1 * - col1 AS col2 FROM tab2
----
46
-2601
64
-5929
75
-4489

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT ALL - 88 - + + COUNT( - + col1 ) AS col1 FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL - 88 - + + COUNT ( - + col1 ) AS col1 FROM tab0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT + COUNT( + 27 ) + 33 AS col1 FROM tab1 WHERE ( + col1 ) IS NOT NULL
----
36

skipif mysql # not compatible
query I rowsort label-3641
SELECT + COUNT ( + 27 ) + 33 AS col1 FROM tab1 WHERE ( + col1 ) IS NOT NULL
----
36

query II rowsort
SELECT DISTINCT 90 AS col2, col0 * + ( + + col1 ) AS col2 FROM tab1
----
90
425
90
4277
90
714

onlyif mysql # DIV for integer division: 
query I rowsort label-3643
SELECT 22 - + col1 DIV - - 24 FROM tab1
----
21
22
22

skipif mysql # not compatible
query I rowsort label-3643
SELECT 22 - + col1 / - - 24 FROM tab1
----
21
22
22

query I rowsort
SELECT ALL + col1 * + - col0 + + - col2 AS col2 FROM tab2 AS cor0
----
-2369
-4968
-5083

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT ALL - - COUNT( DISTINCT 29 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL - - COUNT ( DISTINCT 29 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT - - col1 - + - 36 FROM tab1 AS cor0
----
41
50
83

query II rowsort
SELECT DISTINCT 14, col1 * - + 50 AS col1 FROM tab2 AS cor0
----
14
-2550
14
-3350
14
-3850

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3648
SELECT DISTINCT + - col2, + CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

skipif mysql # not compatible
query II rowsort label-3648
SELECT DISTINCT + - col2, + CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 66 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT - MIN( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3650
SELECT - MIN ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 26 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3651
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 26 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT - + col0 - 43 * + col2, col0 * - 8 FROM tab1 WHERE NOT - col1 NOT BETWEEN + - col0 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT 8 * - MAX( ALL + + col1 ) FROM tab2
----
-616

skipif mysql # not compatible
query I rowsort label-3653
SELECT 8 * - MAX ( ALL + + col1 ) FROM tab2
----
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT - - COUNT( * ) * - ( ( - - 83 ) ) AS col1 FROM tab1 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-3654
SELECT - - COUNT ( * ) * - ( ( - - 83 ) ) AS col1 FROM tab1 AS cor0
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT DISTINCT MAX( ALL + col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3655
SELECT DISTINCT MAX ( ALL + col0 ) FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3656
SELECT DISTINCT + - 19 * CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3656
SELECT DISTINCT + - 19 * CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + - col2 * - col0 + col0 FROM tab2 AS cor0
----
1104
2624
4425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3659
SELECT DISTINCT - COUNT( ALL + CAST( + col1 AS SIGNED ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3659
SELECT DISTINCT - COUNT ( ALL + CAST ( + col1 AS INTEGER ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + 7 AS col1 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL 22 * + col2 FROM tab0 AS cor0
----
1034
2178
220

query II rowsort
SELECT - col0, + ( + - col1 ) AS col1 FROM tab1
----
-51
-14
-85
-5
-91
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT - COUNT( DISTINCT 34 ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3663
SELECT - COUNT ( DISTINCT 34 ) AS col0 FROM tab2
----
-1

query II rowsort
SELECT DISTINCT 75, + col0 AS col1 FROM tab1
----
75
51
75
85
75
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3665
SELECT ALL * FROM tab0 WHERE - col1 * - col2 + + - 40 + + - col1 IN ( - + 27, + 1, - col2, col0 * CAST( + 4 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3665
SELECT ALL * FROM tab0 WHERE - col1 * - col2 + + - 40 + + - col1 IN ( - + 27, + 1, - col2, col0 * CAST ( + 4 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT MIN( ALL + ( col0 ) ) * + MIN( - ( + col0 ) ) AS col0 FROM tab1
----
-4641

skipif mysql # not compatible
query I rowsort label-3666
SELECT MIN ( ALL + ( col0 ) ) * + MIN ( - ( + col0 ) ) AS col0 FROM tab1
----
-4641

query I rowsort
SELECT - 13 + + + col1 FROM tab1
----
-8
1
34

query I rowsort
SELECT DISTINCT + col2 + - 98 FROM tab2 AS cor0
----
-40
-58
-75

query I rowsort
SELECT - 30 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT ALL - - 86 + col1 * + col1 + + 44 * - col1 AS col0 FROM tab1 cor0
----
-109
-334
227

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT col0 + - 86 * + 2 FROM tab1 AS cor0
----
-121
-81
-87

query I rowsort
SELECT - 52 + + 16 AS col2 FROM tab2
----
-36
-36
-36

query I rowsort
SELECT ALL col0 - 3 FROM tab1
----
48
82
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT - COUNT( * ) + - - COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3675
SELECT - COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT COUNT( * ) + COUNT( * ) - - COUNT( * ) * + 66 FROM tab1
----
204

skipif mysql # not compatible
query I rowsort label-3676
SELECT COUNT ( * ) + COUNT ( * ) - - COUNT ( * ) * + 66 FROM tab1
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT ALL ( - COUNT( * ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL ( - COUNT ( * ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT ALL - 84 - - COUNT( * ) col2 FROM tab2 WHERE NOT - - 11 * - col2 + + col2 - + col0 * + col0 + col2 = NULL
----
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3678
SELECT ALL - 84 - - COUNT ( * ) col2 FROM tab2 WHERE NOT - - 11 * - col2 + + col2 - + col0 * + col0 + col2 = NULL
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 col0 FROM tab2
----
82
82
82

query I rowsort
SELECT + col2 * 33 FROM tab0
----
1551
3267
330

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT DISTINCT COUNT( col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3681
SELECT DISTINCT COUNT ( col1 ) FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 <= + + 4 * 53
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT ALL - SUM( + col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-3683
SELECT ALL - SUM ( + col1 ) AS col2 FROM tab1
----
-66

query I rowsort
SELECT - 84 * + col2 AS col2 FROM tab0 AS cor0
----
-3948
-8316
-840

query I rowsort
SELECT DISTINCT ( - 99 ) FROM tab1 AS cor0
----
-99

query I rowsort
SELECT ALL 74 AS col1 FROM tab0 AS cor0
----
74
74
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3687
SELECT + SUM( ALL + 2 ) DIV 89 + - - 78 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-3687
SELECT + SUM ( ALL + 2 ) / 89 + - - 78 FROM tab0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT - MAX( DISTINCT - col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3688
SELECT - MAX ( DISTINCT - col1 ) AS col1 FROM tab2
----
51

query I rowsort
SELECT + + ( - 27 ) + - + 1 AS col1 FROM tab1 WHERE NOT - col0 < NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( ( col2 / + col0 IS NOT NULL ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT ALL + - 45 + + SUM( DISTINCT - - col1 ) AS col0 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-3691
SELECT ALL + - 45 + + SUM ( DISTINCT - - col1 ) AS col0 FROM tab1 AS cor0
----
21

query I rowsort
SELECT 93 * - ( - - ( 85 ) ) AS col0 FROM tab0 AS cor0
----
-7905
-7905
-7905

query I rowsort
SELECT DISTINCT col1 * - - col0 FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 + col0 / + 79 IS NOT NULL
----

query I rowsort
SELECT + col2 * + col2 * col1 + - - col0 FROM tab0 AS cor0
----
178944
2187
9898

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT DISTINCT COUNT( - - col0 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3696
SELECT DISTINCT COUNT ( - - col0 ) FROM tab2 cor0
----
3

query I rowsort
SELECT 43 + - - col2 AS col1 FROM tab0 AS cor0
----
142
53
90

onlyif mysql # DIV for integer division: 
query I rowsort label-3698
SELECT - col0 DIV col1 + - col1 FROM tab2 AS cor0
----
-51
-68
-77

skipif mysql # not compatible
query I rowsort label-3698
SELECT - col0 / col1 + - col1 FROM tab2 AS cor0
----
-51
-68
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-3699
SELECT DISTINCT - col0 AS col0, + col1 DIV + 92 col1 FROM tab0 AS cor0
----
-15
0
-87
0
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3699
SELECT DISTINCT - col0 AS col0, + col1 / + 92 col1 FROM tab0 AS cor0
----
-15
0
-87
0
-97
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3700
SELECT * FROM tab0 WHERE + + CAST( NULL AS SIGNED ) <= + 67
----

skipif mysql # not compatible
query III rowsort label-3700
SELECT * FROM tab0 WHERE + + CAST ( NULL AS INTEGER ) <= + 67
----

query III rowsort
SELECT * FROM tab2 WHERE + 95 + - col2 * - col0 - - col2 <= col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= - col1
----

query I rowsort
SELECT DISTINCT 64 + - - col1 AS col1 FROM tab1 AS cor0
----
111
69
78

query I rowsort
SELECT 89 FROM tab1 AS cor0 WHERE col1 + 68 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3705
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3705
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3706
SELECT - ( - + col2 ) DIV - col2, 60 * + 58 + - CAST( + col1 AS SIGNED ) + col2 * - + col0 * + + col1 AS col0 FROM tab1 AS cor0
----
-1
-21600
-1
-287403
-1
-65078

skipif mysql # not compatible
query II rowsort label-3706
SELECT - ( - + col2 ) / - col2, 60 * + 58 + - CAST ( + col1 AS INTEGER ) + col2 * - + col0 * + + col1 AS col0 FROM tab1 AS cor0
----
-1
-21600
-1
-287403
-1
-65078

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 67 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 - - - col1 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT DISTINCT - col1 * col1 + - + col1 FROM tab2 AS cor0
----
-2652
-4556
-6006

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 - - col2 col1 FROM tab1 AS cor0
----
111
74
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 23 col0 FROM tab1 cor0
----
-23
-23
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3712
SELECT SUM( CAST( NULL AS SIGNED ) ) FROM tab0 cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3712
SELECT SUM ( CAST ( NULL AS INTEGER ) ) FROM tab0 cor0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + 68 * - 30 + + 66 AS col1 FROM tab0
----
-1974

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 BETWEEN + col0 AND NULL
----
85
5
59
91
47
68

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT col1 / + col1 BETWEEN col0 + + - 11 * - + 5 AND + 89 )
----

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT ( NOT ( NOT NULL NOT BETWEEN + col1 AND + + col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3717
SELECT ALL + 42 DIV - ( col1 ) FROM tab1 AS cor0
----
-3
-8
0

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL + 42 / - ( col1 ) FROM tab1 AS cor0
----
-3
-8
0

query I rowsort
SELECT + ( - col0 ) FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT col2 * - 15 AS col2 FROM tab0 AS cor0
----
-1485
-150
-705

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 73 / + col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0, col1 AS col2 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3722
SELECT * FROM tab0 WHERE NULL < 33 * + col0 - + CAST( NULL AS DECIMAL ) / + col1
----

skipif mysql # not compatible
query III rowsort label-3722
SELECT * FROM tab0 WHERE NULL < 33 * + col0 - + CAST ( NULL AS REAL ) / + col1
----

query II rowsort
SELECT ALL col2 AS col2, - 56 AS col2 FROM tab1
----
59
-56
68
-56
96
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3724
SELECT DISTINCT COUNT( * ) + COUNT( * ) + - - 78 + ( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3724
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) + - - 78 + ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 NOT BETWEEN + col2 * 90 + 54 + + col2 * + col2 AND NULL
----

query I rowsort
SELECT 36 + + col2 AS col2 FROM tab0
----
135
46
83

query I rowsort
SELECT DISTINCT col2 * + - col0 AS col0 FROM tab2
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab2 WHERE + + col0 + + 92 <= - col2
----

query I rowsort
SELECT ALL col0 + + + ( - ( - - 5 ) ) FROM tab1
----
46
80
86

query I rowsort
SELECT + col2 + 91 FROM tab0
----
101
138
190

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT DISTINCT - - COUNT( * ) + + SUM( ALL + col2 ) FROM tab1 cor0
----
226

skipif mysql # not compatible
query I rowsort label-3731
SELECT DISTINCT - - COUNT ( * ) + + SUM ( ALL + col2 ) FROM tab1 cor0
----
226

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT ALL 42 + + COUNT( + 46 ) - 98 AS col1 FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL 42 + + COUNT ( + 46 ) - 98 AS col1 FROM tab0 AS cor0
----
-53

query I rowsort
SELECT DISTINCT ( 2 ) FROM tab2, tab0 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT 81 - + + COUNT( * ) + - + 1 AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3734
SELECT 81 - + + COUNT ( * ) + - + 1 AS col2 FROM tab2
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 39 + + + col0 col0 FROM tab1 AS cor0
----
12
46
52

query I rowsort
SELECT - ( + col0 ) FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT ALL - ( - MIN( - 18 ) ) AS col2 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL - ( - MIN ( - 18 ) ) AS col2 FROM tab2 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT + ( - COUNT( DISTINCT + col0 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3738
SELECT + ( - COUNT ( DISTINCT + col0 ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT ALL + COUNT( * ) * COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL + COUNT ( * ) * COUNT ( * ) FROM tab0
----
9

query I rowsort
SELECT DISTINCT col0 * + - 20 * + col1 AS col0 FROM tab1
----
-14280
-8500
-85540

query I rowsort
SELECT DISTINCT + 16 * - + col2 FROM tab2
----
-368
-640
-928

query II rowsort
SELECT 59, col0 FROM tab2
----
59
46
59
64
59
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 col0 FROM tab2
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT DISTINCT - COUNT( DISTINCT - 46 ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3744
SELECT DISTINCT - COUNT ( DISTINCT - 46 ) AS col0 FROM tab1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( col1 ) col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3746
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT ALL - 48 * - + COUNT( * ) * COUNT( * ) FROM tab1
----
432

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL - 48 * - + COUNT ( * ) * COUNT ( * ) FROM tab1
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT ALL COUNT( * ) * + 10 + 82 col1 FROM tab2 AS cor0
----
112

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3748
SELECT ALL COUNT ( * ) * + 10 + 82 col1 FROM tab2 AS cor0
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT DISTINCT - - COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3749
SELECT DISTINCT - - COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3750
SELECT - ( - CAST( 91 AS SIGNED ) ) + col0 FROM tab2 AS cor0
----
137
155
166

skipif mysql # not compatible
query I rowsort label-3750
SELECT - ( - CAST ( 91 AS INTEGER ) ) + col0 FROM tab2 AS cor0
----
137
155
166

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT ALL - - SUM( + ( + col1 ) ) + - - ( + - MIN( ALL col2 ) ) col2 FROM tab2 AS cor0
----
172

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3751
SELECT ALL - - SUM ( + ( + col1 ) ) + - - ( + - MIN ( ALL col2 ) ) col2 FROM tab2 AS cor0
----
172

query I rowsort
SELECT + col0 + + + col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT + + col2 + + - col0 + - - 89 FROM tab0 cor0
----
12
121
91

query I rowsort
SELECT - + 92 AS col0 FROM tab2 cor0 WHERE col2 * 60 < + col2 + - col1 + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + + 95 NOT BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT ALL + 65 * + + 86 + COUNT( * ) FROM tab0 AS cor0
----
5593

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL + 65 * + + 86 + COUNT ( * ) FROM tab0 AS cor0
----
5593

query I rowsort
SELECT DISTINCT - - ( + 41 ) FROM tab2 AS cor0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3758
SELECT CAST( CAST( + 28 AS SIGNED ) AS SIGNED ) FROM tab2
----
28
28
28

skipif mysql # not compatible
query I rowsort label-3758
SELECT CAST ( CAST ( + 28 AS INTEGER ) AS INTEGER ) FROM tab2
----
28
28
28

query I rowsort
SELECT DISTINCT - col1 * - 27 AS col2 FROM tab1
----
1269
135
378

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 * col2 * - ( + + col1 ) col0 FROM tab1
----
-4032
-885
-9588

onlyif mysql # aggregate syntax: 
query II rowsort label-3761
SELECT DISTINCT 34 AS col2, + ( + SUM( - 78 ) ) FROM tab1
----
34
-234

skipif mysql # not compatible
query II rowsort label-3761
SELECT DISTINCT 34 AS col2, + ( + SUM ( - 78 ) ) FROM tab1
----
34
-234

query I rowsort
SELECT DISTINCT col0 + + 90 AS col2 FROM tab2
----
136
154
165

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT DISTINCT - COUNT( * ) + - 8 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-3763
SELECT DISTINCT - COUNT ( * ) + - 8 FROM tab2
----
-11

query II rowsort
SELECT col2 + col1 + col2, col1 AS col0 FROM tab2 AS cor0
----
157
77
183
67
97
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3765
SELECT + col1 + + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3765
SELECT + col1 + + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * - 44 FROM tab1
----
-2244
-3740
-4004

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT + MIN( + ( + 94 ) ) FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-3767
SELECT + MIN ( + ( + 94 ) ) FROM tab0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-3768
SELECT + + col0 DIV - + col2 AS col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3768
SELECT + + col0 / - + col2 AS col1 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3769
SELECT col2 col1, + CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3769
SELECT col2 col1, + CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 19 < + ( + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3771
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT ALL - MAX( + 97 ) * - 58 FROM tab2 cor0
----
5626

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL - MAX ( + 97 ) * - 58 FROM tab2 cor0
----
5626

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3773
SELECT DISTINCT * FROM tab1 WHERE + ( + CAST( + 4 AS DECIMAL ) ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3773
SELECT DISTINCT * FROM tab1 WHERE + ( + CAST ( + 4 AS REAL ) ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col1 / - col0 / - 47 + 15 + - - 49 + 84 FROM tab2 cor0 WHERE NOT NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( col1 ) * + - col2 AS col2, + col0 * col2 + - col2 col1 FROM tab0 cor0
----
-210
860
-3807
658
-99
9504

query I rowsort
SELECT DISTINCT - 78 + - - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-57
-77
3

query I rowsort
SELECT 13 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT + 75 * + COUNT( * ) FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-3778
SELECT + 75 * + COUNT ( * ) FROM tab0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3779
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0, tab1 AS cor0
----
-9

query I rowsort
SELECT ALL - col2 + + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-4992
-5074
-6256

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT ALL + COUNT( ALL - col0 ) + - 86 AS col2 FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-3781
SELECT ALL + COUNT ( ALL - col0 ) + - 86 AS col2 FROM tab2 AS cor0
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-3782
SELECT DISTINCT + COUNT( * ) AS col1, - 31 AS col0 FROM tab2 AS cor0
----
3
-31

skipif mysql # not compatible
query II rowsort label-3782
SELECT DISTINCT + COUNT ( * ) AS col1, - 31 AS col0 FROM tab2 AS cor0
----
3
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT 87 + - ( + MIN( col0 ) ) AS col1 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-3783
SELECT 87 + - ( + MIN ( col0 ) ) AS col1 FROM tab0
----
72

query I rowsort
SELECT ( + + col1 ) + + col1 FROM tab2
----
102
134
154

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 >= NULL
----

query I rowsort
SELECT col2 + + + 71 AS col0 FROM tab1
----
130
139
167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3787
SELECT DISTINCT - 31 * - 35 * - CAST( NULL AS SIGNED ) + - + col0 + - col2 * 64 AS col1 FROM tab1 AS cor0 WHERE ( NOT ( NOT + 36 + + + col2 + + + ( - - col0 ) IS NULL ) )
----

skipif mysql # not compatible
query I rowsort label-3787
SELECT DISTINCT - 31 * - 35 * - CAST ( NULL AS INTEGER ) + - + col0 + - col2 * 64 AS col1 FROM tab1 AS cor0 WHERE ( NOT ( NOT + 36 + + + col2 + + + ( - - col0 ) IS NULL ) )
----

query I rowsort
SELECT DISTINCT + + col2 - 47 FROM tab0 cor0
----
-37
0
52

query II rowsort
SELECT DISTINCT col1 - - - 80 AS col0, ( - + col2 ) FROM tab0 AS cor0
----
-59
-10
-79
-99
1
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT DISTINCT + COUNT( + col2 ) + + COUNT( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3790
SELECT DISTINCT + COUNT ( + col2 ) + + COUNT ( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE NULL >= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 52 col2 FROM tab2 cor0
----
110
75
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3792
SELECT - ( col1 ) - - 8 + - col1 + - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3792
SELECT - ( col1 ) - - 8 + - col1 + - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3793
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT 27 = NULL
----

query II rowsort
SELECT ALL - col2 AS col0, + ( - - col1 ) FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT ALL - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - col1 IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3797
SELECT + 39 DIV COUNT( * ) + - 50 FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-3797
SELECT + 39 / COUNT ( * ) + - 50 FROM tab1 AS cor0
----
-37

query I rowsort
SELECT DISTINCT + col0 * + ( col0 ) + col0 AS col0 FROM tab1 AS cor0
----
2652
7310
8372

query I rowsort
SELECT ALL + - 23 AS col0 FROM tab0 AS cor0
----
-23
-23
-23

query I rowsort
SELECT ALL + col0 * + - col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3801
SELECT - 19 DIV + - MIN( ALL + col1 ) AS col2 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-3801
SELECT - 19 / + - MIN ( ALL + col1 ) AS col2 FROM tab0
----
19

query I rowsort
SELECT - 64 FROM tab1 WHERE NOT ( NOT col2 + col1 * - 41 IS NULL )
----

query I rowsort
SELECT DISTINCT col1 + + 58 / + 71 FROM tab1 WHERE NULL < + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 38 - col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3805
SELECT ALL ( - CAST( col2 AS SIGNED ) ) * - 80 FROM tab2
----
1840
3200
4640

skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL ( - CAST ( col2 AS INTEGER ) ) * - 80 FROM tab2
----
1840
3200
4640

query I rowsort
SELECT 34 * - 94 FROM tab1
----
-3196
-3196
-3196

query I rowsort
SELECT DISTINCT col0 * - 87 FROM tab1
----
-4437
-7395
-7917

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3808
SELECT CAST( 32 AS SIGNED ) * col2 * col1 AS col0, - col0 - col1 FROM tab2 AS cor0
----
124352
-142
37536
-97
98560
-141

skipif mysql # not compatible
query II rowsort label-3808
SELECT CAST ( 32 AS INTEGER ) * col2 * col1 AS col0, - col0 - col1 FROM tab2 AS cor0
----
124352
-142
37536
-97
98560
-141

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3810
SELECT DISTINCT - 81 DIV COUNT( * ) + - 35 + - SUM( - + col1 ) FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT - 81 / COUNT ( * ) + - 35 + - SUM ( - + col1 ) FROM tab0 AS cor0
----
41

query I rowsort
SELECT ALL 89 * col2 AS col0 FROM tab1 AS cor0
----
5251
6052
8544

query I rowsort
SELECT ALL col2 * col1 * col2 FROM tab0 AS cor0
----
178929
2100
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT - COUNT( * ) * + 3 AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3813
SELECT - COUNT ( * ) * + 3 AS col2 FROM tab0 AS cor0
----
-9

query II rowsort
SELECT 23 AS col2, col1 * col1 + - col2 AS col2 FROM tab2 AS cor0
----
23
2578
23
4431
23
5889

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3815
SELECT ALL + - CAST( - 77 AS SIGNED ) * - ( + + ( 38 ) ) * - - SUM( 50 ) + - - 23 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1316677

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL + - CAST ( - 77 AS INTEGER ) * - ( + + ( 38 ) ) * - - SUM ( 50 ) + - - 23 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1316677

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL + + 91 + 26 AS col1 FROM tab0 AS cor0
----
117
117
117

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL = NULL )
----

query I rowsort
SELECT ALL - 42 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 * - col1 - + 70 * ( + 74 ) BETWEEN col2 AND NULL
----
-42
-42

query I rowsort
SELECT ALL - col2 + - - col2 + 62 AS col0 FROM tab0 AS cor0
----
62
62
62

query I rowsort
SELECT ALL - ( + 49 ) AS col1 FROM tab2 AS cor0
----
-49
-49
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 - - col1 col2, - col1 FROM tab2 AS cor0
----
141
-77
142
-67
97
-51

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 29 + + col2 * 43 - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE + col0 / - + 52 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3825
SELECT ALL - 66 AS col2, - ( col1 ) DIV + ( - 32 ) AS col1 FROM tab1
----
-66
0
-66
0
-66
1

skipif mysql # not compatible
query II rowsort label-3825
SELECT ALL - 66 AS col2, - ( col1 ) / + ( - 32 ) AS col1 FROM tab1
----
-66
0
-66
0
-66
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3826
SELECT DISTINCT + ( + col2 ) * col1 DIV - col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-3826
SELECT DISTINCT + ( + col2 ) * col1 / - col1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT col0 - - col0 + - + col0 - + col2 FROM tab1
----
-45
23
26

query I rowsort
SELECT DISTINCT ( - 28 ) FROM tab2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT COUNT( * ) - - ( - COUNT( * ) ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3829
SELECT COUNT ( * ) - - ( - COUNT ( * ) ) AS col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE + - ( - 99 ) > - - col2 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT + COUNT( + col0 ) - COUNT( DISTINCT + + col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3831
SELECT + COUNT ( + col0 ) - COUNT ( DISTINCT + + col2 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT COUNT( + col2 ) - - + MAX( - col0 ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-3832
SELECT COUNT ( + col2 ) - - + MAX ( - col0 ) FROM tab1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT ALL ( COUNT( * ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL ( COUNT ( * ) ) AS col1 FROM tab1
----
3

query II rowsort
SELECT DISTINCT - - 1 AS col2, col2 * ( - + col1 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
1
-1344
1
-295
1
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3835
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE ( NULL ) < - CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3835
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE ( NULL ) < - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3836
SELECT + col1 DIV 50, col0 AS col1 FROM tab1 cor0
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-3836
SELECT + col1 / 50, col0 AS col1 FROM tab1 cor0
----
0
51
0
85
0
91

query I rowsort
SELECT ALL - ( - - 92 ) FROM tab1 AS cor0
----
-92
-92
-92

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3838
SELECT ( - + col0 ) AS col0, + ( - col2 ) * - - CAST( NULL AS SIGNED ) * + - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-3838
SELECT ( - + col0 ) AS col0, + ( - col2 ) * - - CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT DISTINCT + + MAX( DISTINCT + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT + + MAX ( DISTINCT + col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3840
SELECT - 10 DIV - - ( - col2 ) col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3840
SELECT - 10 / - - ( - col2 ) col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT ALL + COUNT( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3841
SELECT ALL + COUNT ( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 37 AS col1 FROM tab1
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-3843
SELECT 88 DIV - + col2 AS col2 FROM tab0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-3843
SELECT 88 / - + col2 AS col2 FROM tab0
----
-1
-8
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * 61 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3845
SELECT col1, + CAST( col2 AS SIGNED ) * - col2 AS col2 FROM tab1
----
14
-9216
47
-4624
5
-3481

skipif mysql # not compatible
query II rowsort label-3845
SELECT col1, + CAST ( col2 AS INTEGER ) * - col2 AS col2 FROM tab1
----
14
-9216
47
-4624
5
-3481

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT DISTINCT COUNT( * ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3847
SELECT DISTINCT COUNT ( * ) col2 FROM tab2
----
3

query I rowsort
SELECT DISTINCT - 78 + ( + col2 ) FROM tab0
----
-31
-68
21

query I rowsort
SELECT - 80 + + col1 * col1 * - + 16 FROM tab2 AS cor0
----
-41696
-71904
-94944

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT ALL SUM( ALL + col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3850
SELECT ALL SUM ( ALL + col2 ) AS col0 FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT COUNT( + - col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3851
SELECT COUNT ( + - col0 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3852
SELECT col2, + ( + CAST( col0 AS SIGNED ) ) FROM tab2
----
23
46
40
64
58
75

skipif mysql # not compatible
query II rowsort label-3852
SELECT col2, + ( + CAST ( col0 AS INTEGER ) ) FROM tab2
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3853
SELECT ALL CAST( NULL AS SIGNED ) AS col1, + col0 DIV + col1 FROM tab0
----
NULL
0
NULL
4
NULL
97

skipif mysql # not compatible
query II rowsort label-3853
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, + col0 / + col1 FROM tab0
----
NULL
0
NULL
4
NULL
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3854
SELECT - col0 DIV - ( 73 ) FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3854
SELECT - col0 / - ( 73 ) FROM tab1
----
0
1
1

query II rowsort
SELECT col0 AS col0, + 79 FROM tab2
----
46
79
64
79
75
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT COUNT( ALL + col0 ) * + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3856
SELECT COUNT ( ALL + col0 ) * + COUNT ( * ) FROM tab0
----
9

query I rowsort
SELECT ( 17 ) FROM tab1
----
17
17
17

query I rowsort
SELECT ALL 20 * 62 + + + 60 + - 54 - - 82 * - col1 FROM tab1
----
-2608
836
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT + + MIN( DISTINCT 76 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
76

skipif mysql # not compatible
query I rowsort label-3859
SELECT + + MIN ( DISTINCT 76 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
76

query II rowsort
SELECT + col1, + col1 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL col0 * - - col0 FROM tab1 AS cor0
----
2601
7225
8281

query II rowsort
SELECT ALL 18, col2 FROM tab0 AS cor0
----
18
10
18
47
18
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT + 42 + + COUNT( DISTINCT + 42 ) FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-3863
SELECT + 42 + + COUNT ( DISTINCT + 42 ) FROM tab0
----
43

query I rowsort
SELECT ALL + col1 * - 57 - + + col1 AS col2 FROM tab0
----
-1218
-4698
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3865
SELECT ALL - CAST( NULL AS DECIMAL ) * col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL - CAST ( NULL AS REAL ) * col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 AS col2 FROM tab0 WHERE - + 58 < NULL
----

query I rowsort
SELECT col2 * - 17 + + col1 - + 41 FROM tab2 WHERE ( 17 * + 82 IS NOT NULL )
----
-381
-644
-960

onlyif mysql # DIV for integer division: 
query I rowsort label-3868
SELECT ALL 62 DIV + + 56 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL 62 / + + 56 FROM tab1 cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3869
SELECT DISTINCT + + CAST( + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT + + CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT ALL 94 * - + col1 FROM tab2
----
-4794
-6298
-7238

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3871
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 + + - col2 + - - col2 * - + col2 * - - 52 ) NOT IN ( 53 * col1, + col2 + + col2 / + 25 + CAST( NULL AS SIGNED ), + col2, - col2 )
----

skipif mysql # not compatible
query III rowsort label-3871
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 + + - col2 + - - col2 * - + col2 * - - 52 ) NOT IN ( 53 * col1, + col2 + + col2 / + 25 + CAST ( NULL AS INTEGER ), + col2, - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT - + MAX( DISTINCT - col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3872
SELECT - + MAX ( DISTINCT - col2 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT ALL - + 84 * col1 AS col1 FROM tab2 AS cor0
----
-4284
-5628
-6468

query II rowsort
SELECT ALL - 58, + 56 * + col1 * - col1 AS col2 FROM tab1 AS cor0
----
-58
-10976
-58
-123704
-58
-1400

query I rowsort
SELECT DISTINCT - 70 + col2 FROM tab0 AS cor0 WHERE NOT 39 IS NULL
----
-23
-60
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3876
SELECT CAST( MAX( DISTINCT col1 ) AS SIGNED ) * - - COUNT( * ) + - 85 * + 35 + + - 22 FROM tab0 AS cor0
----
-2754

skipif mysql # not compatible
query I rowsort label-3876
SELECT CAST ( MAX ( DISTINCT col1 ) AS INTEGER ) * - - COUNT ( * ) + - 85 * + 35 + + - 22 FROM tab0 AS cor0
----
-2754

query II rowsort
SELECT - 24 AS col0, col0 FROM tab2 AS cor0
----
-24
46
-24
64
-24
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3878
SELECT 86 * + + 79 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3878
SELECT 86 * + + 79 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + - col1 * + + col2 AS col2 FROM tab0 WHERE - 13 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT MAX( DISTINCT + 1 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3880
SELECT MAX ( DISTINCT + 1 ) FROM tab1
----
1

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE - - col1 + - 80 BETWEEN + col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT col2 * + col2 + + 90 * + + col2 AS col2 FROM tab2
----
2599
5200
8584

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 83 * - col0 + - + 55 + 95 * + + col2 * 54 * + + 76 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT DISTINCT - SUM( + col1 ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-3884
SELECT DISTINCT - SUM ( + col1 ) AS col2 FROM tab2
----
-195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3885
SELECT DISTINCT 51 DIV + + COUNT( * ) + + - 78 AS col1 FROM tab1
----
-61

skipif mysql # not compatible
query I rowsort label-3885
SELECT DISTINCT 51 / + + COUNT ( * ) + + - 78 AS col1 FROM tab1
----
-61

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 90 < + + col0
----
51
14
96
85
5
59

query I rowsort
SELECT + + 84 AS col2 FROM tab2 WHERE - 47 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT DISTINCT - - MIN( + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3888
SELECT DISTINCT - - MIN ( + col0 ) FROM tab2 AS cor0
----
46

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL <> col1 + ( - 73 )
----

query I rowsort
SELECT DISTINCT + ( ( 77 ) ) + - - ( + 36 ) FROM tab1
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3891
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * 12 = + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3891
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * 12 = + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3892
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL col0 + + 26 FROM tab1 AS cor0
----
111
117
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT - - COUNT( * ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3894
SELECT - - COUNT ( * ) col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT col2 * - - col1 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT ALL + + col0 - + 92 AS col0 FROM tab2 AS cor0
----
-17
-28
-46

query I rowsort
SELECT ALL 65 - col0 AS col2 FROM tab1 AS cor0
----
-20
-26
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3898
SELECT - CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE col0 + + col1 NOT BETWEEN + + 66 AND + CAST( + 67 AS SIGNED )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3898
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE col0 + + col1 NOT BETWEEN + + 66 AND + CAST ( + 67 AS INTEGER )
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 77 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3900
SELECT - col2 * + - 19 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 WHERE col2 * - col0 NOT BETWEEN NULL AND ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-3900
SELECT - col2 * + - 19 * - CAST ( NULL AS REAL ) AS col2 FROM tab0 WHERE col2 * - col0 NOT BETWEEN NULL AND ( - col1 )
----

query I rowsort
SELECT ALL 17 - - 0 FROM tab0
----
17
17
17

onlyif mysql # DIV for integer division: 
query I rowsort label-3902
SELECT ALL ( + + ( - + col0 ) ) DIV - + 64 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3902
SELECT ALL ( + + ( - + col0 ) ) / - + 64 FROM tab2
----
0
1
1

query II rowsort
SELECT DISTINCT - + 52, col0 AS col2 FROM tab1 WHERE NOT + 45 IS NULL
----
-52
51
-52
85
-52
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3904
SELECT SUM( - ( ( + - 52 ) ) ) AS col1, 2 AS col2 FROM tab1
----
156
2

skipif mysql # not compatible
query II rowsort label-3904
SELECT SUM ( - ( ( + - 52 ) ) ) AS col1, 2 AS col2 FROM tab1
----
156
2

query II rowsort
SELECT - col2 AS col2, - 93 AS col2 FROM tab0
----
-10
-93
-47
-93
-99
-93

onlyif mysql # DIV for integer division: 
query II rowsort label-3906
SELECT + + col2 DIV - + col1, + col2 AS col1 FROM tab0 AS cor0
----
-99
99
0
10
0
47

skipif mysql # not compatible
query II rowsort label-3906
SELECT + + col2 / - + col1, + col2 AS col1 FROM tab0 AS cor0
----
-99
99
0
10
0
47

query I rowsort
SELECT + - 98 * col1 - + col1 * - col2 FROM tab1 AS cor0
----
-1410
-195
-28

query I rowsort
SELECT ALL - col1 * + col0 + - 42 FROM tab1 AS cor0
----
-4319
-467
-756

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-1
-21
-81

query I rowsort
SELECT ALL + 93 AS col0 FROM tab0 AS cor0 WHERE NULL < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT ALL COUNT( * ) * - - COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3911
SELECT ALL COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT COUNT( ALL 46 ) * - 88 FROM tab2
----
-264

skipif mysql # not compatible
query I rowsort label-3912
SELECT COUNT ( ALL 46 ) * - 88 FROM tab2
----
-264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3913
SELECT - CAST( COUNT( * ) AS SIGNED ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3913
SELECT - CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + col1 * - + col0 AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # DIV for integer division: 
query II rowsort label-3915
SELECT - col1 DIV col2 AS col1, col2 FROM tab2 AS cor0
----
-1
40
-1
58
-2
23

skipif mysql # not compatible
query II rowsort label-3915
SELECT - col1 / col2 AS col1, col2 FROM tab2 AS cor0
----
-1
40
-1
58
-2
23

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 * - 3 * - 62 NOT IN ( - col0 )
----

query I rowsort
SELECT + 62 * - col1 + + 94 FROM tab0 AS cor0
----
-1208
-4928
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT ALL + MIN( DISTINCT - - col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL + MIN ( DISTINCT - - col1 ) AS col1 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT DISTINCT + COUNT( ALL - + col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3919
SELECT DISTINCT + COUNT ( ALL - + col2 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT - 66 FROM tab1 WHERE - col0 * - col0 IN ( + + col1, + col0 )
----

query I rowsort
SELECT ( 26 ) * - col2 * - col2 + - 64 AS col1 FROM tab0
----
2536
254762
57370

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT - MAX( DISTINCT - col0 ) + + 98 FROM tab0
----
113

skipif mysql # not compatible
query I rowsort label-3922
SELECT - MAX ( DISTINCT - col0 ) + + 98 FROM tab0
----
113

query I rowsort
SELECT DISTINCT - col2 + + col2 * + - col1 FROM tab2
----
-1196
-3120
-3944

query I rowsort
SELECT DISTINCT - 83 + - col0 AS col0 FROM tab2
----
-129
-147
-158

query I rowsort
SELECT DISTINCT - 94 + + col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 52 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3926
SELECT DISTINCT - SUM( DISTINCT col0 ) DIV 12 AS col2 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-3926
SELECT DISTINCT - SUM ( DISTINCT col0 ) / 12 AS col2 FROM tab1
----
-18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3927
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( CAST( NULL AS DECIMAL ) ) AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( CAST ( NULL AS REAL ) ) AND + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT COUNT( * ) * 11 AS col1 FROM tab0 WHERE col1 * 1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3928
SELECT COUNT ( * ) * 11 AS col1 FROM tab0 WHERE col1 * 1 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE col1 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3930
SELECT MIN( ALL - col2 ) DIV COUNT( * ) + 67 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-3930
SELECT MIN ( ALL - col2 ) / COUNT ( * ) + 67 FROM tab0
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 col0 FROM tab1
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT SUM( DISTINCT col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-3932
SELECT SUM ( DISTINCT col1 ) FROM tab2
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-3933
SELECT 41 DIV 86 + - col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3933
SELECT 41 / 86 + - col0 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT ALL + MIN( DISTINCT col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3934
SELECT ALL + MIN ( DISTINCT col1 ) FROM tab2
----
51

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 / + col1 = ( col1 ) + col1
----

query III rowsort
SELECT * FROM tab0 WHERE ( + col0 ) > ( + 65 )
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT ALL - 54 * ( COUNT( * ) ) FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-3937
SELECT ALL - 54 * ( COUNT ( * ) ) FROM tab0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT COUNT( col1 ) * 45 FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-3938
SELECT COUNT ( col1 ) * 45 FROM tab0
----
135

query III rowsort
SELECT * FROM tab1 WHERE NOT + 89 - col2 <> ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3940
SELECT CAST( 42 AS SIGNED ) * 30 FROM tab0
----
1260
1260
1260

skipif mysql # not compatible
query I rowsort label-3940
SELECT CAST ( 42 AS INTEGER ) * 30 FROM tab0
----
1260
1260
1260

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 95 * - col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col0 col0 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3943
SELECT col1 - CAST( + ( 16 ) + + col1 AS SIGNED ) FROM tab1
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-3943
SELECT col1 - CAST ( + ( 16 ) + + col1 AS INTEGER ) FROM tab1
----
-16
-16
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 col2 FROM tab2
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT SUM( ALL + 78 ) FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-3945
SELECT SUM ( ALL + 78 ) FROM tab0
----
234

query III rowsort
SELECT * FROM tab2 WHERE ( 47 + - col2 * col2 ) IS NULL
----

query I rowsort
SELECT ALL + col1 * - col0 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( 27 / col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT + MAX( DISTINCT col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3948
SELECT + MAX ( DISTINCT col0 ) FROM tab0
----
97

query I rowsort
SELECT DISTINCT 50 + + 6 FROM tab1
----
56

query I rowsort
SELECT DISTINCT - 67 * col0 AS col2 FROM tab0 cor0
----
-1005
-5829
-6499

query I rowsort
SELECT DISTINCT col1 * 50 AS col1 FROM tab0 AS cor0
----
1050
4050
50

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL >= + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3953
SELECT DISTINCT - COUNT( * ) + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3953
SELECT DISTINCT - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3954
SELECT ALL + - col2 + 79 DIV col0 AS col1 FROM tab2 AS cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-3954
SELECT ALL + - col2 + 79 / col0 AS col1 FROM tab2 AS cor0
----
-22
-39
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-3955
SELECT DISTINCT - col1 * 28 + 35 DIV - col1 AS col1 FROM tab2 AS cor0
----
-1428
-1876
-2156

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT - col1 * 28 + 35 / - col1 AS col1 FROM tab2 AS cor0
----
-1428
-1876
-2156

query I rowsort
SELECT ALL - 3 AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT DISTINCT + - SUM( 69 ) * 45 FROM tab0 AS cor0
----
-9315

skipif mysql # not compatible
query I rowsort label-3957
SELECT DISTINCT + - SUM ( 69 ) * 45 FROM tab0 AS cor0
----
-9315

query I rowsort
SELECT col2 + - 1 AS col0 FROM tab0 cor0
----
46
9
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3959
SELECT DISTINCT + col1 DIV - col1 AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT + col1 / - col1 AS col1 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3960
SELECT ALL - - CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL - - CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + - 22 * + 79 + col1 AS col2 FROM tab0 AS cor0
----
-1657
-1717
-1737

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE col1 + 43 IS NOT NULL
----
51
67
77

query I rowsort
SELECT + col1 FROM tab0 WHERE ( NULL ) NOT BETWEEN ( + 91 + 29 ) AND NULL
----

query I rowsort
SELECT + 65 * - + col1 * col1 FROM tab0
----
-28665
-426465
-65

query I rowsort
SELECT DISTINCT ( + col1 ) * 45 FROM tab1
----
2115
225
630

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT ALL COUNT( * ) AS col0 FROM tab2 WHERE + col2 + + col1 > + ( + col0 ) + + col0
----
0

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE + col2 + + col1 > + ( + col0 ) + + col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3967
SELECT ALL + 49 DIV + col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL + 49 / + col0 FROM tab0
----
0
0
3

query I rowsort
SELECT ALL + 44 + - col1 + col0 FROM tab2
----
31
39
52

query I rowsort
SELECT DISTINCT - 69 AS col2 FROM tab1 WHERE col0 BETWEEN NULL AND + 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT ALL - COUNT( ALL col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3970
SELECT ALL - COUNT ( ALL col2 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT DISTINCT + ( + COUNT( * ) ) AS col0 FROM tab2 WHERE NOT - col1 NOT IN ( 67 * - col0 + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3971
SELECT DISTINCT + ( + COUNT ( * ) ) AS col0 FROM tab2 WHERE NOT - col1 NOT IN ( 67 * - col0 + col2 )
----
0

query I rowsort
SELECT DISTINCT + + col2 + - col1 AS col2 FROM tab0 cor0
----
-11
-34
98

query I rowsort
SELECT col0 + + col1 FROM tab0 AS cor0 WHERE 38 NOT BETWEEN ( NULL ) AND + 72 + - ( 31 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT ALL - MIN( ALL - + col2 ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL - MIN ( ALL - + col2 ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
99

query I rowsort
SELECT - col2 + 56 AS col0 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-12
-3
-40

query I rowsort
SELECT 54 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3978
SELECT DISTINCT + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3978
SELECT DISTINCT + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 WHERE NOT + col2 IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3980
SELECT ALL * FROM tab0 WHERE NOT + 38 * col1 + col2 < - CAST( col1 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3980
SELECT ALL * FROM tab0 WHERE NOT + 38 * col1 + col2 < - CAST ( col1 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT ALL COUNT( * ) + + COUNT( * ) + - ( + MIN( + col2 ) ) * 26 AS col2 FROM tab2
----
-592

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL COUNT ( * ) + + COUNT ( * ) + - ( + MIN ( + col2 ) ) * 26 AS col2 FROM tab2
----
-592

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + 1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3983
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT ( + 13 ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-3983
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT ( + 13 ) <= NULL
----

query I rowsort
SELECT + col1 * col2 - - 81 AS col2 FROM tab1 AS cor0
----
1425
3277
376

query II rowsort
SELECT col0 AS col1, 45 * + + col0 + - 52 FROM tab2 AS cor0
----
46
2018
64
2828
75
3323

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 95 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT SUM( - 5 ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3987
SELECT SUM ( - 5 ) AS col2 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT + - 84 * + + col2 AS col2 FROM tab2 AS cor0
----
-1932
-3360
-4872

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 56 * + - 36 col2 FROM tab1 cor0
----
2016

query I rowsort
SELECT ALL col2 + - col0 * + 79 AS col0 FROM tab1 AS cor0 WHERE ( + col0 ) + + 30 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 4 AND - - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 95 - - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3994
SELECT ALL CAST( col2 AS DECIMAL ) AS col1 FROM tab0 AS cor0 WHERE col1 - - - col1 * + col2 BETWEEN col2 * 4 - - col2 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3994
SELECT ALL CAST ( col2 AS REAL ) AS col1 FROM tab0 AS cor0 WHERE col1 - - - col1 * + col2 BETWEEN col2 * 4 - - col2 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 - + 55 AS col1 FROM tab2 WHERE NOT + 91 IN ( 39 * - col1 )
----
-4
12
22

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3996
SELECT - CAST( col0 AS SIGNED ) DIV col2 FROM tab1 WHERE NOT + + 89 IS NULL
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3996
SELECT - CAST ( col0 AS INTEGER ) / col2 FROM tab1 WHERE NOT + + 89 IS NULL
----
-1
-1
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 24 ) BETWEEN ( NULL ) AND 94
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col0 BETWEEN NULL AND + col2 * + 31
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3999
SELECT DISTINCT - COUNT( * ) + - 93 FROM tab1 WHERE ( - ( CAST( - ( 15 ) AS SIGNED ) ) + col0 ) NOT IN ( - col2 )
----
-96

skipif mysql # not compatible
query I rowsort label-3999
SELECT DISTINCT - COUNT ( * ) + - 93 FROM tab1 WHERE ( - ( CAST ( - ( 15 ) AS INTEGER ) ) + col0 ) NOT IN ( - col2 )
----
-96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( col0 ) + - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 25 * - col0 AS col2 FROM tab2
----
-1150
-1600
-1875

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4002
SELECT * FROM tab0 WHERE NOT - 30 BETWEEN NULL AND ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4002
SELECT * FROM tab0 WHERE NOT - 30 BETWEEN NULL AND ( + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN 82 AND NULL
----

query I rowsort
SELECT + col0 * col1 + - + col1 FROM tab0 AS cor0
----
1134
1806
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col2 IS NOT NULL )
----

query II rowsort
SELECT ALL + 58, 65 AS col0 FROM tab2
----
58
65
58
65
58
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT DISTINCT + COUNT( * ) * COUNT( ALL + 98 * 35 - col2 ) FROM tab1 WHERE - - 97 BETWEEN NULL AND - - 72
----
0

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT + COUNT ( * ) * COUNT ( ALL + 98 * 35 - col2 ) FROM tab1 WHERE - - 97 BETWEEN NULL AND - - 72
----
0

query I rowsort
SELECT DISTINCT col1 * - - 78 FROM tab1 WHERE NULL IS NULL
----
1092
3666
390

query I rowsort
SELECT ALL + 10 + + col1 + - col2 * - col1 * + - col1 * 41 AS col0 FROM tab1
----
-60460
-6158635
-771432

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4010
SELECT * FROM tab2 cor0 WHERE NOT - ( - - 19 ) + + + col1 * - col0 * + col0 <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4010
SELECT * FROM tab2 cor0 WHERE NOT - ( - - 19 ) + + + col1 * - col0 * + col0 <> CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4011
SELECT DISTINCT col2 * col0 DIV - col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4011
SELECT DISTINCT col2 * col0 / - col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4012
SELECT DISTINCT col2 DIV - CAST( + 4 AS SIGNED ) FROM tab2 AS cor0
----
-10
-14
-5

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT col2 / - CAST ( + 4 AS INTEGER ) FROM tab2 AS cor0
----
-10
-14
-5

query I rowsort
SELECT ALL - col1 + + col2 + col0 AS col1 FROM tab0 cor0
----
-19
195
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT DISTINCT + COUNT( * ) + 56 * - - 22 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
1232

skipif mysql # not compatible
query I rowsort label-4014
SELECT DISTINCT + COUNT ( * ) + 56 * - - 22 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
1232

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * + col1 + + + col1 NOT BETWEEN - col0 + col2 AND 27 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 * + col2 FROM tab0 AS cor0 WHERE NOT ( - + 93 ) IS NULL
----
100
2209
9801

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT DISTINCT - SUM( + col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4018
SELECT DISTINCT - SUM ( + col0 ) AS col1 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT + col0 * - + col1 + + col0 + + + ( - 33 ) * + + col1 FROM tab1
----
-1125
-505
-5737

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 47 BETWEEN NULL AND ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT ALL + COUNT( * ) col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4021
SELECT ALL + COUNT ( * ) col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT + 50 + + + col1 AS col2 FROM tab0
----
131
51
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT 77 + + ( - SUM( - col0 ) ) AS col2 FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-4023
SELECT 77 + + ( - SUM ( - col0 ) ) AS col2 FROM tab0
----
276

query I rowsort
SELECT ALL + 73 + - 4 FROM tab1
----
69
69
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4025
SELECT COUNT( * ) FROM tab0 cor0 WHERE ( - ( - + ( - CAST( + 99 AS SIGNED ) ) ) ) NOT IN ( col1 )
----
3

skipif mysql # not compatible
query I rowsort label-4025
SELECT COUNT ( * ) FROM tab0 cor0 WHERE ( - ( - + ( - CAST ( + 99 AS INTEGER ) ) ) ) NOT IN ( col1 )
----
3

query II rowsort
SELECT DISTINCT + col2, col0 + - 43 FROM tab0 AS cor0
----
10
44
47
-28
99
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT + COUNT( ALL col1 ) - - - 81 AS col1 FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-4027
SELECT + COUNT ( ALL col1 ) - - - 81 AS col1 FROM tab2
----
-78

query II rowsort
SELECT + col0 * + col1 - - - col1 AS col1, + col0 AS col2 FROM tab2
----
2295
46
4851
64
4958
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT DISTINCT - + MAX( ALL col1 ) col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4029
SELECT DISTINCT - + MAX ( ALL col1 ) col0 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT + col1 * + 99 * - 84 * - col0 AS col1 FROM tab2 cor0
----
19509336
40981248
41787900

query II rowsort
SELECT ALL 88 * + 70 AS col1, col1 AS col2 FROM tab2 cor0
----
6160
51
6160
67
6160
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT + col1 + - ( + + 57 ) IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-4032
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT + col1 + - ( + + 57 ) IS NOT NULL )
----
3

query I rowsort
SELECT ALL 7 FROM tab1 AS cor0 WHERE 75 IS NOT NULL
----
7
7
7

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( - col2 ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4035
SELECT ALL - col2, - col0 * - 51 + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-4035
SELECT ALL - col2, - col0 * - 51 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

query II rowsort
SELECT ALL + col0 AS col1, 15 + - - col0 AS col2 FROM tab2
----
46
61
64
79
75
90

query II rowsort
SELECT - - col0, col1 + + - col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 75 FROM tab1 WHERE NOT + - col1 IN ( + col2 - ( 13 ) * 76 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT ALL COUNT( - col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL COUNT ( - col0 ) AS col2 FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 43 NOT IN ( ( + col2 ) + + col1, - col0 + - - ( col0 ) - ( - col2 + + col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4041
SELECT DISTINCT * FROM tab1 WHERE col2 = ( - col1 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4041
SELECT DISTINCT * FROM tab1 WHERE col2 = ( - col1 * - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN + ( - col0 ) + col2 + - col2 * - - 23 AND NULL
----

query I rowsort
SELECT + - 53 * - ( + + 18 ) AS col2 FROM tab0 cor0
----
954
954
954

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 41 <> NULL
----

query I rowsort
SELECT + 21 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT DISTINCT - COUNT( * ) * 42 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-378

skipif mysql # not compatible
query I rowsort label-4046
SELECT DISTINCT - COUNT ( * ) * 42 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT DISTINCT + - 2 - + COUNT( * ) FROM tab0 WHERE NOT - col2 IS NOT NULL
----
-2

skipif mysql # not compatible
query I rowsort label-4047
SELECT DISTINCT + - 2 - + COUNT ( * ) FROM tab0 WHERE NOT - col2 IS NOT NULL
----
-2

query I rowsort
SELECT 37 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT DISTINCT 60 * - 33 * - COUNT( * ) + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
17829

skipif mysql # not compatible
query I rowsort label-4049
SELECT DISTINCT 60 * - 33 * - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
17829

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 + + + col0 col2 FROM tab2 cor0
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4051
SELECT DISTINCT + MAX( + col0 ) + + - COUNT( 67 ) * - CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4051
SELECT DISTINCT + MAX ( + col0 ) + + - COUNT ( 67 ) * - CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4052
SELECT DISTINCT 77 + + 22 / + CAST( NULL AS SIGNED ) + 85, + col1 AS col0 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-4052
SELECT DISTINCT 77 + + 22 / + CAST ( NULL AS INTEGER ) + 85, + col1 AS col0 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT DISTINCT ( 68 ) FROM tab2 AS cor0
----
68

query I rowsort
SELECT + col0 * - col1 AS col2 FROM tab2 cor0 WHERE + 66 * + - 16 = - ( + 55 ) * + col0 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4055
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 * 87 FROM tab0 AS cor0 WHERE NOT - ( col1 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4055
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 * 87 FROM tab0 AS cor0 WHERE NOT - ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT ALL COUNT( * ) * - 71 FROM tab1
----
-213

skipif mysql # not compatible
query I rowsort label-4056
SELECT ALL COUNT ( * ) * - 71 FROM tab1
----
-213

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + + col0 AND - col1 + col2
----

query I rowsort
SELECT DISTINCT - 90 AS col0 FROM tab1
----
-90

query I rowsort
SELECT ( ( + 14 ) ) - + - 0 FROM tab2
----
14
14
14

query I rowsort
SELECT + 78 - - col1 + + col0 FROM tab1
----
143
168
216

query I rowsort
SELECT ALL - + col2 + 69 * - ( + col0 ) + + col0 * - - col1 AS col1 FROM tab1 AS cor0
----
-2070
-2901
-5499

query I rowsort
SELECT - + 91 * + col2 + + + col0 + - ( - 0 ) FROM tab1 AS cor0
----
-5284
-6097
-8685

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4063
SELECT DISTINCT + + 94 + - CAST( - - COUNT( * ) AS SIGNED ) DIV - CAST( ( - COUNT( * ) ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT + + 94 + - CAST ( - - COUNT ( * ) AS INTEGER ) / - CAST ( ( - COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
93

onlyif mysql # DIV for integer division: 
query II rowsort label-4064
SELECT - + col1 + 10 * + col1 * col2 DIV col1 col2, col0 * + col1 AS col2 FROM tab0 AS cor0
----
389
1215
79
1827
989
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4064
SELECT - + col1 + 10 * + col1 * col2 / col1 col2, col0 * + col1 AS col2 FROM tab0 AS cor0
----
389
1215
79
1827
989
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4066
SELECT ALL + col1 + - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL + col1 + - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col1 * + col2 + + ( col0 ) - col0, + 24 AS col1 FROM tab1 AS cor0
----
-1344
24
-295
24
-3196
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4068
SELECT ALL + CAST( + 91 AS SIGNED ) * - 6 FROM tab1 AS cor0
----
-546
-546
-546

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL + CAST ( + 91 AS INTEGER ) * - 6 FROM tab1 AS cor0
----
-546
-546
-546

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 42 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 99 * - - 92 FROM tab0
----
9108

query III rowsort
SELECT * FROM tab0 WHERE NOT 53 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 24, - col1 col2 FROM tab2 AS cor0
----
-24
-51
-24
-67
-24
-77

query I rowsort
SELECT DISTINCT 39 FROM tab2 cor0
----
39

query II rowsort
SELECT ALL col2 AS col1, col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query I rowsort
SELECT col1 * 95 FROM tab0 AS cor0
----
1995
7695
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, ( + col1 ) col0 FROM tab1 AS cor0
----
14
14
47
47
5
5

query II rowsort
SELECT ( + - 12 ), col1 FROM tab1 AS cor0
----
-12
14
-12
47
-12
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4078
SELECT + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4078
SELECT + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) > - CAST ( NULL AS INTEGER )
----

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE - 12 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT DISTINCT - 87 * - col2 FROM tab2 WHERE NULL IS NULL
----
2001
3480
5046

query I rowsort
SELECT 30 * col2 * - 16 FROM tab2
----
-11040
-19200
-27840

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT ALL MAX( DISTINCT + col0 ) col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4082
SELECT ALL MAX ( DISTINCT + col0 ) col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4083
SELECT ALL + CAST( MAX( DISTINCT - col0 ) AS SIGNED ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL + CAST ( MAX ( DISTINCT - col0 ) AS INTEGER ) FROM tab2
----
-46

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 * - - ( + + col2 ) / col0 + + col0 + 9 BETWEEN - 20 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4085
SELECT col1 DIV ( + ( + - 42 ) ) col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4085
SELECT col1 / ( + ( + - 42 ) ) col2 FROM tab1
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 + + col1 col1 FROM tab0
----
23
3
83

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col0 < 68
----
46
51
23
64
77
40

query I rowsort
SELECT ALL - col0 * - col1 * + - 0 FROM tab1 AS cor0 WHERE col2 <> - 79 + 93
----
0
0
0

query I rowsort
SELECT DISTINCT + + 7 + + 81 + + col2 * - - 2 FROM tab2 AS cor0
----
134
168
204

query I rowsort
SELECT DISTINCT + - 9 + 48 FROM tab1 AS cor0
----
39

query I rowsort
SELECT DISTINCT + - col1 FROM tab0 AS cor0 WHERE NULL >= + ( 13 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4092
SELECT + col1 + col1 + - + CAST( NULL AS SIGNED ) * 58 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4092
SELECT + col1 + col1 + - + CAST ( NULL AS INTEGER ) * 58 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT DISTINCT - 68 * - 42 * COUNT( * ) FROM tab1 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4093
SELECT DISTINCT - 68 * - 42 * COUNT ( * ) FROM tab1 WHERE NOT NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT DISTINCT MIN( ALL + + col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4094
SELECT DISTINCT MIN ( ALL + + col1 ) AS col0 FROM tab0
----
1

query I rowsort
SELECT col0 + + col2 FROM tab1 WHERE + + col0 / + 33 IS NOT NULL
----
144
147
159

query I rowsort
SELECT + 3 + col1 + + col1 AS col0 FROM tab2
----
105
137
157

query II rowsort
SELECT ALL - + col0 + + 41, + ( + col0 ) FROM tab0 WHERE NOT + + col0 = NULL
----

query I rowsort
SELECT + 69 * + + col2 FROM tab2
----
1587
2760
4002

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT ALL COUNT( * ) * + 54 FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL COUNT ( * ) * + 54 FROM tab2
----
162

query I rowsort
SELECT DISTINCT 9 + - + col2 FROM tab1
----
-50
-59
-87

query II rowsort
SELECT + + 32, 51 FROM tab1 WHERE + col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > - 99
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4103
SELECT ALL + - COUNT( DISTINCT col1 ), COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4103
SELECT ALL + - COUNT ( DISTINCT col1 ), COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
3

query I rowsort
SELECT DISTINCT col1 * + + ( - col1 ) AS col1 FROM tab1
----
-196
-2209
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4105
SELECT ALL - col2 FROM tab2 WHERE NOT + - col2 NOT IN ( - col0 + - CAST( NULL AS SIGNED ), col0 )
----

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL - col2 FROM tab2 WHERE NOT + - col2 NOT IN ( - col0 + - CAST ( NULL AS INTEGER ), col0 )
----

query I rowsort
SELECT col0 * - 52 AS col0 FROM tab1 AS cor0
----
-2652
-4420
-4732

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 27 * - + col1 col0 FROM tab2 AS cor0
----
-1377
-1809
-2079

query I rowsort
SELECT ( - col2 ) * + - col2 AS col2 FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT col2 * - 3 + + col1 AS col2 FROM tab2 AS cor0
----
-107
-18
-43

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4111
SELECT ALL + 18 DIV - + col1 FROM tab1 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4111
SELECT ALL + 18 / - + col1 FROM tab1 AS cor0
----
-1
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 29 col0 FROM tab1 AS cor0
----
29

query II rowsort
SELECT ALL + col2, 15 AS col0 FROM tab0 AS cor0
----
10
15
47
15
99
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT MAX( col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4114
SELECT MAX ( col2 ) FROM tab0
----
99

query I rowsort
SELECT ALL - 10 * col0 AS col1 FROM tab0
----
-150
-870
-970

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4116
SELECT DISTINCT - CAST( + + 77 AS SIGNED ) * - col2 FROM tab2
----
1771
3080
4466

skipif mysql # not compatible
query I rowsort label-4116
SELECT DISTINCT - CAST ( + + 77 AS INTEGER ) * - col2 FROM tab2
----
1771
3080
4466

query III rowsort
SELECT * FROM tab2 WHERE NOT 47 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4118
SELECT ALL COUNT( * ) DIV 47 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL COUNT ( * ) / 47 FROM tab2
----
0

query I rowsort
SELECT ALL + col0 * + col2 + + ( - - 7 ) FROM tab0
----
712
877
9610

query III rowsort
SELECT * FROM tab2 WHERE NOT + 98 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + 66 AS col2, col1 AS col1 FROM tab2
----
66
51
66
67
66
77

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT NULL >= + ( 80 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4123
SELECT - COUNT( * ), - COUNT( * ) FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-4123
SELECT - COUNT ( * ), - COUNT ( * ) FROM tab0 AS cor0
----
-3
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 53 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4126
SELECT - - CAST( NULL AS SIGNED ) / + col2 / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4126
SELECT - - CAST ( NULL AS INTEGER ) / + col2 / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT ALL - MIN( 19 ) AS col0 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL - MIN ( 19 ) AS col0 FROM tab2 AS cor0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT COUNT( * ) + + 36 AS col0 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-4128
SELECT COUNT ( * ) + + 36 AS col0 FROM tab0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4129
SELECT ALL 46 + COUNT( * ) AS col0, CAST( - 77 AS SIGNED ) FROM tab1
----
49
-77

skipif mysql # not compatible
query II rowsort label-4129
SELECT ALL 46 + COUNT ( * ) AS col0, CAST ( - 77 AS INTEGER ) FROM tab1
----
49
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT DISTINCT + MAX( ALL + - 89 ) + + 19 * - - 25 FROM tab1
----
386

skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT + MAX ( ALL + - 89 ) + + 19 * - - 25 FROM tab1
----
386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4131
SELECT - COUNT( DISTINCT - col0 ) DIV - ( + + CAST( - 37 AS SIGNED ) ) + - COUNT( * ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4131
SELECT - COUNT ( DISTINCT - col0 ) / - ( + + CAST ( - 37 AS INTEGER ) ) + - COUNT ( * ) AS col2 FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4132
SELECT DISTINCT - + 32 + - CAST( NULL AS SIGNED ) * + - col0 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4132
SELECT DISTINCT - + 32 + - CAST ( NULL AS INTEGER ) * + - col0 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4133
SELECT ALL - 14 - 69 AS col1, MIN( col0 ) AS col0 FROM tab1 AS cor0
----
-83
51

skipif mysql # not compatible
query II rowsort label-4133
SELECT ALL - 14 - 69 AS col1, MIN ( col0 ) AS col0 FROM tab1 AS cor0
----
-83
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = ( col1 / col2 )
----

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NULL IN ( - col0 )
----

query I rowsort
SELECT DISTINCT - 95 * - 94 + - ( - col2 ) FROM tab2 AS cor0
----
8953
8970
8988

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT SUM( - 47 ) AS col1 FROM tab2
----
-141

skipif mysql # not compatible
query I rowsort label-4137
SELECT SUM ( - 47 ) AS col1 FROM tab2
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT DISTINCT COUNT( * ) FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4138
SELECT DISTINCT COUNT ( * ) FROM tab2, tab0 AS cor0
----
9

query I rowsort
SELECT ALL - 77 - + col2 FROM tab2
----
-100
-117
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT ALL + MAX( ALL - col2 ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4140
SELECT ALL + MAX ( ALL - col2 ) AS col1 FROM tab1
----
-59

query I rowsort
SELECT - 86 - + 8 FROM tab2
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-4142
SELECT ALL COUNT( * ), SUM( DISTINCT col1 ) AS col0 FROM tab0
----
3
103

skipif mysql # not compatible
query II rowsort label-4142
SELECT ALL COUNT ( * ), SUM ( DISTINCT col1 ) AS col0 FROM tab0
----
3
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - col2 - - - col0 col0 FROM tab0
----
-187
-2224
-9898

query I rowsort
SELECT DISTINCT + 5 AS col0 FROM tab0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4145
SELECT col2 DIV 46 - + col0 + + col2 FROM tab0
----
-77
33
4

skipif mysql # not compatible
query I rowsort label-4145
SELECT col2 / 46 - + col0 + + col2 FROM tab0
----
-77
33
4

query II rowsort
SELECT - col0 AS col2, + 52 FROM tab2 AS cor0
----
-46
52
-64
52
-75
52

query I rowsort
SELECT DISTINCT 44 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4148
SELECT + 75 DIV COUNT( * ) FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-4148
SELECT + 75 / COUNT ( * ) FROM tab0 AS cor0
----
25

query I rowsort
SELECT DISTINCT 33 * col0 FROM tab1
----
1683
2805
3003

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT DISTINCT MAX( DISTINCT - + col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4150
SELECT DISTINCT MAX ( DISTINCT - + col2 ) FROM tab1
----
-59

query I rowsort
SELECT - - col0 * + col1 + - ( - col0 ) FROM tab1 AS cor0
----
4368
510
765

onlyif mysql # DIV for integer division: 
query I rowsort label-4152
SELECT DISTINCT - - 97 DIV - col0 FROM tab0 AS cor0
----
-1
-6

skipif mysql # not compatible
query I rowsort label-4152
SELECT DISTINCT - - 97 / - col0 FROM tab0 AS cor0
----
-1
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 28 ) col1 FROM tab2 AS cor0 WHERE NOT ( NOT - col2 IS NULL )
----

query I rowsort
SELECT DISTINCT - 1 * - ( col0 ) FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 91 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT - SUM( + col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-4157
SELECT - SUM ( + col0 ) FROM tab0
----
-199

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + - ( col2 ) ) + - 79 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND ( - 32 )
----

query I rowsort
SELECT DISTINCT - ( 65 ) AS col2 FROM tab0 AS cor0
----
-65

query I rowsort
SELECT col2 * - 71 AS col1 FROM tab0
----
-3337
-7029
-710

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT - MIN( ALL + - col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4162
SELECT - MIN ( ALL + - col0 ) FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4163
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT - - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4164
SELECT - - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT * FROM tab2 WHERE - col0 + + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 - + + 60 FROM tab0 AS cor0
----
-39
-59
21

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 61 * + col1 + + col1 + col0 AS col2 FROM tab1 AS cor0
----
-215
-2729
-789

query I rowsort
SELECT ALL + col0 * - 98 + + ( col1 ) * col0 AS col1 FROM tab0 AS cor0
----
-255
-6699
-9409

query I rowsort
SELECT DISTINCT - col0 * - col2 - - col1 FROM tab0
----
786
891
9604

query I rowsort
SELECT + 96 * + col2 * + 4 AS col0 FROM tab0
----
18048
38016
3840

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 48 IS NOT NULL
----

query I rowsort
SELECT ALL + 48 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
48
48
48

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT + + col0 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4175
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL <> - CAST( NULL AS SIGNED ) * - ( - col1 ) ) )
----

skipif mysql # not compatible
query III rowsort label-4175
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL <> - CAST ( NULL AS INTEGER ) * - ( - col1 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT - - 86 * + - COUNT( + 83 ) + COUNT( * ) * + + ( + 40 ) * + - 26 col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4176
SELECT - - 86 * + - COUNT ( + 83 ) + COUNT ( * ) * + + ( + 40 ) * + - 26 col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4177
SELECT - COUNT( + 15 ) AS col1, MAX( ALL + 31 ) col1 FROM tab2 AS cor0
----
-3
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4177
SELECT - COUNT ( + 15 ) AS col1, MAX ( ALL + 31 ) col1 FROM tab2 AS cor0
----
-3
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT ALL 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-4178
SELECT ALL SUM ( ALL + col0 ) col1 FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT - - 98 * + 5 AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
490

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4180
SELECT DISTINCT - - ( + 59 ) * - col0 * - col2 * + col1 + + col1 DIV - ( - col0 ), - CAST( NULL AS SIGNED ) * - CAST( + ( col0 ) AS SIGNED ) + + - col0 AS col0 FROM tab0 AS cor0
----
1077930
NULL
3369200
NULL
566577
NULL

skipif mysql # not compatible
query II rowsort label-4180
SELECT DISTINCT - - ( + 59 ) * - col0 * - col2 * + col1 + + col1 / - ( - col0 ), - CAST ( NULL AS INTEGER ) * - CAST ( + ( col0 ) AS INTEGER ) + + - col0 AS col0 FROM tab0 AS cor0
----
1077930
NULL
3369200
NULL
566577
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4181
SELECT - CAST( NULL AS SIGNED ) * - col0 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-4181
SELECT - CAST ( NULL AS INTEGER ) * - col0 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 + + 54 FROM tab0 AS cor0
----
-33
-43
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 19 + col0 col0 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
104
110
70

query I rowsort
SELECT ALL col1 * - ( col1 ) * col2 FROM tab2 AS cor0
----
-237160
-260362
-59823

query I rowsort
SELECT + col2 * - 2 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT col0 * - 88 + col1 * col0 + col2 FROM tab0 AS cor0
----
-58
-5819
-8340

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT ALL + + MIN( DISTINCT - - 31 ) FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL + + MIN ( DISTINCT - - 31 ) FROM tab1 AS cor0
----
31

query I rowsort
SELECT + col0 + - col1 * ( + col0 ) FROM tab1 AS cor0
----
-340
-4186
-663

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4189
SELECT - CAST( NULL AS SIGNED ) * + col1 + - + 28, + col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-4189
SELECT - CAST ( NULL AS INTEGER ) * + col1 + - + 28, + col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT ALL - - col2 * - - ( - 98 ) * col0 FROM tab1 AS cor0
----
-479808
-491470
-606424

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 + - 47 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( ( + 93 ) ) FROM tab1
----
93

query III rowsort
SELECT * FROM tab1 WHERE + col1 + - col2 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <> + 92
----

query I rowsort
SELECT DISTINCT 55 FROM tab1, tab1 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT + + AVG ( + + 69 ) FROM tab0 WHERE NULL <= - ( 53 ) - 9
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4197
SELECT + CAST( - - col0 AS SIGNED ) FROM tab1 AS cor0 WHERE - ( + col2 ) >= + col2 / + 56
----

skipif mysql # not compatible
query I rowsort label-4197
SELECT + CAST ( - - col0 AS INTEGER ) FROM tab1 AS cor0 WHERE - ( + col2 ) >= + col2 / + 56
----

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE + 81 IS NOT NULL
----
51
85
91

query I rowsort
SELECT - col2 * - - 81 * - + 26 - - - col1 AS col0 FROM tab2 AS cor0
----
122081
48387
84163

query I rowsort
SELECT ALL + 50 + - 90 * col1 - - - col0 FROM tab2 AS cor0
----
-4586
-6055
-6944

query II rowsort
SELECT DISTINCT - + 92 - + 12 AS col1, - 82 AS col0 FROM tab1 AS cor0
----
-104
-82

query I rowsort
SELECT ALL + col0 * - 94 FROM tab2
----
-4324
-6016
-7050

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT ALL 7 * + ( + MIN( col0 ) ) FROM tab2
----
322

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL 7 * + ( + MIN ( col0 ) ) FROM tab2
----
322

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT ALL + COUNT( * ) + - 32 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL + COUNT ( * ) + - 32 FROM tab0
----
-29

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4205
SELECT * FROM tab2 AS cor0 WHERE + CAST( NULL AS DECIMAL ) * + ( col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4205
SELECT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS REAL ) * + ( col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4206
SELECT DISTINCT - + COUNT( DISTINCT + - col2 ) DIV 79 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 - - col2 < - 9 + 28 + + - col0
----
0

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT - + COUNT ( DISTINCT + - col2 ) / 79 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 - - col2 < - 9 + 28 + + - col0
----
0

query I rowsort
SELECT ALL - ( + + 18 ) - + 29 + + 36 * + col0 * + - 13 FROM tab1 AS cor0
----
-23915
-39827
-42635

query I rowsort
SELECT + 76 * - - 0 * - col2 + - + col2 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4209
SELECT - + MIN( ALL CAST( + - 15 AS SIGNED ) ) FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4209
SELECT - + MIN ( ALL CAST ( + - 15 AS INTEGER ) ) FROM tab2 AS cor0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4210
SELECT - 81 DIV 98 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4210
SELECT - 81 / 98 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT DISTINCT - COUNT( * ) + COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4211
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT + - COUNT( * ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4212
SELECT + - COUNT ( * ) col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4213
SELECT + col1, col2 + col1 - - CAST( - - 89 AS SIGNED ) DIV - col2 + - 34 FROM tab1
----
14
76
47
80
5
29

skipif mysql # not compatible
query II rowsort label-4213
SELECT + col1, col2 + col1 - - CAST ( - - 89 AS INTEGER ) / - col2 + - 34 FROM tab1
----
14
76
47
80
5
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT ALL - SUM( DISTINCT + 90 ) FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-4214
SELECT ALL - SUM ( DISTINCT + 90 ) FROM tab2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT DISTINCT COUNT( * ) * + MIN( DISTINCT - col1 ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-4215
SELECT DISTINCT COUNT ( * ) * + MIN ( DISTINCT - col1 ) FROM tab2
----
-231

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col2 = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 97 * + - 16 * + ( - col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT DISTINCT - COUNT( * ) * + 78 FROM tab2
----
-234

skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT - COUNT ( * ) * + 78 FROM tab2
----
-234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4220
SELECT DISTINCT - COUNT( * ) DIV - COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4220
SELECT DISTINCT - COUNT ( * ) / - COUNT ( * ) FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4221
SELECT - col0 * + CAST( + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-4221
SELECT - col0 * + CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-225
-7569
-9409

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT ALL col0 + col1 * col1 * - 82 AS col0 FROM tab0
----
-36075
-537987
15

query I rowsort
SELECT DISTINCT + - ( - + ( col1 ) ) FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL + 5 + 48 + - + 71 + - 26 FROM tab1 AS cor0
----
-44
-44
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 col1 FROM tab0 AS cor0
----
-57

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 + + - col2 FROM tab1 cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT - COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4229
SELECT - COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT ALL + col0 + + 40 * ( + col0 ) FROM tab0 AS cor0
----
3567
3977
615

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT ALL SUM( + ( - + 23 ) ) FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4231
SELECT ALL SUM ( + ( - + 23 ) ) FROM tab2 AS cor0
----
-69

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT - - MIN( - ( 88 ) ) FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-4233
SELECT - - MIN ( - ( 88 ) ) FROM tab0 AS cor0
----
-88

query I rowsort
SELECT DISTINCT - ( - 86 ) FROM tab2 AS cor0 WHERE NOT ( col2 ) IS NULL
----
86

query I rowsort
SELECT + col0 * - col2 + col2 * + col2 - - - col1 AS col2 FROM tab1 AS cor0
----
-1539
-1611
4306

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4236
SELECT + 38 * + CAST( NULL AS SIGNED ) + - - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4236
SELECT + 38 * + CAST ( NULL AS INTEGER ) + - - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + 99 FROM tab0
----
109
146
198

query I rowsort
SELECT - 44 + - + col2 FROM tab2
----
-102
-67
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT ALL - SUM( + col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4239
SELECT ALL - SUM ( + col0 ) FROM tab1
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4240
SELECT ALL 32 + + + CAST( + col0 AS SIGNED ) FROM tab0
----
119
129
47

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL 32 + + + CAST ( + col0 AS INTEGER ) FROM tab0
----
119
129
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4241
SELECT + col0 + - col2 + CAST( + + 11 AS SIGNED ) * - col2 AS col1 FROM tab2
----
-230
-416
-621

skipif mysql # not compatible
query I rowsort label-4241
SELECT + col0 + - col2 + CAST ( + + 11 AS INTEGER ) * - col2 AS col1 FROM tab2
----
-230
-416
-621

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 col2 FROM tab1
----
9

query I rowsort
SELECT 68 + - col2 FROM tab1
----
-28
0
9

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE - + col2 * + col1 * + col1 * + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4245
SELECT - 18 + col0 + + CAST( NULL AS SIGNED ) + - - CAST( + col0 AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT - 18 + col0 + + CAST ( NULL AS INTEGER ) + - - CAST ( + col0 AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - 46 FROM tab0 AS cor0
----
-3726
-46
-966

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 WHERE NOT ( - col2 - + 76 ) BETWEEN NULL AND col0
----

query I rowsort
SELECT DISTINCT + col0 * + 75 * + col0 AS col1 FROM tab1 AS cor0
----
195075
541875
621075

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT + COUNT( + - 39 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4249
SELECT + COUNT ( + - 39 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT ALL - 19 * - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL - 19 * - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-57

query I rowsort
SELECT ALL - col1 * - 57 * - col1 FROM tab0 AS cor0
----
-25137
-373977
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-4252
SELECT ALL 89 DIV + 74 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL 89 / + 74 FROM tab2
----
1
1
1

query I rowsort
SELECT ( - 39 ) FROM tab2 WHERE NOT NULL <= ( + + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) col0 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL col2 FROM tab1 WHERE ( NULL IS NULL )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT ALL COUNT( * ) * - 12 * MIN( col2 ) FROM tab1
----
-2124

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL COUNT ( * ) * - 12 * MIN ( col2 ) FROM tab1
----
-2124

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT ALL COUNT( - + ( + 36 ) ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4257
SELECT ALL COUNT ( - + ( + 36 ) ) col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT - + ( + COUNT( * ) ) * MAX( col0 ) - - + 84 FROM tab1 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-4258
SELECT - + ( + COUNT ( * ) ) * MAX ( col0 ) - - + 84 FROM tab1 AS cor0
----
-189

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - + col1, col2 AS col0 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * - 73 * - col0 IN ( + + col1, - col2, col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 74 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT ALL 5 * 53 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c350ce0e10ad00a8b78cf664eaef5ba6

query I rowsort
SELECT ALL - col0 * - + col0 + 15 * - col2 FROM tab0 AS cor0
----
-480
7419
7924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4265
SELECT DISTINCT - col2 / - col0 + + 88 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4265
SELECT DISTINCT - col2 / - col0 + + 88 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4266
SELECT - 12 DIV col1 + col0 * 22 * - col2 FROM tab0 AS cor0
----
-15510
-19140
-211278

skipif mysql # not compatible
query I rowsort label-4266
SELECT - 12 / col1 + col0 * 22 * - col2 FROM tab0 AS cor0
----
-15510
-19140
-211278

query I rowsort
SELECT - col2 + + 34 + + col0 AS col0 FROM tab0 AS cor0
----
111
2
32

query I rowsort
SELECT + ( col1 ) FROM tab0 cor0 WHERE NULL < col0 / - col2 - - + col1
----

query I rowsort
SELECT - col0 + 92 * - col2 AS col1 FROM tab2 AS cor0
----
-2162
-3744
-5411

query I rowsort
SELECT col0 + - + col0 * 10 AS col2 FROM tab1 AS cor0
----
-459
-765
-819

query II rowsort
SELECT DISTINCT col0, - col0 AS col2 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4272
SELECT ALL + COUNT( * ) AS col0, 75 FROM tab0 AS cor0
----
3
75

skipif mysql # not compatible
query II rowsort label-4272
SELECT ALL + COUNT ( * ) AS col0, 75 FROM tab0 AS cor0
----
3
75

query I rowsort
SELECT col2 * - - col2 + - 26 AS col2 FROM tab2 AS cor0
----
1574
3338
503

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - + col2 BETWEEN NULL AND NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 70 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4276
SELECT DISTINCT - COUNT( * ) + + COUNT( + CAST( + col1 AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4276
SELECT DISTINCT - COUNT ( * ) + + COUNT ( + CAST ( + col1 AS INTEGER ) ) FROM tab0
----
0

query I rowsort
SELECT ALL + + col0 AS col1 FROM tab0 WHERE - col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 79 + + 15 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4279
SELECT + COUNT( * ) DIV + 79 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4279
SELECT + COUNT ( * ) / + 79 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col1 + + - col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col2 - + 81 FROM tab1 AS cor0
----
-140
-149
-177

onlyif mysql # DIV for integer division: 
query I rowsort label-4282
SELECT - + col0 DIV + + 30 + - col1 + + + col0 + col2 * + col1 AS col1 FROM tab2 AS cor0
----
1167
3065
3892

skipif mysql # not compatible
query I rowsort label-4282
SELECT - + col0 / + + 30 + - col1 + + + col0 + col2 * + col1 AS col1 FROM tab2 AS cor0
----
1167
3065
3892

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4283
SELECT - 6 + - + 68 DIV MIN( DISTINCT col2 ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-4283
SELECT - 6 + - + 68 / MIN ( DISTINCT col2 ) FROM tab0 AS cor0
----
-12

query I rowsort
SELECT DISTINCT + col0 * 64 * - + 80 FROM tab2 WHERE NOT - + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 64 * + 81 col1 FROM tab0 cor0
----
5184
5184
5184

onlyif mysql # DIV for integer division: 
query I rowsort label-4287
SELECT col0 DIV 39 FROM tab1 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-4287
SELECT col0 / 39 FROM tab1 AS cor0
----
1
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT - COUNT( * ) * + COUNT( * ) * 24 + + MIN( + - 14 ) AS col1 FROM tab2 AS cor0
----
-230

skipif mysql # not compatible
query I rowsort label-4288
SELECT - COUNT ( * ) * + COUNT ( * ) * 24 + + MIN ( + - 14 ) AS col1 FROM tab2 AS cor0
----
-230

query II rowsort
SELECT col2, - 44 AS col2 FROM tab0 AS cor0
----
10
-44
47
-44
99
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT DISTINCT - AVG ( + + ( + 34 ) ) * - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT - AVG ( + + ( + 34 ) ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL >= NULL
----
NULL

query I rowsort
SELECT DISTINCT + 84 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + - 53 AND NULL
----

query I rowsort
SELECT ALL + col2 * + - col0 AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4293
SELECT + col2 col2, + col0 + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4293
SELECT + col2 col2, + col0 + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4294
SELECT ALL CAST( 48 AS SIGNED ) * COUNT( * ) FROM tab2 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL CAST ( 48 AS INTEGER ) * COUNT ( * ) FROM tab2 AS cor0
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4295
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-4295
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 IN ( - 99 )
----
97
1
99

query I rowsort
SELECT - 29 AS col1 FROM tab0 WHERE NOT - col0 IS NULL
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT ( + COUNT( + col1 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4298
SELECT ( + COUNT ( + col1 ) ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT + 66 * + COUNT( * ) col1 FROM tab2
----
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4299
SELECT + 66 * + COUNT ( * ) col1 FROM tab2
----
198

query II rowsort
SELECT - 32 * + - col2 AS col2, col2 FROM tab2
----
1280
40
1856
58
736
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT DISTINCT + COUNT( DISTINCT - + 89 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT + COUNT ( DISTINCT - + 89 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL + col2 * 44 AS col0 FROM tab1 AS cor0
----
2596
2992
4224

query I rowsort
SELECT ALL 83 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4305
SELECT CAST( NULL AS SIGNED ) * col0 * - - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4305
SELECT CAST ( NULL AS INTEGER ) * col0 * - - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT ALL COUNT( * ) + MIN( DISTINCT - + col0 ) FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL COUNT ( * ) + MIN ( DISTINCT - + col0 ) FROM tab1 AS cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT ALL - + SUM( ALL + 57 ) + - + 37 AS col2 FROM tab1 AS cor0
----
-208

skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL - + SUM ( ALL + 57 ) + - + 37 AS col2 FROM tab1 AS cor0
----
-208

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 * col2 + 61 AS col0 FROM tab2
----
1234
3141
3947

query I rowsort
SELECT - 39 + - - 3 AS col1 FROM tab1
----
-36
-36
-36

query I rowsort
SELECT + col2 + - + col2 * + - 24 FROM tab2
----
1000
1450
575

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT DISTINCT - SUM( + col1 ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4312
SELECT DISTINCT - SUM ( + col1 ) AS col1 FROM tab1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4313
SELECT ALL * FROM tab1 WHERE NOT + 7 NOT BETWEEN NULL AND - - 77 * col1 * ( + 19 ) * + + col1 + CAST( NULL AS SIGNED ) * - 6 + - 4
----

skipif mysql # not compatible
query III rowsort label-4313
SELECT ALL * FROM tab1 WHERE NOT + 7 NOT BETWEEN NULL AND - - 77 * col1 * ( + 19 ) * + + col1 + CAST ( NULL AS INTEGER ) * - 6 + - 4
----

query I rowsort
SELECT + 80 FROM tab1 WHERE + - ( 20 ) IS NOT NULL
----
80
80
80

query I rowsort
SELECT DISTINCT ( + - 99 ) FROM tab0
----
-99

query III rowsort
SELECT * FROM tab0 WHERE NULL = + + ( + - 42 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4317
SELECT ALL - + col2 - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL - + col2 - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * col0 FROM tab1 AS cor0 WHERE - 67 > - col2
----
4277
714

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 * col0 AND - 84
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4320
SELECT - col0 - + CAST( NULL AS DECIMAL ) * - col1 * + CAST( NULL AS DECIMAL ) + - + 67 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4320
SELECT - col0 - + CAST ( NULL AS REAL ) * - col1 * + CAST ( NULL AS REAL ) + - + 67 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT ALL COUNT( * ) * COUNT( * ) * + - ( + COUNT( * ) ) AS col2 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL COUNT ( * ) * COUNT ( * ) * + - ( + COUNT ( * ) ) AS col2 FROM tab1
----
-27

query I rowsort
SELECT ALL - 2 * + 69 FROM tab2 AS cor0
----
-138
-138
-138

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 4 * - col1 * + 23 FROM tab2 AS cor0
----
4692
6164
7084

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 col0 FROM tab0 AS cor0 WHERE NOT 58 NOT BETWEEN NULL AND - col2 / - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT - - 34 * COUNT( * ) FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-4327
SELECT - - 34 * COUNT ( * ) FROM tab1 AS cor0
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-4328
SELECT DISTINCT 21 * - 55, - COUNT( * ) + MAX( col0 ) + - 10 + + 28 col0 FROM tab1 AS cor0
----
-1155
106

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4328
SELECT DISTINCT 21 * - 55, - COUNT ( * ) + MAX ( col0 ) + - 10 + + 28 col0 FROM tab1 AS cor0
----
-1155
106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 15 col1 FROM tab2 AS cor0
----
-15
-15
-15

query I rowsort
SELECT - 99 * col0 + + col1 AS col0 FROM tab0 AS cor0
----
-1404
-8592
-9602

query I rowsort
SELECT DISTINCT - 79 * + col0 AS col0 FROM tab2
----
-3634
-5056
-5925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4332
SELECT ALL MAX( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL MAX ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query II rowsort
SELECT + col2 AS col0, col1 AS col1 FROM tab0
----
10
21
47
81
99
1

query I rowsort
SELECT - col2 * - - 88 AS col1 FROM tab0
----
-4136
-8712
-880

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE - 11 < + + 59
----
-46
-64
-75

query III rowsort
SELECT * FROM tab2 WHERE NOT + 92 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4337
SELECT ALL 55 * 49 + - - MAX( ALL CAST( + col2 AS SIGNED ) ) FROM tab0 AS cor0
----
2794

skipif mysql # not compatible
query I rowsort label-4337
SELECT ALL 55 * 49 + - - MAX ( ALL CAST ( + col2 AS INTEGER ) ) FROM tab0 AS cor0
----
2794

onlyif mysql # DIV for integer division: 
query I rowsort label-4338
SELECT - - col0 * - col2 + - + 55 + - ( + ( - col2 ) ) * - 53 + 64 * col2 DIV + 67 AS col1 FROM tab1 AS cor0
----
-8141
-9783
-9948

skipif mysql # not compatible
query I rowsort label-4338
SELECT - - col0 * - col2 + - + 55 + - ( + ( - col2 ) ) * - 53 + 64 * col2 / + 67 AS col1 FROM tab1 AS cor0
----
-8141
-9783
-9948

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 >= - + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4340
SELECT ALL col0 DIV col1 + - col1 FROM tab1 AS cor0
----
-11
-46
12

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL col0 / col1 + - col1 FROM tab1 AS cor0
----
-11
-46
12

query I rowsort
SELECT DISTINCT 75 + + col0 * + col2 FROM tab0 cor0 WHERE NOT NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4342
SELECT 18 DIV - + 74 * col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4342
SELECT 18 / - + 74 * col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 96 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( 97 ) AS col1 FROM tab1
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4345
SELECT DISTINCT + 12 DIV - col2 * - col0 + + col1 + - 42 FROM tab1
----
-28
-37
5

skipif mysql # not compatible
query I rowsort label-4345
SELECT DISTINCT + 12 / - col2 * - col0 + + col1 + - 42 FROM tab1
----
-28
-37
5

query II rowsort
SELECT DISTINCT + ( col1 ), col1 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT ALL 31 + + MIN( + + col2 ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL 31 + + MIN ( + + col2 ) FROM tab2 AS cor0
----
54

query I rowsort
SELECT - 6 + - 94 FROM tab0 cor0
----
-100
-100
-100

query I rowsort
SELECT ALL + col1 + 77 AS col0 FROM tab1 AS cor0
----
124
82
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4350
SELECT DISTINCT CAST( 11 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT CAST ( 11 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4351
SELECT DISTINCT + - ( + + COUNT( * ) ) DIV COUNT( * ) + + - MAX( DISTINCT - col0 ) FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT + - ( + + COUNT ( * ) ) / COUNT ( * ) + + - MAX ( DISTINCT - col0 ) FROM tab0 AS cor0
----
14

query I rowsort
SELECT ALL 88 - + col1 FROM tab0 AS cor0
----
67
7
87

query I rowsort
SELECT ALL - ( + ( - 47 ) ) * 78 FROM tab0
----
3666
3666
3666

query III rowsort
SELECT * FROM tab0 WHERE - - 7 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT + 54 - + - COUNT( * ) AS col0 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-4355
SELECT + 54 - + - COUNT ( * ) AS col0 FROM tab0
----
57

query I rowsort
SELECT 14 - col1 AS col2 FROM tab2
----
-37
-53
-63

query I rowsort
SELECT 46 + - - col2 AS col2 FROM tab0 AS cor0
----
145
56
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + 5 * - 75 col2 FROM tab2 AS cor0
----
-300
-311
-329

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE - col0 > NULL
----

query II rowsort
SELECT DISTINCT col0, - ( + 39 ) FROM tab1
----
51
-39
85
-39
91
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT DISTINCT - MAX( + 14 ) AS col0 FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT - MAX ( + 14 ) AS col0 FROM tab1 AS cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT - COUNT( + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4362
SELECT - COUNT ( + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4364
SELECT DISTINCT + CAST( - 47 AS SIGNED ) AS col0 FROM tab2 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT + CAST ( - 47 AS INTEGER ) AS col0 FROM tab2 cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT COUNT( ALL + - col1 ) * + - COUNT( * ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4365
SELECT COUNT ( ALL + - col1 ) * + - COUNT ( * ) AS col1 FROM tab0
----
-9

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-4367
SELECT + ( 66 ), - COUNT( * ) col2 FROM tab2
----
66
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4367
SELECT + ( 66 ), - COUNT ( * ) col2 FROM tab2
----
66
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * col2 / - 29 + + - col1 + 21 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4369
SELECT ALL + CAST( - 60 AS SIGNED ) + - 54 AS col0 FROM tab1
----
-114
-114
-114

skipif mysql # not compatible
query I rowsort label-4369
SELECT ALL + CAST ( - 60 AS INTEGER ) + - 54 AS col0 FROM tab1
----
-114
-114
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-4370
SELECT ALL - col1 + + + col1 DIV - col2 + ( - - 27 ) + - 43 AS col2 FROM tab0
----
-17
-39
-98

skipif mysql # not compatible
query I rowsort label-4370
SELECT ALL - col1 + + + col1 / - col2 + ( - - 27 ) + - 43 AS col2 FROM tab0
----
-17
-39
-98

query I rowsort
SELECT col0 + - col1 + - 5 FROM tab0
----
-71
61
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT + SUM( col2 ) col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4372
SELECT + SUM ( col2 ) col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
NULL

query I rowsort
SELECT ALL + + 29 FROM tab0 cor0
----
29
29
29

query I rowsort
SELECT - col0 - + 31 AS col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT + col2 * - + col2 AS col2 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT + col1 - col1 * 17 FROM tab2 AS cor0
----
-1072
-1232
-816

query I rowsort
SELECT DISTINCT + - col1 + + col0 * 48 FROM tab2 AS cor0
----
2157
2995
3533

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < ( NULL )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - col0 ) * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - + col1 AS col2, col1 - 19 FROM tab0 AS cor0
----
-1
-18
-21
2
-81
62

query I rowsort
SELECT DISTINCT col0 - + ( + + col2 ) - - + col0 AS col0 FROM tab0 AS cor0
----
-17
164
95

query I rowsort
SELECT DISTINCT 30 * + col1 * + col2 * col1 FROM tab1
----
44250
4506360
564480

query II rowsort
SELECT col0 + + - col2 AS col0, 65 AS col0 FROM tab2
----
17
65
23
65
24
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT DISTINCT SUM( DISTINCT - col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4384
SELECT DISTINCT SUM ( DISTINCT - col0 ) AS col0 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT DISTINCT COUNT( * ) * - COUNT( DISTINCT + col0 ) col1 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4385
SELECT DISTINCT COUNT ( * ) * - COUNT ( DISTINCT + col0 ) col1 FROM tab0
----
-9

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * + 91 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT + SUM( DISTINCT + ( + + col1 ) ) col1 FROM tab1 cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4387
SELECT + SUM ( DISTINCT + ( + + col1 ) ) col1 FROM tab1 cor0
----
66

query I rowsort
SELECT DISTINCT ( - col0 ) * ( + col0 ) * + - 5 FROM tab0 AS cor0
----
1125
37845
47045

query I rowsort
SELECT ALL + + 26 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col2 = - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4391
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * col1 = NULL
----

skipif mysql # not compatible
query III rowsort label-4391
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4392
SELECT DISTINCT CAST( + AVG ( ALL + - col2 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-4392
SELECT DISTINCT CAST ( + AVG ( ALL + - col2 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-74

query I rowsort
SELECT ( - ( - 61 ) ) + + + 16 + - + 92 * 8 FROM tab1 cor0
----
-659
-659
-659

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4394
SELECT + col0 AS col0, - CAST( + 40 AS SIGNED ) * - col2 AS col0 FROM tab2 AS cor0
----
46
920
64
1600
75
2320

skipif mysql # not compatible
query II rowsort label-4394
SELECT + col0 AS col0, - CAST ( + 40 AS INTEGER ) * - col2 AS col0 FROM tab2 AS cor0
----
46
920
64
1600
75
2320

query II rowsort
SELECT col2 * 60, col0 FROM tab1
----
3540
85
4080
91
5760
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4396
SELECT - COUNT( * ) DIV 78 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4396
SELECT - COUNT ( * ) / 78 AS col1 FROM tab1
----
0

query II rowsort
SELECT col2 AS col0, col2 * col0 AS col2 FROM tab2
----
23
1058
40
2560
58
4350

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col0 - + col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4399
SELECT + - MIN( DISTINCT col0 ) + + + 13 FROM tab2 WHERE CAST( + - 37 AS SIGNED ) > col1 * - 84 * 64
----
-33

skipif mysql # not compatible
query I rowsort label-4399
SELECT + - MIN ( DISTINCT col0 ) + + + 13 FROM tab2 WHERE CAST ( + - 37 AS INTEGER ) > col1 * - 84 * 64
----
-33

query I rowsort
SELECT ALL 22 + + col1 FROM tab0
----
103
23
43

query I rowsort
SELECT 95 FROM tab2 AS cor0 WHERE col2 * + col2 * - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4402
SELECT ALL - 34 + + COUNT( * ) col2, 8 AS col2 FROM tab0 AS cor0
----
-31
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4402
SELECT ALL - 34 + + COUNT ( * ) col2, 8 AS col2 FROM tab0 AS cor0
----
-31
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 58 col0, 78 FROM tab1 AS cor0
----
58
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 58 col0, + ( + col1 ) * + - col0 * ( + - col1 ) AS col0 FROM tab1 AS cor0
----
-58
201019
-58
2125
-58
9996

onlyif mysql # DIV for integer division: 
query I rowsort label-4405
SELECT + - col0 * - 6 + - - col1 DIV + col0 + + 50 + + 44 * - 80 * + col1 col2 FROM tab1 AS cor0
----
-164844
-17040
-48924

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4405
SELECT + - col0 * - 6 + - - col1 / + col0 + + 50 + + 44 * - 80 * + col1 col2 FROM tab1 AS cor0
----
-164844
-17040
-48924

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT + MIN( DISTINCT - col0 ) + - ( - + 75 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4406
SELECT + MIN ( DISTINCT - col0 ) + - ( - + 75 ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4407
SELECT DISTINCT + CAST( + 75 AS SIGNED ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4407
SELECT DISTINCT + CAST ( + 75 AS INTEGER ) FROM tab2
----
75

query I rowsort
SELECT - 1 - - col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT - COUNT( * ) * MIN( ALL + - 98 ) AS col2 FROM tab0 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-4409
SELECT - COUNT ( * ) * MIN ( ALL + - 98 ) AS col2 FROM tab0 AS cor0
----
294

query I rowsort
SELECT DISTINCT - ( - + 50 ) + + 57 * col2 FROM tab0 AS cor0
----
2729
5693
620

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT - SUM( - col1 ) AS col2 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-4411
SELECT - SUM ( - col1 ) AS col2 FROM tab1 cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT - + MIN( - 19 ) col2 FROM tab1 cor0
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4412
SELECT - + MIN ( - 19 ) col2 FROM tab1 cor0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4413
SELECT - + CAST( - MAX( + col1 ) AS SIGNED ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4413
SELECT - + CAST ( - MAX ( + col1 ) AS INTEGER ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT ALL - + 73 - + + 73 FROM tab1 AS cor0
----
-146
-146
-146

query I rowsort
SELECT DISTINCT - - 90 FROM tab1 AS cor0 WHERE + + 27 IS NOT NULL AND 37 * + + col0 BETWEEN 64 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4416
SELECT - col2 - col2 DIV + - 19 + col2 AS col2 FROM tab0 AS cor0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-4416
SELECT - col2 - col2 / + - 19 + col2 AS col2 FROM tab0 AS cor0
----
0
2
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4417
SELECT DISTINCT - col1 - + - ( - + 39 ) * + - CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT - col1 - + - ( - + 39 ) * + - CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4418
SELECT ALL + 36 * - CAST( - + COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL + 36 * - CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT MIN( - + 46 ) AS col0 FROM tab1, tab1 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4419
SELECT MIN ( - + 46 ) AS col0 FROM tab1, tab1 cor0
----
-46

query I rowsort
SELECT DISTINCT - 15 * - 68 FROM tab2 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT + + COUNT( * ) FROM tab0 WHERE - col0 NOT BETWEEN NULL AND + col0
----
0

skipif mysql # not compatible
query I rowsort label-4421
SELECT + + COUNT ( * ) FROM tab0 WHERE - col0 NOT BETWEEN NULL AND + col0
----
0

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT NULL < - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4423
SELECT ALL - 74 DIV - + 63 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL - 74 / - + 63 FROM tab1
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4424
SELECT ALL + 41 DIV + col0 AS col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL + 41 / + col0 AS col0 FROM tab0
----
0
0
2

query I rowsort
SELECT - - col0 * - - ( + col0 ) FROM tab0 cor0
----
225
7569
9409

query I rowsort
SELECT + 25 * - + col0 * - 27 AS col2 FROM tab0 AS cor0
----
10125
58725
65475

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 <= 49
----

query I rowsort
SELECT DISTINCT - col0 * col1 * + col1 AS col1 FROM tab2 AS cor0
----
-119646
-336675
-379456

query I rowsort
SELECT col1 / + 18 FROM tab0 WHERE NULL BETWEEN col2 AND - col0 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4430
SELECT * FROM tab0 WHERE NOT 91 BETWEEN 88 + + col0 AND - CAST( NULL AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4430
SELECT * FROM tab0 WHERE NOT 91 BETWEEN 88 + + col0 AND - CAST ( NULL AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 FROM tab0 WHERE ( - col0 ) IS NULL
----

query I rowsort
SELECT + col2 - - col0 * 88 AS col1 FROM tab2
----
4071
5672
6658

query I rowsort
SELECT DISTINCT + col1 * col2 + col0 AS col0 FROM tab0
----
196
297
3822

query I rowsort
SELECT - ( - ( + col2 ) ) AS col2 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT 87 AS col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4436
SELECT ALL col1 DIV 92 + 9 AS col1 FROM tab2
----
9
9
9

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL col1 / 92 + 9 AS col1 FROM tab2
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT DISTINCT MIN( ALL + col1 ) * 5 col2 FROM tab1
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4437
SELECT DISTINCT MIN ( ALL + col1 ) * 5 col2 FROM tab1
----
25

query III rowsort
SELECT * FROM tab2 WHERE NOT 60 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( + 21 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab1 WHERE NOT 11 NOT IN ( col2 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT ALL - MIN( ALL col0 ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL - MIN ( ALL col0 ) AS col1 FROM tab2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4442
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE NOT + CAST( col0 AS SIGNED ) + 70 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4442
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE NOT + CAST ( col0 AS INTEGER ) + 70 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col1 + - col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT SUM( ALL + col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-4445
SELECT SUM ( ALL + col0 ) AS col2 FROM tab0
----
199

query I rowsort
SELECT col0 + - 9 AS col0 FROM tab1
----
42
76
82

query I rowsort
SELECT 54 * - col1 FROM tab0
----
-1134
-4374
-54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4448
SELECT DISTINCT * FROM tab1 WHERE ( - col1 + + ( 13 ) ) <= ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4448
SELECT DISTINCT * FROM tab1 WHERE ( - col1 + + ( 13 ) ) <= ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4449
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT DISTINCT 30 - - 64 * - 19 FROM tab2
----
-1186

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT - 92 * COUNT( ALL col2 ) AS col1 FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-4451
SELECT - 92 * COUNT ( ALL col2 ) AS col1 FROM tab1
----
-276

query I rowsort
SELECT - col0 * + 13 AS col0 FROM tab2
----
-598
-832
-975

query I rowsort
SELECT - ( + 70 ) * + 69 FROM tab0
----
-4830
-4830
-4830

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT + COUNT( - col0 ) * + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4454
SELECT + COUNT ( - col0 ) * + COUNT ( * ) FROM tab0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 98 col2 FROM tab1
----
4998
8330
8918

query I rowsort
SELECT + col1 + + 78 * - col0 FROM tab0 cor0
----
-1089
-6765
-7565

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 <= ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT ALL SUM( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4458
SELECT ALL SUM ( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT MIN( ALL - 31 ) AS col2 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-4459
SELECT MIN ( ALL - 31 ) AS col2 FROM tab0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4460
SELECT CAST( - col1 AS SIGNED ) * col0 FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-4460
SELECT CAST ( - col1 AS INTEGER ) * col0 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
9

query I rowsort
SELECT - col0 * + col0 - + col1 AS col0 FROM tab1
----
-2615
-7230
-8328

query III rowsort
SELECT * FROM tab1 WHERE + col1 * + col0 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT - 47 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT DISTINCT + 53 + col1 FROM tab2 cor0
----
104
120
130

onlyif mysql # DIV for integer division: 
query I rowsort label-4466
SELECT DISTINCT + col2 - 1 DIV + 20 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT + col2 - 1 / + 20 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT - col0 / + col0 FROM tab1 AS cor0 WHERE ( 29 + - 11 ) = col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( - col0 ) / - col2 ) > + 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT - COUNT( * ) + 46 FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-4469
SELECT - COUNT ( * ) + 46 FROM tab1 AS cor0
----
43

query I rowsort
SELECT ALL col1 - + 40 AS col2 FROM tab2 AS cor0
----
11
27
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT ALL + - 2 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4471
SELECT ALL + - 2 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4472
SELECT DISTINCT + ( + ( + col0 ) ) DIV 38 AS col0 FROM tab1 cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-4472
SELECT DISTINCT + ( + ( + col0 ) ) / 38 AS col0 FROM tab1 cor0
----
1
2

query I rowsort
SELECT ( + 1 ) AS col2 FROM tab2
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 NOT BETWEEN col0 + + col0 AND + 72
----

query I rowsort
SELECT - 4 AS col0 FROM tab0
----
-4
-4
-4

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 WHERE NOT col2 * 26 + 25 IS NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 WHERE 56 >= 33
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 69 * + col2 * 92 FROM tab2 AS cor0
----
146004
253920
368184

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT ALL - COUNT( * ) * - 54 AS col0 FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-4479
SELECT ALL - COUNT ( * ) * - 54 AS col0 FROM tab1 AS cor0
----
162

query I rowsort
SELECT 84 AS col2 FROM tab1 WHERE NOT + ( - col2 ) BETWEEN + col0 AND 40 * + 72
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4481
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT ALL - MIN( ALL 9 ) AS col2 FROM tab2 WHERE ( + col2 ) NOT BETWEEN col1 AND - col1
----
-9

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL - MIN ( ALL 9 ) AS col2 FROM tab2 WHERE ( + col2 ) NOT BETWEEN col1 AND - col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4483
SELECT ALL CAST( + - col0 AS SIGNED ) AS col1 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL CAST ( + - col0 AS INTEGER ) AS col1 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT DISTINCT COUNT( * ) + 41 AS col0 FROM tab2 WHERE NOT + + 16 IS NULL
----
44

skipif mysql # not compatible
query I rowsort label-4484
SELECT DISTINCT COUNT ( * ) + 41 AS col0 FROM tab2 WHERE NOT + + 16 IS NULL
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4485
SELECT CAST( NULL AS SIGNED ) * 94 AS col2 FROM tab0 cor0 WHERE NOT NULL > col2
----

skipif mysql # not compatible
query I rowsort label-4485
SELECT CAST ( NULL AS INTEGER ) * 94 AS col2 FROM tab0 cor0 WHERE NOT NULL > col2
----

query I rowsort
SELECT - - 54 + - + 50 FROM tab0 AS cor0
----
4
4
4

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 55 NOT BETWEEN ( - col0 * + col2 - col1 ) AND col1 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4488
SELECT DISTINCT CAST( NULL AS SIGNED ) + 69 + col0 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 69 + col0 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT DISTINCT + ( - MIN( + col0 ) ) col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4489
SELECT DISTINCT + ( - MIN ( + col0 ) ) col0 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT + ( COUNT( * ) ) col0 FROM tab0 AS cor0 WHERE ( - col2 ) < + col1 * 66 OR NOT ( + ( - ( + 19 ) ) ) IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4490
SELECT + ( COUNT ( * ) ) col0 FROM tab0 AS cor0 WHERE ( - col2 ) < + col1 * 66 OR NOT ( + ( - ( + 19 ) ) ) IS NULL
----
3

query I rowsort
SELECT + + 55 + - - col1 FROM tab1 AS cor0
----
102
60
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT DISTINCT - + COUNT( * ) * 34 AS col2 FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-4492
SELECT DISTINCT - + COUNT ( * ) * 34 AS col2 FROM tab2 AS cor0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT DISTINCT 1 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4493
SELECT DISTINCT 1 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL 81 FROM tab0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4495
SELECT ALL - 7 DIV - - COUNT( * ) AS col1 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL - 7 / - - COUNT ( * ) AS col1 FROM tab1
----
-2

query II rowsort
SELECT ALL + ( col0 ), - ( - - 21 ) AS col2 FROM tab2
----
46
-21
64
-21
75
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT ALL SUM( - col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4497
SELECT ALL SUM ( - col0 ) FROM tab2
----
-185

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4499
SELECT DISTINCT - CAST( - col2 AS SIGNED ) AS col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) AS col1 FROM tab1
----
59
68
96

query I rowsort
SELECT - ( - + col0 ) FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4501
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN ( col2 * CAST( NULL AS SIGNED ) + 46 ) AND ( + col1 * 77 )
----

skipif mysql # not compatible
query III rowsort label-4501
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN ( col2 * CAST ( NULL AS INTEGER ) + 46 ) AND ( + col1 * 77 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4502
SELECT CAST( + 30 AS SIGNED ) FROM tab0
----
30
30
30

skipif mysql # not compatible
query I rowsort label-4502
SELECT CAST ( + 30 AS INTEGER ) FROM tab0
----
30
30
30

query I rowsort
SELECT - + 26 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) >= + 6
----

query I rowsort
SELECT - + col1 * + - col2 + + ( + col0 ) AS col2 FROM tab0 AS cor0
----
196
297
3822

query I rowsort
SELECT 9 * - - col0 AS col0 FROM tab1
----
459
765
819

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT ALL + - MAX( col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL + - MAX ( col0 ) FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT ALL COUNT( * ) / MAX( col1 ) / + 67 FROM tab2 cor0 WHERE ( NULL ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL COUNT ( * ) / MAX ( col1 ) / + 67 FROM tab2 cor0 WHERE ( NULL ) > NULL
----
NULL

query I rowsort
SELECT - + 2 AS col0 FROM tab1 AS cor0 WHERE NOT 13 NOT BETWEEN NULL AND col0 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT DISTINCT - 16 * SUM( DISTINCT - col2 ) FROM tab2 AS cor0
----
1936

skipif mysql # not compatible
query I rowsort label-4509
SELECT DISTINCT - 16 * SUM ( DISTINCT - col2 ) FROM tab2 AS cor0
----
1936

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT + SUM( col2 ) * + 87 AS col2 FROM tab2 AS cor0
----
10527

skipif mysql # not compatible
query I rowsort label-4510
SELECT + SUM ( col2 ) * + 87 AS col2 FROM tab2 AS cor0
----
10527

query II rowsort
SELECT col1, 60 AS col1 FROM tab1 AS cor0
----
14
60
47
60
5
60

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 NOT IN ( 53 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-4513
SELECT col0 AS col1, 71 DIV - + col2 AS col2 FROM tab1 AS cor0
----
51
0
85
-1
91
-1

skipif mysql # not compatible
query II rowsort label-4513
SELECT col0 AS col1, 71 / - + col2 AS col2 FROM tab1 AS cor0
----
51
0
85
-1
91
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT DISTINCT - ( - - MIN( ALL col2 ) ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4514
SELECT DISTINCT - ( - - MIN ( ALL col2 ) ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT + 34 AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
34
34
34

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 97 <= col2 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + 88 AS col1, 36 col1, + col1 AS col0 FROM tab0
----
9 values hashing to f11070fdfc2748115a8ef3b9f6f2e363

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT - MAX( DISTINCT - + 60 ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-4518
SELECT - MAX ( DISTINCT - + 60 ) FROM tab2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT ALL + ( - MIN( - col0 ) ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL + ( - MIN ( - col0 ) ) AS col0 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT + ( - + COUNT( * ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4520
SELECT + ( - + COUNT ( * ) ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT 43 * - col2 * + + col2 + - 57 FROM tab2 AS cor0
----
-144709
-22804
-68857

onlyif mysql # DIV for integer division: 
query I rowsort label-4522
SELECT ALL + col0 DIV - col0 + + col1 FROM tab1 cor0
----
13
4
46

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL + col0 / - col0 + + col1 FROM tab1 cor0
----
13
4
46

query I rowsort
SELECT ALL + col2 * - + 8 FROM tab1
----
-472
-544
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT DISTINCT 87 + COUNT( * ) FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-4524
SELECT DISTINCT 87 + COUNT ( * ) FROM tab2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NOT col1 + - + col1 < - 34
----
-3

skipif mysql # not compatible
query I rowsort label-4525
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT col1 + - + col1 < - 34
----
-3

query I rowsort
SELECT DISTINCT + - 39 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) * 83 + - col1 col0 FROM tab2
----
3767
5235
6158

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT - + COUNT( * ) FROM tab1 AS cor0 WHERE NULL > col2
----
0

skipif mysql # not compatible
query I rowsort label-4528
SELECT - + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL > col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT DISTINCT - - MAX( DISTINCT - 14 ) + - COUNT( * ) FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT - - MAX ( DISTINCT - 14 ) + - COUNT ( * ) FROM tab2 AS cor0
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-4530
SELECT ALL + ( + col1 ) DIV - ( - - col2 ) col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4530
SELECT ALL + ( + col1 ) / - ( - - col2 ) col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 + col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( + + col2 * + - ( + col1 ) * + col1 / - col0 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 - - 29 * + + col0 BETWEEN 9 AND ( col0 )
----

query I rowsort
SELECT ALL - col2 + - 9 FROM tab2 AS cor0
----
-32
-49
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4534
SELECT ALL + - CAST( NULL AS SIGNED ) * 26 * + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL + - CAST ( NULL AS INTEGER ) * 26 * + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 53 * - + 35 + + + col2 FROM tab1 cor0
----
1914
1923
1951

query I rowsort
SELECT - + col0 AS col0 FROM tab2 cor0 WHERE col2 IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT ALL SUM( col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL SUM ( col2 ) FROM tab0 AS cor0
----
156

query I rowsort
SELECT col1 * - col1 + - + col1 AS col1 FROM tab1 AS cor0
----
-210
-2256
-30

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT + MAX( DISTINCT + - 10 ) FROM tab1 WHERE - ( - 39 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4540
SELECT + MAX ( DISTINCT + - 10 ) FROM tab1 WHERE - ( - 39 ) IS NULL
----
NULL

query I rowsort
SELECT - col0 + + - col1 FROM tab2
----
-141
-142
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4542
SELECT DISTINCT COUNT( + CAST( col0 AS SIGNED ) ) * - COUNT( * ) + - - 90 AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4542
SELECT DISTINCT COUNT ( + CAST ( col0 AS INTEGER ) ) * - COUNT ( * ) + - - 90 AS col1 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4543
SELECT 78 * - 25 + + COUNT( DISTINCT + 20 ), + 15 AS col0 FROM tab0
----
-1949
15

skipif mysql # not compatible
query II rowsort label-4543
SELECT 78 * - 25 + + COUNT ( DISTINCT + 20 ), + 15 AS col0 FROM tab0
----
-1949
15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4544
SELECT 43 DIV col0 * - col2 + CAST( + col2 AS SIGNED ) * - col0 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-4544
SELECT 43 / col0 * - col2 + CAST ( + col2 AS INTEGER ) * - col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4545
SELECT + SUM( - 39 ) + + + CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4545
SELECT + SUM ( - 39 ) + + + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 39 + + col0 + - col1 FROM tab2 AS cor0
----
26
34
47

query I rowsort
SELECT DISTINCT - + col1 + - 72 AS col2 FROM tab2 AS cor0
----
-123
-139
-149

query I rowsort
SELECT + ( + + 93 ) AS col2 FROM tab1 AS cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT DISTINCT + 29 * - COUNT( * ) FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT + 29 * - COUNT ( * ) FROM tab2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT COUNT( * ) - + COUNT( ALL + - col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4550
SELECT COUNT ( * ) - + COUNT ( ALL + - col2 ) FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + - col2 / - ( + col2 ) col1 FROM tab0 WHERE NOT - - 46 * + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT DISTINCT + SUM( DISTINCT + col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT + SUM ( DISTINCT + col2 ) FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT ALL + 44 * - MAX( + 16 ) FROM tab1 AS cor0
----
-704

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL + 44 * - MAX ( + 16 ) FROM tab1 AS cor0
----
-704

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT - COUNT( * ) * 14 AS col1 FROM tab1 cor0
----
-42

skipif mysql # not compatible
query I rowsort label-4555
SELECT - COUNT ( * ) * 14 AS col1 FROM tab1 cor0
----
-42

query I rowsort
SELECT 98 * - + 96 + - + col0 FROM tab0 AS cor0
----
-9423
-9495
-9505

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT + COUNT( - col0 ) FROM tab1 AS cor0 WHERE NOT NULL IN ( ( ( - 85 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-4557
SELECT + COUNT ( - col0 ) FROM tab1 AS cor0 WHERE NOT NULL IN ( ( ( - 85 ) ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4558
SELECT ALL + + CAST( + col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4558
SELECT ALL + + CAST ( + col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT + + SUM( ALL - + col1 ) col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4559
SELECT + + SUM ( ALL - + col1 ) col0 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT DISTINCT ( - 36 ) FROM tab0
----
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, - col2 col0 FROM tab0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT - 35 BETWEEN NULL AND + col2 AND NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT + SUM( ALL + 64 ) AS col2 FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-4563
SELECT + SUM ( ALL + 64 ) AS col2 FROM tab0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT DISTINCT MIN( ALL ( - + col2 ) ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT MIN ( ALL ( - + col2 ) ) AS col0 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT DISTINCT + COUNT( * ) * - + 92 col1 FROM tab1
----
-276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4565
SELECT DISTINCT + COUNT ( * ) * - + 92 col1 FROM tab1
----
-276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, col1 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE NOT col1 NOT BETWEEN + ( - 31 ) AND - + col2 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT DISTINCT + COUNT( * ) * - - 27 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4568
SELECT DISTINCT + COUNT ( * ) * - - 27 FROM tab2 AS cor0
----
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + col1 <= NULL )
----

query I rowsort
SELECT - col0 * + col1 * + ( - 76 ) * col2 AS col0 FROM tab0 AS cor0
----
1388520
4339980
729828

query I rowsort
SELECT DISTINCT + - col0 * 17 FROM tab1 AS cor0
----
-1445
-1547
-867

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - col2 AS col2, col2 + col1 * + col2 AS col2 FROM tab0
----
-10
220
-47
3854
-99
198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + + col2 col2 FROM tab2
----
117
125
74

query II rowsort
SELECT DISTINCT - col0 + + - col2 AS col1, col1 * 73 FROM tab2
----
-104
5621
-133
4891
-69
3723

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4576
SELECT - 10 * - 91 + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 WHERE col0 * - 81 * - ( - - col1 ) * - 69 + col0 - + 97 + + ( col1 ) * CAST( NULL AS SIGNED ) - - col2 >= - col2 / 65
----

skipif mysql # not compatible
query I rowsort label-4576
SELECT - 10 * - 91 + CAST ( NULL AS REAL ) AS col2 FROM tab1 WHERE col0 * - 81 * - ( - - col1 ) * - 69 + col0 - + 97 + + ( col1 ) * CAST ( NULL AS INTEGER ) - - col2 >= - col2 / 65
----

query I rowsort
SELECT ALL + + col2 + - col2 - col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4578
SELECT DISTINCT + COUNT( * ) DIV + - COUNT( DISTINCT - col0 ) + COUNT( + + CAST( NULL AS SIGNED ) ) DIV + + 25 * - CAST( + + SUM( ALL + col0 ) AS SIGNED ) * + COUNT( + col1 ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4578
SELECT DISTINCT + COUNT ( * ) / + - COUNT ( DISTINCT - col0 ) + COUNT ( + + CAST ( NULL AS INTEGER ) ) / + + 25 * - CAST ( + + SUM ( ALL + col0 ) AS INTEGER ) * + COUNT ( + col1 ) AS col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT col2 * - 73 FROM tab0 AS cor0
----
-3431
-7227
-730

query I rowsort
SELECT - 56 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-56
-56
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 * + col2 col0 FROM tab0
----
4606
9702
980

query I rowsort
SELECT DISTINCT 2 * + - col1 AS col2 FROM tab2
----
-102
-134
-154

query I rowsort
SELECT + col0 * + col0 AS col0 FROM tab1 WHERE ( NULL ) < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT ALL + COUNT( * ) * 11 AS col1 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL + COUNT ( * ) * 11 AS col1 FROM tab0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT ALL - COUNT( * ) + + 73 AS col0 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL - COUNT ( * ) + + 73 AS col0 FROM tab2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT COUNT( DISTINCT - - 44 ) + + + MAX( DISTINCT + - col0 ) FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-4586
SELECT COUNT ( DISTINCT - - 44 ) + + + MAX ( DISTINCT + - col0 ) FROM tab2 AS cor0
----
-45

query I rowsort
SELECT - col0 * + col1 + - col0 + col1 AS col1 FROM tab2 AS cor0
----
-2341
-4915
-5033

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4588
SELECT ALL CAST( NULL AS SIGNED ) * - col0 + - 77 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL CAST ( NULL AS INTEGER ) * - col0 + - 77 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 59 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col2, col1 * col0 * col1 * col2 * col0 AS col1 FROM tab0 AS cor0
----
10
33379290
47
69382575
99
931491

onlyif mysql # DIV for integer division: 
query I rowsort label-4591
SELECT DISTINCT + 87 DIV - col1 AS col0 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4591
SELECT DISTINCT + 87 / - col1 AS col0 FROM tab2 cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4592
SELECT - + CAST( NULL AS SIGNED ) * 63 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4592
SELECT - + CAST ( NULL AS INTEGER ) * 63 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( + - col0 ) AS col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4594
SELECT DISTINCT COUNT( * ) AS col0, COUNT( * ) + + 50 FROM tab1 AS cor0
----
3
53

skipif mysql # not compatible
query II rowsort label-4594
SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( * ) + + 50 FROM tab1 AS cor0
----
3
53

onlyif mysql # aggregate syntax: 
query II rowsort label-4595
SELECT ALL - + 63 AS col2, - ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-63
-3

skipif mysql # not compatible
query II rowsort label-4595
SELECT ALL - + 63 AS col2, - ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-63
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4596
SELECT - - 86 FROM tab1 WHERE NOT + + 27 IN ( + + col0 + - CAST( NULL AS SIGNED ), - 48, + col1, + col1 * + - CAST( NULL AS SIGNED ), - col1 )
----

skipif mysql # not compatible
query I rowsort label-4596
SELECT - - 86 FROM tab1 WHERE NOT + + 27 IN ( + + col0 + - CAST ( NULL AS INTEGER ), - 48, + col1, + col1 * + - CAST ( NULL AS INTEGER ), - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT SUM( + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4597
SELECT SUM ( + col1 ) FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT ALL MAX( DISTINCT - ( + col1 ) ) col1 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4598
SELECT ALL MAX ( DISTINCT - ( + col1 ) ) col1 FROM tab2
----
-51

query I rowsort
SELECT + - col0 / - + col2 * - col1 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - col2 * - ( + col1 ) + + col0 + col2
----

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4601
SELECT - 27 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT - 27 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4603
SELECT - 41 DIV + COUNT( * ) FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-4603
SELECT - 41 / + COUNT ( * ) FROM tab2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT - + COUNT( * ) * + + 17 * + 16 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-2448

skipif mysql # not compatible
query I rowsort label-4604
SELECT - + COUNT ( * ) * + + 17 * + 16 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-2448

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4605
SELECT ALL ( 62 ) + + ( + + 22 ) DIV - 32 AS col0, COUNT( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN + 83 * + + 64 AND NULL
----
62
0

skipif mysql # not compatible
query II rowsort label-4605
SELECT ALL ( 62 ) + + ( + + 22 ) / - 32 AS col0, COUNT ( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN + 83 * + + 64 AND NULL
----
62
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4606
SELECT - + CAST( NULL AS SIGNED ) + + - col0 * + col1 AS col2, 45 AS col0 FROM tab0 cor0
----
NULL
45
NULL
45
NULL
45

skipif mysql # not compatible
query II rowsort label-4606
SELECT - + CAST ( NULL AS INTEGER ) + + - col0 * + col1 AS col2, 45 AS col0 FROM tab0 cor0
----
NULL
45
NULL
45
NULL
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4607
SELECT ALL + 55 * + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4607
SELECT ALL + 55 * + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 - - col1 + 77 FROM tab2 AS cor0
----
179
211
231

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT ( + MAX( - - col2 ) ) + 42 col0 FROM tab2 cor0
----
100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4609
SELECT ( + MAX ( - - col2 ) ) + 42 col0 FROM tab2 cor0
----
100

query III rowsort
SELECT * FROM tab1 WHERE - + col1 NOT BETWEEN NULL AND + col1 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 63 * - - ( - col2 ) FROM tab2
----
-1449
-2520
-3654

query I rowsort
SELECT + 47 + - ( + + col1 ) AS col1 FROM tab2
----
-20
-30
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT COUNT( * ) * + 38 AS col1 FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-4613
SELECT COUNT ( * ) * + 38 AS col1 FROM tab0
----
114

query III rowsort
SELECT * FROM tab1 WHERE col0 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT ALL + MAX( DISTINCT + - 90 ) + - 20 FROM tab0
----
-110

skipif mysql # not compatible
query I rowsort label-4615
SELECT ALL + MAX ( DISTINCT + - 90 ) + - 20 FROM tab0
----
-110

query I rowsort
SELECT DISTINCT + col2 + - col1 * + + ( + + ( - col2 ) ) FROM tab2 AS cor0
----
1196
3120
3944

query I rowsort
SELECT DISTINCT - 84 AS col2 FROM tab0 cor0
----
-84

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 50 * - + col2 FROM tab2 AS cor0
----
-1150
-2000
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4620
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

query I rowsort
SELECT 70 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
70
70
70

query I rowsort
SELECT ALL + 42 AS col0 FROM tab0 cor0
----
42
42
42

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT + MIN( + col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL = 60 * 11
----
NULL

skipif mysql # not compatible
query I rowsort label-4624
SELECT + MIN ( + col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL = 60 * 11
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + ( - col2 ) * - + col2 * + - col1 AND NULL
----

query I rowsort
SELECT DISTINCT + col1 * - col0 * + 20 FROM tab1 AS cor0
----
-14280
-8500
-85540

query II rowsort
SELECT + - col1 AS col2, col0 AS col1 FROM tab2 WHERE NOT - ( - col2 ) NOT BETWEEN col0 * + col0 AND + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4628
SELECT DISTINCT COUNT( * ) DIV 56 * + SUM( + + 2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT COUNT ( * ) / 56 * + SUM ( + + 2 ) FROM tab2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4629
SELECT CAST( NULL AS DECIMAL ) / 62 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4629
SELECT CAST ( NULL AS REAL ) / 62 col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + - - 27 - - col0 FROM tab0
----
123
125
135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 78 ) + - 46 col0 FROM tab0
----
-124

query I rowsort
SELECT + - col1 * - + col2 FROM tab0 cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT - - ( + - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4633
SELECT - - ( + - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + - ( - + col0 ) + col2 - + col2 AS col2 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 * + - col0 * + 85 + 54 IS NULL AND col1 <= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * + col2 AS col2 FROM tab0 WHERE - col1 IS NOT NULL
----
-705
-870
-9603

query I rowsort
SELECT ALL - 24 + col0 AS col1 FROM tab0
----
-9
63
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 73 ) + - col2 col1 FROM tab0
----
-26
26
63

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 77 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT ALL - + COUNT( * ) + - + 37 AS col1 FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL - + COUNT ( * ) + - + 37 AS col1 FROM tab1 AS cor0
----
-40

query II rowsort
SELECT - ( - col0 ), + col1 AS col0 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4643
SELECT ALL - + CAST( - col2 AS SIGNED ) * + 39 * 14 AS col1 FROM tab0 cor0 WHERE 85 + - 61 >= 75 + + col2
----

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL - + CAST ( - col2 AS INTEGER ) * + 39 * 14 AS col1 FROM tab0 cor0 WHERE 85 + - 61 >= 75 + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 col1 FROM tab1 cor0
----
19
19
19

query I rowsort
SELECT + 50 AS col1 FROM tab0 cor0
----
50
50
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4646
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + 28 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + 28 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 - - - col2 AS col0 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT ALL + 99 * + - 56 - + col1 AS col1 FROM tab2 AS cor0
----
-5595
-5611
-5621

query I rowsort
SELECT DISTINCT col2 * - + col2 FROM tab0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT + SUM( - col1 ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-4650
SELECT + SUM ( - col1 ) AS col2 FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT SUM( + 87 ) FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-4651
SELECT SUM ( + 87 ) FROM tab2
----
261

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - 45 * - 46 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT - COUNT( * ) * + - COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4653
SELECT - COUNT ( * ) * + - COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT - - 32 + + + col0 FROM tab0 AS cor0 WHERE NOT - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT + MIN( 8 ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-4655
SELECT + MIN ( 8 ) FROM tab2 AS cor0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - - 30 ) AS col1, + 14 col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-30
14

query II rowsort
SELECT DISTINCT - col2, - 47 AS col0 FROM tab0 AS cor0
----
-10
-47
-47
-47
-99
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 38 * + col1 col1 FROM tab1 AS cor0
----
1786
190
532

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4659
SELECT CAST( NULL AS SIGNED ) * + col0, - col0 AS col1 FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-4659
SELECT CAST ( NULL AS INTEGER ) * + col0, - col0 AS col1 FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

query I rowsort
SELECT DISTINCT col1 * 87 + 29 FROM tab0 AS cor0
----
116
1856
7076

query I rowsort
SELECT 43 * 95 FROM tab0 AS cor0
----
4085
4085
4085

query I rowsort
SELECT ALL - ( - + col2 ) * 30 AS col2 FROM tab0 cor0
----
1410
2970
300

query I rowsort
SELECT DISTINCT col2 * col0 * + col2 AS col2 FROM tab2 AS cor0
----
102400
24334
252300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4664
SELECT DISTINCT + 69 DIV COUNT( ALL col2 ) AS col2 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-4664
SELECT DISTINCT + 69 / COUNT ( ALL col2 ) AS col2 FROM tab1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT - SUM( ALL 39 ) AS col1 FROM tab1
----
-117

skipif mysql # not compatible
query I rowsort label-4665
SELECT - SUM ( ALL 39 ) AS col1 FROM tab1
----
-117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 76 * + + col1 + 38 col1 FROM tab0 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4667
SELECT CAST( NULL AS SIGNED ) * + - MIN( - col1 ) + + + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4667
SELECT CAST ( NULL AS INTEGER ) * + - MIN ( - col1 ) + + + COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4668
SELECT * FROM tab0 WHERE - CAST( - 84 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4668
SELECT * FROM tab0 WHERE - CAST ( - 84 AS INTEGER ) IS NULL
----

query II rowsort
SELECT ALL ( col1 ) AS col0, 59 FROM tab2
----
51
59
67
59
77
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4670
SELECT + CAST( NULL AS SIGNED ) / + 43 + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4670
SELECT + CAST ( NULL AS INTEGER ) / + 43 + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + 74 + 36, col1 FROM tab1
----
110
14
110
47
110
5

query I rowsort
SELECT DISTINCT col1 * + 76 * 61 FROM tab2
----
236436
310612
356972

query II rowsort
SELECT + col2 + - col2, col1 FROM tab1 AS cor0
----
0
14
0
47
0
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 29 + + col2 AND NULL
----

query I rowsort
SELECT ALL col0 + 92 FROM tab2 cor0
----
138
156
167

query I rowsort
SELECT ALL - + col0 + + 28 AS col1 FROM tab1 AS cor0
----
-23
-57
-63

query I rowsort
SELECT DISTINCT + 99 + + col2 AS col1 FROM tab1 cor0
----
158
167
195

query I rowsort
SELECT ALL - 16 AS col0 FROM tab1
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT - - ( + COUNT( * ) ) + COUNT( ALL - - 23 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-4679
SELECT - - ( + COUNT ( * ) ) + COUNT ( ALL - - 23 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18

query I rowsort
SELECT ALL + col2 + - 58 FROM tab0 AS cor0
----
-11
-48
41

query I rowsort
SELECT DISTINCT + - 24 + col0 FROM tab1 cor0
----
27
61
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - + 36 col2 FROM tab2 AS cor0
----
-103
-113
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-4683
SELECT DISTINCT + COUNT( + + col1 ) + + COUNT( * ) col0, COUNT( * ) AS col0 FROM tab2 AS cor0
----
6
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4683
SELECT DISTINCT + COUNT ( + + col1 ) + + COUNT ( * ) col0, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
6
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4684
SELECT + 95 + - COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-4684
SELECT + 95 + - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
95

onlyif mysql # DIV for integer division: 
query II rowsort label-4685
SELECT DISTINCT 7 - 77 AS col2, + col0 DIV - col0 + + col1 AS col1 FROM tab0
----
-70
0
-70
20
-70
80

skipif mysql # not compatible
query II rowsort label-4685
SELECT DISTINCT 7 - 77 AS col2, + col0 / - col0 + + col1 AS col1 FROM tab0
----
-70
0
-70
20
-70
80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 >= - col0
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT - MAX( + 89 ) * COUNT( + 85 ) AS col0 FROM tab0
----
-267

skipif mysql # not compatible
query I rowsort label-4687
SELECT - MAX ( + 89 ) * COUNT ( + 85 ) AS col0 FROM tab0
----
-267

query I rowsort
SELECT + col2 * col0 * - - col2 AS col2 FROM tab2
----
102400
24334
252300

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 + 3 * + col1 BETWEEN NULL AND - ( - 62 ) * + ( - col1 ) + + 73 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4690
SELECT ALL ( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT DISTINCT SUM( ALL - 31 ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-4691
SELECT DISTINCT SUM ( ALL - 31 ) FROM tab0
----
-93

query I rowsort
SELECT DISTINCT 87 AS col2 FROM tab0
----
87

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col2 * + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 0 + col0 AS col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT 35 + + col1 FROM tab0 AS cor0
----
116
36
56

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT + col1 <> - + 36 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 41 * 88 col2 FROM tab1 AS cor0
----
3608

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col0 >= NULL
----

query I rowsort
SELECT - - col1 FROM tab2 AS cor0 WHERE NOT + 15 IS NULL
----
51
67
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + - 66 FROM tab0 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT SUM( DISTINCT + + 39 ) AS col2 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-4702
SELECT SUM ( DISTINCT + + 39 ) AS col2 FROM tab0
----
39

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 74 ) / - - col2 * + ( col1 ) / - 2 + + 63 = 3
----

query II rowsort
SELECT 76 AS col1, - col1 FROM tab0
----
76
-1
76
-21
76
-81

query I rowsort
SELECT ALL col2 + - + 5 AS col0 FROM tab2 AS cor0
----
18
35
53

query I rowsort
SELECT - 22 - - + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-121
-32
-69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4707
SELECT + - MIN( DISTINCT + + col0 ) + + 26 - + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4707
SELECT + - MIN ( DISTINCT + + col0 ) + + 26 - + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col1 * + + col1 + - 95 AS col0 FROM tab0 AS cor0
----
-536
-6656
-96

query I rowsort
SELECT ALL col0 * + + 9 - - col2 + - + 3 * + 13 FROM tab1 AS cor0
----
516
785
848

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4710
SELECT ALL + 79 + + CAST( NULL AS SIGNED ) * + AVG ( ALL + ( - 69 ) ), + 44 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
44

skipif mysql # not compatible
query II rowsort label-4710
SELECT ALL + 79 + + CAST ( NULL AS INTEGER ) * + AVG ( ALL + ( - 69 ) ), + 44 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
44

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 19 * + col1 BETWEEN 72 + - 67 AND NULL
----

query II rowsort
SELECT ALL + col1 + col2 AS col1, col2 FROM tab2 AS cor0
----
117
40
125
58
74
23

query II rowsort
SELECT + col0 * + - 60 * + ( + - 33 ) - col1 * 6 * + 85 AS col0, col0 AS col0 FROM tab0 AS cor0
----
-11610
15
161550
87
191550
97

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE ( ( col2 ) * + + col2 - + 31 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col2 * 44 - + col0 col1 FROM tab2 AS cor0
----
-112704
-191475
-46598

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col1 * - col0 + - col1
----

query II rowsort
SELECT DISTINCT col0, col2 + 8 FROM tab2
----
46
31
64
48
75
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4718
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 <= + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 34 col0 FROM tab0
----
2754
34
714

query III rowsort
SELECT ALL * FROM tab0 WHERE + 46 >= NULL
----

query II rowsort
SELECT col0 AS col0, - col1 * col0 AS col2 FROM tab2
----
46
-2346
64
-4928
75
-5025

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( + col0 ) <= + col1 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 36 FROM tab0 WHERE - - col0 BETWEEN - - col2 AND + col1
----

query I rowsort
SELECT ALL + + col0 AS col2 FROM tab1 AS cor0 WHERE ( - col1 ) * - 53 >= NULL
----

query I rowsort
SELECT DISTINCT + col0 * col1 * + col2 AS col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col1
----

query I rowsort
SELECT - + col2 * - col1 - + - col1 AS col2 FROM tab2 AS cor0
----
1224
3157
3953

query I rowsort
SELECT - col2 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 90 + - + 91 * - 51 + col0 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 49 * + col0 * - - col0 * - 11 FROM tab2 AS cor0
----
-1140524
-2207744
-3031875

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT + 39 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4732
SELECT 50 DIV col1 + + col2 FROM tab0 cor0
----
12
149
47

skipif mysql # not compatible
query I rowsort label-4732
SELECT 50 / col1 + + col2 FROM tab0 cor0
----
12
149
47

query I rowsort
SELECT ALL + 39 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query II rowsort
SELECT ALL + + 53 AS col2, - col1 FROM tab0 WHERE NOT NULL NOT BETWEEN - - col2 AND + col1
----

query I rowsort
SELECT col1 + + 72 AS col1 FROM tab2
----
123
139
149

query I rowsort
SELECT - col0 + - - col0 - + - col1 + ( - col1 ) FROM tab1
----
0
0
0

query I rowsort
SELECT - 75 + col2 AS col2 FROM tab2
----
-17
-35
-52

query I rowsort
SELECT + col2 + + 71 FROM tab1
----
130
139
167

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT DISTINCT + SUM( col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT + SUM ( col2 ) FROM tab1
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4740
SELECT + 55 + + - col1 + CAST( NULL AS SIGNED ) * - + 43 + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4740
SELECT + 55 + + - col1 + CAST ( NULL AS INTEGER ) * - + 43 + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4741
SELECT CAST( NULL AS DECIMAL ) + + col0 * col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4741
SELECT CAST ( NULL AS REAL ) + + col0 * col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + - col0 col1 FROM tab1
----
-23
-26
45

query I rowsort
SELECT ALL + 60 - 87 FROM tab0 cor0
----
-27
-27
-27

query I rowsort
SELECT - + ( + - col1 ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT col1 / + col1 + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4746
SELECT + col0 - - col1 + + - col2 * CAST( NULL AS SIGNED ) AS col2, - 62 AS col1 FROM tab1
----
NULL
-62
NULL
-62
NULL
-62

skipif mysql # not compatible
query II rowsort label-4746
SELECT + col0 - - col1 + + - col2 * CAST ( NULL AS INTEGER ) AS col2, - 62 AS col1 FROM tab1
----
NULL
-62
NULL
-62
NULL
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT + MIN( ALL + + 35 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
35

skipif mysql # not compatible
query I rowsort label-4747
SELECT + MIN ( ALL + + 35 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4748
SELECT ALL - col1 * - ( + col1 ) * + - col0 * + col2 col1, 16 FROM tab0 WHERE NULL IS NULL AND ( - - 65 ) < - CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4748
SELECT ALL - col1 * - ( + col1 ) * + - col0 * + col2 col1, 16 FROM tab0 WHERE NULL IS NULL AND ( - - 65 ) < - CAST ( + col2 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > 82
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4750
SELECT - COUNT( * ) DIV - COUNT( DISTINCT + - col1 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4750
SELECT - COUNT ( * ) / - COUNT ( DISTINCT + - col1 ) FROM tab2 AS cor0
----
1

query II rowsort
SELECT DISTINCT - col2 AS col2, - 72 AS col2 FROM tab2 AS cor0
----
-23
-72
-40
-72
-58
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-4752
SELECT - 55 AS col0, + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-55
3

skipif mysql # not compatible
query II rowsort label-4752
SELECT - 55 AS col0, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-55
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT DISTINCT + - SUM( 12 ) FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-4753
SELECT DISTINCT + - SUM ( 12 ) FROM tab1 AS cor0
----
-36

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 29 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * + - col1 AS col1 FROM tab0 cor0
----
1
441
6561

query II rowsort
SELECT + col1, - col0 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4758
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( - - col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4758
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( - - col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 86 col2 FROM tab0 AS cor0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4760
SELECT - col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT - col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4761
SELECT DISTINCT - 86 + + + ( CAST( - col2 AS SIGNED ) ), + col2 * - - col0 AS col2 FROM tab0
----
-133
705
-185
9603
-96
870

skipif mysql # not compatible
query II rowsort label-4761
SELECT DISTINCT - 86 + + + ( CAST ( - col2 AS INTEGER ) ), + col2 * - - col0 AS col2 FROM tab0
----
-133
705
-185
9603
-96
870

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 74 * col0 + + col2 + + - 76 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 32 * - col1 IN ( col1, - ( + col0 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 70 * + + 47 + + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4765
SELECT ALL col2 * + + CAST( + 26 AS SIGNED ) * - col0 + + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4765
SELECT ALL col2 * + + CAST ( + 26 AS INTEGER ) * - col0 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 90 + - col2 FROM tab1 AS cor0
----
-149
-158
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT - MIN( ALL 5 ) AS col0 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4767
SELECT - MIN ( ALL 5 ) AS col0 FROM tab1 cor0
----
-5

query I rowsort
SELECT DISTINCT ( + 7 ) FROM tab2 cor0
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab2 AS cor0 WHERE 49 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4770
SELECT ALL * FROM tab0 WHERE NOT - CAST( + 89 AS SIGNED ) >= + 43
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4770
SELECT ALL * FROM tab0 WHERE NOT - CAST ( + 89 AS INTEGER ) >= + 43
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT DISTINCT MAX( + col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT MAX ( + col1 ) AS col0 FROM tab0
----
81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 + + + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 col0 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT ALL + 78 * - COUNT( * ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4774
SELECT ALL + 78 * - COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT ALL + 21 + - 77 AS col2, - col2 FROM tab1
----
-56
-59
-56
-68
-56
-96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4776
SELECT col2 - - col1 AS col2, col1 DIV - col0 * - CAST( col2 AS SIGNED ) FROM tab1
----
110
0
115
0
64
0

skipif mysql # not compatible
query II rowsort label-4776
SELECT col2 - - col1 AS col2, col1 / - col0 * - CAST ( col2 AS INTEGER ) FROM tab1
----
110
0
115
0
64
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT DISTINCT 84 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT 84 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
87

query I rowsort
SELECT ALL + + col1 + - 82 AS col0 FROM tab1 AS cor0
----
-35
-68
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4779
SELECT - - col1 * - col1 DIV + col1 + - col1 AS col0 FROM tab0 AS cor0
----
-162
-2
-42

skipif mysql # not compatible
query I rowsort label-4779
SELECT - - col1 * - col1 / + col1 + - col1 AS col0 FROM tab0 AS cor0
----
-162
-2
-42

query I rowsort
SELECT DISTINCT - - col1 - - - col0 * + 89 * + col1 + ( - 37 ) FROM tab0 AS cor0
----
-108091
-162619
-8669

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT + + COUNT( * ) col1 FROM tab0 WHERE col2 - + 90 <= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4782
SELECT + + COUNT ( * ) col1 FROM tab0 WHERE col2 - + 90 <= NULL
----
0

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT 64 * - 3 * + 77 AS col1, - ( - col1 ) + - 79 FROM tab2 AS cor0
----
-14784
-12
-14784
-2
-14784
-28

query II rowsort
SELECT - - 33, col0 * col2 + col2 AS col0 FROM tab2 AS cor0
----
33
1081
33
2600
33
4408

query II rowsort
SELECT ALL col0 * + col0 + - col1 AS col2, - col0 AS col2 FROM tab2 AS cor0
----
2065
-46
4019
-64
5558
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-4787
SELECT DISTINCT + 64 DIV - col1 col2 FROM tab2
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4787
SELECT DISTINCT + 64 / - col1 col2 FROM tab2
----
-1
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4788
SELECT DISTINCT col2 DIV - 15 AS col1, - col1 FROM tab2
----
-1
-51
-2
-77
-3
-67

skipif mysql # not compatible
query II rowsort label-4788
SELECT DISTINCT col2 / - 15 AS col1, - col1 FROM tab2
----
-1
-51
-2
-77
-3
-67

query III rowsort
SELECT * FROM tab2 WHERE NOT + 40 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4790
SELECT CAST( NULL AS SIGNED ) AS col1, + 44 AS col0, - col0 FROM tab2
----
9 values hashing to 8139c0304d19cd11010d1b9e15eb4d72

skipif mysql # not compatible
query III rowsort label-4790
SELECT CAST ( NULL AS INTEGER ) AS col1, + 44 AS col0, - col0 FROM tab2
----
9 values hashing to 8139c0304d19cd11010d1b9e15eb4d72

onlyif mysql # aggregate syntax: 
query II rowsort label-4791
SELECT 54, + 96 * + COUNT( * ) AS col1 FROM tab1
----
54
288

skipif mysql # not compatible
query II rowsort label-4791
SELECT 54, + 96 * + COUNT ( * ) AS col1 FROM tab1
----
54
288

query II rowsort
SELECT DISTINCT col2, 20 FROM tab0 AS cor0
----
10
20
47
20
99
20

query II rowsort
SELECT ALL col1 AS col0, 0 FROM tab2 AS cor0
----
51
0
67
0
77
0

query I rowsort
SELECT 78 * + 61 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8ac060a75985de860434c8cb8b2773b3

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE - ( + col0 ) + 59 IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT ALL ( + - COUNT( * ) ) + + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL ( + - COUNT ( * ) ) + + COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT 90 FROM tab0 AS cor0 WHERE NULL IS NULL
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + col2 ) + + col1 col0 FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= col0
----

query I rowsort
SELECT ALL + col2 + col0 * + 8 AS col2 FROM tab2 AS cor0
----
391
552
658

query I rowsort
SELECT DISTINCT - col1 - col0 AS col0 FROM tab1 cor0
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT DISTINCT MAX( + col0 ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4802
SELECT DISTINCT MAX ( + col0 ) AS col2 FROM tab2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4803
SELECT ALL CAST( + ( + col0 ) AS SIGNED ), col1 FROM tab2
----
46
51
64
77
75
67

skipif mysql # not compatible
query II rowsort label-4803
SELECT ALL CAST ( + ( + col0 ) AS INTEGER ), col1 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4804
SELECT ALL 27 + + - col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL 27 + + - col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4805
SELECT 42 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4805
SELECT 42 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 85 AS col2 FROM tab2
----
85

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT - 21 * + - col2 + col2 IS NULL
----
51
85
91

query I rowsort
SELECT - col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4809
SELECT - CAST( NULL AS SIGNED ) + + col0 + + col2 + 38 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT - CAST ( NULL AS INTEGER ) + + col0 + + col2 + 38 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 FROM tab2 WHERE + 71 IS NOT NULL
----
46
64
75

query I rowsort
SELECT ALL 94 - - col0 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT 37, + col2 FROM tab0
----
37
10
37
47
37
99

query II rowsort
SELECT DISTINCT + 34 AS col1, - col1 + - col0 FROM tab0
----
34
-108
34
-96
34
-98

query II rowsort
SELECT ALL - 5 * - 89 + - col1, col0 AS col0 FROM tab2
----
368
64
378
75
394
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > col2 * + - 96
----

query I rowsort
SELECT + + 1 - - + col2 FROM tab1 AS cor0
----
60
69
97

query I rowsort
SELECT ALL - - 67 * col0 FROM tab2 AS cor0
----
3082
4288
5025

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN 48 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT DISTINCT - SUM( DISTINCT + col0 ) FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4819
SELECT DISTINCT - SUM ( DISTINCT + col0 ) FROM tab0 cor0
----
-199

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 34 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4821
SELECT DISTINCT MAX( ALL col2 ), + SUM( ALL - + col1 ) AS col0 FROM tab1 AS cor0
----
96
-66

skipif mysql # not compatible
query II rowsort label-4821
SELECT DISTINCT MAX ( ALL col2 ), + SUM ( ALL - + col1 ) AS col0 FROM tab1 AS cor0
----
96
-66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 IN ( - - col1, 57 * col0 + 61 )
----

query I rowsort
SELECT - ( - + col2 ) AS col1 FROM tab2
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4824
SELECT col0 DIV col2 DIV 48 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4824
SELECT col0 / col2 / 48 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - 92 AS col2 FROM tab0
----
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 col1 FROM tab0 WHERE + - 59 <= + 22
----
-78

query I rowsort
SELECT - + 29 AS col1 FROM tab0 AS cor0
----
-29
-29
-29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4828
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= CAST( 98 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4828
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= CAST ( 98 AS INTEGER )
----

query I rowsort
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT 28 NOT BETWEEN NULL AND - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4830
SELECT + col2 DIV - - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4830
SELECT + col2 / - - col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4831
SELECT ALL + ( + col1 ) DIV - col1 col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4831
SELECT ALL + ( + col1 ) / - col1 col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 33 * - col0 AS col0 FROM tab2 AS cor0
----
-1518
-2112
-2475

onlyif mysql # DIV for integer division: 
query I rowsort label-4833
SELECT DISTINCT - 92 DIV - ( ( - col2 ) ) FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4833
SELECT DISTINCT - 92 / - ( ( - col2 ) ) FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT + - 73 + - 30 AS col1 FROM tab2 AS cor0
----
-103
-103
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-4835
SELECT - 21 + - ( 68 ) + + col2 DIV + - 36 FROM tab2
----
-89
-90
-90

skipif mysql # not compatible
query I rowsort label-4835
SELECT - 21 + - ( 68 ) + + col2 / + - 36 FROM tab2
----
-89
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT ALL COUNT( * ) + + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL COUNT ( * ) + + COUNT ( * ) FROM tab0
----
6

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 74 NOT BETWEEN NULL AND + col2 + + col1
----
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT + MAX( - + col2 ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-4838
SELECT + MAX ( - + col2 ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4839
SELECT DISTINCT - 34 DIV MAX( 17 ) + COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4839
SELECT DISTINCT - 34 / MAX ( 17 ) + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT ALL + 42 + - col1 - + + col2 FROM tab1 AS cor0
----
-22
-68
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT ALL SUM( DISTINCT 56 ) FROM tab1 AS cor0 WHERE col0 NOT BETWEEN ( - col0 ) AND - col1
----
56

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL SUM ( DISTINCT 56 ) FROM tab1 AS cor0 WHERE col0 NOT BETWEEN ( - col0 ) AND - col1
----
56

query II rowsort
SELECT - 98, col2 FROM tab0 cor0
----
-98
10
-98
47
-98
99

query I rowsort
SELECT ALL col1 + - - col0 + - - col0 - - col2 * - col1 AS col2 FROM tab1 AS cor0
----
-120
-1228
-2967

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4845
SELECT COUNT( * ) AS col0, COUNT( * ) AS col1 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4845
SELECT COUNT ( * ) AS col0, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT ALL + col2 + 20 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + ( + 93 ) FROM tab0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT ALL + COUNT( * ) FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL + COUNT ( * ) FROM tab0, tab0 AS cor0
----
9

query I rowsort
SELECT col1 + ( + + 15 ) * + col1 FROM tab2
----
1072
1232
816

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT - + 92 + + - 92 + - COUNT( * ) FROM tab0 AS cor0
----
-187

skipif mysql # not compatible
query I rowsort label-4850
SELECT - + 92 + + - 92 + - COUNT ( * ) FROM tab0 AS cor0
----
-187

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4852
SELECT ALL + + CAST( NULL AS SIGNED ) * 14 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL + + CAST ( NULL AS INTEGER ) * 14 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col1, col1 - + col2 FROM tab1
----
14
-82
47
-21
5
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT + COUNT( * ) * + 56 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
504

skipif mysql # not compatible
query I rowsort label-4854
SELECT + COUNT ( * ) * + 56 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4855
SELECT ALL + CAST( - 15 AS SIGNED ) * col1 FROM tab1
----
-210
-705
-75

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL + CAST ( - 15 AS INTEGER ) * col1 FROM tab1
----
-210
-705
-75

query I rowsort
SELECT ( 67 ) AS col2 FROM tab2 AS cor0
----
67
67
67

query II rowsort
SELECT ALL col2 AS col1, - 60 * - - 27 AS col2 FROM tab0 AS cor0
----
10
-1620
47
-1620
99
-1620

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 13 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * - col1 * - + 86 FROM tab1 AS cor0
----
115584
25370
274856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 80 ) col2 FROM tab0
----
80

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * - - col2 < - - col0
----

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT NULL BETWEEN 95 AND col1 + + - col1 + + 66
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4863
SELECT - CAST( NULL AS SIGNED ) * - col2 * - 0 + + ( CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT - CAST ( NULL AS INTEGER ) * - col2 * - 0 + + ( CAST ( NULL AS REAL ) ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 61 * - col0 + + 4 col2 FROM tab0
----
-5282
-5912
-830

query I rowsort
SELECT + 12 FROM tab0 AS cor0 WHERE - 58 * - - ( - 64 ) IS NULL
----

query I rowsort
SELECT ALL col0 + + col1 * + 94 * + col1 FROM tab2
----
244540
422041
557390

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4867
SELECT ALL 18 - - + COUNT( * ) DIV + - 13 col1 FROM tab2, tab2 AS cor0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4867
SELECT ALL 18 - - + COUNT ( * ) / + - 13 col1 FROM tab2, tab2 AS cor0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 76, - 69 col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT - COUNT( * ) col2 FROM tab2, tab0 cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4869
SELECT - COUNT ( * ) col2 FROM tab2, tab0 cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4870
SELECT + col1 * - CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4870
SELECT + col1 * - CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4872
SELECT col1 + - col2 * + - CAST( + + col0 AS SIGNED ) FROM tab1 cor0
----
4910
5020
6235

skipif mysql # not compatible
query I rowsort label-4872
SELECT col1 + - col2 * + - CAST ( + + col0 AS INTEGER ) FROM tab1 cor0
----
4910
5020
6235

query I rowsort
SELECT + 24 * - + col1 + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-25
-8505
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT ALL + - 26 - COUNT( * ) FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL + - 26 - COUNT ( * ) FROM tab0 AS cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT + + COUNT( - + col2 ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4875
SELECT + + COUNT ( - + col2 ) FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - col0 + + 13 FROM tab0
----
-2
-74
-84

query III rowsort
SELECT col0 AS col0, col1, + 90 AS col1 FROM tab0
----
9 values hashing to 449d4ec419fa8faaf15ceb79079bd69a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 * - + col1 col1 FROM tab1
----
-1927
-205
-574

query I rowsort
SELECT ALL + col2 - - 3 AS col1 FROM tab1
----
62
71
99

query I rowsort
SELECT ALL col1 * - - col1 * + col1 * - col2 FROM tab0
----
-24977727
-92610
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT + 4 / - MIN( - col2 ) FROM tab1 WHERE + - 92 >= + col2 + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT + 4 / - MIN ( - col2 ) FROM tab1 WHERE + - 92 >= + col2 + - 42
----
NULL

query I rowsort
SELECT + 17 * - - col2 * ( 98 ) FROM tab2
----
38318
66640
96628

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT MAX( ALL - + col2 ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-4883
SELECT MAX ( ALL - + col2 ) AS col2 FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT ALL - MIN( ALL + col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL - MIN ( ALL + col1 ) AS col1 FROM tab1
----
-5

query II rowsort
SELECT DISTINCT - col2 AS col2, + col2 AS col1 FROM tab1
----
-59
59
-68
68
-96
96

query II rowsort
SELECT DISTINCT + 23 AS col0, ( - + col0 ) * col1 + + 19 + + col1 AS col2 FROM tab0
----
23
-1115
23
-1787
23
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4887
SELECT DISTINCT col1 DIV + - 96 * - col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT col1 / + - 96 * - col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4888
SELECT ALL CAST( NULL AS SIGNED ), - SUM( + 58 ) AS col0 FROM tab2 AS cor0
----
NULL
-174

skipif mysql # not compatible
query II rowsort label-4888
SELECT ALL CAST ( NULL AS INTEGER ), - SUM ( + 58 ) AS col0 FROM tab2 AS cor0
----
NULL
-174

query I rowsort
SELECT DISTINCT + - ( - + col1 ) AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT + - ( + COUNT( 6 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4890
SELECT + - ( + COUNT ( 6 ) ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 22 AS col2 FROM tab1 AS cor0
----
22

query I rowsort
SELECT col1 + - - col2 AS col1 FROM tab0 cor0
----
100
128
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4893
SELECT + - col2 DIV - col1 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4893
SELECT + - col2 / - col1 AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT DISTINCT + + COUNT( * ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4894
SELECT DISTINCT + + COUNT ( * ) col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4895
SELECT - MAX( col1 ), COUNT( * ) col2 FROM tab0 AS cor0
----
-81
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4895
SELECT - MAX ( col1 ), COUNT ( * ) col2 FROM tab0 AS cor0
----
-81
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4896
SELECT - + col0 DIV col0 AS col0, - col2 FROM tab2 AS cor0
----
-1
-23
-1
-40
-1
-58

skipif mysql # not compatible
query II rowsort label-4896
SELECT - + col0 / col0 AS col0, - col2 FROM tab2 AS cor0
----
-1
-23
-1
-40
-1
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT ALL - - COUNT( * ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4897
SELECT ALL - - COUNT ( * ) col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT + COUNT( ALL + col1 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4898
SELECT + COUNT ( ALL + col1 ) AS col0 FROM tab0 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, col2 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT ALL MAX( DISTINCT + col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL MAX ( DISTINCT + col2 ) FROM tab0
----
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 79 * 40 * - - 58 - - col1 * + col0 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE + 51 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4903
SELECT ALL 33 / SUM( DISTINCT + 39 ) + + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL 33 / SUM ( DISTINCT + 39 ) + + - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 WHERE ( col1 + + col0 ) IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT ALL + 11 * COUNT( * ) FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL + 11 * COUNT ( * ) FROM tab0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT + 71 + COUNT( * ) FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-4906
SELECT + 71 + COUNT ( * ) FROM tab1
----
74

query I rowsort
SELECT ALL + 78 * - col1 + col1 FROM tab0
----
-1617
-6237
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT - MIN( col0 ) col1 FROM tab1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4908
SELECT - MIN ( col0 ) col1 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT COUNT( * ) FROM tab2 WHERE 57 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4909
SELECT COUNT ( * ) FROM tab2 WHERE 57 >= NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 80 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( col0 * col0 ) <= NULL
----

query I rowsort
SELECT 36 * + col1 AS col2 FROM tab0 WHERE ( col0 ) >= col1
----
36
756

query I rowsort
SELECT col1 FROM tab0 WHERE NOT + col2 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4914
SELECT ALL - ( - 34 ) DIV - 9 col1 FROM tab2
----
-3
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4914
SELECT ALL - ( - 34 ) / - 9 col1 FROM tab2
----
-3
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 * + col1 col1 FROM tab2
----
2907
3819
4389

onlyif mysql # DIV for integer division: 
query I rowsort label-4916
SELECT ALL - col1 DIV ( col1 ) AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL - col1 / ( col1 ) AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4917
SELECT + 19 / + MAX( ALL + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4917
SELECT + 19 / + MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4918
SELECT ALL 59 DIV - col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL 59 / - col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL + col1 * col2 + 10 AS col0 FROM tab1 WHERE - ( - 74 ) * - col0 NOT IN ( + col2 )
----
1354
305
3206

query I rowsort
SELECT DISTINCT + col2 * + 77 FROM tab2
----
1771
3080
4466

query I rowsort
SELECT ALL 65 + 94 * + col2 AS col2 FROM tab1
----
5611
6457
9089

query III rowsort
SELECT * FROM tab1 WHERE col2 IN ( 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT ALL + MIN( ALL col2 ) + - COUNT( * ) AS col2 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL + MIN ( ALL col2 ) + - COUNT ( * ) AS col2 FROM tab2
----
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4924
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE ( CAST( - col1 AS DECIMAL ) ) BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4924
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE ( CAST ( - col1 AS REAL ) ) BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 21 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT + ( - ( + SUM( col0 ) ) ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-4926
SELECT + ( - ( + SUM ( col0 ) ) ) AS col1 FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT DISTINCT - MAX( ALL col1 ) AS col2 FROM tab2 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4927
SELECT DISTINCT - MAX ( ALL col1 ) AS col2 FROM tab2 WHERE NOT NULL < NULL
----
NULL

query I rowsort
SELECT + 62 AS col0 FROM tab0 WHERE 41 * 75 + col0 * + 18 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 52 - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4930
SELECT + 84 DIV col1 FROM tab1 cor0
----
1
16
6

skipif mysql # not compatible
query I rowsort label-4930
SELECT + 84 / col1 FROM tab1 cor0
----
1
16
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 5 < col1 - col2
----
97
1
99

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= - ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-4933
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT + MAX( ALL 73 ) AS col1 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-4935
SELECT + MAX ( ALL 73 ) AS col1 FROM tab1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT DISTINCT + COUNT( ALL 78 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-4936
SELECT DISTINCT + COUNT ( ALL 78 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT - ( - COUNT( * ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4937
SELECT - ( - COUNT ( * ) ) AS col0 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE - col0 + + col2 BETWEEN ( 56 ) AND ( 46 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 39 col0 FROM tab2 AS cor0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT - + ( COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4940
SELECT - + ( COUNT ( * ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT DISTINCT - COUNT( DISTINCT + col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4941
SELECT DISTINCT - COUNT ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT - AVG ( - col2 ) * + 77 + COUNT( * ) FROM tab0 AS cor0 WHERE - ( 56 ) NOT BETWEEN NULL AND col1 * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4942
SELECT - AVG ( - col2 ) * + 77 + COUNT ( * ) FROM tab0 AS cor0 WHERE - ( 56 ) NOT BETWEEN NULL AND col1 * 59
----
NULL

query I rowsort
SELECT + col1 + 77 * + col1 FROM tab0
----
1638
6318
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT DISTINCT - COUNT( * ) col0 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4944
SELECT DISTINCT - COUNT ( * ) col0 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab0 WHERE + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 25 + + col0 FROM tab1
----
26
60
66

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE ( 48 ) <= ( NULL ) OR 19 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col0 - col1 col2 FROM tab0
----
15
87
97

query I rowsort
SELECT ALL + ( - 9 ) FROM tab0
----
-9
-9
-9

query I rowsort
SELECT DISTINCT col1 + + 41 AS col2 FROM tab0
----
122
42
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT ALL ( + + 26 ) + MIN( ALL ( col0 ) ) col0 FROM tab2
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4951
SELECT ALL ( + + 26 ) + MIN ( ALL ( col0 ) ) col0 FROM tab2
----
72

query I rowsort
SELECT - 23 + - col1 AS col1 FROM tab2
----
-100
-74
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - - col0 col0 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT - 9 * + - 27 + + COUNT( * ) AS col2 FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-4954
SELECT - 9 * + - 27 + + COUNT ( * ) AS col2 FROM tab1
----
246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col2 * + col1 col1 FROM tab0
----
196
297
3822

query I rowsort
SELECT + - col1 + + col2 * + col0 FROM tab0 AS cor0
----
624
849
9602

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT DISTINCT - - MIN( DISTINCT + col2 ) + MAX( - col2 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4957
SELECT DISTINCT - - MIN ( DISTINCT + col2 ) + MAX ( - col2 ) AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= 93 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT DISTINCT + SUM( + + 18 ) AS col0 FROM tab1 cor0
----
54

skipif mysql # not compatible
query I rowsort label-4959
SELECT DISTINCT + SUM ( + + 18 ) AS col0 FROM tab1 cor0
----
54

query I rowsort
SELECT DISTINCT col0 * - 76 * + 45 AS col0 FROM tab2
----
-157320
-218880
-256500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4961
SELECT ( 28 ) DIV COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
3

skipif mysql # not compatible
query I rowsort label-4961
SELECT ( 28 ) / COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4962
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col0 + + 83 BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT DISTINCT COUNT( * ) FROM tab1, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4964
SELECT DISTINCT COUNT ( * ) FROM tab1, tab0 cor0
----
9

query I rowsort
SELECT ALL 18 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT DISTINCT - 87 + COUNT( * ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-4966
SELECT DISTINCT - 87 + COUNT ( * ) FROM tab0
----
-84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col2 / col2 + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4968
SELECT ALL + CAST( AVG ( + 7 ) AS SIGNED ) + 67 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL + CAST ( AVG ( + 7 ) AS INTEGER ) + 67 FROM tab2
----
74

query I rowsort
SELECT DISTINCT - + 14 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT ALL + + SUM( - - col1 ) + - + ( COUNT( * ) ) FROM tab2 cor0
----
192

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL + + SUM ( - - col1 ) + - + ( COUNT ( * ) ) FROM tab2 cor0
----
192

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab2 AS cor0 WHERE 60 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4972
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 <= ( col1 - col0 / - ( + ( col1 ) ) )
----

query I rowsort
SELECT + + 52 * + 96 FROM tab0 cor0
----
4992
4992
4992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4975
SELECT - - CAST( - + col1 AS SIGNED ) * - 23 - + 87 FROM tab0 AS cor0
----
-64
1776
396

skipif mysql # not compatible
query I rowsort label-4975
SELECT - - CAST ( - + col1 AS INTEGER ) * - 23 - + 87 FROM tab0 AS cor0
----
-64
1776
396

query II rowsort
SELECT col2, col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT ALL + 65 * - - col1 FROM tab1
----
3055
325
910

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT ALL - COUNT( * ) + + 42 FROM tab1 WHERE NULL <= - col1
----
42

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL - COUNT ( * ) + + 42 FROM tab1 WHERE NULL <= - col1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4979
SELECT ALL - col2 / + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL - col2 / + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 col0 FROM tab1
----
73
73
73

query I rowsort
SELECT ALL - 38 * - + col0 FROM tab0
----
3306
3686
570

query I rowsort
SELECT ALL + 67 AS col1 FROM tab1
----
67
67
67

query I rowsort
SELECT - 57 * + ( - col1 ) FROM tab2 AS cor0
----
2907
3819
4389

query I rowsort
SELECT DISTINCT 47 FROM tab1 WHERE ( NULL ) = col0 * + ( + + col0 ) + ( 86 )
----

query I rowsort
SELECT DISTINCT 35 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
35

query I rowsort
SELECT DISTINCT + col0 + + 11 AS col1 FROM tab0 AS cor0
----
108
26
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4987
SELECT * FROM tab1 AS cor0 WHERE NULL < col1 - col1 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4987
SELECT * FROM tab1 AS cor0 WHERE NULL < col1 - col1 * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col0 * + ( - col1 ) + col0 AS col2 FROM tab2 AS cor0
----
-2300
-4864
-4950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4989
SELECT DISTINCT + - ( - + MAX( ALL + 95 ) ) DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT + - ( - + MAX ( ALL + 95 ) ) / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT 37 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4990
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT 37 IS NULL
----
-3

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 * + col0 )
----

query I rowsort
SELECT ( - + 68 ) * 20 - col1 FROM tab0
----
-1361
-1381
-1441

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 50 ) <> col2 * - col2
----

query I rowsort
SELECT 25 * - - 74 AS col1 FROM tab1
----
1850
1850
1850

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 + - + 38 IN ( - ( col1 ) )
----

query I rowsort
SELECT col0 * + 69 FROM tab1 WHERE - 29 IS NOT NULL
----
3519
5865
6279

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4997
SELECT DISTINCT CAST( NULL AS DECIMAL ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4997
SELECT DISTINCT CAST ( NULL AS REAL ) col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 + + + col1 * - - 33 FROM tab0
----
2754
34
714

onlyif mysql # DIV for integer division: 
query I rowsort label-4999
SELECT ALL - col2 DIV 88 FROM tab0 WHERE + + 91 * + - col1 IS NOT NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4999
SELECT ALL - col2 / 88 FROM tab0 WHERE + + 91 * + - col1 IS NOT NULL
----
-1
0
0

query I rowsort
SELECT + col2 FROM tab2 WHERE + + col2 <> ( col0 )
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5001
SELECT DISTINCT col2 DIV + CAST( col0 AS SIGNED ) + 54 AS col1 FROM tab0
----
54
55
57

skipif mysql # not compatible
query I rowsort label-5001
SELECT DISTINCT col2 / + CAST ( col0 AS INTEGER ) + 54 AS col1 FROM tab0
----
54
55
57

query I rowsort
SELECT col1 - 80 + + col1 AS col0 FROM tab2
----
22
54
74

query I rowsort
SELECT DISTINCT + - 71 + col2 FROM tab1 AS cor0
----
-12
-3
25

query I rowsort
SELECT - AVG ( 44 ) FROM tab2 AS cor0 WHERE - ( - 80 ) < ( 59 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT + + 38 + 94 * - SUM( + - 65 ) FROM tab1 cor0
----
18368

skipif mysql # not compatible
query I rowsort label-5005
SELECT + + 38 + 94 * - SUM ( + - 65 ) FROM tab1 cor0
----
18368

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT DISTINCT SUM( - col2 ) + + - 57 FROM tab0 cor0 WHERE NULL IS NULL
----
-213

skipif mysql # not compatible
query I rowsort label-5006
SELECT DISTINCT SUM ( - col2 ) + + - 57 FROM tab0 cor0 WHERE NULL IS NULL
----
-213

query I rowsort
SELECT 32 + col0 * col0 AS col2 FROM tab0 AS cor0
----
257
7601
9441

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) IS NULL OR ( NOT ( - col0 / 95 IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 + + + col1 * + 79 AS col0 FROM tab0 AS cor0
----
1669
178
6446

onlyif mysql # DIV for integer division: 
query I rowsort label-5010
SELECT DISTINCT 43 - - 86 DIV + col1 FROM tab0 AS cor0
----
129
44
47

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT 43 - - 86 / + col1 FROM tab0 AS cor0
----
129
44
47

onlyif mysql # aggregate syntax: 
query II rowsort label-5011
SELECT DISTINCT MAX( ALL - - 81 ), - MAX( DISTINCT + col2 ) AS col1 FROM tab2
----
81
-58

skipif mysql # not compatible
query II rowsort label-5011
SELECT DISTINCT MAX ( ALL - - 81 ), - MAX ( DISTINCT + col2 ) AS col1 FROM tab2
----
81
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5012
SELECT ALL SUM( ALL + CAST( + col0 AS SIGNED ) ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL SUM ( ALL + CAST ( + col0 AS INTEGER ) ) FROM tab1
----
227

query I rowsort
SELECT + - col0 * + + 81 + + 35 FROM tab1 AS cor0
----
-4096
-6850
-7336

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE ( - 0 NOT IN ( + col2 + col1 ) )
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + - ( col2 ) * + 19 AS col2 FROM tab2 AS cor0
----
-1102
-437
-760

query I rowsort
SELECT ALL col0 * - 3 AS col2 FROM tab0 AS cor0
----
-261
-291
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT + SUM( 79 ) FROM tab2 cor0 WHERE NOT ( ( 35 ) ) NOT BETWEEN - 7 AND + ( + col1 )
----
237

skipif mysql # not compatible
query I rowsort label-5018
SELECT + SUM ( 79 ) FROM tab2 cor0 WHERE NOT ( ( 35 ) ) NOT BETWEEN - 7 AND + ( + col1 )
----
237

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 + - 83 * - - col2 <> col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5020
SELECT 36, + COUNT( * ) - + SUM( DISTINCT 53 ) + - 63 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
36
-113

skipif mysql # not compatible
query II rowsort label-5020
SELECT 36, + COUNT ( * ) - + SUM ( DISTINCT 53 ) + - 63 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
36
-113

query II rowsort
SELECT + 50 AS col1, - 64 FROM tab1
----
50
-64
50
-64
50
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT ALL COUNT( ALL + col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5022
SELECT ALL COUNT ( ALL + col1 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT + + col1 AS col0 FROM tab2 WHERE NOT + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT - COUNT( * ) * COUNT( * ) col1 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5024
SELECT - COUNT ( * ) * COUNT ( * ) col1 FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT ALL + COUNT( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL + COUNT ( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - col2 * - 63 AS col1 FROM tab0 AS cor0
----
2961
6237
630

query I rowsort
SELECT ALL - 51 * col1 FROM tab1 AS cor0
----
-2397
-255
-714

query I rowsort
SELECT DISTINCT + 16 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
16

query I rowsort
SELECT 15 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 col2 FROM tab2 AS cor0
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT DISTINCT ( + COUNT( * ) ) + 20 FROM tab1 cor0
----
23

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT ( + COUNT ( * ) ) + 20 FROM tab1 cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5032
SELECT ALL - + CAST( NULL AS SIGNED ) * 42 + + 49 + col0 - - col2 * + col2 * - - col2 + 98 - - 14 + - col1 + + 89 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL - + CAST ( NULL AS INTEGER ) * 42 + + 49 + col0 - - col2 * + col2 * - - col2 + 98 - - 14 + - col1 + + 89 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5033
SELECT ALL - CAST( NULL AS SIGNED ) + + 21 col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5033
SELECT ALL - CAST ( NULL AS INTEGER ) + + 21 col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5034
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT + MAX( + + col0 ) AS col2 FROM tab0 AS cor0 WHERE ( 3 ) IS NOT NULL
----
97

skipif mysql # not compatible
query I rowsort label-5035
SELECT + MAX ( + + col0 ) AS col2 FROM tab0 AS cor0 WHERE ( 3 ) IS NOT NULL
----
97

query II rowsort
SELECT ALL col1, - col1 + - col1 AS col2 FROM tab1 AS cor0 WHERE NOT col2 = - + col0
----
14
-28
47
-94
5
-10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col2, + col1 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT + 78 + COUNT( * ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-5039
SELECT + 78 + COUNT ( * ) FROM tab2
----
81

query I rowsort
SELECT col2 + - ( - 12 ) FROM tab1
----
108
71
80

query I rowsort
SELECT 1 + + + 59 AS col2 FROM tab2
----
60
60
60

query I rowsort
SELECT ( + 6 ) FROM tab1
----
6
6
6

query I rowsort
SELECT col2 * + 48 AS col2 FROM tab0
----
2256
4752
480

query III rowsort
SELECT * FROM tab2 WHERE + - col0 = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT ALL 17 + - SUM( DISTINCT col0 ) AS col1 FROM tab2 cor0
----
-168

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL 17 + - SUM ( DISTINCT col0 ) AS col1 FROM tab2 cor0
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT DISTINCT - 81 - - COUNT( * ) FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-5046
SELECT DISTINCT - 81 - - COUNT ( * ) FROM tab2 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT ALL 6 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL 6 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9

query I rowsort
SELECT - col1 - 48 AS col1 FROM tab0 cor0
----
-129
-49
-69

query I rowsort
SELECT DISTINCT - - col1 + + 58 * + ( + col0 ) FROM tab1 cor0
----
2972
4935
5325

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > - + col2
----

query I rowsort
SELECT ALL + 59 AS col1 FROM tab0 AS cor0
----
59
59
59

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( - - ( + 10 ) ) IS NULL
----
1
21
81

query I rowsort
SELECT - 17 AS col2 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * + 9 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col1, col0 AS col2 FROM tab0 cor0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5056
SELECT ALL CAST( NULL AS SIGNED ) AS col2, + col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-5056
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, + col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query II rowsort
SELECT + - col0, - col2 AS col2 FROM tab2 AS cor0
----
-46
-23
-64
-40
-75
-58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 78 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT - MAX( - 23 ) AS col1 FROM tab1 cor0
----
23

skipif mysql # not compatible
query I rowsort label-5059
SELECT - MAX ( - 23 ) AS col1 FROM tab1 cor0
----
23

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5061
SELECT ALL - 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-5061
SELECT ALL - CAST ( + col2 AS INTEGER ) col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE + + col1 < NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE NOT col0 - - 84 <= - col2
----
51
85
91

query I rowsort
SELECT - col1 + col1 FROM tab2 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT SUM( DISTINCT - col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-5065
SELECT SUM ( DISTINCT - col0 ) FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT ALL - COUNT( * ) col1 FROM tab1, tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5066
SELECT ALL - COUNT ( * ) col1 FROM tab1, tab0 AS cor0
----
-9

query I rowsort
SELECT ALL ( + + 12 ) AS col2 FROM tab0
----
12
12
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5068
SELECT col1 AS col2 FROM tab0 WHERE NOT - + CAST( 62 AS SIGNED ) NOT BETWEEN + + 91 + col0 AND col0
----

skipif mysql # not compatible
query I rowsort label-5068
SELECT col1 AS col2 FROM tab0 WHERE NOT - + CAST ( 62 AS INTEGER ) NOT BETWEEN + + 91 + col0 AND col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 72 * + - col1 BETWEEN 29 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 63 * - + col1 FROM tab1 AS cor0
----
-2961
-315
-882

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 15 IS NOT NULL
----

query I rowsort
SELECT ALL - 31 FROM tab0 cor0
----
-31
-31
-31

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 / - col2 + + ( + - col2 ) IS NOT NULL
----

query I rowsort
SELECT - + col1 * 19 * - 48 * col0 FROM tab0 AS cor0
----
1108080
1666224
88464

query I rowsort
SELECT DISTINCT 69 FROM tab2 WHERE NOT + col1 IS NULL
----
69

query I rowsort
SELECT + - col0 + 36 AS col1 FROM tab1 WHERE 40 IN ( + col2, 67, 60 + - col1 )
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 * col1 + + - col1 + + col1 IS NULL
----

query I rowsort
SELECT ALL - col1 + + 28 AS col1 FROM tab2 AS cor0
----
-23
-39
-49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 NOT IN ( + - col1 - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 72 * + 92 * + col1 * + col1 + - col0 AS col2 FROM tab2 AS cor0
----
-17229070
-29735211
-39273760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5082
SELECT + + col1 * + ( - col2 ) + - + 91 + col1 + + col0 + + - col0 * + CAST( - col1 AS SIGNED ) + + 40 AS col1 FROM tab2 AS cor0
----
1219
1230
1938

skipif mysql # not compatible
query I rowsort label-5082
SELECT + + col1 * + ( - col2 ) + - + 91 + col1 + + col0 + + - col0 * + CAST ( - col1 AS INTEGER ) + + 40 AS col1 FROM tab2 AS cor0
----
1219
1230
1938

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5083
SELECT * FROM tab0 AS cor0 WHERE ( + ( 87 ) * - - col1 ) IN ( col1, CAST( + 30 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5083
SELECT * FROM tab0 AS cor0 WHERE ( + ( 87 ) * - - col1 ) IN ( col1, CAST ( + 30 AS INTEGER ) )
----

query I rowsort
SELECT + col2 * 55 FROM tab2 cor0
----
1265
2200
3190

onlyif mysql # DIV for integer division: 
query I rowsort label-5085
SELECT + col2 DIV ( - col0 ) AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5085
SELECT + col2 / ( - col0 ) AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT + 33 - - - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5086
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT + 33 - - - col1 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 81 * + 43 + col2 - + ( - - 78 ) FROM tab0
----
3415
3452
3504

query I rowsort
SELECT - col1 * + col0 + col0 AS col1 FROM tab2
----
-2300
-4864
-4950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5090
SELECT ALL 95 - + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL 95 - + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5091
SELECT + AVG ( DISTINCT + ( + col2 ) ) + + CAST( NULL AS DECIMAL ) + + MIN( DISTINCT col1 ) / - - 33 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5091
SELECT + AVG ( DISTINCT + ( + col2 ) ) + + CAST ( NULL AS REAL ) + + MIN ( DISTINCT col1 ) / - - 33 AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL - + 85 - col1, col2 AS col1 FROM tab2 cor0
----
-136
23
-152
58
-162
40

query II rowsort
SELECT - 0 AS col2, + 55 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0
55
0
55
0
55

query I rowsort
SELECT DISTINCT - + col2 - - col1 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 78, col2 AS col2 FROM tab2 AS cor0
----
78
23
78
40
78
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5097
SELECT col1 * + - col1 + + + 78 DIV - 6 AS col1 FROM tab1 AS cor0
----
-209
-2222
-38

skipif mysql # not compatible
query I rowsort label-5097
SELECT col1 * + - col1 + + + 78 / - 6 AS col1 FROM tab1 AS cor0
----
-209
-2222
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 28 col0 FROM tab1 AS cor0
----
28
28
28

query II rowsort
SELECT DISTINCT + - col0, col1 AS col0 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT DISTINCT 71 AS col2 FROM tab0 cor0
----
71

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( + col0 ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT + COUNT( - col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5102
SELECT + COUNT ( - col2 ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, 83 col2 FROM tab0
----
10
83
47
83
99
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT ALL + MIN( DISTINCT 48 ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL + MIN ( DISTINCT 48 ) FROM tab0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-5105
SELECT COUNT( * ), 57 AS col1 FROM tab1
----
3
57

skipif mysql # not compatible
query II rowsort label-5105
SELECT COUNT ( * ), 57 AS col1 FROM tab1
----
3
57

query I rowsort
SELECT col2 * - col1 + - col1 AS col2 FROM tab0
----
-100
-231
-3888

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5107
SELECT ALL - COUNT( * ) * 21 DIV ( - - MAX( - + col2 ) ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL - COUNT ( * ) * 21 / ( - - MAX ( - + col2 ) ) AS col1 FROM tab1
----
1

query II rowsort
SELECT DISTINCT - + 95, - col0 AS col0 FROM tab2 AS cor0
----
-95
-46
-95
-64
-95
-75

query I rowsort
SELECT + AVG ( DISTINCT - + col1 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL IN ( - col0, - 43 * - 32 * + - col2 + + col2, - - 77 + - - 66 ) )
----
NULL

query II rowsort
SELECT ALL col2 AS col1, 49 * + col1 FROM tab0 cor0
----
10
1029
47
3969
99
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT + 85 * + SUM( DISTINCT - 82 ) FROM tab0 AS cor0
----
-6970

skipif mysql # not compatible
query I rowsort label-5111
SELECT + 85 * + SUM ( DISTINCT - 82 ) FROM tab0 AS cor0
----
-6970

query II rowsort
SELECT + ( 12 ) * + col1, + col2 AS col2 FROM tab0
----
12
99
252
10
972
47

query II rowsort
SELECT DISTINCT ( + col0 ) + + + col2 AS col1, + col0 AS col1 FROM tab2
----
104
64
133
75
69
46

query I rowsort
SELECT ALL + col1 * - 33 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5115
SELECT DISTINCT - - 4 DIV col0 DIV - ( col0 ) + 83 AS col1 FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-5115
SELECT DISTINCT - - 4 / col0 / - ( col0 ) + 83 AS col1 FROM tab0 AS cor0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5116
SELECT DISTINCT + CAST( - - COUNT( * ) AS SIGNED ) - + COUNT( * ) * + COUNT( ALL + col0 ), - COUNT( * ) AS col2 FROM tab0 cor0
----
-6
-3

skipif mysql # not compatible
query II rowsort label-5116
SELECT DISTINCT + CAST ( - - COUNT ( * ) AS INTEGER ) - + COUNT ( * ) * + COUNT ( ALL + col0 ), - COUNT ( * ) AS col2 FROM tab0 cor0
----
-6
-3

query I rowsort
SELECT DISTINCT + 13 * - col0 + + col0 AS col1 FROM tab0 cor0
----
-1044
-1164
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT ALL MIN( DISTINCT 75 ) * + 6 AS col2 FROM tab2 AS cor0
----
450

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL MIN ( DISTINCT 75 ) * + 6 AS col2 FROM tab2 AS cor0
----
450

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5119
SELECT DISTINCT - col2 * 28 + 55 + - CAST( NULL AS DECIMAL ) / + - 30 * - col0 * - - col1, col1 AS col1, + 36 + - col0 AS col0 FROM tab2 AS cor0
----
9 values hashing to 969fafd826b4e4cfd1218a39b1e63504

skipif mysql # not compatible
query III rowsort label-5119
SELECT DISTINCT - col2 * 28 + 55 + - CAST ( NULL AS REAL ) / + - 30 * - col0 * - - col1, col1 AS col1, + 36 + - col0 AS col0 FROM tab2 AS cor0
----
9 values hashing to 969fafd826b4e4cfd1218a39b1e63504

query II rowsort
SELECT - col2 + + + col1 + + col2, + col2 AS col0 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT ALL - 43 + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + + ( + 38 )
----
-43

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL - 43 + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + + ( + 38 )
----
-43

query I rowsort
SELECT DISTINCT 56 * + 43 - col0 FROM tab1
----
2317
2323
2357

query I rowsort
SELECT ALL - col0 * 53 - + 18 FROM tab0
----
-4629
-5159
-813

query I rowsort
SELECT + 71 * col0 FROM tab1
----
3621
6035
6461

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 * - col1 col1 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5126
SELECT - CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5126
SELECT - CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT - - col1, 53 * col0 + + col1 AS col0 FROM tab0 WHERE col2 NOT BETWEEN - 62 / col1 * col0 * - + col1 * - 8 * + - col1 AND - 14
----
1
5142
21
4632
81
876

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT - 37 * - - 21 * + 8 * COUNT( * ) * - 20 AS col0 FROM tab1
----
372960

skipif mysql # not compatible
query I rowsort label-5128
SELECT - 37 * - - 21 * + 8 * COUNT ( * ) * - 20 AS col0 FROM tab1
----
372960

query III rowsort
SELECT * FROM tab0 WHERE ( NULL = NULL )
----

query I rowsort
SELECT DISTINCT AVG ( ALL - 67 ) FROM tab0 WHERE NOT ( NOT + col1 - col1 + + 86 < NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT DISTINCT - MIN( + + 23 ) AS col0 FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-5131
SELECT DISTINCT - MIN ( + + 23 ) AS col0 FROM tab0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5132
SELECT ALL - 63 AS col0, SUM( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-5132
SELECT ALL - 63 AS col0, SUM ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT DISTINCT + COUNT( * ) * + ( - MAX( ALL + ( col1 ) ) ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-5133
SELECT DISTINCT + COUNT ( * ) * + ( - MAX ( ALL + ( col1 ) ) ) FROM tab2
----
-231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5134
SELECT ALL - COUNT( * ) DIV + CAST( - + COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL - COUNT ( * ) / + CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5135
SELECT ALL COUNT( * ) DIV - + MAX( DISTINCT 42 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL COUNT ( * ) / - + MAX ( DISTINCT 42 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT 85 * - + col1 + 76 FROM tab1 AS cor0
----
-1114
-349
-3919

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT - COUNT( * ) * + MIN( DISTINCT col2 ) FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-5137
SELECT - COUNT ( * ) * + MIN ( DISTINCT col2 ) FROM tab1 AS cor0
----
-177

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 * + 28 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + col2 col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT + col2 + + - col1 FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN + 89 * + + col1 / col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5142
SELECT col0 DIV + + col2 col1 FROM tab2
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5142
SELECT col0 / + + col2 col1 FROM tab2
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT MAX( col2 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5143
SELECT MAX ( col2 ) AS col2 FROM tab1
----
96

query II rowsort
SELECT ALL - col1 AS col1, col0 FROM tab1
----
-14
51
-47
91
-5
85

query III rowsort
SELECT * FROM tab0 WHERE NOT 32 NOT IN ( - - col2, - col2 * + - col0 + + - col1, + - ( - + 44 ) )
----

query I rowsort
SELECT DISTINCT + + col0 * - col2 * + - col0 - - col0 + - - 1 FROM tab2 WHERE + 87 / + - col2 IS NOT NULL
----
163905
326326
48715

onlyif mysql # DIV for integer division: 
query I rowsort label-5147
SELECT ALL col2 DIV + + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5147
SELECT ALL col2 / + + col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT ALL + COUNT( * ) FROM tab1 cor0 WHERE ( - col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL + COUNT ( * ) FROM tab1 cor0 WHERE ( - col1 ) IS NULL
----
0

query II rowsort
SELECT + col0 AS col2, + col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT ALL + MIN( ALL - - 79 ) * 26 + + + SUM( DISTINCT - 89 ) FROM tab1
----
1965

skipif mysql # not compatible
query I rowsort label-5150
SELECT ALL + MIN ( ALL - - 79 ) * 26 + + + SUM ( DISTINCT - 89 ) FROM tab1
----
1965

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT + COUNT( ALL + col2 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5151
SELECT + COUNT ( ALL + col2 ) FROM tab2 cor0
----
3

query I rowsort
SELECT ALL + + 23 - col1 FROM tab1 AS cor0
----
-24
18
9

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) > + col0
----

query II rowsort
SELECT + 16 AS col0, ( col1 ) + - 56 FROM tab1 AS cor0
----
16
-42
16
-51
16
-9

query I rowsort
SELECT ALL + 28 * - 43 + - + col2 + - - col1 FROM tab0 AS cor0
----
-1170
-1193
-1302

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5156
SELECT DISTINCT + CAST( NULL AS SIGNED ) - COUNT( * ) + 76 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5156
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - COUNT ( * ) + 76 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 36 - - + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-2310
-4892
-4989

query I rowsort
SELECT + 77 FROM tab0 AS cor0 WHERE ( NULL ) >= col1 + + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5159
SELECT DISTINCT + 1 * - 92 * + ( + CAST( NULL AS SIGNED ) ) - - col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5159
SELECT DISTINCT + 1 * - 92 * + ( + CAST ( NULL AS INTEGER ) ) - - col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * + col1 col1, + col0 + - col2 - + - col1 * - - col0 col0 FROM tab2
----
-2346
2369
-4928
4952
-5025
5042

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 = col0 * - col2 + 57
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5162
SELECT DISTINCT SUM( ALL + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5162
SELECT DISTINCT SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 14 col0 FROM tab0 AS cor0
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT ( + - MAX( 53 ) ) FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-5164
SELECT ( + - MAX ( 53 ) ) FROM tab1 AS cor0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT DISTINCT COUNT( * ) * - COUNT( * ) + + - 37 AS col2 FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) + + - 37 AS col2 FROM tab1 AS cor0
----
-46

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 + col1 * - col2 IS NOT NULL
----

query I rowsort
SELECT - col2 AS col2 FROM tab1 cor0 WHERE NOT 92 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - - 79 ) IS NOT NULL
----

query II rowsort
SELECT col1 AS col1, - 49 AS col2 FROM tab0
----
1
-49
21
-49
81
-49

query I rowsort
SELECT - 20 * col1 AS col1 FROM tab0
----
-1620
-20
-420

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5171
SELECT * FROM tab2 WHERE NOT + CAST( - + col2 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5171
SELECT * FROM tab2 WHERE NOT + CAST ( - + col2 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT + SUM( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5172
SELECT + SUM ( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
-185

query II rowsort
SELECT ALL - - 5, - 21 AS col0 FROM tab0 AS cor0
----
5
-21
5
-21
5
-21

query I rowsort
SELECT - - col0 * - 71 AS col1 FROM tab1 cor0
----
-3621
-6035
-6461

query I rowsort
SELECT DISTINCT + col2 * - + 28 FROM tab0 AS cor0
----
-1316
-2772
-280

query I rowsort
SELECT ALL + + col2 * + ( + col1 ) * + col2 FROM tab2 AS cor0
----
123200
225388
26979

query II rowsort
SELECT ALL col0 / col0, 62 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5178
SELECT + col0 DIV + col2 + - col0 FROM tab0
----
-15
-79
-97

skipif mysql # not compatible
query I rowsort label-5178
SELECT + col0 / + col2 + - col0 FROM tab0
----
-15
-79
-97

query I rowsort
SELECT DISTINCT col2 + - ( 72 ) * col1 FROM tab2
----
-3649
-4766
-5504

onlyif mysql # DIV for integer division: 
query I rowsort label-5180
SELECT 22 - - 33 DIV + - col0 + - 8 FROM tab1
----
14
14
14

skipif mysql # not compatible
query I rowsort label-5180
SELECT 22 - - 33 / + - col0 + - 8 FROM tab1
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 29 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT - col1 - - + 53 AS col2 FROM tab0
----
-28
32
52

onlyif mysql # DIV for integer division: 
query I rowsort label-5183
SELECT ALL col1 * + ( col1 ) DIV + col1 + + + ( - + col0 ) + - 90 * col1 - - + col2 col2 FROM tab0
----
-1946
-7177
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5183
SELECT ALL col1 * + ( col1 ) / + col1 + + + ( - + col0 ) + - 90 * col1 - - + col2 col2 FROM tab0
----
-1946
-7177
-87

query I rowsort
SELECT ALL + col1 + + + col2 AS col1 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # DIV for integer division: 
query II rowsort label-5185
SELECT ALL + 61 * + 76 * + col0 DIV - - col0 + - col2 AS col1, col2 FROM tab0 cor0
----
4537
99
4589
47
4626
10

skipif mysql # not compatible
query II rowsort label-5185
SELECT ALL + 61 * + 76 * + col0 / - - col0 + - col2 AS col1, col2 FROM tab0 cor0
----
4537
99
4589
47
4626
10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) < 19
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= - col2 * - 19
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5188
SELECT COUNT( * ) / + CAST( NULL AS SIGNED ) / + COUNT( * ) + + - COUNT( ( - col1 ) ) FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-5188
SELECT COUNT ( * ) / + CAST ( NULL AS INTEGER ) / + COUNT ( * ) + + - COUNT ( ( - col1 ) ) FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - - 68
----
NULL

query I rowsort
SELECT + col2 * 40 AS col0 FROM tab0
----
1880
3960
400

query I rowsort
SELECT col1 * + + col2 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query II rowsort label-5191
SELECT ALL + 9 AS col0, COUNT( * ) * + 32 AS col2 FROM tab1
----
9
96

skipif mysql # not compatible
query II rowsort label-5191
SELECT ALL + 9 AS col0, COUNT ( * ) * + 32 AS col2 FROM tab1
----
9
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT ALL - ( + - ( SUM( ALL + + 2 ) ) ) col1 FROM tab1
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5192
SELECT ALL - ( + - ( SUM ( ALL + + 2 ) ) ) col1 FROM tab1
----
6

query II rowsort
SELECT ALL + col1, col1 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT col0 * + - col1 * ( 44 ) * col0 + - - ( ( + - col2 ) ) FROM tab1
----
-1589559
-1602312
-17125176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5195
SELECT col2 * + CAST( NULL AS SIGNED ) * - - ( + col1 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5195
SELECT col2 * + CAST ( NULL AS INTEGER ) * - - ( + col1 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5196
SELECT ALL + + CAST( NULL AS SIGNED ) * col1 + - 33 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL + + CAST ( NULL AS INTEGER ) * col1 + - 33 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 56 * - + col0 FROM tab2 AS cor0
----
-2576
-3584
-4200

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 14 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + + 87 * ( col2 ), - col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
2001
-23
3480
-40
5046
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5200
SELECT DISTINCT CAST( + 29 AS SIGNED ) AS col0 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-5200
SELECT DISTINCT CAST ( + 29 AS INTEGER ) AS col0 FROM tab2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT ALL + 78 * - COUNT( * ) * SUM( DISTINCT - + col0 ) AS col1 FROM tab1
----
53118

skipif mysql # not compatible
query I rowsort label-5201
SELECT ALL + 78 * - COUNT ( * ) * SUM ( DISTINCT - + col0 ) AS col1 FROM tab1
----
53118

query I rowsort
SELECT DISTINCT + ( - + col2 ) * 90 FROM tab0
----
-4230
-8910
-900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5203
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - 47 + + col1 * - col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5203
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - 47 + + col1 * - col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + + 69 AS col1 FROM tab2 AS cor0
----
69
69
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5205
SELECT ALL + - col0 * col0 DIV - + col0 + + col1 FROM tab0 AS cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL + - col0 * col0 / - + col0 + + col1 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT + - 84 * col1 AS col1 FROM tab2 cor0
----
-4284
-5628
-6468

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5207
SELECT ALL CAST( NULL AS DECIMAL ) * - CAST( + + 93 AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL CAST ( NULL AS REAL ) * - CAST ( + + 93 AS REAL ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE 8 > - col0 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 94 + - 32 AS col1 FROM tab0 AS cor0
----
-126
-126
-126

query I rowsort
SELECT ALL + + col0 - + col2 + + 12 AS col2 FROM tab2 AS cor0
----
29
35
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5211
SELECT DISTINCT - + ( + CAST( + col0 AS SIGNED ) ) + col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5211
SELECT DISTINCT - + ( + CAST ( + col0 AS INTEGER ) ) + col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 71 AS col1 FROM tab2 cor0 WHERE NULL < + 51 * 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT SUM( DISTINCT + 81 ) + ( + + MIN( - + col0 ) ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5213
SELECT SUM ( DISTINCT + 81 ) + ( + + MIN ( - + col0 ) ) FROM tab2 AS cor0
----
6

query I rowsort
SELECT DISTINCT 8 - + col1 AS col2 FROM tab1 AS cor0
----
-39
-6
3

query I rowsort
SELECT DISTINCT - col1 - 68 AS col1 FROM tab1 AS cor0
----
-115
-73
-82

query I rowsort
SELECT DISTINCT col1 * + - col1 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT - col2 BETWEEN - - 33 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT - col2 BETWEEN - - 33 AND NULL
----
3

query I rowsort
SELECT DISTINCT - 19 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 66 col2 FROM tab1
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT ( + - MIN( + + col1 ) ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5220
SELECT ( + - MIN ( + + col1 ) ) AS col2 FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5221
SELECT + + col1 / + CAST( NULL AS SIGNED ) * - col1 * + + 53 + + 69 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5221
SELECT + + col1 / + CAST ( NULL AS INTEGER ) * - col1 * + + 53 + + 69 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( col1 ) * col2 + col0 FROM tab2 AS cor0
----
-1127
-3016
-3811

query I rowsort
SELECT + col0 - 6 FROM tab1 cor0
----
45
79
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT DISTINCT + ( - MAX( + 76 ) ) + + 78 + + COUNT( + - 28 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT + ( - MAX ( + 76 ) ) + + 78 + + COUNT ( + - 28 ) AS col2 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT DISTINCT MAX( + - col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5225
SELECT DISTINCT MAX ( + - col2 ) AS col0 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT MAX( + ( - + col1 ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-5227
SELECT MAX ( + ( - + col1 ) ) FROM tab1
----
-5

query I rowsort
SELECT ( + - 16 ) AS col1 FROM tab2
----
-16
-16
-16

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( + 87 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT SUM( DISTINCT - - col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-5230
SELECT SUM ( DISTINCT - - col1 ) FROM tab2 AS cor0
----
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5231
SELECT ALL - CAST( - ( + + COUNT( * ) ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5231
SELECT ALL - CAST ( - ( + + COUNT ( * ) ) AS INTEGER ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5232
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT ALL - COUNT( col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL - COUNT ( col0 ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - 89 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT DISTINCT SUM( DISTINCT + 58 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-5235
SELECT DISTINCT SUM ( DISTINCT + 58 ) AS col0 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT + MIN( - 21 ) FROM tab2 cor0
----
-21

skipif mysql # not compatible
query I rowsort label-5236
SELECT + MIN ( - 21 ) FROM tab2 cor0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5237
SELECT ALL 59 - - + COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE ( 3 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL 59 - - + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE ( 3 IS NOT NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5238
SELECT * FROM tab2 AS cor0 WHERE + col1 + + CAST( col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5238
SELECT * FROM tab2 AS cor0 WHERE + col1 + + CAST ( col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 * - - col1 < + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - - col1, + col2 + + 84 AS col1 FROM tab1 AS cor0
----
14
180
47
152
5
143

query I rowsort
SELECT DISTINCT - 27 * - 23 AS col2 FROM tab0 AS cor0
----
621

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT + 26 = - 81
----
51
85
91

query I rowsort
SELECT 90 AS col0 FROM tab2 AS cor0 WHERE col1 * + col1 IS NOT NULL
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT + COUNT( * ) * 71 + 20 FROM tab1
----
233

skipif mysql # not compatible
query I rowsort label-5244
SELECT + COUNT ( * ) * 71 + 20 FROM tab1
----
233

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5245
SELECT COUNT( * ) DIV - ( COUNT( * ) ) + - 93 col2 FROM tab0
----
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5245
SELECT COUNT ( * ) / - ( COUNT ( * ) ) + - 93 col2 FROM tab0
----
-94

query I rowsort
SELECT 66 + + + 97 * col2 FROM tab2
----
2297
3946
5692

onlyif mysql # DIV for integer division: 
query I rowsort label-5247
SELECT - col0 + + 84 - + + col2 DIV + + col0 + - + col1 - + + 99 AS col1 FROM tab1
----
-105
-153
-81

skipif mysql # not compatible
query I rowsort label-5247
SELECT - col0 + + 84 - + + col2 / + + col0 + - + col1 - + + 99 AS col1 FROM tab1
----
-105
-153
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5248
SELECT * FROM tab2 WHERE ( col1 ) BETWEEN + col1 - + col1 + - 32 AND - - 3 * + + 4 * - col0 + CAST( - 72 AS SIGNED ) * + col0
----

skipif mysql # not compatible
query III rowsort label-5248
SELECT * FROM tab2 WHERE ( col1 ) BETWEEN + col1 - + col1 + - 32 AND - - 3 * + + 4 * - col0 + CAST ( - 72 AS INTEGER ) * + col0
----

query I rowsort
SELECT - 60 + - + col0 FROM tab2
----
-106
-124
-135

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5250
SELECT DISTINCT col0 + - CAST( - + CAST( 0 AS DECIMAL ) AS SIGNED ) col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5250
SELECT DISTINCT col0 + - CAST ( - + CAST ( 0 AS REAL ) AS INTEGER ) col1 FROM tab0
----
15
87
97

query I rowsort
SELECT + 79 + - ( 0 ) AS col2 FROM tab1
----
79
79
79

query I rowsort
SELECT DISTINCT - 95 * 83 FROM tab1
----
-7885

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 * 44 + col2 + + col0 col0 FROM tab2
----
4337
4372
4401

query I rowsort
SELECT DISTINCT + ( col0 ) * + col2 * - ( - col0 ) * + 88 + - + ( - + col0 ) AS col0 FROM tab0
----
6660807
81971305
930615

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5255
SELECT DISTINCT - 84 * + col2 + + + col2 + - 66 * CAST( - col1 AS SIGNED ) AS col2 FROM tab2
----
-392
1457
1762

skipif mysql # not compatible
query I rowsort label-5255
SELECT DISTINCT - 84 * + col2 + + + col2 + - 66 * CAST ( - col1 AS INTEGER ) AS col2 FROM tab2
----
-392
1457
1762

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT DISTINCT - SUM( + - 74 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
666

skipif mysql # not compatible
query I rowsort label-5256
SELECT DISTINCT - SUM ( + - 74 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
666

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 94 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 * + - col0 AS col1 FROM tab1
----
2601
7225
8281

onlyif mysql # DIV for integer division: 
query I rowsort label-5259
SELECT DISTINCT + ( 94 ) DIV - - col0 AS col0 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-5259
SELECT DISTINCT + ( 94 ) / - - col0 AS col0 FROM tab0
----
0
1
6

query I rowsort
SELECT ALL + + col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT - COUNT( col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5261
SELECT - COUNT ( col0 ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT + col2 AS col0, col2 + + col1 FROM tab2 AS cor0
----
23
74
40
117
58
125

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + - - 17 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5264
SELECT DISTINCT col2 DIV col1 * - col1 FROM tab1
----
-47
-55
-84

skipif mysql # not compatible
query I rowsort label-5264
SELECT DISTINCT col2 / col1 * - col1 FROM tab1
----
-47
-55
-84

query I rowsort
SELECT ALL + 89 * - col0 AS col2 FROM tab1
----
-4539
-7565
-8099

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 + col2 + 48 + 46 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 - + 61 <> + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 18 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( 26 ) col1 FROM tab0 AS cor0
----
-26
-26
-26

query I rowsort
SELECT - + 61 + - 41 - ( - - 94 ) * 54 + + 88 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1f4ba223e1b1bc92b620dc071308b11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( 9 ) col0 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT COUNT( DISTINCT - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5273
SELECT COUNT ( DISTINCT - col1 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT - col0 + - + col0, col2 FROM tab0 AS cor0 WHERE ( - 42 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5275
SELECT + col1 * + CAST( + 92 AS SIGNED ) FROM tab2 AS cor0
----
4692
6164
7084

skipif mysql # not compatible
query I rowsort label-5275
SELECT + col1 * + CAST ( + 92 AS INTEGER ) FROM tab2 AS cor0
----
4692
6164
7084

query I rowsort
SELECT ALL + col1 * - + ( - col1 ) + - 72 AS col0 FROM tab0 AS cor0
----
-71
369
6489

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT ALL - SUM( - col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL - SUM ( - col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT ALL + ( + MAX( DISTINCT col1 ) ) col2 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5278
SELECT ALL + ( + MAX ( DISTINCT col1 ) ) col2 FROM tab0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5279
SELECT + col2 DIV + - col0 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5279
SELECT + col2 / + - col0 AS col1 FROM tab1
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 NOT BETWEEN + 60 * - 78 AND + 73
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL >= col2 )
----

query I rowsort
SELECT 15 * - + col2 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT - COUNT( * ) * 44 * 12 * COUNT( * ) - 62 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-4811

skipif mysql # not compatible
query I rowsort label-5283
SELECT - COUNT ( * ) * 44 * 12 * COUNT ( * ) - 62 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-4811

query I rowsort
SELECT + col2 * col1 * col1 * - - col0 + - col1 - col1 + + 17 FROM tab1 AS cor0
----
125382
13669215
959605

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT + COUNT( * ) + - ( - 17 ) FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-5285
SELECT + COUNT ( * ) + - ( - 17 ) FROM tab1 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT DISTINCT - ( - 42 ) - COUNT( * ) * COUNT( * ) FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-5286
SELECT DISTINCT - ( - 42 ) - COUNT ( * ) * COUNT ( * ) FROM tab2
----
33

query I rowsort
SELECT DISTINCT ( - 2 ) * - 49 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT ALL - SUM( - - ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL - SUM ( - - ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5289
SELECT CAST( 27 AS SIGNED ) * + ( ( + col0 ) ) * - - col0 AS col1 FROM tab0 AS cor0
----
204363
254043
6075

skipif mysql # not compatible
query I rowsort label-5289
SELECT CAST ( 27 AS INTEGER ) * + ( ( + col0 ) ) * - - col0 AS col1 FROM tab0 AS cor0
----
204363
254043
6075

query II rowsort
SELECT - ( - col0 ) AS col0, - 10 AS col0 FROM tab2 AS cor0
----
46
-10
64
-10
75
-10

query I rowsort
SELECT ALL + ( 68 ) FROM tab2 AS cor0
----
68
68
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 14 col2 FROM tab0 AS cor0
----
-14
-14
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5293
SELECT DISTINCT ( - col2 ) * CAST( + - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT ( - col2 ) * CAST ( + - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5294
SELECT DISTINCT col0 DIV CAST( + - col1 AS SIGNED ) col0 FROM tab2
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5294
SELECT DISTINCT col0 / CAST ( + - col1 AS INTEGER ) col0 FROM tab2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT ALL - ( + - 14 ) * + MIN( + 78 ) FROM tab0
----
1092

skipif mysql # not compatible
query I rowsort label-5295
SELECT ALL - ( + - 14 ) * + MIN ( + 78 ) FROM tab0
----
1092

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT + ( + COUNT( * ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5296
SELECT + ( + COUNT ( * ) ) AS col1 FROM tab1
----
3

query III rowsort
SELECT col2, col0 AS col1, col1 * - col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5298
SELECT DISTINCT col0 DIV + + col2 FROM tab0
----
0
8

skipif mysql # not compatible
query I rowsort label-5298
SELECT DISTINCT col0 / + + col2 FROM tab0
----
0
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5299
SELECT + - col1 * col1 * + col1 + - col2 * + - CAST( + ( - col0 ) AS SIGNED ) * - CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5299
SELECT + - col1 * col1 * + col1 + - col2 * + - CAST ( + ( - col0 ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5301
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT ALL 35 + ( + SUM( ALL - - col2 ) ) col0 FROM tab0
----
191

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5302
SELECT ALL 35 + ( + SUM ( ALL - - col2 ) ) col0 FROM tab0
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT ALL + - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5303
SELECT ALL + - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > col0 + col0
----

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 77 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
77

query I rowsort
SELECT DISTINCT - 4 - + ( 67 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-5308
SELECT DISTINCT + - 29 DIV col0 + - + col2 FROM tab0 AS cor0
----
-10
-48
-99

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT + - 29 / col0 + - + col2 FROM tab0 AS cor0
----
-10
-48
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT DISTINCT + COUNT( * ) + + + 79 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-5309
SELECT DISTINCT + COUNT ( * ) + + + 79 FROM tab0 AS cor0
----
82

query I rowsort
SELECT DISTINCT + 47 * + ( - col0 ) FROM tab2 cor0
----
-2162
-3008
-3525

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT ALL COUNT( - col0 ) + + - 69 col1 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5311
SELECT ALL COUNT ( - col0 ) + + - 69 col1 FROM tab2 AS cor0
----
-66

query II rowsort
SELECT - col0, - col0 * - col0 FROM tab2 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5313
SELECT DISTINCT ( + COUNT( * ) ) * 94 DIV + 84 + 44 - + ( - - COUNT( * ) ) col0 FROM tab1 AS cor0
----
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5313
SELECT DISTINCT ( + COUNT ( * ) ) * 94 / + 84 + 44 - + ( - - COUNT ( * ) ) col0 FROM tab1 AS cor0
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - - col0 col0 FROM tab1
----
-45
23
26

query I rowsort
SELECT ALL 24 AS col1 FROM tab2 WHERE NOT - col2 > - col2 - - + 61
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5316
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE col2 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5317
SELECT - 7 + - - 25 - - CAST( col0 AS SIGNED ) AS col1 FROM tab0
----
105
115
33

skipif mysql # not compatible
query I rowsort label-5317
SELECT - 7 + - - 25 - - CAST ( col0 AS INTEGER ) AS col1 FROM tab0
----
105
115
33

query III rowsort
SELECT * FROM tab2 WHERE + - col2 * - - 1 / + + col0 - + ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT DISTINCT SUM( 15 ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-5319
SELECT DISTINCT SUM ( 15 ) FROM tab0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5320
SELECT ALL col0 + col2 + + - CAST( + - 64 AS SIGNED ) * + col1 AS col0 FROM tab0
----
1441
260
5246

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL col0 + col2 + + - CAST ( + - 64 AS INTEGER ) * + col1 AS col0 FROM tab0
----
1441
260
5246

query I rowsort
SELECT 66 * - 28 AS col0 FROM tab0
----
-1848
-1848
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT SUM( - + col0 ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-5322
SELECT SUM ( - + col0 ) AS col2 FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT COUNT( DISTINCT + col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5323
SELECT COUNT ( DISTINCT + col0 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT 60 + - - col0 FROM tab0 AS cor0
----
147
157
75

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 ALL - ( 82 ) FROM tab0 AS cor0
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-5327
SELECT COUNT( * ), 46 col2 FROM tab0
----
3
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5327
SELECT COUNT ( * ), 46 col2 FROM tab0
----
3
46

query I rowsort
SELECT DISTINCT - AVG ( ALL col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 42 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - col0 * + - col1
----

query I rowsort
SELECT ALL + - 83 AS col1 FROM tab1 AS cor0
----
-83
-83
-83

query I rowsort
SELECT - - col1 * - col0 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT DISTINCT 93 * SUM( ALL 5 ) AS col2 FROM tab0 AS cor0
----
1395

skipif mysql # not compatible
query I rowsort label-5333
SELECT DISTINCT 93 * SUM ( ALL 5 ) AS col2 FROM tab0 AS cor0
----
1395

query I rowsort
SELECT + - col1 * - 45 + - - col1 AS col0 FROM tab2 AS cor0
----
2346
3082
3542

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT MIN( ALL - ( + + col0 ) ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5335
SELECT MIN ( ALL - ( + + col0 ) ) FROM tab0 AS cor0
----
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = - 67 + - col2 + + col0 / - col1
----

query I rowsort
SELECT ALL col0 * col0 * + + 77 * - 56 * - + col1 AS col1 FROM tab2 AS cor0
----
1359970304
1625085000
465333792

onlyif mysql # DIV for integer division: 
query I rowsort label-5338
SELECT - 68 DIV - col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5338
SELECT - 68 / - col2 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT - MAX( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5339
SELECT - MAX ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5340
SELECT DISTINCT 25 DIV - COUNT( * ) AS col2 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-5340
SELECT DISTINCT 25 / - COUNT ( * ) AS col2 FROM tab1
----
-8

query II rowsort
SELECT + ( col2 ), + col1 AS col1 FROM tab0
----
10
21
47
81
99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5343
SELECT ALL - COUNT( * ) DIV + 97 FROM tab1, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL - COUNT ( * ) / + 97 FROM tab1, tab1 AS cor0
----
0

query I rowsort
SELECT ALL ( + col0 ) FROM tab2 AS cor0 WHERE NOT col2 * col0 IN ( - col1, - 27, + - 4 * - - col1 + - - col2 * - col1 + + + col2 / + ( - - ( col0 ) ), + + 20 + - - 84 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT DISTINCT + ( 35 ) + COUNT( DISTINCT col1 ) FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-5345
SELECT DISTINCT + ( 35 ) + COUNT ( DISTINCT col1 ) FROM tab2
----
38

query I rowsort
SELECT ALL + 69 * + col0 + - col2 FROM tab1 AS cor0
----
3423
5806
6211

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5347
SELECT DISTINCT + + 17 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col0 * - col0 AND - CAST( NULL AS SIGNED ) - col0
----

skipif mysql # not compatible
query I rowsort label-5347
SELECT DISTINCT + + 17 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col0 * - col0 AND - CAST ( NULL AS INTEGER ) - col0
----

query I rowsort
SELECT - col0 AS col1 FROM tab1 cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT + ( - - col2 ) AS col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5350
SELECT ALL + + 54 + - COUNT( * ) + CAST( - + 32 AS SIGNED ) FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL + + 54 + - COUNT ( * ) + CAST ( - + 32 AS INTEGER ) FROM tab1 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT ALL - COUNT( * ) - - - 64 * 32 FROM tab2 AS cor0
----
-2051

skipif mysql # not compatible
query I rowsort label-5351
SELECT ALL - COUNT ( * ) - - - 64 * 32 FROM tab2 AS cor0
----
-2051

query I rowsort
SELECT + + ( col0 ) * - 26 * col1 * - 32 + - col2 + ( + col0 ) * - - col2 FROM tab2 cor0
----
1952907
4102616
4185092

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT + + MAX( ALL - ( ( + col1 ) ) ) FROM tab0 AS cor0 WHERE - ( + col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5353
SELECT + + MAX ( ALL - ( ( + col1 ) ) ) FROM tab0 AS cor0 WHERE - ( + col2 ) IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT col0 * + col2 - + 27 + + 88 AS col1 FROM tab0
----
766
931
9664

query I rowsort
SELECT 28 + + 99 AS col0 FROM tab1
----
127
127
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5357
SELECT - CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5357
SELECT - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 16 + - col1, + col0 col2 FROM tab0 AS cor0
----
-17
97
-37
87
-97
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 col1 FROM tab0 cor0
----
-95
-95
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5360
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5360
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT DISTINCT - ( - - COUNT( * ) ) AS col0 FROM tab0 WHERE NULL < - col0
----
0

skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT - ( - - COUNT ( * ) ) AS col0 FROM tab0 WHERE NULL < - col0
----
0

query I rowsort
SELECT DISTINCT - + 64 AS col0 FROM tab0 AS cor0
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-5363
SELECT - + col1 DIV - ( + + col0 ) * - 44 + - 2 + col0 DIV ( + + 3 ) col0 FROM tab1 AS cor0
----
15
26
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5363
SELECT - + col1 / - ( + + col0 ) * - 44 + - 2 + col0 / ( + + 3 ) col0 FROM tab1 AS cor0
----
15
26
28

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5365
SELECT + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5365
SELECT + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + - 42 * - + col2 - - col1 - - 44 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - ( + col1 ) FROM tab2 AS cor0 WHERE NOT - col2 / col0 = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 3 + - col0 + - col2 * + 29 + - ( + 35 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col1 * - col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + 0 ) FROM tab2
----
0

query I rowsort
SELECT ALL col0 + col0 * + col0 FROM tab0
----
240
7656
9506

query II rowsort
SELECT 26 + + + col0 * col2 * + 25, col1 + - + 23 AS col0 FROM tab0
----
17651
58
21776
-2
240101
-22

query I rowsort
SELECT + col0 + + ( 7 ) AS col2 FROM tab0 cor0
----
104
22
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT DISTINCT MAX( - 81 ) FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5374
SELECT DISTINCT MAX ( - 81 ) FROM tab1 AS cor0
----
-81

query I rowsort
SELECT - col2 FROM tab2 WHERE NULL > - col2 - - ( + + col2 ) * - 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT DISTINCT COUNT( ALL 44 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5376
SELECT DISTINCT COUNT ( ALL 44 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 23 - + col1 + + col1 * col1 col0 FROM tab0 AS cor0
----
-23
397
6457

onlyif mysql # DIV for integer division: 
query I rowsort label-5378
SELECT DISTINCT - col1 + + col2 DIV col2 - + 96 FROM tab0 cor0
----
-116
-176
-96

skipif mysql # not compatible
query I rowsort label-5378
SELECT DISTINCT - col1 + + col2 / col2 - + 96 FROM tab0 cor0
----
-116
-176
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 81 / - 51 + + col2 * - col2 IS NULL
----

query I rowsort
SELECT + 34 FROM tab2 AS cor0 WHERE - 80 IS NOT NULL
----
34
34
34

query I rowsort
SELECT DISTINCT - 71 FROM tab1 cor0
----
-71

query I rowsort
SELECT - col2 * - - col0 AS col1 FROM tab2
----
-1058
-2560
-4350

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT + 87 IS NULL )
----

query I rowsort
SELECT + col0 * + 68 AS col1 FROM tab0
----
1020
5916
6596

query I rowsort
SELECT + 48 * col1 * + col2 FROM tab0
----
10080
182736
4752

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5386
SELECT 17 DIV COUNT( * ) AS col2 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-5386
SELECT 17 / COUNT ( * ) AS col2 FROM tab0
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5387
SELECT + COUNT( * ), - COUNT( * ) + COUNT( - ( - - 70 ) ) * COUNT( * ) AS col2 FROM tab1
----
3
6

skipif mysql # not compatible
query II rowsort label-5387
SELECT + COUNT ( * ), - COUNT ( * ) + COUNT ( - ( - - 70 ) ) * COUNT ( * ) AS col2 FROM tab1
----
3
6

query II rowsort
SELECT 3, - 32 AS col2 FROM tab2
----
3
-32
3
-32
3
-32

query II rowsort
SELECT col1, ( col2 ) * - col1 + - col2 AS col1 FROM tab0
----
1
-198
21
-220
81
-3854

onlyif mysql # DIV for integer division: 
query II rowsort label-5390
SELECT DISTINCT col2 AS col2, col0 DIV - 35 + col0 FROM tab0 AS cor0
----
10
85
47
15
99
95

skipif mysql # not compatible
query II rowsort label-5390
SELECT DISTINCT col2 AS col2, col0 / - 35 + col0 FROM tab0 AS cor0
----
10
85
47
15
99
95

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5392
SELECT - ( - CAST( NULL AS SIGNED ) ) + MAX( + col0 + 8 ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5392
SELECT - ( - CAST ( NULL AS INTEGER ) ) + MAX ( + col0 + 8 ) col0 FROM tab1
----
NULL

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + col2 / col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 98 BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT - COUNT( DISTINCT - 30 ) col2 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5397
SELECT - COUNT ( DISTINCT - 30 ) col2 FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5398
SELECT DISTINCT - 65 * - 90 + - col1 FROM tab1 WHERE NULL NOT BETWEEN - CAST( - col2 AS SIGNED ) AND 13 + col1
----

skipif mysql # not compatible
query I rowsort label-5398
SELECT DISTINCT - 65 * - 90 + - col1 FROM tab1 WHERE NULL NOT BETWEEN - CAST ( - col2 AS INTEGER ) AND 13 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 * col1 + 86 col1 FROM tab2
----
3146
4106
4706

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5401
SELECT * FROM tab1 WHERE NOT ( col1 / + col2 + + col2 * CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5401
SELECT * FROM tab1 WHERE NOT ( col1 / + col2 + + col2 * CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5402
SELECT DISTINCT 4 DIV 79 + ( 36 ) * 6 FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-5402
SELECT DISTINCT 4 / 79 + ( 36 ) * 6 FROM tab0
----
216

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE NOT 97 / - col0 IS NULL
----
-51
-67
-77

query I rowsort
SELECT + 17 - + 17 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5405
SELECT - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) + + SUM( DISTINCT + ( 34 ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5405
SELECT - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + SUM ( DISTINCT + ( 34 ) ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5406
SELECT DISTINCT - 59 DIV col2 FROM tab2 WHERE + col1 IS NOT NULL
----
-1
-2

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT - 59 / col2 FROM tab2 WHERE + col1 IS NOT NULL
----
-1
-2

query I rowsort
SELECT + col0 + - 23 AS col1 FROM tab1
----
28
62
68

query III rowsort
SELECT ALL * FROM tab1 WHERE 10 * 93 + - col2 * + 46 > - col2 / col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT DISTINCT - COUNT( * ) + SUM( col2 ) FROM tab1
----
220

skipif mysql # not compatible
query I rowsort label-5409
SELECT DISTINCT - COUNT ( * ) + SUM ( col2 ) FROM tab1
----
220

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5411
SELECT - CAST( col1 AS SIGNED ) AS col0 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5411
SELECT - CAST ( col1 AS INTEGER ) AS col0 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT DISTINCT + 6 * - COUNT( * ) AS col2 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT + 6 * - COUNT ( * ) AS col2 FROM tab1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5413
SELECT ALL CAST( col2 AS SIGNED ) * col1 AS col1 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-5413
SELECT ALL CAST ( col2 AS INTEGER ) * col1 AS col1 FROM tab1
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-5414
SELECT 95 - + 53 DIV - col1 AS col2 FROM tab1
----
105
96
98

skipif mysql # not compatible
query I rowsort label-5414
SELECT 95 - + 53 / - col1 AS col2 FROM tab1
----
105
96
98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NOT NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5416
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT NULL <> ( NULL )
----
0

query I rowsort
SELECT - col2 * - col2 FROM tab1 WHERE NOT col2 * - col1 + - 18 * + col1 NOT BETWEEN NULL AND ( + ( col1 ) + + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5418
SELECT COUNT( * ) * 93 + 47 DIV 55 FROM tab2 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-5418
SELECT COUNT ( * ) * 93 + 47 / 55 FROM tab2 AS cor0
----
279

query I rowsort
SELECT 42 * col0 + col1 FROM tab1 AS cor0
----
2156
3575
3869

query I rowsort
SELECT DISTINCT 90 + col0 FROM tab0 AS cor0
----
105
177
187

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT ALL MIN( ALL 5 ) AS col2 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5421
SELECT ALL MIN ( ALL 5 ) AS col2 FROM tab2 AS cor0
----
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 8 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT DISTINCT COUNT( * ) + COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-5423
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2
----
6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5425
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 CROSS JOIN tab2
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5425
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 CROSS JOIN tab2
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT ALL - 5 + + COUNT( * ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL - 5 + + COUNT ( * ) FROM tab0 AS cor0
----
-2

query I rowsort
SELECT 95 * + 84 FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT + + ( + COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5429
SELECT + + ( + COUNT ( * ) ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5430
SELECT col1 DIV - 69 - + 46 FROM tab0 AS cor0
----
-46
-46
-47

skipif mysql # not compatible
query I rowsort label-5430
SELECT col1 / - 69 - + 46 FROM tab0 AS cor0
----
-46
-46
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT ALL - COUNT( * ) + + 65 FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-5431
SELECT ALL - COUNT ( * ) + + 65 FROM tab2 AS cor0
----
62

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE - col2 - + 15 IS NULL
----

query I rowsort
SELECT + - col0 * - col1 - + 68 FROM tab1 AS cor0
----
357
4209
646

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - 54 col0 FROM tab1 AS cor0
----
-3
31
37

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE ( + col0 ) IN ( 71 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT ( - 76 ) - COUNT( * ) FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-5436
SELECT ( - 76 ) - COUNT ( * ) FROM tab2 AS cor0
----
-79

query I rowsort
SELECT 56 - - 36 AS col0 FROM tab2 AS cor0
----
92
92
92

query I rowsort
SELECT DISTINCT + col1 - - ( + col2 ) * col0 FROM tab0 AS cor0
----
786
891
9604

query I rowsort
SELECT - 58 FROM tab0 AS cor0 WHERE NOT col2 >= - col0 * col1 - + 99
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN ( col2 * col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT ALL MIN( ALL col0 ) FROM tab2 WHERE NULL BETWEEN 74 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5441
SELECT ALL MIN ( ALL col0 ) FROM tab2 WHERE NULL BETWEEN 74 AND NULL
----
NULL

query I rowsort
SELECT DISTINCT 69 FROM tab0 WHERE col2 * - 93 IS NOT NULL
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5443
SELECT DISTINCT - 1 DIV + + 45 DIV COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5443
SELECT DISTINCT - 1 / + + 45 / COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE NOT ( NULL ) IN ( - ( + col1 ) * col2 )
----

query I rowsort
SELECT ALL - col0 + - col2 AS col0 FROM tab1 WHERE NULL NOT IN ( - col2 ) OR NULL < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 IN ( 32 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT COUNT( DISTINCT + 30 ) col1 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5447
SELECT COUNT ( DISTINCT + 30 ) col1 FROM tab1
----
1

query I rowsort
SELECT + col2 * - 72 AS col0 FROM tab2
----
-1656
-2880
-4176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5449
SELECT DISTINCT - 89 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT - 89 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 98 col0 FROM tab0 AS cor0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-5451
SELECT + + col2 * 76 DIV col2 AS col2 FROM tab0 AS cor0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-5451
SELECT + + col2 * 76 / col2 AS col2 FROM tab0 AS cor0
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT DISTINCT + COUNT( * ) col0 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5452
SELECT DISTINCT + COUNT ( * ) col0 FROM tab1, tab1 AS cor0
----
9

query I rowsort
SELECT + 83 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query II rowsort
SELECT ALL 78, 31 + - col2 AS col0 FROM tab1
----
78
-28
78
-37
78
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5455
SELECT 30 * COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5455
SELECT 30 * COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT DISTINCT + - ( COUNT( * ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5456
SELECT DISTINCT + - ( COUNT ( * ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

query II rowsort
SELECT - col0, + 1 AS col1 FROM tab1
----
-51
1
-85
1
-91
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5458
SELECT + col1 AS col1, 95 DIV - 5 AS col1 FROM tab2 AS cor0
----
51
-19
67
-19
77
-19

skipif mysql # not compatible
query II rowsort label-5458
SELECT + col1 AS col1, 95 / - 5 AS col1 FROM tab2 AS cor0
----
51
-19
67
-19
77
-19

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 IN ( - col0 * - 24 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 44 + ( - col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-14
21
4

onlyif mysql # aggregate syntax: 
query II rowsort label-5461
SELECT ALL 28 AS col2, 52 * - + 74 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
28
-3851

skipif mysql # not compatible
query II rowsort label-5461
SELECT ALL 28 AS col2, 52 * - + 74 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
28
-3851

query I rowsort
SELECT + - 26 AS col1 FROM tab1 AS cor0 WHERE NOT 74 IS NULL
----
-26
-26
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5463
SELECT 21 + + col1 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( - col1 * - - CAST( - 41 AS SIGNED ) - - 15 * + col1 ) AND 46
----

skipif mysql # not compatible
query I rowsort label-5463
SELECT 21 + + col1 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( - col1 * - - CAST ( - 41 AS INTEGER ) - - 15 * + col1 ) AND 46
----

query II rowsort
SELECT DISTINCT + - col0 AS col0, + 64 + col1 FROM tab0 AS cor0
----
-15
145
-87
85
-97
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT ALL - COUNT( + col2 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5465
SELECT ALL - COUNT ( + col2 ) AS col0 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 63 * - - col0 * + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 + + 58 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 38 * + + col1 + - col1 * 1 - + col2 FROM tab2
----
-2012
-2671
-3043

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT - 15 + - MAX( col2 ) AS col0 FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-5469
SELECT - 15 + - MAX ( col2 ) AS col0 FROM tab0
----
-114

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 82 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col0 IN ( col0 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT + 94 + + MIN( ALL - 41 ) FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-5472
SELECT + 94 + + MIN ( ALL - 41 ) FROM tab0
----
53

query I rowsort
SELECT ALL - 55 + + - 2 AS col0 FROM tab1
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT 86 + COUNT( * ) AS col2 FROM tab0 WHERE - - col2 NOT IN ( col1 * col0 + col2 * - col1 )
----
89

skipif mysql # not compatible
query I rowsort label-5474
SELECT 86 + COUNT ( * ) AS col2 FROM tab0 WHERE - - col2 NOT IN ( col1 * col0 + col2 * - col1 )
----
89

query I rowsort
SELECT DISTINCT + col1 * + + col2 + + - col1 FROM tab0 AS cor0
----
189
3726
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5476
SELECT ALL - MAX( col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( col0 * + CAST( NULL AS SIGNED ) ) <= col1 * col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5476
SELECT ALL - MAX ( col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( col0 * + CAST ( NULL AS INTEGER ) ) <= col1 * col1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 16 / - 24 / - col2 + col2 )
----

query I rowsort
SELECT DISTINCT + 54 FROM tab2 AS cor0 WHERE NOT 28 * - col2 + 18 IS NOT NULL
----

query I rowsort
SELECT ALL + 71 * + col2 - - ( 52 ) FROM tab0 cor0
----
3389
7081
762

query I rowsort
SELECT ALL + col1 * + + col1 FROM tab1
----
196
2209
25

query I rowsort
SELECT DISTINCT 0 * - col0 FROM tab1
----
0

query I rowsort
SELECT ALL - AVG ( ALL - ( - 12 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT + 51 NOT BETWEEN - col2 / 31 AND NULL
----
NULL

query I rowsort
SELECT ALL - + col0 + - 20 * - - col2 * - col0 - + + 3 * 71 FROM tab1 AS cor0
----
100002
123456
97656

query I rowsort
SELECT ALL + col2 + + col1 + - - col2 AS col2 FROM tab1 AS cor0
----
123
183
206

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NULL >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - ( - - col0 ) - + - col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5486
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - ( - - col0 ) - + - col0 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT DISTINCT + - SUM( ALL col0 ) FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT + - SUM ( ALL col0 ) FROM tab0 cor0
----
-199

query I rowsort
SELECT ( - 9 ) + col0 * col0 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 <> + col1 + - 96 + col0
----

query I rowsort
SELECT DISTINCT - col0 * + + 89 + - + col2 * ( + + col2 ) * - col0 FROM tab2 AS cor0
----
20240
245625
96704

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5491
SELECT DISTINCT - - ( CAST( NULL AS SIGNED ) ) * + ( - + col2 ) * - + 54 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5491
SELECT DISTINCT - - ( CAST ( NULL AS INTEGER ) ) * + ( - + col2 ) * - + 54 AS col0 FROM tab1 cor0
----
NULL

query II rowsort
SELECT col2, + col0 FROM tab1
----
59
85
68
91
96
51

query I rowsort
SELECT 92 * col2 AS col0 FROM tab2
----
2116
3680
5336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5494
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) DIV + 59 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) / + 59 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 45 AS col0, - col0 col1 FROM tab0
----
45
-15
45
-87
45
-97

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 NOT IN ( + + col1, 37 * + - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5497
SELECT DISTINCT + COUNT( * ) DIV + 39 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5497
SELECT DISTINCT + COUNT ( * ) / + 39 AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5498
SELECT CAST( NULL AS SIGNED ) - - col1 FROM tab2 WHERE NOT - col0 - + col1 IN ( col1 + - col2 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5498
SELECT CAST ( NULL AS INTEGER ) - - col1 FROM tab2 WHERE NOT - col0 - + col1 IN ( col1 + - col2 )
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5499
SELECT ALL col1 AS col0, 71 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-5499
SELECT ALL col1 AS col0, 71 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT ALL + + col1 FROM tab0 WHERE NULL NOT BETWEEN - col0 + + + col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL < ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5502
SELECT ALL - + MIN( col2 ) * 84 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL - + MIN ( col2 ) * 84 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + 74 + 31 NOT IN ( - col0 )
----

query I rowsort
SELECT - col0 + + 31 AS col2 FROM tab1 AS cor0
----
-20
-54
-60

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL IN ( + col0 * + col2 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5506
SELECT CAST( - + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5506
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT + + COUNT( * ) * + SUM( - col0 ) AS col0 FROM tab1 AS cor0
----
-681

skipif mysql # not compatible
query I rowsort label-5507
SELECT + + COUNT ( * ) * + SUM ( - col0 ) AS col0 FROM tab1 AS cor0
----
-681

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5508
SELECT - CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5508
SELECT - CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5509
SELECT - 69 DIV + col0 col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5509
SELECT - 69 / + col0 col1 FROM tab1 AS cor0
----
-1
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( + + 49 ) AND 35 + - col0 * 68
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 IN ( - col0 / - - 24 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT ALL COUNT( * ) + COUNT( * ) * - + 81 FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL COUNT ( * ) + COUNT ( * ) * - + 81 FROM tab1
----
-240

query II rowsort
SELECT ALL + col2 AS col0, - 78 FROM tab2
----
23
-78
40
-78
58
-78

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE + col1 + + col0 IS NOT NULL
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 + - col1 NOT IN ( col0, - col2 + col1 * - 41 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5516
SELECT ALL 97 FROM tab0 WHERE - - 69 BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL 97 FROM tab0 WHERE - - 69 BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col0 * - 41 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT DISTINCT - COUNT( * ) + - + 4 FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-5518
SELECT DISTINCT - COUNT ( * ) + - + 4 FROM tab2
----
-7

query I rowsort
SELECT - 13 - + col0 - col2 + + 41 AS col0 FROM tab2
----
-105
-41
-76

query I rowsort
SELECT - - 10 + - 58 FROM tab2 AS cor0
----
-48
-48
-48

query I rowsort
SELECT 77 + + col0 AS col0 FROM tab0 cor0
----
164
174
92

query I rowsort
SELECT DISTINCT + - col0 + - 45 * - 13 * - + col0 AS col0 FROM tab2 AS cor0
----
-26956
-37504
-43950

query I rowsort
SELECT ALL + - 20 FROM tab0 AS cor0
----
-20
-20
-20

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT col1 * 12 * + + col0 FROM tab1
----
5100
51324
8568

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT - COUNT( ( + col2 ) ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5526
SELECT - COUNT ( ( + col2 ) ) AS col0 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5527
SELECT DISTINCT 36 * - + CAST( COUNT( + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT 36 * - + CAST ( COUNT ( + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-108

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5529
SELECT + COUNT( * ), COUNT( - col1 ) AS col2 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-5529
SELECT + COUNT ( * ), COUNT ( - col1 ) AS col2 FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT ALL ( + - COUNT( * ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL ( + - COUNT ( * ) ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT - SUM( DISTINCT - - col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-5531
SELECT - SUM ( DISTINCT - - col0 ) FROM tab2
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5532
SELECT - CAST( NULL AS SIGNED ) AS col1, - 6 FROM tab1
----
NULL
-6
NULL
-6
NULL
-6

skipif mysql # not compatible
query II rowsort label-5532
SELECT - CAST ( NULL AS INTEGER ) AS col1, - 6 FROM tab1
----
NULL
-6
NULL
-6
NULL
-6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 + - col2 AND - - 59
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 5 col0 FROM tab0 cor0
----
5

query I rowsort
SELECT DISTINCT 82 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col0, + col0 col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT SUM( - + 8 ) FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-5537
SELECT SUM ( - + 8 ) FROM tab2 AS cor0
----
-24

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT DISTINCT - SUM( + - 97 ) + + + COUNT( * ) * + + 50 AS col0 FROM tab0 AS cor0
----
441

skipif mysql # not compatible
query I rowsort label-5539
SELECT DISTINCT - SUM ( + - 97 ) + + + COUNT ( * ) * + + 50 AS col0 FROM tab0 AS cor0
----
441

query II rowsort
SELECT DISTINCT col2, + 37 AS col0 FROM tab2 AS cor0
----
23
37
40
37
58
37

query I rowsort
SELECT ALL - + ( + + col1 ) FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT + 37 + + - COUNT( ALL + col2 ) AS col2 FROM tab2 cor0
----
34

skipif mysql # not compatible
query I rowsort label-5542
SELECT + 37 + + - COUNT ( ALL + col2 ) AS col2 FROM tab2 cor0
----
34

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 21 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5545
SELECT + 41 + + + col0 + + col1 DIV col0 FROM tab2
----
106
116
88

skipif mysql # not compatible
query I rowsort label-5545
SELECT + 41 + + + col0 + + col1 / col0 FROM tab2
----
106
116
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5546
SELECT ALL COUNT( CAST( + 41 AS SIGNED ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL COUNT ( CAST ( + 41 AS INTEGER ) ) AS col2 FROM tab1
----
3

query II rowsort
SELECT DISTINCT + 46 + + 51 AS col1, 79 AS col1 FROM tab0
----
97
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5548
SELECT CAST( 27 AS SIGNED ) AS col2, - COUNT( * ) AS col2 FROM tab2
----
27
-3

skipif mysql # not compatible
query II rowsort label-5548
SELECT CAST ( 27 AS INTEGER ) AS col2, - COUNT ( * ) AS col2 FROM tab2
----
27
-3

query I rowsort
SELECT ALL - 89 - + + col2 FROM tab1 AS cor0
----
-148
-157
-185

query I rowsort
SELECT ALL + - 32 - + + 55 AS col0 FROM tab0 cor0
----
-87
-87
-87

query I rowsort
SELECT + col0 - - col0 + - 55 * + - col1 * - - 77 AS col0 FROM tab2 AS cor0
----
216077
283895
326223

query I rowsort
SELECT ALL - ( - col2 ) - - col1 + - - col2 AS col1 FROM tab2 AS cor0
----
157
183
97

query I rowsort
SELECT ALL - 61 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT + ( + - col0 ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5555
SELECT DISTINCT - ( - 26 ) + - col0, - col0 AS col2 FROM tab0 AS cor0 WHERE col0 * + col1 * - + CAST( NULL AS SIGNED ) + 8 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-5555
SELECT DISTINCT - ( - 26 ) + - col0, - col0 AS col2 FROM tab0 AS cor0 WHERE col0 * + col1 * - + CAST ( NULL AS INTEGER ) + 8 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5556
SELECT ALL + MIN( DISTINCT + 42 ) AS col2, + 89 FROM tab2
----
42
89

skipif mysql # not compatible
query II rowsort label-5556
SELECT ALL + MIN ( DISTINCT + 42 ) AS col2, + 89 FROM tab2
----
42
89

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5558
SELECT + CAST( - col2 AS SIGNED ) AS col1, + col0 DIV + + 89 - + col1 FROM tab1
----
-59
-5
-68
-46
-96
-14

skipif mysql # not compatible
query II rowsort label-5558
SELECT + CAST ( - col2 AS INTEGER ) AS col1, + col0 / + + 89 - + col1 FROM tab1
----
-59
-5
-68
-46
-96
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT MAX( DISTINCT - + 32 ) AS col1 FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-5559
SELECT MAX ( DISTINCT - + 32 ) AS col1 FROM tab1
----
-32

query I rowsort
SELECT ALL + ( + ( + col0 ) ) FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT ALL - ( - COUNT( * ) ) * + COUNT( DISTINCT col2 ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5561
SELECT ALL - ( - COUNT ( * ) ) * + COUNT ( DISTINCT col2 ) AS col2 FROM tab2
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT 62 * col2 < + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - ( - ( 5 ) ) AS col2 FROM tab1 AS cor0
----
-5
-5
-5

query I rowsort
SELECT - col0 * + 1 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5565
SELECT DISTINCT - ( - 25 ) + + COUNT( * ) DIV + - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
24

skipif mysql # not compatible
query I rowsort label-5565
SELECT DISTINCT - ( - 25 ) + + COUNT ( * ) / + - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT DISTINCT ( MAX( DISTINCT 52 ) ) FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT ( MAX ( DISTINCT 52 ) ) FROM tab0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5567
SELECT + CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5567
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT + - MIN( + 36 ) * + SUM( 63 ) + + 98 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-20314

skipif mysql # not compatible
query I rowsort label-5568
SELECT + - MIN ( + 36 ) * + SUM ( 63 ) + + 98 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-20314

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT ALL + SUM( + col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-5570
SELECT ALL + SUM ( + col2 ) AS col1 FROM tab1 AS cor0
----
223

onlyif mysql # DIV for integer division: 
query II rowsort label-5571
SELECT + col1 * + col2 + - + 33 AS col1, 89 DIV 23 FROM tab0 AS cor0
----
177
3
3774
3
66
3

skipif mysql # not compatible
query II rowsort label-5571
SELECT + col1 * + col2 + - + 33 AS col1, 89 / 23 FROM tab0 AS cor0
----
177
3
3774
3
66
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5572
SELECT - - col0 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5572
SELECT - - col0 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5573
SELECT + CAST( - col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5573
SELECT + CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 / + col0 IS NULL
----

query I rowsort
SELECT ALL 36 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT ALL - MIN( + 91 ) - 7 * + + 18 AS col0 FROM tab0 AS cor0
----
-217

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL - MIN ( + 91 ) - 7 * + + 18 AS col0 FROM tab0 AS cor0
----
-217

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) - + - 14 col1 FROM tab1
----
110
73
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col2, col1 col2 FROM tab1
----
51
14
85
5
91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - - col0 col1 FROM tab0
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 * + col1 + + col2 col2 FROM tab2
----
-119623
-336617
-379416

query I rowsort
SELECT 18 + - 73 AS col0 FROM tab0
----
-55
-55
-55

query III rowsort
SELECT col2 + - - col1, col1 * - col1 AS col0, + 29 AS col0 FROM tab0
----
9 values hashing to ae902d03c41eedfdd4ae7481298057d0

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT + col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + col1 ) + + + 28 FROM tab1 AS cor0
----
-19
14
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5585
SELECT ALL CAST( - 80 AS SIGNED ) - + col2 FROM tab2 AS cor0
----
-103
-120
-138

skipif mysql # not compatible
query I rowsort label-5585
SELECT ALL CAST ( - 80 AS INTEGER ) - + col2 FROM tab2 AS cor0
----
-103
-120
-138

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE - 24 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT ALL - SUM( + col0 ) AS col0 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-5587
SELECT ALL - SUM ( + col0 ) AS col0 FROM tab0
----
-199

query I rowsort
SELECT + ( - 94 ) AS col0 FROM tab0 AS cor0
----
-94
-94
-94

query I rowsort
SELECT + + col2 * 82 FROM tab2 AS cor0
----
1886
3280
4756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5590
SELECT - 49 * - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
2303
4851
490

skipif mysql # not compatible
query I rowsort label-5590
SELECT - 49 * - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
2303
4851
490

query I rowsort
SELECT ALL 16 * + + ( + 24 ) + + 81 * col2 FROM tab1 AS cor0
----
5163
5892
8160

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 38 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT ALL + - MIN( + col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-5594
SELECT ALL + - MIN ( + col0 ) FROM tab2 AS cor0
----
-46

query II rowsort
SELECT 7 + - + 11 AS col1, 93 AS col0 FROM tab0, tab2 AS cor0
----
18 values hashing to 613457beb0b7212150a2a61e77599b2a

query I rowsort
SELECT DISTINCT col1 * col2 AS col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 * - + col1 + col0 + + 8 + - col0 * - col2 AS col0 FROM tab1
----
3091
3611
4813

query I rowsort
SELECT ALL + ( - 59 ) AS col0 FROM tab2
----
-59
-59
-59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN - 82 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5600
SELECT + + CAST( + 37 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-5600
SELECT + + CAST ( + 37 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
37
37
37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 - ( + 89 ) * - 91 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT DISTINCT + COUNT( * ) + + + MIN( - - col2 ) + + 28 col1 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5602
SELECT DISTINCT + COUNT ( * ) + + + MIN ( - - col2 ) + + 28 col1 FROM tab2 AS cor0
----
54

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 + col2 IS NULL
----

query I rowsort
SELECT + - col0 FROM tab0 WHERE NULL <> - 11
----

query I rowsort
SELECT - col0 - - 21 AS col1 FROM tab2
----
-25
-43
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5606
SELECT - SUM( 76 ) - - - CAST( + ( CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5606
SELECT - SUM ( 76 ) - - - CAST ( + ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5607
SELECT - col0 + - 89, col1 DIV - - col0 AS col1 FROM tab0
----
-104
5
-176
0
-186
0

skipif mysql # not compatible
query II rowsort label-5607
SELECT - col0 + - 89, col1 / - - col0 AS col1 FROM tab0
----
-104
5
-176
0
-186
0

query I rowsort
SELECT DISTINCT + col0 + + - col0 + + col2 * + col1 FROM tab1 cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT ALL + COUNT( * ) - - COUNT( * ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL + COUNT ( * ) - - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
12

query I rowsort
SELECT ALL - + 23 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-23
-23
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 58 col1 FROM tab0
----
145
155
73

query I rowsort
SELECT col2 * + ( 3 ) * - + 98 FROM tab2
----
-11760
-17052
-6762

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5613
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5614
SELECT 1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5614
SELECT 1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5615
SELECT COUNT( * ) / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5615
SELECT COUNT ( * ) / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5616
SELECT ALL col1 DIV 22 * - col2 FROM tab1
----
-136
0
0

skipif mysql # not compatible
query I rowsort label-5616
SELECT ALL col1 / 22 * - col2 FROM tab1
----
-136
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT ALL - SUM( ALL + col1 ) * 97 + 16 FROM tab0
----
-9975

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL - SUM ( ALL + col1 ) * 97 + 16 FROM tab0
----
-9975

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col1 + col0 IS NOT NULL
----

query I rowsort
SELECT 49 * + col0 AS col1 FROM tab1
----
2499
4165
4459

query I rowsort
SELECT ALL 15 * col0 * - + 75 AS col0 FROM tab0
----
-109125
-16875
-97875

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT DISTINCT MAX( ALL + - 52 ) AS col1 FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-5621
SELECT DISTINCT MAX ( ALL + - 52 ) AS col1 FROM tab2
----
-52

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 * + - col0 col0 FROM tab2 AS cor0
----
-3266
-4544
-5325

query I rowsort
SELECT + + 97 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5625
SELECT DISTINCT - COUNT( * ) col1, - COUNT( col0 ) * - + CAST( NULL AS SIGNED ) + 57 AS col2 FROM tab1
----
-3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5625
SELECT DISTINCT - COUNT ( * ) col1, - COUNT ( col0 ) * - + CAST ( NULL AS INTEGER ) + 57 AS col2 FROM tab1
----
-3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 22 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT DISTINCT + - MIN( ALL - - col2 ) AS col1 FROM tab0 WHERE NOT NULL >= - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5627
SELECT DISTINCT + - MIN ( ALL - - col2 ) AS col1 FROM tab0 WHERE NOT NULL >= - col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5628
SELECT ALL - - CAST( NULL AS SIGNED ), col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-5628
SELECT ALL - - CAST ( NULL AS INTEGER ), col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 37 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5630
SELECT ALL - MIN( ALL - 2 ), + 67 AS col1 FROM tab1 AS cor0
----
2
67

skipif mysql # not compatible
query II rowsort label-5630
SELECT ALL - MIN ( ALL - 2 ), + 67 AS col1 FROM tab1 AS co