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 cor0
----
2
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5631
SELECT col2 * col1 * - 62 + + col1 DIV col2 * ( - - col2 ) FROM tab1 cor0
----
-18290
-198152
-83328

skipif mysql # not compatible
query I rowsort label-5631
SELECT col2 * col1 * - 62 + + col1 / col2 * ( - - col2 ) FROM tab1 cor0
----
-18290
-198152
-83328

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT MIN( DISTINCT col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-5635
SELECT MIN ( DISTINCT col1 ) AS col1 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT ALL + SUM( + 57 ) FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL + SUM ( + 57 ) FROM tab2
----
171

query I rowsort
SELECT ALL - + col1 + - 13 + col1 FROM tab1 WHERE col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 18 BETWEEN - ( - + col2 ) AND + + 82
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5639
SELECT ALL - 3 + + + col0 DIV - + 21 AS col2 FROM tab0
----
-3
-7
-7

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL - 3 + + + col0 / - + 21 AS col2 FROM tab0
----
-3
-7
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5640
SELECT 40 DIV + - MAX( ALL + col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5640
SELECT 40 / + - MAX ( ALL + col0 ) FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5641
SELECT ALL 21 DIV - 94 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL 21 / - 94 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + - 90 + col1 * + 22 AS col2 FROM tab2
----
1083
1451
1681

query I rowsort
SELECT - + col0 * - col1 * + col1 AS col2 FROM tab0 AS cor0
----
38367
97
98415

query I rowsort
SELECT - - col0 + + 19 AS col0 FROM tab1 AS cor0
----
104
110
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT - SUM( ALL - 84 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
756

skipif mysql # not compatible
query I rowsort label-5645
SELECT - SUM ( ALL - 84 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5646
SELECT DISTINCT CAST( NULL AS SIGNED ) / + - ( - - CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NOT NULL NOT IN ( + + 95 * - col1 / + 32 * + col0, col1 * - col0 - - 24 )
----

skipif mysql # not compatible
query I rowsort label-5646
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + - ( - - CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NOT NULL NOT IN ( + + 95 * - col1 / + 32 * + col0, col1 * - col0 - - 24 )
----

query I rowsort
SELECT ALL ( - col0 ) + - col1 AS col2 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT DISTINCT + + col2 + + col0 * - col2 FROM tab2 AS cor0
----
-1035
-2520
-4292

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

query I rowsort
SELECT DISTINCT - col0 - + 87 AS col0 FROM tab0 AS cor0
----
-102
-174
-184

query I rowsort
SELECT - + 26 AS col1 FROM tab2 AS cor0
----
-26
-26
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-5652
SELECT ALL col1 + + col2 + + + 69 DIV - - col0 AS col1 FROM tab1 AS cor0
----
111
115
64

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL col1 + + col2 + + + 69 / - - col0 AS col1 FROM tab1 AS cor0
----
111
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT + SUM( 57 ) FROM tab0 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-5653
SELECT + SUM ( 57 ) FROM tab0 AS cor0
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT 6 - - ( COUNT( * ) ) col0 FROM tab0 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5654
SELECT 6 - - ( COUNT ( * ) ) col0 FROM tab0 cor0
----
9

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

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

query I rowsort
SELECT - 1 * + 51 - col2 AS col1 FROM tab2 AS cor0
----
-109
-74
-91

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 * - col0 + - col1 + - 61 col0 FROM tab2 cor0
----
107804
315254
376747

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5664
SELECT + 51 * + + COUNT( + 11 ) + AVG ( DISTINCT - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) + 77 * - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5664
SELECT + 51 * + + COUNT ( + 11 ) + AVG ( DISTINCT - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) + 77 * - COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5665
SELECT 48 DIV - - 91 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5665
SELECT 48 / - - 91 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 30 * col1 * - 55 + 31 AS col2 FROM tab2 AS cor0
----
-110519
-127019
-84119

query I rowsort
SELECT col0 * - 32 FROM tab2
----
-1472
-2048
-2400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5668
SELECT DISTINCT CAST( 16 AS SIGNED ) AS col1 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-5668
SELECT DISTINCT CAST ( 16 AS INTEGER ) AS col1 FROM tab1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5669
SELECT ALL + col0 + 35 * - 95 * - ( + CAST( - ( - 19 ) AS SIGNED ) ) / CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT - 77 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL + col0 + 35 * - 95 * - ( + CAST ( - ( - 19 ) AS INTEGER ) ) / CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT - 77 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT - COUNT( * ) * SUM( col2 ) AS col2 FROM tab1 AS cor0
----
-669

skipif mysql # not compatible
query I rowsort label-5670
SELECT - COUNT ( * ) * SUM ( col2 ) AS col2 FROM tab1 AS cor0
----
-669

query I rowsort
SELECT ALL col0 * 72 AS col0 FROM tab0 AS cor0
----
1080
6264
6984

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5674
SELECT DISTINCT - + 61 DIV + 76 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5674
SELECT DISTINCT - + 61 / + 76 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 44 * - - col1 AS col0 FROM tab2 AS cor0
----
2244
2948
3388

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

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

query I rowsort
SELECT ALL - + ( ( - + col2 ) ) * + + col2 + - col2 + - col2 AS col1 FROM tab0 WHERE NOT + + col1 = NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT DISTINCT ( - + COUNT( * ) ) + 46 + + - MIN( ALL col1 ) AS col0 FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-5680
SELECT DISTINCT ( - + COUNT ( * ) ) + 46 + + - MIN ( ALL col1 ) AS col0 FROM tab1
----
38

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

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

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

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

query I rowsort
SELECT ALL + col0 * col0 FROM tab2 WHERE col1 IS NOT NULL
----
2116
4096
5625

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

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

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE NOT col1 = - ( - 35 )
----
23
40
58

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

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-5691
SELECT ALL CAST ( col1 AS INTEGER ), 68 AS col1 FROM tab1
----
14
68
47
68
5
68

query I rowsort
SELECT ALL col0 * 39 + + + col2 FROM tab0 AS cor0
----
3403
3882
632

query I rowsort
SELECT - 53 + + - col1 AS col1 FROM tab0 AS cor0
----
-134
-54
-74

query I rowsort
SELECT ALL + col2 + - ( - 1 ) + + 97 FROM tab1 AS cor0
----
157
166
194

onlyif mysql # aggregate syntax: 
query II rowsort label-5695
SELECT COUNT( - + col0 ) AS col0, 1 AS col2 FROM tab2 cor0
----
3
1

skipif mysql # not compatible
query II rowsort label-5695
SELECT COUNT ( - + col0 ) AS col0, 1 AS col2 FROM tab2 cor0
----
3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT DISTINCT - MAX( - + col1 ) * - 83 FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-5696
SELECT DISTINCT - MAX ( - + col1 ) * - 83 FROM tab0 AS cor0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5697
SELECT DISTINCT CAST( NULL AS SIGNED ), 9 col0 FROM tab0
----
NULL
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5697
SELECT DISTINCT CAST ( NULL AS INTEGER ), 9 col0 FROM tab0
----
NULL
9

query I rowsort
SELECT ALL + ( 76 ) FROM tab0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT ALL - SUM( ALL + col0 ) col0 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5699
SELECT ALL - SUM ( ALL + col0 ) col0 FROM tab1
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5700
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 + - - col2 * col1 BETWEEN col2 / 2 * - col2 * col1 + - + col1 AND CAST( NULL AS SIGNED ) * - - col2 * + col2
----

skipif mysql # not compatible
query III rowsort label-5700
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 + - - col2 * col1 BETWEEN col2 / 2 * - col2 * col1 + - + col1 AND CAST ( NULL AS INTEGER ) * - - col2 * + col2
----

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

query I rowsort
SELECT col0 + - + col0 * + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-690
-783
-9506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5703
SELECT DISTINCT - COUNT( + CAST( - + col1 AS SIGNED ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5703
SELECT DISTINCT - COUNT ( + CAST ( - + col1 AS INTEGER ) ) FROM tab0
----
-3

query I rowsort
SELECT 18 + + 61 AS col1 FROM tab2
----
79
79
79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT DISTINCT - COUNT( * ) + - + MIN( ALL - 68 ) FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-5706
SELECT DISTINCT - COUNT ( * ) + - + MIN ( ALL - 68 ) FROM tab2 AS cor0
----
65

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

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

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

query II rowsort
SELECT col1, col0 FROM tab0 AS cor0 WHERE + 50 BETWEEN NULL AND + col2
----

query I rowsort
SELECT 19 * - + 17 AS col2 FROM tab2 AS cor0 WHERE col1 / + - col0 * + col0 IS NOT NULL
----
-323
-323
-323

onlyif mysql # DIV for integer division: 
query II rowsort label-5711
SELECT DISTINCT - - 90 DIV + - 69, - col1 col2 FROM tab0 AS cor0
----
-1
-1
-1
-21
-1
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5711
SELECT DISTINCT - - 90 / + - 69, - col1 col2 FROM tab0 AS cor0
----
-1
-1
-1
-21
-1
-81

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 26 = + 69 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 43 * 47 FROM tab2 AS cor0
----
-2021
-2021
-2021

onlyif mysql # aggregate syntax: 
query II rowsort label-5714
SELECT DISTINCT + COUNT( * ), - SUM( - 94 ) * + - 0 col1 FROM tab1
----
3
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT - COUNT( DISTINCT - 45 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5715
SELECT - COUNT ( DISTINCT - 45 ) AS col2 FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5716
SELECT - col0 DIV + + col1 col2 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5716
SELECT - col0 / + + col1 col2 FROM tab1
----
-1
-17
-3

query I rowsort
SELECT ALL col0 + 10 AS col1 FROM tab2
----
56
74
85

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

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

query I rowsort
SELECT DISTINCT - + 9 * - col0 + 77 FROM tab0 AS cor0
----
212
860
950

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= - col0 * + col1
----

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

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

query II rowsort
SELECT - + col0 + + + col0 - + 97 AS col0, 3 + - col0 FROM tab1 AS cor0
----
-97
-48
-97
-82
-97
-88

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN + 56 * + col2 * col2 - + 69 - - - col2 + + col1 + - ( - col1 ) + + col0 + + - col0 * col1 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT ALL COUNT( * ) + - - 41 + - 80 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-5726
SELECT ALL COUNT ( * ) + - - 41 + - 80 FROM tab1 AS cor0
----
-36

query I rowsort
SELECT - col0 - ( col1 ) AS col1 FROM tab0 AS cor0
----
-108
-96
-98

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5731
SELECT + MIN ( + - col1 ) AS col1 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT ALL 83 AS col2 FROM tab1 AS cor0
----
83
83
83

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

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

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

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

query I rowsort
SELECT DISTINCT + 67 AS col0 FROM tab1
----
67

query II rowsort
SELECT col2 * col0 AS col1, - col1 + - col1 AS col2 FROM tab2
----
1058
-102
2560
-154
4350
-134

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5741
SELECT ALL - col2 * - CAST( + + col0 AS SIGNED ) + 94 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
799
964
9697

skipif mysql # not compatible
query I rowsort label-5741
SELECT ALL - col2 * - CAST ( + + col0 AS INTEGER ) + 94 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
799
964
9697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 73 + col0 col1 FROM tab2 AS cor0
----
3404
4736
5550

query II rowsort
SELECT ALL - 49, 53 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 4dd2ed5fc7c2658dd260cbb7a3123c2e

query I rowsort
SELECT 6 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

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

skipif mysql # not compatible
query I rowsort label-5745
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-5746
SELECT col0 AS col2, col0 DIV - col2 FROM tab2
----
46
-2
64
-1
75
-1

skipif mysql # not compatible
query II rowsort label-5746
SELECT col0 AS col2, col0 / - col2 FROM tab2
----
46
-2
64
-1
75
-1

query I rowsort
SELECT DISTINCT + col2 * + 94 * + 84 FROM tab0
----
371112
781704
78960

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

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

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

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

query I rowsort
SELECT + - 85 + 6 AS col2 FROM tab2 AS cor0
----
-79
-79
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 * col0 col1 FROM tab0
----
658
860
9504

query I rowsort
SELECT 35 + - col1 AS col2 FROM tab2
----
-16
-32
-42

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

skipif mysql # not compatible
query I rowsort label-5754
SELECT DISTINCT SUM ( ALL + col0 ) FROM tab1
----
227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5755
SELECT ALL CAST( NULL AS SIGNED ) * + 96 * + 47 / - COUNT( * ) * 97 + - 12 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL CAST ( NULL AS INTEGER ) * + 96 * + 47 / - COUNT ( * ) * 97 + - 12 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT 76 + + col0 FROM tab2
----
122
140
151

query I rowsort
SELECT ALL + col0 * - col0 * 47 * + col0 FROM tab0
----
-158625
-30949641
-42895631

query I rowsort
SELECT 1 * + col1 FROM tab1
----
14
47
5

query I rowsort
SELECT + + 20 AS col0 FROM tab2 WHERE col1 + + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 88 AS col2 FROM tab2 AS cor0 WHERE NULL <> NULL
----

query II rowsort
SELECT DISTINCT + col1 - col0 AS col1, ( + 75 ) FROM tab1 AS cor0
----
-37
75
-44
75
-80
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5762
SELECT col0 - + col1 DIV - 85 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5762
SELECT col0 - + col1 / - 85 FROM tab2
----
46
64
75

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 75 * + + 9 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT MIN( + 51 ) + COUNT( * ) * - - 43 AS col2 FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-5764
SELECT MIN ( + 51 ) + COUNT ( * ) * - - 43 AS col2 FROM tab2
----
180

query I rowsort
SELECT DISTINCT col1 * + col0 * - col1 + 86 - col1 FROM tab1
----
-200980
-2044
-9924

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT DISTINCT MAX( - col0 ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5767
SELECT DISTINCT MAX ( - col0 ) AS col2 FROM tab0 AS cor0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-5768
SELECT ALL - + col0 DIV col1 + col1 + - col1 DIV - - 58 * + 84 * 16 FROM tab1 AS cor0
----
-12
11
46

skipif mysql # not compatible
query I rowsort label-5768
SELECT ALL - + col0 / col1 + col1 + - col1 / - - 58 * + 84 * 16 FROM tab1 AS cor0
----
-12
11
46

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5771
SELECT DISTINCT MIN ( DISTINCT 3 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT DISTINCT - - col2 * col2 FROM tab0 WHERE NULL NOT IN ( + ( - ( + 86 ) ), col1, + col1 )
----

query II rowsort
SELECT col0, col2 FROM tab1
----
51
96
85
59
91
68

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5775
SELECT 75 * + + COUNT ( - + col0 ) col1 FROM tab0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT ALL - COUNT( * ) * + + 14 AS col1 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-5776
SELECT ALL - COUNT ( * ) * + + 14 AS col1 FROM tab2
----
-42

query I rowsort
SELECT ALL 29 * + 21 FROM tab2
----
609
609
609

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5781
SELECT DISTINCT AVG ( ALL - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5781
SELECT DISTINCT AVG ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN col2 / + col1 AND - col0
----

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5786
SELECT ALL + MIN( DISTINCT - col1 ) DIV + MAX( ALL + - col0 ) + + 91 * + 3 FROM tab2 AS cor0
----
274

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL + MIN ( DISTINCT - col1 ) / + MAX ( ALL + - col0 ) + + 91 * + 3 FROM tab2 AS cor0
----
274

query I rowsort
SELECT + + col1 * col0 * + + col1 AS col2 FROM tab0 AS cor0
----
38367
97
98415

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5788
SELECT + SUM( + col2 ) DIV - ( - + 35 ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-5788
SELECT + SUM ( + col2 ) / - ( - + 35 ) FROM tab0 AS cor0
----
4

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5790
SELECT DISTINCT col0 DIV - col2 FROM tab1 AS cor0 WHERE NOT - col1 > - + 98 * - 87
----
-1
0

skipif mysql # not compatible
query I rowsort label-5790
SELECT DISTINCT col0 / - col2 FROM tab1 AS cor0 WHERE NOT - col1 > - + 98 * - 87
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT DISTINCT 47 * - + MAX( ALL + col0 ) FROM tab0
----
-4559

skipif mysql # not compatible
query I rowsort label-5791
SELECT DISTINCT 47 * - + MAX ( ALL + col0 ) FROM tab0
----
-4559

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

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

query I rowsort
SELECT ALL 52 AS col2 FROM tab1
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT DISTINCT + 31 + COUNT( * ) col2 FROM tab2
----
34

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

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

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

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

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

query I rowsort
SELECT DISTINCT 20 * + 20 AS col1 FROM tab1
----
400

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5799
SELECT 53 + 93 * - + 45 + - - CAST( - + 72 AS SIGNED ) AS col1 FROM tab0
----
-4204
-4204
-4204

skipif mysql # not compatible
query I rowsort label-5799
SELECT 53 + 93 * - + 45 + - - CAST ( - + 72 AS INTEGER ) AS col1 FROM tab0
----
-4204
-4204
-4204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5800
SELECT DISTINCT + - CAST( + + col0 AS SIGNED ) * 26 + + col1 FROM tab1 AS cor0
----
-1312
-2205
-2319

skipif mysql # not compatible
query I rowsort label-5800
SELECT DISTINCT + - CAST ( + + col0 AS INTEGER ) * 26 + + col1 FROM tab1 AS cor0
----
-1312
-2205
-2319

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= - 92
----

query I rowsort
SELECT - + 36 AS col1 FROM tab1 cor0
----
-36
-36
-36

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

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

query I rowsort
SELECT ALL - ( col1 ) * - col2 FROM tab1 AS cor0
----
1344
295
3196

query II rowsort
SELECT ALL + ( 44 ) AS col1, col0 AS col1 FROM tab0 AS cor0
----
44
15
44
87
44
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5807
SELECT ALL + 63 * col1 DIV + + ( col2 ) FROM tab2 AS cor0
----
121
139
72

skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL + 63 * col1 / + + ( col2 ) FROM tab2 AS cor0
----
121
139
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT - MAX( + + col2 ) * 7 AS col2 FROM tab2 AS cor0
----
-406

skipif mysql # not compatible
query I rowsort label-5808
SELECT - MAX ( + + col2 ) * 7 AS col2 FROM tab2 AS cor0
----
-406

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 61 NOT BETWEEN - col1 AND NULL
----

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

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

query I rowsort
SELECT DISTINCT + + col1 * - 84 AS col2 FROM tab0 cor0
----
-1764
-6804
-84

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

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE NOT NULL >= col2
----

query I rowsort
SELECT ALL - col2 * 90 AS col2 FROM tab2
----
-2070
-3600
-5220

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE ( + + 89 ) = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5816
SELECT DISTINCT * FROM tab0 WHERE NOT - + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5816
SELECT DISTINCT * FROM tab0 WHERE NOT - + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5817
SELECT + SUM( CAST( - 63 AS SIGNED ) ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5817
SELECT + SUM ( CAST ( - 63 AS INTEGER ) ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5818
SELECT 91 * - - col2 + - col1 + + - 65 * + - CAST( 82 AS SIGNED ) AS col1 FROM tab0
----
14338
6219
9526

skipif mysql # not compatible
query I rowsort label-5818
SELECT 91 * - - col2 + - col1 + + - 65 * + - CAST ( 82 AS INTEGER ) AS col1 FROM tab0
----
14338
6219
9526

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5819
SELECT DISTINCT * FROM tab0 WHERE + col0 + + + 57 * + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5819
SELECT DISTINCT * FROM tab0 WHERE + col0 + + + 57 * + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5820
SELECT - COUNT( * ) DIV - - SUM( + col1 ) + + COUNT( * ) AS col1 FROM tab0
----
3

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

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

query II rowsort
SELECT 97 * 13 + + - col1 AS col2, - 25 FROM tab0
----
1180
-25
1240
-25
1260
-25

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5824
SELECT ALL - 19 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0 / + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5824
SELECT ALL - 19 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0 / + CAST ( NULL AS INTEGER )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + - col1 col2 FROM tab2 cor0 WHERE NULL BETWEEN ( NULL ) AND - + 79
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 33 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5828
SELECT CAST( NULL AS SIGNED ) * + 23, 32 + 19 + 45 AS col2 FROM tab1
----
NULL
96
NULL
96
NULL
96

skipif mysql # not compatible
query II rowsort label-5828
SELECT CAST ( NULL AS INTEGER ) * + 23, 32 + 19 + 45 AS col2 FROM tab1
----
NULL
96
NULL
96
NULL
96

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

skipif mysql # not compatible
query I rowsort label-5829
SELECT COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
3

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

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

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 + - 16 > NULL
----

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

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

query I rowsort
SELECT - col1 + col0 - + col1 FROM tab1 AS cor0
----
-3
23
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE + col0 <> 78 * + + col2
----
3

skipif mysql # not compatible
query I rowsort label-5836
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE + col0 <> 78 * + + col2
----
3

query I rowsort
SELECT DISTINCT + + col0 * col0 + col1 AS col1 FROM tab2 AS cor0
----
2167
4173
5692

query I rowsort
SELECT + 72 + + col0 FROM tab2 AS cor0
----
118
136
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 - col0 + - col1 col1 FROM tab2
----
1076
2939
3744

query I rowsort
SELECT col1 FROM tab1 WHERE + col1 * + + col0 + + 56 - - col1 IS NULL
----

query II rowsort
SELECT - 10 * - 63 AS col1, - col2 * - - col1 AS col2 FROM tab2
----
630
-1173
630
-3080
630
-3886

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

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

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

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

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

query I rowsort
SELECT ALL - col1 * - + 71 - - col0 + + col1 AS col1 FROM tab0 AS cor0
----
1599
169
5847

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT SUM( DISTINCT + 4 ) + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
13

skipif mysql # not compatible
query I rowsort label-5847
SELECT SUM ( DISTINCT + 4 ) + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
13

query II rowsort
SELECT ALL + col1, + 62 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

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

query II rowsort
SELECT ALL - ( + ( - + 73 ) ) AS col1, + 17 FROM tab1 AS cor0
----
73
17
73
17
73
17

onlyif mysql # DIV for integer division: 
query I rowsort label-5851
SELECT + col2 DIV col2 + + 45 AS col1 FROM tab2 AS cor0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-5851
SELECT + col2 / col2 + + 45 AS col1 FROM tab2 AS cor0
----
46
46
46

query I rowsort
SELECT DISTINCT + - 58 * - + 8 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
464

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5855
SELECT + col0 DIV + - col2 + - - col2 FROM tab2 AS cor0
----
21
39
57

skipif mysql # not compatible
query I rowsort label-5855
SELECT + col0 / + - col2 + - - col2 FROM tab2 AS cor0
----
21
39
57

query I rowsort
SELECT ALL + + col2 * - 69 AS col0 FROM tab2 AS cor0
----
-1587
-2760
-4002

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5858
SELECT COUNT( * ) * + 37 AS col0, MIN( ALL - - ( + - 83 ) ) + 4 AS col1 FROM tab1
----
111
-79

skipif mysql # not compatible
query II rowsort label-5858
SELECT COUNT ( * ) * + 37 AS col0, MIN ( ALL - - ( + - 83 ) ) + 4 AS col1 FROM tab1
----
111
-79

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

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

query I rowsort
SELECT 5 * - col2 AS col1 FROM tab1
----
-295
-340
-480

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5864
SELECT 17 * - - 92, 66 - - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
1564
66

skipif mysql # not compatible
query II rowsort label-5864
SELECT 17 * - - 92, 66 - - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
1564
66

query II rowsort
SELECT ALL + col1 - + col1, col1 FROM tab1 cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT ALL - MAX( ALL col0 ) - 31 col2 FROM tab0 cor0
----
-128

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5866
SELECT ALL - MAX ( ALL col0 ) - 31 col2 FROM tab0 cor0
----
-128

query I rowsort
SELECT DISTINCT - 3 - + col2 FROM tab2 AS cor0
----
-26
-43
-61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT ALL 54 + - MAX( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-5869
SELECT ALL 54 + - MAX ( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
105

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 31 = + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT ALL + - col1 - 67 FROM tab1 AS cor0
----
-114
-72
-81

query I rowsort
SELECT + col1 - + + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT + - 24 * + COUNT( * ) * + + COUNT( * ) - + COUNT( * ) FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-5875
SELECT + - 24 * + COUNT ( * ) * + + COUNT ( * ) - + COUNT ( * ) FROM tab1 AS cor0
----
-219

query I rowsort
SELECT + col0 - - + 16 + 36 AS col2 FROM tab2
----
116
127
98

query II rowsort
SELECT ALL 65 AS col0, + 74 * col1 * - col1 AS col0 FROM tab2
----
65
-192474
65
-332186
65
-438746

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

query II rowsort
SELECT ALL + col1, col2 + + 53 FROM tab0
----
1
152
21
63
81
100

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

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

query I rowsort
SELECT + 75 * col0 AS col0 FROM tab1
----
3825
6375
6825

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

skipif mysql # not compatible
query I rowsort label-5882
SELECT + MAX ( col0 ) FROM tab2 AS cor0
----
75

query II rowsort
SELECT - 19 AS col0, col2 AS col2 FROM tab0 cor0
----
-19
10
-19
47
-19
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5884
SELECT CAST( MAX( + col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5884
SELECT CAST ( MAX ( + col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
47

query II rowsort
SELECT + col2, col1 * 49 FROM tab2 AS cor0
----
23
2499
40
3773
58
3283

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5886
SELECT col2 * 21 * + + col2 * + + CAST( + 21 AS SIGNED ) * - ( - col2 ) AS col1 FROM tab0
----
427901859
441000
45785943

skipif mysql # not compatible
query I rowsort label-5886
SELECT col2 * 21 * + + col2 * + + CAST ( + 21 AS INTEGER ) * - ( - col2 ) AS col1 FROM tab0
----
427901859
441000
45785943

query I rowsort
SELECT ALL - ( - 35 ) AS col2 FROM tab2
----
35
35
35

query I rowsort
SELECT - + col2 * - 37 + - 24 FROM tab1 AS cor0
----
2159
2492
3528

query I rowsort
SELECT DISTINCT - 98 * + - 64 FROM tab2 AS cor0
----
6272

query I rowsort
SELECT DISTINCT - col0 * - - col2 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT + 50 * + + col2 + - - col2 FROM tab2 AS cor0
----
1173
2040
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT DISTINCT COUNT( * ) * + 54 FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-5892
SELECT DISTINCT COUNT ( * ) * + 54 FROM tab1 AS cor0
----
162

query I rowsort
SELECT DISTINCT - - col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

query II rowsort
SELECT ALL + 90 * + - col2 AS col0, - col2 FROM tab1 AS cor0
----
-5310
-59
-6120
-68
-8640
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5895
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = + CAST( 53 AS DECIMAL ) * - - col0
----

skipif mysql # not compatible
query III rowsort label-5895
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = + CAST ( 53 AS REAL ) * - - col0
----

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

query I rowsort
SELECT DISTINCT - col2 * + 86 AS col2 FROM tab2 cor0
----
-1978
-3440
-4988

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5899
SELECT ALL col2 * - 24 + col0 DIV - + col1 AS col2 FROM tab2
----
-1393
-552
-960

skipif mysql # not compatible
query I rowsort label-5899
SELECT ALL col2 * - 24 + col0 / - + col1 AS col2 FROM tab2
----
-1393
-552
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT DISTINCT - COUNT( * ) * 55 + 61 + - + COUNT( - + 10 ) AS col2 FROM tab1 AS cor0
----
-107

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT - COUNT ( * ) * 55 + 61 + - + COUNT ( - + 10 ) AS col2 FROM tab1 AS cor0
----
-107

query II rowsort
SELECT DISTINCT + col2 * 99 + + + 64, + col1 AS col2 FROM tab0 AS cor0
----
1054
21
4717
81
9865
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT ALL - + SUM( - + col0 ) + + + MIN( ALL - + ( - col2 ) ) AS col0 FROM tab1 AS cor0
----
286

skipif mysql # not compatible
query I rowsort label-5902
SELECT ALL - + SUM ( - + col0 ) + + + MIN ( ALL - + ( - col2 ) ) AS col0 FROM tab1 AS cor0
----
286

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 65 >= NULL
----

query I rowsort
SELECT col1 + - 57 FROM tab0 WHERE NULL IS NULL
----
-36
-56
24

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

query I rowsort
SELECT - ( - col2 ) + + col0 * col1 AS col2 FROM tab1
----
4345
484
810

query I rowsort
SELECT col2 FROM tab2 WHERE NOT NULL >= - col2 * + 68
----

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

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 42 * + col2 ) NOT BETWEEN col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT ALL - 2 + + 9 AS col0 FROM tab0
----
7
7
7

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( + col2 - + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 2 col1 FROM tab2
----
102
134
154

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

query I rowsort
SELECT 34 + col1 FROM tab0
----
115
35
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT COUNT( * ) * - 35 FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-5917
SELECT COUNT ( * ) * - 35 FROM tab2
----
-105

query I rowsort
SELECT DISTINCT - 48 AS col0 FROM tab1 WHERE ( NULL ) >= 26
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + col2 + col1 AND ( 96 * + 95 )
----

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

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 <= + 1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 87 * 22 AS col0 FROM tab1
----
-1914
-1914
-1914

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT + COUNT( * ) * - 55 FROM tab2
----
-165

skipif mysql # not compatible
query I rowsort label-5924
SELECT + COUNT ( * ) * - 55 FROM tab2
----
-165

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 col1 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # DIV for integer division: 
query I rowsort label-5928
SELECT ALL - 76 DIV + 49 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5928
SELECT ALL - 76 / + 49 FROM tab1
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5929
SELECT ALL + ( - col1 ) DIV 56 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5929
SELECT ALL + ( - col1 ) / 56 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE - 83 IS NULL
----

query I rowsort
SELECT ALL + 25 AS col1 FROM tab2
----
25
25
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5932
SELECT - CAST( 24 AS SIGNED ) col0 FROM tab2
----
-24
-24
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5932
SELECT - CAST ( 24 AS INTEGER ) col0 FROM tab2
----
-24
-24
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5933
SELECT - CAST( + COUNT( * ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5933
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT COUNT( * ) + - SUM( ALL col0 ) AS col1 FROM tab2 WHERE NOT ( NULL ) < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5934
SELECT COUNT ( * ) + - SUM ( ALL col0 ) AS col1 FROM tab2 WHERE NOT ( NULL ) < ( NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5935
SELECT ALL 49 DIV - ( - col1 * col0 ) + + col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL 49 / - ( - col1 * col0 ) + + col1 FROM tab2
----
51
67
77

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

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

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

query I rowsort
SELECT DISTINCT col1 * 50 FROM tab0 AS cor0 WHERE + 29 IS NULL
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN col0 * 85 AND NULL
----

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-5943
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5944
SELECT DISTINCT 5 * 47 + CAST( - SUM( ALL + 4 ) + COUNT( * ) AS SIGNED ) * 85 FROM tab1 cor0
----
-530

skipif mysql # not compatible
query I rowsort label-5944
SELECT DISTINCT 5 * 47 + CAST ( - SUM ( ALL + 4 ) + COUNT ( * ) AS INTEGER ) * 85 FROM tab1 cor0
----
-530

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

query I rowsort
SELECT ALL - 41 * col0 FROM tab0 AS cor0
----
-3567
-3977
-615

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

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

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

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

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

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 cor0 WHERE NOT ( - col1 ) <= col2 * col0 + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5951
SELECT + - col2 DIV col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5951
SELECT + - col2 / col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE NOT - 69 IS NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5953
SELECT - - 14 DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5953
SELECT - - 14 / col0 AS col2 FROM tab2 AS cor0
----
0
0
0

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

query I rowsort
SELECT ALL 95 + + 12 FROM tab0
----
107
107
107

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

query I rowsort
SELECT ALL + 47 + 48 AS col1 FROM tab0
----
95
95
95

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

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

query I rowsort
SELECT ALL - 54 FROM tab2 AS cor0 WHERE NOT - col1 * 39 - col2 IS NULL
----
-54
-54
-54

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

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

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE 81 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 * 56 * - 73 FROM tab1 AS cor0
----
-241192
-277984
-392448

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT DISTINCT - 69 * + + SUM( DISTINCT col0 ) + COUNT( * ) + 74 AS col2 FROM tab2 AS cor0
----
-12688

skipif mysql # not compatible
query I rowsort label-5963
SELECT DISTINCT - 69 * + + SUM ( DISTINCT col0 ) + COUNT ( * ) + 74 AS col2 FROM tab2 AS cor0
----
-12688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5964
SELECT ALL 24 / + - CAST( NULL AS SIGNED ) - + 81 + ( - COUNT( ALL col0 ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5964
SELECT ALL 24 / + - CAST ( NULL AS INTEGER ) - + 81 + ( - COUNT ( ALL col0 ) ) FROM tab2 AS cor0
----
NULL

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

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

query I rowsort
SELECT ALL 13 FROM tab1 AS cor0 WHERE 18 >= - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5967
SELECT 50 - - col1 DIV + 21 + - col2 AS col2 FROM tab1 AS cor0
----
-16
-46
-9

skipif mysql # not compatible
query I rowsort label-5967
SELECT 50 - - col1 / + 21 + - col2 AS col2 FROM tab1 AS cor0
----
-16
-46
-9

query I rowsort
SELECT DISTINCT - - col0 - ( - 5 ) FROM tab1 AS cor0
----
56
90
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5969
SELECT - + 45 * + - col2 - - + CAST( NULL AS DECIMAL ) 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-5969
SELECT - + 45 * + - col2 - - + CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----

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

query I rowsort
SELECT ( - ( - - col1 ) ) FROM tab2
----
-51
-67
-77

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

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

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

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

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

query I rowsort
SELECT ALL col0 * + - 26 * col1 FROM tab0
----
-2522
-31590
-47502

query I rowsort
SELECT DISTINCT - 47 * col1 FROM tab0
----
-3807
-47
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT COUNT( + ( + ( col0 ) ) ) * - MIN( ALL col0 ) AS col2 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-5979
SELECT COUNT ( + ( + ( col0 ) ) ) * - MIN ( ALL col0 ) AS col2 FROM tab0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-5980
SELECT ALL + 14 DIV - 8 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL + 14 / - 8 AS col1 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - - col2 ) BETWEEN col2 AND col1
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5982
SELECT col1 DIV 37 * + col0 AS col2 FROM tab2
----
128
46
75

skipif mysql # not compatible
query I rowsort label-5982
SELECT col1 / 37 * + col0 AS col2 FROM tab2
----
128
46
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT ALL MAX( DISTINCT 85 ) FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-5984
SELECT ALL MAX ( DISTINCT 85 ) FROM tab1
----
85

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5986
SELECT COUNT ( * ) col0 FROM tab2 cor0
----
3

query I rowsort
SELECT ALL 33 AS col1 FROM tab1 cor0
----
33
33
33

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
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-5989
SELECT DISTINCT + COUNT ( * ) col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 82 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 + - + col1 col0 FROM tab1
----
-17
-50
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT - MIN( DISTINCT ( col2 ) ) FROM tab2 WHERE NOT ( + + col0 ) IN ( - col0 )
----
-23

skipif mysql # not compatible
query I rowsort label-5993
SELECT - MIN ( DISTINCT ( col2 ) ) FROM tab2 WHERE NOT ( + + col0 ) IN ( - col0 )
----
-23

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON + 51 >= NULL WHERE NOT NULL < ( 54 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5995
SELECT + MIN( 15 ) / - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT - - col1 / + col1 - 15 + - col0 IS NULL
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5996
SELECT ALL col2 FROM tab2 WHERE NOT ( - 63 + - 0 + + CAST( NULL AS SIGNED ) / + col2 ) <> ( ( 47 ) ) OR col1 + 33 IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5996
SELECT ALL col2 FROM tab2 WHERE NOT ( - 63 + - 0 + + CAST ( NULL AS INTEGER ) / + col2 ) <> ( ( 47 ) ) OR col1 + 33 IS NOT NULL
----
23
40
58

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5999
SELECT - + col0 col2, + col1 DIV + + col2 FROM tab1 cor0
----
-51
0
-85
0
-91
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5999
SELECT - + col0 col2, + col1 / + + col2 FROM tab1 cor0
----
-51
0
-85
0
-91
0

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL > - 76 * + 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT ALL COUNT( * ) FROM tab1, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-6004
SELECT ALL COUNT ( * ) FROM tab1, tab2 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT DISTINCT - COUNT( ALL col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6005
SELECT DISTINCT - COUNT ( ALL col1 ) FROM tab0
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT ALL - 14 + - COUNT( * ) FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-6007
SELECT ALL - 14 + - COUNT ( * ) FROM tab2
----
-17

onlyif mysql # DIV for integer division: 
query II rowsort label-6008
SELECT ALL 39 AS col1, col1 DIV - ( col0 ) + - 77 FROM tab0 AS cor0
----
39
-77
39
-77
39
-82

skipif mysql # not compatible
query II rowsort label-6008
SELECT ALL 39 AS col1, col1 / - ( col0 ) + - 77 FROM tab0 AS cor0
----
39
-77
39
-77
39
-82

query II rowsort
SELECT DISTINCT 25 * + col1 AS col0, + 42 + + col0 FROM tab1
----
1175
133
125
127
350
93

query I rowsort
SELECT col2 + 65 AS col1 FROM tab0
----
112
164
75

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6012
SELECT DISTINCT - CAST( ( + + col1 ) AS SIGNED ) + - col1 AS col0 FROM tab1
----
-10
-28
-94

skipif mysql # not compatible
query I rowsort label-6012
SELECT DISTINCT - CAST ( ( + + col1 ) AS INTEGER ) + - col1 AS col0 FROM tab1
----
-10
-28
-94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT - COUNT( * ) * - COUNT( + col1 ) - + 68 + - SUM( ALL col2 ) + - + ( 17 ) AS col0 FROM tab0 cor0
----
-232

skipif mysql # not compatible
query I rowsort label-6014
SELECT - COUNT ( * ) * - COUNT ( + col1 ) - + 68 + - SUM ( ALL col2 ) + - + ( 17 ) AS col0 FROM tab0 cor0
----
-232

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 <> ( + col1 * + - 61 * - col2 + + 17 + 61 + + 95 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) * - + 94 + - 51 + - col2 + - + col0 * + - col2 col2 FROM tab2 AS cor0
----
10539
5778
9707

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE ( ( - 49 + - + ( + 90 ) * col0 ) IN ( - col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE ( ( - 49 + - + ( + 90 ) * col0 ) IN ( - col1 ) )
----
0

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

query I rowsort
SELECT ALL 72 * col2 * - - col0 + - 66 FROM tab1 cor0
----
352446
361014
445470

query I rowsort
SELECT - col2 * + 13 AS col2 FROM tab0
----
-1287
-130
-611

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

query I rowsort
SELECT col2 + - 85 FROM tab2 WHERE NOT NULL <> - col2
----

query II rowsort
SELECT 92, col2 FROM tab0
----
92
10
92
47
92
99

query I rowsort
SELECT - col0 * 41 FROM tab2
----
-1886
-2624
-3075

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

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

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

query I rowsort
SELECT DISTINCT + 53 * col0 AS col0 FROM tab1
----
2703
4505
4823

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6029
SELECT DISTINCT + 3 DIV MIN( DISTINCT - col0 ) AS col2, + 71 FROM tab0
----
0
71

skipif mysql # not compatible
query II rowsort label-6029
SELECT DISTINCT + 3 / MIN ( DISTINCT - col0 ) AS col2, + 71 FROM tab0
----
0
71

query I rowsort
SELECT ALL ( - col0 ) * + - col2 + + 33 FROM tab1 AS cor0 WHERE NOT NULL <= - col1
----

query I rowsort
SELECT + 34 * - - col2 AS col1 FROM tab2 cor0
----
1360
1972
782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * - col0 col0 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT + ( - col2 ) = - col0
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6034
SELECT ALL col0 DIV - 52 AS col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6034
SELECT ALL col0 / - 52 AS col1 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT 14 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6036
SELECT CAST( NULL AS SIGNED ) + - AVG ( + 69 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6036
SELECT CAST ( NULL AS INTEGER ) + - AVG ( + 69 ) FROM tab0
----
NULL

query II rowsort
SELECT col0 + col1 AS col0, 76 FROM tab0
----
108
76
96
76
98
76

query I rowsort
SELECT DISTINCT col2 * - col1 + 34 - col1 * + col2 AS col1 FROM tab2
----
-2312
-6126
-7738

query I rowsort
SELECT 41 * - 54 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 75aa5384812d6d2951968cbf77510028

query I rowsort
SELECT col2 * + 96 + - 19 AS col1 FROM tab0
----
4493
941
9485

query I rowsort
SELECT ALL - 54 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT DISTINCT + 33 + COUNT( + col0 ) + - 42 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6042
SELECT DISTINCT + 33 + COUNT ( + col0 ) + - 42 FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT + SUM( + col1 ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-6043
SELECT + SUM ( + col1 ) AS col2 FROM tab1 AS cor0
----
66

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

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

query I rowsort
SELECT DISTINCT + col1 + - 80 + - 31 AS col1 FROM tab1 AS cor0
----
-106
-64
-97

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6051
SELECT DISTINCT + 47 / - col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6052
SELECT col0 * CAST( + 3 AS SIGNED ) AS col2 FROM tab0
----
261
291
45

skipif mysql # not compatible
query I rowsort label-6052
SELECT col0 * CAST ( + 3 AS INTEGER ) AS col2 FROM tab0
----
261
291
45

query I rowsort
SELECT 56 * 28 AS col1 FROM tab1
----
1568
1568
1568

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT COUNT( * ) * - - 69 FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-6054
SELECT COUNT ( * ) * - - 69 FROM tab1
----
207

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6056
SELECT ALL 1 + + COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6056
SELECT ALL 1 + + COUNT ( * ) * + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT 36 + - + 55 FROM tab1
----
-19
-19
-19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( + col2 ) < + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 - col1 + col2 * + 47 col2 FROM tab1 AS cor0
----
2783
3164
4513

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

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

query I rowsort
SELECT DISTINCT ( + - col1 ) - col2 FROM tab0
----
-100
-128
-31

query I rowsort
SELECT DISTINCT + 62 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
62

query II rowsort
SELECT ALL - 14 AS col1, + col1 * - 11 AS col2 FROM tab1
----
-14
-154
-14
-517
-14
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT DISTINCT SUM( + - 6 ) AS col1 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-6064
SELECT DISTINCT SUM ( + - 6 ) AS col1 FROM tab2
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) * - - col0 col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6067
SELECT ALL COUNT( * ), - 4 AS col1 FROM tab1 AS cor0
----
3
-4

skipif mysql # not compatible
query II rowsort label-6067
SELECT ALL COUNT ( * ), - 4 AS col1 FROM tab1 AS cor0
----
3
-4

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

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

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

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

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

query I rowsort
SELECT + 36 * 46 + - col1 FROM tab0 AS cor0
----
1575
1635
1655

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, - 0 AS col0 FROM tab1 AS cor0
----
14
0
47
0
5
0

query I rowsort
SELECT DISTINCT + col2 * - + 27 AS col2 FROM tab1
----
-1593
-1836
-2592

query I rowsort
SELECT DISTINCT + ( - + col1 ) FROM tab0
----
-1
-21
-81

query I rowsort
SELECT - col0 * - col0 AS col0 FROM tab2 WHERE NOT NULL >= 36
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6076
SELECT - + COUNT( * ) DIV + + COUNT( * ) - 63 FROM tab0 cor0
----
-64

skipif mysql # not compatible
query I rowsort label-6076
SELECT - + COUNT ( * ) / + + COUNT ( * ) - 63 FROM tab0 cor0
----
-64

query I rowsort
SELECT + 87 * + + col0 AS col2 FROM tab1 AS cor0
----
4437
7395
7917

onlyif mysql # aggregate syntax: 
query II rowsort label-6078
SELECT + + COUNT( DISTINCT - 15 ) AS col2, 36 FROM tab0 AS cor0
----
1
36

skipif mysql # not compatible
query II rowsort label-6078
SELECT + + COUNT ( DISTINCT - 15 ) AS col2, 36 FROM tab0 AS cor0
----
1
36

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6081
SELECT DISTINCT col1 + + 80 DIV 71 col0, - col0 FROM tab2
----
52
-46
68
-75
78
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6081
SELECT DISTINCT col1 + + 80 / 71 col0, - col0 FROM tab2
----
52
-46
68
-75
78
-64

query I rowsort
SELECT DISTINCT + col0 + - 19 FROM tab1 AS cor0
----
32
66
72

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

query II rowsort
SELECT + col2 + + col2 * + col2 AS col0, - col2 AS col0 FROM tab2 AS cor0
----
1640
-40
3422
-58
552
-23

query I rowsort
SELECT + 27 + - 67 FROM tab1 AS cor0
----
-40
-40
-40

query I rowsort
SELECT ALL + ( + - 3 ) FROM tab2
----
-3
-3
-3

query I rowsort
SELECT col0 * - 69 AS col2 FROM tab1
----
-3519
-5865
-6279

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6089
SELECT ALL - ( + col0 ) col1, + 99 DIV + col0 FROM tab1
----
-51
1
-85
1
-91
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6089
SELECT ALL - ( + col0 ) col1, + 99 / + col0 FROM tab1
----
-51
1
-85
1
-91
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT MAX( DISTINCT - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-6090
SELECT MAX ( DISTINCT - col0 ) FROM tab2
----
-46

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6091
SELECT ALL + CAST ( - - col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + + col0 / + + 47 - + col1 + + col1 * col1 IS NULL AND NOT + 13 IS NOT NULL
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT ALL ( + - MAX( + col2 ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-6096
SELECT ALL ( + - MAX ( + col2 ) ) FROM tab1
----
-96

query I rowsort
SELECT 43 * 75 AS col2 FROM tab2
----
3225
3225
3225

query I rowsort
SELECT ALL - ( - col2 ) AS col1 FROM tab1
----
59
68
96

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6101
SELECT col0 * 10 DIV - + 87 + col2 FROM tab0 AS cor0 WHERE NOT - col2 DIV col2 IS NULL
----
0
46
88

skipif mysql # not compatible
query I rowsort label-6101
SELECT col0 * 10 / - + 87 + col2 FROM tab0 AS cor0 WHERE NOT - col2 / col2 IS NULL
----
0
46
88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 13 * + 46 NOT IN ( - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT - MAX( ALL - + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-6103
SELECT - MAX ( ALL - + col2 ) FROM tab0
----
10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT MIN( ALL - col0 ) col1 FROM tab1
----
-91

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

query I rowsort
SELECT DISTINCT - ( - - col2 ) AS col1 FROM tab1
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 21 col1, 37 + + col0 FROM tab1
----
21
122
21
128
21
88

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 42 >= NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( + col2, col1 * 43, + col1 / - col0 - + col2 / - col0, - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6110
SELECT ALL - - CAST( - col2 AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-6110
SELECT ALL - - CAST ( - col2 AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT - 73 * 83 + SUM( + - 49 ) FROM tab2 AS cor0
----
-6206

skipif mysql # not compatible
query I rowsort label-6112
SELECT - 73 * 83 + SUM ( + - 49 ) FROM tab2 AS cor0
----
-6206

query I rowsort
SELECT - 10 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 93 AS col0 FROM tab2 cor0 WHERE col0 IS NOT NULL
----
93

query III rowsort
SELECT * FROM tab2 cor0 WHERE 69 * + + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 20 * 24 - + 37 AS col1 FROM tab0 AS cor0
----
443

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT DISTINCT ( - - 58 ) * COUNT( * ) AS col2 FROM tab0, tab1 cor0
----
522

skipif mysql # not compatible
query I rowsort label-6117
SELECT DISTINCT ( - - 58 ) * COUNT ( * ) AS col2 FROM tab0, tab1 cor0
----
522

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6118
SELECT * FROM tab1 WHERE 43 NOT IN ( + col0 * - CAST( NULL AS SIGNED ) + - + col1, - col1, + col0 )
----

skipif mysql # not compatible
query III rowsort label-6118
SELECT * FROM tab1 WHERE 43 NOT IN ( + col0 * - CAST ( NULL AS INTEGER ) + - + col1, - col1, + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) * 97 col0 FROM tab2 AS cor0
----
-2231
-3880
-5626

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6123
SELECT ALL - + ( 20 ) DIV - 11 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL - + ( 20 ) / - 11 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6124
SELECT - 8 DIV + + col2, col0 FROM tab2 AS cor0
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-6124
SELECT - 8 / + + col2, col0 FROM tab2 AS cor0
----
0
46
0
64
0
75

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

skipif mysql # not compatible
query I rowsort label-6125
SELECT + COUNT ( - col2 ) FROM tab0 cor0
----
3

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - 37 + col1 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 / - col1 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6129
SELECT DISTINCT - MAX( - col1 ) + - + COUNT( * ) + + CAST( - + COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-6129
SELECT DISTINCT - MAX ( - col1 ) + - + COUNT ( * ) + + CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT + MIN( col1 ) + - COUNT( * ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-6130
SELECT + MIN ( col1 ) + - COUNT ( * ) FROM tab1
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT ALL ( COUNT( * ) ) col0 FROM tab1
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT MIN( + - 91 ) AS col1 FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-6133
SELECT MIN ( + - 91 ) AS col1 FROM tab2
----
-91

query I rowsort
SELECT ALL - ( + 97 ) FROM tab2 AS cor0
----
-97
-97
-97

query I rowsort
SELECT col0 * - - col0 AS col2 FROM tab0 AS cor0
----
225
7569
9409

query II rowsort
SELECT ALL col1, - 41 * + col0 FROM tab1
----
14
-2091
47
-3731
5
-3485

query I rowsort
SELECT - ( - + 41 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN col1 AND 55
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6138
SELECT * FROM tab1 AS cor0 WHERE 93 - CAST( - col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6138
SELECT * FROM tab1 AS cor0 WHERE 93 - CAST ( - col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6139
SELECT + CAST( NULL AS SIGNED ) + - + 61 * - col1 + - + 58 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-6139
SELECT + CAST ( NULL AS INTEGER ) + - + 61 * - col1 + - + 58 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - + 80 AS col1 FROM tab2 cor0
----
-80
-80
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-6142
SELECT DISTINCT - + col1 - - 50 DIV + 15 FROM tab0 AS cor0
----
-18
-78
2

skipif mysql # not compatible
query I rowsort label-6142
SELECT DISTINCT - + col1 - - 50 / + 15 FROM tab0 AS cor0
----
-18
-78
2

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

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

query I rowsort
SELECT ALL col2 - 33 FROM tab2
----
-10
25
7

onlyif mysql # DIV for integer division: 
query II rowsort label-6145
SELECT ALL + col1 DIV + - col2 col0, + 23 FROM tab1
----
0
23
0
23
0
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6145
SELECT ALL + col1 / + - col2 col0, + 23 FROM tab1
----
0
23
0
23
0
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT ALL + COUNT( * ) * SUM( col0 ) AS col2 FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-6146
SELECT ALL + COUNT ( * ) * SUM ( col0 ) AS col2 FROM tab1
----
681

query III rowsort
SELECT * FROM tab1 WHERE - + col0 <= col1 + ( - 72 ) + + - col2
----

query I rowsort
SELECT - 46 AS col2 FROM tab1 WHERE ( NULL ) BETWEEN + 62 * 84 / - col2 AND col1
----

query I rowsort
SELECT - col1 * - 33 AS col0 FROM tab2
----
1683
2211
2541

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * - 52 col0, col0 FROM tab0
----
-4524
87
-5044
97
-780
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( col2 ) * + - col1, col1 col0 FROM tab1
----
-1344
14
-295
5
-3196
47

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6154
SELECT - - 57 AS col2, - COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
57
0

skipif mysql # not compatible
query II rowsort label-6154
SELECT - - 57 AS col2, - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
57
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT - MAX( DISTINCT - - ( col0 ) ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-6155
SELECT - MAX ( DISTINCT - - ( col0 ) ) FROM tab0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6156
SELECT ALL col1 DIV - + ( + 29 ) col1 FROM tab0
----
-2
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6156
SELECT ALL col1 / - + ( + 29 ) col1 FROM tab0
----
-2
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT + SUM( col2 ) FROM tab2 AS cor0 WHERE + col0 IS NULL AND NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6158
SELECT + SUM ( col2 ) FROM tab2 AS cor0 WHERE + col0 IS NULL AND NOT NULL IS NULL
----
NULL

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( + + 79 ) * + - 27 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-2133

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6165
SELECT DISTINCT CAST( - - 34 AS SIGNED ) FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-6165
SELECT DISTINCT CAST ( - - 34 AS INTEGER ) FROM tab1 AS cor0
----
34

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6167
SELECT col0 DIV + + col2 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-6167
SELECT col0 / + + col2 FROM tab0
----
0
0
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6168
SELECT CAST( - - SUM( - 64 ) AS SIGNED ) FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-6168
SELECT CAST ( - - SUM ( - 64 ) AS INTEGER ) FROM tab2
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT ALL - SUM( + col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-6169
SELECT ALL - SUM ( + col1 ) FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT ALL 86 * SUM( 6 ) AS col2 FROM tab0 WHERE - 73 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6170
SELECT ALL 86 * SUM ( 6 ) AS col2 FROM tab0 WHERE - 73 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6171
SELECT ALL + 69 DIV - col2 + + ( + col2 ) - - ( 46 ) FROM tab1
----
104
113
142

skipif mysql # not compatible
query I rowsort label-6171
SELECT ALL + 69 / - col2 + + ( + col2 ) - - ( 46 ) FROM tab1
----
104
113
142

query I rowsort
SELECT ALL + + col2 FROM tab2 AS cor0 WHERE NULL > 64
----

query I rowsort
SELECT + 20 + - 15 AS col1 FROM tab2 AS cor0
----
5
5
5

query I rowsort
SELECT + 76 + + 15 FROM tab1
----
91
91
91

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6177
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT - + COUNT( * ) * + - 93 - - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-6179
SELECT - + COUNT ( * ) * + - 93 - - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
276

query I rowsort
SELECT ALL 52 + + - col2 AS col0 FROM tab0 AS cor0
----
-47
42
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT DISTINCT + SUM( - 31 ) + + - COUNT( ALL - col0 ) AS col2 FROM tab0 cor0 WHERE + 30 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6181
SELECT DISTINCT + SUM ( - 31 ) + + - COUNT ( ALL - col0 ) AS col2 FROM tab0 cor0 WHERE + 30 NOT BETWEEN NULL AND NULL
----
NULL

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

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

query I rowsort
SELECT ALL - 0 * + - 47 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - + 46 + + col1 + + col2 + 90 AS col2 FROM tab2 AS cor0
----
118
161
169

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT + + 40 > + - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6186
SELECT DISTINCT - MIN( ALL + col0 ) col2, + COUNT( * ) FROM tab0
----
-15
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6186
SELECT DISTINCT - MIN ( ALL + col0 ) col2, + COUNT ( * ) FROM tab0
----
-15
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6187
SELECT col1 * col0 DIV - ( - 38 ) FROM tab2
----
129
132
61

skipif mysql # not compatible
query I rowsort label-6187
SELECT col1 * col0 / - ( - 38 ) FROM tab2
----
129
132
61

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( - 80 ) IS NOT NULL
----

query I rowsort
SELECT col1 * + - col1 AS col0 FROM tab0
----
-1
-441
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6190
SELECT + CAST( + + col0 AS SIGNED ) * - 24 AS col1 FROM tab0 cor0
----
-2088
-2328
-360

skipif mysql # not compatible
query I rowsort label-6190
SELECT + CAST ( + + col0 AS INTEGER ) * - 24 AS col1 FROM tab0 cor0
----
-2088
-2328
-360

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

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

query I rowsort
SELECT ALL 7 * - col2 FROM tab0 AS cor0
----
-329
-693
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-6193
SELECT 9, + COUNT( ALL - 58 ) col0 FROM tab1 AS cor0
----
9
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6193
SELECT 9, + COUNT ( ALL - 58 ) col0 FROM tab1 AS cor0
----
9
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT ALL - + MIN( + 95 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-95

skipif mysql # not compatible
query I rowsort label-6194
SELECT ALL - + MIN ( + 95 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-95

query I rowsort
SELECT ALL + 83 * + 4 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 7bb42105aa078e113d4c4a1fbcfa04af

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT + + col0 * + col2 * + col0 AS col2 FROM tab2 cor0
----
163840
326250
48668

query I rowsort
SELECT - col2 / col0 + - col2 FROM tab1 AS cor0 WHERE NOT col1 + + ( - - ( col2 ) ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT - - COUNT( * ) * + MAX( + + 41 ) * 81 AS col2 FROM tab0 AS cor0
----
9963

skipif mysql # not compatible
query I rowsort label-6199
SELECT - - COUNT ( * ) * + MAX ( + + 41 ) * 81 AS col2 FROM tab0 AS cor0
----
9963

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + - col0 col2 FROM tab1 AS cor0
----
2601
7225
8281

query I rowsort
SELECT + + col1 * - 59 FROM tab2 AS cor0
----
-3009
-3953
-4543

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6203
SELECT DISTINCT - COUNT( DISTINCT + col2 ) DIV + CAST( + ( 4 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6203
SELECT DISTINCT - COUNT ( DISTINCT + col2 ) / + CAST ( + ( 4 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
0

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

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

query I rowsort
SELECT 78 + - 54 FROM tab2
----
24
24
24

query II rowsort
SELECT + col1, col2 + 37 FROM tab0
----
1
136
21
47
81
84

onlyif mysql # DIV for integer division: 
query I rowsort label-6208
SELECT col0 DIV ( - 84 ) FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6208
SELECT col0 / ( - 84 ) FROM tab1
----
-1
-1
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= col1 - 72 / - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6210
SELECT + CAST( NULL AS SIGNED ) + + + col1 AS col0, 0 + + ( + col1 ) FROM tab2 cor0 WHERE - col1 <> col1 + - col2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-6210
SELECT + CAST ( NULL AS INTEGER ) + + + col1 AS col0, 0 + + ( + col1 ) FROM tab2 cor0 WHERE - col1 <> col1 + - col2
----
NULL
51
NULL
67
NULL
77

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

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

query I rowsort
SELECT - 93 - - col2 AS col1 FROM tab1
----
-25
-34
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 71 ) - col0 + 6 col2 FROM tab1
----
-116
-150
-156

query I rowsort
SELECT col2 * + col2 * - ( - 91 ) + + + 1 + + col0 AS col1 FROM tab0
----
201035
891989
9188

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 <= - ( + col0 ) * col0
----

query I rowsort
SELECT 25 AS col1 FROM tab0 AS cor0 WHERE NULL = - col0
----

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

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 + - + col0 <= NULL
----

query I rowsort
SELECT 51 * + col1 AS col2 FROM tab0
----
1071
4131
51

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6221
SELECT - CAST( - col2 AS SIGNED ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6221
SELECT - CAST ( - col2 AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

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

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

query I rowsort
SELECT ALL - col2 * - - 15 FROM tab2 AS cor0
----
-345
-600
-870

query I rowsort
SELECT - 61 * - 1 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 79 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query II rowsort
SELECT col1 * + col2 + - + 78 * 15, + col1 AS col0 FROM tab1
----
-875
5
174
14
2026
47

query I rowsort
SELECT - col2 * - col1 * + col1 AS col0 FROM tab0 AS cor0
----
308367
4410
99

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

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

query I rowsort
SELECT DISTINCT - 24 * - col2 AS col1 FROM tab2 cor0
----
1392
552
960

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT ( COUNT( * ) ) * + ( - 31 ) * + 74 + - 74 AS col0 FROM tab2 AS cor0
----
-6956

skipif mysql # not compatible
query I rowsort label-6231
SELECT ( COUNT ( * ) ) * + ( - 31 ) * + 74 + - 74 AS col0 FROM tab2 AS cor0
----
-6956

query I rowsort
SELECT - 26 * col1 * - col0 FROM tab2 AS cor0
----
128128
130650
60996

query I rowsort
SELECT - - 5 * - col2 * + + 75 FROM tab2 AS cor0
----
-15000
-21750
-8625

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6234
SELECT ALL + + col0 / + - CAST( NULL AS SIGNED ) AS col1, - 43 AS col0 FROM tab1 AS cor0
----
NULL
-43
NULL
-43
NULL
-43

skipif mysql # not compatible
query II rowsort label-6234
SELECT ALL + + col0 / + - CAST ( NULL AS INTEGER ) AS col1, - 43 AS col0 FROM tab1 AS cor0
----
NULL
-43
NULL
-43
NULL
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6235
SELECT 29 DIV COUNT( ALL - col1 ) * + 22 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-6235
SELECT 29 / COUNT ( ALL - col1 ) * + 22 FROM tab2
----
198

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 30 + - 63 / - col1 < NULL
----

query I rowsort
SELECT ALL + 58 * col0 * col2 + + col1 + + col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL OR + + col1 BETWEEN - col2 AND NULL
----
284033
290960
359042

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

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

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

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

query I rowsort
SELECT DISTINCT - ( + 78 ) - - col2 AS col2 FROM tab0 AS cor0
----
-31
-68
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6241
SELECT * FROM tab0 WHERE - CAST( NULL AS SIGNED ) <> 62
----

skipif mysql # not compatible
query III rowsort label-6241
SELECT * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) <> 62
----

query I rowsort
SELECT ALL - - 68 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT col1 - - + 23 FROM tab2
----
100
74
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6244
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 IN ( - - 58, - 68, 69 * - col2, - col2 + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6244
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 IN ( - - 58, - 68, 69 * - col2, - col2 + - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0 * 25, + col0 + + + 89 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6247
SELECT - 7 AS col1, CAST( - AVG ( ALL col1 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-7
-65

skipif mysql # not compatible
query II rowsort label-6247
SELECT - 7 AS col1, CAST ( - AVG ( ALL col1 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-7
-65

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT ALL COUNT( * ) FROM tab2 WHERE col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6252
SELECT ALL COUNT ( * ) FROM tab2 WHERE col0 <= NULL
----
0

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

skipif mysql # not compatible
query III rowsort label-6253
SELECT ALL * FROM tab0 WHERE NOT 97 NOT IN ( ( + 75 ), + CAST ( col2 AS INTEGER ), - CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 * col1 col2 FROM tab2
----
3519
4623
5313

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col0 = - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT ALL - - ( + 84 ) FROM tab2 AS cor0
----
84
84
84

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6259
SELECT ( - + SUM( ALL - - col1 ) ) + + - 57 DIV + - 52 AS col1, - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-65
-3

skipif mysql # not compatible
query II rowsort label-6259
SELECT ( - + SUM ( ALL - - col1 ) ) + + - 57 / + - 52 AS col1, - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-65
-3

query I rowsort
SELECT DISTINCT 77 FROM tab1 cor0
----
77

query I rowsort
SELECT ALL + + 28 + - col0 FROM tab1 AS cor0
----
-23
-57
-63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT ALL 87 - + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----
87

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL 87 - + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----
87

query II rowsort
SELECT ALL col0, 37 * - col1 FROM tab0 AS cor0
----
15
-2997
87
-777
97
-37

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 41 + - ( - col1 ) * 65 AND col2 * - + col0 + - 38
----

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

query I rowsort
SELECT DISTINCT - ( - - col0 ) FROM tab1
----
-51
-85
-91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT - 60 * - COUNT( * ) AS col1 FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-6270
SELECT - 60 * - COUNT ( * ) AS col1 FROM tab2
----
180

query I rowsort
SELECT ALL - ( ( 7 ) ) FROM tab2
----
-7
-7
-7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT ALL - ( + 45 ) + + COUNT( * ) * - + 13 * - 40 * - - 10 col1 FROM tab2
----
15555

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6273
SELECT ALL - ( + 45 ) + + COUNT ( * ) * - + 13 * - 40 * - - 10 col1 FROM tab2
----
15555

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT ALL COUNT( * ) - + 75 * 13 AS col0 FROM tab0
----
-972

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL COUNT ( * ) - + 75 * 13 AS col0 FROM tab0
----
-972

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6277
SELECT + 41 * col1 - 23 / + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6278
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6278
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + - - col0 AS col2 FROM tab0
----
108
96
98

query I rowsort
SELECT ( + ( - col1 ) ) + - col0 FROM tab2
----
-141
-142
-97

query I rowsort
SELECT DISTINCT - + ( - 79 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
79

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

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

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

query I rowsort
SELECT - 30 - + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

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

query I rowsort
SELECT - 3 AS col0 FROM tab0 cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT DISTINCT + MAX( - 80 ) FROM tab1 WHERE NULL IS NULL
----
-80

skipif mysql # not compatible
query I rowsort label-6289
SELECT DISTINCT + MAX ( - 80 ) FROM tab1 WHERE NULL IS NULL
----
-80

query I rowsort
SELECT ALL + col2 * + - 29 AS col2 FROM tab2
----
-1160
-1682
-667

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6291
SELECT DISTINCT 72 DIV ( 76 ) * - 17 * + - ( + COUNT( * ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6291
SELECT DISTINCT 72 / ( 76 ) * - 17 * + - ( + COUNT ( * ) ) AS col2 FROM tab2
----
0

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

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

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

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

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

query II rowsort
SELECT ALL + 97 AS col0, + ( col1 ) * + col2 AS col0 FROM tab0
----
97
210
97
3807
97
99

query I rowsort
SELECT + col0 * - col2 + + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-4800
-4956
-6120

query I rowsort
SELECT + ( - 77 ) FROM tab2 AS cor0 WHERE NOT col0 * 56 + + col1 - - col0 IS NULL
----
-77
-77
-77

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

query I rowsort
SELECT - + 95 * + col0 * - col1 - + ( col1 ) + 67 FROM tab0 AS cor0
----
115411
173611
9281

query I rowsort
SELECT 90 + + col1 AS col2 FROM tab2 AS cor0
----
141
157
167

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

query II rowsort
SELECT + col2 + - col0, + col2 + - + 6 AS col1 FROM tab1
----
-23
62
-26
53
45
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT DISTINCT + MIN( DISTINCT - 16 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-16

skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT + MIN ( DISTINCT - 16 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-16

query I rowsort
SELECT 27 + + + col2 AS col1 FROM tab0
----
126
37
74

query I rowsort
SELECT DISTINCT - + 85 - 96 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT DISTINCT + 66 + + + COUNT( * ) + + - 69 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6307
SELECT DISTINCT + 66 + + + COUNT ( * ) + + - 69 FROM tab0
----
0

query I rowsort
SELECT + - 30 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT col0 + - 21 FROM tab0
----
-6
66
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT ALL + SUM( ALL - 13 ) + - - 57 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL + SUM ( ALL - 13 ) + - - 57 FROM tab2
----
18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT + SUM( - col0 ) AS col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-227

skipif mysql # not compatible
query I rowsort label-6312
SELECT + SUM ( - col0 ) AS col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-227

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6313
SELECT DISTINCT + ( - COUNT( * ) ) + - - 89 DIV 46 * 1 AS col2 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-6313
SELECT DISTINCT + ( - COUNT ( * ) ) + - - 89 / 46 * 1 AS col2 FROM tab0 AS cor0
----
-2

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

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

skipif mysql # not compatible
query I rowsort label-6315
SELECT DISTINCT + + 54 + + COUNT ( * ) * - 41 AS col2 FROM tab2 AS cor0
----
-69

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

skipif mysql # not compatible
query I rowsort label-6316
SELECT COUNT ( * ) * - - 44 FROM tab2 cor0
----
132

query I rowsort
SELECT + 5 + - - 56 FROM tab1 AS cor0 WHERE + ( + ( ( - ( 10 ) ) ) ) >= - 41
----
61
61
61

query I rowsort
SELECT - col1 - col0 + + - col0 * - col2 AS col2 FROM tab0
----
609
762
9505

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT + COUNT( ALL - 33 ) - - - COUNT( ALL - ( + 79 ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6319
SELECT + COUNT ( ALL - 33 ) - - - COUNT ( ALL - ( + 79 ) ) FROM tab1
----
0

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

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

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

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

query I rowsort
SELECT - + col2 AS col2 FROM tab1 WHERE - col2 * + col2 + - - 79 + col1 < + col0 * - - col1 * - 0 + 65
----
-59
-68
-96

query I rowsort
SELECT 64 + + 45 AS col1 FROM tab1 AS cor0
----
109
109
109

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col1 FROM tab2 AS cor0 WHERE col1 + 91 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT DISTINCT - 66 * - SUM( ALL - 12 ) AS col1 FROM tab0
----
-2376

skipif mysql # not compatible
query I rowsort label-6326
SELECT DISTINCT - 66 * - SUM ( ALL - 12 ) AS col1 FROM tab0
----
-2376

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

query I rowsort
SELECT + + 15 * 56 + + col0 FROM tab0 AS cor0
----
855
927
937

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT - - SUM( - + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6329
SELECT - - SUM ( - + col2 ) FROM tab0 AS cor0
----
-156

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

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

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

query I rowsort
SELECT DISTINCT - - 82 AS col2 FROM tab2 AS cor0
----
82

query I rowsort
SELECT DISTINCT + - ( + - 73 ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6334
SELECT DISTINCT + CAST( - + 64 AS SIGNED ) * + COUNT( * ) + - 95 FROM tab2 AS cor0 WHERE NULL >= NULL
----
-95

skipif mysql # not compatible
query I rowsort label-6334
SELECT DISTINCT + CAST ( - + 64 AS INTEGER ) * + COUNT ( * ) + - 95 FROM tab2 AS cor0 WHERE NULL >= NULL
----
-95

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6336
SELECT ALL COUNT( * ) / AVG ( DISTINCT - ( + CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL COUNT ( * ) / AVG ( DISTINCT - ( + CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab1
----
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6339
SELECT DISTINCT MAX ( DISTINCT 31 ) AS col2 FROM tab2 AS cor0
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-6340
SELECT col0 DIV + 26 AS col1 FROM tab2
----
1
2
2

skipif mysql # not compatible
query I rowsort label-6340
SELECT col0 / + 26 AS col1 FROM tab2
----
1
2
2

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

skipif mysql # not compatible
query I rowsort label-6341
SELECT COUNT ( * ) / - - COUNT ( DISTINCT + - col0 ) AS col1 FROM tab0
----
1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col1, + 87 * - col0 * + - col0 * - + col0 col2 FROM tab1
----
-51
-11540637
-85
-53428875
-91
-65560677

query I rowsort
SELECT - + 87 + - 39 AS col2 FROM tab1 AS cor0
----
-126
-126
-126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 col0, - ( + col0 ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - 10 AND NULL
----

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

query I rowsort
SELECT DISTINCT + - 66 FROM tab1 cor0
----
-66

query I rowsort
SELECT ALL + - col1 - - col2 + + ( + + col0 ) + + 16 FROM tab2 AS cor0
----
34
43
82

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

skipif mysql # not compatible
query I rowsort label-6349
SELECT ( - MAX ( ALL col1 ) ) FROM tab0
----
-81

query I rowsort
SELECT col2 * - + col0 * + - col2 FROM tab1
----
295885
420784
470016

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

skipif mysql # not compatible
query I rowsort label-6351
SELECT MAX ( DISTINCT 34 ) AS col1 FROM tab1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT DISTINCT SUM( ALL - col2 ) * + - COUNT( * ) + + SUM( ALL 17 ) AS col2 FROM tab0
----
519

skipif mysql # not compatible
query I rowsort label-6352
SELECT DISTINCT SUM ( ALL - col2 ) * + - COUNT ( * ) + + SUM ( ALL 17 ) AS col2 FROM tab0
----
519

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6353
SELECT - ( - - 8 ) * - 0 * - 9 DIV - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6353
SELECT - ( - - 8 ) * - 0 * - 9 / - COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT ALL - 33 * + 16 AS col2 FROM tab2
----
-528
-528
-528

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

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

query I rowsort
SELECT - 21 * col2 * col2 - - 84 + 26 FROM tab1
----
-193426
-72991
-96994

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6358
SELECT COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
3

query I rowsort
SELECT + 54 - - col0 FROM tab0
----
141
151
69

query I rowsort
SELECT DISTINCT col0 + - 9 AS col0 FROM tab0
----
6
78
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6361
SELECT DISTINCT CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6361
SELECT DISTINCT CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + + 80 AS col0 FROM tab1 cor0
----
80

query I rowsort
SELECT ( - - col2 ) AS col1 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT ALL SUM( - 78 ) AS col0 FROM tab2
----
-234

skipif mysql # not compatible
query I rowsort label-6364
SELECT ALL SUM ( - 78 ) AS col0 FROM tab2
----
-234

onlyif mysql # DIV for integer division: 
query I rowsort label-6365
SELECT ALL + col0 DIV col0 * + 77 FROM tab2 AS cor0
----
77
77
77

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL + col0 / col0 * + 77 FROM tab2 AS cor0
----
77
77
77

query I rowsort
SELECT DISTINCT + - 95 * + - col0 FROM tab1 cor0
----
4845
8075
8645

onlyif mysql # DIV for integer division: 
query I rowsort label-6367
SELECT - 35 * + col0 DIV - + col0 AS col0 FROM tab2 AS cor0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-6367
SELECT - 35 * + col0 / - + col0 AS col0 FROM tab2 AS cor0
----
35
35
35

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

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

query I rowsort
SELECT DISTINCT - 16 * 21 AS col0 FROM tab0 AS cor0
----
-336

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

query II rowsort
SELECT col1 AS col2, - 38 AS col2 FROM tab0
----
1
-38
21
-38
81
-38

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

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

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

query I rowsort
SELECT 4 * - - col0 FROM tab1
----
204
340
364

query I rowsort
SELECT ALL + 48 AS col2 FROM tab1
----
48
48
48

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6376
SELECT - col2, - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

query I rowsort
SELECT ALL - col0 * - 74 + + 9 FROM tab0
----
1119
6447
7187

query I rowsort
SELECT ALL ( col1 ) * + col0 AS col1 FROM tab2
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 * - ( 23 ) col1 FROM tab1
----
-506
-506
-506

query I rowsort
SELECT ALL - + 92 + + + col0 * + + ( col2 ) AS col2 FROM tab1 AS cor0
----
4804
4923
6096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6381
SELECT ALL - CAST( NULL AS SIGNED ) + - + MAX( ( - + 36 ) ) FROM tab0 AS cor0 WHERE NOT ( NOT - col2 - - - col1 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6381
SELECT ALL - CAST ( NULL AS INTEGER ) + - + MAX ( ( - + 36 ) ) FROM tab0 AS cor0 WHERE NOT ( NOT - col2 - - - col1 IS NULL )
----
NULL

query I rowsort
SELECT + + col1 + - - 56 AS col2 FROM tab2 AS cor0
----
107
123
133

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 / + col2 + - col2 - - ( 99 ) * - + 32 IS NULL
----

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

query I rowsort
SELECT ALL - col1 + + col2 + + - 69 FROM tab0 cor0
----
-103
-80
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6386
SELECT ALL + CAST( + 71 AS SIGNED ) - - + 5 * - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-6386
SELECT ALL + CAST ( + 71 AS INTEGER ) - - + 5 * - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
56

query I rowsort
SELECT DISTINCT + 76 * - col2 FROM tab1 AS cor0
----
-4484
-5168
-7296

query I rowsort
SELECT ALL - - col1 + + col1 - - + col0 AS col1 FROM tab1 AS cor0
----
185
79
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT ALL + 11 - + COUNT( DISTINCT - col2 ) FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-6389
SELECT ALL + 11 - + COUNT ( DISTINCT - col2 ) FROM tab1 AS cor0
----
8

query I rowsort
SELECT + - col2 + + col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
28
37
9

query I rowsort
SELECT - 2 - 42 AS col0 FROM tab0 AS cor0
----
-44
-44
-44

query I rowsort
SELECT DISTINCT - 93 FROM tab0, tab1 AS cor0
----
-93

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > - - col1
----

query I rowsort
SELECT DISTINCT + col1 * - 30 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1530
-2010
-2310

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 24 + - col1 * + + 82 <= + 24 + col1
----

query I rowsort
SELECT DISTINCT 18 + + col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col0 + + + col0
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6398
SELECT DISTINCT - - COUNT( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6398
SELECT DISTINCT - - COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 71 * col1 AS col1 FROM tab1 AS cor0
----
-3337
-355
-994

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

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

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

query I rowsort
SELECT - col2 + col0 * 67 AS col2 FROM tab2 WHERE - 90 / 78 NOT BETWEEN ( 14 ) AND col2
----
3059
4248
4967

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT 56 * - 91 + - COUNT( ALL col0 ) AS col2 FROM tab1
----
-5099

skipif mysql # not compatible
query I rowsort label-6404
SELECT 56 * - 91 + - COUNT ( ALL col0 ) AS col2 FROM tab1
----
-5099

query I rowsort
SELECT ALL 59 AS col0 FROM tab2 WHERE - 29 NOT IN ( 22 )
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT COUNT( DISTINCT 35 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6406
SELECT COUNT ( DISTINCT 35 ) FROM tab2
----
1

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6408
SELECT DISTINCT * FROM tab1 WHERE 15 * CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6408
SELECT DISTINCT * FROM tab1 WHERE 15 * CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT ALL ( - col1 ) * - 76 AS col0 FROM tab0 WHERE NOT 72 * - 67 >= + col2 + col0 * 75
----
1596
6156
76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT COUNT( - 62 ) * 34 FROM tab0 WHERE NOT col2 IN ( + col0 - + col0 * - 55 )
----
102

skipif mysql # not compatible
query I rowsort label-6411
SELECT COUNT ( - 62 ) * 34 FROM tab0 WHERE NOT col2 IN ( + col0 - + col0 * - 55 )
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT DISTINCT MAX( ALL + ( + 14 ) ) FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-6412
SELECT DISTINCT MAX ( ALL + ( + 14 ) ) FROM tab0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT 26 + COUNT( * ) * - COUNT( * ) FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-6413
SELECT 26 + COUNT ( * ) * - COUNT ( * ) FROM tab2
----
17

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

query I rowsort
SELECT col0 * + col2 + - col0 AS col1 FROM tab1
----
4845
4930
6097

query I rowsort
SELECT AVG ( ALL col0 ) AS col0 FROM tab0 WHERE NOT ( NULL ) <= + col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT SUM( - col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-6417
SELECT SUM ( - col1 ) FROM tab1
----
-66

query I rowsort
SELECT ALL - ( 96 ) FROM tab2
----
-96
-96
-96

query I rowsort
SELECT ALL - 88 FROM tab2 WHERE NOT - col0 / - 72 IS NULL
----
-88
-88
-88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT ALL - COUNT( * ) AS col0 FROM tab2 WHERE ( 27 + - col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6421
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 WHERE ( 27 + - col2 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT DISTINCT MIN( 89 ) FROM tab1 WHERE + 78 BETWEEN - col2 * + col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6422
SELECT DISTINCT MIN ( 89 ) FROM tab1 WHERE + 78 BETWEEN - col2 * + col0 AND NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT + MAX( DISTINCT col2 ) * COUNT( * ) AS col1 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-6424
SELECT + MAX ( DISTINCT col2 ) * COUNT ( * ) AS col1 FROM tab0
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT ALL - COUNT( * ) FROM tab1 WHERE col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL - COUNT ( * ) FROM tab1 WHERE col2 IS NOT NULL
----
-3

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

skipif mysql # not compatible
query I rowsort label-6426
SELECT COUNT ( - 0 ) AS col2 FROM tab0
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT ALL + SUM( DISTINCT 24 ) FROM tab0 WHERE NULL <> - col0 * col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6428
SELECT ALL + SUM ( DISTINCT 24 ) FROM tab0 WHERE NULL <> - col0 * col1
----
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6431
SELECT col1 FROM tab1 WHERE - ( col2 ) IN ( + col1 + - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col0 * - 16 AS col1 FROM tab2 AS cor0
----
-1024
-1200
-736

query I rowsort
SELECT DISTINCT - ( 20 ) FROM tab1 cor0
----
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab0 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

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

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

query I rowsort
SELECT - 69 FROM tab1 AS cor0 WHERE ( col1 - + col2 ) IS NULL
----

query I rowsort
SELECT + col2 + - 99 AS col2 FROM tab0
----
-52
-89
0

query I rowsort
SELECT ALL - col0 * ( - col0 ) + + col0 AS col0 FROM tab2
----
2162
4160
5700

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 ) < - 26
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( + 94 ) AS col1 FROM tab0 WHERE NOT col2 > ( 60 )
----
94
94

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT DISTINCT COUNT( * ) * - ( + 83 ) + + COUNT( * ) FROM tab1 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-6443
SELECT DISTINCT COUNT ( * ) * - ( + 83 ) + + COUNT ( * ) FROM tab1 AS cor0
----
-246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6444
SELECT 39 / - col0 + 35 * - col1 AS col2 FROM tab0 AS cor0 WHERE ( + col1 / CAST( NULL AS SIGNED ) ) <> - col2
----

skipif mysql # not compatible
query I rowsort label-6444
SELECT 39 / - col0 + 35 * - col1 AS col2 FROM tab0 AS cor0 WHERE ( + col1 / CAST ( NULL AS INTEGER ) ) <> - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6445
SELECT col0 FROM tab2 AS cor0 WHERE ( - CAST( NULL AS DECIMAL ) / - col0 ) NOT BETWEEN - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6445
SELECT col0 FROM tab2 AS cor0 WHERE ( - CAST ( NULL AS REAL ) / - col0 ) NOT BETWEEN - col1 AND NULL
----

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

query I rowsort
SELECT ALL - col2 + + 88 FROM tab0 AS cor0 WHERE + col0 <> + col1
----
-11
41
78

query I rowsort
SELECT DISTINCT ( + col2 ) * - col0 + 12 FROM tab2 AS cor0
----
-1046
-2548
-4338

onlyif mysql # DIV for integer division: 
query I rowsort label-6449
SELECT DISTINCT - col0 - + col2 DIV col0 col0 FROM tab0 AS cor0
----
-18
-87
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6449
SELECT DISTINCT - col0 - + col2 / col0 col0 FROM tab0 AS cor0
----
-18
-87
-98

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

query I rowsort
SELECT DISTINCT 96 * - + col1 * 64 AS col0 FROM tab1
----
-288768
-30720
-86016

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT + 74 * + - MIN( ALL 11 ) FROM tab1
----
-814

skipif mysql # not compatible
query I rowsort label-6452
SELECT + 74 * + - MIN ( ALL 11 ) FROM tab1
----
-814

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 > ( + 93 + - col2 * 88 )
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT DISTINCT - SUM( - 67 ) AS col2 FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-6460
SELECT DISTINCT - SUM ( - 67 ) AS col2 FROM tab2 AS cor0
----
201

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

query I rowsort
SELECT DISTINCT + + 72 AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT ALL COUNT( DISTINCT - 24 ) col0 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6463
SELECT ALL COUNT ( DISTINCT - 24 ) col0 FROM tab2
----
1

query I rowsort
SELECT + col2 * - 33 FROM tab0
----
-1551
-3267
-330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6465
SELECT ALL CAST( ( + 87 ) AS SIGNED ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6465
SELECT ALL CAST ( ( + 87 ) AS INTEGER ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

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

query I rowsort
SELECT ALL - 50 * - col1 + - - col1 AS col0 FROM tab0 AS cor0
----
1071
4131
51

query I rowsort
SELECT DISTINCT + ( ( + col2 ) ) FROM tab1 AS cor0
----
59
68
96

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT + COUNT( * ) * - 21 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6471
SELECT + COUNT ( * ) * - 21 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col1 * - 42 )
----

query I rowsort
SELECT ALL - col1 + + col0 FROM tab2 AS cor0 WHERE col0 * 49 - - col1 IS NOT NULL
----
-13
-5
8

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6474
SELECT DISTINCT ( + COUNT ( * ) ) col0 FROM tab2
----
3

query I rowsort
SELECT - - 98 FROM tab1 WHERE NULL IS NULL
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT 2 + COUNT( ( + col0 ) ) AS col0 FROM tab1 WHERE - col0 >= + - 17 - - 59 * - 47
----
5

skipif mysql # not compatible
query I rowsort label-6476
SELECT 2 + COUNT ( ( + col0 ) ) AS col0 FROM tab1 WHERE - col0 >= + - 17 - - 59 * - 47
----
5

query I rowsort
SELECT DISTINCT - ( + - col1 ) * + col1 * - + col2 AS col1 FROM tab1
----
-1475
-150212
-18816

query I rowsort
SELECT DISTINCT + 87 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + ( - 20 ) < 37 / col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE ( - 2 * + + col2 + + col0 ) < - col1
----
51
14
96
85
5
59

query I rowsort
SELECT + 16 AS col2 FROM tab0 WHERE + - 61 * - col0 IS NOT NULL
----
16
16
16

query I rowsort
SELECT DISTINCT - - col1 + - - 43 * 62 AS col1 FROM tab1 AS cor0
----
2671
2680
2713

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6485
SELECT + MIN( - CAST( - col0 AS SIGNED ) ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-6485
SELECT + MIN ( - CAST ( - col0 AS INTEGER ) ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
48

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

query I rowsort
SELECT ALL col2 + - - col1 AS col0 FROM tab2 AS cor0
----
117
125
74

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

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE - col2 BETWEEN - - col1 * + 95 * + col2 AND NULL
----

query I rowsort
SELECT ALL 5 + - col0 AS col1 FROM tab2
----
-41
-59
-70

query I rowsort
SELECT 80 * col1 FROM tab1 AS cor0 WHERE + 5 BETWEEN - 58 AND - col1 + + col1
----

query I rowsort
SELECT col1 - - 39 - - 58 * col1 * col2 + + 13 FROM tab0 AS cor0
----
12253
220939
5795

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + - col0 ) IS NOT NULL AND NOT ( ( + col1 * col1 ) >= + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6495
SELECT - 94 FROM tab1 AS cor0 WHERE NOT ( CAST( 0 AS SIGNED ) ) IS NULL
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-6495
SELECT - 94 FROM tab1 AS cor0 WHERE NOT ( CAST ( 0 AS INTEGER ) ) IS NULL
----
-94
-94
-94

query I rowsort
SELECT - ( - + col1 ) FROM tab1 cor0
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6497
SELECT ALL + MIN( CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL + MIN ( CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6499
SELECT DISTINCT * FROM tab1 WHERE CAST( + 66 AS SIGNED ) / - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6499
SELECT DISTINCT * FROM tab1 WHERE CAST ( + 66 AS INTEGER ) / - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT DISTINCT + COUNT( * ) * - + 80 AS col1 FROM tab0
----
-240

skipif mysql # not compatible
query I rowsort label-6500
SELECT DISTINCT + COUNT ( * ) * - + 80 AS col1 FROM tab0
----
-240

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( col2 + col2 * + 21 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6502
SELECT - CAST( + - 94 AS SIGNED ) DIV + + col1 + - col1 FROM tab0
----
-17
-80
93

skipif mysql # not compatible
query I rowsort label-6502
SELECT - CAST ( + - 94 AS INTEGER ) / + + col1 + - col1 FROM tab0
----
-17
-80
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6503
SELECT CAST( ( - COUNT( * ) ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6503
SELECT CAST ( ( - COUNT ( * ) ) AS INTEGER ) FROM tab1
----
-3

query I rowsort
SELECT 15 * - - col0 * + col0 FROM tab0 AS cor0
----
113535
141135
3375

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

skipif mysql # not compatible
query I rowsort label-6505
SELECT DISTINCT - 22 / - col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 66 * + col0 FROM tab1 AS cor0
----
3366
5610
6006

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

query I rowsort
SELECT DISTINCT + + 69 AS col1 FROM tab1 AS cor0
----
69

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

query II rowsort
SELECT ALL - col1 AS col0, + col0 + + 95 FROM tab0
----
-1
192
-21
182
-81
110

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6512
SELECT ALL + ( col0 ) DIV - 96 * col0 + + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6512
SELECT ALL + ( col0 ) / - 96 * col0 + + col2 FROM tab1
----
59
68
96

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT DISTINCT - 56 + - - COUNT( * ) col2 FROM tab0
----
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6515
SELECT DISTINCT - 56 + - - COUNT ( * ) col2 FROM tab0
----
-53

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

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

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

skipif mysql # not compatible
query I rowsort label-6517
SELECT DISTINCT COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + - 66 * - COUNT ( * ) + 96 AS col1 FROM tab0
----
NULL

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

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

query II rowsort
SELECT - col2, + col0 + + col0 AS col0 FROM tab1 AS cor0
----
-59
170
-68
182
-96
102

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

skipif mysql # not compatible
query I rowsort label-6520
SELECT 11 + - COUNT ( * ) * + 12 FROM tab2
----
-25

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

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

query I rowsort
SELECT - 30 + - - col0 + col0 AS col0 FROM tab1
----
140
152
72

query I rowsort
SELECT + col2 + + + 21 * - col1 FROM tab2
----
-1048
-1349
-1577

query I rowsort
SELECT ALL - 44 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

onlyif mysql # DIV for integer division: 
query I rowsort label-6525
SELECT ALL 70 DIV - + col1 FROM tab1 cor0
----
-1
-14
-5

skipif mysql # not compatible
query I rowsort label-6525
SELECT ALL 70 / - + col1 FROM tab1 cor0
----
-1
-14
-5

query II rowsort
SELECT DISTINCT ( + 15 ), - col2 AS col1 FROM tab0 AS cor0
----
15
-10
15
-47
15
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT ALL - ( SUM( - ( 92 ) ) ) FROM tab1 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL - ( SUM ( - ( 92 ) ) ) FROM tab1 AS cor0
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT SUM( 48 ) AS col0 FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-6528
SELECT SUM ( 48 ) AS col0 FROM tab1 AS cor0
----
144

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT COUNT( * ) - - COUNT( col1 ) + - MIN( col0 ) FROM tab0 AS cor0 WHERE NOT - 14 - - col0 NOT BETWEEN col0 * 46 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6530
SELECT COUNT ( * ) - - COUNT ( col1 ) + - MIN ( col0 ) FROM tab0 AS cor0 WHERE NOT - 14 - - col0 NOT BETWEEN col0 * 46 AND NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6531
SELECT + COUNT ( - - 65 ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT SUM( DISTINCT + 15 ) AS col2 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-6532
SELECT SUM ( DISTINCT + 15 ) AS col2 FROM tab1
----
15

query I rowsort
SELECT col0 * + col2 * - - 45 AS col1 FROM tab0
----
31725
39150
432135

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT MIN( col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-6534
SELECT MIN ( col2 ) AS col1 FROM tab1
----
59

onlyif mysql # DIV for integer division: 
query II rowsort label-6535
SELECT ALL 48 * col1 DIV - col1, col1 FROM tab2
----
-48
51
-48
67
-48
77

skipif mysql # not compatible
query II rowsort label-6535
SELECT ALL 48 * col1 / - col1, col1 FROM tab2
----
-48
51
-48
67
-48
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6536
SELECT ALL col0 DIV 74 * + 67 FROM tab1
----
0
67
67

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL col0 / 74 * + 67 FROM tab1
----
0
67
67

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

skipif mysql # not compatible
query I rowsort label-6537
SELECT COUNT ( - 11 ) AS col0 FROM tab2
----
3

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

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

skipif mysql # not compatible
query I rowsort label-6539
SELECT - COUNT ( 97 ) AS col2 FROM tab0
----
-3

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col1 IN ( - - col1, + ( - col1 ), - 90 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT - MIN( + + 96 ) FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6544
SELECT - MIN ( + + 96 ) FROM tab2 AS cor0
----
-96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT 98 * - + MAX( ALL col2 ) col1 FROM tab2 cor0
----
-5684

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

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

skipif mysql # not compatible
query I rowsort label-6547
SELECT + 27 / - - COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT - - 22 * col1 + col2 FROM tab1 cor0
----
1102
169
404

query I rowsort
SELECT - - col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT + + col1 * - + col1 * 65 AS col0 FROM tab1 AS cor0
----
-12740
-143585
-1625

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

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

query I rowsort
SELECT + col2 - - 97 FROM tab1
----
156
165
193

onlyif mysql # DIV for integer division: 
query I rowsort label-6553
SELECT col1 * + col0 + col1 DIV + 23 AS col2 FROM tab0
----
1218
1827
97

skipif mysql # not compatible
query I rowsort label-6553
SELECT col1 * + col0 + col1 / + 23 AS col2 FROM tab0
----
1218
1827
97

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

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

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

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

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

query I rowsort
SELECT + col0 + col0 + + 58 * - col1 AS col0 FROM tab0 AS cor0
----
-1044
-4668
136

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT - + MIN( + col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6558
SELECT - + MIN ( + col0 ) FROM tab1 AS cor0
----
-51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= 77
----

query I rowsort
SELECT ALL + ( 75 ) * - col0 FROM tab2 AS cor0
----
-3450
-4800
-5625

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT - - SUM( DISTINCT + 99 ) col1 FROM tab1 cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6563
SELECT - - SUM ( DISTINCT + 99 ) col1 FROM tab1 cor0
----
99

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

skipif mysql # not compatible
query I rowsort label-6564
SELECT - col2 / - + col2 AS col1 FROM tab1 cor0
----
1
1
1

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

query II rowsort
SELECT ALL col1 * - col0 + - col0 AS col1, - col2 FROM tab0 AS cor0
----
-1230
-47
-1914
-10
-194
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6567
SELECT ALL col1, - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
1
99
21
10
81
47

skipif mysql # not compatible
query II rowsort label-6567
SELECT ALL col1, - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
1
99
21
10
81
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT ALL ( - COUNT( * ) ) * - COUNT( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6569
SELECT ALL ( - COUNT ( * ) ) * - COUNT ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6570
SELECT DISTINCT - 72 DIV - col2 FROM tab2 WHERE - col0 NOT IN ( - 35 + col0 + - col2, - col1, + - 79 )
----
1
3

skipif mysql # not compatible
query I rowsort label-6570
SELECT DISTINCT - 72 / - col2 FROM tab2 WHERE - col0 NOT IN ( - 35 + col0 + - col2, - col1, + - 79 )
----
1
3

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

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

query I rowsort
SELECT ALL - 88 * ( - 50 ) + + + ( - col2 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
4304
4332
4341

query I rowsort
SELECT col0 * col2 AS col2 FROM tab2 WHERE NOT 55 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT 26 * + - COUNT( * ) FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-6574
SELECT 26 * + - COUNT ( * ) FROM tab1
----
-78

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

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

query II rowsort
SELECT DISTINCT - 89, col1 FROM tab1
----
-89
14
-89
47
-89
5

query I rowsort
SELECT col2 + - col0 + + col1 AS col0 FROM tab2 AS cor0
----
28
50
53

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

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

query I rowsort
SELECT + 56 * + col0 AS col1 FROM tab2
----
2576
3584
4200

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 47 * + - col0 <> + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT ALL - COUNT( * ) - - - 72 + - 69 AS col2 FROM tab0
----
-144

skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL - COUNT ( * ) - - - 72 + - 69 AS col2 FROM tab0
----
-144

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6584
SELECT - 89 * + COUNT( * ) col1, 59 FROM tab0
----
-267
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6584
SELECT - 89 * + COUNT ( * ) col1, 59 FROM tab0
----
-267
59

query I rowsort
SELECT DISTINCT col1 + + - col2 AS col0 FROM tab0
----
-98
11
34

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6587
SELECT - COUNT( * ) DIV - COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6587
SELECT - COUNT ( * ) / - COUNT ( * ) FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, - 98 col0 FROM tab0
----
-10
-98
-47
-98
-99
-98

query II rowsort
SELECT DISTINCT + 47, 26 + 97 AS col1 FROM tab0
----
47
123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 * - 97 + - col0 col2 FROM tab1
----
-5580
-5614
-5620

query I rowsort
SELECT 65 - - col2 AS col2 FROM tab2
----
105
123
88

query I rowsort
SELECT DISTINCT + + col1 - + + 94 + - col0 + - 88 + col0 * - + col0 * - + 60 AS col2 FROM tab0 AS cor0
----
13384
453892
564262

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6593
SELECT ALL + + 67 + + COUNT ( * ) col0 FROM tab0 AS cor0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6594
SELECT ALL + - col2 * + CAST( 66 AS SIGNED ) * + - col1 FROM tab2 cor0
----
203280
256476
77418

skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL + - col2 * + CAST ( 66 AS INTEGER ) * + - col1 FROM tab2 cor0
----
203280
256476
77418

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT + 97 * SUM( - col2 ) FROM tab1 cor0
----
-21631

skipif mysql # not compatible
query I rowsort label-6597
SELECT + 97 * SUM ( - col2 ) FROM tab1 cor0
----
-21631

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT DISTINCT - SUM( 34 ) * 60 AS col2 FROM tab2
----
-6120

skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT - SUM ( 34 ) * 60 AS col2 FROM tab2
----
-6120

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

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

query I rowsort
SELECT ALL - ( 79 ) FROM tab0
----
-79
-79
-79

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6602
SELECT ALL 40 DIV - 17 + - col1 AS col0 FROM tab0
----
-23
-3
-83

skipif mysql # not compatible
query I rowsort label-6602
SELECT ALL 40 / - 17 + - col1 AS col0 FROM tab0
----
-23
-3
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6603
SELECT ALL + 71 - + - col1 * CAST( + ( - col1 ) AS SIGNED ) AS col0 FROM tab1 WHERE col2 + col0 * - col1 <= NULL
----

skipif mysql # not compatible
query I rowsort label-6603
SELECT ALL + 71 - + - col1 * CAST ( + ( - col1 ) AS INTEGER ) AS col0 FROM tab1 WHERE col2 + col0 * - col1 <= NULL
----

query I rowsort
SELECT ALL + 90 * col0 FROM tab0 AS cor0
----
1350
7830
8730

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - 10 > col0
----

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

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

query I rowsort
SELECT - col0 AS col2 FROM tab1 cor0 WHERE - col0 / - 79 IS NOT NULL
----
-51
-85
-91

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6608
SELECT ALL - COUNT ( * ) col1, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * - col1 + - 34 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6610
SELECT MIN( col0 ) AS col1, + COUNT( * ) - - MIN( ALL - - col0 ) * - + 8 AS col2 FROM tab1
----
51
-405

skipif mysql # not compatible
query II rowsort label-6610
SELECT MIN ( col0 ) AS col1, + COUNT ( * ) - - MIN ( ALL - - col0 ) * - + 8 AS col2 FROM tab1
----
51
-405

onlyif mysql # aggregate syntax: 
query II rowsort label-6611
SELECT ALL - SUM( ALL + - col0 ) AS col0, COUNT( * ) FROM tab1
----
227
3

skipif mysql # not compatible
query II rowsort label-6611
SELECT ALL - SUM ( ALL + - col0 ) AS col0, COUNT ( * ) FROM tab1
----
227
3

query I rowsort
SELECT ALL + col1 - col0 + col2 FROM tab1 AS cor0
----
-21
24
59

query I rowsort
SELECT - col2 * + ( - col2 ) * - 34 - + - 61 AS col1 FROM tab2 AS cor0
----
-114315
-17925
-54339

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT DISTINCT - MIN( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6614
SELECT DISTINCT - MIN ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-51

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6616
SELECT 79 * MAX( ALL + + 14 ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6616
SELECT 79 * MAX ( ALL + + 14 ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT col2 + col1 + + col1 + + + 3 * col2 FROM tab2
----
194
314
366

query I rowsort
SELECT ALL 86 * col1 FROM tab1
----
1204
4042
430

query III rowsort
SELECT * FROM tab1 WHERE + col2 * + col0 + 96 + 7 >= NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 + + + 81 IS NULL OR NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6622
SELECT + col2 + CAST( - col1 AS SIGNED ) * 47 AS col0 FROM tab0 AS cor0
----
-3760
-977
52

skipif mysql # not compatible
query I rowsort label-6622
SELECT + col2 + CAST ( - col1 AS INTEGER ) * 47 AS col0 FROM tab0 AS cor0
----
-3760
-977
52

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab2 AS cor0 WHERE NOT - 42 >= + col2
----
-23
-40
-58

query II rowsort
SELECT col0 AS col2, + col0 - + + ( - 25 ) * + - col0 AS col1 FROM tab0 AS cor0
----
15
-360
87
-2088
97
-2328

query I rowsort
SELECT + 1 * - - ( + + 15 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

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

skipif mysql # not compatible
query III rowsort label-6627
SELECT * FROM tab1 WHERE NOT + - col2 NOT BETWEEN - col0 AND + CAST ( NULL AS REAL )
----

query I rowsort
SELECT 44 * col1 - col1 FROM tab0 AS cor0
----
3483
43
903

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

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

query I rowsort
SELECT ALL + ( + 82 ) AS col2 FROM tab2 AS cor0
----
82
82
82

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT DISTINCT + MIN( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6634
SELECT DISTINCT + MIN ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL - 58 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT DISTINCT - COUNT( * ) + - 30 FROM tab1 WHERE NULL IS NOT NULL
----
-30

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT - COUNT ( * ) + - 30 FROM tab1 WHERE NULL IS NOT NULL
----
-30

query I rowsort
SELECT DISTINCT - col0 + col1 * 80 AS col2 FROM tab0
----
-17
1593
6465

query I rowsort
SELECT DISTINCT 52 + - 85 * + col1 * + col2 AS col0 FROM tab0
----
-17798
-323543
-8363

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE - col2 <> - 63 + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT DISTINCT col0 - + - 7 AS col2 FROM tab2 AS cor0
----
53
71
82

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 - - + col2 * + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * + 31 IN ( col1, + 34 * + + 25 / - col2 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6653
SELECT DISTINCT - - col0 - - + col1 DIV 84 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-6653
SELECT DISTINCT - - col0 - - + col1 / 84 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6654
SELECT DISTINCT COUNT( * ) * + COUNT( * ) AS col1, 63 FROM tab0 AS cor0 WHERE NULL IS NULL
----
9
63

skipif mysql # not compatible
query II rowsort label-6654
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) AS col1, 63 FROM tab0 AS cor0 WHERE NULL IS NULL
----
9
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT ALL - COUNT( * ) + + - ( 37 ) AS col0 FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL - COUNT ( * ) + + - ( 37 ) AS col0 FROM tab1 AS cor0
----
-40

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6657
SELECT ALL col2 - + ( + col2 ) + col2, col0 DIV + 85 AS col2 FROM tab1
----
59
1
68
1
96
0

skipif mysql # not compatible
query II rowsort label-6657
SELECT ALL col2 - + ( + col2 ) + col2, col0 / + 85 AS col2 FROM tab1
----
59
1
68
1
96
0

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE - 2 < + + 55 - - col0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6659
SELECT DISTINCT CAST( + - col1 AS SIGNED ) - + + col0 * - 99 * + + col1 + + col2 * col0 * col0 + - col2 FROM tab1
----
320272
468286
986416

skipif mysql # not compatible
query I rowsort label-6659
SELECT DISTINCT CAST ( + - col1 AS INTEGER ) - + + col0 * - 99 * + + col1 + + col2 * col0 * col0 + - col2 FROM tab1
----
320272
468286
986416

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6661
SELECT col2 * CAST( + - col0 AS SIGNED ) AS col1 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-6661
SELECT col2 * CAST ( + - col0 AS INTEGER ) AS col1 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT ( - + ( + - col0 ) ) FROM tab2
----
46
64
75

query II rowsort
SELECT col0 * 37, 9 - + col2 AS col0 FROM tab1
----
1887
-87
3145
-50
3367
-59

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

query I rowsort
SELECT DISTINCT col1 * + 23 FROM tab1 AS cor0
----
1081
115
322

query I rowsort
SELECT ALL - 46 * + - ( col1 ) FROM tab0 AS cor0
----
3726
46
966

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col0 ) * + - col2 < + 20
----

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

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

query I rowsort
SELECT - + 16 AS col0 FROM tab2 cor0
----
-16
-16
-16

query I rowsort
SELECT DISTINCT - 84 AS col2 FROM tab1 AS cor0
----
-84

query I rowsort
SELECT DISTINCT - + ( - col1 ) AS col1 FROM tab1 AS cor0
----
14
47
5

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT DISTINCT + MAX( + col0 ) * - 12 AS col0 FROM tab2 AS cor0
----
-900

skipif mysql # not compatible
query I rowsort label-6674
SELECT DISTINCT + MAX ( + col0 ) * - 12 AS col0 FROM tab2 AS cor0
----
-900

query I rowsort
SELECT - 52 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6677
SELECT ALL + ( COUNT( * ) ) * - + 67 AS col0, COUNT( * ) AS col0 FROM tab1 AS cor0
----
-201
3

skipif mysql # not compatible
query II rowsort label-6677
SELECT ALL + ( COUNT ( * ) ) * - + 67 AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-201
3

query I rowsort
SELECT + 42 * + 65 AS col0 FROM tab1 AS cor0
----
2730
2730
2730

query II rowsort
SELECT 60, col1 FROM tab0
----
60
1
60
21
60
81

query I rowsort
SELECT ALL - 37 * + col0 + - col2 AS col0 FROM tab0
----
-3229
-3688
-602

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE col2 <> - 64 + - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT ALL - 90 + + SUM( - col1 ) + + 40 AS col0 FROM tab1
----
-116

skipif mysql # not compatible
query I rowsort label-6686
SELECT ALL - 90 + + SUM ( - col1 ) + + 40 AS col0 FROM tab1
----
-116

query III rowsort
SELECT ALL * FROM tab0 WHERE + 9 + - + col2 / + col0 IS NULL
----

query I rowsort
SELECT ALL col0 + - 54 - - + ( - col2 ) FROM tab0
----
-56
-86
23

query I rowsort
SELECT - 88 + + - col1 AS col1 FROM tab1
----
-102
-135
-93

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 / - + col1 < + - col0
----

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

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

query I rowsort
SELECT col1 + 14 AS col1 FROM tab0 cor0
----
15
35
95

onlyif mysql # DIV for integer division: 
query I rowsort label-6695
SELECT + 90 DIV - col0 + + + 3 FROM tab0 AS cor0
----
-3
2
3

skipif mysql # not compatible
query I rowsort label-6695
SELECT + 90 / - col0 + + + 3 FROM tab0 AS cor0
----
-3
2
3

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

query I rowsort
SELECT ALL + - 6 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT + 12 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE ( + col0 + - 58 + 53 + + + 42 + - - 61 * - col0 / + 40 IS NULL )
----

query I rowsort
SELECT - 59 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT + col2 + + 45 * + col2 * + col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - 89 * col0 * + - col0 - + + col1 * - col1 - - 70 - - - col0 AS col1 FROM tab2 AS cor0
----
190949
370479
505109

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT ALL - COUNT( * ) - - 94 + - - 32 AS col0 FROM tab2 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-6704
SELECT ALL - COUNT ( * ) - - 94 + - - 32 AS col0 FROM tab2 AS cor0
----
123

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <= col0
----

query I rowsort
SELECT + 60 - - ( + + 79 ) FROM tab1 AS cor0
----
139
139
139

onlyif mysql # DIV for integer division: 
query I rowsort label-6707
SELECT 73 DIV 96 DIV + col0 + + col0 - - col1 AS col2 FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-6707
SELECT 73 / 96 / + col0 + + col0 - - col1 AS col2 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT DISTINCT - 9 * + + 20 AS col1 FROM tab0 AS cor0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT ALL COUNT( * ) * - 42 col0 FROM tab2
----
-126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6709
SELECT ALL COUNT ( * ) * - 42 col0 FROM tab2
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT DISTINCT - 96 * + COUNT( * ) AS col0 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-6710
SELECT DISTINCT - 96 * + COUNT ( * ) AS col0 FROM tab1
----
-288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 68 ) * col0 + - col2 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3105
4312
5042

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6712
SELECT DISTINCT CAST( NULL AS SIGNED ), ( + + col2 ) * - col1 AS col1 FROM tab1 AS cor0
----
NULL
-1344
NULL
-295
NULL
-3196

skipif mysql # not compatible
query II rowsort label-6712
SELECT DISTINCT CAST ( NULL AS INTEGER ), ( + + col2 ) * - col1 AS col1 FROM tab1 AS cor0
----
NULL
-1344
NULL
-295
NULL
-3196

query II rowsort
SELECT + col2, col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6715
SELECT ALL + col2 DIV + ( col2 ) AS col2, + col2 + + col0 AS col2 FROM tab1 AS cor0
----
1
144
1
147
1
159

skipif mysql # not compatible
query II rowsort label-6715
SELECT ALL + col2 / + ( col2 ) AS col2, + col2 + + col0 AS col2 FROM tab1 AS cor0
----
1
144
1
147
1
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * - col0 col1, 7 FROM tab0
----
-705
7
-870
7
-9603
7

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE col1 > NULL
----

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

query I rowsort
SELECT + col1 + - + col2 AS col0 FROM tab0
----
-98
11
34

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - col1 + - col0 AS col2 FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT - 83 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

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

query I rowsort
SELECT - col0 + - - 43 * + 37 * - col0 + col0 AS col1 FROM tab0 AS cor0
----
-138417
-154327
-23865

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

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

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

query II rowsort
SELECT col2, col0 * - - col2 * col1 AS col0 FROM tab0 AS cor0
----
10
18270
47
57105
99
9603

query I rowsort
SELECT ALL + + col2 AS col2 FROM tab0 WHERE + - col2 <> NULL
----

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

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

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

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

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

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

query I rowsort
SELECT + col2 * 60 * + col0 AS col2 FROM tab1
----
293760
300900
371280

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

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

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

query I rowsort
SELECT col1 + - - ( + ( - + col2 ) ) + - col2 AS col1 FROM tab0
----
-13
-197
1

query I rowsort
SELECT + 69 * + 66 AS col2 FROM tab0
----
4554
4554
4554

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

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

query I rowsort
SELECT ALL + 16 + + col0 * - col1 FROM tab1 AS cor0
----
-409
-4261
-698

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6745
SELECT - - 47 * + 18 DIV + COUNT( * ) FROM tab0 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-6745
SELECT - - 47 * + 18 / + COUNT ( * ) FROM tab0 AS cor0
----
282

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

query I rowsort
SELECT + + col2 * - 19 FROM tab0 AS cor0
----
-1881
-190
-893

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

query I rowsort
SELECT DISTINCT - 89 * - col1 + + + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1260
4230
450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6750
SELECT DISTINCT - - col2 / 73 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6750
SELECT DISTINCT - - col2 / 73 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6751
SELECT SUM ( DISTINCT - + col2 ) FROM tab2
----
-121

query I rowsort
SELECT + 76 * - 69 * - col2 FROM tab1
----
309396
356592
503424

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

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

query I rowsort
SELECT ALL - col2 + + + col2 + + col2 * 53 FROM tab0
----
2491
5247
530

query I rowsort
SELECT ALL - col1 / - - 10 + - ( + 76 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT DISTINCT - COUNT( - col0 ) FROM tab1 WHERE NOT + col2 * + 9 <= col2 + - col0
----
-3

skipif mysql # not compatible
query I rowsort label-6756
SELECT DISTINCT - COUNT ( - col0 ) FROM tab1 WHERE NOT + col2 * + 9 <= col2 + - col0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6757
SELECT ALL - 54 DIV 95 + + - 0 + col2 AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6757
SELECT ALL - 54 / 95 + + - 0 + col2 AS col2 FROM tab1
----
59
68
96

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) > + 93 * col1 + col1
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6760
SELECT DISTINCT col0 + - col0 AS col1 FROM tab2 cor0 WHERE NOT + CAST( NULL AS SIGNED ) < 62
----

skipif mysql # not compatible
query I rowsort label-6760
SELECT DISTINCT col0 + - col0 AS col1 FROM tab2 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) < 62
----

query II rowsort
SELECT ALL + - col1 AS col2, 93 * + col2 AS col0 FROM tab2 AS cor0
----
-51
2139
-67
5394
-77
3720

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6762
SELECT 70, - col0 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
70
NULL
70
NULL
70
NULL

skipif mysql # not compatible
query II rowsort label-6762
SELECT 70, - col0 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
70
NULL
70
NULL
70
NULL

query II rowsort
SELECT + 99 AS col2, - ( + 68 ) FROM tab0 AS cor0 WHERE NOT - col0 * col1 + + + col1 IS NULL
----
99
-68
99
-68
99
-68

query I rowsort
SELECT 78 AS col1 FROM tab1 cor0
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT ALL 32 * COUNT( * ) FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-6765
SELECT ALL 32 * COUNT ( * ) FROM tab0
----
96

query I rowsort
SELECT + ( + - 47 ) AS col2 FROM tab0
----
-47
-47
-47

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, col1 col2 FROM tab0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT col2 * - col0 * 98 AS col0 FROM tab1
----
-479808
-491470
-606424

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

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

query I rowsort
SELECT ALL - 12 * - col1 FROM tab1
----
168
564
60

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6777
SELECT DISTINCT * FROM tab1 WHERE + col2 + - - 82 = + - CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6777
SELECT DISTINCT * FROM tab1 WHERE + col2 + - - 82 = + - CAST ( - col2 AS INTEGER )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + 96 ) col2, col1 * 34 AS col1 FROM tab1
----
96
1598
96
170
96
476

query I rowsort
SELECT + ( + 78 ) + - 13 + - + 5 AS col1 FROM tab2 AS cor0
----
60
60
60

query I rowsort
SELECT + 93 + + + 33 AS col1 FROM tab0 AS cor0
----
126
126
126

query I rowsort
SELECT DISTINCT col2 - - + col2 FROM tab0 cor0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT ALL MIN( ALL 76 ) AS col2 FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-6783
SELECT ALL MIN ( ALL 76 ) AS col2 FROM tab2 AS cor0
----
76

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

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

query I rowsort
SELECT ALL - col2 + ( + 57 ) AS col2 FROM tab2
----
-1
17
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT 7 * + COUNT( * ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-6786
SELECT 7 * + COUNT ( * ) FROM tab2
----
21

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6787
SELECT * FROM tab1 WHERE - ( + col2 ) * - col2 + ( ( + CAST( NULL AS DECIMAL ) ) ) + 65 * - col0 <> col2
----

skipif mysql # not compatible
query III rowsort label-6787
SELECT * FROM tab1 WHERE - ( + col2 ) * - col2 + ( ( + CAST ( NULL AS REAL ) ) ) + 65 * - col0 <> col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6788
SELECT col1 DIV + + ( - - col1 ) col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6788
SELECT col1 / + + ( - - col1 ) col2 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6789
SELECT COUNT( * ) DIV - COUNT( * ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-6789
SELECT COUNT ( * ) / - COUNT ( * ) FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT - 25 + MIN( ALL col0 ) + - - 33 AS col1 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-6790
SELECT - 25 + MIN ( ALL col0 ) + - - 33 AS col1 FROM tab2 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6791
SELECT + CAST( NULL AS SIGNED ) * - 5 AS col0, 65 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
18 values hashing to 764064264ba8a4b3d8cdba7f612482ea

skipif mysql # not compatible
query II rowsort label-6791
SELECT + CAST ( NULL AS INTEGER ) * - 5 AS col0, 65 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
18 values hashing to 764064264ba8a4b3d8cdba7f612482ea

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( col0 + col0, - 92 - + ( + - col0 ) )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6795
SELECT DISTINCT 91 DIV - 66 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-6795
SELECT DISTINCT 91 / - 66 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT ALL + MAX( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL + MAX ( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6797
SELECT - col0 DIV - 83 + - col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6797
SELECT - col0 / - 83 + - col0 FROM tab2 AS cor0
----
-46
-64
-75

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

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

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

query I rowsort
SELECT 29 * - + col2 FROM tab0
----
-1363
-2871
-290

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT ALL - MIN( + ( + - 76 ) ) FROM tab0 WHERE NOT - col1 IS NULL
----
76

skipif mysql # not compatible
query I rowsort label-6802
SELECT ALL - MIN ( + ( + - 76 ) ) FROM tab0 WHERE NOT - col1 IS NULL
----
76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT - + COUNT( * ) + 33 AS col1 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-6804
SELECT - + COUNT ( * ) + 33 AS col1 FROM tab2 AS cor0
----
30

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6806
SELECT - + COUNT( * ) DIV + 52 * - ( + 81 ) + - - COUNT( * ) * - 4 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-6806
SELECT - + COUNT ( * ) / + 52 * - ( + 81 ) + - - COUNT ( * ) * - 4 FROM tab0 AS cor0
----
-12

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

skipif mysql # not compatible
query I rowsort label-6807
SELECT - COUNT ( * ) + - COUNT ( * ) FROM tab2
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 18 col0, col1 FROM tab1
----
18
14
18
47
18
5

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

query III rowsort
SELECT * FROM tab0 WHERE - col0 BETWEEN + col2 AND + col0 * - col2
----

query III rowsort
SELECT * FROM tab2 WHERE - + col1 <= - - 20 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
51
85
91

query I rowsort
SELECT ALL + 29 + col2 FROM tab1
----
125
88
97

query I rowsort
SELECT 71 FROM tab2 AS cor0 WHERE - col1 BETWEEN + + col1 AND col0
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6816
SELECT DISTINCT - - 11 + - + MAX( DISTINCT + col1 ) DIV COUNT( * ) AS col0, + MIN( + - col1 ) FROM tab0 AS cor0
----
-16
-81

skipif mysql # not compatible
query II rowsort label-6816
SELECT DISTINCT - - 11 + - + MAX ( DISTINCT + col1 ) / COUNT ( * ) AS col0, + MIN ( + - col1 ) FROM tab0 AS cor0
----
-16
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6817
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6817
SELECT ALL - CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT DISTINCT + COUNT( * ) * - 88 AS col1 FROM tab2 AS cor0 WHERE 35 <> 51 + + col1 * + col2
----
-264

skipif mysql # not compatible
query I rowsort label-6818
SELECT DISTINCT + COUNT ( * ) * - 88 AS col1 FROM tab2 AS cor0 WHERE 35 <> 51 + + col1 * + col2
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT ALL - MAX( 0 ) + COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6819
SELECT ALL - MAX ( 0 ) + COUNT ( * ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL col2 + + 81 FROM tab2 cor0
----
104
121
139

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

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

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

query I rowsort
SELECT ALL - - 86 - - col0 FROM tab0 AS cor0
----
101
173
183

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 IN ( + col0 * - col1 - - 33, + col0 * - col1, - + 30 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT DISTINCT COUNT( * ) * - - 30 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-6825
SELECT DISTINCT COUNT ( * ) * - - 30 FROM tab2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT 13 - + COUNT( - + 37 ) AS col1 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-6826
SELECT 13 - + COUNT ( - + 37 ) AS col1 FROM tab1
----
10

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

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

query I rowsort
SELECT col1 + 75 + + col2 FROM tab0
----
106
175
203

query I rowsort
SELECT DISTINCT + col0 * - ( col0 ) AS col2 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT DISTINCT - 57 * SUM( ALL - ( + 54 ) ) FROM tab1
----
9234

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT - 57 * SUM ( ALL - ( + 54 ) ) FROM tab1
----
9234

query I rowsort
SELECT ALL + - col2 - - 26 * + col2 + - + col1 AS col1 FROM tab0 AS cor0
----
1094
229
2474

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6832
SELECT DISTINCT + 29 - - - CAST( - 48 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-6832
SELECT DISTINCT + 29 - - - CAST ( - 48 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
77

query II rowsort
SELECT ALL 89 * + - col1, col1 * + - 93 * + col1 AS col1 FROM tab0 AS cor0
----
-1869
-41013
-7209
-610173
-89
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6834
SELECT ALL + + col1 AS col1 FROM tab1 AS cor0 WHERE 39 NOT IN ( col1 * + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + col0 * - col0, + col0 )
----

skipif mysql # not compatible
query I rowsort label-6834
SELECT ALL + + col1 AS col1 FROM tab1 AS cor0 WHERE 39 NOT IN ( col1 * + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + col0 * - col0, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT ALL MIN( ALL 70 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
70

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL MIN ( ALL 70 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6836
SELECT COUNT( * ) DIV - 70 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6836
SELECT COUNT ( * ) / - 70 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6837
SELECT + - col1 AS col2, col2 * col0 DIV col0 AS col1 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

skipif mysql # not compatible
query II rowsort label-6837
SELECT + - col1 AS col2, col2 * col0 / col0 AS col1 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT col1 * - - col1 FROM tab2 AS cor0
----
2601
4489
5929

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, + col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT + 89 * + 27 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6842
SELECT MAX( - col1 ) / - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6842
SELECT MAX ( - col1 ) / - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 68 + + col0 + col2 * ( - - col2 ) * 93 * + + col1, col2 col1 FROM tab0
----
16640480
47
195455
10
911658
99

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

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

query I rowsort
SELECT DISTINCT 10 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col1 = + - col2 / - - col0
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 46 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

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

skipif mysql # not compatible
query I rowsort label-6849
SELECT - - COUNT ( * ) * - AVG ( + 44 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT ALL 54 + + MIN( - 47 ) + + + 82 AS col2 FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL 54 + + MIN ( - 47 ) + + + 82 AS col2 FROM tab0 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT DISTINCT - COUNT( * ) + 8 + + 72 AS col2 FROM tab0 cor0
----
77

skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT - COUNT ( * ) + 8 + + 72 AS col2 FROM tab0 cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT MAX( ALL - col0 ) col0 FROM tab0
----
-15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT DISTINCT 13 + COUNT( * ) AS col1 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-6854
SELECT DISTINCT 13 + COUNT ( * ) AS col1 FROM tab2
----
16

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > + - col0 + + col0 + - col2
----

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

skipif mysql # not compatible
query I rowsort label-6856
SELECT MAX ( + col2 ) FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6857
SELECT 72 * CAST( + col2 AS SIGNED ) * - - ( col2 ) + - - col1 - ( - col1 ) FROM tab2
----
115354
242342
38190

skipif mysql # not compatible
query I rowsort label-6857
SELECT 72 * CAST ( + col2 AS INTEGER ) * - - ( col2 ) + - - col1 - ( - col1 ) FROM tab2
----
115354
242342
38190

query I rowsort
SELECT - ( + col2 ) * - col2 - - ( - col2 ) AS col0 FROM tab2
----
1560
3306
506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6859
SELECT + col0 AS col0 FROM tab0 WHERE - - CAST( - col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6859
SELECT + col0 AS col0 FROM tab0 WHERE - - CAST ( - col0 AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - 79 col1 FROM tab2
----
-21
-39
-56

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > + 58
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6862
SELECT DISTINCT + COUNT( * ) DIV COUNT( ALL + col0 ) * - 20 + + COUNT( ALL + col1 ) - - 50 AS col2 FROM tab2 cor0
----
33

skipif mysql # not compatible
query I rowsort label-6862
SELECT DISTINCT + COUNT ( * ) / COUNT ( ALL + col0 ) * - 20 + + COUNT ( ALL + col1 ) - - 50 AS col2 FROM tab2 cor0
----
33

query I rowsort
SELECT DISTINCT 92 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
92

query II rowsort
SELECT - 98 * + col0 AS col1, col2 FROM tab2
----
-4508
23
-6272
40
-7350
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6865
SELECT MAX( DISTINCT - col0 ) DIV 68 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6865
SELECT MAX ( DISTINCT - col0 ) / 68 AS col2 FROM tab2
----
0

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * 16 > NULL
----

query I rowsort
SELECT ALL - 78 * + - col0 FROM tab1 AS cor0
----
3978
6630
7098

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6869
SELECT + col0 DIV - CAST( + col0 AS SIGNED ) + col0 AS col1 FROM tab2 cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-6869
SELECT + col0 / - CAST ( + col0 AS INTEGER ) + col0 AS col1 FROM tab2 cor0
----
45
63
74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT + MAX( DISTINCT + + col1 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-6871
SELECT + MAX ( DISTINCT + + col1 ) AS col2 FROM tab2
----
77

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6872
SELECT ALL CAST ( NULL AS INTEGER ) / - col0 col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6873
SELECT - CAST( NULL AS SIGNED ) AS col0, - col1 AS col0 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-6873
SELECT - CAST ( NULL AS INTEGER ) AS col0, - col1 AS col0 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 * - ( - col1 ) + + + col2 + + 40 <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT DISTINCT + + 20 + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - 91 ) - col0 * - + 25 NOT BETWEEN NULL AND NULL
----
20

skipif mysql # not compatible
query I rowsort label-6876
SELECT DISTINCT + + 20 + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - 91 ) - col0 * - + 25 NOT BETWEEN NULL AND NULL
----
20

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 52 <= - col1 * + col2 * + col0 / - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 >= - ( - 12 ) + - + 77
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 77 + + + col0 AS col1 FROM tab0 AS cor0
----
-62
10
20

onlyif mysql # DIV for integer division: 
query I rowsort label-6880
SELECT ALL + col2 DIV 69 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6880
SELECT ALL + col2 / 69 AS col2 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT ALL ( COUNT( + 75 ) ) FROM tab2 WHERE NOT 79 / - col0 + + col1 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL ( COUNT ( + 75 ) ) FROM tab2 WHERE NOT 79 / - col0 + + col1 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6882
SELECT DISTINCT SUM( ALL col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-6882
SELECT DISTINCT SUM ( ALL col2 ) FROM tab0
----
156

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 76 BETWEEN - 83 AND NULL
----

query I rowsort
SELECT DISTINCT 47 * - col0 FROM tab1
----
-2397
-3995
-4277

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT DISTINCT + COUNT( * ) * + 16 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT + COUNT ( * ) * + 16 FROM tab1
----
48

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN ( col0 ) AND ( NULL )
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT col0 > ( + ( col2 ) )
----
14

query I rowsort
SELECT DISTINCT 68 - ( 48 ) FROM tab2 WHERE NOT ( 7 ) NOT IN ( 14 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6890
SELECT DISTINCT CAST( - col1 AS SIGNED ) DIV - col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6890
SELECT DISTINCT CAST ( - col1 AS INTEGER ) / - col1 FROM tab2
----
1

query I rowsort
SELECT DISTINCT - 5 * - col0 AS col2 FROM tab2
----
230
320
375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6892
SELECT - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6892
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE - 73 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col0 ) >= col2
----
85
5
59
91
47
68

query I rowsort
SELECT ALL 78 * + 33 FROM tab1
----
2574
2574
2574

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6898
SELECT ( + COUNT ( * ) ) * COUNT ( * ) + ( COUNT ( * ) ) AS col1 FROM tab2
----
12

query I rowsort
SELECT 17 * ( col1 ) AS col0 FROM tab1
----
238
799
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6900
SELECT 13 * 32 + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - 21 FROM tab1 WHERE ( - 7 + - col1 ) IS NOT NULL
----
-21

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT COUNT( * ) AS col2 FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6903
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE NULL IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( col2 ) ) <= col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6905
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( + 25 AS DECIMAL ) <= ( + 22 - + 33 )
----

skipif mysql # not compatible
query III rowsort label-6905
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( + 25 AS REAL ) <= ( + 22 - + 33 )
----

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT + ( 26 ) / col2 <= ( NULL )
----

query I rowsort
SELECT col1 + + col2 FROM tab1 WHERE NOT + 92 IS NULL
----
110
115
64

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

skipif mysql # not compatible
query I rowsort label-6908
SELECT + CAST ( + 17 AS INTEGER ) AS col2 FROM tab0
----
17
17
17

query I rowsort
SELECT + 3 AS col1 FROM tab2
----
3
3
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6911
SELECT ALL + CAST( - col2 AS SIGNED ) col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6911
SELECT ALL + CAST ( - col2 AS INTEGER ) col1 FROM tab1 AS cor0
----
-59
-68
-96

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6912
SELECT DISTINCT SUM ( DISTINCT col1 ) col1 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL + 47 * col2 AS col1 FROM tab2 AS cor0
----
1081
1880
2726

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= ( + 18 / col2 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6916
SELECT + col1 DIV ( ( 36 ) ) FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6916
SELECT + col1 / ( ( 36 ) ) FROM tab1 AS cor0
----
0
0
1

query III rowsort
SELECT * FROM tab2 WHERE NOT + 86 / - 60 IN ( 98 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-6918
SELECT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1
----
9

query I rowsort
SELECT 7 AS col2 FROM tab0 AS cor0 WHERE NOT ( 6 ) * 15 + + 96 = col2
----
7
7
7

onlyif mysql # DIV for integer division: 
query I rowsort label-6920
SELECT + - 84 DIV col0 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-6920
SELECT + - 84 / col0 FROM tab0 AS cor0
----
-5
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT - SUM( DISTINCT 81 ) * + 36 FROM tab1 AS cor0
----
-2916

skipif mysql # not compatible
query I rowsort label-6921
SELECT - SUM ( DISTINCT 81 ) * + 36 FROM tab1 AS cor0
----
-2916

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) col2 FROM tab2 cor0 WHERE NOT NULL BETWEEN ( col1 + 76 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT DISTINCT - + MIN( DISTINCT - 46 ) + 80 AS col0 FROM tab1 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-6924
SELECT DISTINCT - + MIN ( DISTINCT - 46 ) + 80 AS col0 FROM tab1 AS cor0
----
126

query I rowsort
SELECT ALL - 79 * - col0 FROM tab0 AS cor0
----
1185
6873
7663

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT DISTINCT + COUNT( DISTINCT col0 ) * - SUM( ALL + 77 ) AS col2 FROM tab0 AS cor0
----
-693

skipif mysql # not compatible
query I rowsort label-6926
SELECT DISTINCT + COUNT ( DISTINCT col0 ) * - SUM ( ALL + 77 ) AS col2 FROM tab0 AS cor0
----
-693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 3 col2 FROM tab1 AS cor0 WHERE NOT ( + 41 + col1 ) BETWEEN ( + col1 ) AND 82
----
50

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

query I rowsort
SELECT + 22 * + col2 FROM tab2 cor0
----
1276
506
880

query I rowsort
SELECT ALL 89 * ( + col1 ) FROM tab0 AS cor0
----
1869
7209
89

query I rowsort
SELECT + + 60 * + col2 AS col1 FROM tab2 AS cor0
----
1380
2400
3480

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT - COUNT( ALL col2 ) + 54 AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6934
SELECT - COUNT ( ALL col2 ) + 54 AS col2 FROM tab2 AS cor0
----
51

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

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

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

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

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

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE col2 >= NULL
----

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

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

query I rowsort
SELECT DISTINCT ( col1 ) FROM tab0 WHERE - col2 > - col1
----
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6942
SELECT DISTINCT col0 DIV 19 + col1 FROM tab2
----
53
70
80

skipif mysql # not compatible
query I rowsort label-6942
SELECT DISTINCT col0 / 19 + col1 FROM tab2
----
53
70
80

query I rowsort
SELECT ALL - 23 + - col1 * - ( - col1 ) AS col2 FROM tab1
----
-219
-2232
-48

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6944
SELECT * FROM tab0 WHERE - CAST( NULL AS DECIMAL ) + 5 > NULL
----

skipif mysql # not compatible
query III rowsort label-6944
SELECT * FROM tab0 WHERE - CAST ( NULL AS REAL ) + 5 > NULL
----

query I rowsort
SELECT DISTINCT col0 + + ( + col2 ) FROM tab0
----
196
62
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6946
SELECT DISTINCT col0 + col0 DIV + col0 AS col2 FROM tab2 AS cor0
----
47
65
76

skipif mysql # not compatible
query I rowsort label-6946
SELECT DISTINCT col0 + col0 / + col0 AS col2 FROM tab2 AS cor0
----
47
65
76

query I rowsort
SELECT DISTINCT - - col2 + - col1 + - col2 * col2 FROM tab2 AS cor0
----
-1637
-3373
-557

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

query I rowsort
SELECT DISTINCT + - 50 - - ( col1 ) AS col2 FROM tab0 AS cor0
----
-29
-49
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 42 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT DISTINCT + SUM( + col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-6951
SELECT DISTINCT + SUM ( + col0 ) FROM tab0
----
199

query I rowsort
SELECT - col0 * + col2 + + - 87 FROM tab0
----
-792
-957
-9690

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 38 IS NULL
----

query I rowsort
SELECT DISTINCT + 25 * - 49 + + 18 * col1 AS col2 FROM tab1 AS cor0
----
-1135
-379
-973

query I rowsort
SELECT DISTINCT + - col1 + 77 FROM tab0 AS cor0
----
-4
56
76

query I rowsort
SELECT ALL - col1 - - - col1 FROM tab2 AS cor0
----
-102
-134
-154

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6958
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + ( - - CAST( NULL AS SIGNED ) ) * 19 )
----

skipif mysql # not compatible
query III rowsort label-6958
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + ( - - CAST ( NULL AS INTEGER ) ) * 19 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6959
SELECT * FROM tab0 AS cor0 WHERE - col0 / + 12 * + CAST( NULL AS DECIMAL ) - + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6959
SELECT * FROM tab0 AS cor0 WHERE - col0 / + 12 * + CAST ( NULL AS REAL ) - + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + 47 - 60 + 79 FROM tab2 cor0
----
-28

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 49 NOT IN ( 26 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT ALL + 97 + - - MAX( col0 ) FROM tab2 cor0
----
172

skipif mysql # not compatible
query I rowsort label-6963
SELECT ALL + 97 + - - MAX ( col0 ) FROM tab2 cor0
----
172

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

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

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

query I rowsort
SELECT DISTINCT ( 21 ) FROM tab2
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-6967
SELECT 33 DIV + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6967
SELECT 33 / + col0 FROM tab1
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT - SUM( - + 78 ) AS col0 FROM tab1
----
234

skipif mysql # not compatible
query I rowsort label-6969
SELECT - SUM ( - + 78 ) AS col0 FROM tab1
----
234

query I rowsort
SELECT - 95 FROM tab1 WHERE NOT NULL > + + col0
----

query I rowsort
SELECT DISTINCT - ( + 59 ) FROM tab0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6972
SELECT + 52 / MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6972
SELECT + 52 / MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6974
SELECT DISTINCT + ( - col2 ), - 14 DIV - 79 * - col1 AS col0 FROM tab0 AS cor0
----
-10
0
-47
0
-99
0

skipif mysql # not compatible
query II rowsort label-6974
SELECT DISTINCT + ( - col2 ), - 14 / - 79 * - col1 AS col0 FROM tab0 AS cor0
----
-10
0
-47
0
-99
0

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

query II rowsort
SELECT DISTINCT ( + 30 ) AS col2, + ( col0 ) AS col1 FROM tab2 AS cor0
----
30
46
30
64
30
75

query I rowsort
SELECT - - 46 AS col0 FROM tab2 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6978
SELECT - CAST( + + 28 AS SIGNED ) col1 FROM tab1
----
-28
-28
-28

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

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

query I rowsort
SELECT DISTINCT - 90 + - + 22 - + col2 FROM tab0
----
-122
-159
-211

query I rowsort
SELECT ALL - + col2 + - + col1 AS col1 FROM tab0 AS cor0
----
-100
-128
-31

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6983
SELECT ALL COUNT( * ) DIV COUNT( * ) + + COUNT( * ) + - MAX( ALL col2 ) * - COUNT( * ) col0 FROM tab2 AS cor0
----
178

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6983
SELECT ALL COUNT ( * ) / COUNT ( * ) + + COUNT ( * ) + - MAX ( ALL col2 ) * - COUNT ( * ) col0 FROM tab2 AS cor0
----
178

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE + 80 IN ( - + 99, 26 )
----

query I rowsort
SELECT col0 * + + ( col0 ) FROM tab0 cor0 WHERE NOT 9 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 53 * col0 AS col2 FROM tab1 AS cor0
----
2703
4505
4823

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

query I rowsort
SELECT + 64 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col2 * + ( 52 ) AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6990
SELECT + + col2 DIV + 23 col2 FROM tab2 AS cor0
----
1
1
2

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6994
SELECT + 44 DIV - 99 * COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6994
SELECT + 44 / - 99 * COUNT ( * ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6995
SELECT DISTINCT COUNT( * ) AS col2, + COUNT( DISTINCT 87 ) AS col0 FROM tab1
----
3
1

skipif mysql # not compatible
query II rowsort label-6995
SELECT DISTINCT COUNT ( * ) AS col2, + COUNT ( DISTINCT 87 ) AS col0 FROM tab1
----
3
1

query I rowsort
SELECT col1 + - col0 + + ( + col2 ) + + col1 + - 44 * col2 FROM tab0
----
-1874
-4352
-475

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT - - COUNT( * ) AS col2 FROM tab0 WHERE - col0 NOT BETWEEN - col1 AND 44
----
2

skipif mysql # not compatible
query I rowsort label-6998
SELECT - - COUNT ( * ) AS col2 FROM tab0 WHERE - col0 NOT BETWEEN - col1 AND 44
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT - MIN( ALL 58 ) * + - 43 AS col0 FROM tab0 AS cor0
----
2494

skipif mysql # not compatible
query I rowsort label-7000
SELECT - MIN ( ALL 58 ) * + - 43 AS col0 FROM tab0 AS cor0
----
2494

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - - 97 ) IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7004
SELECT + col2 * - ( CAST( NULL AS SIGNED ) ) AS col1, - col2 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-7004
SELECT + col2 * - ( CAST ( NULL AS INTEGER ) ) AS col1, - col2 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

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

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

query I rowsort
SELECT - col1 * - col0 * ( 44 * ( - col0 * - col2 ) ) FROM tab1 AS cor0 WHERE - col1 * - 26 * + 92 * + col2 IS NOT NULL
----
1164507344
153812736
93780500

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

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

query I rowsort
SELECT + - 42 AS col0 FROM tab2 AS cor0
----
-42
-42
-42

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

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

skipif mysql # not compatible
query I rowsort label-7011
SELECT COUNT ( * ) / 25 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT ALL + MIN( - + 83 ) FROM tab2, tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-7012
SELECT ALL + MIN ( - + 83 ) FROM tab2, tab1 AS cor0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT ALL - COUNT( * ) + - - ( + 80 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7013
SELECT ALL - COUNT ( * ) + - - ( + 80 ) FROM tab2
----
77

query I rowsort
SELECT ALL 70 + + + 42 + + col0 AS col0 FROM tab1 AS cor0
----
163
197
203

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT DISTINCT COUNT( * ) * + 75 * + 59 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7015
SELECT DISTINCT COUNT ( * ) * + 75 * + 59 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
0

query I rowsort
SELECT + - col2 + - 17 - - 49 AS col0 FROM tab2 AS cor0
----
-26
-8
9

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

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

query I rowsort
SELECT ALL col2 * - - col0 + - + 84 AS col1 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7019
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * 69 + CAST( + col2 AS SIGNED ) <= ( 83 + - ( col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7019
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * 69 + CAST ( + col2 AS INTEGER ) <= ( 83 + - ( col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7020
SELECT + col2 DIV + col2 + - 17 AS col0 FROM tab0 AS cor0
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-7020
SELECT + col2 / + col2 + - 17 AS col0 FROM tab0 AS cor0
----
-16
-16
-16

query I rowsort
SELECT + + col2 + + + col1 + - col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL col0 + - col1 - - col2 FROM tab2 AS cor0
----
18
27
66

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

query I rowsort
SELECT ALL col1 + + - col2 * - 3 FROM tab2
----
120
197
241

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT DISTINCT - COUNT( * ) + + 55 AS col1 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-7026
SELECT DISTINCT - COUNT ( * ) + + 55 AS col1 FROM tab1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT SUM( + 0 ) * 37 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7027
SELECT SUM ( + 0 ) * 37 FROM tab2
----
0

query I rowsort
SELECT DISTINCT 21 + + col2 AS col1 FROM tab1
----
117
80
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT 13 * + + 79 * COUNT( * ) col1 FROM tab2
----
3081

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7029
SELECT 13 * + + 79 * COUNT ( * ) col1 FROM tab2
----
3081

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT - COUNT( DISTINCT col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7030
SELECT - COUNT ( DISTINCT col0 ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-7031
SELECT - col0 DIV col1 DIV + - col2, + col2 * - - col1 AS col2 FROM tab1
----
0
1344
0
295
0
3196

skipif mysql # not compatible
query II rowsort label-7031
SELECT - col0 / col1 / + - col2, + col2 * - - col1 AS col2 FROM tab1
----
0
1344
0
295
0
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT ALL + COUNT( * ) + 14 AS col0 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-7032
SELECT ALL + COUNT ( * ) + 14 AS col0 FROM tab2
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7033
SELECT DISTINCT - 45 + - CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
-103
-68
-85

skipif mysql # not compatible
query I rowsort label-7033
SELECT DISTINCT - 45 + - CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
-103
-68
-85

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

query II rowsort
SELECT + + col1 AS col2, ( - col0 ) - - - 33 AS col0 FROM tab0 AS cor0
----
1
-130
21
-120
81
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT ALL - + MIN( + + col2 ) + - - COUNT( * ) + - - 79 + 15 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL - + MIN ( + + col2 ) + - - COUNT ( * ) + - - 79 + 15 FROM tab1 AS cor0
----
38

query I rowsort
SELECT ALL + ( + col1 ) - col0 AS col0 FROM tab0 cor0
----
-66
-96
66

query I rowsort
SELECT ALL col1 * - - col0 - + col0 + - col1 FROM tab2
----
2249
4787
4883

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

query I rowsort
SELECT 36 + - + 15 * - col0 FROM tab2
----
1161
726
996

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT + 85 * + + COUNT( * ) * - COUNT( * ) + - + ( - 51 ) AS col2 FROM tab1
----
-714

skipif mysql # not compatible
query I rowsort label-7041
SELECT + 85 * + + COUNT ( * ) * - COUNT ( * ) + - + ( - 51 ) AS col2 FROM tab1
----
-714

onlyif mysql # aggregate syntax: 
query II rowsort label-7042
SELECT ALL - SUM( + col1 ), 31 - + 19 AS col1 FROM tab2 WHERE NOT 7 <> + col0
----
NULL
12

skipif mysql # not compatible
query II rowsort label-7042
SELECT ALL - SUM ( + col1 ), 31 - + 19 AS col1 FROM tab2 WHERE NOT 7 <> + col0
----
NULL
12

query II rowsort
SELECT DISTINCT - col0 AS col0, + col0 + - + col1 AS col1 FROM tab0
----
-15
-66
-87
66
-97
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT DISTINCT + SUM( - col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-7044
SELECT DISTINCT + SUM ( - col0 ) FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT + + SUM( - 79 ) AS col1 FROM tab0 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-7045
SELECT + + SUM ( - 79 ) AS col1 FROM tab0 AS cor0
----
-237

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

query II rowsort
SELECT ALL + col0, + 43 FROM tab2 AS cor0
----
46
43
64
43
75
43

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

query II rowsort
SELECT DISTINCT - 46 AS col1, col1 AS col1 FROM tab1 cor0
----
-46
14
-46
47
-46
5

query I rowsort
SELECT col1 * - col2 * + 79 + - + col1 * - 56 AS col1 FROM tab1 AS cor0
----
-105392
-23025
-249852

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

skipif mysql # not compatible
query I rowsort label-7051
SELECT ALL COUNT ( * ) / - + 28 FROM tab1
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7054
SELECT ALL + col0 DIV - 95 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7054
SELECT ALL + col0 / - 95 FROM tab2
----
0
0
0

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

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

query II rowsort
SELECT - + col1 + + col0, col2 AS col0 FROM tab0 AS cor0
----
-66
47
66
10
96
99

query I rowsort
SELECT col0 * - col2 + - + 35 AS col0 FROM tab2
----
-1093
-2595
-4385

query I rowsort
SELECT col0 + 13 FROM tab0
----
100
110
28

query I rowsort
SELECT + - 84 - 60 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3676328d75056be335dcb8cc110835b4

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

skipif mysql # not compatible
query I rowsort label-7061
SELECT ( COUNT ( * ) ) AS col1 FROM tab2
----
3

query II rowsort
SELECT DISTINCT ( - col2 ) + col1, col2 FROM tab0
----
-98
99
11
10
34
47

query II rowsort
SELECT DISTINCT col0, col2 FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT - 83 AS col1 FROM tab1 WHERE - - col1 IS NOT NULL
----
-83
-83
-83

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + 49 IN ( + 52, + col2 ) )
----

query I rowsort
SELECT ALL col1 + + 96 FROM tab1 AS cor0
----
101
110
143

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7071
SELECT ( + col0 ) - - col1 * 77 DIV - col0 FROM tab2 AS cor0
----
-28
-39
7

skipif mysql # not compatible
query I rowsort label-7071
SELECT ( + col0 ) - - col1 * 77 / - col0 FROM tab2 AS cor0
----
-28
-39
7

query I rowsort
SELECT col2 - + 27 * col1 FROM tab2
----
-1354
-1751
-2039

query I rowsort
SELECT col2 + + - ( - + col0 ) + - col1 FROM tab2
----
18
27
66

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL BETWEEN + col2 AND - + col0 * - 22
----

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

skipif mysql # not compatible
query I rowsort label-7076
SELECT COUNT ( - col2 ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * col0 + - - col1 col0 FROM tab2 AS cor0
----
-2295
-4851
-4958

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

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) - + 66 FROM tab0 AS cor0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7079
SELECT DISTINCT CAST( - col2 AS SIGNED ) AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7079
SELECT DISTINCT CAST ( - col2 AS INTEGER ) AS col2 FROM tab1
----
-59
-68
-96

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7080
SELECT ALL COUNT ( * ) * + + 1 col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7081
SELECT ALL + - 13 FROM tab1 WHERE NOT + 89 IN ( + CAST( NULL AS SIGNED ), col1 )
----

skipif mysql # not compatible
query I rowsort label-7081
SELECT ALL + - 13 FROM tab1 WHERE NOT + 89 IN ( + CAST ( NULL AS INTEGER ), col1 )
----

query I rowsort
SELECT DISTINCT 49 * 77 FROM tab0
----
3773

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT 58 + + col0 IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 / - + col1 IS NOT NULL )
----

query I rowsort
SELECT - 93 AS col1 FROM tab1 cor0
----
-93
-93
-93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT ALL SUM( - + 41 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7090
SELECT ALL SUM ( - + 41 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT DISTINCT + SUM( + + 90 ) * 35 col1 FROM tab1 cor0
----
9450

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7091
SELECT DISTINCT + SUM ( + + 90 ) * 35 col1 FROM tab1 cor0
----
9450

query I rowsort
SELECT - ( + + col0 ) FROM tab2
----
-46
-64
-75

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

query I rowsort
SELECT + 89 * - + col1 AS col0 FROM tab1
----
-1246
-4183
-445

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT MIN( col2 ) * COUNT( * ) + - 80 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-7095
SELECT MIN ( col2 ) * COUNT ( * ) + - 80 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-8

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

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

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

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

query I rowsort
SELECT + + col2 * col0 + - 82 FROM tab2 AS cor0
----
2478
4268
976

onlyif mysql # DIV for integer division: 
query I rowsort label-7099
SELECT ALL + 7 DIV 45 * col2 col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7099
SELECT ALL + 7 / 45 * col2 col0 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT ALL - col2 * - col0, 30 + - col1 AS col2 FROM tab2 cor0
----
1058
-21
2560
-47
4350
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT - MAX( ALL - - 32 ) FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-7101
SELECT - MAX ( ALL - - 32 ) FROM tab2
----
-32

query I rowsort
SELECT DISTINCT + col1 * + + col0 FROM tab2 WHERE + 89 IS NOT NULL
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7103
SELECT col1 * - ( - col0 ) * + + 90 + - + ( - CAST( NULL AS SIGNED ) ) + - col2 + + + 10 - + - col0 * - - CAST( - col0 AS SIGNED ) / + + 78 + + + col2 * - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7103
SELECT col1 * - ( - col0 ) * + + 90 + - + ( - CAST ( NULL AS INTEGER ) ) + - col2 + + + 10 - + - col0 * - - CAST ( - col0 AS INTEGER ) / + + 78 + + + col2 * - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 94 + 34 AS col2, - col0 FROM tab1
----
128
-51
128
-85
128
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7105
SELECT ALL CAST( - + 10 AS SIGNED ) + 9 + - 64 AS col2 FROM tab0
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL CAST ( - + 10 AS INTEGER ) + 9 + - 64 AS col2 FROM tab0
----
-65
-65
-65

query I rowsort
SELECT 37 + + 89 AS col0 FROM tab2
----
126
126
126

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7109
SELECT col2 + - + 13 DIV + 80 AS col1 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-7109
SELECT col2 + - + 13 / + 80 AS col1 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7110
SELECT DISTINCT COUNT( CAST( NULL AS DECIMAL ) ) col0, 23 FROM tab0 AS cor0
----
0
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7110
SELECT DISTINCT COUNT ( CAST ( NULL AS REAL ) ) col0, 23 FROM tab0 AS cor0
----
0
23

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

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

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

query II rowsort
SELECT DISTINCT + col0, col2 * + + col2 - + 81 * + col1 FROM tab1
----
51
8082
85
3076
91
817

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7114
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0, tab1 AS cor0
----
9

query I rowsort
SELECT - ( + - col2 ) * + col0 + - - col1 FROM tab2
----
1109
2637
4417

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

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

query I rowsort
SELECT - col0 - 80 FROM tab1
----
-131
-165
-171

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7119
SELECT DISTINCT - COUNT( * ) - COUNT( * ) + - 0 AS col2, + COUNT( * ) FROM tab0 AS cor0
----
-6
3

skipif mysql # not compatible
query II rowsort label-7119
SELECT DISTINCT - COUNT ( * ) - COUNT ( * ) + - 0 AS col2, + COUNT ( * ) FROM tab0 AS cor0
----
-6
3

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> col1 / + + col0 + 68
----

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

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

query II rowsort
SELECT col2 * col0 AS col2, col0 * - 9 FROM tab2
----
1058
-414
2560
-576
4350
-675

query I rowsort
SELECT + col0 * col2 * - col1 + - col0 FROM tab1 AS cor0
----
-25160
-290927
-68595

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7125
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 64 + - - CAST( - + 16 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7125
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 64 + - - CAST ( - + 16 AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT ALL 92 * + - 14 AS col0, col2 + - 33 FROM tab0 AS cor0
----
-1288
-23
-1288
14
-1288
66

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7128
SELECT ALL COUNT( DISTINCT - - CAST( + 0 AS SIGNED ) ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7128
SELECT ALL COUNT ( DISTINCT - - CAST ( + 0 AS INTEGER ) ) FROM tab2 AS cor0
----
1

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

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

skipif mysql # not compatible
query I rowsort label-7130
SELECT DISTINCT - COUNT ( - - col2 ) * - 22 FROM tab1
----
66

query I rowsort
SELECT ALL + col2 * + col1 + - - col2 AS col0 FROM tab1 WHERE - col2 IS NOT NULL
----
1440
3264
354

query I rowsort
SELECT DISTINCT - col0 + + - col0 FROM tab2
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT + MIN( ALL col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7133
SELECT + MIN ( ALL col2 ) AS col0 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT + MIN( ALL - - col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7134
SELECT + MIN ( ALL - - col1 ) FROM tab0
----
1

query I rowsort
SELECT ALL 31 + + - col1 AS col1 FROM tab1
----
-16
17
26

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

skipif mysql # not compatible
query I rowsort label-7136
SELECT + SUM ( col2 ) FROM tab2
----
121

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

skipif mysql # not compatible
query I rowsort label-7137
SELECT COUNT ( * ) FROM tab2 WHERE NOT + - 40 = NULL
----
0

query II rowsort
SELECT ALL ( - - col0 ) * + 50 + + 63 + + col0 AS col0, - col0 + col2 FROM tab1
----
2664
45
4398
-26
4704
-23

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7139
SELECT + col1 + CAST ( NULL AS INTEGER ) * + ( 18 ) col2 FROM tab1 AS cor0 WHERE col1 <= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT 11 + + - COUNT( * ) + - + MAX( col1 ) - - + 28 FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-7141
SELECT 11 + + - COUNT ( * ) + - + MAX ( col1 ) - - + 28 FROM tab2 AS cor0
----
-41

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7144
SELECT DISTINCT + col1 * + 78 * + col2 DIV col2 + - col2 FROM tab1
----
331
3598
996

skipif mysql # not compatible
query I rowsort label-7144
SELECT DISTINCT + col1 * + 78 * + col2 / col2 + - col2 FROM tab1
----
331
3598
996

query I rowsort
SELECT + + 90 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT ALL - SUM( + col1 ) * - 1 + + 92 + + COUNT( col2 ) + + + ( - - 51 ) AS col0 FROM tab1 AS cor0
----
212

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL - SUM ( + col1 ) * - 1 + + 92 + + COUNT ( col2 ) + + + ( - - 51 ) AS col0 FROM tab1 AS cor0
----
212

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

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

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

query I rowsort
SELECT DISTINCT col2 * col2 + - 18 FROM tab2 AS cor0 WHERE NOT + col2 * - col2 <= - 23
----

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

query I rowsort
SELECT ALL + 90 - col0 * col2 + - 67 FROM tab2 AS cor0
----
-1035
-2537
-4327

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT + - COUNT( * ) - + MAX( DISTINCT col2 ) FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-7152
SELECT + - COUNT ( * ) - + MAX ( DISTINCT col2 ) FROM tab0 AS cor0
----
-102

query I rowsort
SELECT + - 3 * + col2 - + - col2 * + 80 * - col0 FROM tab1 AS cor0
----
-391968
-401377
-495244

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) - 93 col2 FROM tab2 AS cor0
----
-116
-133
-151

query I rowsort
SELECT + + 25 - - col0 FROM tab0 AS cor0
----
112
122
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + + col2 AS col2, col0 col1 FROM tab0
----
198
97
20
87
94
15

query II rowsort
SELECT DISTINCT - ( + 92 ) AS col0, 17 AS col0 FROM tab0
----
-92
17

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7159
SELECT * FROM tab2 WHERE + CAST( 14 AS SIGNED ) = + + col0 + - 47
----

skipif mysql # not compatible
query III rowsort label-7159
SELECT * FROM tab2 WHERE + CAST ( 14 AS INTEGER ) = + + col0 + - 47
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) * + ( - col2 ) * + col0 col0 FROM tab2
----
-197120
-291450
-53958

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

query III rowsort
SELECT * FROM tab2 WHERE - 73 + + col2 <= + 75
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 + + + col2 <= 64
----
97
1
99

query II rowsort
SELECT ( - 29 ) AS col2, + col2 + - col0 FROM tab0
----
-29
-77
-29
2
-29
32

query I rowsort
SELECT + 63 AS col1 FROM tab1 AS cor0
----
63
63
63

onlyif mysql # aggregate syntax: 
query II rowsort label-7167
SELECT DISTINCT MAX( 70 ), + 91 AS col2 FROM tab2 AS cor0
----
70
91

skipif mysql # not compatible
query II rowsort label-7167
SELECT DISTINCT MAX ( 70 ), + 91 AS col2 FROM tab2 AS cor0
----
70
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7168
SELECT ALL col2 DIV - + CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
1
1
1

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 * + col0 col1 FROM tab0 cor0
----
1155
6699
7469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, 41 + - col2 col1 FROM tab2 AS cor0
----
46
18
64
1
75
-17

query I rowsort
SELECT DISTINCT col1 * - 82 FROM tab2 AS cor0
----
-4182
-5494
-6314

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7177
SELECT + COUNT( * ) * - + SUM( ALL + col1 ) AS col0, + CAST( NULL AS SIGNED ) * 77 AS col1 FROM tab2 AS cor0
----
-585
NULL

skipif mysql # not compatible
query II rowsort label-7177
SELECT + COUNT ( * ) * - + SUM ( ALL + col1 ) AS col0, + CAST ( NULL AS INTEGER ) * 77 AS col1 FROM tab2 AS cor0
----
-585
NULL

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

query II rowsort
SELECT DISTINCT + col1 AS col1, - 35 * - col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

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

query I rowsort
SELECT ALL col2 * - 46 * 53 AS col2 FROM tab1 cor0
----
-143842
-165784
-234048

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

query II rowsort
SELECT DISTINCT 92 AS col2, - col0 FROM tab0 AS cor0
----
92
-15
92
-87
92
-97

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7186
SELECT COUNT( * ) AS col1, - COUNT( * ) AS col0 FROM tab2, tab2 AS cor0
----
9
-9

skipif mysql # not compatible
query II rowsort label-7186
SELECT COUNT ( * ) AS col1, - COUNT ( * ) AS col0 FROM tab2, tab2 AS cor0
----
9
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7187
SELECT SUM( + 9 ) AS col0, + 32 AS col2 FROM tab1
----
27
32

skipif mysql # not compatible
query II rowsort label-7187
SELECT SUM ( + 9 ) AS col0, + 32 AS col2 FROM tab1
----
27
32

query I rowsort
SELECT ALL col0 + - 19 FROM tab0
----
-4
68
78

query I rowsort
SELECT + col1 * + 74 FROM tab1 cor0
----
1036
3478
370

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE col0 * - ( - + col0 ) IS NOT NULL
----
23
40
58

query I rowsort
SELECT 82 * + col0 AS col0 FROM tab1 AS cor0
----
4182
6970
7462

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

skipif mysql # not compatible
query I rowsort label-7192
SELECT + col1 * col2 AS col0 FROM tab1 AS cor0 WHERE + col2 + - col2 IN ( CAST ( + col1 AS INTEGER ) * + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7193
SELECT DISTINCT SUM( - + col1 ) FROM tab1 AS cor0 WHERE NOT col2 <= + CAST( 23 AS SIGNED ) OR NULL IS NOT NULL
----
-66

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT SUM ( - + col1 ) FROM tab1 AS cor0 WHERE NOT col2 <= + CAST ( 23 AS INTEGER ) OR NULL IS NOT NULL
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT DISTINCT + 8 + - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-7194
SELECT DISTINCT + 8 + - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-7195
SELECT col0 * 84 + + 44 + + + col0 DIV - col0, + col0 * - - col0 col1 FROM tab2
----
3907
2116
5419
4096
6343
5625

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7195
SELECT col0 * 84 + + 44 + + + col0 / - col0, + col0 * - - col0 col1 FROM tab2
----
3907
2116
5419
4096
6343
5625

query I rowsort
SELECT col1 + 6 AS col1 FROM tab2
----
57
73
83

query I rowsort
SELECT + + 31 + + - col0 FROM tab1 AS cor0
----
-20
-54
-60

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

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

query II rowsort
SELECT ALL + col1, + 98 AS col2 FROM tab2 AS cor0 WHERE ( NOT + - 54 * - + col0 BETWEEN - 64 AND col1 )
----
51
98
67
98
77
98

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT ALL - + 34 + + SUM( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-137

skipif mysql # not compatible
query I rowsort label-7204
SELECT ALL - + 34 + + SUM ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-137

query I rowsort
SELECT + col0 * col2 * 98 + + - col1 AS col2 FROM tab0 AS cor0
----
69009
85239
941093

onlyif mysql # DIV for integer division: 
query I rowsort label-7206
SELECT ALL + 76 * - col0 - col1 DIV + 62 FROM tab2
----
-3496
-4865
-5701

skipif mysql # not compatible
query I rowsort label-7206
SELECT ALL + 76 * - col0 - col1 / + 62 FROM tab2
----
-3496
-4865
-5701

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 * + 21 * - 17 col1 FROM tab1
----
7140
7140
7140

query I rowsort
SELECT ALL col1 * + 17 FROM tab0
----
1377
17
357

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, col2 * col0 FROM tab0
----
10
870
47
705
99
9603

query II rowsort
SELECT DISTINCT col2, - 92 AS col0 FROM tab2
----
23
-92
40
-92
58
-92

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

skipif mysql # not compatible
query I rowsort label-7211
SELECT ALL + SUM ( + col2 ) FROM tab1
----
223

query I rowsort
SELECT 5 * 3 AS col2 FROM tab0
----
15
15
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7213
SELECT - COUNT( * ), + CAST( 71 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3
71

skipif mysql # not compatible
query II rowsort label-7213
SELECT - COUNT ( * ), + CAST ( 71 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col1, + 39 - - col0 col2 FROM tab1 cor0
----
51
90
85
124
91
130

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

skipif mysql # not compatible
query I rowsort label-7215
SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT ALL - - MIN( DISTINCT 29 ) AS col1 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-7216
SELECT ALL - - MIN ( DISTINCT 29 ) AS col1 FROM tab2 AS cor0
----
29

query I rowsort
SELECT DISTINCT + 39 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL NOT BETWEEN 84 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7218
SELECT - col1 * 71 AS col0, col0 * CAST( NULL AS DECIMAL ) FROM tab0
----
-1491
NULL
-5751
NULL
-71
NULL

skipif mysql # not compatible
query II rowsort label-7218
SELECT - col1 * 71 AS col0, col0 * CAST ( NULL AS REAL ) FROM tab0
----
-1491
NULL
-5751
NULL
-71
NULL

query I rowsort
SELECT ALL + - ( + col0 ) FROM tab1 AS cor0 WHERE NOT + col1 < - - 19
----
-91

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

skipif mysql # not compatible
query I rowsort label-7220
SELECT COUNT ( * ) + + 48 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
48

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT + col1 FROM tab2 cor0 WHERE NOT + 11 <> + col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT MIN( + + col1 ) + 42 AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7224
SELECT MIN ( + + col1 ) + 42 AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND + col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7225
SELECT 56 DIV + + col2 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-7225
SELECT 56 / + + col2 FROM tab0
----
0
1
5

query II rowsort
SELECT ALL - col2 * col2 + - col1, + 82 AS col2 FROM tab2
----
-1677
82
-3431
82
-580
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT MIN( ALL - ( - col0 ) ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-7227
SELECT MIN ( ALL - ( - col0 ) ) AS col0 FROM tab1
----
51

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 48 + + col0 col0 FROM tab1
----
133
139
99

query I rowsort
SELECT ALL - ( - 35 ) * - ( - col1 ) FROM tab1
----
1645
175
490

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7231
SELECT CAST ( NULL AS INTEGER ) + 89 * + + ( - - col1 ) col0 FROM tab0 WHERE + col0 * - col0 + + + col1 NOT IN ( - - col2 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT ALL + 64 * - 96 + MAX( + 92 ) FROM tab2 AS cor0
----
-6052

skipif mysql # not compatible
query I rowsort label-7232
SELECT ALL + 64 * - 96 + MAX ( + 92 ) FROM tab2 AS cor0
----
-6052

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

query I rowsort
SELECT col2 * col1 * - 17 * - + col1 FROM tab0
----
1683
5242239
74970

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7236
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL NOT IN ( CAST( - 15 AS SIGNED ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-7236
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL NOT IN ( CAST ( - 15 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7237
SELECT DISTINCT - 94 + - col1 DIV col1 + - + 25 FROM tab0 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-7237
SELECT DISTINCT - 94 + - col1 / col1 + - + 25 FROM tab0 AS cor0
----
-120

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - col0 - + - 75 + 4 * - - 24 * 61 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7239
SELECT col1 - + col2 + - col1 DIV + col0 * - 62 AS col2 FROM tab1 AS cor0
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-7239
SELECT col1 - + col2 + - col1 / + col0 * - 62 AS col2 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT - + MIN( DISTINCT + col1 ) + 42 FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-7240
SELECT - + MIN ( DISTINCT + col1 ) + 42 FROM tab1 AS cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT ALL 24 + + MAX( 45 ) AS col2 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL 24 + + MAX ( 45 ) AS col2 FROM tab2 AS cor0
----
69

query I rowsort
SELECT + 52 AS col0 FROM tab0 AS cor0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT DISTINCT - 32 * - - COUNT( * ) FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7243
SELECT DISTINCT - 32 * - - COUNT ( * ) FROM tab0 AS cor0
----
-96

query I rowsort
SELECT - 94 FROM tab0 WHERE NOT NULL <> col0
----

query I rowsort
SELECT DISTINCT 29 * + 2 * ( col0 ) AS col0 FROM tab0
----
5046
5626
870

query I rowsort
SELECT ( - + col2 ) * + col0 FROM tab0
----
-705
-870
-9603

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

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

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

query I rowsort
SELECT col2 * + 19 FROM tab0
----
1881
190
893

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

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

query I rowsort
SELECT + + 80 * + 85 AS col0 FROM tab1 cor0
----
6800
6800
6800

query I rowsort
SELECT DISTINCT + - 56 * + col1 * col0 * + + col2 FROM tab0 AS cor0
----
-1023120
-3197880
-537768

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

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

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

query III rowsort
SELECT DISTINCT - col0 AS col0, 77, + 79 AS col0 FROM tab2 AS cor0
----
9 values hashing to 34f67280c41a77d87b376266e01b1df5

query I rowsort
SELECT - + 12 + + col1 + + col0 FROM tab1 cor0
----
126
53
78

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col0 + 68 col2 FROM tab0 AS cor0
----
145
36
66

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

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

query I rowsort
SELECT ALL + 88 * - - col0 FROM tab0
----
1320
7656
8536

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

query I rowsort
SELECT + - 48 FROM tab0 WHERE NULL IS NULL
----
-48
-48
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7264
SELECT DISTINCT ( - 29 ) DIV + COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7264
SELECT DISTINCT ( - 29 ) / + COUNT ( * ) FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT DISTINCT + MIN( ALL + col1 ) + + COUNT( * ) * - 67 AS col2 FROM tab2
----
-150

skipif mysql # not compatible
query I rowsort label-7265
SELECT DISTINCT + MIN ( ALL + col1 ) + + COUNT ( * ) * - 67 AS col2 FROM tab2
----
-150

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

query I rowsort
SELECT ALL col0 + - col2 * - col1 * - 55 FROM tab1
----
-16140
-175689
-73869

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE + 53 - - - 24 IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT DISTINCT - ( + - COUNT( * ) ) + + 55 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
64

skipif mysql # not compatible
query I rowsort label-7271
SELECT DISTINCT - ( + - COUNT ( * ) ) + + 55 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
64

query I rowsort
SELECT col2 FROM tab1 WHERE ( NOT col0 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 93 * col2 * + + 32 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7274
SELECT ALL + + 17 * + CAST( NULL AS SIGNED ) col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7274
SELECT ALL + + 17 * + CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-7275
SELECT col0 DIV - + col0 + - - col1 * + + col0 + + col1 FROM tab2
----
2396
5004
5091

skipif mysql # not compatible
query I rowsort label-7275
SELECT col0 / - + col0 + - - col1 * + + col0 + + col1 FROM tab2
----
2396
5004
5091

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7276
SELECT * FROM tab1 cor0 WHERE NOT ( + col0 ) < - ( - - CAST( + + CAST( + 7 AS DECIMAL ) AS DECIMAL ) ) + + col2
----
85
5
59
91
47
68

skipif mysql # not compatible
query III rowsort label-7276
SELECT * FROM tab1 cor0 WHERE NOT ( + col0 ) < - ( - - CAST ( + + CAST ( + 7 AS REAL ) AS REAL ) ) + + col2
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7277
SELECT DISTINCT - 47 AS col1, CAST( NULL AS SIGNED ) * - + MIN( DISTINCT 74 ) FROM tab0 AS cor0
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-7277
SELECT DISTINCT - 47 AS col1, CAST ( NULL AS INTEGER ) * - + MIN ( DISTINCT 74 ) FROM tab0 AS cor0
----
-47
NULL

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

query II rowsort
SELECT DISTINCT col0 * + 51 + 51 AS col1, - 52 AS col2 FROM tab1 AS cor0
----
2652
-52
4386
-52
4692
-52

query II rowsort
SELECT DISTINCT - col0 AS col1, 30 FROM tab0 AS cor0
----
-15
30
-87
30
-97
30

query I rowsort
SELECT ALL - col2 * - col0 - col2 + + col1 AS col0 FROM tab1 AS cor0
----
4814
4961
6167

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 23 * + col2 col0, + ( col1 ) AS col0 FROM tab1
----
1357
5
1564
47
2208
14

query I rowsort
SELECT col1 FROM tab2 WHERE NOT - 91 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT DISTINCT - SUM( - col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-7286
SELECT DISTINCT - SUM ( - col0 ) FROM tab1
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7287
SELECT 54 * + + CAST( col1 AS SIGNED ) AS col1 FROM tab1
----
2538
270
756

skipif mysql # not compatible
query I rowsort label-7287
SELECT 54 * + + CAST ( col1 AS INTEGER ) AS col1 FROM tab1
----
2538
270
756

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT ALL + SUM( ALL - 50 ) FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-7288
SELECT ALL + SUM ( ALL - 50 ) FROM tab0
----
-150

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

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

query I rowsort
SELECT - - 64 AS col1 FROM tab1 AS cor0
----
64
64
64

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

query I rowsort
SELECT ALL - - 84 * col2 - 73 FROM tab1 cor0
----
4883
5639
7991

query I rowsort
SELECT ALL 95 AS col1 FROM tab2 cor0
----
95
95
95

query I rowsort
SELECT DISTINCT ( - col2 ) * + 21 AS col1 FROM tab0 AS cor0
----
-2079
-210
-987

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT 40 * - - COUNT( * ) FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-7296
SELECT 40 * - - COUNT ( * ) FROM tab2 AS cor0
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-7297
SELECT + - col0 * col1 * col0 DIV - col0 + + 6 + + - col2 + - col2 * + col1 * - - col2 AS col1 FROM tab1 AS cor0
----
-128400
-17033
-213113

skipif mysql # not compatible
query I rowsort label-7297
SELECT + - col0 * col1 * col0 / - col0 + + 6 + + - col2 + - col2 * + col1 * - - col2 AS col1 FROM tab1 AS cor0
----
-128400
-17033
-213113

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT + MIN( - col2 ) + 10 FROM tab2 WHERE ( + col2 > NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7298
SELECT + MIN ( - col2 ) + 10 FROM tab2 WHERE ( + col2 > NULL )
----
NULL

query I rowsort
SELECT - 13 + + + 31 FROM tab2
----
18
18
18

query I rowsort
SELECT DISTINCT 14 * col2 + + 41 - + 26 * - 44 FROM tab1
----
2011
2137
2529

query I rowsort
SELECT ALL - + 49 AS col2 FROM tab1 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT COUNT( DISTINCT + ( + - 67 ) ) + - 65 FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-7302
SELECT COUNT ( DISTINCT + ( + - 67 ) ) + - 65 FROM tab2
----
-64

query I rowsort
SELECT + + ( + col2 ) + + - col0 + - 96 * 68 + col0 FROM tab1 cor0
----
-6432
-6460
-6469

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7305
SELECT * FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7305
SELECT * FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 15 * 25 * - 1 FROM tab0 AS cor0
----
-375
-375
-375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7307
SELECT + + CAST( - col2 AS SIGNED ) * 6 FROM tab2 AS cor0
----
-138
-240
-348

skipif mysql # not compatible
query I rowsort label-7307
SELECT + + CAST ( - col2 AS INTEGER ) * 6 FROM tab2 AS cor0
----
-138
-240
-348

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT ALL SUM( - + col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-7308
SELECT ALL SUM ( - + col2 ) AS col0 FROM tab1 AS cor0
----
-223

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 BETWEEN - + col0 * col2 + + 4 AND - + col1 + col1 + - + col1
----

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

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

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

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

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

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

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

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

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT ( + 60 ) + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT ALL MAX( ALL + col1 ) col1 FROM tab0
----
81

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

query I rowsort
SELECT - col0 * + + col0 FROM tab0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7318
SELECT ALL col0 * CAST( col2 AS SIGNED ) FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-7318
SELECT ALL col0 * CAST ( col2 AS INTEGER ) FROM tab1
----
4896
5015
6188

query I rowsort
SELECT ALL - 76 * 17 AS col0 FROM tab1 AS cor0
----
-1292
-1292
-1292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7320
SELECT col0 * - col2 * + CAST( + col0 AS SIGNED ) AS col1 FROM tab2 cor0
----
-163840
-326250
-48668

skipif mysql # not compatible
query I rowsort label-7320
SELECT col0 * - col2 * + CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 cor0
----
-163840
-326250
-48668

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * 23 - ( + + col0 ) + col0 * - col2 - + col2 * - 40 <> 16
----

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

skipif mysql # not compatible
query I rowsort label-7322
SELECT 89 / - + 92 * COUNT ( * ) FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - - col0 col1 FROM tab2 AS cor0
----
2346
4928
5025

query III rowsort
SELECT * FROM tab1 WHERE NULL < + - ( ( - 59 ) )
----

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

query I rowsort
SELECT DISTINCT + col1 + + col2 + - col0 FROM tab1 cor0
----
-21
24
59

query I rowsort
SELECT DISTINCT + 72 * + 80 + + col0 FROM tab0 AS cor0
----
5775
5847
5857

query I rowsort
SELECT + col1 + - + ( - col0 ) FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT + + SUM( - + ( + col1 ) ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7329
SELECT + + SUM ( - + ( + col1 ) ) FROM tab1 AS cor0
----
-66

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 81 + col1 col2 FROM tab0 WHERE NOT ( col1 ) IS NULL
----
-39
-79
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0, + col1 col2 FROM tab1
----
51
14
85
5
91
47

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

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

query I rowsort
SELECT ALL 10 + - col1 FROM tab2
----
-41
-57
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7335
SELECT + COUNT( + col0 ) DIV - + SUM( + + col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7335
SELECT + COUNT ( + col0 ) / - + SUM ( + + col0 ) FROM tab0
----
0

query I rowsort
SELECT ALL + 43 + - 61 AS col1 FROM tab2
----
-18
-18
-18

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

skipif mysql # not compatible
query I rowsort label-7337
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col0 + col2 + + col0 * 77 AS col0 FROM tab1
----
NULL

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

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

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

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

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

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

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

query I rowsort
SELECT + 68 * - + col0 AS col0 FROM tab0
----
-1020
-5916
-6596

onlyif mysql # aggregate syntax: 
query II rowsort label-7343
SELECT DISTINCT COUNT( * ) * 6 AS col2, + COUNT( * ) FROM tab1
----
18
3

skipif mysql # not compatible
query II rowsort label-7343
SELECT DISTINCT COUNT ( * ) * 6 AS col2, + COUNT ( * ) FROM tab1
----
18
3

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

skipif mysql # not compatible
query II rowsort label-7344
SELECT DISTINCT - COUNT ( * ), + COUNT ( * ) AS col2 FROM tab0
----
-3
3

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7348
SELECT - + 85 * col0 * col1 - col1 col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col0, col0, + 19 * + CAST( NULL AS SIGNED ), - + 66 + col0 * col0 + col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7348
SELECT - + 85 * col0 * col1 - col1 col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col0, col0, + 19 * + CAST ( NULL AS INTEGER ), - + 66 + col0 * col0 + col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT ALL + + SUM( col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
223

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL + + SUM ( col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT SUM( ALL + - 26 ) AS col1 FROM tab2, tab1 cor0
----
-234

skipif mysql # not compatible
query I rowsort label-7351
SELECT SUM ( ALL + - 26 ) AS col1 FROM tab2, tab1 cor0
----
-234

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - 60, col2, - 34, - col2 / col0 )
----

query I rowsort
SELECT col0 * col0 * - + col1 + + 90 FROM tab1 AS cor0
----
-36035
-36324
-389117

query I rowsort
SELECT - col1 + col2 + - col1 * col1 AS col1 FROM tab0 cor0
----
-452
-6595
97

onlyif mysql # aggregate syntax: 
query II rowsort label-7355
SELECT ALL - COUNT( DISTINCT col0 ) + 18, + 21 AS col0 FROM tab2 AS cor0
----
15
21

skipif mysql # not compatible
query II rowsort label-7355
SELECT ALL - COUNT ( DISTINCT col0 ) + 18, + 21 AS col0 FROM tab2 AS cor0
----
15
21

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

query I rowsort
SELECT + + 51 - + col0 FROM tab0 AS cor0
----
-36
-46
36

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT - 43 + 4 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-7361
SELECT - 43 + 4 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 39 + col2 AS col2, - 15 col0 FROM tab1
----
20
-15
29
-15
57
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-7363
SELECT + col1 + + col1 DIV + col2 AS col2 FROM tab0
----
1
23
82

skipif mysql # not compatible
query I rowsort label-7363
SELECT + col1 + + col1 / + col2 AS col2 FROM tab0
----
1
23
82

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7364
SELECT - 6 + - - COUNT ( * ) col0 FROM tab1
----
-3

query I rowsort
SELECT ALL col0 * col2 * + 84 FROM tab0
----
59220
73080
806652

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7366
SELECT DISTINCT 25 DIV + COUNT( * ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-7366
SELECT DISTINCT 25 / + COUNT ( * ) FROM tab0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 39 col1 FROM tab2 WHERE NOT + + col0 * 16 IS NULL
----
39
39
39

query I rowsort
SELECT + 58 * + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
2726
5742
580

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
59
68
96

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND + 9 * + col2
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 67 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query II rowsort label-7372
SELECT DISTINCT - 72 AS col2, + COUNT( * ) + - 55 AS col1 FROM tab2
----
-72
-52

skipif mysql # not compatible
query II rowsort label-7372
SELECT DISTINCT - 72 AS col2, + COUNT ( * ) + - 55 AS col1 FROM tab2
----
-72
-52

query I rowsort
SELECT - 80 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
-80
-80
-80

query I rowsort
SELECT DISTINCT - 74 FROM tab2 cor0
----
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, - col2 - + col2 + - - col1 - + col1 * - + col0 + + 69 FROM tab2 AS cor0
----
46
2420
64
4994
75
5045

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7376
SELECT + 44 DIV + COUNT( * ) FROM tab2 cor0
----
14

skipif mysql # not compatible
query I rowsort label-7376
SELECT + 44 / + COUNT ( * ) FROM tab2 cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT ALL - ( COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7377
SELECT ALL - ( COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT + - ( ( - - col2 ) ) FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT - + COUNT( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7379
SELECT - + COUNT ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - - 23 * + + col0 FROM tab1 AS cor0
----
1173
1955
2093

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7382
SELECT + CAST( NULL AS SIGNED ) + - 47 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7382
SELECT + CAST ( NULL AS INTEGER ) + - 47 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT DISTINCT SUM( DISTINCT col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-7383
SELECT DISTINCT SUM ( DISTINCT col0 ) FROM tab1
----
227

query I rowsort
SELECT DISTINCT 58 + + col2 FROM tab2 WHERE col2 + + col2 IS NULL
----

query I rowsort
SELECT ALL 29 + 75 FROM tab1
----
104
104
104

query II rowsort
SELECT col0, + col0 AS col0 FROM tab2
----
46
46
64
64
75
75

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 42 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 * col2 BETWEEN + col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 74, col0 + - + 34 col1 FROM tab1
----
74
17
74
51
74
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7391
SELECT - 58 AS col0, - CAST( + 24 AS SIGNED ) * col1 col0 FROM tab2 AS cor0
----
-58
-1224
-58
-1608
-58
-1848

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7391
SELECT - 58 AS col0, - CAST ( + 24 AS INTEGER ) * col1 col0 FROM tab2 AS cor0
----
-58
-1224
-58
-1608
-58
-1848

query II rowsort
SELECT DISTINCT 58 AS col0, col0 FROM tab2 AS cor0
----
58
46
58
64
58
75

query I rowsort
SELECT ALL - 93 AS col1 FROM tab2 cor0 WHERE NOT NULL <> - 13
----

query I rowsort
SELECT + + ( - + col0 ) FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-7395
SELECT - 79 DIV + col0 FROM tab0 cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-7395
SELECT - 79 / + col0 FROM tab0 cor0
----
-5
0
0

query I rowsort
SELECT col0 * 59 + 17 FROM tab1
----
3026
5032
5386

query I rowsort
SELECT 10 + 95 AS col1 FROM tab1
----
105
105
105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 81 - + + 95 col0 FROM tab0 AS cor0
----
-13
67
7

query I rowsort
SELECT + + col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + + col0 * - 37 col1 FROM tab1 AS cor0 WHERE 76 IS NOT NULL
----
-181152
-185555
-228956

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7401
SELECT DISTINCT - col0 + - ( col2 ) * - 85 - + col0 - + CAST( NULL AS SIGNED ) * + + ( - col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7401
SELECT DISTINCT - col0 + - ( col2 ) * - 85 - + col0 - + CAST ( NULL AS INTEGER ) * + + ( - col2 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 56 AS col0 FROM tab0 AS cor0 WHERE col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7403
SELECT DISTINCT col1 * col2 + + 24 DIV + - col1 col1 FROM tab0 cor0
----
209
3807
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7403
SELECT DISTINCT col1 * col2 + + 24 / + - col1 col1 FROM tab0 cor0
----
209
3807
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7404
SELECT ALL + ( CAST( NULL AS SIGNED ) ) * MIN( ALL - col1 ) * + COUNT( * ) - + MIN( DISTINCT + col2 ) * COUNT( DISTINCT + col0 ) / - 31, 0 AS col0 FROM tab0 AS cor0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7404
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) * MIN ( ALL - col1 ) * + COUNT ( * ) - + MIN ( DISTINCT + col2 ) * COUNT ( DISTINCT + col0 ) / - 31, 0 AS col0 FROM tab0 AS cor0
----
NULL
0

query I rowsort
SELECT ALL col0 * + - col2 AS col1 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT ALL - COUNT( * ) * + 97 FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-7406
SELECT ALL - COUNT ( * ) * + 97 FROM tab2
----
-291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7407
SELECT 58 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7407
SELECT 58 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7408
SELECT DISTINCT col2 DIV - + col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-7408
SELECT DISTINCT col2 / - + col2 FROM tab1
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 48 * col0 AS col0 FROM tab1
----
2448
4080
4368

query I rowsort
SELECT + col2 * + + col0 AS col0 FROM tab0 WHERE + - col1 IS NOT NULL
----
705
870
9603

query I rowsort
SELECT col0 * + col1 * + col1 - + ( - 5 ) FROM tab2
----
119651
336680
379461

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col2, col1 + - col0 FROM tab2 cor0
----
23
5
40
13
58
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-7415
SELECT DISTINCT + + col0 * col2 DIV - - col2 AS col0 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7415
SELECT DISTINCT + + col0 * col2 / - - col2 AS col0 FROM tab1 cor0
----
51
85
91

query II rowsort
SELECT + col2 AS col2, col0 * + col2 AS col2 FROM tab2 AS cor0
----
23
1058
40
2560
58
4350

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 WHERE NOT ( NULL ) > ( + col2 )
----

query I rowsort
SELECT 64 + 12 FROM tab1
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT ALL 92 * COUNT( * ) FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN + col0 + - 46 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7419
SELECT ALL 92 * COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN + col0 + - 46 AND NULL
----
0

query I rowsort
SELECT ALL col1 - + 26 AS col0 FROM tab1
----
-12
-21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT DISTINCT + COUNT( + col1 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7421
SELECT DISTINCT + COUNT ( + col1 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
3

query III rowsort
SELECT * FROM tab0 WHERE + ( - ( col0 ) ) * + 47 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 53 > col1
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT + 41 FROM tab0 WHERE - col1 * - 5 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT DISTINCT - MIN( + col1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7425
SELECT DISTINCT - MIN ( + col1 ) AS col0 FROM tab0
----
-1

query I rowsort
SELECT - col2 * ( col0 ) + col1 AS col2 FROM tab1 WHERE ( NULL ) IN ( col0 * 42 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * - col2 IS NOT NULL
----

query I rowsort
SELECT - 14 + - 12 FROM tab0
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT - COUNT( DISTINCT ( col0 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7429
SELECT - COUNT ( DISTINCT ( col0 ) ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT 5 + COUNT( * ) AS col2 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-7430
SELECT 5 + COUNT ( * ) AS col2 FROM tab2
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7431
SELECT ALL - 92 * - CAST( NULL AS SIGNED ) + ( - 46 + - 85 ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7431
SELECT ALL - 92 * - CAST ( NULL AS INTEGER ) + ( - 46 + - 85 ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + + col0 AS col0 FROM tab2 WHERE 95 NOT IN ( + 2 + + col2 )
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT 42 + ( + COUNT( * ) ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-7433
SELECT 42 + ( + COUNT ( * ) ) FROM tab0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 99 ) col1 FROM tab0
----
99
99
99

query III rowsort
SELECT * FROM tab1 WHERE + col1 * + col1 = col2
----

query III rowsort
SELECT * FROM tab2 WHERE col1 * col2 > + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT ALL - 89 + + COUNT( * ) AS col0 FROM tab0 WHERE NOT ( 79 * - col2 ) < - col2
----
-89

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL - 89 + + COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( 79 * - col2 ) < - col2
----
-89

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( - col2 * + 30 ) AND col2 * col0
----

query I rowsort
SELECT ALL ( - 88 ) FROM tab2
----
-88
-88
-88

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND + col0 * col2
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 / col1 + col2 BETWEEN NULL AND ( + col2 * col0 + - ( + 45 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 ) BETWEEN ( - col0 + - col0 * - 17 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT SUM( col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-7443
SELECT SUM ( col1 ) AS col0 FROM tab2
----
195

query III rowsort
SELECT * FROM tab2 WHERE ( col0 * col1 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7445
SELECT * FROM tab0 WHERE ( CAST( NULL AS SIGNED ) * col0 ) BETWEEN NULL AND ( - col1 * - col1 + + 94 * 37 )
----

skipif mysql # not compatible
query III rowsort label-7445
SELECT * FROM tab0 WHERE ( CAST ( NULL AS INTEGER ) * col0 ) BETWEEN NULL AND ( - col1 * - col1 + + 94 * 37 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7446
SELECT DISTINCT + CAST( col0 AS SIGNED ) AS col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7446
SELECT DISTINCT + CAST ( col0 AS INTEGER ) AS col1 FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT + ( - col1 ) * ( col2 ) FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> - 45
----

query I rowsort
SELECT - col1 * 5 AS col2 FROM tab1
----
-235
-25
-70

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 52 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7452
SELECT ALL - 80 * 28 FROM tab2 AS cor0 WHERE NOT - CAST( + 90 AS SIGNED ) NOT BETWEEN - col1 * - 14 + - CAST( NULL AS SIGNED ) * + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL - 80 * 28 FROM tab2 AS cor0 WHERE NOT - CAST ( + 90 AS INTEGER ) NOT BETWEEN - col1 * - 14 + - CAST ( NULL AS INTEGER ) * + col1 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= 99 * + 46
----

query I rowsort
SELECT DISTINCT - col2 FROM tab1 cor0 WHERE NOT col2 / col0 - 90 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE NOT - col0 BETWEEN ( 31 - - col1 * col1 ) AND - col0
----
-1
-21
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7456
SELECT DISTINCT ( MAX( + col1 ) ) + - 97 DIV 12 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-7456
SELECT DISTINCT ( MAX ( + col1 ) ) + - 97 / 12 FROM tab0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT ALL - COUNT( * ) + - COUNT( * ) AS col0 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2
----
-6

query I rowsort
SELECT ALL - 90 + col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 80 + - col1 AS col1 FROM tab2 cor0
----
-131
-147
-157

query I rowsort
SELECT + 14 - - col0 * col1 AS col0 FROM tab0 AS cor0
----
111
1229
1841

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 72 + + 53 <> col1 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( + col2 ) + - 3 AS col1 FROM tab1 cor0
----
-62
-71
-99

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE ( + col0 ) = ( 61 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7464
SELECT + col0 - + col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-7464
SELECT + col0 - + col0 / - col0 AS col0 FROM tab0 AS cor0
----
16
88
98

query I rowsort
SELECT DISTINCT + - 93 - - col0 AS col2 FROM tab0 AS cor0
----
-6
-78
4

query I rowsort
SELECT - ( - 74 ) + 24 * - col0 AS col1 FROM tab0 AS cor0
----
-2014
-2254
-286

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7467
SELECT ALL + - CAST( NULL AS DECIMAL ) * COUNT( * ) - + 43 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL + - CAST ( NULL AS REAL ) * COUNT ( * ) - + 43 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7468
SELECT CAST( NULL AS SIGNED ) + ( col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7468
SELECT CAST ( NULL AS INTEGER ) + ( col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 99 * + 29 + + 74 FROM tab2 AS cor0
----
-2797
-2797
-2797

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7470
SELECT - 74 + + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7470
SELECT - 74 + + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7471
SELECT * FROM tab0 WHERE ( ( - CAST( NULL AS SIGNED ) ) ) NOT IN ( ( col0 ) / col2 + + 10 )
----

skipif mysql # not compatible
query III rowsort label-7471
SELECT * FROM tab0 WHERE ( ( - CAST ( NULL AS INTEGER ) ) ) NOT IN ( ( col0 ) / col2 + + 10 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7472
SELECT ALL col0 FROM tab0 WHERE NOT NULL > - CAST( NULL AS SIGNED ) * - col0
----

skipif mysql # not compatible
query I rowsort label-7472
SELECT ALL col0 FROM tab0 WHERE NOT NULL > - CAST ( NULL AS INTEGER ) * - col0
----

query I rowsort
SELECT 27 + - ( col0 ) FROM tab1
----
-24
-58
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT 67 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7474
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT 67 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT ALL MIN( DISTINCT + + 5 ) AS col0 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-7475
SELECT ALL MIN ( DISTINCT + + 5 ) AS col0 FROM tab2
----
5

query I rowsort
SELECT DISTINCT - 17 AS col1 FROM tab1
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-7477
SELECT ( - 60 ) DIV col1 AS col0 FROM tab1
----
-1
-12
-4

skipif mysql # not compatible
query I rowsort label-7477
SELECT ( - 60 ) / col1 AS col0 FROM tab1
----
-1
-12
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT DISTINCT COUNT( + 81 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7478
SELECT DISTINCT COUNT ( + 81 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT + - COUNT( * ) * - 1 col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7479
SELECT + - COUNT ( * ) * - 1 col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT 30 * + - col1 AS col1 FROM tab2 AS cor0
----
-1530
-2010
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT MAX( + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7481
SELECT MAX ( + col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT + ( - 55 ) FROM tab2 AS cor0
----
-55
-55
-55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7483
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST( + col2 AS SIGNED ) + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7483
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST ( + col2 AS INTEGER ) + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 75 NOT BETWEEN ( col2 - + 18 ) AND ( col0 ) )
----
46
51
23
64
77
40

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - - 37 AND NULL
----

query I rowsort
SELECT DISTINCT + - col1 * + + col2 + + col1 FROM tab1 AS cor0
----
-1330
-290
-3149

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7487
SELECT * FROM tab2 cor0 WHERE NOT NULL < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7487
SELECT * FROM tab2 cor0 WHERE NOT NULL < CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col0 * + + 3 FROM tab0 AS cor0
----
261
291
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT - 85 * - COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-7489
SELECT - 85 * - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
258

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 ) >= NULL
----

query I rowsort
SELECT + 90 + col2 FROM tab2 AS cor0
----
113
130
148

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= + ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7492
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= + ( + col1 )
----
0

query I rowsort
SELECT 18 + - - 48 AS col1 FROM tab0 AS cor0
----
66
66
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 45 * col0 col2 FROM tab0 AS cor0
----
31725
39150
432135

onlyif mysql # DIV for integer division: 
query I rowsort label-7495
SELECT ALL 62 DIV + 15 + 4 FROM tab1 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL 62 / + 15 + 4 FROM tab1 AS cor0
----
8
8
8

query I rowsort
SELECT DISTINCT ( col0 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 - col2 FROM tab1 AS cor0 WHERE ( - col0 ) NOT IN ( col2 + + col1 )
----
-45
23
26

query I rowsort
SELECT col1 + col2 FROM tab1 WHERE + - col0 IN ( - 70 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT ALL MAX( DISTINCT - col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL MAX ( DISTINCT - col1 ) FROM tab2
----
-51

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE + 34 / - - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT - MAX( + ( col0 ) ) FROM tab0 WHERE + 69 + - 11 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7501
SELECT - MAX ( + ( col0 ) ) FROM tab0 WHERE + 69 + - 11 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7502
SELECT MIN( ALL + - 98 ) * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7502
SELECT MIN ( ALL + - 98 ) * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col1 * col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT ALL + ( + + COUNT( - col1 ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7505
SELECT ALL + ( + + COUNT ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 * + + col0 + 75 + - col2 NOT BETWEEN col1 + + 70 AND + 18
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 + + 1 + col2 + + col1 * col0 / + 62 <> col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col0 NOT IN ( - - col0 * 54 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( - - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7511
SELECT ALL 85 * - 54 - CAST( NULL AS SIGNED ) / col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7511
SELECT ALL 85 * - 54 - CAST ( NULL AS INTEGER ) / col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + 51 <= ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 93 AND NULL
----

query II rowsort
SELECT col1, + 47 - + 44 AS col1 FROM tab0 AS cor0
----
1
3
21
3
81
3

query I rowsort
SELECT ALL + col0 * + col1 + - col1 * + ( + 86 ) + + col1 FROM tab2 AS cor0
----
-1617
-1989
-670

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 52 + - 97 - + col1 IN ( + - col0 )
----

query II rowsort
SELECT col0 AS col2, col2 * + col0 FROM tab0 cor0
----
15
705
87
870
97
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT ALL - ( + ( + COUNT( * ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7518
SELECT ALL - ( + ( + COUNT ( * ) ) ) FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + 41 / - col2 AND ( + - col0 )
----

query II rowsort
SELECT - col2, + col0 - - 67 AS col0 FROM tab0
----
-10
154
-47
82
-99
164

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7521
SELECT - col0 AS col0, - col1 * - CAST( NULL AS DECIMAL ) FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-7521
SELECT - col0 AS col0, - col1 * - CAST ( NULL AS REAL ) FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT ALL + SUM( DISTINCT + - col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL + SUM ( DISTINCT + - col1 ) FROM tab2
----
-195

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 * col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 76 * - col0 / - 11 NOT BETWEEN ( + 42 ) AND 97
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT - - COUNT( ALL + ( - + 83 ) ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7525
SELECT - - COUNT ( ALL + ( - + 83 ) ) AS col2 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7526
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, 73 FROM tab1 AS cor0
----
NULL
73
NULL
73
NULL
73

skipif mysql # not compatible
query II rowsort label-7526
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, 73 FROM tab1 AS cor0
----
NULL
73
NULL
73
NULL
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 col2 FROM tab2
----
11
11
11

query I rowsort
SELECT DISTINCT + col1 * - col1 * - col2 + + col2 AS col1 FROM tab1
----
150280
1534
18912

query I rowsort
SELECT ALL 74 * ( - + 73 ) AS col2 FROM tab2 cor0
----
-5402
-5402
-5402

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7530
SELECT DISTINCT - ( + - 9 ) * - CAST( NULL AS SIGNED ) * - 78 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7530
SELECT DISTINCT - ( + - 9 ) * - CAST ( NULL AS INTEGER ) * - 78 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + ( 92 ) AS col2 FROM tab1
----
92
92
92

query I rowsort
SELECT - 15 * + 56 FROM tab2
----
-840
-840
-840

query III rowsort
SELECT * FROM tab0 WHERE + col0 <= col2
----
15
81
47
97
1
99

query I rowsort
SELECT DISTINCT 48 + - + col2 FROM tab2
----
-10
25
8

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 NOT IN ( - - col1 * - col2 * - - col1 + - - 70 + col2 + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT 13 + + COUNT( * ) * - 36 + + 63 + 85 * + 93 AS col1 FROM tab2 AS cor0
----
7873

skipif mysql # not compatible
query I rowsort label-7536
SELECT 13 + + COUNT ( * ) * - 36 + + 63 + 85 * + 93 AS col1 FROM tab2 AS cor0
----
7873

query I rowsort
SELECT ALL - + 41 - col2 * ( + + col1 ) * - + ( + col0 ) + - col1 + - - col0 FROM tab1 AS cor0
----
25114
290839
68540

query I rowsort
SELECT DISTINCT 21 * + 11 * 84 FROM tab0
----
19404

query I rowsort
SELECT ALL - - 77 FROM tab1 cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7540
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT ALL + col1 * - 86 AS col2, + col1 AS col2 FROM tab1 AS cor0
----
-1204
14
-4042
47
-430
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 35 col2 FROM tab2 AS cor0
----
-35

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 32 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, 81 FROM tab1
----
51
81
85
81
91
81

query I rowsort
SELECT ALL ( - - col2 ) FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT ALL COUNT( ALL + 74 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7546
SELECT ALL COUNT ( ALL + 74 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT - 27 + + col0 FROM tab2 WHERE NOT - col1 BETWEEN NULL AND - col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) >= + ( col1 ) * - - col0 * - - col0 + + + col2 - ( col0 ) + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7549
SELECT ALL * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7549
SELECT ALL * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * - 64 NOT IN ( - col2, col1 + - col0, - col1 * - col2 + + + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7551
SELECT + COUNT( + + col1 ) DIV + + ( COUNT( * ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7551
SELECT + COUNT ( + + col1 ) / + + ( COUNT ( * ) ) FROM tab1
----
1

query II rowsort
SELECT DISTINCT - col2, col0 * col1 * + - 69 AS col1 FROM tab2
----
-23
-161874
-40
-340032
-58
-346725

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT - MAX( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7553
SELECT - MAX ( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT 95 * + - col0 AS col0 FROM tab1
----
-4845
-8075
-8645

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col0 ) NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT col1, col0 * 45 FROM tab2
----
51
2070
67
3375
77
2880

query I rowsort
SELECT 54 + 94 + + - col0 + col2 * + ( - col0 ) * - - 47 * - col0 FROM tab2
----
15333823
2287498
7700564

query II rowsort
SELECT ALL + col2, - col0 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7559
SELECT 83 * + AVG ( ALL + + CAST( NULL AS SIGNED ) ) + + - COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7559
SELECT 83 * + AVG ( ALL + + CAST ( NULL AS INTEGER ) ) + + - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 21 + - col2 FROM tab1 AS cor0
----
-38
-47
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT ALL + + SUM( DISTINCT + + col2 ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL + + SUM ( DISTINCT + + col2 ) FROM tab1 cor0
----
223

query I rowsort
SELECT - 30 + 45 AS col2 FROM tab2 cor0
----
15
15
15

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + 50 IN ( 28 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7565
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col0 - - CAST( + 16 AS SIGNED ) ) < col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7565
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col0 - - CAST ( + 16 AS INTEGER ) ) < col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 59 AS col2 FROM tab2
----
59

query I rowsort
SELECT DISTINCT + col0 + + + ( - col2 ) * - col2 FROM tab1
----
3566
4715
9267

onlyif mysql # aggregate syntax: 
query II rowsort label-7568
SELECT - COUNT( * ) * + + COUNT( * ) AS col1, COUNT( * ) + ( - COUNT( * ) ) - 5 * - ( + + COUNT( - col1 ) ) FROM tab2
----
-9
15

skipif mysql # not compatible
query II rowsort label-7568
SELECT - COUNT ( * ) * + + COUNT ( * ) AS col1, COUNT ( * ) + ( - COUNT ( * ) ) - 5 * - ( + + COUNT ( - col1 ) ) FROM tab2
----
-9
15

query III rowsort
SELECT * FROM tab2 WHERE col2 BETWEEN - + col1 * col2 * - + 44 AND col2
----

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( col1 / - 75, ( - col1 ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT + col0 + - 18 * + col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7572
SELECT ( - col1 ) DIV ( col1 ) AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7572
SELECT ( - col1 ) / ( col1 ) AS col1 FROM tab0
----
-1
-1
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7573
SELECT - ( ( + CAST( NULL AS DECIMAL ) ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7573
SELECT - ( ( + CAST ( NULL AS REAL ) ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7574
SELECT DISTINCT + - MAX( DISTINCT + col2 ) - - - CAST( NULL AS SIGNED ), ( COUNT( * ) ) col1 FROM tab2 cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7574
SELECT DISTINCT + - MAX ( DISTINCT + col2 ) - - - CAST ( NULL AS INTEGER ), ( COUNT ( * ) ) col1 FROM tab2 cor0
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7575
SELECT * FROM tab2 AS cor0 WHERE 63 <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7575
SELECT * FROM tab2 AS cor0 WHERE 63 <> - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7576
SELECT DISTINCT + COUNT( * ) DIV - COUNT( ALL + 35 ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 < - col2
----
-1

skipif mysql # not compatible
query I rowsort label-7576
SELECT DISTINCT + COUNT ( * ) / - COUNT ( ALL + 35 ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 < - col2
----
-1

query I rowsort
SELECT ALL - col1 - + - col1 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 47 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-47

query II rowsort
SELECT ALL col2 AS col0, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT ALL 7 * COUNT( * ) FROM tab2 cor0
----
21

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL 7 * COUNT ( * ) FROM tab2 cor0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-7581
SELECT - col2 DIV - - col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-7581
SELECT - col2 / - - col0 FROM tab0 AS cor0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT ALL + COUNT( * ) * - - 24 AS col1 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-7582
SELECT ALL + COUNT ( * ) * - - 24 AS col1 FROM tab0
----
72

query I rowsort
SELECT DISTINCT + 76 * - 4 * col1 AS col2 FROM tab0
----
-24624
-304
-6384

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT COUNT( * ) FROM tab0 WHERE NOT ( col0 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7584
SELECT COUNT ( * ) FROM tab0 WHERE NOT ( col0 ) IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7585
SELECT ALL 1 DIV 22 * 97 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7585
SELECT ALL 1 / 22 * 97 FROM tab2
----
0
0
0

query I rowsort
SELECT + - col1 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT 29 * + - col0 FROM tab1
----
-1479
-2465
-2639

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT ALL + MIN( ALL - + ( - + col2 ) ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL + MIN ( ALL - + ( - + col2 ) ) FROM tab1 cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT DISTINCT ( + SUM( DISTINCT 26 ) ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT ( + SUM ( DISTINCT 26 ) ) FROM tab2 AS cor0
----
26

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT - 97 > col2 + - col1
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + ( - - col1 ) col0 FROM tab2 WHERE + ( - 97 ) + - 29 BETWEEN + col1 AND NULL
----

query I rowsort
SELECT DISTINCT 22 + + col0 + - col2 FROM tab2
----
39
45
46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 < - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + 23 AS col1 FROM tab2 AS cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT + MAX( ALL col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7595
SELECT + MAX ( ALL col2 ) FROM tab2 AS cor0
----
58

query II rowsort
SELECT 28, 20 AS col1 FROM tab2 AS cor0
----
28
20
28
20
28
20

query II rowsort
SELECT + 99 - ( - - 68 ) AS col2, col0 FROM tab1 AS cor0
----
31
51
31
85
31
91

query I rowsort
SELECT + 3 - - + col0 * - 13 - 0 FROM tab2 cor0
----
-595
-829
-972

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT DISTINCT + - COUNT( DISTINCT - col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7599
SELECT DISTINCT + - COUNT ( DISTINCT - col1 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT ALL COUNT( * ) * - - 70 FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-7600
SELECT ALL COUNT ( * ) * - - 70 FROM tab0
----
210

onlyif mysql # DIV for integer division: 
query I rowsort label-7601
SELECT ALL 94 + - col0 - - - col1 DIV - 53 FROM tab2
----
20
31
48

skipif mysql # not compatible
query I rowsort label-7601
SELECT ALL 94 + - col0 - - - col1 / - 53 FROM tab2
----
20
31
48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7602
SELECT ( - CAST( NULL AS DECIMAL ) ) + + + 56 + + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7602
SELECT ( - CAST ( NULL AS REAL ) ) + + + 56 + + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + + + col0 * col1 * - col2 AS col2 FROM tab0
----
-18249
-57024
-9602

query I rowsort
SELECT DISTINCT + 16 + + col2 * 92 FROM tab2 AS cor0
----
2132
3696
5352

query I rowsort
SELECT DISTINCT - col1 + - - col1 * col1 FROM tab2 AS cor0
----
2550
4422
5852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7606
SELECT DISTINCT - MIN( - col2 ) * + - CAST( NULL AS DECIMAL ) + - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) - + + MIN( DISTINCT 34 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7606
SELECT DISTINCT - MIN ( - col2 ) * + - CAST ( NULL AS REAL ) + - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) - + + MIN ( DISTINCT 34 ) AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 41, + col0 + col2 AS col1 FROM tab2 AS cor0
----
41
104
41
133
41
69

query I rowsort
SELECT + - 28 * - col0 AS col2 FROM tab1 AS cor0
----
1428
2380
2548

onlyif mysql # aggregate syntax: 
query II rowsort label-7610
SELECT - 14 * + COUNT( * ) AS col0, 7 FROM tab2
----
-42
7

skipif mysql # not compatible
query II rowsort label-7610
SELECT - 14 * + COUNT ( * ) AS col0, 7 FROM tab2
----
-42
7

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col2 * col1 + 20
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7612
SELECT + - CAST( + + 26 AS SIGNED ) col2 FROM tab1 AS cor0
----
-26
-26
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7612
SELECT + - CAST ( + + 26 AS INTEGER ) col2 FROM tab1 AS cor0
----
-26
-26
-26

query I rowsort
SELECT col2 * - 11 + col0 FROM tab2 AS cor0
----
-207
-376
-563

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7614
SELECT ALL - col0 DIV ( + CAST( - col2 AS SIGNED ) ) FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-7614
SELECT ALL - col0 / ( + CAST ( - col2 AS INTEGER ) ) FROM tab0 AS cor0
----
0
0
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT - ( + MAX( DISTINCT - ( 29 ) ) ) FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-7615
SELECT - ( + MAX ( DISTINCT - ( 29 ) ) ) FROM tab2 AS cor0
----
29

query II rowsort
SELECT - col0 AS col0, - col2 * col2 FROM tab0
----
-15
-2209
-87
-100
-97
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT DISTINCT + - COUNT( * ) col0 FROM tab2 WHERE ( NOT col1 >= - col0 * - ( 61 ) )
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7617
SELECT DISTINCT + - COUNT ( * ) col0 FROM tab2 WHERE ( NOT col1 >= - col0 * - ( 61 ) )
----
-3

query I rowsort
SELECT - 69 * + 96 + - + col0 AS col2 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT 28 FROM tab1, tab0 cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 0 * + col0 + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7622
SELECT ALL + col2 DIV col2 + - col1 col0, - col0 - 3 FROM tab2 AS cor0
----
-50
-49
-66
-78
-76
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7622
SELECT ALL + col2 / col2 + - col1 col0, - col0 - 3 FROM tab2 AS cor0
----
-50
-49
-66
-78
-76
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT + 36 * COUNT( * ) col2 FROM tab2 cor0
----
108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7623
SELECT + 36 * COUNT ( * ) col2 FROM tab2 cor0
----
108

query I rowsort
SELECT ALL + col2 * + - col1 + - + 29 * 2 + col1 + - + col2 + + 94 FROM tab0 AS cor0
----
-161
-163
-3737

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7625
SELECT DISTINCT 16 DIV - COUNT( 35 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7625
SELECT DISTINCT 16 / - COUNT ( 35 ) FROM tab1 AS cor0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7626
SELECT ALL 82 DIV + 86 + + col0 col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7626
SELECT ALL 82 / + 86 + + col0 col2 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL + - ( - - 60 ) AS col1 FROM tab2 AS cor0
----
-60
-60
-60

query I rowsort
SELECT 55 + - + col2 FROM tab2 AS cor0
----
-3
15
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7629
SELECT DISTINCT - - ( - - COUNT( * ) ) + AVG ( ALL - - col0 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7629
SELECT DISTINCT - - ( - - COUNT ( * ) ) + AVG ( ALL - - col0 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7630
SELECT ALL + ( + - col0 ) + + col2 + + CAST( NULL AS SIGNED ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL + ( + - col0 ) + + col2 + + CAST ( NULL AS INTEGER ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 35 * col0 - - - col0 * - col1 IS NULL
----

query I rowsort
SELECT - - col0 + + 79 * - 57 FROM tab1 cor0
----
-4412
-4418
-4452

query I rowsort
SELECT ALL 99 * - 14 * col2 AS col0 FROM tab2 AS cor0
----
-31878
-55440
-80388

query I rowsort
SELECT DISTINCT - col1 - - ( + col1 ) AS col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( - - col1 + - + 34 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 30 * col2 AS col1 FROM tab2 cor0
----
1200
1740
690

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col2 AND - 49 + 99
----

query I rowsort
SELECT ( col2 ) + - ( - col2 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7639
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, - COUNT( * ) AS col2 FROM tab1
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-7639
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) AS col2 FROM tab1
----
NULL
-3

query II rowsort
SELECT + + 58, col2 AS col2 FROM tab2 WHERE - - ( + + col1 ) IS NOT NULL
----
58
23
58
40
58
58

query III rowsort
SELECT * FROM tab2 WHERE ( - - 4 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - 31 AS col2, + col0 AS col1 FROM tab1
----
-31
51
-31
85
-31
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7643
SELECT DISTINCT + 34 / + ( + + 49 ) + SUM( ALL + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7643
SELECT DISTINCT + 34 / + ( + + 49 ) + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7644
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7644
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT - COUNT( * ) FROM tab2 WHERE + col0 - + 23 NOT IN ( col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-7645
SELECT - COUNT ( * ) FROM tab2 WHERE + col0 - + 23 NOT IN ( col1 )
----
-3

query I rowsort
SELECT 89 - - - col1 FROM tab2
----
12
22
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT DISTINCT MAX( DISTINCT - - col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-7647
SELECT DISTINCT MAX ( DISTINCT - - col2 ) AS col0 FROM tab2
----
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 BETWEEN + 41 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 + - - 61 + 81 FROM tab1
----
128
137
95

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * + col1 / - col1 - - - col1 BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7651
SELECT ALL - 44 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL - 44 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7652
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab2 cor0
----
3

query I rowsort
SELECT ALL - 6 * + + col2 * - + col0 FROM tab0 AS cor0
----
4230
5220
57618

onlyif mysql # aggregate syntax: 
query II rowsort label-7654
SELECT - 99 AS col1, MAX( + 18 ) AS col2 FROM tab2
----
-99
18

skipif mysql # not compatible
query II rowsort label-7654
SELECT - 99 AS col1, MAX ( + 18 ) AS col2 FROM tab2
----
-99
18

onlyif mysql # aggregate syntax: 
query II rowsort label-7655
SELECT 42 AS col0, COUNT( * ) FROM tab0 WHERE NOT + - col2 IS NOT NULL
----
42
0

skipif mysql # not compatible
query II rowsort label-7655
SELECT 42 AS col0, COUNT ( * ) FROM tab0 WHERE NOT + - col2 IS NOT NULL
----
42
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT + COUNT( ALL - 85 ) * + + MAX( - col1 ) AS col1 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-7656
SELECT + COUNT ( ALL - 85 ) * + + MAX ( - col1 ) AS col1 FROM tab1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT + - COUNT( * ) * - COUNT( 67 ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7657
SELECT + - COUNT ( * ) * - COUNT ( 67 ) FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) + COUNT( * ) FROM tab1 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7658
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) FROM tab1 cor0
----
-6

query II rowsort
SELECT + 41 AS col2, col0 - - + col1 AS col2 FROM tab2 AS cor0
----
41
141
41
142
41
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT ALL - ( SUM( - col0 ) ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-7660
SELECT ALL - ( SUM ( - col0 ) ) AS col0 FROM tab1 AS cor0
----
227

query I rowsort
SELECT DISTINCT 44 * col1 * - + 87 FROM tab1 AS cor0
----
-179916
-19140
-53592

query II rowsort
SELECT + ( - col1 ) AS col1, col0 FROM tab0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT DISTINCT - col2 + - - col2 + + col1 - - col0 * 64 AS col2 FROM tab2
----
2995
4173
4867

query I rowsort
SELECT + col1 * + 11 FROM tab0
----
11
231
891

query I rowsort
SELECT ALL - + col2 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7667
SELECT ALL - col0 * col2 DIV + col2 AS col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7667
SELECT ALL - col0 * col2 / + col2 AS col2 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 >= ( - - ( 22 ) - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 44 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7670
SELECT ALL - 71 * ( + + CAST( MIN( DISTINCT - ( CAST( NULL AS SIGNED ) ) ) AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7670
SELECT ALL - 71 * ( + + CAST ( MIN ( DISTINCT - ( CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 20 + + + col1 AS col1 FROM tab0 AS cor0
----
101
21
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7672
SELECT ALL col2 * + col2, CAST( - - col1 AS SIGNED ) * - - col1 AS col1 FROM tab1 cor0
----
3481
25
4624
2209
9216
196

skipif mysql # not compatible
query II rowsort label-7672
SELECT ALL col2 * + col2, CAST ( - - col1 AS INTEGER ) * - - col1 AS col1 FROM tab1 cor0
----
3481
25
4624
2209
9216
196

query I rowsort
SELECT - col1 + - + col0 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT COUNT( * ) + 66 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-7674
SELECT COUNT ( * ) + 66 FROM tab0 AS cor0
----
69

query I rowsort
SELECT + - col1 FROM tab2 AS cor0 WHERE ( NOT NULL > - 47 * - 92 * + col2 )
----

query I rowsort
SELECT + 58 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT - + 32 * + - col1 - - + col0 * - col1 FROM tab0 AS cor0
----
-1155
-65
1377

onlyif mysql # DIV for integer division: 
query I rowsort label-7678
SELECT DISTINCT - - 93 DIV + + col1 + - 90 * + col0 + - col0 * + + 27 + + + col2 col1 FROM tab0 AS cor0
----
-10165
-11157
-1707

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7678
SELECT DISTINCT - - 93 / + + col1 + - 90 * + col0 + - col0 * + + 27 + + + col2 col1 FROM tab0 AS cor0
----
-10165
-11157
-1707

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT - COUNT( * ) - - COUNT( * ) - + MAX( ALL - col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7679
SELECT - COUNT ( * ) - - COUNT ( * ) - + MAX ( ALL - col1 ) FROM tab1 AS cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - 76 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT DISTINCT - + COUNT( * ) FROM tab0 WHERE NOT - col0 * col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7681
SELECT DISTINCT - + COUNT ( * ) FROM tab0 WHERE NOT - col0 * col1 IS NOT NULL
----
0

query I rowsort
SELECT ALL ( + col2 ) - col2 + + 61 + col2 FROM tab0
----
108
160
71

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 >= + col2
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7684
SELECT CAST( NULL AS DECIMAL ) + COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7684
SELECT CAST ( NULL AS REAL ) + COUNT ( * ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7685
SELECT - ( + 48 ) col1, COUNT( * ) FROM tab0 AS cor0
----
-48
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7685
SELECT - ( + 48 ) col1, COUNT ( * ) FROM tab0 AS cor0
----
-48
3

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE NULL BETWEEN + col0 AND - col0 * - - 16
----

query I rowsort
SELECT DISTINCT - col2 * + - ( 55 ) AS col1 FROM tab2 cor0
----
1265
2200
3190

query I rowsort
SELECT + col2 * + ( + ( - col2 ) ) + col0 AS col1 FROM tab0 AS cor0
----
-13
-2194
-9704

query I rowsort
SELECT + + col0 * - - 77 * + col0 AS col0 FROM tab2 AS cor0
----
162932
315392
433125

query I rowsort
SELECT - + col0 * - 26 AS col0 FROM tab0 AS cor0 WHERE NOT - 0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col2 * + - col1 + 19 * - col0 FROM tab2 AS cor0
----
-2047
-4296
-5311

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 18 <> + - 45 + + - ( - 37 ) * - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + AVG ( DISTINCT - col0 ) col1 FROM tab0 AS cor0 WHERE - col2 + col2 + - col2 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 79 + - + col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7695
SELECT 24 * CAST( NULL AS DECIMAL ) * + col2 + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7695
SELECT 24 * CAST ( NULL AS REAL ) * + col2 + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT + - COUNT( * ) * - 38 + - MIN( ALL - 0 ) FROM tab1 cor0
----
114

skipif mysql # not compatible
query I rowsort label-7696
SELECT + - COUNT ( * ) * - 38 + - MIN ( ALL - 0 ) FROM tab1 cor0
----
114

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT - 6 + - col0 IS NULL
----
-15
-87
-97

query II rowsort
SELECT 45, col1 * + col0 AS col0 FROM tab1
----
45
425
45
4277
45
714

query III rowsort
SELECT * FROM tab0 WHERE - + 52 >= NULL
----

query II rowsort
SELECT 63, 94 AS col1 FROM tab0
----
63
94
63
94
63
94

query I rowsort
SELECT ALL - + col2 FROM tab2 WHERE + 2 * + 28 IN ( ( + 89 ), col1 + - col1, + ( + col0 ), + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7703
SELECT ALL col2 AS col1, col1 + col0 DIV - 4 + col1 FROM tab1 AS cor0
----
59
-11
68
72
96
16

skipif mysql # not compatible
query II rowsort label-7703
SELECT ALL col2 AS col1, col1 + col0 / - 4 + col1 FROM tab1 AS cor0
----
59
-11
68
72
96
16

query I rowsort
SELECT - 55 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7705
SELECT + CAST( NULL AS SIGNED ) * + 25 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7705
SELECT + CAST ( NULL AS INTEGER ) * + 25 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - - 48 FROM tab0
----
-51
1
38

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE - 81 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7708
SELECT + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT DISTINCT col0 * - + col1 + - - 25 AS col0 FROM tab0
----
-1190
-1802
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT 62 + - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
53

skipif mysql # not compatible
query I rowsort label-7710
SELECT 62 + - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT + + ( - - 70 ) * - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-630

skipif mysql # not compatible
query I rowsort label-7711
SELECT + + ( - - 70 ) * - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7712
SELECT + MAX( + CAST( + - col2 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7712
SELECT + MAX ( + CAST ( + - col2 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE - col2 - col0 < - col0
----
3

skipif mysql # not compatible
query I rowsort label-7713
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE - col2 - col0 < - col0
----
3

query I rowsort
SELECT ALL + col2 * + - 19 + - + 42 FROM tab0 AS cor0
----
-1923
-232
-935

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT DISTINCT MAX( + 15 ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7715
SELECT DISTINCT MAX ( + 15 ) FROM tab1 AS cor0
----
15

query I rowsort
SELECT DISTINCT - col1 - - col0 + - 89 FROM tab2 AS cor0
----
-102
-81
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT ALL - + 16 + COUNT( + 53 ) col0 FROM tab2 AS cor0 WHERE col2 + + col0 + col2 IS NOT NULL
----
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7717
SELECT ALL - + 16 + COUNT ( + 53 ) col0 FROM tab2 AS cor0 WHERE col2 + + col0 + col2 IS NOT NULL
----
-13

query II rowsort
SELECT DISTINCT col2 AS col1, + ( - ( 18 ) ) FROM tab0
----
10
-18
47
-18
99
-18

query III rowsort
SELECT * FROM tab1 WHERE NOT 63 / + 55 NOT BETWEEN ( + col1 ) AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 5 AS col1, + ( + 56 ) col2 FROM tab1
----
5
56
5
56
5
56

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = + col0 + col1 * + 88
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7722
SELECT col2 FROM tab2 WHERE NOT NULL > + col2 / - col2 - + + 65 + - col2 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7722
SELECT col2 FROM tab2 WHERE NOT NULL > + col2 / - col2 - + + 65 + - col2 * CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-7723
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) FROM tab1
----
-9

query I rowsort
SELECT DISTINCT col0 * + 68 FROM tab1
----
3468
5780
6188

onlyif mysql # aggregate syntax: 
query II rowsort label-7725
SELECT DISTINCT - 4 AS col1, + COUNT( ALL - 46 ) + - + ( + - 64 ) FROM tab0 AS cor0
----
-4
67

skipif mysql # not compatible
query II rowsort label-7725
SELECT DISTINCT - 4 AS col1, + COUNT ( ALL - 46 ) + - + ( + - 64 ) FROM tab0 AS cor0
----
-4
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT ALL - - COUNT( ALL col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7726
SELECT ALL - - COUNT ( ALL col2 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 66 * - + 55 > + 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT MIN( DISTINCT col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7728
SELECT MIN ( DISTINCT col0 ) AS col0 FROM tab0
----
15

query I rowsort
SELECT DISTINCT - + 32 FROM tab2 cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT DISTINCT MIN( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7730
SELECT DISTINCT MIN ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7731
SELECT + CAST( - + COUNT( * ) AS SIGNED ) DIV - - 77 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7731
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) / - - 77 FROM tab1
----
0

query I rowsort
SELECT col2 * + + col2 AS col0 FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT SUM( + 95 ) FROM tab0
----
285

skipif mysql # not compatible
query I rowsort label-7733
SELECT SUM ( + 95 ) FROM tab0
----
285

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col1 * + - ( ( - col2 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 6 + col0 col0 FROM tab1
----
45
79
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7736
SELECT CAST( NULL AS SIGNED ), col1 AS col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-7736
SELECT CAST ( NULL AS INTEGER ), col1 AS col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT - 63 + - + COUNT( * ) + SUM( ALL col2 ) FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-7737
SELECT - 63 + - + COUNT ( * ) + SUM ( ALL col2 ) FROM tab2
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-7738
SELECT + col2 + + col0 + + + col1 DIV + ( + col0 ) * + 1 AS col0 FROM tab2
----
105
133
70

skipif mysql # not compatible
query I rowsort label-7738
SELECT + col2 + + col0 + + + col1 / + ( + col0 ) * + 1 AS col0 FROM tab2
----
105
133
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7739
SELECT DISTINCT CAST( - 73 AS SIGNED ) AS col2 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-7739
SELECT DISTINCT CAST ( - 73 AS INTEGER ) AS col2 FROM tab1
----
-73

query III rowsort
SELECT * FROM tab0 WHERE + + col2 IS NULL
----

query I rowsort
SELECT ALL - ( - col1 ) + col2 FROM tab1 cor0
----
110
115
64

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7742
SELECT * FROM tab2 AS cor0 WHERE - ( + CAST( col2 AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7742
SELECT * FROM tab2 AS cor0 WHERE - ( + CAST ( col2 AS REAL ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT + MAX( DISTINCT col1 ) + - 39 FROM tab0 WHERE col2 + + 25 <= + col1
----
42

skipif mysql # not compatible
query I rowsort label-7743
SELECT + MAX ( DISTINCT col1 ) + - 39 FROM tab0 WHERE col2 + + 25 <= + col1
----
42

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + 25 * 57 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2d138a954f76fb8346ff828a061b6f6a

query III rowsort
SELECT * FROM tab0 WHERE - + col1 IN ( + col2, + col2 / + col1 * - col0 + + - 43, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT ALL COUNT( * ) + - - 68 AS col0 FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-7747
SELECT ALL COUNT ( * ) + - - 68 AS col0 FROM tab0
----
71

query I rowsort
SELECT ALL + + 22 - - 11 * + 99 FROM tab1 AS cor0
----
1111
1111
1111

query I rowsort
SELECT 13 * col2 + + col2 FROM tab2 AS cor0
----
322
560
812

query I rowsort
SELECT - col0 * + + 13 + 84 FROM tab1 AS cor0
----
-1021
-1099
-579

onlyif mysql # aggregate syntax: 
query II rowsort label-7751
SELECT + 83 col0, MAX( ALL + col1 ) FROM tab2 AS cor0
----
83
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7751
SELECT + 83 col0, MAX ( ALL + col1 ) FROM tab2 AS cor0
----
83
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7752
SELECT + + col2 FROM tab0 AS cor0 WHERE NOT - col1 = - + col1 * - CAST( NULL AS SIGNED ) / + + col2 * + ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-7752
SELECT + + col2 FROM tab0 AS cor0 WHERE NOT - col1 = - + col1 * - CAST ( NULL AS INTEGER ) / + + col2 * + ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT + SUM( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-7753
SELECT + SUM ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
227

query II rowsort
SELECT DISTINCT + 87, - col0 AS col0 FROM tab0 AS cor0
----
87
-15
87
-87
87
-97

query I rowsort
SELECT DISTINCT col0 * col0 * - + col0 FROM tab2 AS cor0
----
-262144
-421875
-97336

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT + 69 * MAX( 28 ) AS col1 FROM tab1
----
1932

skipif mysql # not compatible
query I rowsort label-7756
SELECT + 69 * MAX ( 28 ) AS col1 FROM tab1
----
1932

query I rowsort
SELECT + col2 * - 35 AS col1 FROM tab1
----
-2065
-2380
-3360

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col1 * - col0 NOT BETWEEN - 90 AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 38 ) col2 FROM tab2
----
38
38
38

query III rowsort
SELECT * FROM tab0 WHERE NOT 73 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT DISTINCT ( + COUNT( * ) ) * - 12 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-7761
SELECT DISTINCT ( + COUNT ( * ) ) * - 12 FROM tab1
----
-36

query II rowsort
SELECT DISTINCT col0 * - col1 AS col1, col0 AS col1 FROM tab0
----
-1215
15
-1827
87
-97
97

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT ( - 33 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 10 * - 95 AS col1 FROM tab0
----
-950
-950
-950

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 * + 46 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( - - 93 ) * + 23 * col0 * + - 41 FROM tab1
----
-4472649
-7454415
-7980609

query I rowsort
SELECT - col2 * + + col2 AS col0 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT col0 * + 47 FROM tab2 AS cor0
----
2162
3008
3525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7770
SELECT DISTINCT - 40 * + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7770
SELECT DISTINCT - 40 * + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7771
SELECT + + CAST( NULL AS SIGNED ) + + ( - COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7771
SELECT + + CAST ( NULL AS INTEGER ) + + ( - COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7772
SELECT DISTINCT 55 DIV SUM( DISTINCT col2 ) col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7772
SELECT DISTINCT 55 / SUM ( DISTINCT col2 ) col2 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7773
SELECT DISTINCT + CAST( - - COUNT( * ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7773
SELECT DISTINCT + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1
----
3

query I rowsort
SELECT - - 43 + - 28 AS col2 FROM tab0 AS cor0
----
15
15
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7775
SELECT + col0 + - col1 DIV - ( + - 56 ) - col1 DIV + col2 FROM tab2 AS cor0
----
44
62
73

skipif mysql # not compatible
query I rowsort label-7775
SELECT + col0 + - col1 / - ( + - 56 ) - col1 / + col2 FROM tab2 AS cor0
----
44
62
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT + 87 + - - SUM( DISTINCT - col0 ) FROM tab2 cor0
----
-98

skipif mysql # not compatible
query I rowsort label-7776
SELECT + 87 + - - SUM ( DISTINCT - col0 ) FROM tab2 cor0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT ALL - MIN( - 55 ) FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-7777
SELECT ALL - MIN ( - 55 ) FROM tab0 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT - + 20 + - + COUNT( * ) col2 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7778
SELECT - + 20 + - + COUNT ( * ) col2 FROM tab1 AS cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 66, + 24 col0 FROM tab0 AS cor0
----
-66
24
-66
24
-66
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7780
SELECT ALL - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7780
SELECT ALL - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT 37 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7781
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 37 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT ALL ( COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7782
SELECT ALL ( COUNT ( * ) ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT COUNT( - - col2 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7783
SELECT COUNT ( - - col2 ) col1 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7784
SELECT col1 DIV 47 * - + 43 AS col0 FROM tab0
----
-43
0
0

skipif mysql # not compatible
query I rowsort label-7784
SELECT col1 / 47 * - + 43 AS col0 FROM tab0
----
-43
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT ALL - 36 - + COUNT( * ) AS col0 FROM tab1 cor0
----
-39

skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL - 36 - + COUNT ( * ) AS col0 FROM tab1 cor0
----
-39

query I rowsort
SELECT DISTINCT 24 * col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 * + col2 col0 FROM tab1
----
1152
708
816

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT ALL 47 + MIN( + col2 ) AS col0 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL 47 + MIN ( + col2 ) AS col0 FROM tab2
----
70

query I rowsort
SELECT - 81 FROM tab1 AS cor0 WHERE NOT + 65 IS NULL
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT ALL 69 * + COUNT( * ) FROM tab1 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-7790
SELECT ALL 69 * + COUNT ( * ) FROM tab1 AS cor0
----
207

onlyif mysql # aggregate syntax: 
query II rowsort label-7791
SELECT ALL 54 AS col1, + COUNT( * ) FROM tab0
----
54
3

skipif mysql # not compatible
query II rowsort label-7791
SELECT ALL 54 AS col1, + COUNT ( * ) FROM tab0
----
54
3

query I rowsort
SELECT DISTINCT col0 * - 25 FROM tab0
----
-2175
-2425
-375

query I rowsort
SELECT DISTINCT + 79 AS col1 FROM tab2
----
79

onlyif mysql # DIV for integer division: 
query III rowsort label-7794
SELECT col1, - col2 DIV + 65 * - col1, + col0 AS col1 FROM tab2
----
9 values hashing to bb0d2ad22de210584d96e2d9252208bf

skipif mysql # not compatible
query III rowsort label-7794
SELECT col1, - col2 / + 65 * - col1, + col0 AS col1 FROM tab2
----
9 values hashing to bb0d2ad22de210584d96e2d9252208bf

query II rowsort
SELECT ALL 23, - col1 AS col1 FROM tab0
----
23
-1
23
-21
23
-81

query I rowsort
SELECT + 52 * + 38 AS col1 FROM tab0
----
1976
1976
1976

query I rowsort
SELECT DISTINCT + col0 * - col0 * + + ( - col1 ) AS col0 FROM tab2
----
107916
315392
376875

query I rowsort
SELECT DISTINCT 99 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
99

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 21 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 31 AS col0 FROM tab1 AS cor0 WHERE NOT 23 * + - col2 NOT BETWEEN NULL AND ( - col0 + col0 + + + 70 * - 75 + col2 + + - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7801
SELECT ALL - 93 * - COUNT( * ), - COUNT( * ) AS col0 FROM tab2 cor0
----
279
-3

skipif mysql # not compatible
query II rowsort label-7801
SELECT ALL - 93 * - COUNT ( * ), - COUNT ( * ) AS col0 FROM tab2 cor0
----
279
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT + MIN( ALL 61 ) FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-7802
SELECT + MIN ( ALL 61 ) FROM tab2
----
61

query II rowsort
SELECT ALL col0 + - + 20 AS col0, col2 - - - 29 AS col2 FROM tab2
----
26
-6
44
11
55
29

query I rowsort
SELECT DISTINCT col0 + + col0 + + + 31 FROM tab1 AS cor0
----
133
201
213

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 97 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-7806
SELECT ALL 80 DIV - + 11, 16 AS col0 FROM tab2 cor0
----
-7
16
-7
16
-7
16

skipif mysql # not compatible
query II rowsort label-7806
SELECT ALL 80 / - + 11, 16 AS col0 FROM tab2 cor0
----
-7
16
-7
16
-7
16

query II rowsort
SELECT DISTINCT + col0 + - + 61 AS col2, col1 AS col2 FROM tab2 AS cor0
----
-15
51
14
67
3
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 + - 68 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7809
SELECT + CAST( + + 77 AS SIGNED ) * + + col1 AS col2, + ( + 91 ) col1 FROM tab0 AS cor0
----
1617
91
6237
91
77
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7809
SELECT + CAST ( + + 77 AS INTEGER ) * + + col1 AS col2, + ( + 91 ) col1 FROM tab0 AS cor0
----
1617
91
6237
91
77
91

query I rowsort
SELECT col0 + - ( col0 ) + - 25 FROM tab0
----
-25
-25
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-7811
SELECT DISTINCT col2 DIV - - 98 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7811
SELECT DISTINCT col2 / - - 98 col2 FROM tab2
----
0

query I rowsort
SELECT 85 + - col2 FROM tab0
----
-14
38
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 7 col2, col2 + + - 88 FROM tab1
----
7
-20
7
-29
7
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT 93 + COUNT( * ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-7814
SELECT 93 + COUNT ( * ) FROM tab2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT DISTINCT COUNT( * ) + + - 96 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-7815
SELECT DISTINCT COUNT ( * ) + + - 96 FROM tab2
----
-93

query I rowsort
SELECT ( - + 88 ) AS col1 FROM tab2 AS cor0
----
-88
-88
-88

query II rowsort
SELECT DISTINCT - + col0 AS col2, col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query I rowsort
SELECT DISTINCT + + 82 * + - col2 + + + 60 FROM tab0 AS cor0
----
-3794
-760
-8058

query I rowsort
SELECT DISTINCT 70 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - ( 18 ) * col2 + col0 AS col0 FROM tab1 AS cor0
----
-1133
-1677
-977

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7821
SELECT DISTINCT 88 * col1 + - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7821
SELECT DISTINCT 88 * col1 + - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 55 * + 78 * - col1 AS col1 FROM tab2 cor0
----
218790
287430
330330

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT MIN( DISTINCT - 99 ) AS col0 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7823
SELECT MIN ( DISTINCT - 99 ) AS col0 FROM tab0 cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT - MAX( ALL + + ( - col1 ) ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7824
SELECT - MAX ( ALL + + ( - col1 ) ) AS col0 FROM tab1 AS cor0
----
5

query II rowsort
SELECT DISTINCT - col1, col1 * - - col1 * + col0 + col1 * - + col0 AS col1 FROM tab0
----
-1
0
-21
36540
-81
97200

query I rowsort
SELECT 84 * 28 FROM tab1
----
2352
2352
2352

query I rowsort
SELECT ALL + 76 AS col0 FROM tab2
----
76
76
76

query I rowsort
SELECT DISTINCT col0 * 71 FROM tab1
----
3621
6035
6461

query I rowsort
SELECT col1 * + ( + + 11 ) AS col2 FROM tab1
----
154
517
55

query I rowsort
SELECT ALL + - col2 FROM tab1 AS cor0 WHERE NOT + col2 * - col2 IS NULL
----
-59
-68
-96

query I rowsort
SELECT ALL - 94 * - col0 FROM tab1 AS cor0
----
4794
7990
8554

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT col2 + + + col0 + - - col0 NOT BETWEEN NULL AND col0 * col2 - + col1
----

query I rowsort
SELECT DISTINCT + 67 AS col1 FROM tab0 AS cor0
----
67

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 = - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7835
SELECT + col2 + ( + col2 ) + col0 + - 99 DIV - col2 FROM tab1 AS cor0
----
204
228
244

skipif mysql # not compatible
query I rowsort label-7835
SELECT + col2 + ( + col2 ) + col0 + - 99 / - col2 FROM tab1 AS cor0
----
204
228
244

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT ALL + MIN( 2 ) AS col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
2

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL + MIN ( 2 ) AS col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
2

query I rowsort
SELECT - - col1 + + + ( + 63 ) AS col2 FROM tab2 AS cor0
----
114
130
140

query II rowsort
SELECT ALL col1 AS col0, col0 - - 51 FROM tab0 AS cor0
----
1
148
21
138
81
66

query II rowsort
SELECT ALL col2 + - col2 AS col0, + 92 * - + col1 AS col0 FROM tab0 cor0
----
0
-1932
0
-7452
0
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7840
SELECT - col2 * + - CAST( NULL AS SIGNED ) / - - CAST( - 55 AS SIGNED ) + + col0 + + + col1 + - 36 + - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7840
SELECT - col2 * + - CAST ( NULL AS INTEGER ) / - - CAST ( - 55 AS INTEGER ) + + col0 + + + col1 + - 36 + - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + 50 AS col1 FROM tab1 cor0
----
109
118
146

query I rowsort
SELECT + - 80 + 3 + + col0 * 29 * - col2 AS col1 FROM tab2 AS cor0
----
-126227
-30759
-74317

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT + MAX( ALL + - col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7844
SELECT + MAX ( ALL + - col1 ) AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL - 46 - + - col1 + + 15 * col0 FROM tab1 AS cor0 WHERE NOT col1 * 43 IS NOT NULL
----

query II rowsort
SELECT ALL - 6, - ( + col1 ) AS col0 FROM tab0 AS cor0
----
-6
-1
-6
-21
-6
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + + col0 AND - - col0 - + - 74 * 47
----

query II rowsort
SELECT + col2 * - - col1 AS col1, 57 FROM tab0
----
210
57
3807
57
99
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 24 - + col0 AS col1, col1 col1 FROM tab2
----
-22
51
-40
77
-51
67

query II rowsort
SELECT + 97 - + col2 AS col2, - col2 FROM tab0 AS cor0
----
-2
-99
50
-47
87
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7851
SELECT - 70 * 43 - - + col1 AS col2 FROM tab0 AS cor0 WHERE + col1 * + CAST( - + CAST( - ( + + 5 ) AS SIGNED ) AS SIGNED ) IN ( + col2 + + + CAST( + 83 AS SIGNED ) * - 18, + col2, col1 )
----

skipif mysql # not compatible
query I rowsort label-7851
SELECT - 70 * 43 - - + col1 AS col2 FROM tab0 AS cor0 WHERE + col1 * + CAST ( - + CAST ( - ( + + 5 ) AS INTEGER ) AS INTEGER ) IN ( + col2 + + + CAST ( + 83 AS INTEGER ) * - 18, + col2, col1 )
----

query II rowsort
SELECT DISTINCT 73 - - + 98, col2 FROM tab1 AS cor0
----
171
59
171
68
171
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col0, - col1 col1 FROM tab1
----
59
-5
68
-47
96
-14

query I rowsort
SELECT ALL ( 56 ) AS col0 FROM tab2
----
56
56
56

query II rowsort
SELECT DISTINCT 62, ( - col0 ) + + col0 * + 41 + + col0 + - ( + 50 ) + + 88 * - 46 + + 87 * + ( - 99 ) + ( + col0 ) AS col2 FROM tab1
----
62
-10569
62
-8889
62
-9141

onlyif mysql # DIV for integer division: 
query I rowsort label-7856
SELECT DISTINCT + - col1 DIV - + col0 + - + col1 + col1 * + 66 FROM tab0 AS cor0
----
1365
5270
65

skipif mysql # not compatible
query I rowsort label-7856
SELECT DISTINCT + - col1 / - + col0 + - + col1 + col1 * + 66 FROM tab0 AS cor0
----
1365
5270
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7857
SELECT ALL CAST( 55 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-7857
SELECT ALL CAST ( 55 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
55
55
55

onlyif mysql # aggregate syntax: 
query II rowsort label-7858
SELECT ALL COUNT( * ) AS col1, - COUNT( * ) FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-7858
SELECT ALL COUNT ( * ) AS col1, - COUNT ( * ) FROM tab1 AS cor0
----
3
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7859
SELECT DISTINCT + 35 * + CAST( NULL AS SIGNED ) col0, COUNT( * ) AS col2 FROM tab0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7859
SELECT DISTINCT + 35 * + CAST ( NULL AS INTEGER ) col0, COUNT ( * ) AS col2 FROM tab0
----
NULL
3

query I rowsort
SELECT + col2 * - + 93 AS col0 FROM tab0
----
-4371
-9207
-930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 12 col0 FROM tab2
----
-12
-12
-12

query II rowsort
SELECT + col0 AS col1, 28 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
28
85
28
91
28

query I rowsort
SELECT ALL - + col1 * + + ( - - col0 ) FROM tab0 AS cor0
----
-1215
-1827
-97

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL = 94
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7865
SELECT - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7865
SELECT - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col0 + 87 FROM tab0
----
102
174
184

query I rowsort
SELECT + 40 * + col0 * + col2 AS col2 FROM tab2 AS cor0
----
102400
174000
42320

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - col0 + - + col0 AS col2 FROM tab2 AS cor0
----
-128
-150
-92

query II rowsort
SELECT + col0, 24 FROM tab0 AS cor0
----
15
24
87
24
97
24

onlyif mysql # DIV for integer division: 
query I rowsort label-7871
SELECT col2 + col2 DIV - col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
58
67
95

skipif mysql # not compatible
query I rowsort label-7871
SELECT col2 + col2 / - col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
58
67
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT DISTINCT COUNT( * ) * + 81 + - COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-7872
SELECT DISTINCT COUNT ( * ) * + 81 + - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7873
SELECT CAST( NULL AS SIGNED ) * + - 3 - - - COUNT( * ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7873
SELECT CAST ( NULL AS INTEGER ) * + - 3 - - - COUNT ( * ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT + 34 + - COUNT( * ) col2 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7874
SELECT + 34 + - COUNT ( * ) col2 FROM tab1 AS cor0
----
31

query I rowsort
SELECT - + col0 + col1 + + col2 * + col2 AS col0 FROM tab0 AS cor0
----
2275
34
9705

query I rowsort
SELECT DISTINCT 91 * col2 * - 92 / - + col1 * - - col1 * col0 * + 4 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND + col0 - - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7877
SELECT - col2 DIV col1 + + + ( - + ( + col0 ) ) + - - col0 + + 35 AS col1 FROM tab2 AS cor0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-7877
SELECT - col2 / col1 + + + ( - + ( + col0 ) ) + - - col0 + + 35 AS col1 FROM tab2 AS cor0
----
35
35
35

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT ( col0 * - col1 * - 46 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * + col1 - - col2 AS col1 FROM tab0 AS cor0
----
1262
1837
196

query I rowsort
SELECT DISTINCT - col0 * + col2 + ( - + col1 ) FROM tab1 AS cor0
----
-4910
-5020
-6235

query I rowsort
SELECT - 24 * col2 * + 98 + - col0 FROM tab0 AS cor0
----
-110559
-232945
-23607

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT + MIN( DISTINCT 89 ) + - 44 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-7882
SELECT + MIN ( DISTINCT 89 ) + - 44 FROM tab1
----
45

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 97 * - col0 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT ALL + 12 * - MIN( DISTINCT col0 ) - COUNT( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN + ( 36 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7884
SELECT ALL + 12 * - MIN ( DISTINCT col0 ) - COUNT ( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN + ( 36 ) AND NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7885
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + SUM( - - col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7885
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + SUM ( - - col2 ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 6 * - col2 * 53 * - 99 + + col2 FROM tab1
----
1857497
2140844
3022368

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 20 IS NOT NULL
----

query I rowsort
SELECT - + col1 + - col0 FROM tab0 AS cor0 WHERE col2 + 42 / + col0 IS NOT NULL
----
-108
-96
-98

query I rowsort
SELECT + - ( - 61 ) FROM tab0 AS cor0
----
61
61
61

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 97 * col0 - col2 NOT BETWEEN + - col2 AND - ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT + - COUNT( * ) + - ( 10 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-19

skipif mysql # not compatible
query I rowsort label-7891
SELECT + - COUNT ( * ) + - ( 10 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-7892
SELECT col0 DIV - - 93 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7892
SELECT col0 / - - 93 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + col1 * ( 76 ) FROM tab2 AS cor0
----
3876
5092
5852

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7894
SELECT - + CAST( - col2 AS SIGNED ) AS col1, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

skipif mysql # not compatible
query II rowsort label-7894
SELECT - + CAST ( - col2 AS INTEGER ) AS col1, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT - 96 * - col2 FROM tab0 AS cor0
----
4512
9504
960

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT DISTINCT - - MAX( DISTINCT + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7897
SELECT DISTINCT - - MAX ( DISTINCT + col2 ) FROM tab2 AS cor0
----
58

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col2 / - col1 + + + col0 BETWEEN + col0 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7899
SELECT CAST( NULL AS SIGNED ), + col2 AS col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-7899
SELECT CAST ( NULL AS INTEGER ), + col2 AS col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - col2 ) / - col0 * - 96 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7901
SELECT - ( + col1 ) / - col2 AS col0 FROM tab2 WHERE + CAST( NULL AS SIGNED ) * + - col0 IN ( + + 97 )
----

skipif mysql # not compatible
query I rowsort label-7901
SELECT - ( + col1 ) / - col2 AS col0 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) * + - col0 IN ( + + 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT - MIN( - - col2 ) col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7902
SELECT - MIN ( - - col2 ) col1 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7903
SELECT ALL COUNT( * ) + - COUNT( * ) DIV COUNT( DISTINCT + 46 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7903
SELECT ALL COUNT ( * ) + - COUNT ( * ) / COUNT ( DISTINCT + 46 ) FROM tab1
----
0

query I rowsort
SELECT 50 * - 41 FROM tab2
----
-2050
-2050
-2050

query III rowsort
SELECT * FROM tab0 WHERE - col1 + col0 < NULL
----

query I rowsort
SELECT 0 * 70 AS col2 FROM tab1 WHERE NULL <= - col2 - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT DISTINCT 48 + COUNT( * ) col1 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7907
SELECT DISTINCT 48 + COUNT ( * ) col1 FROM tab2
----
51

query I rowsort
SELECT DISTINCT col2 * + 93 FROM tab0
----
4371
9207
930

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT + COUNT( * ) + 28 AS col1 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-7909
SELECT + COUNT ( * ) + 28 AS col1 FROM tab0
----
31

query I rowsort
SELECT ALL - 2 * 22 + col0 FROM tab2
----
2
20
31

query I rowsort
SELECT - 93 + + col1 AS col1 FROM tab2
----
-16
-26
-42

query I rowsort
SELECT ALL ( 64 ) + - 41 AS col2 FROM tab2
----
23
23
23

query I rowsort
SELECT DISTINCT - 68 * - col0 AS col1 FROM tab1
----
3468
5780
6188

query I rowsort
SELECT DISTINCT + ( 23 ) * col2 FROM tab1
----
1357
1564
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT + COUNT( * ) FROM tab0 WHERE NOT ( 9 ) NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7915
SELECT + COUNT ( * ) FROM tab0 WHERE NOT ( 9 ) NOT IN ( col1 )
----
0

query I rowsort
SELECT + ( col2 ) * 53 FROM tab2
----
1219
2120
3074

query I rowsort
SELECT - 6 AS col0 FROM tab2 WHERE 29 + + 14 >= ( - col1 )
----
-6
-6
-6

query I rowsort
SELECT 9 * - 47 + + 99 FROM tab1
----
-324
-324
-324

query I rowsort
SELECT col1 * + 15 + + 86 AS col1 FROM tab2
----
1091
1241
851

onlyif mysql # DIV for integer division: 
query I rowsort label-7920
SELECT DISTINCT + 83 DIV col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7920
SELECT DISTINCT + 83 / col0 FROM tab2
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7921
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT + col1 + + 37 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7921
SELECT ALL CAST ( NULL AS REAL ) FROM tab2 WHERE NOT + col1 + + 37 IS NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col1 col0 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 + 46 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT DISTINCT + MIN( DISTINCT 8 ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-7924
SELECT DISTINCT + MIN ( DISTINCT 8 ) FROM tab0
----
8

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + ( + col0 ) * - 57 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col0 ) IN ( + 24 / col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7927
SELECT ALL 76 DIV - col2 FROM tab0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-7927
SELECT ALL 76 / - col2 FROM tab0
----
-1
-7
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7928
SELECT 95 DIV - COUNT( * ) FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-7928
SELECT 95 / - COUNT ( * ) FROM tab1
----
-31

query I rowsort
SELECT ( + 59 ) + 29 AS col1 FROM tab2
----
88
88
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col0 col0 FROM tab1
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT + MIN( DISTINCT col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-7931
SELECT + MIN ( DISTINCT col1 ) AS col0 FROM tab2
----
51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 80 = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 87
----

query I rowsort
SELECT ALL 0 * 24 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT - MAX( ALL col2 ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-7935
SELECT - MAX ( ALL col2 ) AS col0 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT SUM( col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-7936
SELECT SUM ( col0 ) AS col2 FROM tab2
----
185

query III rowsort
SELECT * FROM tab0 WHERE NOT - 67 IS NOT NULL
----

query I rowsort
SELECT ALL + 53 FROM tab0 AS cor0 WHERE NOT - 24 - col0 IS NULL
----
53
53
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 25 col2 FROM tab2 AS cor0
----
1275
1675
1925

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT DISTINCT - COUNT( + 90 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7940
SELECT DISTINCT - COUNT ( + 90 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT DISTINCT + 32 * - SUM( - col1 ) AS col1 FROM tab1 cor0
----
2112

skipif mysql # not compatible
query I rowsort label-7941
SELECT DISTINCT + 32 * - SUM ( - col1 ) AS col1 FROM tab1 cor0
----
2112

query I rowsort
SELECT DISTINCT - col0 * col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( + 26 ) NOT BETWEEN 1 AND col2
----
-4896
-5015
-6188

query I rowsort
SELECT + ( 30 ) * - col1 FROM tab0 AS cor0
----
-2430
-30
-630

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) NOT BETWEEN col0 / 7 AND 63
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> col2 * col2
----

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 > NULL
----

query I rowsort
SELECT ALL - - 61 * col1 FROM tab2 AS cor0
----
3111
4087
4697

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT DISTINCT col0 * + col1 * - 72 FROM tab2
----
-168912
-354816
-361800

onlyif mysql # DIV for integer division: 
query I rowsort label-7950
SELECT col2 DIV - + col1 AS col0 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-7950
SELECT col2 / - + col1 AS col0 FROM tab0
----
-99
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7951
SELECT ALL col1 DIV 27 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL col1 / 27 AS col0 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7952
SELECT 45 DIV MIN( ALL - col2 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7952
SELECT 45 / MIN ( ALL - col2 ) AS col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 5 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT - COUNT( * ) + + 77 FROM tab0 WHERE NULL IS NULL
----
74

skipif mysql # not compatible
query I rowsort label-7955
SELECT - COUNT ( * ) + + 77 FROM tab0 WHERE NULL IS NULL
----
74

query I rowsort
SELECT ALL - 90 + + col0 * 81 FROM tab2
----
3636
5094
5985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col2 * + 99 col1 FROM tab2
----
-2300
-4000
-5800

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7958
SELECT ALL + MAX( 6 ) FROM tab1 WHERE NOT - CAST( NULL AS DECIMAL ) = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7958
SELECT ALL + MAX ( 6 ) FROM tab1 WHERE NOT - CAST ( NULL AS REAL ) = ( NULL )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT DISTINCT + COUNT( * ) + + ( + 34 ) * SUM( 51 ) FROM tab2
----
5205

skipif mysql # not compatible
query I rowsort label-7960
SELECT DISTINCT + COUNT ( * ) + + ( + 34 ) * SUM ( 51 ) FROM tab2
----
5205

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7962
SELECT ALL * FROM tab1 WHERE ( + CAST( NULL AS SIGNED ) * col2 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7962
SELECT ALL * FROM tab1 WHERE ( + CAST ( NULL AS INTEGER ) * col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 col0 FROM tab2 AS cor0 WHERE - col2 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7964
SELECT ALL + SUM( - ( + CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7964
SELECT ALL + SUM ( - ( + CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( - col0 ) * 90 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT ALL - + SUM( ALL - - 2 ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL - + SUM ( ALL - - 2 ) FROM tab0 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7967
SELECT col1 DIV + - CAST( - 87 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7967
SELECT col1 / + - CAST ( - 87 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <> NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE + 19 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 + ( col0 ) * + 95 FROM tab2 AS cor0
----
4421
6157
7192

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT ALL 9 - ( - - COUNT( * ) ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7971
SELECT ALL 9 - ( - - COUNT ( * ) ) FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT DISTINCT + + 53 + - 78 - + + COUNT( * ) AS col1 FROM tab1 cor0
----
-28

skipif mysql # not compatible
query I rowsort label-7972
SELECT DISTINCT + + 53 + - 78 - + + COUNT ( * ) AS col1 FROM tab1 cor0
----
-28

query I rowsort
SELECT ALL 56 * + col2 + - col0 * + col0 FROM tab0 AS cor0
----
-3865
-7009
2407

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN 75 / + col1 * - 93 - + col1 AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT ALL - + ( ( MIN( DISTINCT + 14 ) ) ) + 23 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7975
SELECT ALL - + ( ( MIN ( DISTINCT + 14 ) ) ) + 23 FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT 62 - ( - - ( 81 ) ) * col2 FROM tab2 AS cor0
----
-1801
-3178
-4636

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 + + 31 + - col1 ) > ( col1 )
----
97
1
99

query I rowsort
SELECT DISTINCT + col1 * - col2 + - 20 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-119
-230
-3827

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT DISTINCT COUNT( ALL + col2 ) - 44 FROM tab2 cor0
----
-41

skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT COUNT ( ALL + col2 ) - 44 FROM tab2 cor0
----
-41

query I rowsort
SELECT + - col0 + 52 + - + col2 + col0 * + col2 FROM tab1 AS cor0
----
4801
4923
6081

query I rowsort
SELECT DISTINCT - 49 + - - col0 FROM tab0 AS cor0
----
-34
38
48

query I rowsort
SELECT DISTINCT col0 * 1 - col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1536
-3289
-483

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 < ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 = 97 * 27 - + 46
----

query I rowsort
SELECT - ( - - 99 ) FROM tab1
----
-99
-99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7986
SELECT * FROM tab1 WHERE NOT ( + col2 + col2 ) NOT BETWEEN NULL AND + CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7986
SELECT * FROM tab1 WHERE NOT ( + col2 + col2 ) NOT BETWEEN NULL AND + CAST ( - col2 AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 * col1 * col0 + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + 34 FROM tab1 cor0
----
34
34
34

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NOT NULL > - 0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT - COUNT( * ) * - COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-7991
SELECT - COUNT ( * ) * - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT ALL + - MIN( - + 72 ) col0 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7992
SELECT ALL + - MIN ( - + 72 ) col0 FROM tab2 AS cor0
----
72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 > + - 55 / col0 + - 85
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7994
SELECT ALL + - CAST( NULL AS SIGNED ) * + 27 + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL + - CAST ( NULL AS INTEGER ) * + 27 + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7996
SELECT MAX( + col0 ), 97 AS col2 FROM tab0 AS cor0
----
97
97

skipif mysql # not compatible
query II rowsort label-7996
SELECT MAX ( + col0 ), 97 AS col2 FROM tab0 AS cor0
----
97
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7997
SELECT DISTINCT - COUNT( * ) / COUNT( * ) * + COUNT( * ) * - CAST( NULL AS DECIMAL ) / ( - MIN( ALL col0 ) ) * + 10 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7997
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) * + COUNT ( * ) * - CAST ( NULL AS REAL ) / ( - MIN ( ALL col0 ) ) * + 10 AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7998
SELECT - MIN( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7998
SELECT - MIN ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT ALL COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8000
SELECT DISTINCT * FROM tab2 WHERE NOT - - 95 * + 88 * + 44 + - CAST( NULL AS SIGNED ) * - 43 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8000
SELECT DISTINCT * FROM tab2 WHERE NOT - - 95 * + 88 * + 44 + - CAST ( NULL AS INTEGER ) * - 43 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT - SUM( ALL - col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-8001
SELECT - SUM ( ALL - col1 ) FROM tab0
----
103

query I rowsort
SELECT - + 45 AS col0 FROM tab1 AS cor0
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT + MIN( ALL + - 11 ) AS col1 FROM tab0 cor0
----
-11

skipif mysql # not compatible
query I rowsort label-8003
SELECT + MIN ( ALL + - 11 ) AS col1 FROM tab0 cor0
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8004
SELECT ALL - COUNT( * ) * MIN( - + 59 ) AS col2, MIN( + col2 ) DIV COUNT( * ) AS col1 FROM tab0 AS cor0
----
177
3

skipif mysql # not compatible
query II rowsort label-8004
SELECT ALL - COUNT ( * ) * MIN ( - + 59 ) AS col2, MIN ( + col2 ) / COUNT ( * ) AS col1 FROM tab0 AS cor0
----
177
3

query I rowsort
SELECT + + 95 + - 75 + + 79 FROM tab1 AS cor0
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT DISTINCT COUNT( * ) * 0 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8006
SELECT DISTINCT COUNT ( * ) * 0 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col2 * + col0 + - 31 FROM tab1 AS cor0
----
4865
4984
6157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8008
SELECT - 41 + 66 + + SUM( ALL + col0 ) DIV + - 7 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8008
SELECT - 41 + 66 + + SUM ( ALL + col0 ) / + - 7 FROM tab2 cor0
----
-1

query I rowsort
SELECT + + col2 AS col2 FROM tab1 WHERE col0 IS NULL
----

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE ( NULL ) IS NULL
----
15
87
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8011
SELECT + col0 FROM tab1 WHERE - col2 / - - col2 * - - col1 IN ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-8011
SELECT + col0 FROM tab1 WHERE - col2 / - - col2 * - - col1 IN ( CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT ALL - 36 FROM tab0, tab1 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query I rowsort
SELECT DISTINCT ( + 11 ) AS col2 FROM tab1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT ALL COUNT( * ) + - COUNT( * ) FROM tab0, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8014
SELECT ALL COUNT ( * ) + - COUNT ( * ) FROM tab0, tab1 AS cor0
----
0

query II rowsort
SELECT col2, + 12 AS col1 FROM tab1
----
59
12
68
12
96
12

query I rowsort
SELECT DISTINCT - - ( - col1 ) * 51 + - - 41 AS col1 FROM tab1 AS cor0
----
-214
-2356
-673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 38 * + col2 + - - col2 col1 FROM tab1 AS cor0
----
-2183
-2516
-3552

query I rowsort
SELECT DISTINCT col1 + ( - col0 ) + + col0 AS col1 FROM tab0 AS cor0
----
1
21
81

query II rowsort
SELECT DISTINCT col2 AS col2, + col1 AS col2 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT DISTINCT + 78 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
78

query I rowsort
SELECT - col0 FROM tab0 WHERE col2 IS NOT NULL
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 > - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT - SUM( + 41 ) FROM tab1 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-8023
SELECT - SUM ( + 41 ) FROM tab1 AS cor0
----
-123

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 49 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8025
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) BETWEEN - col2 AND + col1
----

skipif mysql # not compatible
query III rowsort label-8025
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) BETWEEN - col2 AND + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT NULL >= 6 )
----

query II rowsort
SELECT + col0, 66 FROM tab0
----
15
66
87
66
97
66

query I rowsort
SELECT + ( + - col2 ) AS col2 FROM tab2
----
-23
-40
-58

query II rowsort
SELECT - col0 AS col1, + col2 FROM tab1
----
-51
96
-85
59
-91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT ALL 22 * + COUNT( * ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8030
SELECT ALL 22 * + COUNT ( * ) FROM tab1
----
66

query I rowsort
SELECT + ( + 69 ) FROM tab0
----
69
69
69

query II rowsort
SELECT ALL - col1, - col2 AS col2 FROM tab0
----
-1
-99
-21
-10
-81
-47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8033
SELECT DISTINCT * FROM tab2 WHERE NOT + ( - - col1 ) * 43 <> - 82 * - 26 * + col0 / - 15 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8033
SELECT DISTINCT * FROM tab2 WHERE NOT + ( - - col1 ) * 43 <> - 82 * - 26 * + col0 / - 15 + - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT col0 AS col1, ( col1 ) AS col1 FROM tab1
----
51
14
85
5
91
47

query II rowsort
SELECT DISTINCT 89 AS col2, - col0 * col2 FROM tab2
----
89
-1058
89
-2560
89
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col1, - col2 FROM tab2
----
51
-23
67
-58
77
-40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - 27 + - col2 + - col2 )
----

query I rowsort
SELECT DISTINCT col1 + - col0 + + col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-21
24
59

query II rowsort
SELECT DISTINCT + 48, + 83 + col0 + + 11 AS col0 FROM tab0 AS cor0
----
48
109
48
181
48
191

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * - 87 + col0 + - col2 NOT IN ( + col0, - 84 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 73 + + 33 + - 78 AS col0 FROM tab1 AS cor0
----
-118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8042
SELECT + - ( 77 ) FROM tab2 AS cor0 WHERE col1 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8042
SELECT + - ( 77 ) FROM tab2 AS cor0 WHERE col1 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT col1 * - - 87 FROM tab0 AS cor0
----
1827
7047
87

query I rowsort
SELECT DISTINCT 35 * + ( + - col1 ) FROM tab2 AS cor0
----
-1785
-2345
-2695

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 31, ( ( + col0 ) ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8046
SELECT * FROM tab0 AS cor0 WHERE ( + ( + 84 ) + - + 0 ) NOT IN ( ( - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-8046
SELECT * FROM tab0 AS cor0 WHERE ( + ( + 84 ) + - + 0 ) NOT IN ( ( - CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT + + ( - 47 ) * + - ( col0 ) + + + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-361
-72
989

onlyif mysql # aggregate syntax: 
query II rowsort label-8048
SELECT 35 + + MAX( ALL + 93 ), + ( 35 ) * - - 30 col0 FROM tab2
----
128
1050

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8048
SELECT 35 + + MAX ( ALL + 93 ), + ( 35 ) * - - 30 col0 FROM tab2
----
128
1050

query I rowsort
SELECT + col2 * col1 + + - col1 AS col0 FROM tab0
----
189
3726
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8050
SELECT col1 DIV + col2 + - ( col1 ) FROM tab0
----
-1
-19
-80

skipif mysql # not compatible
query I rowsort label-8050
SELECT col1 / + col2 + - ( col1 ) FROM tab0
----
-1
-19
-80

query I rowsort
SELECT - col1 * + col2 + - + col2 FROM tab2
----
-1196
-3120
-3944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8052
SELECT DISTINCT + COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8052
SELECT DISTINCT + COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT DISTINCT + - COUNT( * ) FROM tab0 WHERE + - col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8053
SELECT DISTINCT + - COUNT ( * ) FROM tab0 WHERE + - col2 <> NULL
----
0

query I rowsort
SELECT ALL - - 76 AS col2 FROM tab0 AS cor0
----
76
76
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8055
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - ( + col1 ) * - CAST( 17 AS SIGNED ) + CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8055
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - ( + col1 ) * - CAST ( 17 AS INTEGER ) + CAST ( + col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8056
SELECT - COUNT( * ) * + - 48 DIV + COUNT( * ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-8056
SELECT - COUNT ( * ) * + - 48 / + COUNT ( * ) FROM tab1
----
48

query I rowsort
SELECT DISTINCT + 36 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
36

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 20 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 <> col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 col1 FROM tab0 AS cor0 WHERE NOT - col2 * + col0 IS NOT NULL
----

query I rowsort
SELECT ( + + 44 ) FROM tab0 AS cor0
----
44
44
44

onlyif mysql # DIV for integer division: 
query I rowsort label-8062
SELECT col1 DIV + 59 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8062
SELECT col1 / + 59 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 68 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NOT NULL >= - + 13
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8065
SELECT + col2 col1 FROM tab2 WHERE NOT col2 / CAST( + col0 AS SIGNED ) < + + col0 * + col2 * + 59
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8065
SELECT + col2 col1 FROM tab2 WHERE NOT col2 / CAST ( + col0 AS INTEGER ) < + + col0 * + col2 * + 59
----

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = 90
----

query I rowsort
SELECT AVG ( col0 ) FROM tab1 WHERE NOT NULL >= NULL
----
NULL

query I rowsort
SELECT DISTINCT + - col1 * + - col1 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8070
SELECT - - col2 * + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8070
SELECT - - col2 * + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT - SUM( - col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8071
SELECT - SUM ( - col0 ) AS col2 FROM tab1 AS cor0
----
227

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NOT + 44 IS NOT NULL
----

query I rowsort
SELECT ALL col1 - + - 84 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 51 BETWEEN + 58 AND ( + 79 + - + 26 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 + - + col0 + - + col0 + + col0 AS col1 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT DISTINCT col0 * + + 68 + - 15 AS col0 FROM tab0 AS cor0
----
1005
5901
6581

onlyif mysql # DIV for integer division: 
query I rowsort label-8077
SELECT ( - - 68 ) + 14 DIV - col2 * - col0 * + 69 FROM tab2 AS cor0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-8077
SELECT ( - - 68 ) + 14 / - col2 * - col0 * + 69 FROM tab2 AS cor0
----
68
68
68

query I rowsort
SELECT - - 56 + - col2 AS col2 FROM tab2 AS cor0
----
-2
16
33

query I rowsort
SELECT ALL + - 7 AS col2 FROM tab0 AS cor0
----
-7
-7
-7

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE + - 72 <= col0 - - col2
----
1
21
81

query I rowsort
SELECT col1 * - - ( col1 ) AS col2 FROM tab0
----
1
441
6561

query I rowsort
SELECT + col0 * + + col2 * - - 36 + - ( + col1 ) FROM tab1 WHERE NULL <= NULL
----

query I rowsort
SELECT col2 * col0 * 30 AS col1 FROM tab2
----
130500
31740
76800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8084
SELECT - CAST( NULL AS SIGNED ) - + 13 + - + col0 * ( - col1 ) - + + 92 * + - ( - - col2 ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8084
SELECT - CAST ( NULL AS INTEGER ) - + 13 + - + col0 * ( - col1 ) - + + 92 * + - ( - - col2 ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT - 35 - + 10 + COUNT( * ) FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-8085
SELECT - 35 - + 10 + COUNT ( * ) FROM tab2
----
-42

query I rowsort
SELECT col1 * 92 - + col1 FROM tab2 AS cor0
----
4641
6097
7007

query I rowsort
SELECT DISTINCT - 96 + - - 12 AS col1 FROM tab1 AS cor0
----
-84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * col2 NOT IN ( + + 59 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col2 + - 47 AS col1, col2 * - 51 + - 6 - col1 FROM tab0 cor0
----
-37
-537
0
-2484
52
-5056

query I rowsort
SELECT 34 + + 27 FROM tab2
----
61
61
61

query I rowsort
SELECT ALL + col2 * + col1 - 95 FROM tab0
----
115
3712
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT - ( + MAX( DISTINCT - col2 ) ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-8092
SELECT - ( + MAX ( DISTINCT - col2 ) ) FROM tab0
----
10

query III rowsort
SELECT ( + col1 ) * - col0, - col1 * + col2 * - 57 AS col0, - - col1 AS col1 FROM tab0
----
9 values hashing to f8819e2bbacbf72e97a15ac40e9d5484

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 + ( 82 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - 20, + ( + col2 ) AS col1 FROM tab2 AS cor0
----
-20
23
-20
40
-20
58

query I rowsort
SELECT + col2 * + ( + - col0 ) + + col0 FROM tab0 AS cor0
----
-690
-783
-9506

onlyif mysql # aggregate syntax: 
query II rowsort label-8097
SELECT - 22, COUNT( * ) col2 FROM tab1 AS cor0
----
-22
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8097
SELECT - 22, COUNT ( * ) col2 FROM tab1 AS cor0
----
-22
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 70 col0 FROM tab0 cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT ALL - SUM( 87 ) AS col2 FROM tab1 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-8099
SELECT ALL - SUM ( 87 ) AS col2 FROM tab1 AS cor0
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT DISTINCT MAX( - col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8100
SELECT DISTINCT MAX ( - col1 ) AS col2 FROM tab2 AS cor0
----
-51

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT 80 * + + COUNT( * ) AS col0 FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-8102
SELECT 80 * + + COUNT ( * ) AS col0 FROM tab1
----
240

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col1 + + 7 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8104
SELECT 85, + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
85
NULL
85
NULL
85
NULL

skipif mysql # not compatible
query II rowsort label-8104
SELECT 85, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
85
NULL
85
NULL
85
NULL

query I rowsort
SELECT - ( + 85 ) * - col1 FROM tab2
----
4335
5695
6545

onlyif mysql # DIV for integer division: 
query I rowsort label-8106
SELECT ALL 93 DIV + col2 col2 FROM tab2
----
1
2
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8106
SELECT ALL 93 / + col2 col2 FROM tab2
----
1
2
4

query II rowsort
SELECT col1, + col0 FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT DISTINCT 41 * + - 21 AS col2 FROM tab0
----
-861

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8109
SELECT DISTINCT COUNT( * ) DIV + + SUM( - + col2 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8109
SELECT DISTINCT COUNT ( * ) / + + SUM ( - + col2 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT - ( - + col1 ) * - col1 AS col1 FROM tab2 WHERE NOT - - col1 / - col0 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT col1, col2 AS col1 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8112
SELECT ALL col1, col0 + col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-8112
SELECT ALL col1, col0 + col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT COUNT( DISTINCT + - col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8113
SELECT COUNT ( DISTINCT + - col2 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT DISTINCT - + col1 * + ( - col2 ) AS col1 FROM tab1 cor0
----
1344
295
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 40, 92 + - 3 col0 FROM tab2 cor0
----
40
89
40
89
40
89

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 21 + + ( + col1 ) AS col0 FROM tab0 AS cor0
----
102
22
42

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8119
SELECT * FROM tab2 WHERE - + CAST( NULL AS SIGNED ) BETWEEN + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8119
SELECT * FROM tab2 WHERE - + CAST ( NULL AS INTEGER ) BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query III rowsort label-8120
SELECT - 29 AS col1, + 64 + + 61 AS col1, COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-29
125
9

skipif mysql # not compatible
query III rowsort label-8120
SELECT - 29 AS col1, + 64 + + 61 AS col1, COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-29
125
9

query I rowsort
SELECT - 51 * col1 / col0 AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col1 + 43 AS col2 FROM tab1 AS cor0
----
48
57
90

query I rowsort
SELECT + + ( + + col2 ) FROM tab1 cor0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + 42 col2 FROM tab2 AS cor0
----
-19
-2
16

query I rowsort
SELECT + 78 + + 62 AS col0 FROM tab2
----
140
140
140

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT - COUNT( * ) + ( + 90 ) + + 7 FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-8126
SELECT - COUNT ( * ) + ( + 90 ) + + 7 FROM tab2
----
94

query I rowsort
SELECT + col1 + + col2 * col1 * + 76 * col2 FROM tab2
----
17129555
2050455
9363277

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 59 > - col0
----
46
51
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8129
SELECT DISTINCT + col0 + + 28 DIV + col0 * - + ( - col2 ) - - col0 FROM tab1 AS cor0
----
102
170
182

skipif mysql # not compatible
query I rowsort label-8129
SELECT DISTINCT + col0 + + 28 / + col0 * - + ( - col2 ) - - col0 FROM tab1 AS cor0
----
102
170
182

query II rowsort
SELECT - + col0 AS col2, - col2 AS col2 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

query I rowsort
SELECT ALL + - 5 + + 79 + col1 + + + col2 FROM tab1 AS cor0
----
138
184
189

query I rowsort
SELECT DISTINCT col1 * + - col2 * - 65 AS col1 FROM tab1
----
19175
207740
87360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 79 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
79

query I rowsort
SELECT - col1 * col1 * - col1 * col2 * 77 AS col0 FROM tab1 AS cor0
----
20283648
543617228
567875

query I rowsort
SELECT - + 27 AS col2 FROM tab0 AS cor0 WHERE NOT NULL = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT + COUNT( * ) * + MAX( 0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8136
SELECT + COUNT ( * ) * + MAX ( 0 ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 41 <> NULL
----

query I rowsort
SELECT ALL - + col0 * - - col2 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE NOT ( - col1 ) IS NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 col0 FROM tab2
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT + ( SUM( - ( + - col2 ) ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8141
SELECT + ( SUM ( - ( + - col2 ) ) ) FROM tab0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - col2 ) AS col0, col0 col0 FROM tab1 WHERE NOT - col0 + - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 0 ) col0 FROM tab2, tab1 AS cor0
----
0

query I rowsort
SELECT 25 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT - 43 * + - 48 + COUNT( * ) AS col1 FROM tab0
----
2067

skipif mysql # not compatible
query I rowsort label-8145
SELECT - 43 * + - 48 + COUNT ( * ) AS col1 FROM tab0
----
2067

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT - ( + 72 ) + - COUNT( * ) FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8146
SELECT - ( + 72 ) + - COUNT ( * ) FROM tab1 AS cor0
----
-75

query I rowsort
SELECT DISTINCT col2 + - ( + col0 ) FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT DISTINCT - + 62 - + MAX( - 88 ) AS col2 FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-8148
SELECT DISTINCT - + 62 - + MAX ( - 88 ) AS col2 FROM tab1 AS cor0
----
26

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 94 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 1 + - 34 AS col0 FROM tab2 AS cor0
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT ALL - MAX( DISTINCT + col2 ) - + + 70 FROM tab0 AS cor0
----
-169

skipif mysql # not compatible
query I rowsort label-8151
SELECT ALL - MAX ( DISTINCT + col2 ) - + + 70 FROM tab0 AS cor0
----
-169

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL IN ( col0 + col2, col2 )
----

query I rowsort
SELECT - col2 * 12 AS col1 FROM tab1
----
-1152
-708
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT DISTINCT COUNT( ALL ( + 32 ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8154
SELECT DISTINCT COUNT ( ALL ( + 32 ) ) AS col1 FROM tab0
----
3

query I rowsort
SELECT ALL 42 + - 2 + - col1 AS col0 FROM tab2
----
-11
-27
-37

query I rowsort
SELECT col0 * col1 - + col2 * 47 AS col0 FROM tab0
----
-4556
-994
1357

query I rowsort
SELECT DISTINCT - 91 + + - ( - col2 ) FROM tab1
----
-23
-32
5

query I rowsort
SELECT ALL - col2 + - - col0 FROM tab1
----
-45
23
26

query III rowsort
SELECT * FROM tab0 WHERE 12 / - col0 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT DISTINCT - COUNT( * ) + - + MIN( - col1 ) AS col1 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-8160
SELECT DISTINCT - COUNT ( * ) + - + MIN ( - col1 ) AS col1 FROM tab0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8161
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + CAST( - 65 AS SIGNED ) * + ( + 24 ) / - 4 * + + col2 * - - CAST( NULL AS SIGNED ) NOT IN ( + col2, col2 + - col0, col2 + - 3, - + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8161
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + CAST ( - 65 AS INTEGER ) * + ( + 24 ) / - 4 * + + col2 * - - CAST ( NULL AS INTEGER ) NOT IN ( + col2, col2 + - col0, col2 + - 3, - + col0 )
----
0

query I rowsort
SELECT ALL - col1 * - 58 FROM tab1
----
2726
290
812

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT 12 * - - COUNT( * ) FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-8163
SELECT 12 * - - COUNT ( * ) FROM tab0 AS cor0
----
36

query I rowsort
SELECT ALL + 57 * 52 FROM tab1 AS cor0
----
2964
2964
2964

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 53 * + 16 * + 57 * - + 80 AS col2 FROM tab0 AS cor0
----
-3866880
-3866880
-3866880

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col1 * + + 61 AS col2 FROM tab2 cor0
----
3111
4087
4697

query I rowsort
SELECT ALL - 81 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col1 AND col0 * - + 61 - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8170
SELECT DISTINCT - 46 * CAST( + col2 AS SIGNED ) AS col2 FROM tab0
----
-2162
-4554
-460

skipif mysql # not compatible
query I rowsort label-8170
SELECT DISTINCT - 46 * CAST ( + col2 AS INTEGER ) AS col2 FROM tab0
----
-2162
-4554
-460

query I rowsort
SELECT col2 + + col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8173
SELECT DISTINCT - col0 DIV - - 6 + col2 * col0, 28 AS col2 FROM tab0 AS cor0
----
703
28
856
28
9587
28

skipif mysql # not compatible
query II rowsort label-8173
SELECT DISTINCT - col0 / - - 6 + col2 * col0, 28 AS col2 FROM tab0 AS cor0
----
703
28
856
28
9587
28

query I rowsort
SELECT ALL col2 + + + ( + col0 ) FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT ALL SUM( - col2 ) + 33 * - 67 * - ( - - COUNT( * ) ) FROM tab1
----
6410

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL SUM ( - col2 ) + 33 * - 67 * - ( - - COUNT ( * ) ) FROM tab1
----
6410

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 < + col2 * - - col1 - col0 AND ( NULL ) <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT ALL + + 40 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL + + 40 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8178
SELECT DISTINCT 43 DIV + 67 + - 59 * - COUNT( * ) FROM tab2 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-8178
SELECT DISTINCT 43 / + 67 + - 59 * - COUNT ( * ) FROM tab2 AS cor0
----
177

query I rowsort
SELECT DISTINCT + + 83 + - + 84 * col2 * - col1 FROM tab2 AS cor0 WHERE ( ( NOT col2 IS NULL ) )
----
258803
326507
98615

query I rowsort
SELECT - - 25 + 99 * - - col1 FROM tab1 AS cor0
----
1411
4678
520

query I rowsort
SELECT ALL + col0 - - 61 AS col2 FROM tab0 AS cor0
----
148
158
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT DISTINCT + ( + ( + + COUNT( * ) ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8182
SELECT DISTINCT + ( + ( + + COUNT ( * ) ) ) AS col0 FROM tab2
----
3

query II rowsort
SELECT DISTINCT + + col1 * - 92 AS col2, - 98 AS col0 FROM tab2 WHERE - 48 > - + col0
----
-6164
-98
-7084
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - - col1 col0 FROM tab1
----
110
115
64

query III rowsort
SELECT * FROM tab2 WHERE - 81 <> NULL
----

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE + - 19 * 36 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT DISTINCT COUNT( * ) col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8187
SELECT DISTINCT COUNT ( * ) col1 FROM tab1 cor0
----
3

query II rowsort
SELECT ALL - - col2 AS col0, - 95 * + col0 * + col1 * - col2 FROM tab0 AS cor0
----
10
1735650
47
5424975
99
912285

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT MAX( DISTINCT 51 ) AS col1 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-8189
SELECT MAX ( DISTINCT 51 ) AS col1 FROM tab1 cor0
----
51

query I rowsort
SELECT DISTINCT - col2 * - + col1 FROM tab2 AS cor0
----
1173
3080
3886

query II rowsort
SELECT + - col2 AS col1, + col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8192
SELECT DISTINCT COUNT( * ) AS col1, COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-8192
SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT + COUNT( + 36 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8193
SELECT + COUNT ( + 36 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8194
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + 0 * CAST( - col2 AS DECIMAL ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + 0 * CAST ( - col2 AS REAL ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT - MAX( + 37 ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8195
SELECT - MAX ( + 37 ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 50 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 * ( - + col0 ) FROM tab1 AS cor0 WHERE 48 IS NOT NULL
----
425
4277
714

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - + 18 ) NOT BETWEEN 7 AND + col0 + + ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT ALL + COUNT( 54 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL + COUNT ( 54 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8200
SELECT DISTINCT * FROM tab0 WHERE - col0 / - col1 + col0 * CAST( - - 12 AS SIGNED ) = + col1
----

skipif mysql # not compatible
query III rowsort label-8200
SELECT DISTINCT * FROM tab0 WHERE - col0 / - col1 + col0 * CAST ( - - 12 AS INTEGER ) = + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8201
SELECT DISTINCT - col0 + col1 + col1 col1, + col2, + col0 * CAST( NULL AS SIGNED ) FROM tab1
----
9 values hashing to ba984ae0ae64707e3ab926f9c81e017e

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-8201
SELECT DISTINCT - col0 + col1 + col1 col1, + col2, + col0 * CAST ( NULL AS INTEGER ) FROM tab1
----
9 values hashing to ba984ae0ae64707e3ab926f9c81e017e

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8202
SELECT ALL + ( + + col0 ) + - + col2 AS col0, CAST( NULL AS SIGNED ) + + - 11 * CAST( NULL AS SIGNED ) / + col1 AS col2 FROM tab1
----
-45
NULL
23
NULL
26
NULL

skipif mysql # not compatible
query II rowsort label-8202
SELECT ALL + ( + + col0 ) + - + col2 AS col0, CAST ( NULL AS INTEGER ) + + - 11 * CAST ( NULL AS INTEGER ) / + col1 AS col2 FROM tab1
----
-45
NULL
23
NULL
26
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8203
SELECT 53 col1, + MAX( col1 ) * + 19 AS col0 FROM tab1
----
53
893

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8203
SELECT 53 col1, + MAX ( col1 ) * + 19 AS col0 FROM tab1
----
53
893

query I rowsort
SELECT ALL 92 + - 66 FROM tab1 AS cor0
----
26
26
26

onlyif mysql # DIV for integer division: 
query I rowsort label-8205
SELECT DISTINCT + ( - + ( - - col2 ) ) + - 52 DIV + + 31 AS col2 FROM tab0 AS cor0
----
-100
-11
-48

skipif mysql # not compatible
query I rowsort label-8205
SELECT DISTINCT + ( - + ( - - col2 ) ) + - 52 / + + 31 AS col2 FROM tab0 AS cor0
----
-100
-11
-48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8206
SELECT * FROM tab1 AS cor0 WHERE + col0 * - - col0 BETWEEN + 47 + - + col0 * - + CAST( + ( - col0 ) AS SIGNED ) AND + col0
----

skipif mysql # not compatible
query III rowsort label-8206
SELECT * FROM tab1 AS cor0 WHERE + col0 * - - col0 BETWEEN + 47 + - + col0 * - + CAST ( + ( - col0 ) AS INTEGER ) AND + col0
----

query I rowsort
SELECT col0 + + + 54 AS col1 FROM tab2
----
100
118
129

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE NULL <= 33
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 62 + col2 col1, col2 AS col2 FROM tab1 AS cor0
----
121
59
130
68
158
96

query I rowsort
SELECT ALL + 32 - col2 * col0 AS col1 FROM tab0 AS cor0
----
-673
-838
-9571

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT MAX( ALL - 20 ) col0 FROM tab1 AS cor0 WHERE col1 + col2 IN ( - col1, - col2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8211
SELECT MAX ( ALL - 20 ) col0 FROM tab1 AS cor0 WHERE col1 + col2 IN ( - col1, - col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8212
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 60 * - + 56 * + ( - col0 ) <= CAST( - 51 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8212
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 60 * - + 56 * + ( - col0 ) <= CAST ( - 51 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + ( - col1 ) * - col1 - - - col1 AS col0 FROM tab2 AS cor0
----
2550
4422
5852

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT ALL MAX( ALL - - col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8214
SELECT ALL MAX ( ALL - - col2 ) FROM tab1
----
96

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( 35 ) * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8216
SELECT + col1 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8216
SELECT + col1 * - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8217
SELECT ALL col0 * + - col2 / col1 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL col0 * + - col2 / col1 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8218
SELECT + col1 DIV + 39 AS col1 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-8218
SELECT + col1 / + 39 AS col1 FROM tab0
----
0
0
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8219
SELECT ALL - CAST( NULL AS SIGNED ) * - 12 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8219
SELECT ALL - CAST ( NULL AS INTEGER ) * - 12 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8220
SELECT ALL - 96 DIV - + col1 AS col2 FROM tab1
----
19
2
6

skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL - 96 / - + col1 AS col2 FROM tab1
----
19
2
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT - 22 * + COUNT( * ) * - COUNT( * ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-8221
SELECT - 22 * + COUNT ( * ) * - COUNT ( * ) FROM tab1
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT DISTINCT + SUM( ALL 70 ) AS col1 FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-8222
SELECT DISTINCT + SUM ( ALL 70 ) AS col1 FROM tab0
----
210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8223
SELECT + + CAST( ( COUNT( * ) ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8223
SELECT + + CAST ( ( COUNT ( * ) ) AS INTEGER ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT - 17 AS col0, - 54 AS col1 FROM tab1 AS cor0
----
-17
-54

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE ( + 74 ) IS NOT NULL
----
15
87
97

query II rowsort
SELECT - 76 AS col0, 86 FROM tab2
----
-76
86
-76
86
-76
86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8227
SELECT ALL * FROM tab2 WHERE + 61 / - col2 + CAST( + 99 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8227
SELECT ALL * FROM tab2 WHERE + 61 / - col2 + CAST ( + 99 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 60 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT SUM( ALL - 0 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8229
SELECT SUM ( ALL - 0 ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8230
SELECT CAST( - + ( + SUM( - col2 ) ) AS SIGNED ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-8230
SELECT CAST ( - + ( + SUM ( - col2 ) ) AS INTEGER ) AS col0 FROM tab2
----
121

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT col2 = NULL )
----

query I rowsort
SELECT DISTINCT - 48 + - col1 FROM tab0 AS cor0
----
-129
-49
-69

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > 2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 col0, col2 FROM tab2 cor0
----
-23
23
-40
40
-58
58

query II rowsort
SELECT ALL + 6, col2 FROM tab0 AS cor0
----
6
10
6
47
6
99

query III rowsort
SELECT * FROM tab2 WHERE col0 BETWEEN + - col0 AND NULL
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8238
SELECT - COUNT( * ) + + 62 AS col2, 18 col0 FROM tab1
----
59
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8238
SELECT - COUNT ( * ) + + 62 AS col2, 18 col0 FROM tab1
----
59
18

onlyif mysql # DIV for integer division: 
query I rowsort label-8239
SELECT ALL 7 + 31 + - 82 DIV col1 * - + col0 FROM tab1
----
129
1398
293

skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL 7 + 31 + - 82 / col1 * - + col0 FROM tab1
----
129
1398
293

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 + - col2 * - 97 col2 FROM tab2
----
2241
3890
5636

query II rowsort
SELECT DISTINCT - 69 + - col2, + col1 FROM tab2
----
-109
77
-127
67
-92
51

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 = + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 50 * - col1 AS col2 FROM tab2 AS cor0
----
2550
3350
3850

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT DISTINCT + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - ( + - col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8244
SELECT DISTINCT + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - ( + - col0 ) IS NOT NULL
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT + 12 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT COUNT( DISTINCT + col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8246
SELECT COUNT ( DISTINCT + col2 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT 71 * - 32 + - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-2281

skipif mysql # not compatible
query I rowsort label-8247
SELECT 71 * - 32 + - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-2281

query II rowsort
SELECT ALL + + 85 AS col0, 51 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 0cbda51f0e1d54bd7da01bccc779d71f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8249
SELECT DISTINCT col1 / - 70 * + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8249
SELECT DISTINCT col1 / - 70 * + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT 28 * - - 16 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to a38bec61adf133ad6cccf0400d2a7234

query II rowsort
SELECT DISTINCT - col1 - + col1 * + - col2 AS col2, col1 AS col1 FROM tab1 cor0
----
1330
14
290
5
3149
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT ALL - + MIN( DISTINCT - + col0 ) col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8252
SELECT ALL - + MIN ( DISTINCT - + col0 ) col1 FROM tab1 AS cor0
----
91

query II rowsort
SELECT DISTINCT - 16 AS col2, 83 * + col0 * + 42 * col0 AS col1 FROM tab1 AS cor0
----
-16
25186350
-16
28867566
-16
9067086

query I rowsort
SELECT ALL + col1 * + 55 AS col0 FROM tab0 AS cor0
----
1155
4455
55

onlyif mysql # aggregate syntax: 
query II rowsort label-8255
SELECT + 49 AS col0, COUNT( * ) + + 7 FROM tab2 AS cor0
----
49
10

skipif mysql # not compatible
query II rowsort label-8255
SELECT + 49 AS col0, COUNT ( * ) + + 7 FROM tab2 AS cor0
----
49
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8256
SELECT DISTINCT + - CAST( NULL AS SIGNED ), col0 DIV + + 25 AS col0 FROM tab0 AS cor0
----
NULL
0
NULL
3

skipif mysql # not compatible
query II rowsort label-8256
SELECT DISTINCT + - CAST ( NULL AS INTEGER ), col0 / + + 25 AS col0 FROM tab0 AS cor0
----
NULL
0
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT - MIN( DISTINCT + - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8257
SELECT - MIN ( DISTINCT + - col2 ) FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8258
SELECT AVG ( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8258
SELECT AVG ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( 8 ) * - col1 FROM tab1
----
112
376
40

query III rowsort
SELECT * FROM tab0 WHERE NOT - 93 <> - 81
----

query I rowsort
SELECT ALL ( + + col0 ) * + 60 + - col2 + - 97 AS col2 FROM tab1
----
2867
4944
5295

query I rowsort
SELECT - AVG ( - col2 ) FROM tab0 WHERE NOT NULL NOT IN ( col0 / ( + col2 ), 91 + - + 67 )
----
NULL

query I rowsort
SELECT DISTINCT + col1 * - + col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT ALL MIN( 87 ) AS col1 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-8264
SELECT ALL MIN ( 87 ) AS col1 FROM tab2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT ALL + MAX( DISTINCT + - ( - col0 ) ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8265
SELECT ALL + MAX ( DISTINCT + - ( - col0 ) ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT ( + col0 ) * 95 + - - col1 + - - 99 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
4958
8179
8791

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 25 + col1 * - - ( - - 82 ) * + 58 IS NOT NULL
----

query I rowsort
SELECT - ( + + col1 ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT + - ( COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8269
SELECT + - ( COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL BETWEEN - 21 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8271
SELECT - CAST( NULL AS SIGNED ) * + 88 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8271
SELECT - CAST ( NULL AS INTEGER ) * + 88 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - - 76 * + col1 + + col2 + + + col2 FROM tab0 AS cor0
----
1616
274
6250

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 27 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT - MIN( ALL + ( col0 ) ) * - 28 + - 80 FROM tab0 cor0
----
340

skipif mysql # not compatible
query I rowsort label-8274
SELECT - MIN ( ALL + ( col0 ) ) * - 28 + - 80 FROM tab0 cor0
----
340

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 80 ) col1 FROM tab0 AS cor0
----
80

query I rowsort
SELECT 41 + - + col0 AS col2 FROM tab2 AS cor0
----
-23
-34
-5

query I rowsort
SELECT col1 * + 20 AS col1 FROM tab2 AS cor0
----
1020
1340
1540

query III rowsort
SELECT * FROM tab0 WHERE ( col1 + - ( col2 ) + - col2 < - 41 + col1 )
----
15
81
47
97
1
99

query II rowsort
SELECT 52, col0 * - - col1 AS col2 FROM tab0
----
52
1215
52
1827
52
97

query I rowsort
SELECT + col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8281
SELECT DISTINCT + 2 + - CAST( - - 80 AS SIGNED ) FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-8281
SELECT DISTINCT + 2 + - CAST ( - - 80 AS INTEGER ) FROM tab2
----
-78

query II rowsort
SELECT col1, + col1 AS col1 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL + 9 + - col2 * - + col0 AS col0 FROM tab1
----
4905
5024
6197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 38 col0, col2 FROM tab1
----
38
59
38
68
38
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT ALL + COUNT( ALL - col0 ) + + 5 * - 23 * 33 AS col0 FROM tab0
----
-3792

skipif mysql # not compatible
query I rowsort label-8285
SELECT ALL + COUNT ( ALL - col0 ) + + 5 * - 23 * 33 AS col0 FROM tab0
----
-3792

query I rowsort
SELECT ALL + ( - - col1 ) + - ( col0 ) FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8287
SELECT DISTINCT col2 - - - CAST( - - col0 AS SIGNED ) FROM tab2 AS cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-8287
SELECT DISTINCT col2 - - - CAST ( - - col0 AS INTEGER ) FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8288
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) <> + 25
----
0

skipif mysql # not compatible
query I rowsort label-8288
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) <> + 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8289
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - col1 < NULL
----
0

query I rowsort
SELECT + + 74 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT - - 84 FROM tab2 WHERE NOT col2 IS NULL
----
84
84
84

onlyif mysql # aggregate syntax: 
query II rowsort label-8292
SELECT DISTINCT ( + 3 ) AS col0, COUNT( * ) - + COUNT( * ) FROM tab1 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-8292
SELECT DISTINCT ( + 3 ) AS col0, COUNT ( * ) - + COUNT ( * ) FROM tab1 AS cor0
----
3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT DISTINCT + ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8293
SELECT DISTINCT + ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT - - COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT ( NOT + + col0 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8294
SELECT - - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT ( NOT + + col0 IS NULL )
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 7 <= NULL
----

query I rowsort
SELECT ALL + col0 * - col0 + - + 93 + + col2 FROM tab2 AS cor0
----
-2186
-4149
-5660

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - - 87 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 99 * col1 FROM tab2 cor0
----
5049
6633
7623

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - ( + col0 ) NOT BETWEEN NULL AND + 12 * col0
----
0

skipif mysql # not compatible
query I rowsort label-8299
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - ( + col0 ) NOT BETWEEN NULL AND + 12 * col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8300
SELECT MAX( ALL CAST( - col0 AS SIGNED ) ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8300
SELECT MAX ( ALL CAST ( - col0 AS INTEGER ) ) FROM tab2 AS cor0
----
-46

query II rowsort
SELECT col2 AS col2, - 32 FROM tab2
----
23
-32
40
-32
58
-32

query I rowsort
SELECT + col1 * 85 AS col2 FROM tab1
----
1190
3995
425

query I rowsort
SELECT DISTINCT + ( - - col2 ) AS col0 FROM tab1 WHERE NOT ( - - col2 ) IS NULL
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8304
SELECT + CAST( + + COUNT( * ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8304
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT + 75 * COUNT( * ) AS col0 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-8305
SELECT + 75 * COUNT ( * ) AS col0 FROM tab2
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT COUNT( * ) * + + MIN( - - ( - - 17 ) ) * 88 FROM tab2
----
4488

skipif mysql # not compatible
query I rowsort label-8306
SELECT COUNT ( * ) * + + MIN ( - - ( - - 17 ) ) * 88 FROM tab2
----
4488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col2, + col1 AS col0 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT DISTINCT - ( + + col1 ) FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col2 * - 92 FROM tab2 AS cor0
----
-2116
-3680
-5336

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 87 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT MAX( + col0 ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8311
SELECT MAX ( + col0 ) AS col1 FROM tab1 AS cor0
----
91

query III rowsort
SELECT * FROM tab1 WHERE NOT - 2 + 43 BETWEEN NULL AND + + 10
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT DISTINCT COUNT( * ) + - - 37 AS col2 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-8313
SELECT DISTINCT COUNT ( * ) + - - 37 AS col2 FROM tab2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT DISTINCT - ( - COUNT( * ) ) + - - 72 AS col2 FROM tab0 cor0
----
75

skipif mysql # not compatible
query I rowsort label-8314
SELECT DISTINCT - ( - COUNT ( * ) ) + - - 72 AS col2 FROM tab0 cor0
----
75

query I rowsort
SELECT ALL col0 + - 7 AS col2 FROM tab1 cor0
----
44
78
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8316
SELECT ALL - 71 DIV col0 * - - col2 FROM tab0 AS cor0
----
-188
0
0

skipif mysql # not compatible
query I rowsort label-8316
SELECT ALL - 71 / col0 * - - col2 FROM tab0 AS cor0
----
-188
0
0

query I rowsort
SELECT - + 21 + - 32 AS col1 FROM tab1 AS cor0
----
-53
-53
-53

query I rowsort
SELECT DISTINCT - ( + + col1 ) FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT + 44 FROM tab2 AS cor0 WHERE 14 * - col1 IS NOT NULL
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT DISTINCT AVG ( DISTINCT - col2 ) * - COUNT( * ) FROM tab2 cor0 WHERE NOT 13 BETWEEN NULL AND + + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8320
SELECT DISTINCT AVG ( DISTINCT - col2 ) * - COUNT ( * ) FROM tab2 cor0 WHERE NOT 13 BETWEEN NULL AND + + 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT + COUNT( * ) + + 44 col1 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8321
SELECT + COUNT ( * ) + + 44 col1 FROM tab2 AS cor0
----
47

query I rowsort
SELECT ALL col0 + 86 AS col2 FROM tab1
----
137
171
177

query I rowsort
SELECT DISTINCT - 18 + col0 FROM tab1
----
33
67
73

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 34 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8325
SELECT 72, + COUNT( * ) AS col1 FROM tab1 AS cor0
----
72
3

skipif mysql # not compatible
query II rowsort label-8325
SELECT 72, + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
72
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT - + COUNT( * ) * - 76 FROM tab1 cor0
----
228

skipif mysql # not compatible
query I rowsort label-8326
SELECT - + COUNT ( * ) * - 76 FROM tab1 cor0
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT MIN( ALL 17 ) - + 5 AS col1 FROM tab0 cor0
----
12

skipif mysql # not compatible
query I rowsort label-8327
SELECT MIN ( ALL 17 ) - + 5 AS col1 FROM tab0 cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT ALL SUM( - + 85 ) FROM tab0 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL SUM ( - + 85 ) FROM tab0 AS cor0
----
-255

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 WHERE NOT + + col1 BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL 44 AS col0, + 93 AS col1 FROM tab1 AS cor0
----
44
93
44
93
44
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab1 AS cor0 WHERE 71 IS NULL
----

query II rowsort
SELECT DISTINCT - 73 AS col0, 39 + - - col2 FROM tab0 AS cor0
----
-73
138
-73
49
-73
86

onlyif mysql # aggregate syntax: 
query II rowsort label-8333
SELECT - + 7 col2, + MIN( DISTINCT + col0 ) col1 FROM tab1 AS cor0
----
-7
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8333
SELECT - + 7 col2, + MIN ( DISTINCT + col0 ) col1 FROM tab1 AS cor0
----
-7
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8334
SELECT ALL - + 99 * + 39 + - + ( + CAST( + - 71 AS SIGNED ) ) FROM tab2 AS cor0
----
-3790
-3790
-3790

skipif mysql # not compatible
query I rowsort label-8334
SELECT ALL - + 99 * + 39 + - + ( + CAST ( + - 71 AS INTEGER ) ) FROM tab2 AS cor0
----
-3790
-3790
-3790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, col0 col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query II rowsort
SELECT DISTINCT col1, col0 + col2 FROM tab0 AS cor0
----
1
196
21
97
81
62

query I rowsort
SELECT DISTINCT + - 12 AS col1 FROM tab0 AS cor0
----
-12

query I rowsort
SELECT DISTINCT - - 8 * + 37 AS col2 FROM tab1 cor0
----
296

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col0 > - col1 * - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8340
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8340
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8341
SELECT ALL + + MIN( + CAST( 3 AS SIGNED ) ) + - 4 AS col2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8341
SELECT ALL + + MIN ( + CAST ( 3 AS INTEGER ) ) + - 4 AS col2 FROM tab0 cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 + + - ( - 19 ) IS NOT NULL
----

query I rowsort
SELECT 83 * + 98 + + col2 AS col1 FROM tab1
----
8193
8202
8230

query I rowsort
SELECT ALL - 62 + + col0 FROM tab1 AS cor0
----
-11
23
29

query I rowsort
SELECT DISTINCT - + col1 * + 6 FROM tab0 AS cor0
----
-126
-486
-6

query I rowsort
SELECT DISTINCT 53 - + ( - + ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
-34
-44
38

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT - + col0 - - ( col0 ) >= NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8348
SELECT ALL - 93 DIV + - col2 AS col0 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL - 93 / + - col2 AS col0 FROM tab2 AS cor0
----
1
2
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 10 * + col2 * + col0 col2 FROM tab2 AS cor0
----
10631
25677
43567

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - ( ( - - 39 ) ) col0, col1 AS col0 FROM tab1 AS cor0
----
-39
14
-39
47
-39
5

onlyif mysql # DIV for integer division: 
query II rowsort label-8351
SELECT + col0 AS col0, col0 DIV col0 AS col0 FROM tab2 cor0
----
46
1
64
1
75
1

skipif mysql # not compatible
query II rowsort label-8351
SELECT + col0 AS col0, col0 / col0 AS col0 FROM tab2 cor0
----
46
1
64
1
75
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 col1 FROM tab2
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT + SUM( + - col1 ) col2 FROM tab2
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8353
SELECT + SUM ( + - col1 ) col2 FROM tab2
----
-195

query III rowsort
SELECT * FROM tab1 WHERE NULL <= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT DISTINCT - 57 + + SUM( + col0 ) AS col0 FROM tab0
----
142

skipif mysql # not compatible
query I rowsort label-8355
SELECT DISTINCT - 57 + + SUM ( + col0 ) AS col0 FROM tab0
----
142

query III rowsort
SELECT ALL * FROM tab2 WHERE - 34 IS NULL OR ( NOT ( NULL ) > col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8357
SELECT - COUNT( + - ( - 73 ) ) - CAST( NULL AS SIGNED ) - + CAST( - COUNT( - col0 ) AS SIGNED ) + 2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8357
SELECT - COUNT ( + - ( - 73 ) ) - CAST ( NULL AS INTEGER ) - + CAST ( - COUNT ( - col0 ) AS INTEGER ) + 2 FROM tab0
----
NULL

query I rowsort
SELECT ALL 48 FROM tab0 WHERE NOT + 77 <> ( NULL )
----

query I rowsort
SELECT - - col1 + - 1 * - - col0 AS col2 FROM tab2 cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT ALL COUNT( * ) - + - 96 * + 60 FROM tab0 AS cor0
----
5763

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL COUNT ( * ) - + - 96 * + 60 FROM tab0 AS cor0
----
5763

query I rowsort
SELECT col1 + + + col1 AS col2 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT DISTINCT + col2 - - col1 * + - col1 AS col1 FROM tab0 AS cor0
----
-431
-6514
98

query I rowsort
SELECT DISTINCT 78 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8364
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) / - + 7 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8364
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) / - + 7 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT - MAX( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8365
SELECT - MAX ( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8366
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT DISTINCT - - col0 * - - col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT DISTINCT - + MIN( - - col0 ) col0 FROM tab2 cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8368
SELECT DISTINCT - + MIN ( - - col0 ) col0 FROM tab2 cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT + COUNT( + 43 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8369
SELECT + COUNT ( + 43 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + ( - + 81 ) AS col2 FROM tab1 AS cor0
----
-81
-81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8371
SELECT DISTINCT col1, col0, + CAST( col2 AS SIGNED ) FROM tab2
----
9 values hashing to b9292dd83ef474ee8e3487eccea2e6e1

skipif mysql # not compatible
query III rowsort label-8371
SELECT DISTINCT col1, col0, + CAST ( col2 AS INTEGER ) FROM tab2
----
9 values hashing to b9292dd83ef474ee8e3487eccea2e6e1

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT DISTINCT MIN( DISTINCT col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8372
SELECT DISTINCT MIN ( DISTINCT col0 ) FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT - ( + COUNT( DISTINCT col2 ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8373
SELECT - ( + COUNT ( DISTINCT col2 ) ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT COUNT( DISTINCT + - col1 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8374
SELECT COUNT ( DISTINCT + - col1 ) col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT DISTINCT 49 + 69 * + MAX( + col2 ) FROM tab0
----
6880

skipif mysql # not compatible
query I rowsort label-8375
SELECT DISTINCT 49 + 69 * + MAX ( + col2 ) FROM tab0
----
6880

query I rowsort
SELECT ALL - 24 + - col1 - - - 22 + - col1 + ( + + 25 ) FROM tab2
----
-123
-155
-175

query I rowsort
SELECT + 50 * col0 FROM tab1
----
2550
4250
4550

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT + COUNT( * ) FROM tab2 WHERE NOT NULL < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8378
SELECT + COUNT ( * ) FROM tab2 WHERE NOT NULL < ( NULL )
----
0

query II rowsort
SELECT 3, - 81 - col1 AS col2 FROM tab0
----
3
-102
3
-162
3
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-8380
SELECT ALL 55 DIV + 82 + - 76 col0 FROM tab2
----
-76
-76
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8380
SELECT ALL 55 / + 82 + - 76 col0 FROM tab2
----
-76
-76
-76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8381
SELECT ALL + - CAST( NULL AS DECIMAL ) * + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8381
SELECT ALL + - CAST ( NULL AS REAL ) * + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT - + SUM( col2 ) FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8382
SELECT - + SUM ( col2 ) FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - - col2 * col0 col1 FROM tab0 cor0
----
33135
8700
950697

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 16 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 + + - col0 FROM tab1 cor0
----
-102
-170
-182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8386
SELECT - + 27 * - + COUNT( + - ( CAST( - + col0 AS SIGNED ) ) ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8386
SELECT - + 27 * - + COUNT ( + - ( CAST ( - + col0 AS INTEGER ) ) ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT + COUNT( * ) * COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8387
SELECT + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1
----
9

query I rowsort
SELECT + - ( - 66 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8389
SELECT * FROM tab2 AS cor0 WHERE + col0 + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8389
SELECT * FROM tab2 AS cor0 WHERE + col0 + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT DISTINCT - 75 + + MAX( - 50 ) * 85 FROM tab1 AS cor0
----
-4325

skipif mysql # not compatible
query I rowsort label-8390
SELECT DISTINCT - 75 + + MAX ( - 50 ) * 85 FROM tab1 AS cor0
----
-4325

onlyif mysql # DIV for integer division: 
query II rowsort label-8391
SELECT - - 35 - col0 * - col1 + - + col2 + + 30 * 35 * 83, + col0 DIV col1 * + - col0 AS col0 FROM tab1 AS cor0
----
87551
-1445
87803
-153
91394
-91

skipif mysql # not compatible
query II rowsort label-8391
SELECT - - 35 - col0 * - col1 + - + col2 + + 30 * 35 * 83, + col0 / col1 * + - col0 AS col0 FROM tab1 AS cor0
----
87551
-1445
87803
-153
91394
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8392
SELECT DISTINCT - 67 - 65 * - - 57 + 86 DIV col1 * 41 FROM tab2 AS cor0
----
-3731

skipif mysql # not compatible
query I rowsort label-8392
SELECT DISTINCT - 67 - 65 * - - 57 + 86 / col1 * 41 FROM tab2 AS cor0
----
-3731

query I rowsort
SELECT DISTINCT - col2 * - + col0 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8394
SELECT - col1 * + + 26 * + + col2 + + CAST( NULL AS SIGNED ) * + 55 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8394
SELECT - col1 * + + 26 * + + col2 + + CAST ( NULL AS INTEGER ) * + 55 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8395
SELECT - col0 + 98 DIV - col1 + - + 99 FROM tab1 AS cor0
----
-157
-192
-203

skipif mysql # not compatible
query I rowsort label-8395
SELECT - col0 + 98 / - col1 + - + 99 FROM tab1 AS cor0
----
-157
-192
-203

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8396
SELECT ALL * FROM tab1 WHERE NOT - 38 / - - 96 + - + CAST( + + 67 AS DECIMAL ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-8396
SELECT ALL * FROM tab1 WHERE NOT - 38 / - - 96 + - + CAST ( + + 67 AS REAL ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 col2 FROM tab0 cor0
----
-94

query II rowsort
SELECT DISTINCT col1, + ( + col0 ) AS col2 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT + ( - COUNT( * ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8399
SELECT + ( - COUNT ( * ) ) FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT - - ( - - SUM( + ( + + col1 ) ) ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8400
SELECT - - ( - - SUM ( + ( + + col1 ) ) ) FROM tab0 AS cor0
----
103

query II rowsort
SELECT + + col0 AS col1, + ( 37 ) FROM tab0 cor0
----
15
37
87
37
97
37

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 + - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 + + col1 col2 FROM tab2 WHERE NULL IS NULL
----
136
152
162

query I rowsort
SELECT ALL col2 * + ( - col2 ) AS col2 FROM tab1 WHERE NULL <> - 78 * col2 + col2
----

query I rowsort
SELECT - 45 + 8 * 93 FROM tab2
----
699
699
699

query III rowsort
SELECT * FROM tab0 WHERE 44 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8407
SELECT ALL + CAST( - 13 AS SIGNED ) FROM tab1
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL + CAST ( - 13 AS INTEGER ) FROM tab1
----
-13
-13
-13

query I rowsort
SELECT col1 FROM tab2 WHERE col0 / - col1 IN ( 85 )
----

query III rowsort
SELECT * FROM tab0 WHERE + 37 / + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 16 / - col2 IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT ALL ( + SUM( + col1 ) ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL ( + SUM ( + col1 ) ) AS col0 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT - MIN( DISTINCT 40 ) FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-8412
SELECT - MIN ( DISTINCT 40 ) FROM tab2
----
-40

query I rowsort
SELECT + 83 AS col1 FROM tab1 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT + ( - 87 ) - + col2 FROM tab0
----
-134
-186
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8415
SELECT + col2 - - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8415
SELECT + col2 - - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT - 94 * - MIN( ALL - col1 ) FROM tab1
----
-4418

skipif mysql # not compatible
query I rowsort label-8416
SELECT - 94 * - MIN ( ALL - col1 ) FROM tab1
----
-4418

query III rowsort
SELECT ALL * FROM tab2 WHERE 99 * col1 NOT BETWEEN NULL AND col2 * 58
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 + col2 * + col1 FROM tab1
----
1440
3264
354

query I rowsort
SELECT + col2 + - ( col1 ) * + 69 FROM tab1
----
-286
-3175
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT COUNT( * ) FROM tab0 WHERE ( ( col0 ) / col0 ) > col0
----
0

skipif mysql # not compatible
query I rowsort label-8420
SELECT COUNT ( * ) FROM tab0 WHERE ( ( col0 ) / col0 ) > col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col1 * ( + col1 + col1 ) col2 FROM tab1
----
406
4465
55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8422
SELECT DISTINCT * FROM tab0 WHERE 93 NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8422
SELECT DISTINCT * FROM tab0 WHERE 93 NOT IN ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8423
SELECT ALL CAST( NULL AS DECIMAL ) / - COUNT( * ) AS col1 FROM tab0 WHERE col2 NOT IN ( col1 * col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8423
SELECT ALL CAST ( NULL AS REAL ) / - COUNT ( * ) AS col1 FROM tab0 WHERE col2 NOT IN ( col1 * col2 )
----
NULL

query I rowsort
SELECT + ( - ( - col2 ) ) AS col0 FROM tab1 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT DISTINCT col2 + - 81 FROM tab1
----
-13
-22
15

query I rowsort
SELECT + col0 * 81 AS col1 FROM tab2 WHERE NOT ( NULL ) <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 60 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 NOT IN ( - ( col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT DISTINCT SUM( DISTINCT + col1 ) * 55 FROM tab0
----
5665

skipif mysql # not compatible
query I rowsort label-8431
SELECT DISTINCT SUM ( DISTINCT + col1 ) * 55 FROM tab0
----
5665

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8432
SELECT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) * - col1 NOT BETWEEN - col0 + + col1 AND - 96
----

skipif mysql # not compatible
query III rowsort label-8432
SELECT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) * - col1 NOT BETWEEN - col0 + + col1 AND - 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT + col2 NOT BETWEEN NULL AND ( 70 + 55 * col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8433
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col2 NOT BETWEEN NULL AND ( 70 + 55 * col1 )
----
0

query I rowsort
SELECT 62 * - 88 AS col0 FROM tab0 AS cor0
----
-5456
-5456
-5456

query I rowsort
SELECT 49 FROM tab2 AS cor0 WHERE NULL IS NULL
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT DISTINCT MAX( ALL - col2 ) + 20 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-8436
SELECT DISTINCT MAX ( ALL - col2 ) + 20 FROM tab1 AS cor0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8437
SELECT DISTINCT CAST( - col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8437
SELECT DISTINCT CAST ( - col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT ALL + COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8438
SELECT ALL + COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT SUM( - col2 ) * 71 FROM tab2 WHERE ( col2 ) + col0 * ( col0 * col1 + 29 ) BETWEEN - 2 AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8439
SELECT SUM ( - col2 ) * 71 FROM tab2 WHERE ( col2 ) + col0 * ( col0 * col1 + 29 ) BETWEEN - 2 AND ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8440
SELECT + col1 + 81 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8440
SELECT + col1 + 81 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 col2 FROM tab1 AS cor0
----
44
44
44

onlyif mysql # DIV for integer division: 
query I rowsort label-8442
SELECT DISTINCT - col1 DIV + ( 12 + 49 ) + 77 AS col1 FROM tab0 AS cor0
----
76
77

skipif mysql # not compatible
query I rowsort label-8442
SELECT DISTINCT - col1 / + ( 12 + 49 ) + 77 AS col1 FROM tab0 AS cor0
----
76
77

query I rowsort
SELECT ALL - col1 + ( + 92 ) * - col0 FROM tab0 AS cor0
----
-1461
-8025
-8925

onlyif mysql # DIV for integer division: 
query I rowsort label-8444
SELECT ALL col1 - + 97 DIV col0 AS col2 FROM tab2 AS cor0
----
49
66
76

skipif mysql # not compatible
query I rowsort label-8444
SELECT ALL col1 - + 97 / col0 AS col2 FROM tab2 AS cor0
----
49
66
76

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( - 93 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT DISTINCT - 68 - + MIN( ALL + col0 - - col1 ) FROM tab1 AS cor0
----
-133

skipif mysql # not compatible
query I rowsort label-8446
SELECT DISTINCT - 68 - + MIN ( ALL + col0 - - col1 ) FROM tab1 AS cor0
----
-133

query I rowsort
SELECT ALL + + 3 * - col0 FROM tab1 AS cor0
----
-153
-255
-273

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( 83 / + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( - 68 )
----

query I rowsort
SELECT ALL col0 * 28 FROM tab2 cor0
----
1288
1792
2100

query I rowsort
SELECT DISTINCT col1 - - ( 97 ) * 81 FROM tab1 AS cor0 WHERE NOT - col1 * + col2 NOT BETWEEN col2 - col2 AND ( col2 )
----

query I rowsort
SELECT 15 - col1 + 71 AS col1 FROM tab1
----
39
72
81

query I rowsort
SELECT DISTINCT + 31 * + - col2 AS col1 FROM tab1
----
-1829
-2108
-2976

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT + ( 61 ) * - ( SUM( col1 ) ) AS col1 FROM tab1
----
-4026

skipif mysql # not compatible
query I rowsort label-8454
SELECT + ( 61 ) * - ( SUM ( col1 ) ) AS col1 FROM tab1
----
-4026

query I rowsort
SELECT DISTINCT + col2 * - 18 * col1 FROM tab1
----
-24192
-5310
-57528

query I rowsort
SELECT - 62 AS col0 FROM tab0 WHERE NOT NULL IN ( 47 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8457
SELECT COUNT( * ) DIV - COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8457
SELECT COUNT ( * ) / - COUNT ( * ) FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT ALL + COUNT( * ) * - 44 FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-8458
SELECT ALL + COUNT ( * ) * - 44 FROM tab0
----
-132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 * + 65 * col1 col1 FROM tab0
----
-342225
-4225
-88725

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8460
SELECT SUM( + + 0 ) DIV 98 col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8460
SELECT SUM ( + + 0 ) / 98 col1 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 60 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8462
SELECT DISTINCT + 31 * - 33 + + CAST( + MIN( ALL col2 ) AS SIGNED ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-964

skipif mysql # not compatible
query I rowsort label-8462
SELECT DISTINCT + 31 * - 33 + + CAST ( + MIN ( ALL col2 ) AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-964

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT DISTINCT - COUNT( * ) * - ( + 10 ) FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8463
SELECT DISTINCT - COUNT ( * ) * - ( + 10 ) FROM tab2 AS cor0
----
30

query I rowsort
SELECT 14 * + + col1 FROM tab2 AS cor0
----
1078
714
938

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 = + 21 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 72 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT DISTINCT + 41 * - COUNT( DISTINCT - col2 ) AS col2 FROM tab2
----
-123

skipif mysql # not compatible
query I rowsort label-8467
SELECT DISTINCT + 41 * - COUNT ( DISTINCT - col2 ) AS col2 FROM tab2
----
-123

query I rowsort
SELECT DISTINCT - 71 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-71

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND 99 * col1 + + col0
----

query I rowsort
SELECT AVG ( col1 ) FROM tab0 WHERE NOT ( - 98 * + col2 NOT IN ( col2 ) )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8472
SELECT DISTINCT 37 DIV + + COUNT( * ) AS col0 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-8472
SELECT DISTINCT 37 / + + COUNT ( * ) AS col0 FROM tab0
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-8473
SELECT - 27 col1, + SUM( ALL - col2 ) FROM tab1 AS cor0
----
-27
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8473
SELECT - 27 col1, + SUM ( ALL - col2 ) FROM tab1 AS cor0
----
-27
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT DISTINCT - MIN( DISTINCT - + ( - col1 ) ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8474
SELECT DISTINCT - MIN ( DISTINCT - + ( - col1 ) ) FROM tab2 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 51 col0 FROM tab1 AS cor0
----
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 65 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT ALL MAX( DISTINCT + col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8477
SELECT ALL MAX ( DISTINCT + col0 ) FROM tab0 AS cor0
----
97

onlyif mysql # DIV for integer division: 
query II rowsort label-8478
SELECT DISTINCT - 76 AS col1, + col2 DIV - col1 AS col0 FROM tab1 cor0
----
-76
-1
-76
-11
-76
-6

skipif mysql # not compatible
query II rowsort label-8478
SELECT DISTINCT - 76 AS col1, + col2 / - col1 AS col0 FROM tab1 cor0
----
-76
-1
-76
-11
-76
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT ALL + SUM( + col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 + - + col2 * + col2 >= ( + col2 )
----
156

skipif mysql # not compatible
query I rowsort label-8479
SELECT ALL + SUM ( + col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 + - + col2 * + col2 >= ( + col2 )
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8480
SELECT - COUNT( * ) DIV - 26 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8480
SELECT - COUNT ( * ) / - 26 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > + col0
----
0

skipif mysql # not compatible
query I rowsort label-8481
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > + col0
----
0

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT - 27 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT ALL - SUM( + + col1 ) + 1 FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL - SUM ( + + col1 ) + 1 FROM tab0
----
-102

query I rowsort
SELECT DISTINCT 55 + + ( col0 ) AS col2 FROM tab2
----
101
119
130

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT DISTINCT 96 + - COUNT( * ) * COUNT( * ) AS col1 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-8485
SELECT DISTINCT 96 + - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0
----
87

query I rowsort
SELECT DISTINCT + col1 * col2 * - col1 AS col2 FROM tab0
----
-308367
-4410
-99

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 AS cor0 WHERE NOT col2 <= ( - 8 * - - 45 + 34 * - 28 )
----
-14
-47
-5

query II rowsort
SELECT ALL - col2 + + col0, col1 AS col2 FROM tab2 AS cor0
----
17
67
23
51
24
77

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT ( + ( 74 ) * col2 >= NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 29 ) NOT IN ( ( - col0 ) / + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 col2 FROM tab2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8493
SELECT - 73 * 57 + + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8493
SELECT - 73 * 57 + + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + - 40 FROM tab2 WHERE - 95 + + 33 IS NULL
----

query I rowsort
SELECT - 9 * col1 FROM tab0
----
-189
-729
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8496
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( ALL - col0 ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8496
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( ALL - col0 ) col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col0 - + 10 - 50 + + 13 FROM tab0 AS cor0
----
-32
40
50

query I rowsort
SELECT ALL + col2 - + + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 80 + + col0 FROM tab1 AS cor0
----
131
165
171

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND 60
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8501
SELECT - col2 + - - col0 + - col0 DIV - + 24 AS col1 FROM tab1 AS cor0
----
-43
26
29

skipif mysql # not compatible
query I rowsort label-8501
SELECT - col2 + - - col0 + - col0 / - + 24 AS col1 FROM tab1 AS cor0
----
-43
26
29

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 + + 21 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT + MIN( col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8503
SELECT + MIN ( col0 ) AS col2 FROM tab2 AS cor0
----
46

query I rowsort
SELECT ALL col2 * - + 23 FROM tab0
----
-1081
-2277
-230

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT DISTINCT 1 * - COUNT( * ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT 1 * - COUNT ( * ) AS col2 FROM tab0
----
-3

query II rowsort
SELECT ALL col2, - 3 FROM tab1
----
59
-3
68
-3
96
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8507
SELECT DISTINCT - COUNT( * ) DIV + + COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT - COUNT ( * ) / + + COUNT ( * ) FROM tab1
----
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 62 >= + col1 - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8509
SELECT ALL + CAST( + 7 AS SIGNED ) AS col0 FROM tab0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL + CAST ( + 7 AS INTEGER ) AS col0 FROM tab0
----
7
7
7

query II rowsort
SELECT ALL 2 * + - 39, + ( - col2 ) * + 6 AS col2 FROM tab0 AS cor0
----
-78
-282
-78
-594
-78
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT DISTINCT + COUNT( * ) + 96 AS col2 FROM tab1 AS cor0 WHERE NOT ( + 60 + col1 - - col1 * col1 * + col1 ) BETWEEN NULL AND - col1
----
99

skipif mysql # not compatible
query I rowsort label-8511
SELECT DISTINCT + COUNT ( * ) + 96 AS col2 FROM tab1 AS cor0 WHERE NOT ( + 60 + col1 - - col1 * col1 * + col1 ) BETWEEN NULL AND - col1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8512
SELECT - CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0 WHERE NOT + CAST( + + col2 AS SIGNED ) * + col2 + - 14 BETWEEN - - col1 + - ( - 59 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-8512
SELECT - CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0 WHERE NOT + CAST ( + + col2 AS INTEGER ) * + col2 + - 14 BETWEEN - - col1 + - ( - 59 ) AND NULL
----

query I rowsort
SELECT - ( 23 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT DISTINCT - col2 * - 84 FROM tab1
----
4956
5712
8064

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 56 col2 FROM tab0 AS cor0
----
56

query I rowsort
SELECT 80 + + col1 FROM tab2 AS cor0
----
131
147
157

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8518
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN CAST( NULL AS SIGNED ) + - - col2 - - ( + - 17 ) + col2 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-8518
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS INTEGER ) + - - col2 - - ( + - 17 ) + col2 AND ( NULL )
----

query II rowsort
SELECT ALL + - 44 * - + col1 * col1, - col0 AS col0 FROM tab1 AS cor0
----
1100
-85
8624
-51
97196
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT COUNT( - col1 ) + 69 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-8520
SELECT COUNT ( - col1 ) + 69 FROM tab0 AS cor0
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8521
SELECT ALL - 64 DIV + 83 DIV - 1 AS col0, COUNT( * ) AS col2 FROM tab0 cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-8521
SELECT ALL - 64 / + 83 / - 1 AS col0, COUNT ( * ) AS col2 FROM tab0 cor0
----
0
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8522
SELECT ALL + - 49 DIV + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-8522
SELECT ALL + - 49 / + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT + COUNT( * ) * - COUNT( * ) FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8523
SELECT + COUNT ( * ) * - COUNT ( * ) FROM tab2 cor0
----
-9

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE ( col1 ) IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE NULL < NULL OR - 35 IS NULL
----

query II rowsort
SELECT - ( - 68 ) AS col2, - ( 68 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
68
-68
68
-68
68
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - + col1 ) col0 FROM tab1
----
14
47
5

query I rowsort
SELECT - ( + ( - col0 ) ) FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8529
SELECT DISTINCT + - CAST( NULL AS SIGNED ) - - col0 FROM tab2 WHERE ( + 1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8529
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) - - col0 FROM tab2 WHERE ( + 1 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + + 44 col1 FROM tab2
----
111
121
95

query I rowsort
SELECT ALL col2 + + col0 * - col1 * + col2 * + col0 FROM tab2
----
-12615640
-21858692
-2482045

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT ALL + COUNT( * ) + COUNT( * ) + + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8532
SELECT ALL + COUNT ( * ) + COUNT ( * ) + + COUNT ( * ) FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8533
SELECT DISTINCT + col1 AS col2, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-8533
SELECT DISTINCT + col1 AS col2, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT MAX( - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8534
SELECT MAX ( - col1 ) FROM tab2 AS cor0
----
-51

query II rowsort
SELECT ALL + col1, 56 AS col2 FROM tab2 AS cor0
----
51
56
67
56
77
56

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 * col2 IS NULL AND ( + col0 * + col1 ) IS NULL
----

query I rowsort
SELECT - - col0 + + - col2 AS col2 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT 75 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT ALL 33 * - 74 + - COUNT( * ) AS col0 FROM tab1
----
-2445

skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL 33 * - 74 + - COUNT ( * ) AS col0 FROM tab1
----
-2445

query I rowsort
SELECT col2 + + 47 AS col1 FROM tab2
----
105
70
87

onlyif mysql # aggregate syntax: 
query II rowsort label-8541
SELECT ALL COUNT( * ) + - - 20 AS col0, 28 AS col1 FROM tab2
----
23
28

skipif mysql # not compatible
query II rowsort label-8541
SELECT ALL COUNT ( * ) + - - 20 AS col0, 28 AS col1 FROM tab2
----
23
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT ALL - COUNT( ALL + - ( + 48 ) ) + - + SUM( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
182

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL - COUNT ( ALL + - ( + 48 ) ) + - + SUM ( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT + COUNT( + + col2 ) FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND col2
----
0

skipif mysql # not compatible
query I rowsort label-8543
SELECT + COUNT ( + + col2 ) FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT DISTINCT + COUNT( * ) + - ( - 53 ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
53

skipif mysql # not compatible
query I rowsort label-8544
SELECT DISTINCT + COUNT ( * ) + - ( - 53 ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
53

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * col1 IN ( + 54 + - col2, + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - - 74 ) FROM tab2
----
74
74
74

onlyif mysql # aggregate syntax: 
query II rowsort label-8547
SELECT DISTINCT COUNT( * ), 84 AS col2 FROM tab0
----
3
84

skipif mysql # not compatible
query II rowsort label-8547
SELECT DISTINCT COUNT ( * ), 84 AS col2 FROM tab0
----
3
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT - COUNT( ALL + 36 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8548
SELECT - COUNT ( ALL + 36 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT COUNT( * ) * - 92 col2 FROM tab2
----
-276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8549
SELECT COUNT ( * ) * - 92 col2 FROM tab2
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT - MAX( ALL - col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8550
SELECT - MAX ( ALL - col2 ) FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT 84 * + COUNT( * ) col1 FROM tab2
----
252

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8551
SELECT 84 * + COUNT ( * ) col1 FROM tab2
----
252

query I rowsort
SELECT - 49 + - + col0 + - ( + col0 ) + - col1 * 20 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + col1 + 73 + - 11 AND ( + col0 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT ALL COUNT( + 55 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8554
SELECT ALL COUNT ( + 55 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8555
SELECT - CAST( - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8555
SELECT - CAST ( - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL <> NULL )
----

query I rowsort
SELECT + ( + 29 ) AS col2 FROM tab0
----
29
29
29

query II rowsort
SELECT ALL col1, col2 AS col0 FROM tab2
----
51
23
67
58
77
40

query II rowsort
SELECT - col1 AS col2, col2 FROM tab0
----
-1
99
-21
10
-81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT DISTINCT - - 82 * 36 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
2955

skipif mysql # not compatible
query I rowsort label-8561
SELECT DISTINCT - - 82 * 36 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
2955

onlyif mysql # aggregate syntax: 
query II rowsort label-8562
SELECT 41 - + 48 AS col2, 19 - - - COUNT( * ) col0 FROM tab2 cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----
-7
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8562
SELECT 41 - + 48 AS col2, 19 - - - COUNT ( * ) col0 FROM tab2 cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----
-7
19

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE col1 * - col2 NOT BETWEEN col0 - + col2 + 83 AND NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT DISTINCT SUM( DISTINCT 58 ) * ( 72 ) FROM tab0 AS cor0
----
4176

skipif mysql # not compatible
query I rowsort label-8564
SELECT DISTINCT SUM ( DISTINCT 58 ) * ( 72 ) FROM tab0 AS cor0
----
4176

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * - col0 * - 68 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8566
SELECT col1 DIV col0 * - - 97 - - + col0 FROM tab0 AS cor0
----
500
87
97

skipif mysql # not compatible
query I rowsort label-8566
SELECT col1 / col0 * - - 97 - - + col0 FROM tab0 AS cor0
----
500
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8567
SELECT - - CAST( + - 67 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-8567
SELECT - - CAST ( + - 67 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-67
-67
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8568
SELECT DISTINCT + 67 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8568
SELECT DISTINCT + 67 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8569
SELECT ALL + + 78 DIV - col2 AS col0 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL + + 78 / - col2 AS col0 FROM tab1 cor0
----
-1
-1
0

query II rowsort
SELECT ALL + - col0 AS col1, col1 AS col2 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8571
SELECT 41 DIV - COUNT( * ) + - - 55 AS col2 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-8571
SELECT 41 / - COUNT ( * ) + - - 55 AS col2 FROM tab2
----
42

query I rowsort
SELECT col0 + - 69 AS col1 FROM tab2
----
-23
-5
6

onlyif mysql # DIV for integer division: 
query II rowsort label-8573
SELECT 72 DIV - 17 + 93 AS col0, 84 * + + col2 AS col2 FROM tab0
----
89
3948
89
8316
89
840

skipif mysql # not compatible
query II rowsort label-8573
SELECT 72 / - 17 + 93 AS col0, 84 * + + col2 AS col2 FROM tab0
----
89
3948
89
8316
89
840

query I rowsort
SELECT + col0 + - - col0 * - - col0 AS col0 FROM tab1
----
2652
7310
8372

query I rowsort
SELECT + 96 + ( - col2 ) * 77 AS col1 FROM tab2
----
-1675
-2984
-4370

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8576
SELECT ALL * FROM tab0 WHERE ( NOT CAST( NULL AS SIGNED ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8576
SELECT ALL * FROM tab0 WHERE ( NOT CAST ( NULL AS INTEGER ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 95 + + col2 AS col0 FROM tab0 AS cor0
----
105
142
194

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 52 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * - col0 - + col0 FROM tab1
----
-2652
-7310
-8372

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT COUNT( * ) * - ( - 0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8580
SELECT COUNT ( * ) * - ( - 0 ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8581
SELECT DISTINCT - col1 / + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8581
SELECT DISTINCT - col1 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + - col1 col2 FROM tab0 cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT - MAX( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8583
SELECT - MAX ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT - 42 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT ALL SUM( DISTINCT - - col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8586
SELECT ALL SUM ( DISTINCT - - col2 ) FROM tab0 AS cor0
----
156

query I rowsort
SELECT ALL + 36 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT + ( MAX( DISTINCT + col1 ) ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8588
SELECT + ( MAX ( DISTINCT + col1 ) ) AS col1 FROM tab0 AS cor0
----
81

query II rowsort
SELECT col0, col1 AS col1 FROM tab1 cor0
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8590
SELECT - CAST( - COUNT( * ) AS SIGNED ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8590
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 + - ( - + col2 ) + - + 64 + + col0 - - ( + col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 69 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 9 + col1 AS col2 FROM tab0 WHERE NOT ( - - 18 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT ALL - MIN( + 38 ) col2 FROM tab2
----
-38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8594
SELECT ALL - MIN ( + 38 ) col2 FROM tab2
----
-38

query I rowsort
SELECT - + col2 FROM tab1 WHERE NOT 29 >= - 79
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8596
SELECT COUNT( * ) * - ( + COUNT( * ) ) col0 FROM tab1 WHERE NOT 12 + col2 BETWEEN + 84 * - - 95 + + 58 + ( - col0 ) + CAST( col0 AS SIGNED ) AND ( col1 )
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8596
SELECT COUNT ( * ) * - ( + COUNT ( * ) ) col0 FROM tab1 WHERE NOT 12 + col2 BETWEEN + 84 * - - 95 + + 58 + ( - col0 ) + CAST ( col0 AS INTEGER ) AND ( col1 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8597
SELECT + AVG ( + CAST( NULL AS SIGNED ) ) * - 64 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8597
SELECT + AVG ( + CAST ( NULL AS INTEGER ) ) * - 64 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT col0 * + col0 * 33 FROM tab0 cor0
----
249777
310497
7425

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8599
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 24 < + CAST( - - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8599
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 24 < + CAST ( - - col0 AS INTEGER )
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT 89 - - - MIN( DISTINCT col1 ) FROM tab1 AS cor0 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8601
SELECT 89 - - - MIN ( DISTINCT col1 ) FROM tab1 AS cor0 WHERE NULL <= NULL
----
NULL

query I rowsort
SELECT + - 73 + col0 - col1 FROM tab2 AS cor0
----
-65
-78
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT 17 + + MAX( + col2 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8603
SELECT 17 + + MAX ( + col2 ) FROM tab2 AS cor0
----
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + + ( - col1 ) ) < - + 85
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + 85 + - col2 AS col0 FROM tab2 AS cor0
----
27
45
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8606
SELECT - 2 DIV COUNT( * ) - 41 AS col2 FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-8606
SELECT - 2 / COUNT ( * ) - 41 AS col2 FROM tab0 AS cor0
----
-41

query I rowsort
SELECT DISTINCT - - 69 AS col0 FROM tab0 AS cor0
----
69

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NULL <> + + col1 * + - col2 / + + 40 * col2
----

query I rowsort
SELECT DISTINCT col1 * - 86 + col1 AS col1 FROM tab2
----
-4335
-5695
-6545

query I rowsort
SELECT col2 - - + col1 FROM tab0
----
100
128
31

query I rowsort
SELECT ALL - col0 * + - col2 + - col1 FROM tab1
----
4882
5010
6141

query I rowsort
SELECT 62 - + col1 AS col2 FROM tab1
----
15
48
57

query I rowsort
SELECT col0 * - + 26 * - col2 - ( + col2 ) AS col0 FROM tab2
----
113042
27485
66520

query I rowsort
SELECT DISTINCT - 4 + + col1 * 31 + - 41 - col2 AS col1 FROM tab0 AS cor0
----
-113
2419
596

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT ALL - MIN( + 20 ) FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-8615
SELECT ALL - MIN ( + 20 ) FROM tab2
----
-20

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 75 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + - col1 ) AS col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT + - 79 AS col0 FROM tab0 AS cor0
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT DISTINCT - MAX( DISTINCT ( - col2 ) ) FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-8619
SELECT DISTINCT - MAX ( DISTINCT ( - col2 ) ) FROM tab0 cor0
----
10

query I rowsort
SELECT DISTINCT 9 + - + col0 FROM tab2 AS cor0 WHERE col1 * + col0 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 * col1 col2 FROM tab1 cor0
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT - ( - - COUNT( * ) ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8623
SELECT - ( - - COUNT ( * ) ) col2 FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN 91 + + col0 + - 49 AND col2 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT ALL + SUM( ALL col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-8625
SELECT ALL + SUM ( ALL col1 ) FROM tab2
----
195

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8626
SELECT COUNT( * ) AS col1, - ( - COUNT( * ) ) DIV 38 AS col2 FROM tab1
----
3
0

skipif mysql # not compatible
query II rowsort label-8626
SELECT COUNT ( * ) AS col1, - ( - COUNT ( * ) ) / 38 AS col2 FROM tab1
----
3
0

query II rowsort
SELECT - col2 AS col0, 41 FROM tab2
----
-23
41
-40
41
-58
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT COUNT( * ) * - + COUNT( * ) AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-8628
SELECT COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8629
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - col0 * - - col1 + - col2 + - + col2 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - col0 * - - col1 + - col2 + - + col2 AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8630
SELECT DISTINCT - - 60, - COUNT( * ) + CAST( + - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
60
-6

skipif mysql # not compatible
query II rowsort label-8630
SELECT DISTINCT - - 60, - COUNT ( * ) + CAST ( + - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
60
-6

query I rowsort
SELECT 50 * col0 AS col2 FROM tab2
----
2300
3200
3750

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT - 77 - COUNT( * ) + - - 36 + + + 45 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-5

skipif mysql # not compatible
query I rowsort label-8632
SELECT - 77 - COUNT ( * ) + - - 36 + + + 45 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-5

query III rowsort
SELECT * FROM tab1 WHERE 35 IS NULL
----

query I rowsort
SELECT col2 * - + 43 - col0 FROM tab2 AS cor0
----
-1035
-1784
-2569

query I rowsort
SELECT ALL + + col2 - + ( col2 ) FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8636
SELECT + - col1 + CAST( NULL AS SIGNED ) * 95 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8636
SELECT + - col1 + CAST ( NULL AS INTEGER ) * 95 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + + 62, col0 FROM tab2 AS cor0 WHERE ( 74 IS NOT NULL )
----
62
46
62
64
62
75

query I rowsort
SELECT col1 + - + 12 AS col2 FROM tab0
----
-11
69
9

query I rowsort
SELECT col0 + col0 + - col1 AS col1 FROM tab0
----
-51
153
193

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * - col0 * - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT + ( 49 ) + 30 * MAX( ALL + col1 ) AS col2 FROM tab2
----
2359

skipif mysql # not compatible
query I rowsort label-8641
SELECT + ( 49 ) + 30 * MAX ( ALL + col1 ) AS col2 FROM tab2
----
2359

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT DISTINCT - COUNT( * ) * - 73 FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-8642
SELECT DISTINCT - COUNT ( * ) * - 73 FROM tab1
----
219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 16 + + - col1 * + + col2 col1 FROM tab1
----
-1328
-279
-3180

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8644
SELECT DISTINCT - CAST( + + 71 AS SIGNED ) + - + col1 DIV col0 FROM tab0
----
-71
-76

skipif mysql # not compatible
query I rowsort label-8644
SELECT DISTINCT - CAST ( + + 71 AS INTEGER ) + - + col1 / col0 FROM tab0
----
-71
-76

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 + + + 61 AS col1 FROM tab1 AS cor0
----
14
47
56

query I rowsort
SELECT ALL 21 * + - col1 AS col2 FROM tab2 AS cor0
----
-1071
-1407
-1617

query II rowsort
SELECT - col1, + col1 AS col0 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT ALL - 9 * + + col0 FROM tab1 AS cor0
----
-459
-765
-819

query I rowsort
SELECT + - 93 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 WHERE NOT - 15 >= + 51
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-8652
SELECT - COUNT( * ) * - + 8 AS col2, - COUNT( * ) + COUNT( * ) + - ( - 33 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
72
33

skipif mysql # not compatible
query II rowsort label-8652
SELECT - COUNT ( * ) * - + 8 AS col2, - COUNT ( * ) + COUNT ( * ) + - ( - 33 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
72
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8653
SELECT DISTINCT 77 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
3
77

skipif mysql # not compatible
query I rowsort label-8653
SELECT DISTINCT 77 / + col1 AS col1 FROM tab0 AS cor0
----
0
3
77

query II rowsort
SELECT ALL + + col2, ( - + col1 ) * - ( - - col1 ) AS col1 FROM tab2 AS cor0
----
23
2601
40
5929
58
4489

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < col1 + + + col1 + - col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND NULL
----

query II rowsort
SELECT - 41 AS col0, - col1 FROM tab0 AS cor0
----
-41
-1
-41
-21
-41
-81

query I rowsort
SELECT ALL - ( + + col2 ) FROM tab1 AS cor0
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 68 col1, - col0 FROM tab1 AS cor0
----
68
-51
68
-85
68
-91

query I rowsort
SELECT + ( 99 ) FROM tab0 AS cor0
----
99
99
99

query I rowsort
SELECT ALL - - col1 * - col1 * + + col2 AS col1 FROM tab2 AS cor0
----
-237160
-260362
-59823

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < + col1
----

query II rowsort
SELECT col1 AS col1, col1 * - 26 FROM tab0 AS cor0
----
1
-26
21
-546
81
-2106

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT DISTINCT + COUNT( * ) col2 FROM tab0 WHERE - 42 <> col0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8664
SELECT DISTINCT + COUNT ( * ) col2 FROM tab0 WHERE - 42 <> col0
----
3

query I rowsort
SELECT ( col0 ) FROM tab1 WHERE col0 NOT BETWEEN NULL AND - 44 AND NOT NULL IS NULL
----

query II rowsort
SELECT + col2 AS col2, col1 * + col2 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 >= + - 24
----
46
51
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8668
SELECT * FROM tab2 WHERE NOT CAST( + col1 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8668
SELECT * FROM tab2 WHERE NOT CAST ( + col1 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8669
SELECT DISTINCT + + COUNT( - + ( + col0 ) ) AS col2, 81 FROM tab0 AS cor0
----
3
81

skipif mysql # not compatible
query II rowsort label-8669
SELECT DISTINCT + + COUNT ( - + ( + col0 ) ) AS col2, 81 FROM tab0 AS cor0
----
3
81

query I rowsort
SELECT + ( - 86 ) * col0 - - + col0 AS col0 FROM tab1 AS cor0
----
-4335
-7225
-7735

query I rowsort
SELECT ALL + - 92 * - 65 + - + ( + ( + col2 ) ) + - + col2 FROM tab1 AS cor0 WHERE NOT - col0 / col2 * - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 + - + 93 FROM tab1
----
-107
-140
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT - COUNT( * ) + - COUNT( * ) * + SUM( - 4 ) + + COUNT( * ) AS col2 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-8673
SELECT - COUNT ( * ) + - COUNT ( * ) * + SUM ( - 4 ) + + COUNT ( * ) AS col2 FROM tab1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-8674
SELECT ALL col1 DIV + + col0 + - - 40 FROM tab0
----
40
40
45

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL col1 / + + col0 + - - 40 FROM tab0
----
40
40
45

query II rowsort
SELECT DISTINCT col1, - 65 AS col2 FROM tab1 AS cor0
----
14
-65
47
-65
5
-65

query I rowsort
SELECT ALL + col1 - - 21 FROM tab2 AS cor0
----
72
88
98

query I rowsort
SELECT col1 - + col0 + + col2 FROM tab1
----
-21
24
59

query I rowsort
SELECT + col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 44 * + col0 + - col1 + - 56 AS col2 FROM tab2 WHERE + - col2 * col1 IS NULL
----

query I rowsort
SELECT ALL col0 + 72 AS col0 FROM tab1
----
123
157
163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + + col0 col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT 10 * COUNT( + - 40 ) FROM tab1, tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-8682
SELECT 10 * COUNT ( + - 40 ) FROM tab1, tab0 AS cor0
----
90

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 <> + 20
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8684
SELECT - 22 DIV col2 * + - 45 DIV + 40 + 96 FROM tab1
----
96
96
96

skipif mysql # not compatible
query I rowsort label-8684
SELECT - 22 / col2 * + - 45 / + 40 + 96 FROM tab1
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT SUM( 67 ) AS col0 FROM tab1 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-8686
SELECT SUM ( 67 ) AS col0 FROM tab1 AS cor0
----
201

query I rowsort
SELECT DISTINCT col2 * + 27 AS col0 FROM tab1 AS cor0
----
1593
1836
2592

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 9 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 21 BETWEEN col1 AND + 35 + + col1
----
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT DISTINCT + COUNT( DISTINCT + col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8690
SELECT DISTINCT + COUNT ( DISTINCT + col0 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT ALL + ( + 34 ) FROM tab0
----
34
34
34

query I rowsort
SELECT col0 * - ( + col2 ) FROM tab2
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT COUNT( ALL - + 31 ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8694
SELECT COUNT ( ALL - + 31 ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
9

query I rowsort
SELECT ALL - 86 * + ( + 84 ) FROM tab1 AS cor0
----
-7224
-7224
-7224

query I rowsort
SELECT ALL - ( ( + ( - col0 ) ) ) AS col1 FROM tab1 AS cor0 WHERE ( NOT + col2 NOT IN ( - ( + col2 ), - col0 + - + col2 + col1 * + - col2 ) )
----

query I rowsort
SELECT DISTINCT + + 56 * 85 * - 59 + + col2 AS col0 FROM tab2 AS cor0
----
-280782
-280800
-280817

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 IN ( col1, + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + ( + - col0 ) * - - 61 FROM tab1 cor0
----
-3111
-5185
-5551

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 BETWEEN NULL AND + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8701
SELECT - 60 AS col2, + 53 DIV - 63 AS col0 FROM tab1
----
-60
0
-60
0
-60
0

skipif mysql # not compatible
query II rowsort label-8701
SELECT - 60 AS col2, + 53 / - 63 AS col0 FROM tab1
----
-60
0
-60
0
-60
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8702
SELECT 35 + - - col0 DIV - col1 + 32 AS col1 FROM tab1
----
50
64
66

skipif mysql # not compatible
query I rowsort label-8702
SELECT 35 + - - col0 / - col1 + 32 AS col1 FROM tab1
----
50
64
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT DISTINCT SUM( DISTINCT - 76 ) AS col0 FROM tab1
----
-76

skipif mysql # not compatible
query I rowsort label-8703
SELECT DISTINCT SUM ( DISTINCT - 76 ) AS col0 FROM tab1
----
-76

query I rowsort
SELECT ALL col1 * 36 AS col0 FROM tab2
----
1836
2412
2772

query I rowsort
SELECT ALL 52 FROM tab2 WHERE NOT NULL IS NOT NULL
----
52
52
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 49 + - 51 col2, col1 AS col1 FROM tab2 AS cor0
----
-100
51
-100
67
-100
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT ALL + - COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8707
SELECT ALL + - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8708
SELECT DISTINCT 44 DIV - 74 * + ( + col2 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8708
SELECT DISTINCT 44 / - 74 * + ( + col2 ) AS col2 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( NOT col2 >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT DISTINCT + COUNT( * ) FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8710
SELECT DISTINCT + COUNT ( * ) FROM tab1, tab1 AS cor0
----
9

query I rowsort
SELECT ALL - 27 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT + COUNT( * ) * 17 FROM tab1, tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-8712
SELECT + COUNT ( * ) * 17 FROM tab1, tab1 AS cor0
----
153

query I rowsort
SELECT ALL - + 5 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT ALL + col1 + + 82 + col1 FROM tab0 AS cor0
----
124
244
84

query I rowsort
SELECT ( + col1 ) + - 80 + + + col2 FROM tab0 AS cor0
----
-49
20
48

query I rowsort
SELECT - - ( + col0 ) * - 34 FROM tab1 AS cor0 WHERE col1 * - + col0 + - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 45 * 29 - 22 col1 FROM tab0 AS cor0
----
1283
1283
1283

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8718
SELECT + 8 + - CAST( NULL AS SIGNED ) - - CAST( NULL AS DECIMAL ) + - + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8718
SELECT + 8 + - CAST ( NULL AS INTEGER ) - - CAST ( NULL AS REAL ) + - + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 46 * + ( - 92 ) * - - col0 + - 21 + + 73 - col0 AS col1 FROM tab2 AS cor0
----
-194666
-270860
-317423

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8720
SELECT DISTINCT + CAST( NULL AS SIGNED ) col0, COUNT( ( - 91 ) ) AS col0 FROM tab1
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8720
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col0, COUNT ( ( - 91 ) ) AS col0 FROM tab1
----
NULL
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 - col2 - - 18 <= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 14 = ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( col1, col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 col0 FROM tab0 AS cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT - col1 * - ( + - col0 ) FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT col1 + - 10 AS col1 FROM tab2 cor0
----
41
57
67

query I rowsort
SELECT ALL + col2 * + + col2 * 44 FROM tab1 cor0
----
153164
203456
405504

onlyif mysql # DIV for integer division: 
query I rowsort label-8729
SELECT + col1 + + col1 DIV col2 AS col0 FROM tab0 AS cor0
----
1
23
82

skipif mysql # not compatible
query I rowsort label-8729
SELECT + col1 + + col1 / col2 AS col0 FROM tab0 AS cor0
----
1
23
82

query I rowsort
SELECT + col0 + + ( + + col0 ) AS col2 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT ALL MIN( ALL + 3 ) * - 29 AS col1 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-8731
SELECT ALL MIN ( ALL + 3 ) * - 29 AS col1 FROM tab0 AS cor0
----
-87

query I rowsort
SELECT ALL + + 96 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 99 * - - col0 col0 FROM tab1 AS cor0
----
5049
8415
9009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab2 AS cor0 WHERE ( + - col0 ) + 69 + + + 18 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8735
SELECT DISTINCT - 60 DIV + col0 + ( col1 ) + + col2 FROM tab2 AS cor0
----
117
125
73

skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT - 60 / + col0 + ( col1 ) + + col2 FROM tab2 AS cor0
----
117
125
73

onlyif mysql # aggregate syntax: 
query II rowsort label-8736
SELECT 85 AS col2, - MAX( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
85
NULL

skipif mysql # not compatible
query II rowsort label-8736
SELECT 85 AS col2, - MAX ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
85
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8737
SELECT + 16 DIV + - COUNT( * ) AS col2 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-8737
SELECT + 16 / + - COUNT ( * ) AS col2 FROM tab0
----
-5

query I rowsort
SELECT ALL 35 + + col0 + - col1 AS col1 FROM tab0
----
-31
101
131

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT COUNT( * ) AS col0 FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8739
SELECT COUNT ( * ) AS col0 FROM tab1, tab2 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 + + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT + MIN( + 36 ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-8741
SELECT + MIN ( + 36 ) FROM tab2
----
36

query I rowsort
SELECT DISTINCT col0 + + + col2 AS col1 FROM tab2
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8743
SELECT CAST( NULL AS SIGNED ) * + - col1 FROM tab2 WHERE ( - 34 * - col1 + - + col1 + - col1 - - + col0 ) < + col1 - - + col0
----

skipif mysql # not compatible
query I rowsort label-8743
SELECT CAST ( NULL AS INTEGER ) * + - col1 FROM tab2 WHERE ( - 34 * - col1 + - + col1 + - col1 - - + col0 ) < + col1 - - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT ALL 7 * + + COUNT( ALL + col0 ) col2 FROM tab0
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8744
SELECT ALL 7 * + + COUNT ( ALL + col0 ) col2 FROM tab0
----
21

query II rowsort
SELECT - 37 AS col2, + 11 FROM tab2
----
-37
11
-37
11
-37
11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8746
SELECT - + CAST( NULL AS DECIMAL ) * + + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8746
SELECT - + CAST ( NULL AS REAL ) * + + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8747
SELECT ALL - COUNT( * ) / + - CAST( NULL AS SIGNED ) * 46 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL - COUNT ( * ) / + - CAST ( NULL AS INTEGER ) * 46 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + 69 * + - col2 + + col1 FROM tab2 AS cor0
----
-1536
-2683
-3935

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8749
SELECT ALL + col2 + 88 - + CAST( - 41 AS SIGNED ) + + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
198
233
262

skipif mysql # not compatible
query I rowsort label-8749
SELECT ALL + col2 + 88 - + CAST ( - 41 AS INTEGER ) + + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
198
233
262

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND 22
----

query I rowsort
SELECT + col2 + + ( + - 18 ) - col2 * - col1 FROM tab0 AS cor0
----
180
202
3836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8752
SELECT col2 * col2 * - col0 + + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8752
SELECT col2 * col2 * - col0 + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT - 20 AS col0, + col2 AS col2 FROM tab0 cor0
----
-20
10
-20
47
-20
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + ( + - col1 ) ) col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT col1 + + col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
141
142
97

query I rowsort
SELECT DISTINCT col2 + 64 FROM tab0 AS cor0
----
111
163
74

query I rowsort
SELECT ALL - col1 + - + 62 FROM tab2 AS cor0
----
-113
-129
-139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0 AS col2, - col2 col1 FROM tab1 cor0
----
51
-96
85
-59
91
-68

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 <= + 11 + - 99
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 * - 48 AS col1 FROM tab2
----
-2208
-3072
-3600

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT ALL + SUM( + col0 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8761
SELECT ALL + SUM ( + col0 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL col0 * + 64 * + col0 AS col1 FROM tab2
----
135424
262144
360000

query I rowsort
SELECT - col2 * + 76 AS col0 FROM tab2
----
-1748
-3040
-4408

query I rowsort
SELECT - col2 * - 77 * + 26 AS col1 FROM tab1
----
118118
136136
192192

query II rowsort
SELECT ( + col2 ) AS col2, - col1 FROM tab2
----
23
-51
40
-77
58
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8766
SELECT ALL + col1 + + + 68 + 4 AS col0 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * 34 IS NULL
----
153
73
93

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL + col1 + + + 68 + 4 AS col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * 34 IS NULL
----
153
73
93

query II rowsort
SELECT - col1 AS col0, - 61 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-61
-21
-61
-81
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT DISTINCT + COUNT( ALL col0 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8768
SELECT DISTINCT + COUNT ( ALL col0 ) AS col2 FROM tab1 cor0
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 91 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT - + ( COUNT( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8770
SELECT - + ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8771
SELECT DISTINCT - 81 / - - 98 * - + CAST( NULL AS SIGNED ) + - col2 + - 31 + + - col0 FROM tab0 WHERE NOT ( NOT CAST( - 38 AS SIGNED ) - ( 95 ) <= + - 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8771
SELECT DISTINCT - 81 / - - 98 * - + CAST ( NULL AS INTEGER ) + - col2 + - 31 + + - col0 FROM tab0 WHERE NOT ( NOT CAST ( - 38 AS INTEGER ) - ( 95 ) <= + - 56 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8772
SELECT - col1 + - + col2 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8772
SELECT - col1 + - + col2 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query II rowsort
SELECT ALL + col2 AS col1, col1 AS col0 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT DISTINCT + + 0 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT - - ( 37 ) AS col2 FROM tab0 AS cor0
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-8777
SELECT DISTINCT - COUNT( * ), + 5 AS col2 FROM tab2 AS cor0
----
-3
5

skipif mysql # not compatible
query II rowsort label-8777
SELECT DISTINCT - COUNT ( * ), + 5 AS col2 FROM tab2 AS cor0
----
-3
5

query I rowsort
SELECT DISTINCT col2 * + + col1 * + 62 * - col0 + - col1 FROM tab1
----
-1554655
-18031879
-4249742

query I rowsort
SELECT ALL ( - - 2 ) FROM tab1
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT ALL + 21 + MIN( col0 ) AS col1 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-8780
SELECT ALL + 21 + MIN ( col0 ) AS col1 FROM tab0
----
36

query I rowsort
SELECT DISTINCT - ( + 76 ) + col1 AS col0 FROM tab1
----
-29
-62
-71

query I rowsort
SELECT ALL col0 + + + col2 AS col1 FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT ALL - 0 + - - SUM( - - 63 ) + + COUNT( * ) + SUM( + 3 ) FROM tab0
----
201

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL - 0 + - - SUM ( - - 63 ) + + COUNT ( * ) + SUM ( + 3 ) FROM tab0
----
201

query I rowsort
SELECT ALL - col1 * col2 + col0 FROM tab1
----
-1293
-210
-3105

query I rowsort
SELECT - 30 + - col1 FROM tab0
----
-111
-31
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - - col1 + + 60 col0 FROM tab2 AS cor0
----
69
88
97

query II rowsort
SELECT ALL - ( col0 ) AS col2, - 67 FROM tab1 AS cor0
----
-51
-67
-85
-67
-91
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8788
SELECT ALL + CAST( NULL AS DECIMAL ) - 4 * - - CAST( - 99 AS SIGNED ), + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8788
SELECT ALL + CAST ( NULL AS REAL ) - 4 * - - CAST ( - 99 AS INTEGER ), + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT ALL + + SUM( ALL + 7 ) AS col1 FROM tab1 cor0
----
21

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL + + SUM ( ALL + 7 ) AS col1 FROM tab1 cor0
----
21

query I rowsort
SELECT + ( - 11 ) FROM tab2 AS cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT + 22 * 85 + + MIN( DISTINCT - col2 ) FROM tab0 AS cor0
----
1771

skipif mysql # not compatible
query I rowsort label-8791
SELECT + 22 * 85 + + MIN ( DISTINCT - col2 ) FROM tab0 AS cor0
----
1771

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT COUNT( * ) - - COUNT( ALL col1 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8792
SELECT COUNT ( * ) - - COUNT ( ALL col1 ) FROM tab2
----
6

query I rowsort
SELECT 70 - - col1 AS col2 FROM tab0
----
151
71
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT ALL COUNT( * ) + COUNT( * ) + - 93 AS col2 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-8794
SELECT ALL COUNT ( * ) + COUNT ( * ) + - 93 AS col2 FROM tab0
----
-87

query I rowsort
SELECT - 4 * + 89 + - 44 + 59 FROM tab2 AS cor0
----
-341
-341
-341

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8796
SELECT ALL + - 56 DIV + MAX( - + 32 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL + - 56 / + MAX ( - + 32 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL - - 62 AS col2 FROM tab0 AS cor0
----
62
62
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8798
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 + 67 + ( + col1 ) * + col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8798
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 + 67 + ( + col1 ) * + col2 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT - MAX( - 88 ) AS col0 FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-8799
SELECT - MAX ( - 88 ) AS col0 FROM tab2 AS cor0
----
88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 <> ( - ( col2 ) )
----

query I rowsort
SELECT ALL - + 20 AS col1 FROM tab1 AS cor0 WHERE NOT col2 + + - col1 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL col2 * + 25 AS col1 FROM tab1 AS cor0
----
1475
1700
2400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8803
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8803
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT + COUNT( DISTINCT - col1 ) * 26 AS col1 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-8804
SELECT + COUNT ( DISTINCT - col1 ) * 26 AS col1 FROM tab1
----
78

query I rowsort
SELECT ALL + 93 * 48 AS col1 FROM tab0
----
4464
4464
4464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8806
SELECT 83 / + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-8806
SELECT 83 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8807
SELECT ALL col0, + 17 * - + col2 + col0 DIV col0 + col0 AS col0 FROM tab2
----
46
-344
64
-615
75
-910

skipif mysql # not compatible
query II rowsort label-8807
SELECT ALL col0, + 17 * - + col2 + col0 / col0 + col0 AS col0 FROM tab2
----
46
-344
64
-615
75
-910

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( NOT NULL NOT BETWEEN col1 AND - - col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8809
SELECT DISTINCT + - col0 / + + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8809
SELECT DISTINCT + - col0 / + + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL ( - 15 ) FROM tab2 AS cor0
----
-15
-15
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-8811
SELECT + col1 DIV - 99 - + 10 * 23 FROM tab2 AS cor0
----
-230
-230
-230

skipif mysql # not compatible
query I rowsort label-8811
SELECT + col1 / - 99 - + 10 * 23 FROM tab2 AS cor0
----
-230
-230
-230

query I rowsort
SELECT DISTINCT 3 * col1 AS col2 FROM tab1 cor0
----
141
15
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8813
SELECT - - 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-8813
SELECT - - CAST ( NULL AS INTEGER ), - ( - + col1 ) AS col2 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query II rowsort
SELECT - col0, col2 + + ( - col1 ) - 12 AS col2 FROM tab0 AS cor0
----
-15
-46
-87
-23
-97
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, - 91 * - + 12 AS col1 FROM tab0 AS cor0
----
15
1092
87
1092
97
1092

query I rowsort
SELECT DISTINCT col0 * - col0 * + col1 FROM tab1
----
-36125
-36414
-389207

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE ( NOT NULL BETWEEN + col0 AND col1 )
----

query I rowsort
SELECT col1 * + 11 + + + col1 - - col1 * - - col0 FROM tab0 cor0
----
109
2079
2187

onlyif mysql # DIV for integer division: 
query I rowsort label-8819
SELECT DISTINCT - 77 * col2 + + col0 DIV + + 73 FROM tab1 AS cor0
----
-4542
-5235
-7392

skipif mysql # not compatible
query I rowsort label-8819
SELECT DISTINCT - 77 * col2 + + col0 / + + 73 FROM tab1 AS cor0
----
-4542
-5235
-7392

query I rowsort
SELECT - 54 + - ( + + col2 ) FROM tab0 AS cor0
----
-101
-153
-64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT - ( - SUM( - col0 ) ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8822
SELECT - ( - SUM ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
-185

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - 40 > + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT ( NULL IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 49 AS col2 FROM tab1 cor0
----
-49
-49
-49

query I rowsort
SELECT ALL 92 AS col2 FROM tab1 cor0
----
92
92
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8827
SELECT 40 DIV - MIN( - 77 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8827
SELECT 40 / - MIN ( - 77 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT ALL 82 + - MIN( DISTINCT - col0 ) AS col1 FROM tab0
----
179

skipif mysql # not compatible
query I rowsort label-8828
SELECT ALL 82 + - MIN ( DISTINCT - col0 ) AS col1 FROM tab0
----
179

query I rowsort
SELECT col2 * col1 * - + ( - - col2 ) - + + 29 FROM tab0 AS cor0
----
-178958
-2129
-9830

query I rowsort
SELECT ALL - col2 * + - col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT DISTINCT MAX( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8831
SELECT DISTINCT MAX ( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8832
SELECT + 67 + - + CAST( NULL AS SIGNED ) AS col0, col2 * col0 AS col2 FROM tab0
----
NULL
705
NULL
870
NULL
9603

skipif mysql # not compatible
query II rowsort label-8832
SELECT + 67 + - + CAST ( NULL AS INTEGER ) AS col0, col2 * col0 AS col2 FROM tab0
----
NULL
705
NULL
870
NULL
9603

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8834
SELECT ALL + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 53 BETWEEN - col2 AND + col0
----
75
67
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8837
SELECT DISTINCT + MAX( ALL + 85 ), COUNT( * ) * + 4 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
85
15

skipif mysql # not compatible
query II rowsort label-8837
SELECT DISTINCT + MAX ( ALL + 85 ), COUNT ( * ) * + 4 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
85
15

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8840
SELECT - + 48 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) < - col1
----

skipif mysql # not compatible
query I rowsort label-8840
SELECT - + 48 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) < - col1
----

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1, + 45, + - col1, + ( col0 ) * - col0, col2 / - - col2 * + 23 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 * + - col1 col1 FROM tab0
----
2673
33
693

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT NULL IN ( - col2 - - col1 * + + 46, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT 39 * MAX( - ( + + col1 ) ) AS col0 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-8845
SELECT 39 * MAX ( - ( + + col1 ) ) AS col0 FROM tab0
----
-39

query I rowsort
SELECT ALL col2 * + 38 FROM tab2
----
1520
2204
874

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT DISTINCT MIN( DISTINCT + + ( - col0 ) ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8847
SELECT DISTINCT MIN ( DISTINCT + + ( - col0 ) ) AS col2 FROM tab1
----
-91

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - 6 * - col0 + 20 AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8849
SELECT ALL + CAST( 15 AS SIGNED ) FROM tab0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-8849
SELECT ALL + CAST ( 15 AS INTEGER ) FROM tab0
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT DISTINCT - ( - + 92 ) * + + ( - + COUNT( * ) ) AS col0 FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-8850
SELECT DISTINCT - ( - + 92 ) * + + ( - + COUNT ( * ) ) AS col0 FROM tab1
----
-276

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8851
SELECT ALL - ( + col1 ) * 33 * - CAST( NULL AS DECIMAL ) + - 1 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL - ( + col1 ) * 33 * - CAST ( NULL AS REAL ) + - 1 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8852
SELECT ALL col2 + col0 * col0 - col1 AS col0 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8852
SELECT ALL col2 + col0 * col0 - col1 AS col0 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT col2 * 23 * - 98 FROM tab1
----
-132986
-153272
-216384

query II rowsort
SELECT ( - col0 ) * + - col1, 6 AS col0 FROM tab0
----
1215
6
1827
6
97
6

query II rowsort
SELECT DISTINCT + col2, 95 AS col1 FROM tab2
----
23
95
40
95
58
95

query I rowsort
SELECT + - 21 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-21
-21
-21

query I rowsort
SELECT ALL col0 * - col2 + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-658
-860
-9504

query I rowsort
SELECT ALL - col2 * - 82 AS col0 FROM tab2 AS cor0
----
1886
3280
4756

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT - SUM( ALL + + 36 ) col2 FROM tab0 cor0
----
-108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8859
SELECT - SUM ( ALL + + 36 ) col2 FROM tab0 cor0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT - MIN( col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-8860
SELECT - MIN ( col0 ) FROM tab0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-8861
SELECT ALL + 22 + - 24 DIV + + 81 AS col0 FROM tab0
----
22
22
22

skipif mysql # not compatible
query I rowsort label-8861
SELECT ALL + 22 + - 24 / + + 81 AS col0 FROM tab0
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT ALL + + COUNT( * ) * - + 89 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-801

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL + + COUNT ( * ) * - + 89 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-801

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 73 - - 26 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT ALL + - MAX( DISTINCT col0 ) * + - ( - - 32 ) AS col0 FROM tab1 AS cor0
----
2912

skipif mysql # not compatible
query I rowsort label-8864
SELECT ALL + - MAX ( DISTINCT col0 ) * + - ( - - 32 ) AS col0 FROM tab1 AS cor0
----
2912

query I rowsort
SELECT DISTINCT + ( + - 56 ) + + + 57 FROM tab2 AS cor0
----
1

query I rowsort
SELECT - 28 + + 28 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 32 + - - 59 - + col1 AS col1 FROM tab2 AS cor0
----
-24
-40
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT ALL + - SUM( - col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL + - SUM ( - col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT + col0 + - + col0 FROM tab0 AS cor0
----
0

query II rowsort
SELECT ALL 46 AS col0, - col0 + - col0 + + 37 FROM tab2 cor0
----
46
-113
46
-55
46
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT SUM( ALL col1 ) + COUNT( * ) FROM tab0 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-8871
SELECT SUM ( ALL col1 ) + COUNT ( * ) FROM tab0 AS cor0
----
106

query II rowsort
SELECT ALL + ( - + col2 ) AS col0, 40 AS col1 FROM tab1
----
-59
40
-68
40
-96
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8873
SELECT - 52 + - CAST( + - col0 AS SIGNED ) FROM tab2
----
-6
12
23

skipif mysql # not compatible
query I rowsort label-8873
SELECT - 52 + - CAST ( + - col0 AS INTEGER ) FROM tab2
----
-6
12
23

query I rowsort
SELECT 97 * - col0 + - 33 FROM tab0
----
-1488
-8472
-9442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 84 col1 FROM tab0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT - MIN( DISTINCT col2 ) + - 17 FROM tab1 WHERE NULL IS NULL
----
-76

skipif mysql # not compatible
query I rowsort label-8876
SELECT - MIN ( DISTINCT col2 ) + - 17 FROM tab1 WHERE NULL IS NULL
----
-76

query II rowsort
SELECT col1 * + col2 AS col0, + col1 - - col2 AS col1 FROM tab2
----
1173
74
3080
117
3886
125

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT DISTINCT - SUM( + col2 ) * + 5 - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-608

skipif mysql # not compatible
query I rowsort label-8878
SELECT DISTINCT - SUM ( + col2 ) * + 5 - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-608

query I rowsort
SELECT DISTINCT - col2 - + 11 + col2 * + col0 AS col1 FROM tab1 cor0
----
4789
4945
6109

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8880
SELECT COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0
----
0

query II rowsort
SELECT DISTINCT - col1, + col0 + + - 8 * - col2 AS col2 FROM tab1
----
-14
819
-47
635
-5
557

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT - 50 + col0 - + col1 + col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8883
SELECT CAST( - ( - 67 ) AS SIGNED ) FROM tab1 AS cor0
----
67
67
67

skipif mysql # not compatible
query I rowsort label-8883
SELECT CAST ( - ( - 67 ) AS INTEGER ) FROM tab1 AS cor0
----
67
67
67

query I rowsort
SELECT ALL - col0 * - - 10 * - col2 FROM tab2 AS cor0
----
10580
25600
43500

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 BETWEEN + - col0 * + 87 AND NULL
----

query I rowsort
SELECT ALL + col2 * - - 14 AS col1 FROM tab2 AS cor0
----
322
560
812

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT ALL - SUM( DISTINCT + col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-8887
SELECT ALL - SUM ( DISTINCT + col0 ) FROM tab1 AS cor0
----
-227

onlyif mysql # DIV for integer division: 
query I rowsort label-8888
SELECT ALL + col0 DIV - - ( + col0 ) + - col1 + 3 FROM tab1 AS cor0
----
-1
-10
-43

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL + col0 / - - ( + col0 ) + - col1 + 3 FROM tab1 AS cor0
----
-1
-10
-43

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 < col0
----

query I rowsort
SELECT DISTINCT + 98 * - + col2 AS col1 FROM tab0
----
-4606
-9702
-980

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 col2 FROM tab2
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT 57 * + MAX( col1 ) col1 FROM tab1
----
2679

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8892
SELECT 57 * + MAX ( col1 ) col1 FROM tab1
----
2679

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT DISTINCT - COUNT( * ) * - + 86 FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-8893
SELECT DISTINCT - COUNT ( * ) * - + 86 FROM tab2
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT ALL 7 / + - COUNT( * ) * + + MIN( + ( + 87 ) ) AS col1 FROM tab2 cor0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL handles NULL in DIV/0 by differently
query I rowsort label-8894
SELECT ALL 7 / + - COUNT ( * ) * + + MIN ( + ( + 87 ) ) AS col1 FROM tab2 cor0 WHERE NOT NULL >= NULL
----
NULL

query I rowsort
SELECT DISTINCT + - ( + 88 ) * col2 AS col2 FROM tab1 AS cor0
----
-5192
-5984
-8448

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT - SUM( + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8896
SELECT - SUM ( + col1 ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT DISTINCT 38 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8898
SELECT ALL - 6 DIV - 20 col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8898
SELECT ALL - 6 / - 20 col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8899
SELECT DISTINCT - - ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8899
SELECT DISTINCT - - ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col1 + - - col0 + + col1 * - col0 + 78 FROM tab0
----
-1203
-1683
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT ALL + COUNT( * ) + + COUNT( * ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 + 96 * + 7 col2 FROM tab1
----
697
697
697

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8903
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8903
SELECT DISTINCT + CAST ( NULL AS REAL ) col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 90 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8905
SELECT ALL col0 DIV 65 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL col0 / 65 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT col1 * + + 14 * + col0 AS col2 FROM tab0 cor0
----
1358
17010
25578

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8907
SELECT * FROM tab1 WHERE - + CAST( NULL AS SIGNED ) * - 84 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8907
SELECT * FROM tab1 WHERE - + CAST ( NULL AS INTEGER ) * - 84 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8908
SELECT DISTINCT col2 DIV - 54 + - - col1 + 58 + col1 FROM tab1
----
151
67
85

skipif mysql # not compatible
query I rowsort label-8908
SELECT DISTINCT col2 / - 54 + - - col1 + 58 + col1 FROM tab1
----
151
67
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT COUNT( * ) - - 7 * ( COUNT( * ) ) AS col0 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-8909
SELECT COUNT ( * ) - - 7 * ( COUNT ( * ) ) AS col0 FROM tab1
----
24

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE NULL < col0
----

query I rowsort
SELECT ALL + col1 * + 77 + + ( + + col1 ) AS col2 FROM tab0
----
1638
6318
78

query I rowsort
SELECT + col0 + + + 62 AS col0 FROM tab1
----
113
147
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8913
SELECT DISTINCT - COUNT( + 98 ) + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8913
SELECT DISTINCT - COUNT ( + 98 ) + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT - COUNT( * ) + 45 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-8914
SELECT - COUNT ( * ) + 45 FROM tab1
----
42

query I rowsort
SELECT ALL col2 + - - 61 FROM tab1
----
120
129
157

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT ALL - MAX( 34 ) + 30 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-8916
SELECT ALL - MAX ( 34 ) + 30 FROM tab1 AS cor0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8917
SELECT ALL + col2 - + col2 * col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL + col2 - + col2 * col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col2, - col1 * 79 FROM tab2 AS cor0
----
23
-4029
40
-6083
58
-5293

query II rowsort
SELECT ALL 24, + col0 AS col1 FROM tab1 AS cor0
----
24
51
24
85
24
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 25 - col1 NOT IN ( - + col0, + col2, col0, + + col0 )
----

query I rowsort
SELECT ALL - + 11 FROM tab2 cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8922
SELECT COUNT( * ) DIV - 66 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8922
SELECT COUNT ( * ) / - 66 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col2 AS col2 FROM tab0 cor0 WHERE NOT + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 * 17 FROM tab1 AS cor0
----
-238
-799
-85

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 16 + - - 53 IS NOT NULL
----

query II rowsort
SELECT - 42 AS col2, - 56 AS col1 FROM tab2
----
-42
-56
-42
-56
-42
-56

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE - col1 * col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8928
SELECT DISTINCT 32, + ( + 45 ) * + 47 - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
32
NULL

skipif mysql # not compatible
query II rowsort label-8928
SELECT DISTINCT 32, + ( + 45 ) * + 47 - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT DISTINCT + MIN( DISTINCT + 82 ) + - 78 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-8929
SELECT DISTINCT + MIN ( DISTINCT + 82 ) + - 78 FROM tab2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT - 40 + + + SUM( - col2 ) col1 FROM tab1
----
-263

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8930
SELECT - 40 + + + SUM ( - col2 ) col1 FROM tab1
----
-263

query I rowsort
SELECT DISTINCT 79 * + col0 FROM tab1
----
4029
6715
7189

query I rowsort
SELECT ALL 28 + + col1 AS col0 FROM tab1
----
33
42
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - - 23 <= NULL OR col1 IS NULL
----

query I rowsort
SELECT + 26 + col0 FROM tab0
----
113
123
41

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 * col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 + - 37 FROM tab1
----
-105
-133
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-8937
SELECT - 13 DIV col1 + - 4 AS col2 FROM tab0
----
-17
-4
-4

skipif mysql # not compatible
query I rowsort label-8937
SELECT - 13 / col1 + - 4 AS col2 FROM tab0
----
-17
-4
-4

query I rowsort
SELECT col2 * col0 FROM tab0 WHERE NOT col1 = + col0
----
705
870
9603

query I rowsort
SELECT + col0 + col0 FROM tab2 WHERE ( + col0 + - col0 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT ( COUNT( * ) ) AS col1 FROM tab2 WHERE NOT 78 + + 68 = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8940
SELECT ( COUNT ( * ) ) AS col1 FROM tab2 WHERE NOT 78 + + 68 = ( NULL )
----
0

query I rowsort
SELECT DISTINCT + ( 82 ) * col2 FROM tab0
----
3854
8118
820

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT DISTINCT 25 * 2 - COUNT( * ) FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-8942
SELECT DISTINCT 25 * 2 - COUNT ( * ) FROM tab2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8943
SELECT DISTINCT 2 * - 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-8943
SELECT DISTINCT 2 * - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 47 + + col2 ) NOT BETWEEN + col0 AND ( NULL )
----

query I rowsort
SELECT 1 * - 75 AS col2 FROM tab1
----
-75
-75
-75

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8947
SELECT ALL 19 + - 49 DIV - 11 FROM tab2
----
23
23
23

skipif mysql # not compatible
query I rowsort label-8947
SELECT ALL 19 + - 49 / - 11 FROM tab2
----
23
23
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8948
SELECT + 81 - - 2 DIV - 79 AS col0 FROM tab1
----
81
81
81

skipif mysql # not compatible
query I rowsort label-8948
SELECT + 81 - - 2 / - 79 AS col0 FROM tab1
----
81
81
81

query I rowsort
SELECT ALL ( - col2 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT + COUNT( * ) * ( + COUNT( * ) ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8950
SELECT + COUNT ( * ) * ( + COUNT ( * ) ) AS col0 FROM tab0
----
9

query I rowsort
SELECT ALL col0 * col0 AS col2 FROM tab2 WHERE NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT 56 * - COUNT( * ) FROM tab0
----
-168

skipif mysql # not compatible
query I rowsort label-8952
SELECT 56 * - COUNT ( * ) FROM tab0
----
-168

query I rowsort
SELECT + 71 * 45 FROM tab1
----
3195
3195
3195

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 16 + col0 AS col2 FROM tab1
----
101
107
67

query III rowsort
SELECT * FROM tab2 WHERE ( col0 / - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT ALL - MIN( - col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-8957
SELECT ALL - MIN ( - col0 ) AS col1 FROM tab0
----
97

query I rowsort
SELECT col2 * + 89 AS col0 FROM tab2 WHERE ( + 56 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT + 51 * 87 + + ( COUNT( * ) ) AS col0 FROM tab1
----
4440

skipif mysql # not compatible
query I rowsort label-8959
SELECT + 51 * 87 + + ( COUNT ( * ) ) AS col0 FROM tab1
----
4440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8960
SELECT 40 * - col0 - + CAST( + 94 - + 13 AS SIGNED ) FROM tab2
----
-1921
-2641
-3081

skipif mysql # not compatible
query I rowsort label-8960
SELECT 40 * - col0 - + CAST ( + 94 - + 13 AS INTEGER ) FROM tab2
----
-1921
-2641
-3081

query I rowsort
SELECT ( col2 ) * + 28 + col2 FROM tab0
----
1363
2871
290

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT DISTINCT - COUNT( 12 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8962
SELECT DISTINCT - COUNT ( 12 ) AS col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT ALL COUNT( * ) + COUNT( col1 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-8963
SELECT ALL COUNT ( * ) + COUNT ( col1 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
6

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 68 * + col1 + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 45 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT - MAX( ALL col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8966
SELECT - MAX ( ALL col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8967
SELECT + ( - 59 ) * col0 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) NOT IN ( col0 * + col0 + 9 )
----

skipif mysql # not compatible
query I rowsort label-8967
SELECT + ( - 59 ) * col0 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) NOT IN ( col0 * + col0 + 9 )
----

query I rowsort
SELECT ALL col2 * 74 AS col2 FROM tab2 AS cor0
----
1702
2960
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT DISTINCT + COUNT( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8969
SELECT DISTINCT + COUNT ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8970
SELECT col2 + + col0 DIV 77 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8970
SELECT col2 + + col0 / 77 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 32 * - col0 col1 FROM tab0
----
2784
3104
480

query I rowsort
SELECT ALL col0 * col0 AS col1 FROM tab0 AS cor0 WHERE NOT col0 = ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8974
SELECT + ( COUNT( * ) ) DIV + 45 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8974
SELECT + ( COUNT ( * ) ) / + 45 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8975
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----
0

query I rowsort
SELECT 22 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT ALL 88 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL 88 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT ALL - + COUNT( col0 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8978
SELECT ALL - + COUNT ( col0 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + - col0 * ( + col1 ) FROM tab2 AS cor0
----
-2346
-4928
-5025

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN col0 * - col1 + col0 AND col0 * + 7
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - ( col0 ) * - 48 AS col0 FROM tab0 AS cor0
----
-4176
-4656
-720

query I rowsort
SELECT - col0 * 57 FROM tab0 cor0
----
-4959
-5529
-855

query I rowsort
SELECT ALL + 30 + + col0 FROM tab2 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT MAX( ALL + 6 ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-8984
SELECT MAX ( ALL + 6 ) AS col2 FROM tab0
----
6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col2 + + ( + 48 + - 45 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 41 * col2 FROM tab2 WHERE NULL BETWEEN ( - 36 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8987
SELECT DISTINCT col0 + + 90 DIV col1 AS col1 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-8987
SELECT DISTINCT col0 + + 90 / col1 AS col1 FROM tab2
----
47
65
76

query I rowsort
SELECT 45 * 35 - col2 * col2 AS col0 FROM tab2 WHERE ( + col1 ) IS NOT NULL
----
-1789
-25
1046

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * col1 + col0 NOT BETWEEN ( col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8990
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) / col2 NOT IN ( 19 / col2 )
----

skipif mysql # not compatible
query III rowsort label-8990
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) / col2 NOT IN ( 19 / col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT - - COUNT( * ) * + COUNT( * ) * + 67 col0 FROM tab1 cor0
----
603

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8991
SELECT - - COUNT ( * ) * + COUNT ( * ) * + 67 col0 FROM tab1 cor0
----
603

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - 21 + + col0 FROM tab0 AS cor0
----
108
118
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8994
SELECT 84 + 26 DIV 57 * + COUNT( * ) FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-8994
SELECT 84 + 26 / 57 * + COUNT ( * ) FROM tab2
----
84

query I rowsort
SELECT ALL col0 + 16 AS col2 FROM tab0
----
103
113
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8996
SELECT - ( CAST( + COUNT( * ) AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8996
SELECT - ( CAST ( + COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + 30 + col1 * + col0 + 92 FROM tab2 AS cor0
----
2468
5050
5147

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT ALL 55 - COUNT( * ) AS col0 FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL 55 - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
52

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 cor0 WHERE col2 / 82 >= 97
----

query I rowsort
SELECT DISTINCT - 9 FROM tab1 AS cor0 WHERE col2 IN ( col0 * ( col2 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 - + + col0 IN ( 91 / - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9003
SELECT + col2 * + CAST( 76 AS SIGNED ) + 75 AS col0 FROM tab0 AS cor0 WHERE ( - CAST( NULL AS SIGNED ) + 33 ) <> 98 / col2 + col1
----

skipif mysql # not compatible
query I rowsort label-9003
SELECT + col2 * + CAST ( 76 AS INTEGER ) + 75 AS col0 FROM tab0 AS cor0 WHERE ( - CAST ( NULL AS INTEGER ) + 33 ) <> 98 / col2 + col1
----

query I rowsort
SELECT DISTINCT col0 - - col0 AS col0 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT ALL col2 * + 72 AS col2 FROM tab1
----
4248
4896
6912

onlyif mysql # DIV for integer division: 
query II rowsort label-9006
SELECT + col2 DIV 5 AS col1, 84 AS col1 FROM tab2
----
11
84
4
84
8
84

skipif mysql # not compatible
query II rowsort label-9006
SELECT + col2 / 5 AS col1, 84 AS col1 FROM tab2
----
11
84
4
84
8
84

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( 47 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9009
SELECT DISTINCT - ( - col2 ) DIV - col0 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9009
SELECT DISTINCT - ( - col2 ) / - col0 AS col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT 74 + 33 + + col0 IS NOT NULL
----

query I rowsort
SELECT 19 * + col1 AS col1 FROM tab1
----
266
893
95

onlyif mysql # aggregate syntax: 
query II rowsort label-9012
SELECT DISTINCT + COUNT( * ) * + 73 AS col2, - 12 - 36 FROM tab1 AS cor0
----
219
-48

skipif mysql # not compatible
query II rowsort label-9012
SELECT DISTINCT + COUNT ( * ) * + 73 AS col2, - 12 - 36 FROM tab1 AS cor0
----
219
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 col1 FROM tab0 cor0
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT DISTINCT ( - COUNT( * ) ) AS col0 FROM tab2 WHERE + ( col0 ) / col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9014
SELECT DISTINCT ( - COUNT ( * ) ) AS col0 FROM tab2 WHERE + ( col0 ) / col0 IS NULL
----
0

query I rowsort
SELECT ALL + col2 + + col2 + + - col2 + 36 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
104
132
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT SUM( - + ( + - ( 77 ) ) ) FROM tab1
----
231

skipif mysql # not compatible
query I rowsort label-9016
SELECT SUM ( - + ( + - ( 77 ) ) ) FROM tab1
----
231

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NULL > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 15 ) col2 FROM tab1 AS cor0
----
15
15
15

query I rowsort
SELECT + col2 + - 19 AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
40
49
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col0 + + col1 + ( - + 78 ) * 58 ) BETWEEN ( col2 ) AND NULL
----

query I rowsort
SELECT ALL + col1 * + - col0 AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

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-9023
SELECT MIN( ALL - + col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9023
SELECT MIN ( ALL - + col2 ) FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9024
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9024
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col2 + 69 * col1 FROM tab1 AS cor0 WHERE 52 BETWEEN - col0 AND ( - - col1 * + col0 )
----
286
3175
870

query II rowsort
SELECT ALL + 87, + col1 FROM tab1
----
87
14
87
47
87
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT DISTINCT MIN( - col0 ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-9027
SELECT DISTINCT MIN ( - col0 ) AS col0 FROM tab0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9028
SELECT + 22 * - 2 * - 42 + - + 69 - - 86 * - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9028
SELECT + 22 * - 2 * - 42 + - + 69 - - 86 * - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + - col0 + 63 AS col1 FROM tab0
----
-111
-131
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - - col1 col2 FROM tab0
----
-66
-96
66

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9032
SELECT - ( + + CAST( NULL AS SIGNED ) ) AS col0, + SUM( DISTINCT 97 ) FROM tab2
----
NULL
97

skipif mysql # not compatible
query II rowsort label-9032
SELECT - ( + + CAST ( NULL AS INTEGER ) ) AS col0, + SUM ( DISTINCT 97 ) FROM tab2
----
NULL
97

query II rowsort
SELECT + 99 - col0 AS col0, - col0 AS col0 FROM tab0
----
12
-87
2
-97
84
-15

query I rowsort
SELECT ALL + + 38 - + col1 AS col1 FROM tab0 cor0
----
-43
17
37

query I rowsort
SELECT + - 58 + col2 AS col1 FROM tab2 AS cor0
----
-18
-35
0

query I rowsort
SELECT + + col2 - + 88 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9037
SELECT ALL + 11 DIV - - col2 + + - 94 + + - ( + col1 ) * - col0 FROM tab0 AS cor0
----
1121
1734
3

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL + 11 / - - col2 + + - 94 + + - ( + col1 ) * - col0 FROM tab0 AS cor0
----
1121
1734
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9038
SELECT - 61 + + 76 * - ( + ( 5 ) ) * + CAST( + + col2 AS SIGNED ) FROM tab1 AS cor0
----
-22481
-25901
-36541

skipif mysql # not compatible
query I rowsort label-9038
SELECT - 61 + + 76 * - ( + ( 5 ) ) * + CAST ( + + col2 AS INTEGER ) FROM tab1 AS cor0
----
-22481
-25901
-36541

query I rowsort
SELECT DISTINCT + col0 - - 52 - - col2 FROM tab1 AS cor0
----
196
199
211

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9040
SELECT + + 87 DIV - 87 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-9040
SELECT + + 87 / - 87 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-4

query I rowsort
SELECT ALL 34 * + 30 AS col1 FROM tab1 AS cor0
----
1020
1020
1020

query I rowsort
SELECT ( + + col2 ) AS col1 FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT - 14 * + + col1 AS col1 FROM tab0 AS cor0
----
-1134
-14
-294

query II rowsort
SELECT col2, + col1 AS col1 FROM tab2
----
23
51
40
77
58
67

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = + - col2 + - + col2
----

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT ( + + 58 * + ( + col0 ) + col1 ) IS NULL
----
23
40
58

query I rowsort
SELECT + 75 * col0 + + + 87 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1212
6612
7362

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN ( + 41 + 76 + - - col0 ) AND + col2 + + + col2 + + - 71 + 85
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * + - 64 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 41 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - 91 AS col2, col2 + col2 FROM tab0
----
-91
198
-91
20
-91
94

onlyif mysql # aggregate syntax: 
query II rowsort label-9052
SELECT ALL COUNT( * ) col1, 47 FROM tab2
----
3
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9052
SELECT ALL COUNT ( * ) col1, 47 FROM tab2
----
3
47

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT + - 84 BETWEEN NULL AND + col1
----

query II rowsort
SELECT + col0, - col1 * + col2 * - - col2 + col1 FROM tab0 cor0
----
15
-178848
87
-2079
97
-9800

query II rowsort
SELECT ALL - col2, + col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + col0
----
0

skipif mysql # not compatible
query I rowsort label-9056
SELECT + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + col0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( col1 )
----

query I rowsort
SELECT ALL - + col0 * 37 FROM tab2 AS cor0
----
-1702
-2368
-2775

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT - COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9059
SELECT - COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT + COUNT( * ) + - 86 * + 36 * - COUNT( * ) FROM tab0 cor0 WHERE NOT ( + 22 ) NOT IN ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9060
SELECT + COUNT ( * ) + - 86 * + 36 * - COUNT ( * ) FROM tab0 cor0 WHERE NOT ( + 22 ) NOT IN ( + col1 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9061
SELECT col0 AS col0, + col2 * col0 DIV - col0 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

skipif mysql # not compatible
query II rowsort label-9061
SELECT col0 AS col0, + col2 * col0 / - col0 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

query I rowsort
SELECT 57 * - - col1 FROM tab2 WHERE NOT + + ( + - col2 ) IS NULL
----
2907
3819
4389

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NULL NOT IN ( 88 - col0, 89 )
----

query I rowsort
SELECT + - col0 + - 78 AS col0 FROM tab2 AS cor0
----
-124
-142
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT + COUNT( * ) + ( + - COUNT( * ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9065
SELECT + COUNT ( * ) + ( + - COUNT ( * ) ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col2 + - 40 BETWEEN + col0 AND col2 + + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 59 col0 FROM tab2 AS cor0
----
110
126
136

query I rowsort
SELECT ALL + col2 * 42 + - col1 FROM tab1 AS cor0
----
2473
2809
4018

query I rowsort
SELECT - col1 + 11 - + col1 FROM tab2 AS cor0
----
-123
-143
-91

query I rowsort
SELECT DISTINCT 24 * col2 AS col1 FROM tab2 AS cor0
----
1392
552
960

onlyif mysql # DIV for integer division: 
query II rowsort label-9071
SELECT + + ( + ( 92 ) ) DIV - - 11, + col2 FROM tab1 AS cor0
----
8
59
8
68
8
96

skipif mysql # not compatible
query II rowsort label-9071
SELECT + + ( + ( 92 ) ) / - - 11, + col2 FROM tab1 AS cor0
----
8
59
8
68
8
96

query I rowsort
SELECT + ( - + col0 ) * + 10 FROM tab0 AS cor0
----
-150
-870
-970

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT DISTINCT 24 + + + MAX( ALL + col0 ) AS col2 FROM tab1
----
115

skipif mysql # not compatible
query I rowsort label-9073
SELECT DISTINCT 24 + + + MAX ( ALL + col0 ) AS col2 FROM tab1
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-9074
SELECT DISTINCT + 26 DIV col2 DIV - + col1 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9074
SELECT DISTINCT + 26 / col2 / - + col1 AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL col1 + 83 AS col1 FROM tab1
----
130
88
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT COUNT( * ) - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9076
SELECT COUNT ( * ) - COUNT ( * ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE NULL IS NOT NULL AND 31 IS NULL
----

query II rowsort
SELECT DISTINCT 51 AS col1, + col0 + - - col0 FROM tab0 AS cor0 WHERE NOT + col2 * + col1 NOT IN ( + + col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9079
SELECT + - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9079
SELECT + - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9080
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - col1 col0 FROM tab0 WHERE NULL IS NULL
----
0

query II rowsort
SELECT 96, 87 + + - 60 AS col0 FROM tab0
----
96
27
96
27
96
27

query II rowsort
SELECT DISTINCT + col2 AS col0, + 99 FROM tab2 AS cor0
----
23
99
40
99
58
99

query II rowsort
SELECT ALL - 50, + col0 AS col2 FROM tab1 AS cor0
----
-50
51
-50
85
-50
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT + - col0 * + 48 * - 99 + + + col0 - 32 FROM tab1 AS cor0
----
242371
403973
432491

query II rowsort
SELECT 35 * - ( + 1 ) * col2 * - col0 AS col2, + 88 + - ( 5 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL ( col2 ) + col0 AS col2, col1 AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
196
1
62
81
97
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 65 col0, 22 AS col2 FROM tab0 AS cor0
----
65
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 col0 FROM tab0 AS cor0
----
-88
-88
-88

query I rowsort
SELECT ALL ( - 61 ) * + col2 FROM tab2 AS cor0
----
-1403
-2440
-3538

query I rowsort
SELECT DISTINCT - col1 * - + col1 FROM tab1 cor0
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9093
SELECT ALL CAST( + - col0 AS SIGNED ) FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9093
SELECT ALL CAST ( + - col0 AS INTEGER ) FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NOT + 34 * + 92 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9094
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT + 34 * + 92 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT ALL - SUM( ALL 22 ) FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL - SUM ( ALL 22 ) FROM tab2
----
-66

query I rowsort
SELECT - ( - - col0 ) AS col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL + - col0 * + - col1 AS col1 FROM tab1 WHERE NOT NULL >= - - 5 * - col2 + 39 * - col0
----

query I rowsort
SELECT DISTINCT - - col2 * - col1 + col1 FROM tab2 cor0
----
-1122
-3003
-3819

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT - COUNT( ALL + col1 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9099
SELECT - COUNT ( ALL + col1 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT - 22 * - col2 FROM tab0
----
1034
2178
220

query II rowsort
SELECT - col0, ( + col0 ) AS col2 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT DISTINCT - 78 + ( + MIN( ALL col2 ) ) FROM tab1 cor0
----
-19

skipif mysql # not compatible
query I rowsort label-9102
SELECT DISTINCT - 78 + ( + MIN ( ALL col2 ) ) FROM tab1 cor0
----
-19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - + col2 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9104
SELECT ALL + - CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9104
SELECT ALL + - CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - + col1 ) + - 63 + - col1 AS col1 FROM tab2 AS cor0
----
-165
-197
-217

query I rowsort
SELECT + col1 + - - col1 AS col2 FROM tab1 AS cor0
----
10
28
94

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 39 IS NOT NULL
----

query I rowsort
SELECT col2 + - + col2 * - col1 + - - col1 AS col0 FROM tab0 AS cor0 WHERE ( col1 ) IS NOT NULL
----
199
241
3935

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT - SUM( - col2 ) + - + 99 AS col2 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-9109
SELECT - SUM ( - col2 ) + - + 99 AS col2 FROM tab0 AS cor0
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + - 15 col1 FROM tab2 WHERE NOT - - col1 <= NULL
----

query I rowsort
SELECT 59 + col2 FROM tab0
----
106
158
69

query I rowsort
SELECT col1 + 65 + - - ( + col0 ) * - col0 + - col0 AS col1 FROM tab0
----
-7570
-94
-9440

query I rowsort
SELECT ALL col2 * + col1 + - - 0 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT ALL COUNT( * ) - - - 90 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL COUNT ( * ) - - - 90 FROM tab2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT ALL + MIN( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL + MIN ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT DISTINCT - COUNT( - col2 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9116
SELECT DISTINCT - COUNT ( - col2 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT + 4 * - + 12 - + + MAX( ALL + 33 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9117
SELECT + 4 * - + 12 - + + MAX ( ALL + 33 ) FROM tab0 AS cor0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-9118
SELECT + 4 DIV + 83 - - col1 * + col0 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-9118
SELECT + 4 / + 83 - - col1 * + col0 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT - 29 FROM tab1 WHERE NULL IS NULL
----
-29
-29
-29

query I rowsort
SELECT - 93 - + col0 FROM tab2
----
-139
-157
-168

query I rowsort
SELECT ALL 50 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 43 ) IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query II rowsort
SELECT DISTINCT - 38 AS col2, - col0 FROM tab2 AS cor0
----
-38
-46
-38
-64
-38
-75

query II rowsort
SELECT + col2, + col2 * - ( + col1 ) - - + 62 FROM tab0 AS cor0
----
10
-148
47
-3745
99
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT + MAX( - + ( + - col0 ) ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9125
SELECT + MAX ( - + ( + - col0 ) ) FROM tab1 AS cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 33, + ( - ( + col1 ) ) * 56 * - col1 col0 FROM tab2
----
33
145656
33
251384
33
332024

query I rowsort
SELECT ALL + - col2 AS col0 FROM tab1 WHERE ( NULL ) NOT BETWEEN - 68 * - col0 * + 22 AND col2 + - - col0 * - - col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 - - + col1 IN ( + 21 * + - 43 * + col2 )
----

query II rowsort
SELECT col2 AS col0, - col2 AS col1 FROM tab2
----
23
-23
40
-40
58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9130
SELECT DISTINCT ( + col0 ) AS col2 FROM tab0 WHERE NOT ( - col0 * + col1 ) NOT BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-9130
SELECT DISTINCT ( + col0 ) AS col2 FROM tab0 WHERE NOT ( - col0 * + col1 ) NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * + col2 + - col2 * - - col2 <= NULL
----

query I rowsort
SELECT DISTINCT 57 AS col1 FROM tab0
----
57

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE NOT col2 BETWEEN NULL AND ( 45 + + + col0 + ( + + ( + - col1 ) ) * + col0 )
----
14
47
5

query I rowsort
SELECT DISTINCT + col1 * - 72 AS col0 FROM tab1
----
-1008
-3384
-360

query II rowsort
SELECT + col2 * ( + col2 ) - + + col2 AS col0, - col2 + - col1 AS col0 FROM tab1 AS cor0
----
3422
-64
4556
-115
9120
-110

onlyif mysql # aggregate syntax: 
query II rowsort label-9136
SELECT + 60, COUNT( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
60
3

skipif mysql # not compatible
query II rowsort label-9136
SELECT + 60, COUNT ( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
60
3

query II rowsort
SELECT DISTINCT - col0 * + - col2 AS col2, col2 AS col1 FROM tab2 AS cor0
----
1058
23
2560
40
4350
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT DISTINCT - 55 * + + COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-495

skipif mysql # not compatible
query I rowsort label-9138
SELECT DISTINCT - 55 * + + COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-495

onlyif mysql # aggregate syntax: 
query II rowsort label-9139
SELECT - - COUNT( * ), - COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9139
SELECT - - COUNT ( * ), - COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT DISTINCT COUNT( * ) + + 77 AS col2 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-9140
SELECT DISTINCT COUNT ( * ) + + 77 AS col2 FROM tab2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT ALL + - ( - MAX( + col2 ) ) * + 5 AS col0 FROM tab2 AS cor0
----
290

skipif mysql # not compatible
query I rowsort label-9141
SELECT ALL + - ( - MAX ( + col2 ) ) * + 5 AS col0 FROM tab2 AS cor0
----
290

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9142
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1, + 44 AS col1 FROM tab2 AS cor0
----
NULL
44

skipif mysql # not compatible
query II rowsort label-9142
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1, + 44 AS col1 FROM tab2 AS cor0
----
NULL
44

query I rowsort
SELECT - - 81 + - + col2 FROM tab2 AS cor0
----
23
41
58

query II rowsort
SELECT ALL - col0 + + 43 * - col2 + - col0 + col0, col2 FROM tab1 AS cor0
----
-2622
59
-3015
68
-4179
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9146
SELECT DISTINCT + col2 DIV + - 63 AS col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9146
SELECT DISTINCT + col2 / + - 63 AS col0 FROM tab1 AS cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9147
SELECT - + col0 * - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9147
SELECT - + col0 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9148
SELECT + 60 / + MAX( DISTINCT + + col2 ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9148
SELECT + 60 / + MAX ( DISTINCT + + col2 ) + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT DISTINCT + MAX( DISTINCT - 72 ) AS col0 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9149
SELECT DISTINCT + MAX ( DISTINCT - 72 ) AS col0 FROM tab0 AS cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9150
SELECT + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) / + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9150
SELECT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) / + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9151
SELECT ALL COUNT( * ) AS col1, 4 FROM tab0
----
3
4

skipif mysql # not compatible
query II rowsort label-9151
SELECT ALL COUNT ( * ) AS col1, 4 FROM tab0
----
3
4

query II rowsort
SELECT ALL - col1 + - col0 - + 38 AS col1, 25 * - col0 + - 87 FROM tab2
----
-135
-1237
-179
-1687
-180
-1962

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9153
SELECT + - col1 - + + col2 FROM tab1 WHERE NULL >= - - 91 * - - 5 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9153
SELECT + - col1 - + + col2 FROM tab1 WHERE NULL >= - - 91 * - - 5 * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 36 - + 94 * col2 + col1 FROM tab1
----
-5577
-6381
-9046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9155
SELECT ALL CAST( + + COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
3

query I rowsort
SELECT + - 66 + + ( + col2 ) - + - col2 FROM tab2 AS cor0
----
-20
14
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9157
SELECT * FROM tab0 AS cor0 WHERE - ( - 30 ) + + CAST( + + col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9157
SELECT * FROM tab0 AS cor0 WHERE - ( - 30 ) + + CAST ( + + col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col2 - - + col2 + col2 AS col0, - col0 FROM tab1 cor0
----
59
-85
68
-91
96
-51

query I rowsort
SELECT DISTINCT col1 - 3 AS col2 FROM tab0 AS cor0
----
-2
18
78

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9160
SELECT ALL + col1 * - col1 AS col0, ( - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0
----
-1
NULL
-441
NULL
-6561
NULL

skipif mysql # not compatible
query II rowsort label-9160
SELECT ALL + col1 * - col1 AS col0, ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab0
----
-1
NULL
-441
NULL
-6561
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9161
SELECT + col1 DIV + 59 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9161
SELECT + col1 / + 59 FROM tab0
----
0
0
1

query I rowsort
SELECT 87 * + col1 * + col2 AS col1 FROM tab0 AS cor0
----
18270
331209
8613

onlyif mysql # aggregate syntax: 
query II rowsort label-9163
SELECT - MAX( DISTINCT - 32 ) AS col2, - SUM( col2 ) + + + COUNT( * ) AS col1 FROM tab1 cor0
----
32
-220

skipif mysql # not compatible
query II rowsort label-9163
SELECT - MAX ( DISTINCT - 32 ) AS col2, - SUM ( col2 ) + + + COUNT ( * ) AS col1 FROM tab1 cor0
----
32
-220

query I rowsort
SELECT ALL + + 42 FROM tab1 cor0
----
42
42
42

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = + col0 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT - COUNT( - col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9166
SELECT - COUNT ( - col2 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT ALL COUNT( * ) FROM tab1 WHERE + 60 + - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9167
SELECT ALL COUNT ( * ) FROM tab1 WHERE + 60 + - col1 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9168
SELECT ALL col0 + + + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT + col0 BETWEEN + col2 * col0 * - 37 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL col0 + + + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT + col0 BETWEEN + col2 * col0 * - 37 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT - 56 + COUNT( * ) FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-9169
SELECT - 56 + COUNT ( * ) FROM tab0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT DISTINCT MIN( ALL - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9170
SELECT DISTINCT MIN ( ALL - col0 ) FROM tab2 AS cor0
----
-75

query II rowsort
SELECT col2, 19 AS col2 FROM tab1
----
59
19
68
19
96
19

query II rowsort
SELECT col0 AS col2, col2 * + 17 FROM tab2
----
46
391
64
680
75
986

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 26 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT DISTINCT + - 82 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-82

query I rowsort
SELECT 99 * + + 64 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7d84116db6ba95c976f62b5b6dbb0712

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( col0 * col1, - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT ALL + + COUNT( * ) + MAX( + + col2 ) col0 FROM tab2 cor0
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9178
SELECT ALL + + COUNT ( * ) + MAX ( + + col2 ) col0 FROM tab2 cor0
----
61

query I rowsort
SELECT + 63 + col1 + col1 FROM tab1 AS cor0
----
157
73
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT + COUNT( * ) + - - COUNT( * ) * - SUM( - 88 ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
2379

skipif mysql # not compatible
query I rowsort label-9180
SELECT + COUNT ( * ) + - - COUNT ( * ) * - SUM ( - 88 ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
2379

query I rowsort
SELECT ALL + 47 * 92 - + 36 FROM tab1 AS cor0
----
4288
4288
4288

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9182
SELECT DISTINCT 43 - - CAST( NULL AS DECIMAL ) + - - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9182
SELECT DISTINCT 43 - - CAST ( NULL AS REAL ) + - - col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col1 * + + 17 AS col0 FROM tab2 AS cor0
----
-1139
-1309
-867

query I rowsort
SELECT ALL + - col1 * + - col1 * + + col0 AS col2 FROM tab2 cor0
----
119646
336675
379456

query I rowsort
SELECT - - 81 + + + col2 FROM tab1 AS cor0
----
140
149
177

query I rowsort
SELECT col2 + col0 + + + col1 * + - 1 FROM tab2
----
18
27
66

query I rowsort
SELECT DISTINCT - 23 * + 50 * + - 69 AS col2 FROM tab2
----
79350

query I rowsort
SELECT DISTINCT + col2 + + + col1 + + 68 * + col2 AS col0 FROM tab1 WHERE NOT 97 * - + 51 + - col0 BETWEEN - 51 AND + + col2 - + ( col1 )
----
4076
4739
6638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9189
SELECT + + CAST( NULL AS SIGNED ) * + col2 FROM tab2 WHERE - 48 < + - col1
----

skipif mysql # not compatible
query I rowsort label-9189
SELECT + + CAST ( NULL AS INTEGER ) * + col2 FROM tab2 WHERE - 48 < + - col1
----

query I rowsort
SELECT DISTINCT 61 * - - col1 * - col2 * - + col2 AS col1 FROM tab1
----
1061705
13257008
7870464

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT - COUNT( * ) + - 82 FROM tab1
----
-85

skipif mysql # not compatible
query I rowsort label-9191
SELECT - COUNT ( * ) + - 82 FROM tab1
----
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 * - - 71 col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT DISTINCT COUNT( * ) * COUNT( + col0 ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9193
SELECT DISTINCT COUNT ( * ) * COUNT ( + col0 ) AS col2 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT SUM( DISTINCT - + col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-9194
SELECT SUM ( DISTINCT - + col0 ) FROM tab2
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9195
SELECT - CAST( NULL AS SIGNED ) * + + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9195
SELECT - CAST ( NULL AS INTEGER ) * + + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 93 > + 26
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9197
SELECT col0 * - CAST( - + col0 AS DECIMAL ) FROM tab0 WHERE NOT - 58 NOT BETWEEN NULL AND ( + 43 )
----

skipif mysql # not compatible
query I rowsort label-9197
SELECT col0 * - CAST ( - + col0 AS REAL ) FROM tab0 WHERE NOT - 58 NOT BETWEEN NULL AND ( + 43 )
----

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab0 WHERE NOT - + col1 IS NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - 33 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-33

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 6 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 53 col1 FROM tab1 AS cor0
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT DISTINCT COUNT( ALL + + 86 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9202
SELECT DISTINCT COUNT ( ALL + + 86 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9203
SELECT + 28 DIV + COUNT( * ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9203
SELECT + 28 / + COUNT ( * ) FROM tab1 cor0
----
9

query I rowsort
SELECT ALL 52 + - 5 FROM tab0
----
47
47
47

query I rowsort
SELECT ALL col0 * - col1 * + col1 AS col0 FROM tab0
----
-38367
-97
-98415

query I rowsort
SELECT + col0 + col1 AS col0 FROM tab1 WHERE NOT 6 * + 9 + - - ( + col1 ) IS NULL
----
138
65
90

query I rowsort
SELECT ALL - 97 * - + col0 + - 27 FROM tab2
----
4435
6181
7248

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 87 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT - - COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9209
SELECT - - COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT ALL ( 52 ) + col0 FROM tab1
----
103
137
143

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT - SUM( DISTINCT - - col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-9211
SELECT - SUM ( DISTINCT - - col1 ) FROM tab2
----
-195

query I rowsort
SELECT 54 * + ( + col2 ) FROM tab2 AS cor0
----
1242
2160
3132

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT ( + SUM( ALL - 17 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-153

skipif mysql # not compatible
query I rowsort label-9213
SELECT ( + SUM ( ALL - 17 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-153

query I rowsort
SELECT ALL + col2 + - - col0 + 90 AS col0 FROM tab1
----
234
237
249

query I rowsort
SELECT DISTINCT 23 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 44 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
44

query I rowsort
SELECT 94 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9218
SELECT - CAST( - + col0 AS SIGNED ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9218
SELECT - CAST ( - + col0 AS INTEGER ) FROM tab1
----
51
85
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 + - + col0 + + 74 AS col0 FROM tab1 AS cor0
----
119
48
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT + MIN( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9221
SELECT + MIN ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + 82 - - col1 FROM tab0 AS cor0
----
103
163
83

query I rowsort
SELECT DISTINCT ( + col0 ) FROM tab0 AS cor0 WHERE + 51 IS NOT NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col1, col2 * - col1 * + col0 col0 FROM tab1 AS cor0
----
51
-68544
85
-25075
91
-290836

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 BETWEEN 19 AND NULL
----

query I rowsort
SELECT + col1 - - 20 FROM tab2 AS cor0
----
71
87
97

query I rowsort
SELECT ALL - 13 * - 97 * + + col2 AS col2 FROM tab0
----
124839
12610
59267

query I rowsort
SELECT - col0 - + 98 FROM tab1
----
-149
-183
-189

query III rowsort
SELECT * FROM tab0 WHERE - - col2 * col1 IS NULL
----

query II rowsort
SELECT ALL + 87 AS col2, - col1 * + - 4 AS col0 FROM tab2
----
87
204
87
268
87
308

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col2 > NULL
----

query I rowsort
SELECT col2 + + 83 * + - col0 AS col0 FROM tab1 WHERE - + 26 * + - col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9233
SELECT ALL - CAST( NULL AS DECIMAL ) * col1 * col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9233
SELECT ALL - CAST ( NULL AS REAL ) * col1 * col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + 52 AS col1 FROM tab0
----
-35
-45
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT - COUNT( * ) + - ( + 22 ) FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-9235
SELECT - COUNT ( * ) + - ( + 22 ) FROM tab2
----
-25

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9236
SELECT col0 DIV ( + CAST( - - 87 AS SIGNED ) ) FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9236
SELECT col0 / ( + CAST ( - - 87 AS INTEGER ) ) FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9237
SELECT + COUNT( * ), + COUNT( * ) AS col1 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-9237
SELECT + COUNT ( * ), + COUNT ( * ) AS col1 FROM tab2
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9238
SELECT CAST( + + col0 AS SIGNED ) AS col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9238
SELECT CAST ( + + col0 AS INTEGER ) AS col0 FROM tab0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 63 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND col2
----
85
5
59
91
47
68

query I rowsort
SELECT - - 14 + + 64 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE + 30 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9243
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) * + + CAST( + col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9243
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) * + + CAST ( + col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT - COUNT( + + col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9244
SELECT - COUNT ( + + col0 ) FROM tab1
----
-3

query I rowsort
SELECT ALL + + 78 + - col2 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1 * 23 AS col1, - 20 AS col0 FROM tab2 AS cor0
----
1173
-20
1541
-20
1771
-20

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 41 BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9248
SELECT - COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT col2 * - CAST( NULL AS SIGNED ) * - 35 < - CAST( - col1 AS SIGNED )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9248
SELECT - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT col2 * - CAST ( NULL AS INTEGER ) * - 35 < - CAST ( - col1 AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT - 69 * - 95 FROM tab2 cor0
----
6555

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9250
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( + ( + col2 ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9250
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( + ( + col2 ) AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( ( - + col1 ) + 71, 85 )
----

query II rowsort
SELECT col2, col0 * col1 AS col2 FROM tab0
----
10
1827
47
1215
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT ALL + 61 * + COUNT( * ) AS col1 FROM tab2
----
183

skipif mysql # not compatible
query I rowsort label-9253
SELECT ALL + 61 * + COUNT ( * ) AS col1 FROM tab2
----
183

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9254
SELECT CAST( NULL AS DECIMAL ) + + COUNT( * ) + + AVG ( + col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9254
SELECT CAST ( NULL AS REAL ) + + COUNT ( * ) + + AVG ( + col0 ) FROM tab2
----
NULL

query I rowsort
SELECT - ( 87 ) * + col1 + + col1 + - + col2 AS col2 FROM tab1
----
-1300
-4110
-489

query I rowsort
SELECT - 2 + + col2 + + col1 * - col2 AS col0 FROM tab2
----
-1152
-3042
-3830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9257
SELECT col0 * + col0 + - - CAST( + 99 AS SIGNED ) + - 67 AS col1 FROM tab2
----
2148
4128
5657

skipif mysql # not compatible
query I rowsort label-9257
SELECT col0 * + col0 + - - CAST ( + 99 AS INTEGER ) + - 67 AS col1 FROM tab2
----
2148
4128
5657

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9258
SELECT - 54 * + col0 + 35, CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
-2449
NULL
-3421
NULL
-4015
NULL

skipif mysql # not compatible
query II rowsort label-9258
SELECT - 54 * + col0 + 35, CAST ( NULL AS REAL ) AS col2 FROM tab2
----
-2449
NULL
-3421
NULL
-4015
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9259
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 85 + + 29 AS col0 FROM tab2
----
-56

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9261
SELECT + col0 * 20 + + CAST( NULL AS DECIMAL ) AS col1, - ( + ( col2 ) ) FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-9261
SELECT + col0 * 20 + + CAST ( NULL AS REAL ) AS col1, - ( + ( col2 ) ) FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 * - 71 + - - col0 col2, col1 AS col0 FROM tab2
----
-1587
51
-2776
77
-4043
67

query I rowsort
SELECT - col1 + - + col0 FROM tab0 AS cor0
----
-108
-96
-98

query II rowsort
SELECT DISTINCT col2 AS col0, col1 AS col0 FROM tab0 cor0
----
10
21
47
81
99
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9265
SELECT DISTINCT - col2 DIV - 50 AS col2 FROM tab2 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9265
SELECT DISTINCT - col2 / - 50 AS col2 FROM tab2 cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT + + ( COUNT( * ) ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9266
SELECT + + ( COUNT ( * ) ) AS col2 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT DISTINCT - COUNT( * ) * + - COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-9267
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT DISTINCT - + SUM( DISTINCT + col1 ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT - + SUM ( DISTINCT + col1 ) FROM tab0 cor0
----
-103

query I rowsort
SELECT ALL - - col2 - + + col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT DISTINCT - 96 - + COUNT( * ) * 41 FROM tab0 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-9270
SELECT DISTINCT - 96 - + COUNT ( * ) * 41 FROM tab0 AS cor0
----
-219

query I rowsort
SELECT - + col0 + - + col0 FROM tab2 AS cor0
----
-128
-150
-92

query I rowsort
SELECT + + 41 + - 7 + + 63 AS col0 FROM tab2 AS cor0
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT ALL - MIN( ALL - 30 ) AS col2 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL - MIN ( ALL - 30 ) AS col2 FROM tab2 AS cor0
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 + 25 col1 FROM tab0 AS cor0
----
122
221
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9275
SELECT DISTINCT CAST( NULL AS SIGNED ) - - col0 + + + col2 + + col0 * + + col0 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - col0 + + + col2 + + col0 * + + col0 AS col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - col0 col2 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT ALL + COUNT( * ) FROM tab2, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9277
SELECT ALL + COUNT ( * ) FROM tab2, tab1 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT ALL + SUM( ALL - + col0 ) FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9278
SELECT ALL + SUM ( ALL - + col0 ) FROM tab0 cor0
----
-199

query I rowsort
SELECT col1 * - 24 AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 77 AS col1, col0 col1 FROM tab0 AS cor0
----
77
15
77
87
77
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 96 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT - COUNT( DISTINCT col0 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9282
SELECT - COUNT ( DISTINCT col0 ) AS col0 FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9283
SELECT ALL + CAST( NULL AS SIGNED ) * - - ( + - col0 ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9283
SELECT ALL + CAST ( NULL AS INTEGER ) * - - ( + - col0 ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * - ( - 7 ) AS col1 FROM tab1 cor0
----
-329
-35
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT + + 91 + + + MIN( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-9285
SELECT + + 91 + + + MIN ( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
150

query I rowsort
SELECT - 19 + - col2 FROM tab0 AS cor0
----
-118
-29
-66

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9288
SELECT DISTINCT - CAST( col0 AS SIGNED ) * - col1 * + col2 DIV - - col2 col0 FROM tab0 AS cor0
----
1215
1827
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9288
SELECT DISTINCT - CAST ( col0 AS INTEGER ) * - col1 * + col2 / - - col2 col0 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT + SUM( + 73 ) AS col2 FROM tab2 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-9289
SELECT + SUM ( + 73 ) AS col2 FROM tab2 AS cor0
----
219

query II rowsort
SELECT - col2 AS col1, 49 + + col2 AS col0 FROM tab0 AS cor0
----
-10
59
-47
96
-99
148

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( + col2 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9292
SELECT ALL col1 AS col0, CAST( - + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

skipif mysql # not compatible
query II rowsort label-9292
SELECT ALL col1 AS col0, CAST ( - + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

query I rowsort
SELECT ALL - 64 * - col0 + - + 20 AS col2 FROM tab2
----
2924
4076
4780

query I rowsort
SELECT DISTINCT 19 * + - col2 + - 44 + 34 + - + col1 FROM tab1
----
-1136
-1349
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT - COUNT( + col1 ) * + - 28 AS col1 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-9295
SELECT - COUNT ( + col1 ) * + - 28 AS col1 FROM tab0
----
84

query I rowsort
SELECT ALL + 85 + - 63 FROM tab0
----
22
22
22

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NULL <> col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 + - col1 col2 FROM tab2 AS cor0
----
-111
-121
-95

query I rowsort
SELECT - col1 - - col0 AS col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-66
66
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9300
SELECT ALL + 93, COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
93
9

skipif mysql # not compatible
query II rowsort label-9300
SELECT ALL + 93, COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
93
9

query I rowsort
SELECT ( - + 14 ) FROM tab0
----
-14
-14
-14

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - ( - - 53 ) ) AS col1 FROM tab2, tab2 AS cor0
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-9304
SELECT DISTINCT col1 + - col0 DIV + col2 AS col1 FROM tab1 AS cor0
----
14
4
46

skipif mysql # not compatible
query I rowsort label-9304
SELECT DISTINCT col1 + - col0 / + col2 AS col1 FROM tab1 AS cor0
----
14
4
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT + COUNT( * ) FROM tab0 cor0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9305
SELECT + COUNT ( * ) FROM tab0 cor0 WHERE NULL >= NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col0 * - + col2 - - 18
----

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + 0, 0 + col0, + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9308
SELECT DISTINCT CAST( - col1 AS SIGNED ) / + CAST( NULL AS SIGNED ) / - - ( - col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9308
SELECT DISTINCT CAST ( - col1 AS INTEGER ) / + CAST ( NULL AS INTEGER ) / - - ( - col1 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT DISTINCT COUNT( - col1 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9309
SELECT DISTINCT COUNT ( - col1 ) col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col1 < + + 98 + - + 64 * ( 68 ) / - ( - + col2 )
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT 5 * COUNT( * ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-9311
SELECT 5 * COUNT ( * ) FROM tab1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT - COUNT( * ) * - ( + - 60 ) FROM tab1
----
-180

skipif mysql # not compatible
query I rowsort label-9312
SELECT - COUNT ( * ) * - ( + - 60 ) FROM tab1
----
-180

query I rowsort
SELECT ALL - col2 * 9 AS col2 FROM tab0
----
-423
-891
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9314
SELECT ALL - ( - col1 ) DIV - col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9314
SELECT ALL - ( - col1 ) / - col2 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT DISTINCT col0 * + - col0 AS col0 FROM tab2
----
-2116
-4096
-5625

query II rowsort
SELECT ALL ( - col0 ), 46 AS col0 FROM tab2 AS cor0
----
-46
46
-64
46
-75
46

query II rowsort
SELECT DISTINCT 76 AS col1, - 36 FROM tab2
----
76
-36

query I rowsort
SELECT ALL + col0 + + + col0 + - - col2 AS col1 FROM tab1
----
198
229
250

query I rowsort
SELECT 94 * 61 + col0 FROM tab0 AS cor0
----
5749
5821
5831

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE NOT col0 - col0 IS NOT NULL
----

query I rowsort
SELECT - + col0 AS col1 FROM tab0 cor0 WHERE col2 IS NOT NULL
----
-15
-87
-97

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - - col0 * - + 58 + col1 + + col0 * + col2 AS col2, 66 AS col2 FROM tab0 AS cor0
----
-4155
66
-84
66
3978
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 45 col1 FROM tab2
----
-45

query I rowsort
SELECT 79 * + col0 + col2 + col0 + - col2 FROM tab0
----
1200
6960
7760

query II rowsort
SELECT ALL col2, col1 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9327
SELECT + COUNT( * ) DIV ( + - 11 ) DIV 83 + + COUNT( * ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9327
SELECT + COUNT ( * ) / ( + - 11 ) / 83 + + COUNT ( * ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9328
SELECT ALL - 85, - COUNT( * ) AS col1 FROM tab1
----
-85
-3

skipif mysql # not compatible
query II rowsort label-9328
SELECT ALL - 85, - COUNT ( * ) AS col1 FROM tab1
----
-85
-3

query III rowsort
SELECT * FROM tab1 WHERE 24 + col0 * - ( + + col1 ) + + + ( + col2 ) <= ( NULL )
----

query I rowsort
SELECT ALL col1 + + col1 + - + col0 AS col1 FROM tab2
----
56
59
90

onlyif mysql # DIV for integer division: 
query I rowsort label-9331
SELECT ALL col2 + + col1 + - - col1 DIV - 54 FROM tab2
----
116
124
74

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL col2 + + col1 + - - col1 / - 54 FROM tab2
----
116
124
74

query I rowsort
SELECT + col2 * + col2 * + - 72 AS col2 FROM tab1 WHERE - col1 > - 40
----
-250632
-663552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 + - col2 + - + col0 col1 FROM tab2
----
-34
-63
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 88 ) IS NULL
----

query I rowsort
SELECT + - col2 * 71 + - - col1 + 92 + - col1 AS col2 FROM tab2 AS cor0
----
-1541
-2748
-4026

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - - 1 * + col1 AS col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT - ( + 66 ) IS NULL
----
-15
-87
-97

query I rowsort
SELECT ALL ( - - col0 ) AS col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL col0 * + - 17 FROM tab2 AS cor0 WHERE - col1 + + 44 NOT IN ( + col1, col1, + ( + col1 ) )
----
-1088
-1275
-782

query I rowsort
SELECT ALL + + ( - 66 ) AS col1 FROM tab1 AS cor0
----
-66
-66
-66

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL - col1 * - 78 AS col1 FROM tab2
----
3978
5226
6006

onlyif mysql # DIV for integer division: 
query I rowsort label-9344
SELECT DISTINCT col2 DIV col1 * + - 51 FROM tab1
----
-306
-51
-561

skipif mysql # not compatible
query I rowsort label-9344
SELECT DISTINCT col2 / col1 * + - 51 FROM tab1
----
-306
-51
-561

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9345
SELECT ALL 1 DIV - col2 * + 64 AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-9345
SELECT ALL 1 / - col2 * + 64 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
0
NULL
0
NULL
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9346
SELECT DISTINCT - 56 DIV + - col0 col0 FROM tab1
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9346
SELECT DISTINCT - 56 / + - col0 col0 FROM tab1
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9347
SELECT DISTINCT col2 AS col2, CAST( 79 AS SIGNED ) FROM tab2 AS cor0
----
23
79
40
79
58
79

skipif mysql # not compatible
query II rowsort label-9347
SELECT DISTINCT col2 AS col2, CAST ( 79 AS INTEGER ) FROM tab2 AS cor0
----
23
79
40
79
58
79

query I rowsort
SELECT DISTINCT - 73 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 / + - ( + col1 ), - 15 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9349
SELECT COUNT( * ) col0, - COUNT( * ) col1 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9349
SELECT COUNT ( * ) col0, - COUNT ( * ) col1 FROM tab0 AS cor0
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT - COUNT( + col1 ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9350
SELECT - COUNT ( + col1 ) col1 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col2, col2 col0 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT COUNT( * ) AS col2 FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9352
SELECT COUNT ( * ) AS col2 FROM tab2, tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT + 46 + 3 AS col1 FROM tab2
----
49

query I rowsort
SELECT ALL 85 + - - col0 AS col0 FROM tab2
----
131
149
160

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9355
SELECT ( - 89 ) + + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9355
SELECT ( - 89 ) + + + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + + ( 32 ) + - col0 / + 96 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT ALL - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT DISTINCT - 19 + + + col1 - col2 * - 25 FROM tab1
----
1461
1728
2395

query I rowsort
SELECT 47 + col2 FROM tab0 cor0
----
146
57
94

query I rowsort
SELECT ALL - ( + + 64 ) AS col0 FROM tab0 AS cor0
----
-64
-64
-64

query I rowsort
SELECT DISTINCT - col0 * col1 + - 31 AS col1 FROM tab0 AS cor0
----
-1246
-128
-1858

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT ALL SUM( ALL - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL SUM ( ALL - col2 ) FROM tab1 AS cor0
----
-223

query I rowsort
SELECT DISTINCT 52 AS col1 FROM tab2 WHERE - col0 / + - 85 NOT IN ( + col0 )
----
52

query I rowsort
SELECT ALL col0 * + + 54 + - + col1 FROM tab1
----
2740
4585
4867

query I rowsort
SELECT - col2 * - - col2 AS col0 FROM tab0 WHERE NULL NOT IN ( col2 * + col0 )
----

query I rowsort
SELECT + col2 - + 54 - + 40 - - - col1 * - 73 + col1 + - col1 AS col2 FROM tab2
----
3652
4855
5567

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT ALL COUNT( * ) + COUNT( * ) col2 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9367
SELECT ALL COUNT ( * ) + COUNT ( * ) col2 FROM tab0
----
6

query I rowsort
SELECT - 19 - ( + 33 ) FROM tab0
----
-52
-52
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9369
SELECT + CAST( NULL AS SIGNED ) * - - col2 - - 86 AS col2, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-9369
SELECT + CAST ( NULL AS INTEGER ) * - - col2 - - 86 AS col2, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT col1 + - 49 + 48 - col0 AS col2 FROM tab1
----
-38
-45
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * + col0 >= NULL
----

query I rowsort
SELECT + + col1 FROM tab0 WHERE NULL = + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9373
SELECT DISTINCT 24 DIV - col1 FROM tab1
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-9373
SELECT DISTINCT 24 / - col1 FROM tab1
----
-1
-4
0

query I rowsort
SELECT - col0 / - + 54 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, - 36 * - col2 col0 FROM tab0 AS cor0
----
1
3564
21
360
81
1692

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= - 86
----

query I rowsort
SELECT DISTINCT ( + col2 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
23
40
58

query II rowsort
SELECT DISTINCT + 41 AS col1, col1 AS col0 FROM tab1 AS cor0
----
41
14
41
47
41
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT DISTINCT COUNT( - + col0 ) * - 43 AS col1 FROM tab0 cor0
----
-129

skipif mysql # not compatible
query I rowsort label-9379
SELECT DISTINCT COUNT ( - + col0 ) * - 43 AS col1 FROM tab0 cor0
----
-129

query I rowsort
SELECT DISTINCT 86 FROM tab1 cor0
----
86

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 >= - col2 * + + col0 + + col0 * + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9382
SELECT DISTINCT COUNT( * ) DIV + COUNT( DISTINCT col1 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9382
SELECT DISTINCT COUNT ( * ) / + COUNT ( DISTINCT col1 ) AS col1 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT COUNT( DISTINCT + + col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9383
SELECT COUNT ( DISTINCT + + col0 ) FROM tab2
----
3

query I rowsort
SELECT - ( + 17 ) FROM tab0
----
-17
-17
-17

query I rowsort
SELECT - + 74 + - + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-161
-171
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-9386
SELECT col0 DIV - + col1 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-9386
SELECT col0 / - + col1 FROM tab1
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT DISTINCT + - MIN( ( col2 ) ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9387
SELECT DISTINCT + - MIN ( ( col2 ) ) FROM tab1 AS cor0
----
-59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND - col0 + 20 + + col0 + - col2 * + col2
----

query I rowsort
SELECT DISTINCT col2 * + ( col2 ) FROM tab1 cor0
----
3481
4624
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, col1 col0 FROM tab2
----
51
51
67
67
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 22 AS col0, col1 col0 FROM tab2
----
-22
51
-22
67
-22
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9392
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, 12 * + 69 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
18 values hashing to 13e12e67cb14126d0d76db42a4f1aa51

skipif mysql # not compatible
query II rowsort label-9392
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, 12 * + 69 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
18 values hashing to 13e12e67cb14126d0d76db42a4f1aa51

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT ALL + + COUNT( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + + col1 * + 70 * - 94 - + + 17
----
0

skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL + + COUNT ( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + + col1 * + 70 * - 94 - + + 17
----
0

query I rowsort
SELECT DISTINCT col0 * + + col1 - - 90 AS col2 FROM tab1 AS cor0
----
4367
515
804

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9395
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 BETWEEN + CAST( NULL AS SIGNED ) AND - col2
----

skipif mysql # not compatible
query III rowsort label-9395
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 BETWEEN + CAST ( NULL AS INTEGER ) AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT ALL + COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9396
SELECT ALL + COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + 25 * + 79 * + col2 + - col0 AS col1 FROM tab1 AS cor0
----
116440
134209
189549

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT DISTINCT SUM( ALL + 50 ) FROM tab1 cor0
----
150

skipif mysql # not compatible
query I rowsort label-9398
SELECT DISTINCT SUM ( ALL + 50 ) FROM tab1 cor0
----
150

query I rowsort
SELECT - col1 + - col1 * - col0 AS col0 FROM tab0 AS cor0
----
1134
1806
96

query II rowsort
SELECT ALL - col0, + 87 AS col0 FROM tab2 AS cor0
----
-46
87
-64
87
-75
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9401
SELECT ALL CAST( + 17 AS SIGNED ) * + 22 FROM tab1 cor0 WHERE NOT ( 50 IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL CAST ( + 17 AS INTEGER ) * + 22 FROM tab1 cor0 WHERE NOT ( 50 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT ( - + col2 ) * - col1 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT 16 + + MAX( - 92 ) AS col1 FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-9403
SELECT 16 + + MAX ( - 92 ) AS col1 FROM tab2
----
-76

query I rowsort
SELECT - ( - - col2 ) + + - col2 + col1 * - - 96 * + 51 FROM tab1
----
229976
24362
68352

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col2 - + col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9406
SELECT - col0 + - col0 + - col2 * + - CAST( col2 AS SIGNED ) + - col2 * + - 89 * CAST( + CAST( - 65 AS SIGNED ) AS SIGNED ) * ( + 18 ) AS col2 FROM tab0
----
-10299263
-1041374
-4891931

skipif mysql # not compatible
query I rowsort label-9406
SELECT - col0 + - col0 + - col2 * + - CAST ( col2 AS INTEGER ) + - col2 * + - 89 * CAST ( + CAST ( - 65 AS INTEGER ) AS INTEGER ) * ( + 18 ) AS col2 FROM tab0
----
-10299263
-1041374
-4891931

query I rowsort
SELECT DISTINCT ( + 63 ) FROM tab2
----
63

query II rowsort
SELECT + ( + + 22 ), ( + col2 ) AS col1 FROM tab2
----
22
23
22
40
22
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 54 <> - - 51
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9410
SELECT + 96 DIV - CAST( col1 AS SIGNED ) FROM tab0
----
-1
-4
-96

skipif mysql # not compatible
query I rowsort label-9410
SELECT + 96 / - CAST ( col1 AS INTEGER ) FROM tab0
----
-1
-4
-96

query I rowsort
SELECT DISTINCT + col0 + 84 + 23 * + col0 + + col0 + + col0 AS col2 FROM tab2 AS cor0
----
1280
1748
2034

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9412
SELECT ALL ( + col2 ) * + ( + - 53 ) - + ( + CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL ( + col2 ) * + ( + - 53 ) - + ( + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT - COUNT( DISTINCT - - col1 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9413
SELECT - COUNT ( DISTINCT - - col1 ) FROM tab1 cor0
----
-3

query I rowsort
SELECT ALL col1 * - 97 FROM tab2
----
-4947
-6499
-7469

onlyif mysql # aggregate syntax: 
query II rowsort label-9415
SELECT DISTINCT + COUNT( * ) AS col1, - COUNT( * ) AS col1 FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-9415
SELECT DISTINCT + COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab0
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9416
SELECT ALL - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9416
SELECT ALL - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col1 AS col2, - col1 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9418
SELECT DISTINCT + col2 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9418
SELECT DISTINCT + col2 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + ( - ( col2 ) ) FROM tab1 cor0
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 14 col0 FROM tab1 AS cor0
----
-14

query II rowsort
SELECT 27 AS col1, 5 * 74 AS col0 FROM tab2
----
27
370
27
370
27
370

query I rowsort
SELECT - ( + + col0 ) AS col1 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL 7 * - col2 AS col0 FROM tab2
----
-161
-280
-406

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT DISTINCT - COUNT( * ) * COUNT( * ) col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9424
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) col1 FROM tab1 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col0 / + 9 IS NOT NULL
----

query II rowsort
SELECT ALL + 84, + col1 AS col0 FROM tab1 AS cor0
----
84
14
84
47
84
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9427
SELECT + col2 * col1 DIV col2 AS col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9427
SELECT + col2 * col1 / col2 AS col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT + COUNT( * ) * + ( - 87 ) * - COUNT( * ) FROM tab1 AS cor0
----
783

skipif mysql # not compatible
query I rowsort label-9428
SELECT + COUNT ( * ) * + ( - 87 ) * - COUNT ( * ) FROM tab1 AS cor0
----
783

query I rowsort
SELECT DISTINCT col0 * 79 AS col0 FROM tab0
----
1185
6873
7663

onlyif mysql # aggregate syntax: 
query II rowsort label-9430
SELECT - - 47 * - 45, + 82 * - COUNT( * ) col2 FROM tab0 AS cor0
----
-2115
-246

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9430
SELECT - - 47 * - 45, + 82 * - COUNT ( * ) col2 FROM tab0 AS cor0
----
-2115
-246

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <> + 40 / + - ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
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-9432
SELECT - + COUNT ( * ) col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - - col2 * - ( - - 74 ) FROM tab1 cor0
----
-4366
-5032
-7104

query I rowsort
SELECT DISTINCT + col2 FROM tab1 cor0 WHERE - col1 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT DISTINCT 72 - - MIN( DISTINCT + - col1 ) AS col2 FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9435
SELECT DISTINCT 72 - - MIN ( DISTINCT + - col1 ) AS col2 FROM tab0 cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 82 - + col0 BETWEEN col0 AND + + 72
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9437
SELECT ALL 80 DIV SUM( ALL col2 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL 80 / SUM ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col0 FROM tab0 WHERE + col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 IS NULL )
----

query I rowsort
SELECT ALL - + 76 * + col0 + + col2 + - 22 - col2 FROM tab0 AS cor0
----
-1162
-6634
-7394

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + + 69 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9442
SELECT ALL + - CAST( COUNT( * ) AS SIGNED ) col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9442
SELECT ALL + - CAST ( COUNT ( * ) AS INTEGER ) col2 FROM tab1 cor0
----
-3

query I rowsort
SELECT col1 * 42 FROM tab1 cor0 WHERE NOT + col1 IS NULL
----
1974
210
588

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT MIN( 66 ) AS col2 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-9444
SELECT MIN ( 66 ) AS col2 FROM tab2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9445
SELECT ALL * FROM tab2 WHERE 13 * CAST( CAST( col2 AS SIGNED ) / col1 AS SIGNED ) < - col2
----

skipif mysql # not compatible
query III rowsort label-9445
SELECT ALL * FROM tab2 WHERE 13 * CAST ( CAST ( col2 AS INTEGER ) / col1 AS INTEGER ) < - col2
----

query III rowsort
SELECT * FROM tab0 WHERE + 55 - 60 * 22 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9447
SELECT ALL + 23 + - ( ( + CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL + 23 + - ( ( + CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9448
SELECT - col2 DIV CAST( - col0 * 53 AS SIGNED ) + + col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9448
SELECT - col2 / CAST ( - col0 * 53 AS INTEGER ) + + col1 FROM tab2
----
51
67
77

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> - col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( 95 ) <> ( NULL )
----

query I rowsort
SELECT DISTINCT col0 + 3 FROM tab1
----
54
88
94

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) < - col2 - col0 * col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 + - col0 ) BETWEEN ( col1 ) AND + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + col2 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + 58 + col2 * + col2 FROM tab2
----
1658
3422
587

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 col0 FROM tab1
----
-48
-48
-48

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 * col0 IS NOT NULL
----

query I rowsort
SELECT ( + 70 ) FROM tab1
----
70
70
70

query I rowsort
SELECT ( - col0 ) - col0 * + 49 FROM tab1
----
-2550
-4250
-4550

query I rowsort
SELECT col1 - + 71 FROM tab2
----
-20
-4
6

query I rowsort
SELECT + 65 * - 99 AS col1 FROM tab0
----
-6435
-6435
-6435

query I rowsort
SELECT - 82 - - col2 FROM tab0
----
-35
-72
17

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 93 ) NOT BETWEEN col2 AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 - + 52 FROM tab1
----
-38
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT - 72 * - MAX( - col1 * 15 ) FROM tab0
----
-1080

skipif mysql # not compatible
query I rowsort label-9465
SELECT - 72 * - MAX ( - col1 * 15 ) FROM tab0
----
-1080

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9466
SELECT * FROM tab2 WHERE NOT CAST( - col1 AS DECIMAL ) - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9466
SELECT * FROM tab2 WHERE NOT CAST ( - col1 AS REAL ) - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9467
SELECT 71 * - ( - col2 / - col2 ) FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) * 69 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9467
SELECT 71 * - ( - col2 / - col2 ) FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) * 69 IS NULL
----

query I rowsort
SELECT DISTINCT + 99 + - 99 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + 12 * + col2 FROM tab0 AS cor0
----
1188
120
564

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT ALL + COUNT( * ) * 9 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-9470
SELECT ALL + COUNT ( * ) * 9 FROM tab2 AS cor0
----
27

query I rowsort
SELECT DISTINCT + 85 * - col2 FROM tab1 AS cor0
----
-5015
-5780
-8160

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT + ( COUNT( * ) ) FROM tab0 AS cor0 WHERE ( 88 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9472
SELECT + ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE ( 88 ) IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT 5 * col0 + 12 FROM tab2 AS cor0
----
242
332
387

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT DISTINCT 24 + ( COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT + ( ( - 68 ) ) * col1 + col0 IS NULL
----
27

skipif mysql # not compatible
query I rowsort label-9474
SELECT DISTINCT 24 + ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT + ( ( - 68 ) ) * col1 + col0 IS NULL
----
27

query I rowsort
SELECT + col1 * + ( + col0 ) FROM tab1
----
425
4277
714

query I rowsort
SELECT ALL + 80 * ( col1 * col1 ) + + 3 FROM tab2
----
208083
359123
474323

query I rowsort
SELECT - col1 + + col1 AS col0 FROM tab2 WHERE ( NULL ) <> + ( col2 ) + + col2
----

query I rowsort
SELECT col1 * + 54 - 43 AS col2 FROM tab2
----
2711
3575
4115

query I rowsort
SELECT + col1 - + col2 * + 8 FROM tab1
----
-467
-497
-754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0 WHERE col1 = + col0 * + col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 <= col2 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT ALL - ( - COUNT( ALL col2 ) ) + COUNT( * ) FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-9482
SELECT ALL - ( - COUNT ( ALL col2 ) ) + COUNT ( * ) FROM tab1 cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9483
SELECT + col2 * col1 + 30 * - 94 FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN col1 * col0 AND + CAST( - col1 AS SIGNED )
----
-1476
-2525
376

skipif mysql # not compatible
query I rowsort label-9483
SELECT + col2 * col1 + 30 * - 94 FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN col1 * col0 AND + CAST ( - col1 AS INTEGER )
----
-1476
-2525
376

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT DISTINCT + SUM( + col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT + SUM ( + col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 + col1 )
----
NULL

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE ( - col2 + col1 ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - + 21 + col1 AS col1 FROM tab2 AS cor0
----
30
46
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NULL < 54 * - 45
----
0

skipif mysql # not compatible
query I rowsort label-9487
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL < 54 * - 45
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9488
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9488
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT col1 * - col2 + - col1 FROM tab2 AS cor0
----
-1224
-3157
-3953

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col1 NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 52 - 13 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 - col0 * col1 col1 FROM tab2 cor0
----
-2259
-4841
-4938

query I rowsort
SELECT + 31 * - col0 + + col0 FROM tab0 AS cor0
----
-2610
-2910
-450

onlyif mysql # DIV for integer division: 
query I rowsort label-9494
SELECT + col1 DIV col0 + - 9 col2 FROM tab0 cor0
----
-4
-9
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9494
SELECT + col1 / col0 + - 9 col2 FROM tab0 cor0
----
-4
-9
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9495
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) * 24 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9495
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) * 24 AS col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9496
SELECT DISTINCT - col0 + - col1 + + 7 DIV + 85 AS col1 FROM tab1
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-9496
SELECT DISTINCT - col0 + - col1 + + 7 / + 85 AS col1 FROM tab1
----
-138
-65
-90

query I rowsort
SELECT DISTINCT - 37 AS col1 FROM tab2 WHERE NOT - 76 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 col2 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9499
SELECT DISTINCT - COUNT( * ) DIV + 28 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9499
SELECT DISTINCT - COUNT ( * ) / + 28 AS col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 / col2 BETWEEN NULL AND col0
----

query I rowsort
SELECT DISTINCT + col2 * - + 93 FROM tab0
----
-4371
-9207
-930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9502
SELECT ALL + 79 DIV + COUNT( * ) col2 FROM tab2
----
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9502
SELECT ALL + 79 / + COUNT ( * ) col2 FROM tab2
----
26

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NOT col0 IS NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9504
SELECT * FROM tab2 WHERE NOT - col1 * + col1 + col1 * + col0 <= - CAST( col1 AS SIGNED )
----
75
67
58

skipif mysql # not compatible
query III rowsort label-9504
SELECT * FROM tab2 WHERE NOT - col1 * + col1 + col1 * + col0 <= - CAST ( col1 AS INTEGER )
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT DISTINCT - 88 * COUNT( * ) + - 61 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----
-61

skipif mysql # not compatible
query I rowsort label-9505
SELECT DISTINCT - 88 * COUNT ( * ) + - 61 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT ALL MAX( - - 28 ) FROM tab2 cor0
----
28

skipif mysql # not compatible
query I rowsort label-9506
SELECT ALL MAX ( - - 28 ) FROM tab2 cor0
----
28

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( 22 )
----

query I rowsort
SELECT col2 * + col0 FROM tab0 AS cor0 WHERE NOT col2 + - col2 + col1 * col1 IS NULL
----
705
870
9603

onlyif mysql # aggregate syntax: 
query II rowsort label-9509
SELECT + - 26, COUNT( * ) AS col0 FROM tab2 AS cor0
----
-26
3

skipif mysql # not compatible
query II rowsort label-9509
SELECT + - 26, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-26
3

query I rowsort
SELECT ALL + ( - 86 ) FROM tab0 cor0
----
-86
-86
-86

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( - 86 ) > + col1
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, col2 col1 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9514
SELECT DISTINCT + col2 + - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9514
SELECT DISTINCT + col2 + - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT ALL COUNT( * ) + - 55 * - COUNT( * ) + + COUNT( * ) FROM tab0
----
171

skipif mysql # not compatible
query I rowsort label-9515
SELECT ALL COUNT ( * ) + - 55 * - COUNT ( * ) + + COUNT ( * ) FROM tab0
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT ALL - SUM( DISTINCT + - col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL - SUM ( DISTINCT + - col0 ) FROM tab1
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9517
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + + col1 + + 36 * - + col0 + + CAST( 75 AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9517
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + + col1 + + 36 * - + col0 + + CAST ( 75 AS INTEGER ) AS col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( col2 ) NOT BETWEEN NULL AND 85
----
97
1
99

query III rowsort
SELECT * FROM tab1 WHERE col2 NOT IN ( - ( 95 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 + col1 * 54 AS col1 FROM tab2
----
2777
3676
4198

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 72 - - col0 ) NOT IN ( 47 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 75 / 98 AS col1 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9523
SELECT + 94 * col2 DIV - + col1 + + - col1 col1 FROM tab2 AS cor0
----
-125
-148
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9523
SELECT + 94 * col2 / - + col1 + + - col1 col1 FROM tab2 AS cor0
----
-125
-148
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
58

query I rowsort
SELECT ALL - - 90 + + + col0 AS col2 FROM tab1 AS cor0
----
141
175
181

query I rowsort
SELECT ALL + ( + col2 ) * + 6 + + + col1 + 26 - 48 FROM tab0 AS cor0
----
341
573
59

query I rowsort
SELECT ALL + + col0 - - - col0 AS col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT ALL - + COUNT( * ) * + 99 AS col1 FROM tab2 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL - + COUNT ( * ) * + 99 AS col1 FROM tab2 AS cor0
----
-297

query I rowsort
SELECT DISTINCT - 50 * + col0 FROM tab1 AS cor0
----
-2550
-4250
-4550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - + col0 col0 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9531
SELECT 42 AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
42
NULL
42
NULL
42
NULL

skipif mysql # not compatible
query II rowsort label-9531
SELECT 42 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
42
NULL
42
NULL
42
NULL

query I rowsort
SELECT DISTINCT + 80 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
80

query I rowsort
SELECT ALL - 45 * + col0 AS col0 FROM tab0
----
-3915
-4365
-675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9534
SELECT DISTINCT CAST( + 60 AS SIGNED ) * ( - 75 ) FROM tab2
----
-4500

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT CAST ( + 60 AS INTEGER ) * ( - 75 ) FROM tab2
----
-4500

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 30 + - col0 NOT BETWEEN col2 * 1 AND + col2 - col2
----

query I rowsort
SELECT - 73 + col1 AS col0 FROM tab1 WHERE NOT - - 42 BETWEEN NULL AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - 22 * - 6 col2 FROM tab2
----
-3036
-5280
-7656

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT DISTINCT COUNT( + 87 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9538
SELECT DISTINCT COUNT ( + 87 ) FROM tab1
----
3

query I rowsort
SELECT + 85 * + - col2 FROM tab1
----
-5015
-5780
-8160

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 ) > ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - ( - + col0 ) + + + col2 NOT BETWEEN NULL AND ( NULL ) )
----

query I rowsort
SELECT - 33 * 15 * 55 AS col0 FROM tab2
----
-27225
-27225
-27225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9543
SELECT ALL 72 DIV 73 * COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9543
SELECT ALL 72 / 73 * COUNT ( * ) AS col1 FROM tab1
----
0

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT ( - col2 * col0 / - 99 * col1 <> + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT COUNT( * ) AS col2 FROM tab1 WHERE NOT + + 82 BETWEEN NULL AND - 58
----
3

skipif mysql # not compatible
query I rowsort label-9545
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NOT + + 82 BETWEEN NULL AND - 58
----
3

query I rowsort
SELECT ( - - ( 94 ) ) FROM tab0
----
94
94
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab0 AS cor0 WHERE NOT - col2 + 36 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT + - 86 + + + COUNT( * ) + 76 col0 FROM tab0 AS cor0 WHERE NOT + 94 > NULL
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9548
SELECT + - 86 + + + COUNT ( * ) + 76 col0 FROM tab0 AS cor0 WHERE NOT + 94 > NULL
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT DISTINCT + 55 * - - SUM( ALL col0 ) FROM tab0 AS cor0
----
10945

skipif mysql # not compatible
query I rowsort label-9549
SELECT DISTINCT + 55 * - - SUM ( ALL col0 ) FROM tab0 AS cor0
----
10945

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE + ( - 16 ) * - + col2 - 13 / + - col2 / - col2 - 92 BETWEEN ( NULL ) AND col0
----

query III rowsort
SELECT DISTINCT col1, + ( - col1 ) * + 51, col1 FROM tab0 cor0
----
9 values hashing to 08195229a4b833154b78a18e92116b8a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col1 FROM tab2 WHERE NOT + col0 <> ( 9 + col0 + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 WHERE NOT ( - col0 * - 47 * - col1 * + - 11 * + 54 - col1 ) IN ( col1 )
----
15
87
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * col2 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 95 AS col0 FROM tab2 AS cor0
----
95
95
95

query I rowsort
SELECT + ( col2 ) FROM tab2 AS cor0 WHERE col2 * - - col1 BETWEEN ( col0 - + 6 + - - col1 ) AND 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT - 13 + + - 56 - + COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-9557
SELECT - 13 + + - 56 - + COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT ALL 38 + + ( - COUNT( * ) ) FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-9558
SELECT ALL 38 + + ( - COUNT ( * ) ) FROM tab0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT ALL - COUNT( * ) + + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL - COUNT ( * ) + + COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT col2 + + 63 + + 10 AS col0 FROM tab2
----
113
131
96

query I rowsort
SELECT - col1 + - - col2 * - col2 AS col1 FROM tab1
----
-3486
-4671
-9230

query I rowsort
SELECT - col1 + + + col1 - + - 51 AS col2 FROM tab0
----
51
51
51

query I rowsort
SELECT DISTINCT + col0 + + ( + + col2 ) AS col1 FROM tab1 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9564
SELECT - CAST( NULL AS SIGNED ) + + COUNT( * ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9564
SELECT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + ( col0 ) * + 59 * - - 96 + + col2 FROM tab0
----
492778
549507
85007

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT - - COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9566
SELECT - - COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL col1 + - + col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + col1 - col2 + - col0 AS col0 FROM tab2
----
-18
-27
-66

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9569
SELECT * FROM tab2 WHERE + - col2 * - CAST( + col2 AS SIGNED ) * + ( + + col1 ) + - 76 * + 15 - - col1 + 62 NOT BETWEEN ( + col1 ) AND ( - CAST( - 47 AS DECIMAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9569
SELECT * FROM tab2 WHERE + - col2 * - CAST ( + col2 AS INTEGER ) * + ( + + col1 ) + - 76 * + 15 - - col1 + 62 NOT BETWEEN ( + col1 ) AND ( - CAST ( - 47 AS REAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 / - col0 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9571
SELECT DISTINCT + col2 - + 70 AS col1 FROM tab1 WHERE CAST( - col1 AS SIGNED ) IS NOT NULL
----
-11
-2
26

skipif mysql # not compatible
query I rowsort label-9571
SELECT DISTINCT + col2 - + 70 AS col1 FROM tab1 WHERE CAST ( - col1 AS INTEGER ) IS NOT NULL
----
-11
-2
26

query I rowsort
SELECT ALL + col2 + + 64 - + col1 * - col1 AS col2 FROM tab0 AS cor0
----
164
515
6672

query I rowsort
SELECT + col0 * - col0 * - col0 + - - col2 FROM tab1 cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - + 15 - - 1 AS col2 FROM tab2 AS cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT DISTINCT 24 + + COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-9575
SELECT DISTINCT 24 + + COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
30

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <= 17 * - + 12
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9577
SELECT ALL - 33 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL - 33 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9578
SELECT + COUNT( - CAST( NULL AS SIGNED ) ) * + - SUM( - col2 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9578
SELECT + COUNT ( - CAST ( NULL AS INTEGER ) ) * + - SUM ( - col2 ) AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 <= 72 * + col2 + + - col1
----

query II rowsort
SELECT + ( - - col2 ) AS col1, + col0 - - col2 * col1 * - col1 FROM tab2 AS cor0
----
23
-59777
40
-237096
58
-260287

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> ( - 27 / - col0 - - - col0 )
----

query I rowsort
SELECT DISTINCT 43 * - - 19 FROM tab1
----
817

query II rowsort
SELECT DISTINCT col2, - 55 * + ( + 89 ) + + 7 FROM tab2
----
23
-4888
40
-4888
58
-4888

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * ( - - col2 ) NOT BETWEEN 1 AND NULL
----

query I rowsort
SELECT DISTINCT 58 * - 43 FROM tab0 WHERE NOT col0 + - col0 NOT IN ( + col0, col2, + + col1 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT MIN( DISTINCT col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9586
SELECT MIN ( DISTINCT col0 ) FROM tab0
----
15

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NOT - + 74 + - col1 * + - col2 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9588
SELECT + ( - + 65 ) DIV + - ( + 56 ) AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9588
SELECT + ( - + 65 ) / + - ( + 56 ) AS col1 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 75 AS col1, col1 col1 FROM tab1 AS cor0
----
-75
14
-75
47
-75
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT ALL + - 17 * + COUNT( * ) FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9590
SELECT ALL + - 17 * + COUNT ( * ) FROM tab0 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 2 col1 FROM tab1 AS cor0
----
-118
-136
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 2 col2, - col1 AS col1 FROM tab0 AS cor0
----
2
-1
2
-21
2
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-9593
SELECT ALL 31 DIV + + col2 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-9593
SELECT ALL 31 / + + col2 FROM tab0 AS cor0
----
0
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT + COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-9594
SELECT + COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query I rowsort
SELECT - col0 * - - col0 FROM tab2
----
-2116
-4096
-5625

query II rowsort
SELECT ALL col2, - 38 AS col1 FROM tab1 AS cor0
----
59
-38
68
-38
96
-38

query I rowsort
SELECT + ( + 56 ) FROM tab1 AS cor0
----
56
56
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9598
SELECT col0 DIV + + col1 AS col2 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-9598
SELECT col0 / + + col1 AS col2 FROM tab0 AS cor0
----
0
4
97

query I rowsort
SELECT DISTINCT + + col1 * 59 * - col0 FROM tab2 cor0
----
-138414
-290752
-296475

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT DISTINCT - COUNT( ALL ( + - col1 ) ) AS col0 FROM tab1 AS cor0 WHERE NULL = + 1 + - - 93
----
0

skipif mysql # not compatible
query I rowsort label-9600
SELECT DISTINCT - COUNT ( ALL ( + - col1 ) ) AS col0 FROM tab1 AS cor0 WHERE NULL = + 1 + - - 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT DISTINCT - 95 * - 27 + + ( + COUNT( * ) ) FROM tab2 AS cor0
----
2568

skipif mysql # not compatible
query I rowsort label-9601
SELECT DISTINCT - 95 * - 27 + + ( + COUNT ( * ) ) FROM tab2 AS cor0
----
2568

query I rowsort
SELECT DISTINCT - 18 * + col0 + ( col2 ) FROM tab1 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT ALL COUNT( * ) + + MAX( 36 ) AS col1 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL COUNT ( * ) + + MAX ( 36 ) AS col1 FROM tab2
----
39

query III rowsort
SELECT * FROM tab2 WHERE + + col0 + - col2 + - + 22 - + - 28 + + col2 / col0 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + + col2 * - col2 AS col2 FROM tab1
----
-3396
-4533
-9165

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT COUNT( * ) AS col2 FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9606
SELECT COUNT ( * ) AS col2 FROM tab0, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT DISTINCT + ( + 3 ) + + - 46 + + MIN( DISTINCT 54 ) FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-9607
SELECT DISTINCT + ( + 3 ) + + - 46 + + MIN ( DISTINCT 54 ) FROM tab1
----
11

query I rowsort
SELECT DISTINCT + 75 AS col1 FROM tab0 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9609
SELECT DISTINCT 25 + + 69 + col2 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9609
SELECT DISTINCT 25 + + 69 + col2 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT SUM( col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-9610
SELECT SUM ( col1 ) FROM tab2
----
195

query II rowsort
SELECT 87 AS col2, 12 FROM tab0 cor0
----
87
12
87
12
87
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9612
SELECT + CAST( NULL AS SIGNED ) / + + col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9612
SELECT + CAST ( NULL AS INTEGER ) / + + col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT ALL 1 * - COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL 1 * - COUNT ( * ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT ALL + - 48 * + - 82 + 23 + COUNT( * ) col1 FROM tab1 AS cor0
----
3962

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9614
SELECT ALL + - 48 * + - 82 + 23 + COUNT ( * ) col1 FROM tab1 AS cor0
----
3962

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 + + + col2 + + + col1 NOT IN ( col2, col0 * - ( col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9615
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 + + + col2 + + + col1 NOT IN ( col2, col0 * - ( col1 ) )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col2 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT ALL ( + ( - COUNT( * ) ) ) * - - ( + 14 ) FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL ( + ( - COUNT ( * ) ) ) * - - ( + 14 ) FROM tab0
----
-42

query I rowsort
SELECT DISTINCT 40 * - 46 AS col2 FROM tab0
----
-1840

query I rowsort
SELECT - ( ( + - col1 ) ) FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT COUNT( DISTINCT - col1 ) * + - 27 + ( + 59 ) AS col0 FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-9620
SELECT COUNT ( DISTINCT - col1 ) * + - 27 + ( + 59 ) AS col0 FROM tab1
----
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 col1 FROM tab2 AS cor0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT - COUNT( * ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9622
SELECT - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT DISTINCT col2 * - - 24 - + col0 AS col2 FROM tab1 AS cor0
----
1331
1541
2253

query III rowsort
SELECT * FROM tab2 WHERE NOT - - ( 44 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-9625
SELECT ALL 25 DIV - col0 + + - col1 AS col2, col1 AS col1 FROM tab2
----
-51
51
-67
67
-77
77

skipif mysql # not compatible
query II rowsort label-9625
SELECT ALL 25 / - col0 + + - col1 AS col2, col1 AS col1 FROM tab2
----
-51
51
-67
67
-77
77

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # DIV for integer division: 
query I rowsort label-9627
SELECT ALL ( col0 ) DIV - col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9627
SELECT ALL ( col0 ) / - col2 FROM tab2 AS cor0
----
-1
-1
-2

query I rowsort
SELECT + - col2 + ( - - col1 ) AS col2 FROM tab1 cor0
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT - COUNT( * ) + 51 AS col1 FROM tab2 cor0
----
48

skipif mysql # not compatible
query I rowsort label-9629
SELECT - COUNT ( * ) + 51 AS col1 FROM tab2 cor0
----
48

query I rowsort
SELECT + col1 * - col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT ( + 51 ) + - + MIN( - + col1 ) AS col1 FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-9631
SELECT ( + 51 ) + - + MIN ( - + col1 ) AS col1 FROM tab1
----
98

query I rowsort
SELECT 99 + + col0 AS col2 FROM tab2
----
145
163
174

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT DISTINCT + ( + 64 ) + MIN( ( - + col2 ) ) AS col1 FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-9633
SELECT DISTINCT + ( + 64 ) + MIN ( ( - + col2 ) ) AS col1 FROM tab0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9634
SELECT 20 * + ( SUM( - col2 ) ) / - CAST( NULL AS DECIMAL ) + + + MIN( - col1 ) * 70 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9634
SELECT 20 * + ( SUM ( - col2 ) ) / - CAST ( NULL AS REAL ) + + + MIN ( - col1 ) * 70 AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT DISTINCT + 81 + + - COUNT( * ) AS col0 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-9635
SELECT DISTINCT + 81 + + - COUNT ( * ) AS col0 FROM tab0
----
78

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NULL > col0
----

query I rowsort
SELECT DISTINCT - - 55 + - - ( ( + - 34 ) ) - col2 AS col0 FROM tab1 AS cor0
----
-38
-47
-75

query I rowsort
SELECT ALL col1 * - 69 AS col0 FROM tab2
----
-3519
-4623
-5313

query II rowsort
SELECT - col1 AS col2, + col1 FROM tab1 WHERE NOT col1 + + 55 + col0 * + 36 * 46 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT DISTINCT COUNT( 98 ) FROM tab0, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT COUNT ( 98 ) FROM tab0, tab1 cor0
----
9

query I rowsort
SELECT DISTINCT col1 + + col1 * + - col0 * col0 FROM tab0 WHERE NOT - col0 * - - col2 + + col2 BETWEEN + col1 AND col2
----
-158928
-18144
-9408

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT ALL - 92 * COUNT( * ) FROM tab2
----
-276

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL - 92 * COUNT ( * ) FROM tab2
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT COUNT( * ) * COUNT( * ) FROM tab1, tab1 cor0
----
81

skipif mysql # not compatible
query I rowsort label-9643
SELECT COUNT ( * ) * COUNT ( * ) FROM tab1, tab1 cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT 39 * - COUNT( * ) AS col2 FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-9644
SELECT 39 * - COUNT ( * ) AS col2 FROM tab2
----
-117

query I rowsort
SELECT DISTINCT + + AVG ( - - col2 ) FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 col0 FROM tab0 cor0 WHERE NOT col2 < NULL
----

query II rowsort
SELECT col0 * + ( + + 25 ) AS col1, - col2 FROM tab0 AS cor0
----
2175
-10
2425
-99
375
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 col1, 45 + - + col0 * col1 AS col0 FROM tab2 cor0
----
-46
-2301
-64
-4883
-75
-4980

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NULL < 79
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) + + - col2 col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + 49 + + 31 * + 70 FROM tab1 AS cor0
----
2219

query I rowsort
SELECT ALL - + col2 + + 8 FROM tab1 AS cor0
----
-51
-60
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - 42 ) col1, col1 AS col0 FROM tab2 AS cor0
----
42
51
42
67
42
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT DISTINCT + MAX( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9654
SELECT DISTINCT + MAX ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE ( ( ( NULL ) IS NULL ) )
----
23
40
58

query I rowsort
SELECT - + col0 * - ( + + col1 ) AS col2 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT DISTINCT - + col2 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT DISTINCT COUNT( * ) + 8 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-9658
SELECT DISTINCT COUNT ( * ) + 8 FROM tab2
----
11

query II rowsort
SELECT ALL + col1 AS col1, col0 FROM tab1 WHERE - 65 + 33 IS NOT NULL
----
14
51
47
91
5
85

query III rowsort
SELECT * FROM tab1 WHERE NULL >= + 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT 30 + - MAX( - 56 ) AS col0 FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-9661
SELECT 30 + - MAX ( - 56 ) AS col0 FROM tab2
----
86

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 81 = NULL
----

query II rowsort
SELECT DISTINCT + col1 - - col0 + - col1, + col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL AVG ( ALL col0 ) col0 FROM tab1 AS cor0 WHERE ( NULL ) < + col0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT - COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9666
SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 37 - + 85 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9668
SELECT 89 DIV + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9668
SELECT 89 / + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT + - 37 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT - SUM( DISTINCT + + col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9670
SELECT - SUM ( DISTINCT + + col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT + - COUNT( * ) * + 41 FROM tab0 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-9671
SELECT + - COUNT ( * ) * + 41 FROM tab0 AS cor0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT - - MAX( + 20 ) AS col2 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-9672
SELECT - - MAX ( + 20 ) AS col2 FROM tab0 AS cor0
----
20

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * + 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT DISTINCT - MIN( - 0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9674
SELECT DISTINCT - MIN ( - 0 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 76 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT + MIN( ( ( col1 ) ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9676
SELECT + MIN ( ( ( col1 ) ) ) FROM tab2
----
51

query III rowsort
SELECT ALL * FROM tab1 WHERE + + ( + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 33 * col1 FROM tab2
----
1683
2211
2541

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT ALL + MAX( - 53 ) + - MIN( col0 ) AS col2 FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL + MAX ( - 53 ) + - MIN ( col0 ) AS col2 FROM tab0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT + COUNT( + col0 ) + + COUNT( * ) col1 FROM tab2
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9680
SELECT + COUNT ( + col0 ) + + COUNT ( * ) col1 FROM tab2
----
6

query I rowsort
SELECT 19 * 40 + - 47 AS col2 FROM tab2
----
713
713
713

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9682
SELECT ALL col1 + - CAST( - col2 AS SIGNED ) * col1 AS col0 FROM tab2 cor0
----
1224
3157
3953

skipif mysql # not compatible
query I rowsort label-9682
SELECT ALL col1 + - CAST ( - col2 AS INTEGER ) * col1 AS col0 FROM tab2 cor0
----
1224
3157
3953

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 85 - - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT - + SUM( + ( - - 51 ) ) FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-9684
SELECT - + SUM ( + ( - - 51 ) ) FROM tab2 AS cor0
----
-153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 37 - + - 72 col2 FROM tab1
----
13
41
50

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - 83 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9688
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9688
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 + + + col2 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9690
SELECT ALL + - CAST( + 35 AS SIGNED ) FROM tab0 AS cor0
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL + - CAST ( + 35 AS INTEGER ) FROM tab0 AS cor0
----
-35
-35
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 AS col2, col1 col0 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT 92 - + col2 FROM tab2
----
34
52
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT 58 + - COUNT( DISTINCT - + col2 ) FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-9693
SELECT 58 + - COUNT ( DISTINCT - + col2 ) FROM tab0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9694
SELECT + ( + - col2 ) * - CAST( + + 16 AS SIGNED ) + - col0 FROM tab1
----
1485
859
997

skipif mysql # not compatible
query I rowsort label-9694
SELECT + ( + - col2 ) * - CAST ( + + 16 AS INTEGER ) + - col0 FROM tab1
----
1485
859
997

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT + MAX( - ( + col0 ) ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-9695
SELECT + MAX ( - ( + col0 ) ) AS col2 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT ALL + 37 * + 52 + + + COUNT( * ) AS col2 FROM tab0
----
1927

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL + 37 * + 52 + + + COUNT ( * ) AS col2 FROM tab0
----
1927

query I rowsort
SELECT col1 * ( + + 83 ) FROM tab0
----
1743
6723
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT ALL - 86 * + COUNT( * ) FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-9698
SELECT ALL - 86 * + COUNT ( * ) FROM tab2
----
-258

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 BETWEEN + + col1 + + col0 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 + + - col2 AS col1 FROM tab1
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT ALL + ( - - COUNT( * ) ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL + ( - - COUNT ( * ) ) AS col1 FROM tab0 cor0
----
3

query I rowsort
SELECT + + 89 AS col1 FROM tab2 cor0
----
89
89
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9703
SELECT + CAST( - 89 AS SIGNED ) AS col1, - col2 col1 FROM tab0 AS cor0
----
-89
-10
-89
-47
-89
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9703
SELECT + CAST ( - 89 AS INTEGER ) AS col1, - col2 col1 FROM tab0 AS cor0
----
-89
-10
-89
-47
-89
-99

query I rowsort
SELECT DISTINCT - col2 * - 25 AS col0 FROM tab2
----
1000
1450
575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9705
SELECT - CAST( NULL AS SIGNED ) * col1 * ( + col2 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9705
SELECT - CAST ( NULL AS INTEGER ) * col1 * ( + col2 ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - col1 * + col0 * - + col1 * col2 FROM tab0
----
217398735
3836700
950697

onlyif mysql # DIV for integer division: 
query I rowsort label-9707
SELECT + col2 DIV - + 90 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9707
SELECT + col2 / - + 90 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9708
SELECT ALL 49 DIV + SUM( ALL + - col1 ) + 15 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9708
SELECT ALL 49 / + SUM ( ALL + - col1 ) + 15 FROM tab2 AS cor0
----
15

onlyif mysql # DIV for integer division: 
query II rowsort label-9709
SELECT ALL + col1, + 1 DIV + col0 * - 7 FROM tab1 AS cor0
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-9709
SELECT ALL + col1, + 1 / + col0 * - 7 FROM tab1 AS cor0
----
14
0
47
0
5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT DISTINCT ( - - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9710
SELECT DISTINCT ( - - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9711
SELECT ALL 24 * + CAST( NULL AS SIGNED ) * + col0 / - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9711
SELECT ALL 24 * + CAST ( NULL AS INTEGER ) * + col0 / - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9712
SELECT - col2 DIV + col2 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9712
SELECT - col2 / + col2 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT + + COUNT( ALL + - col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9713
SELECT + + COUNT ( ALL + - col1 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 cor0 WHERE NOT - col0 * + + 57 IS NULL
----
15
87
97

query I rowsort
SELECT + - 14 * col2 AS col1 FROM tab0 AS cor0
----
-1386
-140
-658

query II rowsort
SELECT - + 46, col0 - - col0 AS col0 FROM tab2 AS cor0
----
-46
128
-46
150
-46
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9717
SELECT DISTINCT MAX( CAST( - col2 AS SIGNED ) ) AS col1, COUNT( * ) + - MIN( DISTINCT - + 16 ) FROM tab0 AS cor0
----
-10
19

skipif mysql # not compatible
query II rowsort label-9717
SELECT DISTINCT MAX ( CAST ( - col2 AS INTEGER ) ) AS col1, COUNT ( * ) + - MIN ( DISTINCT - + 16 ) FROM tab0 AS cor0
----
-10
19

query II rowsort
SELECT + col2 AS col2, col0 + + col0 AS col2 FROM tab1 AS cor0
----
59
170
68
182
96
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9719
SELECT DISTINCT col0 * - + col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9719
SELECT DISTINCT col0 * - + col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 = NULL OR NULL IN ( col2, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT ALL COUNT( * ) * - 17 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-9721
SELECT ALL COUNT ( * ) * - 17 FROM tab0
----
-51

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 + - - ( + col1 ) <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9723
SELECT ALL COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9723
SELECT ALL COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT ALL + COUNT( * ) FROM tab2 WHERE + 81 + 82 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9724
SELECT ALL + COUNT ( * ) FROM tab2 WHERE + 81 + 82 IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 67 IS NULL
----

query I rowsort
SELECT DISTINCT ( - - col2 ) FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT + SUM( + col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9727
SELECT + SUM ( + col1 ) FROM tab1
----
66

query I rowsort
SELECT ALL - + 34 FROM tab2 WHERE NOT - - col0 / ( col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT MIN( + 59 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
59

skipif mysql # not compatible
query I rowsort label-9729
SELECT MIN ( + 59 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9730
SELECT - col2 + - CAST( + + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-116
-46
-80

skipif mysql # not compatible
query I rowsort label-9730
SELECT - col2 + - CAST ( + + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT DISTINCT - col2 * + 54 + - col0 FROM tab1 AS cor0
----
-3271
-3763
-5235

query I rowsort
SELECT DISTINCT col0 - + 16 + + + 8 AS col0 FROM tab2 AS cor0
----
38
56
67

query II rowsort
SELECT DISTINCT col1 + + + col2 AS col0, - col0 FROM tab2 cor0
----
117
-64
125
-75
74
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT DISTINCT + + COUNT( ALL + ( + 88 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 >= col2
----
3

skipif mysql # not compatible
query I rowsort label-9734
SELECT DISTINCT + + COUNT ( ALL + ( + 88 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 >= col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT - + SUM( ALL + col2 ) * + - 32 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - col2 - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9735
SELECT - + SUM ( ALL + col2 ) * + - 32 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - col2 - col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9736
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * - col2 + - - 65 <> - col0 / - col2 + + CAST( NULL AS SIGNED ) - - 18
----

skipif mysql # not compatible
query III rowsort label-9736
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * - col2 + - - 65 <> - col0 / - col2 + + CAST ( NULL AS INTEGER ) - - 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT ( + MIN( DISTINCT + - ( + 45 ) ) ) - + + MIN( col2 ) * - MAX( + + col0 ) FROM tab0 AS cor0
----
925

skipif mysql # not compatible
query I rowsort label-9737
SELECT ( + MIN ( DISTINCT + - ( + 45 ) ) ) - + + MIN ( col2 ) * - MAX ( + + col0 ) FROM tab0 AS cor0
----
925

query I rowsort
SELECT ALL - - 83 FROM tab0 AS cor0
----
83
83
83

query I rowsort
SELECT - 3 - - - col2 * + col2 AS col2 FROM tab1
----
-3484
-4627
-9219

query I rowsort
SELECT ALL - 64 + - - col2 FROM tab0
----
-17
-54
35

onlyif mysql # aggregate syntax: 
query II rowsort label-9741
SELECT 69 AS col0, ( + - COUNT( * ) ) FROM tab1
----
69
-3

skipif mysql # not compatible
query II rowsort label-9741
SELECT 69 AS col0, ( + - COUNT ( * ) ) FROM tab1
----
69
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * 20 col0 FROM tab0
----
1620
20
420

query I rowsort
SELECT 68 * + col2 FROM tab1
----
4012
4624
6528

query I rowsort
SELECT col0 * col0 * - col2 AS col1 FROM tab0
----
-10575
-75690
-931491

onlyif mysql # aggregate syntax: 
query II rowsort label-9745
SELECT + 59 AS col2, COUNT( * ) AS col1 FROM tab2
----
59
3

skipif mysql # not compatible
query II rowsort label-9745
SELECT + 59 AS col2, COUNT ( * ) AS col1 FROM tab2
----
59
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9746
SELECT ALL + 23 col2, + ( - COUNT( * ) ) FROM tab1 AS cor0
----
23
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9746
SELECT ALL + 23 col2, + ( - COUNT ( * ) ) FROM tab1 AS cor0
----
23
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9747
SELECT - + col2 / 12 / col0 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9747
SELECT - + col2 / 12 / col0 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9748
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT ALL - COUNT( * ) * - 69 * 60 FROM tab2
----
12420

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL - COUNT ( * ) * - 69 * 60 FROM tab2
----
12420

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT DISTINCT - ( COUNT( * ) ) * + + 79 AS col2 FROM tab2 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-9750
SELECT DISTINCT - ( COUNT ( * ) ) * + + 79 AS col2 FROM tab2 AS cor0
----
-237

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 77 BETWEEN NULL AND + col0
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - + col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9753
SELECT ALL - + col1 * + col2 AS col2, - 69 DIV col1 FROM tab0 AS cor0
----
-210
-3
-3807
0
-99
-69

skipif mysql # not compatible
query II rowsort label-9753
SELECT ALL - + col1 * + col2 AS col2, - 69 / col1 FROM tab0 AS cor0
----
-210
-3
-3807
0
-99
-69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9754
SELECT * FROM tab2 AS cor0 WHERE NOT 17 * - - CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-9754
SELECT * FROM tab2 AS cor0 WHERE NOT 17 * - - CAST ( NULL AS INTEGER ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9755
SELECT - + 69 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( + col2, col0, + - 87 + - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9755
SELECT - + 69 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( + col2, col0, + - 87 + - + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 > - - 30
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT SUM( ALL + - 96 ) + + 65 AS col1 FROM tab0
----
-223

skipif mysql # not compatible
query I rowsort label-9757
SELECT SUM ( ALL + - 96 ) + + 65 AS col1 FROM tab0
----
-223

query I rowsort
SELECT - col1 * - ( - 93 ) + col0 AS col0 FROM tab1
----
-1251
-380
-4280

query I rowsort
SELECT ALL col0 + + + col2 FROM tab2
----
104
133
69

query I rowsort
SELECT ALL + col1 + + + col0 + - 70 + + 55 AS col2 FROM tab0 AS cor0
----
81
83
93

query I rowsort
SELECT ALL + 99 + - 85 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 0 * + col2 * 88 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9763
SELECT col1 * + col0 * col1 + + ( + col2 ) * + 66 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0 WHERE 53 NOT BETWEEN NULL AND + 12
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9763
SELECT col1 * + col0 * col1 + + ( + col2 ) * + 66 * + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0 WHERE 53 NOT BETWEEN NULL AND + 12
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 - 89 AS col2 FROM tab0 cor0
----
-42
-79
10

query I rowsort
SELECT - 61 + + col1 AS col0 FROM tab0 AS cor0
----
-40
-60
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT + 7 * - COUNT( * ) + + 28 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-9766
SELECT + 7 * - COUNT ( * ) + + 28 FROM tab0 AS cor0
----
7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * 99 < - 97
----

query I rowsort
SELECT - + 3 + + col2 FROM tab1 AS cor0
----
56
65
93

query I rowsort
SELECT ALL - col1 - + - col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT COUNT( - - 72 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9770
SELECT COUNT ( - - 72 ) AS col1 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 + - col1 col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-107
-123
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT 40 * + MAX( ALL + col0 ) * 43 + - MAX( - + col1 ) FROM tab1
----
156525

skipif mysql # not compatible
query I rowsort label-9772
SELECT 40 * + MAX ( ALL + col0 ) * 43 + - MAX ( - + col1 ) FROM tab1
----
156525

query I rowsort
SELECT ALL - ( ( + 91 ) ) FROM tab0
----
-91
-91
-91

query I rowsort
SELECT + 78 * col1 AS col1 FROM tab0
----
1638
6318
78

onlyif mysql # DIV for integer division: 
query I rowsort label-9775
SELECT + 45 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9775
SELECT + 45 / + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9776
SELECT DISTINCT - col2 / - - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 WHERE NOT NULL <= - - 58
----

skipif mysql # not compatible
query I rowsort label-9776
SELECT DISTINCT - col2 / - - CAST ( NULL AS REAL ) AS col2 FROM tab2 WHERE NOT NULL <= - - 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-9777
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
-9

query I rowsort
SELECT ALL 18 * - ( + col2 ) FROM tab0
----
-1782
-180
-846

query I rowsort
SELECT col2 + + col2 + + + 66 * - 85 + - - 38 AS col0 FROM tab1 AS cor0
----
-5380
-5436
-5454

query I rowsort
SELECT DISTINCT - + col0 * + - col0 FROM tab1 cor0
----
2601
7225
8281

onlyif mysql # DIV for integer division: 
query I rowsort label-9781
SELECT - 89 DIV 82 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9781
SELECT - 89 / 82 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9782
SELECT - col0 * + + col0 + col0 + - - CAST( NULL AS SIGNED ), + col0 - - - 83 - + 43 AS col1 FROM tab0 AS cor0
----
NULL
-111
NULL
-29
NULL
-39

skipif mysql # not compatible
query II rowsort label-9782
SELECT - col0 * + + col0 + col0 + - - CAST ( NULL AS INTEGER ), + col0 - - - 83 - + 43 AS col1 FROM tab0 AS cor0
----
NULL
-111
NULL
-29
NULL
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9783
SELECT CAST( + 16 AS SIGNED ) FROM tab2 AS cor0
----
16
16
16

skipif mysql # not compatible
query I rowsort label-9783
SELECT CAST ( + 16 AS INTEGER ) FROM tab2 AS cor0
----
16
16
16

query I rowsort
SELECT + col2 * + ( + col2 ) FROM tab1 AS cor0
----
3481
4624
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 col0 FROM tab0 AS cor0
----
95
95
95

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 70 + col1 * + + col1 + col1 FROM tab2
----
2722
4626
6076

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 + - + 22 col2, col1 FROM tab2
----
24
51
42
77
53
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9789
SELECT DISTINCT - 43 + + - col1 * 67 DIV - col1 AS col2 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-9789
SELECT DISTINCT - 43 + + - col1 * 67 / - col1 AS col2 FROM tab0
----
24

query II rowsort
SELECT + ( - col0 ) AS col0, - col2 AS col1 FROM tab0
----
-15
-47
-87
-10
-97
-99

query II rowsort
SELECT ALL col0 + - 69 AS col1, 74 * col0 - 76 * col2 AS col1 FROM tab0
----
-54
-2462
18
5678
28
-346

query I rowsort
SELECT DISTINCT - 69 + + + 37 + - - col0 AS col0 FROM tab1 AS cor0
----
19
53
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9793
SELECT ALL COUNT( + CAST( + + col2 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9793
SELECT ALL COUNT ( + CAST ( + + col2 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + - col1 + - col1 * - col0 * - 88 FROM tab2 AS cor0
----
-206499
-433741
-442267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9795
SELECT ALL - 65 + CAST( NULL AS SIGNED ) * - + CAST( col1 AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9795
SELECT ALL - 65 + CAST ( NULL AS INTEGER ) * - + CAST ( col1 AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT DISTINCT - MIN( DISTINCT ( + col2 ) ) + - 77 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-9796
SELECT DISTINCT - MIN ( DISTINCT ( + col2 ) ) + - 77 FROM tab0
----
-87

query I rowsort
SELECT ALL col1 + + + col1 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9798
SELECT - CAST( 1 AS SIGNED ) - - + col2 AS col0 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-9798
SELECT - CAST ( 1 AS INTEGER ) - - + col2 AS col0 FROM tab0 AS cor0
----
46
9
98

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT - MAX( - 56 ) AS col2 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-9800
SELECT - MAX ( - 56 ) AS col2 FROM tab2 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT - COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9801
SELECT - COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT - col2 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT ALL + SUM( + + col0 ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL + SUM ( + + col0 ) AS col2 FROM tab1
----
227

query I rowsort
SELECT ALL - 69 * col1 AS col1 FROM tab0
----
-1449
-5589
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9804
SELECT DISTINCT - COUNT( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9804
SELECT DISTINCT - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + ( + 58 ) FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT + COUNT( * ) * + - COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9806
SELECT + COUNT ( * ) * + - COUNT ( * ) FROM tab0
----
-9

query I rowsort
SELECT - col2 * 74 AS col0 FROM tab1
----
-4366
-5032
-7104

query I rowsort
SELECT + col1 * ( - 63 ) AS col0 FROM tab0
----
-1323
-5103
-63

query I rowsort
SELECT DISTINCT + ( + 27 ) FROM tab1
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-9810
SELECT - COUNT( * ), - ( 89 ) AS col2 FROM tab2 AS cor0
----
-3
-89

skipif mysql # not compatible
query II rowsort label-9810
SELECT - COUNT ( * ), - ( 89 ) AS col2 FROM tab2 AS cor0
----
-3
-89

query II rowsort
SELECT ALL + + col0 AS col1, col1 AS col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT DISTINCT + 90 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT - COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9813
SELECT - COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9814
SELECT COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 39 BETWEEN - + ( - col1 ) + - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9816
SELECT DISTINCT + 62 + 50 + col2 + - CAST( NULL AS SIGNED ) / col2 col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9816
SELECT DISTINCT + 62 + 50 + col2 + - CAST ( NULL AS INTEGER ) / col2 col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9817
SELECT ALL - ( - CAST( + col1 AS SIGNED ) ) AS col0 FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL - ( - CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab0 cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query II rowsort label-9818
SELECT + - 22 + + - 57 DIV + col2 AS col0, col0 AS col0 FROM tab1 AS cor0
----
-22
51
-22
85
-22
91

skipif mysql # not compatible
query II rowsort label-9818
SELECT + - 22 + + - 57 / + col2 AS col0, col0 AS col0 FROM tab1 AS cor0
----
-22
51
-22
85
-22
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT + ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9819
SELECT + ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE + col2 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9820
SELECT DISTINCT col2 * 42 + - col1 + - CAST( + ( + - col0 ) AS SIGNED ) FROM tab0 cor0
----
1908
4254
486

skipif mysql # not compatible
query I rowsort label-9820
SELECT DISTINCT col2 * 42 + - col1 + - CAST ( + ( + - col0 ) AS INTEGER ) FROM tab0 cor0
----
1908
4254
486

query II rowsort
SELECT ALL + ( + col0 ) AS col0, + col0 * + 31 + - col2 + + 36 AS col1 FROM tab1 AS cor0
----
51
1521
85
2612
91
2789

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 col1 FROM tab1
----
31

query I rowsort
SELECT DISTINCT + 60 + + col1 AS col1 FROM tab0
----
141
61
81

query I rowsort
SELECT ALL ( 26 ) AS col0 FROM tab1
----
26
26
26

query I rowsort
SELECT DISTINCT 12 + - col0 AS col1 FROM tab0
----
-3
-75
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( col2 ) + - col0, - col2 col2 FROM tab0
----
-77
-10
2
-99
32
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT DISTINCT - 36 + - - COUNT( * ) FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-9827
SELECT DISTINCT - 36 + - - COUNT ( * ) FROM tab2
----
-33

query I rowsort
SELECT 33 + + 26 AS col0 FROM tab2
----
59
59
59

query I rowsort
SELECT - 32 + - col0 * + - col2 AS col0 FROM tab1
----
4864
4983
6156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col1 ) col0 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT ALL col1 - - 61 FROM tab0
----
142
62
82

query I rowsort
SELECT ALL 86 + - 50 - + 16 AS col0 FROM tab1
----
20
20
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9833
SELECT ALL - CAST( NULL AS DECIMAL ) + + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL - CAST ( NULL AS REAL ) + + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 94 + col2 AS col1 FROM tab2 AS cor0
----
117
134
152

query II rowsort
SELECT - col2, - col1 AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT DISTINCT + COUNT( * ) - 4 + - - COUNT( * ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9836
SELECT DISTINCT + COUNT ( * ) - 4 + - - COUNT ( * ) FROM tab1 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9837
SELECT - CAST( 41 AS SIGNED ) - - + col1, col0 * + col2 * - - 70 AS col0 FROM tab0 AS cor0
----
-20
60900
-40
672210
40
49350

skipif mysql # not compatible
query II rowsort label-9837
SELECT - CAST ( 41 AS INTEGER ) - - + col1, col0 * + col2 * - - 70 AS col0 FROM tab0 AS cor0
----
-20
60900
-40
672210
40
49350

query II rowsort
SELECT DISTINCT - col0 * - 53 AS col2, + col2 - - - ( col1 ) + col0 FROM tab2
----
2438
18
3392
27
3975
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9839
SELECT ALL + + col1 DIV - - col1 AS col1 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL + + col1 / - - col1 AS col1 FROM tab0 cor0
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9840
SELECT - MAX( DISTINCT - CAST( - col0 AS SIGNED ) ) DIV COUNT( * ) AS col0, - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
-30
NULL

skipif mysql # not compatible
query II rowsort label-9840
SELECT - MAX ( DISTINCT - CAST ( - col0 AS INTEGER ) ) / COUNT ( * ) AS col0, - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
-30
NULL

query II rowsort
SELECT ALL + ( - 72 ), + ( col2 ) FROM tab2 AS cor0
----
-72
23
-72
40
-72
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT - - SUM( + col0 ) AS col0 FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-9842
SELECT - - SUM ( + col0 ) AS col0 FROM tab0 cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT + MIN( + - 52 ) AS col1 FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-9843
SELECT + MIN ( + - 52 ) AS col1 FROM tab1 AS cor0
----
-52

query I rowsort
SELECT - ( 48 ) AS col1 FROM tab0
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT ALL MAX( + - 72 ) FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-9845
SELECT ALL MAX ( + - 72 ) FROM tab0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT ALL - COUNT( ALL 82 ) col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9846
SELECT ALL - COUNT ( ALL 82 ) col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT 24 * - col0 FROM tab2
----
-1104
-1536
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT DISTINCT - 8 * - COUNT( * ) AS col1 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-9848
SELECT DISTINCT - 8 * - COUNT ( * ) AS col1 FROM tab2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9849
SELECT ALL + ( CAST( NULL AS SIGNED ) ) * col2 * col2 * - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) * col2 * col2 * - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * 50 * 53 AS col0 FROM tab2
----
121900
169600
198750

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT + + COUNT( * ) AS col0 FROM tab0 WHERE NOT - ( + col2 ) + col2 / + 65 * - 73 + + col0 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9851
SELECT + + COUNT ( * ) AS col0 FROM tab0 WHERE NOT - ( + col2 ) + col2 / + 65 * - 73 + + col0 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9852
SELECT + SUM( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9852
SELECT + SUM ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT - 81 * MIN( DISTINCT col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9853
SELECT - 81 * MIN ( DISTINCT col1 ) FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT + - SUM( ALL + + col1 ) * + - 31 FROM tab1 AS cor0
----
2046

skipif mysql # not compatible
query I rowsort label-9854
SELECT + - SUM ( ALL + + col1 ) * + - 31 FROM tab1 AS cor0
----
2046

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9855
SELECT CAST( NULL AS DECIMAL ) col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9855
SELECT CAST ( NULL AS REAL ) col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 76 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - - 43 col2 FROM tab1
----
48
57
90

query I rowsort
SELECT ALL col2 + col2 - col0 + - + col0 FROM tab1 AS cor0
----
-46
-52
90

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9860
SELECT * FROM tab1 AS cor0 WHERE + col1 + - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9860
SELECT * FROM tab1 AS cor0 WHERE + col1 + - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * 43 * ( + col1 ) * - col0 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT - col0 AS col0, - col1 AS col2, + - col2 AS col2 FROM tab1 AS cor0
----
9 values hashing to 120ef8eb7bc5bedec4054a6345b99942

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 * col1 * - 6 + + - col0 col0 FROM tab1 AS cor0
----
1797
575
6113

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 64 + - - 30 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9865
SELECT + col0 DIV 17 * + col1 * - + col0 AS col0 FROM tab2 AS cor0
----
-14784
-20100
-4692

skipif mysql # not compatible
query I rowsort label-9865
SELECT + col0 / 17 * + col1 * - + col0 AS col0 FROM tab2 AS cor0
----
-14784
-20100
-4692

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT + 31 * COUNT( * ) FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-9866
SELECT + 31 * COUNT ( * ) FROM tab0 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT - + SUM( ALL - + 0 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9867
SELECT - + SUM ( ALL - + 0 ) FROM tab1 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9868
SELECT DISTINCT + col2 * col2 + - + col1 DIV - col0 AS col2 FROM tab2 AS cor0
----
1601
3364
530

skipif mysql # not compatible
query I rowsort label-9868
SELECT DISTINCT + col2 * col2 + - + col1 / - col0 AS col2 FROM tab2 AS cor0
----
1601
3364
530

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9869
SELECT - SUM( ALL + CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9869
SELECT - SUM ( ALL + CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 * - - 43 col0 FROM tab2 WHERE NULL > 3 / + 69
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( NULL ) < NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + col1, + col2 )
----

query I rowsort
SELECT DISTINCT 3 * - + col0 * col1 + - col0 FROM tab0
----
-3660
-388
-5568

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT 43 + 61 + + 22 * - COUNT( * ) FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-9874
SELECT 43 + 61 + + 22 * - COUNT ( * ) FROM tab2
----
38

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE + 13 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 49 * - 74 - - 0 AS col2 FROM tab1 WHERE NOT + 24 + + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT ALL COUNT( * ) * + MAX( DISTINCT col2 ) col2 FROM tab0
----
297

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9877
SELECT ALL COUNT ( * ) * + MAX ( DISTINCT col2 ) col2 FROM tab0
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT + + SUM( col2 ) col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9878
SELECT + + SUM ( col2 ) col0 FROM tab0 AS cor0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-9879
SELECT - + col1 DIV + col0 * - 43 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9879
SELECT - + col1 / + col0 * - 43 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * + + ( - - ( + + col1 ) ) col0 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT DISTINCT - - SUM( ALL + - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-9881
SELECT DISTINCT - - SUM ( ALL + - col2 ) FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT ALL - 82 * - COUNT( * ) - - 19 * - MAX( DISTINCT - 74 ) FROM tab0 AS cor0
----
1652

skipif mysql # not compatible
query I rowsort label-9882
SELECT ALL - 82 * - COUNT ( * ) - - 19 * - MAX ( DISTINCT - 74 ) FROM tab0 AS cor0
----
1652

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT DISTINCT 2 * COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9883
SELECT DISTINCT 2 * COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL - - 83 FROM tab0 AS cor0 WHERE col0 <= - col1 + + 13
----

query II rowsort
SELECT DISTINCT - - col1, 96 AS col0 FROM tab2 AS cor0
----
51
96
67
96
77
96

query I rowsort
SELECT ALL 29 * - col2 FROM tab1
----
-1711
-1972
-2784

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col1 * + 40 - - 63 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + 41 * col0 col1 FROM tab2 AS cor0
----
1835
2547
3008

query I rowsort
SELECT ( - + col2 ) FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT MIN( ALL ( 78 ) ) AS col1 FROM tab2, tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-9891
SELECT MIN ( ALL ( 78 ) ) AS col1 FROM tab2, tab1 AS cor0
----
78

query II rowsort
SELECT col2, col1 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9893
SELECT ALL - 75 DIV - - 77 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL - 75 / - - 77 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - 36 + 56 + - col0 + ( + 69 ) AS col0 FROM tab2
----
14
25
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9895
SELECT DISTINCT + - 43 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9895
SELECT DISTINCT + - 43 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT - 50 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT ALL - 37 + + 30 + - 21 AS col0 FROM tab1 AS cor0
----
-28
-28
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 59 ) + 19 col1 FROM tab1 AS cor0
----
-40
-40
-40

query I rowsort
SELECT DISTINCT col1 * - + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) < - + 38 + col2
----

query I rowsort
SELECT DISTINCT + 82 AS col1 FROM tab2 cor0
----
82

query I rowsort
SELECT - 0 + - col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL - + 42 AS col2 FROM tab2 AS cor0 WHERE NOT col0 * + + col1 NOT IN ( + - col1, col0, - - 41 * - 6 * 23 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 50 col2 FROM tab1 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT DISTINCT + + MAX( + + col0 ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-9904
SELECT DISTINCT + + MAX ( + + col0 ) FROM tab0 cor0
----
97

query I rowsort
SELECT + col2 * - 45 * + col2 * + 24 * + col0 AS col1 FROM tab2
----
-110592000
-26280720
-272484000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col0, col1 col2 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT ALL 27 * + - 39 + ( + 25 ) FROM tab0
----
-1028
-1028
-1028

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT ALL - COUNT( DISTINCT + - col1 ) - 38 col1 FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9909
SELECT ALL - COUNT ( DISTINCT + - col1 ) - 38 col1 FROM tab0 AS cor0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9910
SELECT ALL + - COUNT( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL + - COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
0

query II rowsort
SELECT col0, 8 * + col1 FROM tab1 AS cor0
----
51
112
85
40
91
376

query III rowsort
SELECT ALL * FROM tab0 WHERE + 81 / + - col2 > + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 68 col1 FROM tab2
----
-68

query I rowsort
SELECT ALL + 44 * 8 FROM tab1 AS cor0
----
352
352
352

query I rowsort
SELECT ALL - col0 * + - 98 AS col1 FROM tab0 AS cor0
----
1470
8526
9506

query I rowsort
SELECT - col1 * + col0 * - col1 * - + 28 * col1 FROM tab0 AS cor0
----
-223205220
-22559796
-2716

query I rowsort
SELECT ALL 87 FROM tab2 WHERE ( NOT 61 IS NULL )
----
87
87
87

query II rowsort
SELECT col0 AS col2, + col1 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT ALL 26 * + col2 FROM tab2
----
1040
1508
598

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT 80 > + 37 + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 50 - + 59 > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT + SUM( 23 ) AS col2 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-9922
SELECT + SUM ( 23 ) AS col2 FROM tab0
----
69

query I rowsort
SELECT - 35 * col0 AS col1 FROM tab2 AS cor0
----
-1610
-2240
-2625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * + - 45 col0 FROM tab0 AS cor0
----
-3645
-45
-945

query I rowsort
SELECT DISTINCT - 61 * - 88 AS col0 FROM tab2 AS cor0
----
5368

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN col2 AND NULL
----
15
87
97

query I rowsort
SELECT ALL + col2 * 4 + ( - col2 ) FROM tab1
----
177
204
288

query I rowsort
SELECT + ( col2 ) * 27 FROM tab2
----
1080
1566
621

query I rowsort
SELECT ALL + 75 * + col2 FROM tab2
----
1725
3000
4350

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 43 ) NOT BETWEEN NULL AND col1 + col2 * + col1
----

query I rowsort
SELECT + 79 * 74 AS col2 FROM tab0
----
5846
5846
5846

query I rowsort
SELECT col1 + + col0 * - col0 FROM tab1 WHERE NOT ( NULL ) = ( NULL )
----

query I rowsort
SELECT DISTINCT - 16 + - col0 AS col2 FROM tab1
----
-101
-107
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) col0 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - 58
----

query III rowsort
SELECT * FROM tab0 WHERE ( col0 ) IN ( + col2 )
----

query I rowsort
SELECT - 45 FROM tab2 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT 57 * 56 + col1 FROM tab1
----
3197
3206
3239

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9938
SELECT ALL COUNT( * ) DIV - 55 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9938
SELECT ALL COUNT ( * ) / - 55 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + 26 IN ( col1 * - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 63 * col1 AS col2 FROM tab2 WHERE NOT 64 IS NULL
----
-3213
-4221
-4851

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND ( - col2 + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( 68 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT - SUM( DISTINCT + 42 ) AS col0 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-9943
SELECT - SUM ( DISTINCT + 42 ) AS col0 FROM tab1
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9944
SELECT ALL MIN( ALL col1 ) DIV COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL MIN ( ALL col1 ) / COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT 46 * col1 + 97 FROM tab2
----
2443
3179
3639

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9946
SELECT + COUNT( - col0 ) DIV CAST( - AVG ( + col2 ) AS SIGNED ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9946
SELECT + COUNT ( - col0 ) / CAST ( - AVG ( + col2 ) AS INTEGER ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9947
SELECT ALL - CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9947
SELECT ALL - CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9948
SELECT DISTINCT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9948
SELECT DISTINCT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab1 WHERE 63 IS NULL
----

query I rowsort
SELECT - 63 - + col2 * col2 AS col0 FROM tab1
----
-3544
-4687
-9279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9951
SELECT + col2 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9951
SELECT + col2 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9952
SELECT - col1 DIV col2 - col1 * col1 AS col1 FROM tab0
----
-1
-443
-6562

skipif mysql # not compatible
query I rowsort label-9952
SELECT - col1 / col2 - col1 * col1 AS col1 FROM tab0
----
-1
-443
-6562

query I rowsort
SELECT - col2 * 9 AS col2 FROM tab1
----
-531
-612
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT - COUNT( * ) * + 95 AS col1 FROM tab2
----
-285

skipif mysql # not compatible
query I rowsort label-9954
SELECT - COUNT ( * ) * + 95 AS col1 FROM tab2
----
-285

query I rowsort
SELECT + col0 * + 59 FROM tab0
----
5133
5723
885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9956
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) * + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) * + COUNT ( * ) FROM tab1
----
9

query I rowsort
SELECT + 42 * - col0 AS col0 FROM tab0
----
-3654
-4074
-630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9958
SELECT DISTINCT - MIN( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9958
SELECT DISTINCT - MIN ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT ALL - MAX( ALL ( + 63 ) ) AS col2 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL - MAX ( ALL ( + 63 ) ) AS col2 FROM tab1 AS cor0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9960
SELECT DISTINCT + CAST( - 26 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL <= ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-9960
SELECT DISTINCT + CAST ( - 26 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL <= ( - col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9961
SELECT DISTINCT CAST( NULL AS DECIMAL ) * col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9961
SELECT DISTINCT CAST ( NULL AS REAL ) * col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT + COUNT( * ) + 17 FROM tab2 AS cor0 WHERE NOT + ( - col2 ) IS NULL
----
20

skipif mysql # not compatible
query I rowsort label-9962
SELECT + COUNT ( * ) + 17 FROM tab2 AS cor0 WHERE NOT + ( - col2 ) IS NULL
----
20

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 55 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 66 AS col1 FROM tab0
----
66

query I rowsort
SELECT ALL + ( - 30 ) FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT ALL + 96 * col1 AS col0 FROM tab1 AS cor0
----
1344
4512
480

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT NULL <= ( 18 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT DISTINCT MAX( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9968
SELECT DISTINCT MAX ( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9969
SELECT col1 DIV 67 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9969
SELECT col1 / 67 AS col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ( - col1 ) FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN ( - 35 * + col2 ) AND 43
----

query I rowsort
SELECT ALL + 45 - col2 AS col2 FROM tab1 AS cor0 WHERE NOT - 76 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT - MAX( col0 ) * 36 AS col1 FROM tab0 AS cor0 WHERE NOT ( 75 ) IN ( - 42 / + 35 )
----
-3492

skipif mysql # not compatible
query I rowsort label-9972
SELECT - MAX ( col0 ) * 36 AS col1 FROM tab0 AS cor0 WHERE NOT ( 75 ) IN ( - 42 / + 35 )
----
-3492

onlyif mysql # DIV for integer division: 
query I rowsort label-9973
SELECT + 62 DIV col1 FROM tab1 AS cor0
----
1
12
4

skipif mysql # not compatible
query I rowsort label-9973
SELECT + 62 / col1 FROM tab1 AS cor0
----
1
12
4

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT 79 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 79 AND NULL
----

query I rowsort
SELECT DISTINCT ( + ( - col1 ) ) * + 44 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 + + 9 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 2 AS col1 FROM tab2 cor0
----
2
2
2

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 44 >= NULL
----

query I rowsort
SELECT ALL + 22 - + col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 + + col1 * col0 FROM tab0 WHERE NULL IN ( 3 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9982
SELECT col2 + - CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9982
SELECT col2 + - CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT 1 + - - col2 * - col0 FROM tab2
----
-1057
-2559
-4349

query III rowsort
SELECT ALL * FROM tab0 WHERE + 18 + col0 IN ( + col0 )
----

query I rowsort
SELECT col2 * + col1 * col2 + - 50 AS col1 FROM tab2
----
123150
225338
26929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + - col0 + + 5 col0 FROM tab0
----
-72
37
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT DISTINCT + MAX( col1 ) * COUNT( * ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-9987
SELECT DISTINCT + MAX ( col1 ) * COUNT ( * ) FROM tab0
----
243

query I rowsort
SELECT - col1 + - + col2 + - col1 * col2 AS col0 FROM tab2
----
-1247
-3197
-4011

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9989
SELECT ALL - COUNT( * ) * - AVG ( DISTINCT - col0 ) * 53 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9989
SELECT ALL - COUNT ( * ) * - AVG ( DISTINCT - col0 ) * 53 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT 4 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT ALL + COUNT( * ) * + 66 AS col0 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-9991
SELECT ALL + COUNT ( * ) * + 66 AS col0 FROM tab2
----
198

query I rowsort
SELECT col0 * + + col0 AS col1 FROM tab1
----
2601
7225
8281

query II rowsort
SELECT ALL + col1 AS col0, + 15 FROM tab0
----
1
15
21
15
81
15

query I rowsort
SELECT col2 - col1 + + col0 - + col0 * - col1 FROM tab2
----
2364
4955
5091

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 88 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT DISTINCT 81 - + + 87 AS col1 FROM tab0
----
-6

query I rowsort
SELECT DISTINCT - ( - col0 ) FROM tab1 WHERE ( + 17 * col0 ) IN ( - col1 * col1 )
----

query I rowsort
SELECT 98 AS col0 FROM tab1 AS cor0 WHERE - 91 >= - 65 * col2
----
98
98
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 44 IN ( 52 )
----

