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)

onlyif mysql # aggregate syntax: 
query I rowsort label-0
SELECT + 94 * - + COUNT( * ) AS col0 FROM tab0
----
-282

skipif mysql # not compatible
query I rowsort label-0
SELECT + 94 * - + COUNT ( * ) AS col0 FROM tab0
----
-282

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

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

query I rowsort
SELECT ( 74 ) + - col0 FROM tab0 AS cor0
----
-13
-23
59

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

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

query II rowsort
SELECT 41, col2 * 26 AS col1 FROM tab0
----
41
1222
41
2574
41
260

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6
SELECT DISTINCT col1 * - + col0 + - - CAST( col2 AS SIGNED ) FROM tab0 cor0
----
-1168
-1817
2

skipif mysql # not compatible
query I rowsort label-6
SELECT DISTINCT col1 * - + col0 + - - CAST ( col2 AS INTEGER ) FROM tab0 cor0
----
-1168
-1817
2

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

query I rowsort
SELECT + - col0 * - 43 - + col1 + - - col0 FROM tab2 AS cor0
----
1973
2739
3233

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

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

query I rowsort
SELECT ALL + - col1 * + col2 + + col2 AS col2 FROM tab2 cor0
----
-1150
-3040
-3828

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN 54 AND - 24
----
-10
-47
-99

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

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

query I rowsort
SELECT 52 + + - 93 FROM tab2 cor0
----
-41
-41
-41

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 67 col2 FROM tab0
----
-20
-57
32

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT + SUM( + - ( + - 35 ) ) + + 95 FROM tab2
----
200

skipif mysql # not compatible
query I rowsort label-16
SELECT + SUM ( + - ( + - 35 ) ) + + 95 FROM tab2
----
200

query I rowsort
SELECT ALL - col1 + ( + col2 ) FROM tab1
----
21
54
82

query I rowsort
SELECT 38 + + - 7 + - col1 FROM tab0
----
-50
10
30

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 10 + col2 < NULL
----

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

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

query I rowsort
SELECT DISTINCT col1 * + ( - - 24 ) + - - 20 * - + col1 + + + col0 FROM tab0 AS cor0
----
101
171
339

query I rowsort
SELECT + ( - 4 ) * + col1 + + + col2 FROM tab2
----
-181
-210
-268

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

skipif mysql # not compatible
query I rowsort label-25
SELECT + ( + ( - 45 ) ) * + COUNT ( * ) FROM tab0
----
-135

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

skipif mysql # not compatible
query I rowsort label-26
SELECT ALL - CAST ( 56 AS INTEGER ) FROM tab2 AS cor0
----
-56
-56
-56

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 > + col0 + - 17
----
87
21
10
97
1
99

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-29
SELECT ALL - - 55 DIV - COUNT( * ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-29
SELECT ALL - - 55 / - COUNT ( * ) FROM tab0 AS cor0
----
-18

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-31
SELECT - col2 * - 58 AS col1, + 28 DIV col1 AS col0 FROM tab2
----
1334
0
2320
0
3364
0

skipif mysql # not compatible
query II rowsort label-31
SELECT - col2 * - 58 AS col1, + 28 / col1 AS col0 FROM tab2
----
1334
0
2320
0
3364
0

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT DISTINCT + SUM( DISTINCT + + 42 ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-32
SELECT DISTINCT + SUM ( DISTINCT + + 42 ) FROM tab1
----
42

query I rowsort
SELECT 44 * + 88 FROM tab0
----
3872
3872
3872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col0 FROM tab2 WHERE NOT + + col0 IS NOT NULL
----

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

query II rowsort
SELECT ALL - ( - col0 ) AS col0, col0 * + 65 * + col2 AS col0 FROM tab0 cor0
----
15
45825
87
56550
97
624195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - col0 * + + ( - + 8 ) + 77 * + col2 col2 FROM tab1 AS cor0
----
28200
62343
71484

query I rowsort
SELECT DISTINCT col2 - 19 * + + col1 FROM tab0 AS cor0
----
-1492
-389
80

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

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

query I rowsort
SELECT ALL + - col1 - + col0 + - - ( - + 47 ) FROM tab2 AS cor0
----
-144
-188
-189

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

query I rowsort
SELECT + 22 * + col0 + + + col2 FROM tab0 AS cor0
----
1924
2233
377

query I rowsort
SELECT + 26 * - col2 AS col2 FROM tab1 AS cor0
----
-1534
-1768
-2496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-44
SELECT DISTINCT - + col2 * col2 FROM tab1 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-44
SELECT DISTINCT - + col2 * col2 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
-3481
-4624
-9216

query I rowsort
SELECT DISTINCT col1 + + - 85 FROM tab0
----
-4
-64
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-46
SELECT ALL col0 DIV - + col2 + + col2 + - + col0 FROM tab2
----
-18
-25
-25

skipif mysql # not compatible
query I rowsort label-46
SELECT ALL col0 / - + col2 + + col2 + - + col0 FROM tab2
----
-18
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT ALL + - COUNT( * ) * 93 FROM tab1 cor0
----
-279

skipif mysql # not compatible
query I rowsort label-47
SELECT ALL + - COUNT ( * ) * 93 FROM tab1 cor0
----
-279

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

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

query II rowsort
SELECT col1 AS col1, + col1 * - ( 2 ) * col1 FROM tab2 AS cor0
----
51
-5202
67
-8978
77
-11858

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

query I rowsort
SELECT ALL - - col2 * - ( 45 ) AS col1 FROM tab0 AS cor0
----
-2115
-4455
-450

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

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

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

query I rowsort
SELECT ALL + col2 * + - 68 FROM tab0 AS cor0
----
-3196
-6732
-680

onlyif mysql # aggregate syntax: 
query II rowsort label-56
SELECT DISTINCT + COUNT( * ) * - 21, + 52 * - COUNT( * ) FROM tab2 cor0 WHERE NULL = NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-56
SELECT DISTINCT + COUNT ( * ) * - 21, + 52 * - COUNT ( * ) FROM tab2 cor0 WHERE NULL = NULL
----
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-57
SELECT ALL + + 84 DIV + + SUM( DISTINCT + - 86 ) * 99 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-57
SELECT ALL + + 84 / + + SUM ( DISTINCT + - 86 ) * 99 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - + col1 * + col0 * + col1 + 64 + + col0 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT - COUNT( DISTINCT - 88 ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-59
SELECT - COUNT ( DISTINCT - 88 ) AS col2 FROM tab2
----
-1

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

query I rowsort
SELECT DISTINCT + ( col0 ) + + col1 FROM tab0
----
108
96
98

query I rowsort
SELECT ALL - 16 FROM tab2, tab1 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

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

skipif mysql # not compatible
query I rowsort label-63
SELECT ALL + SUM ( ALL 89 ) FROM tab1
----
267

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

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

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

query I rowsort
SELECT ALL + 30 AS col0 FROM tab2 WHERE NOT NULL >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 + - 34 col2 FROM tab0
----
176
3773
65

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

skipif mysql # not compatible
query I rowsort label-68
SELECT DISTINCT COUNT ( * ) * - 47 AS col0 FROM tab1
----
-141

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-71
SELECT + CAST( + col2 AS SIGNED ) - col1 AS col1 FROM tab2
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-71
SELECT + CAST ( + col2 AS INTEGER ) - col1 AS col1 FROM tab2
----
-28
-37
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-72
SELECT ALL col2 DIV + ( - CAST( + col0 AS SIGNED ) ) FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL col2 / + ( - CAST ( + col0 AS INTEGER ) ) FROM tab1
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-73
SELECT 89 + + CAST( NULL AS SIGNED ) / col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-73
SELECT 89 + + CAST ( NULL AS INTEGER ) / col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 - 52 AS col1 FROM tab1
----
-111
-120
-148

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

onlyif mysql # DIV for integer division: 
query I rowsort label-76
SELECT DISTINCT - 12 * - 13 + - col0 DIV 53 FROM tab0
----
155
156

skipif mysql # not compatible
query I rowsort label-76
SELECT DISTINCT - 12 * - 13 + - col0 / 53 FROM tab0
----
155
156

query I rowsort
SELECT DISTINCT - ( - 84 ) AS col1 FROM tab2
----
84

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 * col1 + 53 BETWEEN col0 * + 58 + 77 AND ( - col0 / - ( 49 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-79
SELECT + 18 * + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) + - 82 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-79
SELECT + 18 * + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 82 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 81 + - 44 * - col0 AS col1 FROM tab1
----
2325
3821
4085

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( col0 ) IS NOT NULL
----

query I rowsort
SELECT - 87 * col2 AS col1 FROM tab0
----
-4089
-8613
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT + COUNT( * ) - + 4 AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-83
SELECT + COUNT ( * ) - + 4 AS col2 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT 14 AS col2 FROM tab1 WHERE NOT col1 / 45 IS NULL
----
14

query I rowsort
SELECT - 60 * col2 AS col1 FROM tab0
----
-2820
-5940
-600

query I rowsort
SELECT - 77 + col2 FROM tab0
----
-30
-67
22

query I rowsort
SELECT 67 + 50 FROM tab1
----
117
117
117

query III rowsort
SELECT * FROM tab2 WHERE col0 <> ( col0 )
----

query I rowsort
SELECT col1 / - col2 AS col0 FROM tab0 WHERE 15 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT - ( - SUM( - col0 ) ) col1 FROM tab1
----
-227

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

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT ALL - SUM( ( 80 ) ) AS col1 FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-91
SELECT ALL - SUM ( ( 80 ) ) AS col1 FROM tab1
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT + MAX( DISTINCT col0 ) AS col1 FROM tab0 cor0 WHERE NOT 91 IS NULL
----
97

skipif mysql # not compatible
query I rowsort label-92
SELECT + MAX ( DISTINCT col0 ) AS col1 FROM tab0 cor0 WHERE NOT 91 IS NULL
----
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 ) NOT BETWEEN - col1 AND col1 * - col0 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab2 WHERE NOT - col0 / 6 IN ( - col2 + col1 * 67 )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT 73 * + COUNT( * ) FROM tab2
----
219

skipif mysql # not compatible
query I rowsort label-96
SELECT 73 * + COUNT ( * ) FROM tab2
----
219

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * col0 < + 88
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 54 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 * col1 <> 32
----

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

query I rowsort
SELECT + col0 * 76 + + col1 FROM tab1 AS cor0
----
3890
6465
6963

onlyif mysql # DIV for integer division: 
query I rowsort label-104
SELECT - col0 DIV col1 + 4 FROM tab1 cor0
----
-13
1
3

skipif mysql # not compatible
query I rowsort label-104
SELECT - col0 / col1 + 4 FROM tab1 cor0
----
-13
1
3

query I rowsort
SELECT DISTINCT col2 + 89 FROM tab2 AS cor0 WHERE ( - col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab1 WHERE + 22 / + 51 BETWEEN + 95 AND ( + 39 / 54 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE NOT + ( + col2 ) * - 61 + col0 * - 57 NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-107
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE NOT + ( + col2 ) * - 61 + col0 * - 57 NOT IN ( col1 )
----
0

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

skipif mysql # not compatible
query I rowsort label-108
SELECT MIN ( + 82 ) AS col0 FROM tab1
----
82

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

query III rowsort
SELECT * FROM tab1 WHERE - col0 * - 14 + col0 / + 93 NOT BETWEEN + ( col0 ) / - col0 AND NULL
----

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

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

skipif mysql # not compatible
query III rowsort label-112
SELECT * FROM tab2 AS cor0 WHERE ( + CAST ( col2 AS INTEGER ) ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-113
SELECT DISTINCT - COUNT( ALL + CAST( 58 AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-113
SELECT DISTINCT - COUNT ( ALL + CAST ( 58 AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

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

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

query I rowsort
SELECT ALL + + col1 + + col0 * 61 AS col1 FROM tab0 AS cor0
----
5328
5918
996

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT - 45 + - + SUM( + col0 ) AS col1 FROM tab2 AS cor0
----
-230

skipif mysql # not compatible
query I rowsort label-116
SELECT - 45 + - + SUM ( + col0 ) AS col1 FROM tab2 AS cor0
----
-230

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-118
SELECT 64 + + col0 + + - col0 + + col2 DIV - CAST( - 1 AS SIGNED ) AS col2 FROM tab2
----
104
122
87

skipif mysql # not compatible
query I rowsort label-118
SELECT 64 + + col0 + + - col0 + + col2 / - CAST ( - 1 AS INTEGER ) AS col2 FROM tab2
----
104
122
87

query I rowsort
SELECT DISTINCT - ( + + col1 ) + - col1 FROM tab1
----
-10
-28
-94

query II rowsort
SELECT DISTINCT + col2, col0 * col1 FROM tab2
----
23
2346
40
4928
58
5025

query I rowsort
SELECT ALL - 78 + 96 AS col1 FROM tab1
----
18
18
18

query I rowsort
SELECT ALL - col0 + + col1 + + 83 * col2 AS col0 FROM tab0 AS cor0
----
3967
764
8121

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

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

query I rowsort
SELECT DISTINCT - col0 - - ( 91 ) FROM tab1 AS cor0 WHERE NOT ( - 80 ) IS NOT NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) - + + col2 + 96 col1 FROM tab1 AS cor0
----
-14
-19
32

query I rowsort
SELECT + - col2 * - + col2 AS col1 FROM tab1 cor0
----
3481
4624
9216

query II rowsort
SELECT ALL ( + 29 ), col1 + + 43 AS col0 FROM tab1
----
29
48
29
57
29
90

query II rowsort
SELECT DISTINCT + col2 * + 56 AS col1, - 56 FROM tab0 AS cor0
----
2632
-56
5544
-56
560
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT ALL SUM( ALL - col0 ) AS col2 FROM tab0 cor0 WHERE NOT ( NOT ( - - 25 ) NOT IN ( col2 / col2 ) )
----
-199

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL SUM ( ALL - col0 ) AS col2 FROM tab0 cor0 WHERE NOT ( NOT ( - - 25 ) NOT IN ( col2 / col2 ) )
----
-199

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

query I rowsort
SELECT ALL 54 * + - 95 * col2 AS col1 FROM tab1
----
-302670
-348840
-492480

query I rowsort
SELECT ALL col0 * 63 FROM tab1
----
3213
5355
5733

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT ALL + COUNT( * ) * 72 FROM tab1 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-139
SELECT ALL + COUNT ( * ) * 72 FROM tab1 AS cor0
----
216

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 52 BETWEEN ( + col0 ) AND ( NULL )
----

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

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

query II rowsort
SELECT - col2 + col1, + col1 AS col2 FROM tab1
----
-21
47
-54
5
-82
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 16 * col2 + col2 col1 FROM tab0
----
1683
170
799

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

query I rowsort
SELECT ( + 87 ) + + col0 AS col2 FROM tab1
----
138
172
178

query I rowsort
SELECT DISTINCT + 22 + col1 + - col2 AS col2 FROM tab0
----
-76
33
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-148
SELECT ALL + col2 + - CAST( + col0 AS SIGNED ) * - col0 * + + col1 FROM tab2
----
107939
315432
376933

skipif mysql # not compatible
query I rowsort label-148
SELECT ALL + col2 + - CAST ( + col0 AS INTEGER ) * - col0 * + + col1 FROM tab2
----
107939
315432
376933

query I rowsort
SELECT ( + col2 ) + + 24 FROM tab1 AS cor0
----
120
83
92

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

query I rowsort
SELECT - + col1 + col0 + col2 FROM tab0 WHERE col0 IS NOT NULL
----
-19
195
76

query I rowsort
SELECT ALL - + col2 * - - col1 + + 53 AS col0 FROM tab2 WHERE 81 IS NOT NULL AND ( NULL ) >= + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-153
SELECT DISTINCT ( 44 ), - SUM( DISTINCT + 12 ) * - 88 AS col2 FROM tab0
----
44
1056

skipif mysql # not compatible
query II rowsort label-153
SELECT DISTINCT ( 44 ), - SUM ( DISTINCT + 12 ) * - 88 AS col2 FROM tab0
----
44
1056

query I rowsort
SELECT + 79 - col0 FROM tab2
----
15
33
4

query I rowsort
SELECT DISTINCT 71 AS col0 FROM tab2 AS cor0 WHERE col2 NOT IN ( - col1 )
----
71

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 + - - col2 >= NULL
----

query I rowsort
SELECT col0 FROM tab2 WHERE NOT - + 92 + - - 78 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT ALL MAX( + 64 ) AS col0 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-158
SELECT ALL MAX ( + 64 ) AS col0 FROM tab0
----
64

query II rowsort
SELECT + col2 * - + col2 * col2, 45 * + col0 AS col1 FROM tab2
----
-12167
2070
-195112
3375
-64000
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT COUNT( * ) col0 FROM tab1 WHERE NOT - 26 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-160
SELECT COUNT ( * ) col0 FROM tab1 WHERE NOT - 26 IS NULL
----
3

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 7 + + col0 = NULL
----

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

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

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

query I rowsort
SELECT ALL - col2 FROM tab0 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( NOT ( - col1 ) <= NULL ) )
----

query I rowsort
SELECT - col0 + + 29 FROM tab0 cor0
----
-58
-68
14

query I rowsort
SELECT DISTINCT - - ( + col2 ) FROM tab1 cor0
----
59
68
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 47 <= + col0
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT + COUNT( * ) + - MAX( col0 ) - + + COUNT( DISTINCT col1 ) - - ( 19 ) * ( 49 ) - + MAX( ALL col0 ) * 14 AS col1 FROM tab0 AS cor0
----
-524

skipif mysql # not compatible
query I rowsort label-170
SELECT + COUNT ( * ) + - MAX ( col0 ) - + + COUNT ( DISTINCT col1 ) - - ( 19 ) * ( 49 ) - + MAX ( ALL col0 ) * 14 AS col1 FROM tab0 AS cor0
----
-524

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT + - COUNT( * ) + + - MIN( 5 ) AS col1 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-171
SELECT + - COUNT ( * ) + + - MIN ( 5 ) AS col1 FROM tab0 AS cor0
----
-8

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

onlyif mysql # DIV for integer division: 
query I rowsort label-173
SELECT 30 DIV + col2 AS col1 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-173
SELECT 30 / + col2 AS col1 FROM tab0 AS cor0
----
0
0
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 30 NOT BETWEEN + + col0 + + ( col1 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-175
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - col1 * - CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-175
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - col1 * - CAST ( col2 AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-176
SELECT DISTINCT 91 + - COUNT( CAST( + + col1 AS DECIMAL ) ) FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-176
SELECT DISTINCT 91 + - COUNT ( CAST ( + + col1 AS REAL ) ) FROM tab1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT ALL 9 + COUNT( * ) AS col0 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-177
SELECT ALL 9 + COUNT ( * ) AS col0 FROM tab0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-178
SELECT ( ( col1 ) ) * + - col1 + - - 85 / - - CAST( 0 AS SIGNED ) - - 13 / ( + 97 ) FROM tab2 WHERE - - 68 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL handles NULL in DIV/0 by differently
query I rowsort label-178
SELECT ( ( col1 ) ) * + - col1 + - - 85 / - - CAST ( 0 AS INTEGER ) - - 13 / ( + 97 ) FROM tab2 WHERE - - 68 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT ALL MAX( + col0 ) + + 7 FROM tab0
----
104

skipif mysql # not compatible
query I rowsort label-179
SELECT ALL MAX ( + col0 ) + + 7 FROM tab0
----
104

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE col2 IN ( 52 + col1, - 5 - - ( col0 ) * 50 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-181
SELECT + 8, - col1 DIV - 31 AS col1 FROM tab2
----
8
1
8
2
8
2

skipif mysql # not compatible
query II rowsort label-181
SELECT + 8, - col1 / - 31 AS col1 FROM tab2
----
8
1
8
2
8
2

query I rowsort
SELECT DISTINCT - col0 + - - col0 AS col1 FROM tab2
----
0

query I rowsort
SELECT - - 46 - + 56 AS col0 FROM tab0 AS cor0
----
-10
-10
-10

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col2 * 74 IN ( + ( - col0 ) * + 17, - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

query II rowsort
SELECT - + 74 AS col1, - 48 FROM tab0 WHERE + 23 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-189
SELECT DISTINCT COUNT( * ) * + - 47 AS col2, + 38 * - - 93 FROM tab2
----
-141
3534

skipif mysql # not compatible
query II rowsort label-189
SELECT DISTINCT COUNT ( * ) * + - 47 AS col2, + 38 * - - 93 FROM tab2
----
-141
3534

query I rowsort
SELECT ALL col0 * + col2 - + - 97 AS col2 FROM tab1 AS cor0
----
4993
5112
6285

query II rowsort
SELECT + - 93 AS col0, - col0 * - col0 + col1 AS col2 FROM tab0 cor0
----
-93
306
-93
7590
-93
9410

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

query I rowsort
SELECT DISTINCT + 32 * + - ( + col1 ) FROM tab2 AS cor0
----
-1632
-2144
-2464

query I rowsort
SELECT DISTINCT - 63 * + + 8 FROM tab2 AS cor0
----
-504

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

query I rowsort
SELECT DISTINCT 10 AS col0 FROM tab0, tab1 AS cor0
----
10

query I rowsort
SELECT - col2 * - + col1 + - - ( + col0 ) FROM tab1 WHERE NOT - 59 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL 30 FROM tab1 AS cor0 WHERE ( NULL ) <> col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-200
SELECT + CAST( + col0 AS SIGNED ) AS col1, - col2 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

skipif mysql # not compatible
query II rowsort label-200
SELECT + CAST ( + col0 AS INTEGER ) AS col1, - col2 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-202
SELECT DISTINCT + 60 col2, CAST( NULL AS SIGNED ) FROM tab1
----
60
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-202
SELECT DISTINCT + 60 col2, CAST ( NULL AS INTEGER ) FROM tab1
----
60
NULL

query II rowsort
SELECT + 16, col0 FROM tab2
----
16
46
16
64
16
75

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

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

query II rowsort
SELECT DISTINCT col1 + + col0 AS col1, col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND col2 / - 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT ALL - COUNT( * ) + - - 48 AS col0 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-206
SELECT ALL - COUNT ( * ) + - - 48 AS col0 FROM tab0 AS cor0
----
45

query I rowsort
SELECT ALL col2 * - 5 + + 61 - + 19 AS col2 FROM tab1
----
-253
-298
-438

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

skipif mysql # not compatible
query I rowsort label-208
SELECT CAST ( NULL AS INTEGER ) * - col1 + - 46 / + + 73 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 91 * - col1 + - col0 AS col1 FROM tab2
----
-4687
-6172
-7071

query I rowsort
SELECT + col2 + col0 - - - 58 FROM tab1
----
101
86
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-211
SELECT ALL + COUNT( * ) DIV + 19 + - 11 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-211
SELECT ALL + COUNT ( * ) / + 19 + - 11 FROM tab0
----
-11

query I rowsort
SELECT ALL col0 + + + col1 * - 46 + col2 * + col0 FROM tab0
----
-3006
-9
9654

query I rowsort
SELECT - 49 * + col0 + - col2 FROM tab2
----
-2277
-3176
-3733

query III rowsort
SELECT ALL * FROM tab1 WHERE - 79 * + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * - 52 * col2 AS col0 FROM tab0 AS cor0
----
114868
509652
5200

query I rowsort
SELECT DISTINCT + - col0 - + - 27 FROM tab0 cor0
----
-60
-70
12

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col0 = + 71
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT ALL 35 * + 9 AS col2 FROM tab2 AS cor0
----
315
315
315

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT DISTINCT - + SUM( ALL - + col2 ) * COUNT( * ) + + - 98 * - + 72 FROM tab1 cor0
----
7725

skipif mysql # not compatible
query I rowsort label-220
SELECT DISTINCT - + SUM ( ALL - + col2 ) * COUNT ( * ) + + - 98 * - + 72 FROM tab1 cor0
----
7725

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

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

skipif mysql # not compatible
query II rowsort label-222
SELECT ALL + CAST ( NULL AS INTEGER ), + 2 AS col2 FROM tab1
----
NULL
2
NULL
2
NULL
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-223
SELECT - CAST( - - col0 AS SIGNED ) AS col1 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-223
SELECT - CAST ( - - col0 AS INTEGER ) AS col1 FROM tab0
----
-15
-87
-97

query II rowsort
SELECT + 11, - col0 AS col0 FROM tab1
----
11
-51
11
-85
11
-91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-225
SELECT 30 * MAX( CAST( NULL AS DECIMAL ) ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-225
SELECT 30 * MAX ( CAST ( NULL AS REAL ) ) col1 FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-227
SELECT DISTINCT 38 * + + 90, 49 * - + COUNT( * ) * - ( + + 50 ) + + 18 AS col0 FROM tab2
----
3420
7368

skipif mysql # not compatible
query II rowsort label-227
SELECT DISTINCT 38 * + + 90, 49 * - + COUNT ( * ) * - ( + + 50 ) + + 18 AS col0 FROM tab2
----
3420
7368

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT 9 * - MIN( + col2 ) AS col1 FROM tab2
----
-207

skipif mysql # not compatible
query I rowsort label-228
SELECT 9 * - MIN ( + col2 ) AS col1 FROM tab2
----
-207

onlyif mysql # aggregate syntax: 
query II rowsort label-229
SELECT + 1 AS col2, SUM( + col0 ) AS col0 FROM tab1
----
1
227

skipif mysql # not compatible
query II rowsort label-229
SELECT + 1 AS col2, SUM ( + col0 ) AS col0 FROM tab1
----
1
227

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

query I rowsort
SELECT ALL + ( 70 ) * col1 AS col0 FROM tab1
----
3290
350
980

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= - 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT SUM( ALL ( ( - 61 ) ) ) FROM tab0 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-233
SELECT SUM ( ALL ( ( - 61 ) ) ) FROM tab0 AS cor0
----
-183

query II rowsort
SELECT col2, - col2 * - col2 FROM tab1 AS cor0
----
59
3481
68
4624
96
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + - 19 ) col0 FROM tab1 AS cor0
----
-19
-19
-19

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

skipif mysql # not compatible
query I rowsort label-236
SELECT ALL col1 / col1 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * - 12 BETWEEN - + ( + + 43 ) AND - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-238
SELECT DISTINCT - 21 DIV col0 + - col0 col1 FROM tab0 AS cor0
----
-16
-87
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-238
SELECT DISTINCT - 21 / col0 + - col0 col1 FROM tab0 AS cor0
----
-16
-87
-97

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

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

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

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

query I rowsort
SELECT - + col1 * col1 + - - 11 FROM tab0 AS cor0
----
-430
-6550
10

query II rowsort
SELECT + 12, col0 AS col0 FROM tab2
----
12
46
12
64
12
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-244
SELECT ALL + 16 + + 54 DIV - COUNT( * ) + - MAX( + col1 ) FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-244
SELECT ALL + 16 + + 54 / - COUNT ( * ) + - MAX ( + col1 ) FROM tab1
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-245
SELECT ALL - col0 DIV - col1 - - col2 AS col0 FROM tab0
----
14
196
47

skipif mysql # not compatible
query I rowsort label-245
SELECT ALL - col0 / - col1 - - col2 AS col0 FROM tab0
----
14
196
47

query I rowsort
SELECT - col0 - - 54 FROM tab0
----
-33
-43
39

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 30 < ( - col0 + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 92 + ( + 86 ) FROM tab0 cor0
----
178
178
178

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

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

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

query I rowsort
SELECT DISTINCT 3 * - col1 AS col1 FROM tab0 AS cor0
----
-243
-3
-63

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

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

query I rowsort
SELECT + + 59 * col0 + + col1 AS col1 FROM tab0 AS cor0
----
5154
5724
966

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col1 * + + 5 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-257
SELECT - + ( + 27 ) + CAST( NULL AS SIGNED ) * - + 59 AS col0 FROM tab0 WHERE NOT NULL <= col0 * col0
----

skipif mysql # not compatible
query I rowsort label-257
SELECT - + ( + 27 ) + CAST ( NULL AS INTEGER ) * - + 59 AS col0 FROM tab0 WHERE NOT NULL <= col0 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT - 90 * + - COUNT( * ) FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-258
SELECT - 90 * + - COUNT ( * ) FROM tab0
----
270

query I rowsort
SELECT ALL + ( col2 ) * - col1 AS col0 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT ALL + 83 * + 39 * + 84 * + col1 FROM tab0
----
22024548
271908
5710068

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

query I rowsort
SELECT ( - + ( + 46 ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT - - 17 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query II rowsort
SELECT 73, 63 AS col1 FROM tab1
----
73
63
73
63
73
63

query I rowsort
SELECT 16 * - col0 * - + col1 AS col2 FROM tab0
----
1552
19440
29232

query I rowsort
SELECT DISTINCT - - 58 - - + col0 FROM tab2 AS cor0
----
104
122
133

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

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

query I rowsort
SELECT - 98 - - col1 AS col0 FROM tab2 AS cor0
----
-21
-31
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 - - - 17 col1 FROM tab2 AS cor0
----
23
41
6

query II rowsort
SELECT ALL + 40 AS col0, col0 AS col1 FROM tab1 cor0 WHERE NOT + ( - 18 ) NOT IN ( col0 * + col2 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( + col0 ) * - 70 * - col2 + col0 col2 FROM tab2 cor0
----
179264
304575
74106

query I rowsort
SELECT - col0 + col0 * + + col2 FROM tab0
----
690
783
9506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-274
SELECT ( col1 ) + - col2 col2 FROM tab1 WHERE NULL <> - CAST( 96 AS SIGNED ) * + 31 * col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-274
SELECT ( col1 ) + - col2 col2 FROM tab1 WHERE NULL <> - CAST ( 96 AS INTEGER ) * + 31 * col0
----

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

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

query I rowsort
SELECT ALL 48 * - col1 + - col2 FROM tab0
----
-1018
-147
-3935

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-277
SELECT CAST( col2 AS SIGNED ) + + col2 col2 FROM tab0
----
198
20
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-277
SELECT CAST ( col2 AS INTEGER ) + + col2 col2 FROM tab0
----
198
20
94

query I rowsort
SELECT + col1 + 80 * - col0 + - - 32 FROM tab1
----
-4034
-6763
-7201

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 * + 79 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-282
SELECT ( + 88 ) DIV col0 * + 40 FROM tab0
----
0
200
40

skipif mysql # not compatible
query I rowsort label-282
SELECT ( + 88 ) / col0 * + 40 FROM tab0
----
0
200
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-283
SELECT + CAST( + 74 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

skipif mysql # not compatible
query I rowsort label-283
SELECT + CAST ( + 74 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

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

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

query I rowsort
SELECT col0 * 83 AS col0 FROM tab1 AS cor0 WHERE NOT - ( + ( + col1 ) ) IS NULL
----
4233
7055
7553

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

skipif mysql # not compatible
query II rowsort label-286
SELECT ALL - COUNT ( * ) AS col2, + COUNT ( * ) - + 48 AS col2 FROM tab2 cor0
----
-3
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 + + col0 col2 FROM tab2 AS cor0
----
136
154
165

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

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

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

query I rowsort
SELECT ALL + 11 * + col1 AS col0 FROM tab2
----
561
737
847

query I rowsort
SELECT + ( + col1 ) * 90 FROM tab2
----
4590
6030
6930

query I rowsort
SELECT - col0 * + 94 FROM tab2
----
-4324
-6016
-7050

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT DISTINCT COUNT( * ) + - - 58 FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-293
SELECT DISTINCT COUNT ( * ) + - - 58 FROM tab1
----
61

query I rowsort
SELECT DISTINCT - 77 + + col0 FROM tab0 AS cor0
----
-62
10
20

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

query I rowsort
SELECT + col1 + 78 FROM tab1
----
125
83
92

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

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

query I rowsort
SELECT 64 * - col1 * - - col1 + + - 9 AS col1 FROM tab1 AS cor0
----
-12553
-141385
-1609

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, 1 col1 FROM tab1 AS cor0
----
59
1
68
1
96
1

query I rowsort
SELECT - 77 * - + col0 AS col1 FROM tab2 AS cor0
----
3542
4928
5775

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT DISTINCT - - MIN( - col0 ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-301
SELECT DISTINCT - - MIN ( - col0 ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-273

query I rowsort
SELECT col0 * - 45 FROM tab2 AS cor0
----
-2070
-2880
-3375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-303
SELECT - ( - 88 ) DIV + - SUM( DISTINCT + + 40 ) AS col2 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-303
SELECT - ( - 88 ) / + - SUM ( DISTINCT + + 40 ) AS col2 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT ALL 57 * + + col1 * col1 AS col1 FROM tab0 AS cor0
----
25137
373977
57

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 11 + + col2 col1 FROM tab2
----
12
29
47

query III rowsort
SELECT * FROM tab2 WHERE NULL > 35
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-309
SELECT + COUNT( * ) AS col1, 55 FROM tab0
----
3
55

skipif mysql # not compatible
query II rowsort label-309
SELECT + COUNT ( * ) AS col1, 55 FROM tab0
----
3
55

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

query II rowsort
SELECT ALL - ( - col0 ) AS col0, + 41 FROM tab2 AS cor0
----
46
41
64
41
75
41

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT ALL - - MAX( ALL - col2 ) FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-313
SELECT ALL - - MAX ( ALL - col2 ) FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----
NULL

query I rowsort
SELECT + + col2 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND - - 26
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT COUNT( * ) * COUNT( - col0 ) + - COUNT( * ) + - + ( - + 42 ) * + - 88 * SUM( ALL - col0 ) + + COUNT( * ) AS col2 FROM tab1 WHERE NOT + col2 / col2 * col1 <= 60
----
NULL

skipif mysql # not compatible
query I rowsort label-315
SELECT COUNT ( * ) * COUNT ( - col0 ) + - COUNT ( * ) + - + ( - + 42 ) * + - 88 * SUM ( ALL - col0 ) + + COUNT ( * ) AS col2 FROM tab1 WHERE NOT + col2 / col2 * col1 <= 60
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT ALL COUNT( * ) + - 14 FROM tab1, tab0 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-317
SELECT ALL COUNT ( * ) + - 14 FROM tab1, tab0 cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT + 71 * 54 + + 32 * + + 20 * COUNT( * ) col1 FROM tab2 AS cor0
----
5754

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-318
SELECT + 71 * 54 + + 32 * + + 20 * COUNT ( * ) col1 FROM tab2 AS cor0
----
5754

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 ) > - col1
----

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

skipif mysql # not compatible
query I rowsort label-320
SELECT ALL + col1 / CAST ( NULL AS INTEGER ) + + - 8 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - + 8 * - col0 / col0 * - - col0 + - col2, col2 * + - col1 )
----

query I rowsort
SELECT DISTINCT + col2 + - 69 * + col2 FROM tab1
----
-4012
-4624
-6528

query I rowsort
SELECT 22 + ( + col0 ) * - 60 FROM tab1
----
-3038
-5078
-5438

query II rowsort
SELECT ALL - 6 * - col2 + + col0, col0 - + 8 AS col2 FROM tab0
----
147
79
297
7
691
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-325
SELECT 21 DIV + - ( - 29 ) * ( - SUM( col1 ) ) + - MAX( ALL + - col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-325
SELECT 21 / + - ( - 29 ) * ( - SUM ( col1 ) ) + - MAX ( ALL + - col1 ) FROM tab1
----
5

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 88 + ( - 3 ) AS col0, 82 col2 FROM tab2
----
85
82

query I rowsort
SELECT ( - - col1 ) * - 93 + 63 AS col0 FROM tab2
----
-4680
-6168
-7098

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-332
SELECT DISTINCT - - MIN( ALL + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-332
SELECT DISTINCT - - MIN ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 3 col2 FROM tab0
----
12
84
94

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

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

query I rowsort
SELECT DISTINCT 60 - - + col0 + - 59 AS col2 FROM tab1 AS cor0
----
52
86
92

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT COUNT( * ) FROM tab2 cor0 WHERE col1 * + col1 * - 97 NOT BETWEEN NULL AND 79 - 86
----
0

skipif mysql # not compatible
query I rowsort label-336
SELECT COUNT ( * ) FROM tab2 cor0 WHERE col1 * + col1 * - 97 NOT BETWEEN NULL AND 79 - 86
----
0

query I rowsort
SELECT DISTINCT + ( 4 ) - col2 FROM tab0 AS cor0
----
-43
-6
-95

query I rowsort
SELECT ALL - - 69 * + col1 * - 4 FROM tab0 AS cor0
----
-22356
-276
-5796

query I rowsort
SELECT DISTINCT + + col2 - - col1 + + - col2 AS col0 FROM tab0 cor0
----
1
21
81

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

query I rowsort
SELECT ALL + col1 * + + col1 AS col0 FROM tab2 AS cor0
----
2601
4489
5929

query I rowsort
SELECT col0 * + col2 * 62 AS col0 FROM tab1
----
303552
310930
383656

onlyif mysql # DIV for integer division: 
query I rowsort label-343
SELECT DISTINCT col0 DIV - - 2 FROM tab1
----
25
42
45

skipif mysql # not compatible
query I rowsort label-343
SELECT DISTINCT col0 / - - 2 FROM tab1
----
25
42
45

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

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

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

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL + col1 / + ( + 96 ) FROM tab0
----
0
0
0

query I rowsort
SELECT ( 91 ) AS col1 FROM tab2
----
91
91
91

query I rowsort
SELECT col1 * + 24 AS col2 FROM tab2
----
1224
1608
1848

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT ALL SUM( DISTINCT + 30 ) FROM tab0 cor0
----
30

skipif mysql # not compatible
query I rowsort label-350
SELECT ALL SUM ( DISTINCT + 30 ) FROM tab0 cor0
----
30

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

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

query I rowsort
SELECT DISTINCT - col0 * col2 * ( + col1 ) + - + ( - + 5 ) FROM tab0
----
-18265
-57100
-9598

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

onlyif mysql # DIV for integer division: 
query I rowsort label-354
SELECT - 8 + + col1 DIV + col0 * - col1 * - col0 FROM tab1 AS cor0
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-354
SELECT - 8 + + col1 / + col0 * - col1 * - col0 FROM tab1 AS cor0
----
-8
-8
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-355
SELECT + 12 + + - CAST( - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
109
27
99

skipif mysql # not compatible
query I rowsort label-355
SELECT + 12 + + - CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
109
27
99

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT COUNT( * ) + 45 FROM tab0 cor0
----
48

skipif mysql # not compatible
query I rowsort label-356
SELECT COUNT ( * ) + 45 FROM tab0 cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-357
SELECT ALL SUM( col1 ) + + 0 + - 94 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-357
SELECT ALL SUM ( col1 ) + + 0 + - 94 FROM tab0 AS cor0
----
9

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

skipif mysql # not compatible
query I rowsort label-358
SELECT COUNT ( * ) * - MIN ( DISTINCT + + col1 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT ALL 39 + - COUNT( * ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-359
SELECT ALL 39 + - COUNT ( * ) FROM tab1
----
36

query I rowsort
SELECT DISTINCT col2 * - + col2 + col2 FROM tab1
----
-3422
-4556
-9120

onlyif mysql # aggregate syntax: 
query I rowsort label-361
SELECT - COUNT( * ) FROM tab0 WHERE NULL < + col1
----
0

skipif mysql # not compatible
query I rowsort label-361
SELECT - COUNT ( * ) FROM tab0 WHERE NULL < + col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-362
SELECT ALL + + MAX( - 92 ) + + 98 + + - 9 FROM tab0 WHERE NULL BETWEEN + CAST( 57 AS SIGNED ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-362
SELECT ALL + + MAX ( - 92 ) + + 98 + + - 9 FROM tab0 WHERE NULL BETWEEN + CAST ( 57 AS INTEGER ) AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 46 * col0 col1 FROM tab0 AS cor0
----
-32430
-40020
-441738

query I rowsort
SELECT DISTINCT - - col1 * + + col1 * + 83 - + - col2 FROM tab0 AS cor0
----
182
36613
544610

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT + + 86 * + MIN( DISTINCT - 71 ) + 39 AS col1 FROM tab2 AS cor0
----
-6067

skipif mysql # not compatible
query I rowsort label-365
SELECT + + 86 * + MIN ( DISTINCT - 71 ) + 39 AS col1 FROM tab2 AS cor0
----
-6067

query II rowsort
SELECT + + 83 + + col2 AS col1, + col0 FROM tab2 AS cor0
----
106
46
123
64
141
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 * 57 >= ( + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-368
SELECT DISTINCT + COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-368
SELECT DISTINCT + COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT + - 79 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

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

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

query I rowsort
SELECT - - 12 AS col1 FROM tab0 AS cor0
----
12
12
12

query I rowsort
SELECT DISTINCT - 8 * + 65 * 56 FROM tab2 AS cor0
----
-29120

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT DISTINCT - COUNT( * ) * - - 98 AS col2 FROM tab2 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-373
SELECT DISTINCT - COUNT ( * ) * - - 98 AS col2 FROM tab2 AS cor0
----
-294

query I rowsort
SELECT + + col2 * 57 AS col1 FROM tab2 cor0
----
1311
2280
3306

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

query I rowsort
SELECT + 73 * ( + - 33 ) AS col0 FROM tab0 AS cor0
----
-2409
-2409
-2409

onlyif mysql # DIV for integer division: 
query I rowsort label-377
SELECT DISTINCT ( + col1 ) DIV - - 37 + - + col0 FROM tab0 AS cor0
----
-13
-87
-97

skipif mysql # not compatible
query I rowsort label-377
SELECT DISTINCT ( + col1 ) / - - 37 + - + col0 FROM tab0 AS cor0
----
-13
-87
-97

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-379
SELECT ALL - col2 DIV - ( + CAST( - col0 AS SIGNED ) ) + - col0 FROM tab0 AS cor0
----
-18
-87
-98

skipif mysql # not compatible
query I rowsort label-379
SELECT ALL - col2 / - ( + CAST ( - col0 AS INTEGER ) ) + - col0 FROM tab0 AS cor0
----
-18
-87
-98

query I rowsort
SELECT + 85 * - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-381
SELECT col1 DIV 73 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-381
SELECT col1 / 73 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-382
SELECT ALL - ( + SUM( ALL + 65 ) ) DIV - MIN( + col0 ), COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-382
SELECT ALL - ( + SUM ( ALL + 65 ) ) / - MIN ( + col0 ), COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
3

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + col1 col0, + col1 FROM tab2
----
102
51
134
67
154
77

query I rowsort
SELECT + col0 * 42 + - col1 AS col1 FROM tab0
----
3633
4073
549

query III rowsort
SELECT * FROM tab0 WHERE - - 32 * + + col2 * - - col1 * + 22 BETWEEN col0 AND + + 1 + + + col2
----

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

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

query I rowsort
SELECT ALL ( - 20 ) * + col0 + col0 AS col1 FROM tab1
----
-1615
-1729
-969

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-392
SELECT CAST ( - col2 AS INTEGER ) FROM tab0 WHERE + col2 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT + col1 + - col1 * - + 10 AS col1 FROM tab0 cor0
----
11
231
891

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 43 * + + col2 - - col2 < 16
----

query I rowsort
SELECT + col0 * + col1 + 28 AS col2 FROM tab0 AS cor0
----
1243
125
1855

query I rowsort
SELECT ALL - ( + 3 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT ALL col0 + + 65 * col2 + - 21 + - col2 FROM tab0
----
3002
6412
706

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

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

query I rowsort
SELECT DISTINCT 96 * - col0 + + - 95 * - - col0 + + - 84 * col2 FROM tab1 cor0
----
-17805
-21191
-23093

onlyif mysql # aggregate syntax: 
query II rowsort label-401
SELECT + COUNT( * ) / SUM( ALL + 15 ) AS col2, + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-401
SELECT + COUNT ( * ) / SUM ( ALL + 15 ) AS col2, + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL
0

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

query I rowsort
SELECT DISTINCT + 62 * + 11 + + - col1 * - 52 FROM tab0 AS cor0
----
1774
4894
734

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT ALL COUNT( col2 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-404
SELECT ALL COUNT ( col2 ) col2 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 59 col1, col1 FROM tab0
----
59
1
59
21
59
81

query I rowsort
SELECT ALL - 45 * 47 FROM tab0
----
-2115
-2115
-2115

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-407
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( - col0 + - - col0 * - col0 ) AND col0 * col2 / + - ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-407
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( - col0 + - - col0 * - col0 ) AND col0 * col2 / + - ( - CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-408
SELECT ALL + + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-408
SELECT ALL + + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-410
SELECT + COUNT( * ), + 20 + + 94 col0 FROM tab0 AS cor0
----
3
114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-410
SELECT + COUNT ( * ), + 20 + + 94 col0 FROM tab0 AS cor0
----
3
114

query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab1 WHERE NOT + col0 + - col2 + + col1 >= - - col0
----
14
47
5

query I rowsort
SELECT col1 + col2 + 78 FROM tab1
----
142
188
193

query II rowsort
SELECT + 76 + - + col2 * - 85, + 93 AS col2 FROM tab0 AS cor0 WHERE 27 + - 90 * - col1 IS NOT NULL
----
4071
93
8491
93
926
93

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * col0 col0 FROM tab2 cor0
----
2346
4928
5025

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-417
SELECT - + CAST( - 2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
2
2
2

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

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE - 20 <> NULL
----

query I rowsort
SELECT + col2 * - 7 AS col1 FROM tab1
----
-413
-476
-672

query I rowsort
SELECT DISTINCT 31 + + 60 + - - col2 FROM tab0
----
101
138
190

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 < 82 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query III rowsort label-422
SELECT ALL * FROM tab2 WHERE + col0 * + col1 + - 91 + + CAST ( NULL AS INTEGER ) * + col0 + - + 37 * + - col0 * - - 32 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 + + - col1 AS col0 FROM tab0
----
-11
-34
98

query I rowsort
SELECT DISTINCT 46 * - col1 + - col2 FROM tab2
----
-2369
-3140
-3582

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) <= + col0 + + - col2 * col2
----

query I rowsort
SELECT col1 * col1 * col2 AS col1 FROM tab2
----
237160
260362
59823

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT 21 * + - COUNT( * ) col0 FROM tab0
----
-63

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

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

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

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

query II rowsort
SELECT - + 87, + col1 FROM tab1 cor0
----
-87
14
-87
47
-87
5

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

skipif mysql # not compatible
query I rowsort label-431
SELECT + MAX ( + 12 ) FROM tab2 AS cor0
----
12

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 58 BETWEEN - 28 AND + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-434
SELECT - CAST( NULL AS SIGNED ) / col1 * - + col0 + + CAST( NULL AS SIGNED ), 66 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT - + 93 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-434
SELECT - CAST ( NULL AS INTEGER ) / col1 * - + col0 + + CAST ( NULL AS INTEGER ), 66 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT - + 93 IS NOT NULL
----

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

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

query I rowsort
SELECT 57 + + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
138
58
78

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT + SUM( - - col1 ) + 35 col2 FROM tab2 AS cor0
----
230

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 * + 3 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * - col1 * - col1 * + - col2, + ( + col2 ) col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT ALL - MIN( - - 33 ) AS col2 FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-441
SELECT ALL - MIN ( - - 33 ) AS col2 FROM tab2
----
-33

query I rowsort
SELECT - - ( - 11 ) * col2 + col1 AS col2 FROM tab0 cor0
----
-1088
-436
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT + 64 * - COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-443
SELECT + 64 * - COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0
----
-195

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

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

query I rowsort
SELECT - - col1 - 63 + + - 21 AS col1 FROM tab0 cor0
----
-3
-63
-83

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN col1 AND NULL
----

query I rowsort
SELECT + + ( 13 ) + - - col2 FROM tab0 AS cor0
----
112
23
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - - col2 * + - col0 col1 FROM tab1
----
-4882
-5010
-6141

query II rowsort
SELECT DISTINCT + col0 * + col0, + col2 FROM tab0
----
225
47
7569
10
9409
99

query I rowsort
SELECT 46 AS col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-451
SELECT ALL MIN( DISTINCT - 2 ) + + 52 * + COUNT( * ), + 83 col0 FROM tab1
----
154
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-451
SELECT ALL MIN ( DISTINCT - 2 ) + + 52 * + COUNT ( * ), + 83 col0 FROM tab1
----
154
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-452
SELECT - + MAX( + col0 ) AS col0 FROM tab2 WHERE - 7 NOT BETWEEN 77 AND + ( + + col0 ) / CAST( NULL AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-452
SELECT - + MAX ( + col0 ) AS col0 FROM tab2 WHERE - 7 NOT BETWEEN 77 AND + ( + + col0 ) / CAST ( NULL AS INTEGER )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT COUNT( * ) + - SUM( ALL col2 ) FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-453
SELECT COUNT ( * ) + - SUM ( ALL col2 ) FROM tab0
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-454
SELECT ALL + col0 - - 0 DIV - - 74 + - 68 * - + 80 AS col1 FROM tab0
----
5455
5527
5537

skipif mysql # not compatible
query I rowsort label-454
SELECT ALL + col0 - - 0 / - - 74 + - 68 * - + 80 AS col1 FROM tab0
----
5455
5527
5537

query I rowsort
SELECT ALL - 83 + col1 FROM tab0
----
-2
-62
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT MAX( - col2 ) * + COUNT( * ) FROM tab2 cor0 WHERE + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-456
SELECT MAX ( - col2 ) * + COUNT ( * ) FROM tab2 cor0 WHERE + col0 IS NULL
----
NULL

query I rowsort
SELECT - - 66 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-458
SELECT DISTINCT 42 DIV - COUNT( * ) AS col2 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-458
SELECT DISTINCT 42 / - COUNT ( * ) AS col2 FROM tab1
----
-14

query I rowsort
SELECT - 30 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= 15
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 + - 46 < 22 + + 81
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 14 * col2 * col1 + col1 = - - 5
----

query II rowsort
SELECT col2 AS col0, col2 * - col1 * - 85 AS col1 FROM tab0
----
10
17850
47
323595
99
8415

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-468
SELECT + MAX( DISTINCT + col0 ), 67 + + SUM( DISTINCT - col0 ) AS col2 FROM tab0
----
97
-132

skipif mysql # not compatible
query II rowsort label-468
SELECT + MAX ( DISTINCT + col0 ), 67 + + SUM ( DISTINCT - col0 ) AS col2 FROM tab0
----
97
-132

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 35, + 74 col0 FROM tab2
----
35
74

query I rowsort
SELECT DISTINCT - 63 * 16 AS col2 FROM tab1 AS cor0
----
-1008

query I rowsort
SELECT - ( col1 ) + + col2 AS col2 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT - 22 / + col1 + 88 FROM tab0 WHERE 49 IS NULL
----

query I rowsort
SELECT ALL - + 71 + col1 AS col0 FROM tab2 AS cor0
----
-20
-4
6

onlyif mysql # DIV for integer division: 
query I rowsort label-475
SELECT - 38 DIV - - col2 + col0 AS col1 FROM tab0 AS cor0
----
15
84
97

skipif mysql # not compatible
query I rowsort label-475
SELECT - 38 / - - col2 + col0 AS col1 FROM tab0 AS cor0
----
15
84
97

query I rowsort
SELECT ALL + col1 * - col0 - + 91 * + - col0 FROM tab0 AS cor0
----
150
6090
8730

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

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

query I rowsort
SELECT + 87 * + + col1 AS col2 FROM tab2
----
4437
5829
6699

query I rowsort
SELECT - ( col0 ) * - + col0 - + col0 AS col0 FROM tab0
----
210
7482
9312

query I rowsort
SELECT ALL + 2 + + + ( col2 ) FROM tab0
----
101
12
49

query I rowsort
SELECT DISTINCT 51 + + 27 FROM tab2
----
78

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 41 - 53 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-484
SELECT + 10 AS col0, COUNT( * ) AS col2 FROM tab0 AS cor0
----
10
3

skipif mysql # not compatible
query II rowsort label-484
SELECT + 10 AS col0, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
10
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-485
SELECT DISTINCT - CAST( SUM( - col2 ) AS SIGNED ) DIV - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-485
SELECT DISTINCT - CAST ( SUM ( - col2 ) AS INTEGER ) / - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-40

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

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

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

query I rowsort
SELECT ALL - 70 + + col0 FROM tab0
----
-55
17
27

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT SUM( col1 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
195

skipif mysql # not compatible
query I rowsort label-489
SELECT SUM ( col1 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 2 * + col2 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 72 = + 7
----

query I rowsort
SELECT DISTINCT + col1 - + col1 AS col0 FROM tab2 WHERE ( + col2 ) > NULL
----

query I rowsort
SELECT ALL - 38 * - 53 - - col2 AS col0 FROM tab2
----
2037
2054
2072

onlyif mysql # DIV for integer division: 
query I rowsort label-495
SELECT col2 * 71 + col0 DIV + col0 AS col0 FROM tab2
----
1634
2841
4119

skipif mysql # not compatible
query I rowsort label-495
SELECT col2 * 71 + col0 / + col0 AS col0 FROM tab2
----
1634
2841
4119

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT 12 + + COUNT( ALL + col1 ) * + COUNT( * ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-496
SELECT 12 + + COUNT ( ALL + col1 ) * + COUNT ( * ) FROM tab2
----
21

query I rowsort
SELECT + ( col0 ) FROM tab1 WHERE NULL >= - 76 + - 56
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col1 ) < + col0
----
15
81
47

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

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN ( + 40 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 59 / col2 NOT BETWEEN - 69 + col2 * col2 AND - ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT COUNT( * ) AS col2 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN 4 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-502
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN 4 AND NULL
----
0

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

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

query I rowsort
SELECT + 36 * 23 FROM tab2
----
828
828
828

query I rowsort
SELECT - col0 * - ( 18 ) FROM tab2
----
1152
1350
828

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT - SUM( ALL + col0 ) * + COUNT( * ) + - 54 AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
-735

skipif mysql # not compatible
query I rowsort label-506
SELECT - SUM ( ALL + col0 ) * + COUNT ( * ) + - 54 AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
-735

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT 77 * - SUM( - col2 ) AS col2 FROM tab0
----
12012

skipif mysql # not compatible
query I rowsort label-507
SELECT 77 * - SUM ( - col2 ) AS col2 FROM tab0
----
12012

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT 14 * COUNT( * ) AS col2 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-508
SELECT 14 * COUNT ( * ) AS col2 FROM tab1
----
42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-509
SELECT col0 / CAST( NULL AS DECIMAL ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-509
SELECT col0 / CAST ( NULL AS REAL ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 + - ( + 39 ) col1 FROM tab1 cor0
----
3442
4585
9177

query I rowsort
SELECT ALL 73 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
73
73
73

query I rowsort
SELECT + 72 + - col0 * col1 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 50
----

query I rowsort
SELECT ( - col2 ) + + 55 AS col1 FROM tab1 AS cor0
----
-13
-4
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT ALL COUNT( DISTINCT 87 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-514
SELECT ALL COUNT ( DISTINCT 87 ) FROM tab0 AS cor0
----
1

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

query I rowsort
SELECT + ( 6 ) - + col1 FROM tab0
----
-15
-75
5

query I rowsort
SELECT - col1 - 80 * col1 AS col0 FROM tab2
----
-4131
-5427
-6237

query I rowsort
SELECT DISTINCT 87 * 40 - 53 AS col2 FROM tab1
----
3427

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

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT - MIN( ALL col2 ) - 37 AS col0 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-520
SELECT - MIN ( ALL col2 ) - 37 AS col0 FROM tab2 AS cor0
----
-60

query I rowsort
SELECT ALL col2 - col1 AS col0 FROM tab0 cor0
----
-11
-34
98

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

query I rowsort
SELECT 36 + col2 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT + - 4 - - col1 AS col1 FROM tab2 AS cor0
----
47
63
73

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT SUM( - col1 ) * COUNT( * ) + 62 FROM tab2 AS cor0 WHERE + col0 + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-525
SELECT SUM ( - col1 ) * COUNT ( * ) + 62 FROM tab2 AS cor0 WHERE + col0 + col0 IS NULL
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-527
SELECT col2 * col1 + + CAST( - col0 AS SIGNED ) * - col2 AS col2 FROM tab0 AS cor0
----
1080
4512
9702

skipif mysql # not compatible
query I rowsort label-527
SELECT col2 * col1 + + CAST ( - col0 AS INTEGER ) * - col2 AS col2 FROM tab0 AS cor0
----
1080
4512
9702

query I rowsort
SELECT DISTINCT col0 / 19 AS col1 FROM tab0 AS cor0 WHERE NOT ( col2 / + 85 ) IS NOT NULL
----

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

query I rowsort
SELECT + col1 * 21 AS col0 FROM tab0
----
1701
21
441

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 / - ( 65 ) + + ( col0 ) <> NULL
----

query I rowsort
SELECT DISTINCT ( - col2 ) * + 17 FROM tab2
----
-391
-680
-986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-535
SELECT col1 FROM tab2 WHERE NOT + col0 + - 28 * - col0 NOT IN ( CAST( - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-535
SELECT col1 FROM tab2 WHERE NOT + col0 + - 28 * - col0 NOT IN ( CAST ( - col0 AS INTEGER ) )
----

query I rowsort
SELECT ALL - 40 * - col0 AS col1 FROM tab1
----
2040
3400
3640

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

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE col1 * col0 + col2 = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-539
SELECT - 90 DIV - COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
10

skipif mysql # not compatible
query I rowsort label-539
SELECT - 90 / - COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
10

query III rowsort
SELECT * FROM tab2 WHERE NOT - 50 / col2 BETWEEN - col0 AND ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 * + col2 col1 FROM tab2
----
1541
2680
3886

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

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

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

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

query I rowsort
SELECT - 61 + 8 FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT + + col2 + col2 * + 94 + col2 FROM tab2 AS cor0
----
2208
3840
5568

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

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

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

query I rowsort
SELECT ALL + 55 * col0 + + col1 + 5 FROM tab2 cor0
----
2586
3602
4197

query I rowsort
SELECT DISTINCT + 72 * - col1 + - + 33 * + + col1 * col0 + 41 FROM tab1
----
-14344
-144484
-24529

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT ALL + COUNT( * ) + 30 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL + COUNT ( * ) + 30 FROM tab0
----
33

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

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

query I rowsort
SELECT DISTINCT 6 * - 51 FROM tab0
----
-306

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 19 <> ( col0 * col0 + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-555
SELECT DISTINCT - COUNT ( * ) + + - COUNT ( * ) FROM tab2
----
-6

query I rowsort
SELECT - col1 + col2 FROM tab2 WHERE 39 * + - col0 + + ( 94 ) <= col2
----
-28
-37
-9

query I rowsort
SELECT ALL - col0 + - - col2 AS col2 FROM tab2
----
-17
-23
-24

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

query I rowsort
SELECT ALL - - col0 + + 20 FROM tab1 AS cor0
----
105
111
71

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

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

query I rowsort
SELECT DISTINCT - ( - col0 ) - 13 AS col0 FROM tab2
----
33
51
62

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT - MIN( ALL - - 71 ) FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-563
SELECT - MIN ( ALL - - 71 ) FROM tab2 AS cor0
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-564
SELECT COUNT( * ) AS col1, - 6 * - SUM( DISTINCT + 97 ) * - COUNT( * ) col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
3
-1746

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-564
SELECT COUNT ( * ) AS col1, - 6 * - SUM ( DISTINCT + 97 ) * - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
3
-1746

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

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT COUNT( * ) * + + COUNT( * ) * MAX( ALL - 27 ) - + 83 * 68 FROM tab1 AS cor0
----
-5887

skipif mysql # not compatible
query I rowsort label-566
SELECT COUNT ( * ) * + + COUNT ( * ) * MAX ( ALL - 27 ) - + 83 * 68 FROM tab1 AS cor0
----
-5887

query I rowsort
SELECT 60 * - - 41 AS col2 FROM tab2 AS cor0
----
2460
2460
2460

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT DISTINCT + 96 * COUNT( * ) / + MAX( col0 ) * COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - 34 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-568
SELECT DISTINCT + 96 * COUNT ( * ) / + MAX ( col0 ) * COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - 34 IS NOT NULL
----
NULL

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-574
SELECT DISTINCT - COUNT( * ), + 86 + + COUNT( * ) + 97 AS col2 FROM tab0 AS cor0
----
-3
186

skipif mysql # not compatible
query II rowsort label-574
SELECT DISTINCT - COUNT ( * ), + 86 + + COUNT ( * ) + 97 AS col2 FROM tab0 AS cor0
----
-3
186

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT + + 59 * + + COUNT( * ) FROM tab2 cor0
----
177

skipif mysql # not compatible
query I rowsort label-575
SELECT + + 59 * + + COUNT ( * ) FROM tab2 cor0
----
177

query I rowsort
SELECT ALL + 79 * - col0 * - col0 AS col0 FROM tab1 AS cor0
----
205479
570775
654199

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

query I rowsort
SELECT col0 + - 16 AS col0 FROM tab2
----
30
48
59

query I rowsort
SELECT - col0 + - - 29 + - + 13 + + col0 FROM tab0
----
16
16
16

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE + + 21 NOT BETWEEN col2 + 24 - col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * + col0 + + ( + 90 ) + + col1 * col1 AS col2 FROM tab2 WHERE + + col0 IS NOT NULL
----
1633
229
3459

query II rowsort
SELECT DISTINCT - 84 / + 21 AS col2, col1 FROM tab0 WHERE + - ( + col1 ) IS NULL
----

query I rowsort
SELECT - 36 + + col1 + col0 + + - col1 + + - 18 * - col0 AS col1 FROM tab2
----
1180
1389
838

query I rowsort
SELECT + 6 + 38 FROM tab1 AS cor0
----
44
44
44

query I rowsort
SELECT - col1 * - 33 FROM tab0 AS cor0
----
2673
33
693

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

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

query I rowsort
SELECT DISTINCT + col1 + + 46 * + 31 FROM tab1 AS cor0
----
1431
1440
1473

query I rowsort
SELECT ALL 81 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 90 * - 30 / + 17 BETWEEN ( + 22 ) AND ( NULL )
----

query I rowsort
SELECT ALL + col2 - - + col2 FROM tab0
----
198
20
94

query I rowsort
SELECT DISTINCT + ( - col1 ) * - 94 - col1 FROM tab0 AS cor0
----
1953
7533
93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT MIN( + col1 ) * 77 * + - MAX( DISTINCT + - col2 ) col2 FROM tab0
----
770

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-595
SELECT MIN ( + col1 ) * 77 * + - MAX ( DISTINCT + - col2 ) col2 FROM tab0
----
770

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

skipif mysql # not compatible
query I rowsort label-596
SELECT + col0 / + + col0 AS col2 FROM tab0
----
1
1
1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 22 col2 FROM tab0
----
-1782
-22
-462

query I rowsort
SELECT DISTINCT - col1 * 64 FROM tab1 AS cor0
----
-3008
-320
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT ALL + MIN( - + col1 ) col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-81

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

query III rowsort
SELECT DISTINCT + + col2 AS col1, - col0 AS col1, - + col0 FROM tab0 AS cor0
----
9 values hashing to d65177a2fee1f4b16b8ac5cf0a650eb1

query I rowsort
SELECT - + 49 * - col0 AS col2 FROM tab2 AS cor0
----
2254
3136
3675

query I rowsort
SELECT ALL + - 23 AS col1 FROM tab2 AS cor0
----
-23
-23
-23

query I rowsort
SELECT ALL col2 + + + 82 AS col1 FROM tab1 AS cor0
----
141
150
178

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

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

query I rowsort
SELECT - col0 * + 84 AS col0 FROM tab0
----
-1260
-7308
-8148

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

query I rowsort
SELECT DISTINCT + col1 * + col2 * - 1 + col2 AS col2 FROM tab2
----
-1150
-3040
-3828

query I rowsort
SELECT DISTINCT - 19 + col2 + col0 * - col0 FROM tab0
----
-197
-7578
-9329

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT - ( - + SUM( col2 ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-611
SELECT - ( - + SUM ( col2 ) ) FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT - 91 * MIN( - - 88 ) FROM tab1 WHERE - + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-612
SELECT - 91 * MIN ( - - 88 ) FROM tab1 WHERE - + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT - SUM( ALL col1 ) - - 49 + - COUNT( * ) * COUNT( * ) AS col2 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-613
SELECT - SUM ( ALL col1 ) - - 49 + - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0
----
-63

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

query I rowsort
SELECT DISTINCT + 96 FROM tab0 AS cor0 WHERE col0 IS NULL
----

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

query I rowsort
SELECT ALL + col2 - - + col0 * - col2 AS col0 FROM tab1 AS cor0
----
-4800
-4956
-6120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-618
SELECT ALL + - col1 * + CAST( - - 36 AS SIGNED ) FROM tab0 cor0
----
-2916
-36
-756

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL + - col1 * + CAST ( - - 36 AS INTEGER ) FROM tab0 cor0
----
-2916
-36
-756

query I rowsort
SELECT col0 + - 14 AS col1 FROM tab1
----
37
71
77

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT ALL + ( + + MIN( 32 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
32

skipif mysql # not compatible
query I rowsort label-620
SELECT ALL + ( + + MIN ( 32 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
32

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

query I rowsort
SELECT DISTINCT col1 * - col0 * - col2 + - + ( - - col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-624
SELECT ALL + 5 DIV + col1 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-624
SELECT ALL + 5 / + col1 AS col1 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-625
SELECT + + CAST( NULL AS DECIMAL ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - 34 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-625
SELECT + + CAST ( NULL AS REAL ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - 34 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-626
SELECT ALL + 76 DIV - col2 + - + col2 FROM tab0 AS cor0
----
-17
-48
-99

skipif mysql # not compatible
query I rowsort label-626
SELECT ALL + 76 / - col2 + - + col2 FROM tab0 AS cor0
----
-17
-48
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-627
SELECT ALL - COUNT( ALL + CAST( NULL AS SIGNED ) ) FROM tab0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT - 33 * - - MIN( + 3 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-628
SELECT - 33 * - - MIN ( + 3 ) FROM tab0
----
-99

query I rowsort
SELECT col2 + - - 11 * col0 AS col1 FROM tab0 AS cor0
----
1166
212
967

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

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

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

query I rowsort
SELECT col2 * + 56 AS col1 FROM tab2
----
1288
2240
3248

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-633
SELECT col0 * - CAST( col0 AS SIGNED ) col2, + 42 FROM tab2 AS cor0
----
-2116
42
-4096
42
-5625
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-633
SELECT col0 * - CAST ( col0 AS INTEGER ) col2, + 42 FROM tab2 AS cor0
----
-2116
42
-4096
42
-5625
42

query I rowsort
SELECT - col1 * - 15 AS col0 FROM tab0 AS cor0
----
1215
15
315

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT DISTINCT - - 2 * + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-636
SELECT DISTINCT - - 2 * + COUNT ( * ) FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-637
SELECT + COUNT( * ) + 15 DIV - - COUNT( * ) FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-637
SELECT + COUNT ( * ) + 15 / - - COUNT ( * ) FROM tab2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT COUNT( * ) + + COUNT( DISTINCT + col0 ) * - - 11 + - 82 col1 FROM tab0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-638
SELECT COUNT ( * ) + + COUNT ( DISTINCT + col0 ) * - - 11 + - 82 col1 FROM tab0
----
-46

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

skipif mysql # not compatible
query I rowsort label-639
SELECT ALL 23 + + + AVG ( ALL - CAST ( NULL AS INTEGER ) ) * + 24 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL col2 - col2 + + - 89 * - 86 FROM tab1
----
7654
7654
7654

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( + 29 ) * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 53 AS col2 FROM tab1 WHERE - col0 IN ( - ( - 63 ) * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + col1 ), + 3 + + - 98 col1 FROM tab0
----
-1
-95
-21
-95
-81
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT ALL - COUNT( + 86 ) * 82 * - + 3 FROM tab0 AS cor0
----
738

skipif mysql # not compatible
query I rowsort label-644
SELECT ALL - COUNT ( + 86 ) * 82 * - + 3 FROM tab0 AS cor0
----
738

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT + MAX( 53 ) col1 FROM tab2 AS cor0 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-645
SELECT + MAX ( 53 ) col1 FROM tab2 AS cor0 WHERE NULL = NULL
----
NULL

query I rowsort
SELECT - 10 * - + col2 FROM tab0
----
100
470
990

onlyif mysql # DIV for integer division: 
query I rowsort label-647
SELECT DISTINCT + col2 * 2 DIV + col2 AS col2 FROM tab1 cor0
----
2

skipif mysql # not compatible
query I rowsort label-647
SELECT DISTINCT + col2 * 2 / + col2 AS col2 FROM tab1 cor0
----
2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 / + col2 / + 23 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-649
SELECT DISTINCT CAST( - 2 AS SIGNED ) * 5 + - MAX( ALL - col1 ) FROM tab2 AS cor0 WHERE + 66 IN ( + ( + col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-649
SELECT DISTINCT CAST ( - 2 AS INTEGER ) * 5 + - MAX ( ALL - col1 ) FROM tab2 AS cor0 WHERE + 66 IN ( + ( + col2 ) )
----
NULL

query I rowsort
SELECT ALL + 95 * + + col0 AS col1 FROM tab2
----
4370
6080
7125

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

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

query I rowsort
SELECT + 9 + col0 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
55
73
84

query I rowsort
SELECT ALL 14 * col1 AS col0 FROM tab1
----
196
658
70

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT - COUNT( * ) FROM tab1 WHERE NOT - ( - + ( - 7 ) ) + - col1 BETWEEN col1 / - col1 AND 78
----
-3

skipif mysql # not compatible
query I rowsort label-654
SELECT - COUNT ( * ) FROM tab1 WHERE NOT - ( - + ( - 7 ) ) + - col1 BETWEEN col1 / - col1 AND 78
----
-3

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

query I rowsort
SELECT DISTINCT col0 + col0 + col1 FROM tab1
----
116
175
229

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-658
SELECT + col2 * col1 + + 98 + + CAST( NULL AS SIGNED ) col1 FROM tab0 cor0 WHERE - col1 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-658
SELECT + col2 * col1 + + 98 + + CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0 WHERE - col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 3 - 25 + + col1 FROM tab0 AS cor0
----
-1
-21
59

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( col1 ) col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
162
2
42

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

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

query I rowsort
SELECT ALL col0 + + ( - col1 ) AS col0 FROM tab2
----
-13
-5
8

query I rowsort
SELECT col1 - 48 AS col1 FROM tab2
----
19
29
3

query III rowsort
SELECT * FROM tab1 WHERE - + 10 >= + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 - - - col2 * + 22 AS col1, 86 col2 FROM tab2
----
-1201
86
-460
86
-816
86

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

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE ( - + col1 * - col2 + - col1 ) IN ( + 66 + + ( - col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-670
SELECT DISTINCT 8 - + 82 DIV col0 * + ( 61 ) FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-670
SELECT DISTINCT 8 - + 82 / col0 * + ( 61 ) FROM tab2
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-671
SELECT DISTINCT CAST( - + 88 AS SIGNED ) * col0 + + 54 * col1 AS col0, 44 AS col0 FROM tab2 AS cor0
----
-1294
44
-1474
44
-2982
44

skipif mysql # not compatible
query II rowsort label-671
SELECT DISTINCT CAST ( - + 88 AS INTEGER ) * col0 + + 54 * col1 AS col0, 44 AS col0 FROM tab2 AS cor0
----
-1294
44
-1474
44
-2982
44

query II rowsort
SELECT + ( 49 ) * 14 AS col0, - col1 AS col0 FROM tab1 AS cor0
----
686
-14
686
-47
686
-5

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

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

query II rowsort
SELECT DISTINCT col0 AS col0, - 18 - - + 20 AS col0 FROM tab1
----
51
2
85
2
91
2

query I rowsort
SELECT + 64 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

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

skipif mysql # not compatible
query I rowsort label-677
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + col0 / - col0 + - - col1 * + + col1 * - - 36 / - col1 + + col2 FROM tab0 WHERE ( - col0 <> + col2 )
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col1 + + + col2 + - 78 * col1 col1 FROM tab1 AS cor0
----
14
-982
47
-3551
5
-326

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

skipif mysql # not compatible
query I rowsort label-680
SELECT DISTINCT - COUNT ( * ) / + COUNT ( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT SUM( ALL + - col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-681
SELECT SUM ( ALL + - col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( 17 )
----
NULL

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

query II rowsort
SELECT DISTINCT 59, + col2 FROM tab0 AS cor0
----
59
10
59
47
59
99

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + col2 ) col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT DISTINCT - 8 * - - COUNT( * ) FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-686
SELECT DISTINCT - 8 * - - COUNT ( * ) FROM tab0
----
-24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-687
SELECT ALL CAST( 97 AS SIGNED ) DIV col2 + - col2 DIV + col1 + 91 * + + 27 AS col1 FROM tab2
----
2458
2459
2461

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL CAST ( 97 AS INTEGER ) / col2 + - col2 / + col1 + 91 * + + 27 AS col1 FROM tab2
----
2458
2459
2461

onlyif mysql # aggregate syntax: 
query I rowsort label-688
SELECT + 59 + + COUNT( col2 ) FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-688
SELECT + 59 + + COUNT ( col2 ) FROM tab2
----
62

query I rowsort
SELECT col0 + - ( - col0 ) AS col2 FROM tab0
----
174
194
30

query I rowsort
SELECT DISTINCT col1 + - ( - 45 ) FROM tab0
----
126
46
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-691
SELECT + - 63 DIV - ( - 91 ) + + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-691
SELECT + - 63 / - ( - 91 ) + + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 12 + - + col2 * 44 col1 FROM tab1
----
-2608
-3004
-4236

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

query I rowsort
SELECT ALL col0 + - 15 FROM tab1
----
36
70
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-695
SELECT - + col1 - - CAST( - 28 AS SIGNED ) FROM tab2 AS cor0
----
-105
-79
-95

skipif mysql # not compatible
query I rowsort label-695
SELECT - + col1 - - CAST ( - 28 AS INTEGER ) FROM tab2 AS cor0
----
-105
-79
-95

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

query I rowsort
SELECT - + 76 * - - col1 + + 13 FROM tab1 AS cor0
----
-1051
-3559
-367

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-698
SELECT CAST( + col1 AS SIGNED ) + + col2 FROM tab1 cor0
----
110
115
64

skipif mysql # not compatible
query I rowsort label-698
SELECT CAST ( + col1 AS INTEGER ) + + col2 FROM tab1 cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT 30 + COUNT( - col2 ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-699
SELECT 30 + COUNT ( - col2 ) FROM tab1
----
33

query I rowsort
SELECT col1 + + 24 - + 96 AS col0 FROM tab2
----
-21
-5
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 58 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-702
SELECT ALL - 75 + + - 12 AS col0, 34 DIV + 12 FROM tab2
----
-87
2
-87
2
-87
2

skipif mysql # not compatible
query II rowsort label-702
SELECT ALL - 75 + + - 12 AS col0, 34 / + 12 FROM tab2
----
-87
2
-87
2
-87
2

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

query I rowsort
SELECT ALL - 82 AS col2 FROM tab2 cor0
----
-82
-82
-82

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

query I rowsort
SELECT + + 53 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 * 92 col0 FROM tab2 AS cor0
----
235520
400200
97336

query I rowsort
SELECT ALL 57 + + - col0 AS col0 FROM tab1 AS cor0
----
-28
-34
6

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

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

query I rowsort
SELECT ( + 50 ) FROM tab2
----
50
50
50

query I rowsort
SELECT 60 * + + col1 AS col0 FROM tab0
----
1260
4860
60

onlyif mysql # DIV for integer division: 
query I rowsort label-712
SELECT ALL 36 DIV - + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL 36 / - + col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT ALL + 47 + + - SUM( ALL - - 36 ) AS col0 FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-713
SELECT ALL + 47 + + - SUM ( ALL - - 36 ) AS col0 FROM tab2
----
-61

query I rowsort
SELECT DISTINCT col0 + + - col2 * + 79 AS col2 FROM tab1
----
-4576
-5281
-7533

query I rowsort
SELECT ALL ( + + 36 ) * - - 71 AS col1 FROM tab0
----
2556
2556
2556

query I rowsort
SELECT ALL 8 + - 41 + + - 78 AS col0 FROM tab0 cor0
----
-111
-111
-111

query I rowsort
SELECT DISTINCT - col2 * - + col2 + - 73 + + 33 * 82 * 86 FROM tab2 AS cor0
----
233172
234243
236007

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab0 AS cor0 WHERE NOT + 31 IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT col1 + - 90 * - - col0 FROM tab1 AS cor0
----
-4576
-7645
-8143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-720
SELECT - col0 + CAST( + + 7 AS SIGNED ) col0 FROM tab1
----
-44
-78
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-720
SELECT - col0 + CAST ( + + 7 AS INTEGER ) col0 FROM tab1
----
-44
-78
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-721
SELECT DISTINCT - CAST( col0 AS SIGNED ) + + 48 FROM tab1
----
-3
-37
-43

skipif mysql # not compatible
query I rowsort label-721
SELECT DISTINCT - CAST ( col0 AS INTEGER ) + + 48 FROM tab1
----
-3
-37
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT ALL - - SUM( - 57 ) * + + SUM( - - 55 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-253935

skipif mysql # not compatible
query I rowsort label-722
SELECT ALL - - SUM ( - 57 ) * + + SUM ( - - 55 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-253935

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-723
SELECT DISTINCT + COUNT( * ) DIV + COUNT( * ) + - MIN( DISTINCT - - 64 ) AS col0 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-723
SELECT DISTINCT + COUNT ( * ) / + COUNT ( * ) + - MIN ( DISTINCT - - 64 ) AS col0 FROM tab2
----
-63

query I rowsort
SELECT 9 FROM tab1 cor0 WHERE - 19 IS NOT NULL
----
9
9
9

query I rowsort
SELECT ALL col2 - + col0 * + col0 FROM tab0 AS cor0
----
-178
-7559
-9310

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-726
SELECT + - COUNT ( * ) * - 35 col2 FROM tab0 AS cor0
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-727
SELECT + CAST( - - 33 AS SIGNED ) * col1 - + col1 + + ( - + CAST( + ( + col2 ) AS SIGNED ) ) + 35 + + - col1 * col0 * 96 * - col2 AS col2 FROM tab0 AS cor0
----
1754617
5484660
921856

skipif mysql # not compatible
query I rowsort label-727
SELECT + CAST ( - - 33 AS INTEGER ) * col1 - + col1 + + ( - + CAST ( + ( + col2 ) AS INTEGER ) ) + 35 + + - col1 * col0 * 96 * - col2 AS col2 FROM tab0 AS cor0
----
1754617
5484660
921856

query I rowsort
SELECT + + col0 * + - col0 AS col2 FROM tab2 cor0 WHERE - col2 NOT BETWEEN + col1 AND + ( col1 ) * + 59
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT + 55 - - col0 AS col2 FROM tab2 AS cor0
----
101
119
130

query I rowsort
SELECT + - 86 - - 24 AS col0 FROM tab1 AS cor0
----
-62
-62
-62

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 6 <= 17
----

query I rowsort
SELECT 51 - - - 26 AS col0 FROM tab2
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT MAX( DISTINCT - + 74 ) AS col2 FROM tab0
----
-74

skipif mysql # not compatible
query I rowsort label-733
SELECT MAX ( DISTINCT - + 74 ) AS col2 FROM tab0
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-734
SELECT ALL + + col2 DIV - 47 FROM tab2 WHERE NOT - + col2 * + ( - 52 ) + - 92 IS NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-734
SELECT ALL + + col2 / - 47 FROM tab2 WHERE NOT - + col2 * + ( - 52 ) + - 92 IS NULL
----
-1
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-735
SELECT DISTINCT 95 AS col2, MIN( 60 ) FROM tab1
----
95
60

skipif mysql # not compatible
query II rowsort label-735
SELECT DISTINCT 95 AS col2, MIN ( 60 ) FROM tab1
----
95
60

onlyif mysql # DIV for integer division: 
query I rowsort label-736
SELECT DISTINCT - 46 DIV - - 84 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-736
SELECT DISTINCT - 46 / - - 84 AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-737
SELECT ALL COUNT( * ) AS col2, + 99 FROM tab1
----
3
99

skipif mysql # not compatible
query II rowsort label-737
SELECT ALL COUNT ( * ) AS col2, + 99 FROM tab1
----
3
99

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-740
SELECT ALL + col2 AS col1, - col2 DIV - + col1 FROM tab1 AS cor0
----
59
11
68
1
96
6

skipif mysql # not compatible
query II rowsort label-740
SELECT ALL + col2 AS col1, - col2 / - + col1 FROM tab1 AS cor0
----
59
11
68
1
96
6

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

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

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

query I rowsort
SELECT + 44 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-745
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + - + col1 <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-745
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + - + col1 <= CAST ( NULL AS INTEGER )
----

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

query I rowsort
SELECT - 92 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT ALL - MIN( - 63 ) + - 94 AS col2 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL - MIN ( - 63 ) + - 94 AS col2 FROM tab1
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-752
SELECT + CAST( col2 AS SIGNED ) + - CAST( - col0 AS SIGNED ) AS col1 FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-752
SELECT + CAST ( col2 AS INTEGER ) + - CAST ( - col0 AS INTEGER ) AS col1 FROM tab2
----
104
133
69

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

query I rowsort
SELECT DISTINCT - 93 * - 85 + - col0 * - col0 FROM tab2
----
10021
12001
13530

query I rowsort
SELECT + col2 + - 7 AS col1 FROM tab0
----
3
40
92

query I rowsort
SELECT ALL - 13 + + col0 FROM tab2
----
33
51
62

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT DISTINCT - 63 + - COUNT( * ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-757
SELECT DISTINCT - 63 + - COUNT ( * ) AS col0 FROM tab1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-758
SELECT ALL * FROM tab0 WHERE NOT + col0 * + + col1 <> - CAST( + 48 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-758
SELECT ALL * FROM tab0 WHERE NOT + col0 * + + col1 <> - CAST ( + 48 AS INTEGER )
----

query I rowsort
SELECT + - col2 * ( + 26 ) * + 83 + - + 77 AS col0 FROM tab2 cor0
----
-125241
-49711
-86397

onlyif mysql # DIV for integer division: 
query I rowsort label-760
SELECT DISTINCT + col2 * + col0 * - col0 + - + 63 + - col1 + - 15 DIV - col0 * 93 * 61 * - + 25 + - + col0 - - + col0 FROM tab1 AS cor0
----
-249773
-426343
-563218

skipif mysql # not compatible
query I rowsort label-760
SELECT DISTINCT + col2 * + col0 * - col0 + - + 63 + - col1 + - 15 / - col0 * 93 * 61 * - + 25 + - + col0 - - + col0 FROM tab1 AS cor0
----
-249773
-426343
-563218

query I rowsort
SELECT ALL 99 * + + col2 * + + col0 * - - col2 AS col0 FROM tab1 AS cor0
----
29292615
41657616
46531584

query I rowsort
SELECT col1 * + ( - + 84 ) * + - 30 AS col0 FROM tab0
----
204120
2520
52920

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

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

query I rowsort
SELECT ALL + + col0 + + + 3 * col2 FROM tab1 AS cor0
----
262
295
339

query III rowsort
SELECT ALL + 37 * col0 + - 94 + - 86 * col1 + col1 AS col2, col1 + - + col2 - + col0 AS col1, col1 AS col2 FROM tab0 AS cor0
----
9 values hashing to 6aec349842d00f9e451bcb5db9ebd6cf

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 21 * - 75 <> NULL
----

query I rowsort
SELECT DISTINCT col0 * - col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT COUNT( * ) + + ( - 66 ) FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-768
SELECT COUNT ( * ) + + ( - 66 ) FROM tab0 AS cor0
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * + ( 85 ) col0 FROM tab2 AS cor0
----
-4335
-5695
-6545

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT ALL + MAX( 30 ) - COUNT( ALL + + col0 ) AS col1 FROM tab0 cor0
----
27

skipif mysql # not compatible
query I rowsort label-770
SELECT ALL + MAX ( 30 ) - COUNT ( ALL + + col0 ) AS col1 FROM tab0 cor0
----
27

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 * + 2 + - - col2 * col1 + 43 + - col0 = - + ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-773
SELECT DISTINCT - 70 AS col2, + MIN( ALL - col0 ) FROM tab0 AS cor0
----
-70
-97

skipif mysql # not compatible
query II rowsort label-773
SELECT DISTINCT - 70 AS col2, + MIN ( ALL - col0 ) FROM tab0 AS cor0
----
-70
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + ( + col0 ) AS col0, col2 + col1 col0, col0 - + - col1 - ( 84 ) AS col0 FROM tab0 AS cor0
----
9 values hashing to 143e8c6766320bc195bb3fc81f23b4f7

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT ( + 48 * + 53 + - - col2 ) IS NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-776
SELECT + 59 DIV - col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-776
SELECT + 59 / - col0 FROM tab2
----
-1
0
0

query I rowsort
SELECT + 57 * - col1 * + col2 AS col1 FROM tab1
----
-16815
-182172
-76608

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

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

query II rowsort
SELECT - 27 AS col2, - col2 AS col2 FROM tab2
----
-27
-23
-27
-40
-27
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT - COUNT( * ) + + COUNT( * ) + + 26 + + - 50 * 70 AS col2 FROM tab0, tab1 AS cor0
----
-3474

skipif mysql # not compatible
query I rowsort label-781
SELECT - COUNT ( * ) + + COUNT ( * ) + + 26 + + - 50 * 70 AS col2 FROM tab0, tab1 AS cor0
----
-3474

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

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

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

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

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

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

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

query II rowsort
SELECT ALL - 60 AS col0, - col2 * col0 FROM tab1 cor0
----
-60
-4896
-60
-5015
-60
-6188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-788
SELECT + MIN( DISTINCT 73 ) DIV + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-788
SELECT + MIN ( DISTINCT 73 ) / + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT + SUM( + + col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-789
SELECT + SUM ( + + col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + ( 93 ) * - - ( col0 ) * + 23 col0 FROM tab2
----
136936
160483
98417

query I rowsort
SELECT DISTINCT + col1 / + col1 * - 95 AS col2 FROM tab2 WHERE NOT NULL > - 5 / + 76
----

onlyif mysql # DIV for integer division: 
query I rowsort label-792
SELECT DISTINCT + + col0 * ( + - col0 ) + ( + 44 ) DIV + col2 FROM tab1 WHERE NOT + col1 IS NULL
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-792
SELECT DISTINCT + + col0 * ( + - col0 ) + ( + 44 ) / + col2 FROM tab1 WHERE NOT + col1 IS NULL
----
-2601
-7225
-8281

query I rowsort
SELECT - col0 + + col2 * col2 * + + col2 + - 25 * + - 3 * - - col2 * + + col2 * + + col2 FROM tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT ALL 53 - + - MIN( - 69 ) FROM tab1 cor0
----
-16

skipif mysql # not compatible
query I rowsort label-794
SELECT ALL 53 - + - MIN ( - 69 ) FROM tab1 cor0
----
-16

query I rowsort
SELECT 95 * + 6 + - + col1 * + 64 FROM tab0 AS cor0
----
-4614
-774
506

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT - - 46 + - ( + COUNT( * ) ) FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-796
SELECT - - 46 + - ( + COUNT ( * ) ) FROM tab1 AS cor0
----
43

query I rowsort
SELECT DISTINCT - - col2 * + ( + - col2 ) FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT ALL + MAX( DISTINCT + + 26 ) * + 23 FROM tab0
----
598

skipif mysql # not compatible
query I rowsort label-798
SELECT ALL + MAX ( DISTINCT + + 26 ) * + 23 FROM tab0
----
598

query I rowsort
SELECT ALL col1 + 87 AS col2 FROM tab2
----
138
154
164

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT - MAX( + 31 ) * 38 + ( + + 52 ) FROM tab0 WHERE + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-800
SELECT - MAX ( + 31 ) * 38 + ( + + 52 ) FROM tab0 WHERE + col2 IS NULL
----
NULL

query I rowsort
SELECT ALL + 23 AS col1 FROM tab2 AS cor0 WHERE - 88 IS NOT NULL
----
23
23
23

query I rowsort
SELECT ALL - + col1 + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col1, col2 )
----

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) * + - 81 BETWEEN NULL AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * + + col1 FROM tab0 AS cor0 WHERE NOT - col1 + + 18 IS NULL
----
210
3807
99

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-808
SELECT ALL COUNT( * ) AS col0, - COUNT( * ) * + + 66 DIV + SUM( DISTINCT - col0 ) AS col0 FROM tab0
----
3
0

skipif mysql # not compatible
query II rowsort label-808
SELECT ALL COUNT ( * ) AS col0, - COUNT ( * ) * + + 66 / + SUM ( DISTINCT - col0 ) AS col0 FROM tab0
----
3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 * + col0 col1 FROM tab0
----
-105
-609
-679

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT DISTINCT - MIN( DISTINCT + 39 ) * + + COUNT( * ) FROM tab1
----
-117

skipif mysql # not compatible
query I rowsort label-810
SELECT DISTINCT - MIN ( DISTINCT + 39 ) * + + COUNT ( * ) FROM tab1
----
-117

query I rowsort
SELECT ALL ( - - 40 ) * - col2 AS col2 FROM tab2
----
-1600
-2320
-920

query I rowsort
SELECT - 74 * + 22 AS col1 FROM tab1
----
-1628
-1628
-1628

query I rowsort
SELECT DISTINCT 22 * 99 FROM tab1
----
2178

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT DISTINCT - 87 * - MIN( DISTINCT 90 ) FROM tab2 AS cor0
----
7830

skipif mysql # not compatible
query I rowsort label-815
SELECT DISTINCT - 87 * - MIN ( DISTINCT 90 ) FROM tab2 AS cor0
----
7830

query I rowsort
SELECT - + 81 * + - col2 AS col0 FROM tab0 AS cor0
----
3807
8019
810

query I rowsort
SELECT ALL ( 76 ) FROM tab1 AS cor0
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT + SUM( ALL + + 40 ) FROM tab1 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-818
SELECT + SUM ( ALL + + 40 ) FROM tab1 AS cor0
----
120

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

query I rowsort
SELECT - col2 * + + 53 * + ( - col1 ) FROM tab0 AS cor0
----
11130
201771
5247

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT - + SUM( ALL col2 ) + - - 35 FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-821
SELECT - + SUM ( ALL col2 ) + - - 35 FROM tab2 AS cor0
----
-86

query I rowsort
SELECT - col1 * - col2 FROM tab0 AS cor0 WHERE - col2 * 19 IS NULL
----

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

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

query I rowsort
SELECT ALL col2 + - ( + ( col2 ) ) + - col1 + - col0 FROM tab2
----
-141
-142
-97

query II rowsort
SELECT 25 * - col2 + col0 AS col2, + col0 * + col1 AS col1 FROM tab0
----
-1160
1215
-163
1827
-2378
97

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT ALL - MAX( DISTINCT + + ( + 28 ) ) + - COUNT( * ) AS col2 FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL - MAX ( DISTINCT + + ( + 28 ) ) + - COUNT ( * ) AS col2 FROM tab2
----
-31

query I rowsort
SELECT - - 64 AS col1 FROM tab0 WHERE NULL NOT BETWEEN col1 + + 50 + - 5 * - - ( + 77 ) AND 54
----

onlyif mysql # DIV for integer division: 
query II rowsort label-829
SELECT ALL col0 DIV col0 + + + col0 col1, col0 FROM tab1
----
52
51
86
85
92
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-829
SELECT ALL col0 / col0 + + + col0 col1, col0 FROM tab1
----
52
51
86
85
92
91

query III rowsort
SELECT * FROM tab0 WHERE NULL < NULL OR NOT col2 * col1 < NULL
----

query I rowsort
SELECT + 78 + + col2 AS col2 FROM tab1
----
137
146
174

query II rowsort
SELECT + col1 AS col2, - col0 + - 5 AS col1 FROM tab1 AS cor0
----
14
-56
47
-96
5
-90

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-834
SELECT COUNT( * ) DIV 41 - COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-834
SELECT COUNT ( * ) / 41 - COUNT ( * ) FROM tab2
----
-3

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

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

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT - col1 + + 86 / + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-838
SELECT DISTINCT 84 * - - CAST( col0 AS SIGNED ) FROM tab1
----
4284
7140
7644

skipif mysql # not compatible
query I rowsort label-838
SELECT DISTINCT 84 * - - CAST ( col0 AS INTEGER ) FROM tab1
----
4284
7140
7644

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

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT 68 * - MIN( + ( - + 67 ) ) AS col0 FROM tab1
----
4556

skipif mysql # not compatible
query I rowsort label-840
SELECT 68 * - MIN ( + ( - + 67 ) ) AS col0 FROM tab1
----
4556

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT DISTINCT COUNT( * ) * - + 29 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-841
SELECT DISTINCT COUNT ( * ) * - + 29 FROM tab1
----
-87

query I rowsort
SELECT DISTINCT col2 * - - col1 * + - 11 AS col1 FROM tab0
----
-1089
-2310
-41877

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-844
SELECT col2 * - col2 * - CAST( - + 34 AS SIGNED ) AS col1 FROM tab0
----
-333234
-3400
-75106

skipif mysql # not compatible
query I rowsort label-844
SELECT col2 * - col2 * - CAST ( - + 34 AS INTEGER ) AS col1 FROM tab0
----
-333234
-3400
-75106

query I rowsort
SELECT + 44 * col1 + - col2 FROM tab1
----
161
2000
520

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

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

query I rowsort
SELECT + + 79 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

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

skipif mysql # not compatible
query I rowsort label-848
SELECT ALL + MIN ( DISTINCT col0 ) + + + 62 AS col1 FROM tab0 cor0
----
77

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

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

query I rowsort
SELECT - ( + col1 ) * - - col1 + + - col2 AS col2 FROM tab0 cor0
----
-100
-451
-6608

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-853
SELECT ALL + CAST( NULL AS SIGNED ) * - - col2 / - - col0 * ( - col2 ), - col1 AS col0 FROM tab0 AS cor0 WHERE NOT 87 + - - col2 + col2 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-853
SELECT ALL + CAST ( NULL AS INTEGER ) * - - col2 / - - col0 * ( - col2 ), - col1 AS col0 FROM tab0 AS cor0 WHERE NOT 87 + - - col2 + col2 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-855
SELECT ( - - 74 ) * - CAST( - 71 AS SIGNED ) * ( - + ( + col1 ) ) * + col0 * - col2 col0 FROM tab2
----
1035668480
1531278300
283495332

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-855
SELECT ( - - 74 ) * - CAST ( - 71 AS INTEGER ) * ( - + ( + col1 ) ) * + col0 * - col2 col0 FROM tab2
----
1035668480
1531278300
283495332

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - + col0 col1 FROM tab0
----
-174
-194
-30

query I rowsort
SELECT DISTINCT - 84 * + col2 * col2 + col2 AS col2 FROM tab0
----
-185509
-823185
-8390

query I rowsort
SELECT ALL 75 - ( col2 ) FROM tab0
----
-24
28
65

query I rowsort
SELECT DISTINCT - ( - 13 ) - - 4 FROM tab2 AS cor0
----
17

query I rowsort
SELECT + 12 * - col0 + - + col0 AS col0 FROM tab2 AS cor0
----
-598
-832
-975

query II rowsort
SELECT ALL + col0 - col0, 18 AS col2 FROM tab2 AS cor0
----
0
18
0
18
0
18

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

onlyif mysql # aggregate syntax: 
query II rowsort label-863
SELECT DISTINCT + 93 AS col2, COUNT( * ) * 66 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
93
594

skipif mysql # not compatible
query II rowsort label-863
SELECT DISTINCT + 93 AS col2, COUNT ( * ) * 66 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
93
594

query I rowsort
SELECT ALL + 16 * 48 FROM tab2 AS cor0
----
768
768
768

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-867
SELECT ALL 49 + + CAST( 87 AS DECIMAL ) AS col0 FROM tab0 cor0 WHERE NULL < + col0
----

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL 49 + + CAST ( 87 AS REAL ) AS col0 FROM tab0 cor0 WHERE NULL < + col0
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-869
SELECT + COUNT( * ), COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT col0 BETWEEN ( + col0 ) AND - 37 DIV 91 * + col0 * - + col1
----
3
3

skipif mysql # not compatible
query II rowsort label-869
SELECT + COUNT ( * ), COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT col0 BETWEEN ( + col0 ) AND - 37 / 91 * + col0 * - + col1
----
3
3

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

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

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

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT + - ( - col1 ) BETWEEN ( ( + - 23 ) + - col2 ) AND - ( - 26 )
----
-81

query I rowsort
SELECT ALL 41 * - + col2 AS col1 FROM tab2
----
-1640
-2378
-943

query I rowsort
SELECT DISTINCT 81 * ( col1 ) AS col0 FROM tab0
----
1701
6561
81

query III rowsort
SELECT * FROM tab1 WHERE NOT - 24 BETWEEN + + 55 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-876
SELECT DISTINCT + 57 + ( - + CAST( + + 13 AS DECIMAL ) ) FROM tab1 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-876
SELECT DISTINCT + 57 + ( - + CAST ( + + 13 AS REAL ) ) FROM tab1 WHERE NOT - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 9 col0 FROM tab1 AS cor0
----
100
60
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 37 IS NULL )
----

query I rowsort
SELECT ALL + - col0 + - col1 AS col2 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-881
SELECT DISTINCT - 88 - - CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-109
-169
-89

skipif mysql # not compatible
query I rowsort label-881
SELECT DISTINCT - 88 - - CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-109
-169
-89

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-885
SELECT + col1 + - 29 DIV col0 DIV + - col1 col2, + col1 FROM tab1
----
14
14
47
47
5
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-885
SELECT + col1 + - 29 / col0 / + - col1 col2, + col1 FROM tab1
----
14
14
47
47
5
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT ALL COUNT( * ) + 60 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-887
SELECT ALL COUNT ( * ) + 60 FROM tab1
----
63

query I rowsort
SELECT DISTINCT - col2 - + 83 AS col2 FROM tab0
----
-130
-182
-93

query II rowsort
SELECT + 93 AS col2, col1 * + col2 FROM tab2
----
93
1173
93
3080
93
3886

query I rowsort
SELECT ALL + col2 + + - col0 AS col2 FROM tab2 cor0
----
-17
-23
-24

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-892
SELECT ALL + + 93 / - + CAST( NULL AS SIGNED ) * 12 + COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-892
SELECT ALL + + 93 / - + CAST ( NULL AS INTEGER ) * 12 + COUNT ( * ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT + col0 * + 84 FROM tab1 AS cor0
----
4284
7140
7644

query I rowsort
SELECT - 24 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT ALL - 2 - - + col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-896
SELECT DISTINCT col0 * - - col2, col2 + CAST( - 37 AS SIGNED ) AS col0 FROM tab2
----
1058
-14
2560
3
4350
21

skipif mysql # not compatible
query II rowsort label-896
SELECT DISTINCT col0 * - - col2, col2 + CAST ( - 37 AS INTEGER ) AS col0 FROM tab2
----
1058
-14
2560
3
4350
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-897
SELECT ALL + ( - + CAST( + col0 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-897
SELECT ALL + ( - + CAST ( + col0 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE 47 + col1 - col1 IN ( - 92 )
----
0

skipif mysql # not compatible
query I rowsort label-898
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE 47 + col1 - col1 IN ( - 92 )
----
0

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

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

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

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

query II rowsort
SELECT + 22 AS col1, 30 FROM tab1
----
22
30
22
30
22
30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 + - - 96 NOT BETWEEN - col1 AND + col0 - + 98 + + - ( 98 ) + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT - 5 * + 86 * + + COUNT( * ) col2 FROM tab0
----
-1290

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-904
SELECT - 5 * + 86 * + + COUNT ( * ) col2 FROM tab0
----
-1290

query I rowsort
SELECT + 71 * - 30 FROM tab0
----
-2130
-2130
-2130

onlyif mysql # DIV for integer division: 
query II rowsort label-906
SELECT DISTINCT + col0 AS col1, 85 * 47 DIV col2 * - 74 AS col1 FROM tab1 AS cor0
----
51
-3034
85
-4958
91
-4292

skipif mysql # not compatible
query II rowsort label-906
SELECT DISTINCT + col0 AS col1, 85 * 47 / col2 * - 74 AS col1 FROM tab1 AS cor0
----
51
-3034
85
-4958
91
-4292

query I rowsort
SELECT + + 71 + + col0 FROM tab1 cor0
----
122
156
162

query II rowsort
SELECT ALL - 89, col2 FROM tab1 cor0
----
-89
59
-89
68
-89
96

query I rowsort
SELECT + ( - + col0 ) + - col0 FROM tab2 AS cor0
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT - COUNT( * ) + 36 FROM tab0 cor0
----
33

skipif mysql # not compatible
query I rowsort label-910
SELECT - COUNT ( * ) + 36 FROM tab0 cor0
----
33

query III rowsort
SELECT * FROM tab1 WHERE + col2 = ( 94 * + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < ( + 70 )
----

query I rowsort
SELECT DISTINCT - col0 - + col1 * + col2 AS col1 FROM tab1
----
-1395
-3287
-380

query I rowsort
SELECT + ( 47 ) + + 43 AS col1 FROM tab2
----
90
90
90

onlyif mysql # DIV for integer division: 
query I rowsort label-915
SELECT col1 + + 98 DIV 76 AS col0 FROM tab0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-915
SELECT col1 + + 98 / 76 AS col0 FROM tab0
----
2
22
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 + col2 col0 FROM tab1
----
146
155
183

query I rowsort
SELECT - 39 + col0 FROM tab1 WHERE ( 36 ) IN ( 75 / - col0 )
----

query I rowsort
SELECT ALL + col2 + col0 * + col0 AS col1 FROM tab1
----
2697
7284
8349

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * 32 AS col2 FROM tab1
----
-1504
-160
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT ALL + 99 * COUNT( * ) FROM tab0 WHERE NOT + 31 NOT BETWEEN - col2 AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-923
SELECT ALL + 99 * COUNT ( * ) FROM tab0 WHERE NOT + 31 NOT BETWEEN - col2 AND - col0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-925
SELECT ALL 30 DIV col0 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-925
SELECT ALL 30 / col0 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - 92 + col2 FROM tab2
----
-34
-52
-69

query I rowsort
SELECT ALL col2 * col2 AS col1 FROM tab1 WHERE NOT NULL = col2 + - col1 * + 43
----

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

query I rowsort
SELECT DISTINCT 82 * - 30 AS col0 FROM tab2
----
-2460

onlyif mysql # DIV for integer division: 
query I rowsort label-930
SELECT col0 DIV col0 + 4 FROM tab2
----
5
5
5

skipif mysql # not compatible
query I rowsort label-930
SELECT col0 / col0 + 4 FROM tab2
----
5
5
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-931
SELECT 34 DIV - CAST( ( MIN( DISTINCT + col2 ) ) * + COUNT( DISTINCT col0 ) AS SIGNED ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-931
SELECT 34 / - CAST ( ( MIN ( DISTINCT + col2 ) ) * + COUNT ( DISTINCT col0 ) AS INTEGER ) FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-932
SELECT CAST( + 0 AS SIGNED ) DIV col0 + 1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-932
SELECT CAST ( + 0 AS INTEGER ) / col0 + 1 FROM tab1
----
1
1
1

query I rowsort
SELECT - col2 * col0 - col2 * + col1 AS col0 FROM tab2 WHERE NOT - 88 * - col1 IS NULL
----
-2231
-5640
-8236

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-934
SELECT DISTINCT 16 DIV + COUNT( * ) FROM tab0 WHERE - col0 * 77 IS NOT NULL
----
5

skipif mysql # not compatible
query I rowsort label-934
SELECT DISTINCT 16 / + COUNT ( * ) FROM tab0 WHERE - col0 * 77 IS NOT NULL
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT DISTINCT SUM( 77 ) * - 78 AS col0 FROM tab0
----
-18018

skipif mysql # not compatible
query I rowsort label-935
SELECT DISTINCT SUM ( 77 ) * - 78 AS col0 FROM tab0
----
-18018

query I rowsort
SELECT DISTINCT + 42 / + ( 17 ) AS col1 FROM tab0 WHERE - 75 >= + 20 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-937
SELECT DISTINCT + MIN( DISTINCT ( - ( col1 ) ) ) * + 81 FROM tab2
----
-6237

skipif mysql # not compatible
query I rowsort label-937
SELECT DISTINCT + MIN ( DISTINCT ( - ( col1 ) ) ) * + 81 FROM tab2
----
-6237

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

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

skipif mysql # not compatible
query I rowsort label-939
SELECT + 23 / col0 FROM tab0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-940
SELECT - col1 DIV 64 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-940
SELECT - col1 / 64 AS col0 FROM tab1
----
0
0
0

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

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

query I rowsort
SELECT + col2 + + col2 * + 19 AS col2 FROM tab2
----
1160
460
800

query III rowsort
SELECT * FROM tab1 WHERE + 5 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE - col2 NOT IN ( + col1 + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-944
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE - col2 NOT IN ( + col1 + col2 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT + 13 + COUNT( * ) FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-945
SELECT + 13 + COUNT ( * ) FROM tab0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT DISTINCT - MIN( col1 ) * 82 AS col2 FROM tab1 AS cor0
----
-410

skipif mysql # not compatible
query I rowsort label-946
SELECT DISTINCT - MIN ( col1 ) * 82 AS col2 FROM tab1 AS cor0
----
-410

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT + COUNT( * ) FROM tab2 cor0 WHERE NOT col0 * - col1 NOT IN ( - 25 )
----
0

skipif mysql # not compatible
query I rowsort label-947
SELECT + COUNT ( * ) FROM tab2 cor0 WHERE NOT col0 * - col1 NOT IN ( - 25 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-948
SELECT ( - col1 ) + ( 3 ) FROM tab0 AS cor0 WHERE NOT - ( - 62 ) + + 21 BETWEEN NULL AND + CAST( col1 AS SIGNED )
----
-18
-78
2

skipif mysql # not compatible
query I rowsort label-948
SELECT ( - col1 ) + ( 3 ) FROM tab0 AS cor0 WHERE NOT - ( - 62 ) + + 21 BETWEEN NULL AND + CAST ( col1 AS INTEGER )
----
-18
-78
2

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT DISTINCT + ( - SUM( ALL + col1 ) ) * + ( - 16 ) AS col2 FROM tab0 AS cor0
----
1648

skipif mysql # not compatible
query I rowsort label-949
SELECT DISTINCT + ( - SUM ( ALL + col1 ) ) * + ( - 16 ) AS col2 FROM tab0 AS cor0
----
1648

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT ALL - MIN( ALL - ( - col1 ) ) col2 FROM tab1
----
-5

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 * + col2 col1 FROM tab1
----
4661
5372
7584

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * 96 + col2 * 36 > + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-954
SELECT + + ( 36 ) DIV 59 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-954
SELECT + + ( 36 ) / 59 AS col0 FROM tab1 AS cor0
----
0
0
0

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-956
SELECT * FROM tab2 cor0 WHERE NOT ( - CAST( NULL AS DECIMAL ) * + col2 ) < NULL
----

skipif mysql # not compatible
query III rowsort label-956
SELECT * FROM tab2 cor0 WHERE NOT ( - CAST ( NULL AS REAL ) * + col2 ) < NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-958
SELECT DISTINCT - + col2 DIV + col1 FROM tab1 cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-958
SELECT DISTINCT - + col2 / + col1 FROM tab1 cor0
----
-1
-11
-6

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 90 + 17 ) NOT IN ( col2 * 27 )
----

query I rowsort
SELECT ALL + 98 * + - col2 * - col1 + + col0 * col1 AS col1 FROM tab2
----
117300
306768
385853

query I rowsort
SELECT + 22 + + 44 FROM tab2
----
66
66
66

query I rowsort
SELECT + ( - + 43 ) + + col0 * col2 AS col0 FROM tab0
----
662
827
9560

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

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

query I rowsort
SELECT col0 + col0 * - 10 AS col2 FROM tab2 AS cor0
----
-414
-576
-675

query I rowsort
SELECT - col0 * - 50 - - 89 AS col2 FROM tab0 AS cor0
----
4439
4939
839

query I rowsort
SELECT - ( 3 ) * + col2 FROM tab1 AS cor0
----
-177
-204
-288

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( 64 ) * - 67 + col0 AND col0 - ( 76 ) * - col0
----

query I rowsort
SELECT DISTINCT col2 + + ( 54 ) FROM tab0
----
101
153
64

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT ALL SUM( DISTINCT 27 ) AS col1 FROM tab1, tab0 cor0
----
27

skipif mysql # not compatible
query I rowsort label-971
SELECT ALL SUM ( DISTINCT 27 ) AS col1 FROM tab1, tab0 cor0
----
27

query I rowsort
SELECT DISTINCT ( - 49 ) - + col0 FROM tab2 AS cor0
----
-113
-124
-95

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-974
SELECT ALL + MIN ( DISTINCT col2 ) col2 FROM tab0 cor0
----
10

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

query I rowsort
SELECT - 85 * col0 + - col2 - col2 * + col1 FROM tab2 cor0
----
-10319
-5106
-8560

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

query I rowsort
SELECT ALL - col2 * 24 FROM tab2
----
-1392
-552
-960

query I rowsort
SELECT - col2 * - col1 * col0 * - + 31 FROM tab2
----
-1672698
-6110720
-9034950

query II rowsort
SELECT + col1 * + + col2 AS col0, col2 FROM tab0
----
210
10
3807
47
99
99

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

onlyif mysql # DIV for integer division: 
query I rowsort label-982
SELECT ( col1 ) DIV - 55 + - 44 + ( col1 + col1 ) * - col0 AS col0 FROM tab0
----
-238
-2475
-3698

skipif mysql # not compatible
query I rowsort label-982
SELECT ( col1 ) / - 55 + - 44 + ( col1 + col1 ) * - col0 AS col0 FROM tab0
----
-238
-2475
-3698

query II rowsort
SELECT ALL - 98 * - 60, 85 AS col2 FROM tab2
----
5880
85
5880
85
5880
85

query I rowsort
SELECT DISTINCT + ( + ( - col1 ) ) * col0 AS col1 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT + 65 * - - col0 FROM tab1
----
3315
5525
5915

query I rowsort
SELECT ALL 94 * + col0 AS col1 FROM tab2
----
4324
6016
7050

query II rowsort
SELECT ALL - + 25 * col0, col1 AS col1 FROM tab0 AS cor0
----
-2175
21
-2425
1
-375
81

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-989
SELECT DISTINCT ( col1 ) DIV CAST( + + col1 AS SIGNED ) * - col0 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-989
SELECT DISTINCT ( col1 ) / CAST ( + + col1 AS INTEGER ) * - col0 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT - col0 + 82 AS col2 FROM tab2 cor0 WHERE NOT ( - col1 * + - col2 ) IS NULL
----
18
36
7

onlyif mysql # DIV for integer division: 
query I rowsort label-991
SELECT ALL - col0 DIV 39 * col1 DIV 42 AS col0 FROM tab1 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-991
SELECT ALL - col0 / 39 * col1 / 42 AS col0 FROM tab1 AS cor0
----
-2
0
0

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

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

query I rowsort
SELECT + 92 * - 39 AS col2 FROM tab0
----
-3588
-3588
-3588

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

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

query I rowsort
SELECT - col1 * - - 1 + - col1 * + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-2397
-5005
-5092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-996
SELECT + COUNT( + col2 ) FROM tab1 AS cor0 WHERE - CAST( - 34 AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-996
SELECT + COUNT ( + col2 ) FROM tab1 AS cor0 WHERE - CAST ( - 34 AS INTEGER ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT DISTINCT - COUNT( * ) + - 59 FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-997
SELECT DISTINCT - COUNT ( * ) + - 59 FROM tab1 AS cor0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-998
SELECT + CAST( + 87 AS SIGNED ) col2 FROM tab2 AS cor0
----
87
87
87

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

query I rowsort
SELECT DISTINCT 98 + - ( + + col0 ) FROM tab0
----
1
11
83

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

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

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

query I rowsort
SELECT DISTINCT - col2 * + col1 + col2 AS col2 FROM tab0
----
-200
-3760
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT ( - + MAX( DISTINCT + col1 ) ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-1003
SELECT ( - + MAX ( DISTINCT + col1 ) ) FROM tab2
----
-77

query I rowsort
SELECT - col1 FROM tab1 WHERE ( NOT + 84 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT ALL - + MIN( DISTINCT + + ( - col2 ) ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-1005
SELECT ALL - + MIN ( DISTINCT + + ( - col2 ) ) AS col0 FROM tab2 AS cor0
----
58

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

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

query I rowsort
SELECT - ( + col0 ) FROM tab2 cor0 WHERE + col1 - 53 IN ( - 37 + 72 + - col1 )
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1010
SELECT col0 DIV - 65 - - + 35 + - col1 AS col0 FROM tab0 AS cor0
----
-46
13
33

skipif mysql # not compatible
query I rowsort label-1010
SELECT col0 / - 65 - - + 35 + - col1 AS col0 FROM tab0 AS cor0
----
-46
13
33

query II rowsort
SELECT DISTINCT 93, - 14 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
93
-14

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT ALL COUNT( * ) + - MIN( - 51 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL COUNT ( * ) + - MIN ( - 51 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - ( + + col0 ) * + + col2 AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT - 3 * col0 AS col1 FROM tab0
----
-261
-291
-45

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) = 71
----

query II rowsort
SELECT DISTINCT - col1, 97 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col1 NOT BETWEEN col2 + + 42 / - col2 AND - 59
----

query I rowsort
SELECT ALL + + col0 AS col1 FROM tab1 WHERE NOT + - col2 + - + col0 / - col2 * - + col1 IS NULL
----
51
85
91

query I rowsort
SELECT ALL + 38 * + col0 FROM tab1
----
1938
3230
3458

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 62 IN ( + 97 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT 67 > NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1024
SELECT DISTINCT + + MAX ( ALL + col2 ) col2 FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL + - 54 * + - 12 FROM tab1 AS cor0
----
648
648
648

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

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

query I rowsort
SELECT DISTINCT col0 * - - col1 * col1 AS col0 FROM tab1
----
201019
2125
9996

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL >= ( - 90 )
----

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

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

query I rowsort
SELECT ALL 27 + + - 50 AS col0 FROM tab2 AS cor0
----
-23
-23
-23

query I rowsort
SELECT ALL col0 * + col1 + + ( + col2 ) + + 10 FROM tab1
----
4355
494
820

query I rowsort
SELECT DISTINCT - col0 + - col2 * col2 AS col0 FROM tab0
----
-187
-2224
-9898

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT - 41 + + MIN( DISTINCT - 9 ) AS col1 FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-1037
SELECT - 41 + + MIN ( DISTINCT - 9 ) AS col1 FROM tab2
----
-50

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1039
SELECT DISTINCT col2 DIV - col2 - + + 30 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-1039
SELECT DISTINCT col2 / - col2 - + + 30 FROM tab1
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1040
SELECT + COUNT( - + col1 ) DIV SUM( DISTINCT + 52 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1040
SELECT + COUNT ( - + col1 ) / SUM ( DISTINCT + 52 ) AS col1 FROM tab0 AS cor0
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + - 35 col2 FROM tab0 AS cor0
----
-134
-45
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT ALL + MIN( + - ( - col2 ) ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL + MIN ( + - ( - col2 ) ) FROM tab1 cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1044
SELECT DISTINCT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1, - 88 FROM tab2 AS cor0
----
NULL
-88

skipif mysql # not compatible
query II rowsort label-1044
SELECT DISTINCT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, - 88 FROM tab2 AS cor0
----
NULL
-88

query I rowsort
SELECT DISTINCT - col2 * + 90 FROM tab1 AS cor0
----
-5310
-6120
-8640

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * - ( - col0 ) > + + ( col1 ) * + ( col1 ) / + - col2 + col2
----
97
1
99

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1051
SELECT 93 + - col2 col1, CAST( + - 3 AS SIGNED ) - - 64 AS col0, + + 18 FROM tab2 WHERE NOT ( NOT ( NULL ) <> - col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-1051
SELECT 93 + - col2 col1, CAST ( + - 3 AS INTEGER ) - - 64 AS col0, + + 18 FROM tab2 WHERE NOT ( NOT ( NULL ) <> - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 65 * - 45 col0 FROM tab2
----
-149175
-195975
-225225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1053
SELECT COUNT( ALL - - CAST( 29 AS SIGNED ) ) * - COUNT( * ) AS col1 FROM tab0
----
-9

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

query I rowsort
SELECT - 1 * + 80 FROM tab2
----
-80
-80
-80

onlyif mysql # DIV for integer division: 
query II rowsort label-1055
SELECT - 19 * col2 AS col2, col0 DIV + col0 FROM tab1
----
-1121
1
-1292
1
-1824
1

skipif mysql # not compatible
query II rowsort label-1055
SELECT - 19 * col2 AS col2, col0 / + col0 FROM tab1
----
-1121
1
-1292
1
-1824
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1056
SELECT + COUNT( DISTINCT - 16 ) AS col2, 53 col0 FROM tab0 WHERE NOT + + 3 IS NOT NULL
----
0
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1056
SELECT + COUNT ( DISTINCT - 16 ) AS col2, 53 col0 FROM tab0 WHERE NOT + + 3 IS NOT NULL
----
0
53

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1058
SELECT 71 + + ( - col0 ) AS col2, 59 DIV - col1 FROM tab0
----
-16
-2
-26
-59
56
0

skipif mysql # not compatible
query II rowsort label-1058
SELECT 71 + + ( - col0 ) AS col2, 59 / - col1 FROM tab0
----
-16
-2
-26
-59
56
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT ALL - MAX( DISTINCT - - 62 ) FROM tab2
----
-62

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL - MAX ( DISTINCT - - 62 ) FROM tab2
----
-62

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

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

skipif mysql # not compatible
query I rowsort label-1061
SELECT COUNT ( * ) / 98 FROM tab0 AS cor0
----
0

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

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

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

query II rowsort
SELECT ALL - ( col1 ) + - ( - col0 ), col1 AS col2 FROM tab2
----
-13
77
-5
51
8
67

query I rowsort
SELECT 14 * 53 - - + 63 FROM tab1
----
805
805
805

query I rowsort
SELECT ALL col0 * - 48 AS col1 FROM tab1 AS cor0
----
-2448
-4080
-4368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1067
SELECT + CAST( + + col2 AS SIGNED ) + + col2 * + + col1 FROM tab0 AS cor0
----
198
220
3854

skipif mysql # not compatible
query I rowsort label-1067
SELECT + CAST ( + + col2 AS INTEGER ) + + col2 * + + col1 FROM tab0 AS cor0
----
198
220
3854

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT MIN( ALL + col0 ) + SUM( DISTINCT - + col0 ) FROM tab0 AS cor0
----
-184

skipif mysql # not compatible
query I rowsort label-1068
SELECT MIN ( ALL + col0 ) + SUM ( DISTINCT - + col0 ) FROM tab0 AS cor0
----
-184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1069
SELECT ALL + COUNT( * ) DIV + - 98 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-1069
SELECT ALL + COUNT ( * ) / + - 98 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT + 32 AS col0 FROM tab0 WHERE NOT + + ( + col0 ) * - + 4 IS NOT NULL
----

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

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

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

query II rowsort
SELECT DISTINCT 17, col2 FROM tab0 AS cor0
----
17
10
17
47
17
99

query III rowsort
SELECT 67, - 52 AS col2, + col2 AS col1 FROM tab1
----
9 values hashing to fdab08d900d58006df76a2959e2fc935

onlyif mysql # DIV for integer division: 
query I rowsort label-1075
SELECT DISTINCT - 69 DIV - 10 AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-1075
SELECT DISTINCT - 69 / - 10 AS col1 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-1076
SELECT DISTINCT + 31 AS col2, - COUNT( ALL - - col0 ) FROM tab2
----
31
-3

skipif mysql # not compatible
query II rowsort label-1076
SELECT DISTINCT + 31 AS col2, - COUNT ( ALL - - col0 ) FROM tab2
----
31
-3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT - + 8 + MIN( + 36 ) AS col1 FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-1079
SELECT - + 8 + MIN ( + 36 ) AS col1 FROM tab1 AS cor0
----
28

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

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

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

query I rowsort
SELECT + - col1 * col2 + - col2 AS col2 FROM tab2 AS cor0
----
-1196
-3120
-3944

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1085
SELECT ALL - CAST( - 96 AS SIGNED ), col0 DIV - + 23 AS col1 FROM tab1 AS cor0
----
96
-2
96
-3
96
-3

skipif mysql # not compatible
query II rowsort label-1085
SELECT ALL - CAST ( - 96 AS INTEGER ), col0 / - + 23 AS col1 FROM tab1 AS cor0
----
96
-2
96
-3
96
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1086
SELECT + col1 + + + 89 + + CAST( NULL AS DECIMAL ) / - col2 - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1086
SELECT + col1 + + + 89 + + CAST ( NULL AS REAL ) / - col2 - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 6 col1 FROM tab2 AS cor0
----
-17
-34
-52

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1089
SELECT ALL + + 65 * - 6 + - col2 DIV - 42 FROM tab0 cor0
----
-388
-389
-390

skipif mysql # not compatible
query I rowsort label-1089
SELECT ALL + + 65 * - 6 + - col2 / - 42 FROM tab0 cor0
----
-388
-389
-390

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

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

query I rowsort
SELECT DISTINCT 48 + col2 - - + 10 FROM tab0
----
105
157
68

query I rowsort
SELECT 48 * ( + 28 ) + - 87 FROM tab1
----
1257
1257
1257

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT DISTINCT 15 + + - COUNT( * ) AS col1 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-1094
SELECT DISTINCT 15 + + - COUNT ( * ) AS col1 FROM tab0
----
12

query I rowsort
SELECT ALL + 27 - - + col0 AS col0 FROM tab1
----
112
118
78

query I rowsort
SELECT DISTINCT col0 + - col2 + + - 51 FROM tab1
----
-25
-28
-96

query I rowsort
SELECT DISTINCT 87 - + 13 AS col1 FROM tab0
----
74

query I rowsort
SELECT ALL + 2 * + + 46 - + col1 FROM tab1 AS cor0
----
45
78
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1099
SELECT ALL - CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT ( 31 ) NOT IN ( + col2 * + col0 )
----

skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL - CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT ( 31 ) NOT IN ( + col2 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT COUNT( 16 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL > + 72
----
0

skipif mysql # not compatible
query I rowsort label-1100
SELECT COUNT ( 16 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL > + 72
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1102
SELECT ALL - col0 DIV ( - col1 ) DIV col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1102
SELECT ALL - col0 / ( - col1 ) / col2 FROM tab2
----
0
0
0

query II rowsort
SELECT - col2 * + - col2 * col1 * + col1, + col1 * - - col1 * col1 AS col0 FROM tab2
----
1375929
132651
15100996
300763
9486400
456533

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1106
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( ( + ( - - 23 ) ) AS SIGNED ) + - col2 + - col0 * - - col2 BETWEEN - 55 * col2 AND col1
----
46
51
23

skipif mysql # not compatible
query III rowsort label-1106
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( ( + ( - - 23 ) ) AS INTEGER ) + - col2 + - col0 * - - col2 BETWEEN - 55 * col2 AND col1
----
46
51
23

query I rowsort
SELECT ALL - col1 * + + col0 * 84 AS col1 FROM tab1 AS cor0
----
-35700
-359268
-59976

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1108
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col1 * 49 + - - CAST( NULL AS SIGNED ) + + col0 * - col2 + - 6 + + CAST( NULL AS DECIMAL ), 89 * 98 * - col0 )
----

skipif mysql # not compatible
query III rowsort label-1108
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col1 * 49 + - - CAST ( NULL AS INTEGER ) + + col0 * - col2 + - 6 + + CAST ( NULL AS REAL ), 89 * 98 * - col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT ALL 39 * - - COUNT( * ) * - COUNT( * ) FROM tab2
----
-351

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL 39 * - - COUNT ( * ) * - COUNT ( * ) FROM tab2
----
-351

query I rowsort
SELECT col0 * 8 AS col0 FROM tab1
----
408
680
728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1112
SELECT DISTINCT + 34 * + - CAST( NULL AS SIGNED ) * 63 * - col0 + + col1 + - col0 * 87 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1112
SELECT DISTINCT + 34 * + - CAST ( NULL AS INTEGER ) * 63 * - col0 + + col1 + - col0 * 87 AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1113
SELECT ALL 29 * + - col2 + CAST( - col2 AS SIGNED ) FROM tab2
----
-1200
-1740
-690

skipif mysql # not compatible
query I rowsort label-1113
SELECT ALL 29 * + - col2 + CAST ( - col2 AS INTEGER ) FROM tab2
----
-1200
-1740
-690

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT ALL COUNT( DISTINCT + 12 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL COUNT ( DISTINCT + 12 ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * - 60 >= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1117
SELECT + - CAST( - + ( - + col0 ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE - 69 IS NOT NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1117
SELECT + - CAST ( - + ( - + col0 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE - 69 IS NOT NULL
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 * - 97 <= ( - - col1 * - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1119
SELECT ALL 79 + + CAST( - 56 AS SIGNED ) * col1 FROM tab2
----
-2777
-3673
-4233

skipif mysql # not compatible
query I rowsort label-1119
SELECT ALL 79 + + CAST ( - 56 AS INTEGER ) * col1 FROM tab2
----
-2777
-3673
-4233

query I rowsort
SELECT - 45 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 71160abf09589695379a70558726f0ba

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + - 12 + 46 - + ( col0 ) AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2, col0 col1 FROM tab1 cor0
----
59
85
68
91
96
51

query I rowsort
SELECT 79 * + 28 - - col0 AS col2 FROM tab0
----
2227
2299
2309

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

query I rowsort
SELECT - 44 - col0 FROM tab0
----
-131
-141
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-1126
SELECT - col1 * col1 * + - 12 * + 31 - + 3 DIV - - 18 AS col1 FROM tab1
----
72912
821748
9300

skipif mysql # not compatible
query I rowsort label-1126
SELECT - col1 * col1 * + - 12 * + 31 - + 3 / - - 18 AS col1 FROM tab1
----
72912
821748
9300

query I rowsort
SELECT ALL - 18 * + col2 - 70 AS col0 FROM tab0
----
-1852
-250
-916

query I rowsort
SELECT DISTINCT - 31 + col1 AS col2 FROM tab2
----
20
36
46

query I rowsort
SELECT DISTINCT 31 - 62 FROM tab1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT ALL + - COUNT( * ) + MAX( DISTINCT + col0 ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL + - COUNT ( * ) + MAX ( DISTINCT + col0 ) FROM tab2 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-1131
SELECT - COUNT( col1 ) AS col2, 79 + 89 AS col0 FROM tab1 AS cor0
----
-3
168

skipif mysql # not compatible
query II rowsort label-1131
SELECT - COUNT ( col1 ) AS col2, 79 + 89 AS col0 FROM tab1 AS cor0
----
-3
168

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

query I rowsort
SELECT + - 3 * - 19 * + + col2 + 1 + col1 AS col2 FROM tab0 AS cor0
----
2761
5645
592

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1136
SELECT 51, - ( + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
51
NULL
51
NULL
51
NULL

skipif mysql # not compatible
query II rowsort label-1136
SELECT 51, - ( + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
51
NULL
51
NULL
51
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1138
SELECT + col1 col2, - 50 * - CAST( + ( - 50 ) AS SIGNED ) FROM tab1 AS cor0
----
14
-2500
47
-2500
5
-2500

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1138
SELECT + col1 col2, - 50 * - CAST ( + ( - 50 ) AS INTEGER ) FROM tab1 AS cor0
----
14
-2500
47
-2500
5
-2500

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

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

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

query I rowsort
SELECT + 43 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT ALL - 98 * + col2 AS col2 FROM tab2
----
-2254
-3920
-5684

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1143
SELECT * FROM tab2 WHERE + 53 * - CAST( + + 55 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-1143
SELECT * FROM tab2 WHERE + 53 * - CAST ( + + 55 AS INTEGER ) <= NULL
----

query II rowsort
SELECT ALL col0 + + - 22, + col2 FROM tab1 AS cor0
----
29
96
63
59
69
68

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

skipif mysql # not compatible
query I rowsort label-1145
SELECT MIN ( ALL - col0 ) AS col2 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT COUNT( * ) - - + 65 AS col1 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-1146
SELECT COUNT ( * ) - - + 65 AS col1 FROM tab2
----
68

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 IS NOT NULL AND NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 - + + col2 * - 71 FROM tab2
----
1587
2776
4043

query I rowsort
SELECT 48 - col1 * - - col1 FROM tab1
----
-148
-2161
23

query I rowsort
SELECT 34 + + col2 + + col0 FROM tab0 AS cor0
----
131
230
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1151
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE col2 = + + 31
----

skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE col2 = + + 31
----

query I rowsort
SELECT - - col1 * + 27 + + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT + 87 AS col0 FROM tab0 WHERE NULL > - ( + + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE - + 22 <= + + 55 * - + col0 * col1 + col0 / - + 81 * col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1156
SELECT + col1 DIV col2 * - - ( 48 ) FROM tab0
----
0
48
96

skipif mysql # not compatible
query I rowsort label-1156
SELECT + col1 / col2 * - - ( 48 ) FROM tab0
----
0
48
96

query I rowsort
SELECT ALL - col1 + - 72 AS col2 FROM tab0
----
-153
-73
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT MIN( 57 ) FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-1158
SELECT MIN ( 57 ) FROM tab1
----
57

query II rowsort
SELECT ALL + col2 AS col0, + 96 FROM tab2
----
23
96
40
96
58
96

query II rowsort
SELECT DISTINCT + col2, + col1 * - 77 FROM tab1
----
59
-385
68
-3619
96
-1078

query II rowsort
SELECT col2 AS col2, - col2 + - - ( + + 2 ) FROM tab0
----
10
-8
47
-45
99
-97

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

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

query I rowsort
SELECT ALL + 5 * + col2 FROM tab2 cor0
----
115
200
290

query II rowsort
SELECT ALL + col1, 62 FROM tab0 cor0
----
1
62
21
62
81
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT + 54 + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 40 IS NOT NULL
----
54

skipif mysql # not compatible
query I rowsort label-1166
SELECT + 54 + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 40 IS NOT NULL
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1167
SELECT DISTINCT + - CAST( 38 AS SIGNED ) * col2 AS col0 FROM tab2 AS cor0 WHERE NOT col1 < - col2 * - col2
----

skipif mysql # not compatible
query I rowsort label-1167
SELECT DISTINCT + - CAST ( 38 AS INTEGER ) * col2 AS col0 FROM tab2 AS cor0 WHERE NOT col1 < - col2 * - col2
----

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

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

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

query I rowsort
SELECT + - 82 * + col0 AS col1 FROM tab2 AS cor0
----
-3772
-5248
-6150

onlyif mysql # DIV for integer division: 
query II rowsort label-1171
SELECT col0 AS col2, 51 + + col2 + + col2 DIV - col2 FROM tab0
----
15
97
87
60
97
149

skipif mysql # not compatible
query II rowsort label-1171
SELECT col0 AS col2, 51 + + col2 + + col2 / - col2 FROM tab0
----
15
97
87
60
97
149

query I rowsort
SELECT DISTINCT - ( - + 51 ) - 78 * + AVG ( col0 ) FROM tab0 WHERE col0 > NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1173
SELECT ALL 46 DIV - + col0 * - col2 * - col2 DIV + - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1173
SELECT ALL 46 / - + col0 * - col2 * - col2 / + - col2 FROM tab1
----
0
0
0

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

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

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

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

query I rowsort
SELECT DISTINCT - 31 * 16 AS col0 FROM tab0
----
-496

query I rowsort
SELECT DISTINCT ( - col1 ) + - col1 AS col1 FROM tab0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-1178
SELECT DISTINCT + COUNT( * ) AS col2, + MIN( - col0 ) FROM tab1
----
3
-91

skipif mysql # not compatible
query II rowsort label-1178
SELECT DISTINCT + COUNT ( * ) AS col2, + MIN ( - col0 ) FROM tab1
----
3
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-1179
SELECT col0 DIV 83 + - 88 FROM tab2 AS cor0
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-1179
SELECT col0 / 83 + - 88 FROM tab2 AS cor0
----
-88
-88
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1180
SELECT - COUNT( * ) DIV - 53 FROM tab0 WHERE + 47 - col2 < - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1180
SELECT - COUNT ( * ) / - 53 FROM tab0 WHERE + 47 - col2 < - CAST ( NULL AS INTEGER )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT ( - - COUNT( * ) ) col1 FROM tab0 WHERE - col2 NOT BETWEEN + 37 + col1 * - - ( - col0 ) * - 25 AND NULL
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT DISTINCT + SUM( DISTINCT 43 ) FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-1183
SELECT DISTINCT + SUM ( DISTINCT 43 ) FROM tab0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT ALL - SUM( + + 72 ) - COUNT( * ) FROM tab0 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-1184
SELECT ALL - SUM ( + + 72 ) - COUNT ( * ) FROM tab0 AS cor0
----
-219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1185
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE - CAST( col2 AS SIGNED ) >= 32
----

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE - CAST ( col2 AS INTEGER ) >= 32
----

query I rowsort
SELECT DISTINCT col1 - - col2 AS col2 FROM tab2 cor0
----
117
125
74

query I rowsort
SELECT + + 47 * - + ( col0 ) AS col0 FROM tab2 AS cor0
----
-2162
-3008
-3525

query II rowsort
SELECT ALL + col1 - + - col0, + 70 + + col2 + - 31 AS col1 FROM tab1 AS cor0
----
138
107
65
135
90
98

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

skipif mysql # not compatible
query I rowsort label-1189
SELECT + + col2 - - 78 / - col0 AS col1 FROM tab1 AS cor0
----
59
68
95

query II rowsort
SELECT - col1 - - col1 * + 97 * + 28 AS col1, + col2 * 42 FROM tab1 AS cor0
----
127605
2856
13575
2478
38010
4032

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

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

query I rowsort
SELECT + 99 * + col2 FROM tab0 AS cor0
----
4653
9801
990

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

query I rowsort
SELECT 99 * - + col1 FROM tab0
----
-2079
-8019
-99

query I rowsort
SELECT + 78 AS col1 FROM tab2, tab1 AS cor0 WHERE NOT + - 39 <> + - 71
----

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

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

query II rowsort
SELECT ALL col1, col1 * - col1 FROM tab2
----
51
-2601
67
-4489
77
-5929

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - ( - + col2 ) + - col0 col2 FROM tab2 AS cor0
----
1127
3016
3811

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT DISTINCT 74 + - COUNT( ALL - ( 13 ) ) FROM tab1 cor0 CROSS JOIN tab0 cor1 WHERE NULL = ( + 43 )
----
74

skipif mysql # not compatible
query I rowsort label-1202
SELECT DISTINCT 74 + - COUNT ( ALL - ( 13 ) ) FROM tab1 cor0 CROSS JOIN tab0 cor1 WHERE NULL = ( + 43 )
----
74

query II rowsort
SELECT 91 AS col0, col1 FROM tab0
----
91
1
91
21
91
81

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1205
SELECT - - CAST( NULL AS SIGNED ) * 51 AS col1, + col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-1205
SELECT - - CAST ( NULL AS INTEGER ) * 51 AS col1, + col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT - 1 * - col1 AS col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1207
SELECT + col1 DIV col2 - - col2 AS col1 FROM tab0 cor0
----
12
48
99

skipif mysql # not compatible
query I rowsort label-1207
SELECT + col1 / col2 - - col2 AS col1 FROM tab0 cor0
----
12
48
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1208
SELECT COUNT( * ) * COUNT( * ) AS col1, COUNT( * ) FROM tab2 cor0
----
9
3

skipif mysql # not compatible
query II rowsort label-1208
SELECT COUNT ( * ) * COUNT ( * ) AS col1, COUNT ( * ) FROM tab2 cor0
----
9
3

query I rowsort
SELECT col0 * col0 FROM tab0 AS cor0 WHERE NOT ( NOT - col1 * + col2 + + + col2 * col2 IS NOT NULL )
----
225
7569
9409

query I rowsort
SELECT - - 5 * - - col1 FROM tab1 AS cor0
----
235
25
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 16, col2 col0 FROM tab0 AS cor0
----
16
10
16
47
16
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1212
SELECT DISTINCT - CAST( + + col2 AS SIGNED ) + - col1 AS col0 FROM tab2 AS cor0
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-1212
SELECT DISTINCT - CAST ( + + col2 AS INTEGER ) + - col1 AS col0 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT ALL + 95 * - 3 + + col0 FROM tab2 AS cor0
----
-210
-221
-239

query II rowsort
SELECT col2 + - col0 AS col1, col1 FROM tab0
----
-77
21
2
1
32
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT COUNT( * ) + - ( 19 ) + - 10 * - MAX( col0 ) AS col0 FROM tab0
----
954

skipif mysql # not compatible
query I rowsort label-1215
SELECT COUNT ( * ) + - ( 19 ) + - 10 * - MAX ( col0 ) AS col0 FROM tab0
----
954

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 - + - 16 - 79 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1217
SELECT - 66 DIV 99 AS col0 FROM tab0 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1217
SELECT - 66 / 99 AS col0 FROM tab0 WHERE NULL IS NULL
----
0
0
0

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

query I rowsort
SELECT col2 + + col1 * + + 54 * - + 89 AS col2 FROM tab0
----
-100916
-389239
-4707

query III rowsort
SELECT ALL * FROM tab1 WHERE - 40 IS NULL
----

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

query I rowsort
SELECT ALL + - 7 * - + 13 * + - 2 - col0 + + col0 AS col0 FROM tab0 AS cor0
----
-182
-182
-182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab0 AS cor0 WHERE + col2 * - col1 NOT BETWEEN 70 AND NULL
----
-15
-87
-97

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

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

query I rowsort
SELECT DISTINCT - 16 FROM tab2, tab1 cor0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-1227
SELECT + + col2 + - ( - - col2 ) DIV + 60 + + col2 FROM tab1 cor0
----
118
135
191

skipif mysql # not compatible
query I rowsort label-1227
SELECT + + col2 + - ( - - col2 ) / + 60 + + col2 FROM tab1 cor0
----
118
135
191

query I rowsort
SELECT ALL 32 - 69 FROM tab0 AS cor0
----
-37
-37
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-1229
SELECT col0 DIV 24 + + - 84 col0 FROM tab1 AS cor0
----
-81
-81
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1229
SELECT col0 / 24 + + - 84 col0 FROM tab1 AS cor0
----
-81
-81
-82

query I rowsort
SELECT DISTINCT - 60 - + col1 AS col0 FROM tab0 cor0
----
-141
-61
-81

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT - col1 * + 61 NOT IN ( + + col0, col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 <= - + ( + + ( - + col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1237
SELECT ALL 2 DIV col2 col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1237
SELECT ALL 2 / col2 col0 FROM tab0
----
0
0
0

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1240
SELECT col1 DIV 78 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1240
SELECT col1 / 78 AS col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1241
SELECT ALL + + COUNT( + ( + CAST( + ( - col2 ) AS DECIMAL ) ) ) * - 99 FROM tab1 WHERE NOT + + 1 * 66 * + col0 + 75 - - + 1 IS NULL
----
-297

skipif mysql # not compatible
query I rowsort label-1241
SELECT ALL + + COUNT ( + ( + CAST ( + ( - col2 ) AS REAL ) ) ) * - 99 FROM tab1 WHERE NOT + + 1 * 66 * + col0 + 75 - - + 1 IS NULL
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT 34 * - SUM( DISTINCT + col2 ) AS col2 FROM tab0
----
-5304

skipif mysql # not compatible
query I rowsort label-1242
SELECT 34 * - SUM ( DISTINCT + col2 ) AS col2 FROM tab0
----
-5304

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT DISTINCT 56 * + + COUNT( * ) FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-1243
SELECT DISTINCT 56 * + + COUNT ( * ) FROM tab1 AS cor0
----
168

query I rowsort
SELECT ( - + 86 ) + + col0 AS col2 FROM tab2
----
-11
-22
-40

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

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

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

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

query I rowsort
SELECT col2 * - 23 * + ( - ( col0 ) ) + + 41 FROM tab2 AS cor0
----
100091
24375
58921

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1248
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 25 > CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1248
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 25 > CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT ALL - MAX( + - 28 ) + + MIN( ALL col1 ) AS col2 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-1249
SELECT ALL - MAX ( + - 28 ) + + MIN ( ALL col1 ) AS col2 FROM tab2 AS cor0
----
79

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

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

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

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

query II rowsort
SELECT col2, ( - + col2 ) FROM tab1
----
59
-59
68
-68
96
-96

query I rowsort
SELECT DISTINCT + col1 + 58 FROM tab1
----
105
63
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT DISTINCT + COUNT( * ) * - + COUNT( * ) * - 27 + + - COUNT( ALL + 9 ) FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-1255
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) * - 27 + + - COUNT ( ALL + 9 ) FROM tab1
----
240

query II rowsort
SELECT + 22 AS col1, col2 AS col2 FROM tab0
----
22
10
22
47
22
99

query I rowsort
SELECT ALL col0 + + col1 + + 49 AS col1 FROM tab2
----
146
190
191

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

query I rowsort
SELECT - col2 + + 97 AS col0 FROM tab1 AS cor0
----
1
29
38

query I rowsort
SELECT - 15 + + col0 + + col1 AS col1 FROM tab2 cor0
----
126
127
82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1261
SELECT col0 * - + 76 * + col0 + - + 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-1261
SELECT col0 * - + 76 * + col0 + - + CAST ( NULL AS REAL ) col1 FROM tab1
----
NULL
NULL
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT - - SUM( ALL col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-1264
SELECT - - SUM ( ALL col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT DISTINCT COUNT( * ) * - 78 FROM tab1 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-1265
SELECT DISTINCT COUNT ( * ) * - 78 FROM tab1 AS cor0
----
-234

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

skipif mysql # not compatible
query II rowsort label-1266
SELECT DISTINCT + + col1 / - + col2, - col1 AS col2 FROM tab0 AS cor0
----
-1
-81
-2
-21
0
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 81 * col2 AS col0, + col2 * col0 col2 FROM tab1 AS cor0
----
4779
5015
5508
6188
7776
4896

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1268
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-1268
SELECT - - CAST ( + col2 AS INTEGER ) AS col1, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT - COUNT( + + col0 ) * - + MAX( DISTINCT - ( + - col2 ) ) AS col2 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-1270
SELECT - COUNT ( + + col0 ) * - + MAX ( DISTINCT - ( + - col2 ) ) AS col2 FROM tab0
----
297

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE - 97 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1272
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE - 97 IS NULL
----
0

query II rowsort
SELECT ALL col2 AS col0, - col0 * + col1 + - col2 AS col2 FROM tab1
----
59
-484
68
-4345
96
-810

query I rowsort
SELECT ALL + 20 * - 14 FROM tab2
----
-280
-280
-280

onlyif mysql # DIV for integer division: 
query I rowsort label-1275
SELECT ALL - 10 DIV - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL - 10 / - col2 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT ALL - 44, 63 - - col0 AS col1 FROM tab0 cor0
----
-44
150
-44
160
-44
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT DISTINCT - 41 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-1277
SELECT DISTINCT - 41 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-38

query I rowsort
SELECT DISTINCT - 78 FROM tab1 WHERE + col1 IS NOT NULL
----
-78

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

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

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE col2 < + 37 + - 8
----

query I rowsort
SELECT ( + 37 ) * - - 70 AS col2 FROM tab1 cor0
----
2590
2590
2590

query I rowsort
SELECT - col1 * - col2 + + + 30 AS col2 FROM tab0 AS cor0
----
129
240
3837

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

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

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

query II rowsort
SELECT ALL + col0 + 12 AS col2, col2 AS col2 FROM tab0 AS cor0
----
109
99
27
47
99
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT + COUNT( * ) FROM tab1 WHERE NOT ( NULL ) IS NOT NULL AND NOT + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1286
SELECT + COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) IS NOT NULL AND NOT + col0 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1287
SELECT * FROM tab1 WHERE - 53 > CAST( - + 13 AS SIGNED ) * + col0 + - - 19 + - + 67 * + col1 - + + 68
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1287
SELECT * FROM tab1 WHERE - 53 > CAST ( - + 13 AS INTEGER ) * + col0 + - - 19 + - + 67 * + col1 - + + 68
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col2 + + - col2 * - 75 AS col1, - col0 + + + col0 + + col2 AS col2 FROM tab1
----
4484
59
5168
68
7296
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1289
SELECT DISTINCT CAST( NULL AS SIGNED ) - + MAX( + 4 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1289
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + MAX ( + 4 ) FROM tab0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT DISTINCT - + ( COUNT( DISTINCT + - ( + + 52 ) ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1291
SELECT DISTINCT - + ( COUNT ( DISTINCT + - ( + + 52 ) ) ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1292
SELECT ALL - CAST( - col2 AS SIGNED ) * 29 + col1 AS col2 FROM tab0 AS cor0
----
1444
2872
311

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL - CAST ( - col2 AS INTEGER ) * 29 + col1 AS col2 FROM tab0 AS cor0
----
1444
2872
311

query II rowsort
SELECT ALL 15 AS col1, - col1 - - ( - + 68 ) FROM tab2 AS cor0
----
15
-119
15
-135
15
-145

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT + - 52 * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-468

skipif mysql # not compatible
query I rowsort label-1295
SELECT + - 52 * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-468

query I rowsort
SELECT DISTINCT col0 * + col1 * 28 FROM tab1
----
11900
119756
19992

query II rowsort
SELECT + 15, + col2 * - - 31 - col2 * - ( + 45 ) * + col1 * - col0 AS col1 FROM tab1
----
15
-1126546
15
-13085512
15
-3081504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1298
SELECT + - CAST( NULL AS SIGNED ) + + col0 * 55 / + 44 / - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 * - + 89 + - + col0 + - col2 + - col0 + + 88 * col1 * + + col1 * col0 * + col1 * + 53 * - col2 AND 35
----

skipif mysql # not compatible
query I rowsort label-1298
SELECT + - CAST ( NULL AS INTEGER ) + + col0 * 55 / + 44 / - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 * - + 89 + - + col0 + - col2 + - col0 + + 88 * col1 * + + col1 * col0 * + col1 * + 53 * - col2 AND 35
----

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

skipif mysql # not compatible
query I rowsort label-1299
SELECT - + SUM ( + col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1300
SELECT DISTINCT COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1301
SELECT 25, ( 60 ) * - + COUNT( * ) col0 FROM tab2 AS cor0
----
25
-180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1301
SELECT 25, ( 60 ) * - + COUNT ( * ) col0 FROM tab2 AS cor0
----
25
-180

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1303
SELECT ALL SUM( - col0 ), ( - 3 ) + 94 AS col0 FROM tab0 AS cor0
----
-199
91

skipif mysql # not compatible
query II rowsort label-1303
SELECT ALL SUM ( - col0 ), ( - 3 ) + 94 AS col0 FROM tab0 AS cor0
----
-199
91

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 40 <= col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 1 * 39 col0 FROM tab1
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + 47, col0 col0 FROM tab0
----
3807
15
47
97
987
87

onlyif mysql # aggregate syntax: 
query II rowsort label-1307
SELECT - COUNT( * ) * + + 56 AS col0, + 2 FROM tab1
----
-168
2

skipif mysql # not compatible
query II rowsort label-1307
SELECT - COUNT ( * ) * + + 56 AS col0, + 2 FROM tab1
----
-168
2

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

query II rowsort
SELECT ALL 94 * col1 AS col0, - 85 + - col2 AS col0 FROM tab1
----
1316
-181
4418
-153
470
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT DISTINCT + + COUNT( * ) * 99 col1 FROM tab2 cor0
----
297

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1311
SELECT DISTINCT - - ( - col0 ) DIV - 62 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1311
SELECT DISTINCT - - ( - col0 ) / - 62 FROM tab0 AS cor0
----
0
1

query II rowsort
SELECT col1 * col1 * col0 AS col0, - col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - 55 * - 3 + - ( - + ( - col0 ) ) + + col0 FROM tab1
----
165
165
165

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1316
SELECT ALL + + 39 AS col0, - COUNT( * ) + COUNT( * ) FROM tab0 cor0
----
39
0

skipif mysql # not compatible
query II rowsort label-1316
SELECT ALL + + 39 AS col0, - COUNT ( * ) + COUNT ( * ) FROM tab0 cor0
----
39
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1318
SELECT DISTINCT ( - col2 ) DIV - col0 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1318
SELECT DISTINCT ( - col2 ) / - col0 AS col1 FROM tab1 AS cor0
----
0
1

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

query I rowsort
SELECT - - 74 * col1 AS col2 FROM tab2 AS cor0
----
3774
4958
5698

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col0 * + - col0 / col0 IS NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + col0 ) col1, - col2 + - 16 + + col0 + ( - - 16 ) * + col1 * + col2 + + - ( + + col0 ) AS col0 FROM tab1
----
51
21392
85
4645
91
51052

query III rowsort
SELECT * FROM tab1 WHERE - 23 < ( - col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT - ( + 26 ) - - - MIN( - ( - - col0 ) ) FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-1327
SELECT - ( + 26 ) - - - MIN ( - ( - - col0 ) ) FROM tab0
----
71

query I rowsort
SELECT + ( - ( + 14 ) ) - - col1 AS col0 FROM tab2
----
37
53
63

query I rowsort
SELECT ALL + 27 - 74 FROM tab1
----
-47
-47
-47

query II rowsort
SELECT DISTINCT col0 + 81 AS col2, - col1 FROM tab1
----
132
-14
166
-5
172
-47

query I rowsort
SELECT DISTINCT + - col2 - + col2 FROM tab0 AS cor0
----
-198
-20
-94

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1334
SELECT - COUNT( * ), 71 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9
71

skipif mysql # not compatible
query II rowsort label-1334
SELECT - COUNT ( * ), 71 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9
71

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

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

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

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

query I rowsort
SELECT DISTINCT - 57 * col1 + + col2 * - col1 FROM tab2 WHERE NOT ( - + col2 ) IS NULL
----
-4080
-7469
-7705

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

query I rowsort
SELECT col0 * + + 91 AS col2 FROM tab0
----
1365
7917
8827

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT col1 >= NULL )
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( + col2 ) * + col2 AS col0 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query II rowsort label-1346
SELECT ALL 72 * + COUNT( * ), + 28 AS col0 FROM tab0
----
216
28

skipif mysql # not compatible
query II rowsort label-1346
SELECT ALL 72 * + COUNT ( * ), + 28 AS col0 FROM tab0
----
216
28

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1349
SELECT + 81 * - 32 + - + 34 + 41 + - 86 DIV - col2 FROM tab2
----
-2582
-2583
-2584

skipif mysql # not compatible
query I rowsort label-1349
SELECT + 81 * - 32 + - + 34 + 41 + - 86 / - col2 FROM tab2
----
-2582
-2583
-2584

query I rowsort
SELECT - 73 + + 42 AS col2 FROM tab2
----
-31
-31
-31

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1353
SELECT - - 69, + 43 DIV col0 AS col0 FROM tab0 AS cor0
----
69
0
69
0
69
2

skipif mysql # not compatible
query II rowsort label-1353
SELECT - - 69, + 43 / col0 AS col0 FROM tab0 AS cor0
----
69
0
69
0
69
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 >= 54 + - - col1
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT ALL COUNT( * ) * - 33 FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-1355
SELECT ALL COUNT ( * ) * - 33 FROM tab1
----
-99

query I rowsort
SELECT ALL 92 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT ALL col0 + 96 AS col2 FROM tab1
----
147
181
187

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1358
SELECT ALL - 0 + + + CAST( NULL AS DECIMAL ) / col0 / - 71 / - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1358
SELECT ALL - 0 + + + CAST ( NULL AS REAL ) / col0 / - 71 / - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 3 AS col1 FROM tab2 AS cor0
----
-3
-3
-3

query I rowsort
SELECT + + ( + col2 ) * + 73 + - col0 * col1 FROM tab0 AS cor0
----
-1097
2216
7130

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT DISTINCT + COUNT( - 32 ) AS col0 FROM tab1 WHERE + 12 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1362
SELECT DISTINCT + COUNT ( - 32 ) AS col0 FROM tab1 WHERE + 12 IS NOT NULL
----
3

query II rowsort
SELECT + 25 AS col2, + 95 + ( col1 ) FROM tab2
----
25
146
25
162
25
172

onlyif mysql # aggregate syntax: 
query II rowsort label-1364
SELECT + 15, MAX( + - col1 ) * - ( - MAX( - col2 ) ) AS col2 FROM tab2
----
15
1173

skipif mysql # not compatible
query II rowsort label-1364
SELECT + 15, MAX ( + - col1 ) * - ( - MAX ( - col2 ) ) AS col2 FROM tab2
----
15
1173

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 - col2 col0 FROM tab1
----
-18
-46
-9

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1371
SELECT COUNT ( * ) * - MAX ( ALL + CAST ( NULL AS INTEGER ) ) + 44 col2 FROM tab1
----
NULL

query I rowsort
SELECT ( - 94 ) FROM tab0 WHERE + col2 + col2 * + ( + col0 - + ( + col0 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT DISTINCT - MIN( 71 ) FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-1373
SELECT DISTINCT - MIN ( 71 ) FROM tab1
----
-71

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 col2 FROM tab2 WHERE NOT col2 * - col2 IS NOT NULL
----

query I rowsort
SELECT + col1 + ( 76 ) AS col0 FROM tab2
----
127
143
153

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1379
SELECT DISTINCT col1 * 82 - col1 DIV - col2 AS col1 FROM tab0
----
1724
6643
82

skipif mysql # not compatible
query I rowsort label-1379
SELECT DISTINCT col1 * 82 - col1 / - col2 AS col1 FROM tab0
----
1724
6643
82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT - 70 - ( COUNT( * ) ) FROM tab2 WHERE col1 NOT BETWEEN ( NULL ) AND ( - col1 )
----
-73

skipif mysql # not compatible
query I rowsort label-1381
SELECT - 70 - ( COUNT ( * ) ) FROM tab2 WHERE col1 NOT BETWEEN ( NULL ) AND ( - col1 )
----
-73

query III rowsort
SELECT * FROM tab0 WHERE NULL = 97
----

query I rowsort
SELECT col0 + - ( - col0 ) AS col0 FROM tab1
----
102
170
182

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 WHERE col2 <> ( 88 - 46 )
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT ALL COUNT( * ) * + COUNT( col1 * - col1 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-1385
SELECT ALL COUNT ( * ) * + COUNT ( col1 * - col1 ) FROM tab2
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE - 72 IS NULL
----

query I rowsort
SELECT 26 + col0 AS col2 FROM tab2
----
101
72
90

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

skipif mysql # not compatible
query I rowsort label-1388
SELECT ( COUNT ( * ) ) + - MAX ( - 55 ) FROM tab2
----
58

query III rowsort
SELECT * FROM tab1 WHERE - col0 * 63 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT + 42 * col1 AS col2 FROM tab0
----
3402
42
882

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT 60 * - COUNT( * ) - - 54 FROM tab1
----
-126

skipif mysql # not compatible
query I rowsort label-1392
SELECT 60 * - COUNT ( * ) - - 54 FROM tab1
----
-126

query I rowsort
SELECT ALL 72 * col1 FROM tab2
----
3672
4824
5544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col0 col2 FROM tab0
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1395
SELECT DISTINCT col2 * CAST( col1 AS SIGNED ) + 22 FROM tab1 WHERE NOT - col1 IS NULL
----
1366
317
3218

skipif mysql # not compatible
query I rowsort label-1395
SELECT DISTINCT col2 * CAST ( col1 AS INTEGER ) + 22 FROM tab1 WHERE NOT - col1 IS NULL
----
1366
317
3218

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 >= ( col2 )
----
87
21
10

query I rowsort
SELECT ALL + 22 + col0 FROM tab0 AS cor0
----
109
119
37

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

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

query I rowsort
SELECT DISTINCT - col1 * col2 AS col2 FROM tab1 WHERE + col1 NOT BETWEEN ( - 44 ) AND 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT + MAX( col0 ) + 69 FROM tab0
----
166

skipif mysql # not compatible
query I rowsort label-1400
SELECT + MAX ( col0 ) + 69 FROM tab0
----
166

query I rowsort
SELECT ALL - 46 + + col1 AS col0 FROM tab0
----
-25
-45
35

query I rowsort
SELECT col2 + 33 AS col0 FROM tab2
----
56
73
91

query I rowsort
SELECT DISTINCT + 83 * col0 AS col0 FROM tab1 AS cor0
----
4233
7055
7553

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1404
SELECT DISTINCT 10 * col0 + CAST( + CAST( - col0 AS DECIMAL ) AS SIGNED ) FROM tab2 AS cor0
----
414
576
675

skipif mysql # not compatible
query I rowsort label-1404
SELECT DISTINCT 10 * col0 + CAST ( + CAST ( - col0 AS REAL ) AS INTEGER ) FROM tab2 AS cor0
----
414
576
675

query I rowsort
SELECT ALL + + 13 - 42 * + col0 FROM tab1 AS cor0
----
-2129
-3557
-3809

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

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

query I rowsort
SELECT - 10 * - 67 FROM tab1 AS cor0
----
670
670
670

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT + - COUNT( * ) * MIN( ALL 26 ) AS col2 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-1410
SELECT + - COUNT ( * ) * MIN ( ALL 26 ) AS col2 FROM tab2 AS cor0
----
-78

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1411
SELECT + + col1 / 77 col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - col0 - 33 AS col0 FROM tab0 AS cor0
----
-120
-130
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1413
SELECT ALL + MAX( DISTINCT - col0 ) DIV 41 AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1413
SELECT ALL + MAX ( DISTINCT - col0 ) / 41 AS col0 FROM tab2 AS cor0
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT + SUM( ALL - col1 ) - 28 FROM tab0 AS cor0
----
-131

skipif mysql # not compatible
query I rowsort label-1415
SELECT + SUM ( ALL - col1 ) - 28 FROM tab0 AS cor0
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT - + MAX( col0 ) - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-1416
SELECT - + MAX ( col0 ) - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-100

query I rowsort
SELECT DISTINCT + 80 * - 11 AS col2 FROM tab1 AS cor0
----
-880

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

query I rowsort
SELECT DISTINCT col0 * - + 72 FROM tab0
----
-1080
-6264
-6984

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT + SUM( col0 ) - - COUNT( DISTINCT + col1 ) FROM tab0
----
202

skipif mysql # not compatible
query I rowsort label-1420
SELECT + SUM ( col0 ) - - COUNT ( DISTINCT + col1 ) FROM tab0
----
202

query I rowsort
SELECT ALL 35 + - 45 * 70 FROM tab2
----
-3115
-3115
-3115

query I rowsort
SELECT ALL 74 * - col0 * 88 FROM tab0
----
-566544
-631664
-97680

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

query I rowsort
SELECT - ( - 24 ) / + col2 + + col1 * col0 AS col1 FROM tab0 WHERE NOT col1 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT DISTINCT MAX( DISTINCT ( col1 ) ) col1 FROM tab0
----
81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT DISTINCT COUNT( * ) + + SUM( - col0 + 64 ) AS col1 FROM tab0 WHERE + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1427
SELECT DISTINCT COUNT ( * ) + + SUM ( - col0 + 64 ) AS col1 FROM tab0 WHERE + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT - SUM( DISTINCT - - 26 ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-1428
SELECT - SUM ( DISTINCT - - 26 ) FROM tab2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT ALL - SUM( DISTINCT + 46 ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-1429
SELECT ALL - SUM ( DISTINCT + 46 ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-138

query I rowsort
SELECT DISTINCT + 59 AS col2 FROM tab2 cor0 WHERE 94 <= ( + ( col0 ) - - col0 )
----
59

query II rowsort
SELECT ALL col0, ( + - col0 ) + 92 AS col2 FROM tab2
----
46
46
64
28
75
17

onlyif mysql # DIV for integer division: 
query II rowsort label-1432
SELECT DISTINCT + col2, col0 DIV col0 * - 54 FROM tab0
----
10
-54
47
-54
99
-54

skipif mysql # not compatible
query II rowsort label-1432
SELECT DISTINCT + col2, col0 / col0 * - 54 FROM tab0
----
10
-54
47
-54
99
-54

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

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

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

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

query I rowsort
SELECT ALL - - ( - 31 ) * - col1 AS col2 FROM tab2 cor0
----
1581
2077
2387

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

query I rowsort
SELECT ALL - 8 FROM tab0 cor0 WHERE - col2 NOT IN ( col2 * col0 )
----
-8
-8
-8

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

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

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

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

skipif mysql # not compatible
query III rowsort label-1442
SELECT * FROM tab0 WHERE col0 * CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT COUNT( * ) + MAX( DISTINCT + ( - col0 ) ) AS col0 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-1444
SELECT COUNT ( * ) + MAX ( DISTINCT + ( - col0 ) ) AS col0 FROM tab1
----
-48

query I rowsort
SELECT 36 + col2 * + col1 - 23 FROM tab0
----
112
223
3820

query I rowsort
SELECT 55 * 49 * - col1 AS col1 FROM tab2 cor0
----
-137445
-180565
-207515

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT DISTINCT + COUNT( - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( + ( + - col1 ) ) AND + col0
----
0

skipif mysql # not compatible
query I rowsort label-1448
SELECT DISTINCT + COUNT ( - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( + ( + - col1 ) ) AND + col0
----
0

query I rowsort
SELECT DISTINCT ( + 20 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1450
SELECT ALL 85 * + col1 + + + col1 DIV CAST( - + col1 AS SIGNED ) col0 FROM tab0
----
1784
6884
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1450
SELECT ALL 85 * + col1 + + + col1 / CAST ( - + col1 AS INTEGER ) col0 FROM tab0
----
1784
6884
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 - - col2 * - col2 col1 FROM tab0
----
-2145
-36
-9737

onlyif mysql # DIV for integer division: 
query I rowsort label-1452
SELECT + col2 * + col0 - col2 DIV - col1 + col0 AS col2 FROM tab2
----
1104
2624
4425

skipif mysql # not compatible
query I rowsort label-1452
SELECT + col2 * + col0 - col2 / - col1 + col0 AS col2 FROM tab2
----
1104
2624
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT ALL COUNT( * ) - ( + ( + + 67 ) ) AS col2 FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-1453
SELECT ALL COUNT ( * ) - ( + ( + + 67 ) ) AS col2 FROM tab0
----
-64

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 - - ( col2 ) FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE col1 * col0 IS NOT NULL
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-1459
SELECT + col0 + col1 DIV - col2 col1, col0 AS col0 FROM tab0 AS cor0
----
14
15
85
87
97
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1459
SELECT + col0 + col1 / - col2 col1, col0 AS col0 FROM tab0 AS cor0
----
14
15
85
87
97
97

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

query I rowsort
SELECT 78 * - 32 FROM tab0 AS cor0
----
-2496
-2496
-2496

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = + - 3
----

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1466
SELECT + 64 DIV + col1 FROM tab1
----
1
12
4

skipif mysql # not compatible
query I rowsort label-1466
SELECT + 64 / + col1 FROM tab1
----
1
12
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT ALL + ( + - MAX( DISTINCT col0 ) ) AS col2 FROM tab1 WHERE NULL = col2 + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL + ( + - MAX ( DISTINCT col0 ) ) AS col2 FROM tab1 WHERE NULL = col2 + - col1
----
NULL

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

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT col1 IN ( 41 * 90 * + - col1 + - col2 * col2 )
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1470
SELECT * FROM tab2 WHERE NOT ( col2 * + + 71 - - col2 ) > CAST( col1 AS SIGNED ) + + col0
----

skipif mysql # not compatible
query III rowsort label-1470
SELECT * FROM tab2 WHERE NOT ( col2 * + + 71 - - col2 ) > CAST ( col1 AS INTEGER ) + + col0
----

query I rowsort
SELECT - col0 + - ( col1 ) AS col2 FROM tab2
----
-141
-142
-97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 53 NOT BETWEEN NULL AND 29 / + 56
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( 68 )
----
0

skipif mysql # not compatible
query I rowsort label-1473
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( 68 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT - SUM( ALL + + col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-1475
SELECT - SUM ( ALL + + col0 ) AS col1 FROM tab0
----
-199

query II rowsort
SELECT 48, + col2 AS col1 FROM tab2
----
48
23
48
40
48
58

query II rowsort
SELECT - col2 AS col0, - 41 + 69 AS col2 FROM tab0
----
-10
28
-47
28
-99
28

query I rowsort
SELECT ALL 90 * - 57 AS col0 FROM tab1
----
-5130
-5130
-5130

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

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

query I rowsort
SELECT + col2 * + 2 FROM tab0 WHERE - col0 + + col0 <= NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 + - + col0 * + + 74 col2, - col2 * + col1 FROM tab0 AS cor0
----
-1063
-3807
-6428
-210
-7079
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-1483
SELECT DISTINCT col1 DIV col1 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-1483
SELECT DISTINCT col1 / col1 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
1

query I rowsort
SELECT + 50 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT ( - + 76 ) <= ( NULL )
----

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

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

query I rowsort
SELECT - - 45 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT + 51 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1491
SELECT col2 DIV - + 35 - - col0 * + + 40 + + col2, + col2 - + + ( + col1 ) AS col0 FROM tab0 AS cor0
----
3490
-11
3977
98
646
-34

skipif mysql # not compatible
query II rowsort label-1491
SELECT col2 / - + 35 - - col0 * + + 40 + + col2, + col2 - + + ( + col1 ) AS col0 FROM tab0 AS cor0
----
3490
-11
3977
98
646
-34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT ALL MIN( col1 ) FROM tab2 AS cor0 WHERE NOT NULL > col1 / col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL MIN ( col1 ) FROM tab2 AS cor0 WHERE NOT NULL > col1 / col0
----
NULL

query I rowsort
SELECT DISTINCT + 40 * + col1 AS col2 FROM tab1
----
1880
200
560

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - - ( - col1 ) ) BETWEEN ( - 6 ) AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 89 * - - col0 FROM tab0
----
1335
7743
8633

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

query I rowsort
SELECT ALL + 96 * col1 AS col2 FROM tab1
----
1344
4512
480

query II rowsort
SELECT DISTINCT 62, col1 * - col1 AS col1 FROM tab1
----
62
-196
62
-2209
62
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 WHERE NULL NOT IN ( + - col1 * + - col1 + - col2, + 64 * + 50 + - col2 + + col0 + - - 3 )
----
0

skipif mysql # not compatible
query I rowsort label-1500
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE NULL NOT IN ( + - col1 * + - col1 + - col2, + 64 * + 50 + - col2 + + col0 + - - 3 )
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1501
SELECT + col1 / - + col0 * - 46 * + col2 col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - 73 < - 24
----

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

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

query I rowsort
SELECT DISTINCT - ( - col1 ) * + 28 FROM tab2
----
1428
1876
2156

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT MAX( - 42 ) FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-1506
SELECT MAX ( - 42 ) FROM tab1 AS cor0
----
-42

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 <= - - col1 / 75 + - - 6
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1510
SELECT ALL 32 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1510
SELECT ALL 32 / - col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1511
SELECT DISTINCT + 90 DIV 98 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1511
SELECT DISTINCT + 90 / 98 AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL col1 * 63 FROM tab0 cor0
----
1323
5103
63

onlyif mysql # aggregate syntax: 
query II rowsort label-1513
SELECT ALL - - COUNT( * ), - 88 AS col1 FROM tab2 AS cor0
----
3
-88

skipif mysql # not compatible
query II rowsort label-1513
SELECT ALL - - COUNT ( * ), - 88 AS col1 FROM tab2 AS cor0
----
3
-88

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 64 + + col2 * col1 / + 69 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1516
SELECT ALL + + CAST( col1 AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0
----
117
125
74

skipif mysql # not compatible
query I rowsort label-1516
SELECT ALL + + CAST ( col1 AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0
----
117
125
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 ) col0 FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT DISTINCT - + col1 + - - col2 + + col2 AS col0 FROM tab1 WHERE + col1 IS NOT NULL
----
113
178
89

query I rowsort
SELECT - col0 FROM tab2 WHERE NULL NOT BETWEEN + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 51 + - 10, + col2 * col0 col0 FROM tab2
----
41
1058
41
2560
41
4350

query I rowsort
SELECT DISTINCT + 61 - + col0 + col2 + + col1 FROM tab2
----
111
114
89

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

skipif mysql # not compatible
query I rowsort label-1522
SELECT ( - MIN ( DISTINCT 73 ) ) AS col1 FROM tab0
----
-73

query I rowsort
SELECT DISTINCT + col1 * col0 + + + col0 AS col0 FROM tab2
----
2392
4992
5100

query I rowsort
SELECT ALL 5 + + + col1 FROM tab1
----
10
19
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT + + MAX( + col1 ) * COUNT( * ) + - + COUNT( * ) FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-1525
SELECT + + MAX ( + col1 ) * COUNT ( * ) + - + COUNT ( * ) FROM tab0 AS cor0
----
240

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

query I rowsort
SELECT - 26 FROM tab0 WHERE + col1 < ( - col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1529
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE col2 > NULL
----
0

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

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

query II rowsort
SELECT - + col2 * + 79 * + col0 AS col2, - col0 * - col2 FROM tab2 AS cor0
----
-202240
2560
-343650
4350
-83582
1058

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 4 * col1 col0 FROM tab2 AS cor0
----
-204
-268
-308

query I rowsort
SELECT + col2 * + col0 * - col0 FROM tab1
----
-249696
-426275
-563108

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT DISTINCT MIN( + ( - 14 ) ) FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-1536
SELECT DISTINCT MIN ( + ( - 14 ) ) FROM tab2
----
-14

query I rowsort
SELECT DISTINCT - col0 * 65 AS col0 FROM tab0 WHERE NOT - 15 NOT BETWEEN - col2 AND ( NULL )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1538
SELECT ( - - col1 ) col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT + col1 * + 27 FROM tab1
----
1269
135
378

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1540
SELECT COUNT( * ) DIV 35 AS col0, 44 col2 FROM tab1
----
0
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1540
SELECT COUNT ( * ) / 35 AS col0, 44 col2 FROM tab1
----
0
44

query I rowsort
SELECT - 9 * col1 FROM tab1
----
-126
-423
-45

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

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

skipif mysql # not compatible
query I rowsort label-1543
SELECT + MAX ( ALL - ( + col1 ) ) AS col1 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT + col0 + 14 FROM tab0 AS cor0 WHERE NOT col1 + - ( col2 ) + - col2 IS NULL
----
101
111
29

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

query I rowsort
SELECT ALL + 60 AS col1 FROM tab0 cor0
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT - MIN( - - 10 ) FROM tab2 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-1547
SELECT - MIN ( - - 10 ) FROM tab2 cor0
----
-10

query I rowsort
SELECT ALL - 56 + + col2 AS col0 FROM tab1
----
12
3
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT - 57 + - MIN( ( + 44 ) ) FROM tab2
----
-101

skipif mysql # not compatible
query I rowsort label-1549
SELECT - 57 + - MIN ( ( + 44 ) ) FROM tab2
----
-101

query I rowsort
SELECT col2 * + 21 + - col0 FROM tab0
----
123
1982
972

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1551
SELECT DISTINCT - 43 + - CAST( NULL AS DECIMAL ) * + + col0 + + 47 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1551
SELECT DISTINCT - 43 + - CAST ( NULL AS REAL ) * + + col0 + + 47 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL + ( ( - + col0 ) ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

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

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

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

query I rowsort
SELECT - 92 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL OR NOT ( NULL ) IS NOT NULL
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-1556
SELECT - + 70, MIN( ALL 93 ) AS col2 FROM tab2 AS cor0
----
-70
93

skipif mysql # not compatible
query II rowsort label-1556
SELECT - + 70, MIN ( ALL 93 ) AS col2 FROM tab2 AS cor0
----
-70
93

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - col1 * 6 * + + col1 * - 90 ) <= NULL
----

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

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

query II rowsort
SELECT col1, col0 * - col1 FROM tab1
----
14
-714
47
-4277
5
-425

query I rowsort
SELECT DISTINCT col0 * + - col2 * col1 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT ALL + 34 + + 87 + + col2 AS col1 FROM tab2
----
144
161
179

query I rowsort
SELECT ALL + col2 * - col2 + + 41 FROM tab2 cor0
----
-1559
-3323
-488

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT ALL + 29 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-1563
SELECT ALL + 29 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-87

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

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

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

skipif mysql # not compatible
query I rowsort label-1565
SELECT - + col0 / - - col1 AS col1 FROM tab1 AS cor0
----
-1
-17
-3

query I rowsort
SELECT - + 81 * + col1 FROM tab1 AS cor0
----
-1134
-3807
-405

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

query I rowsort
SELECT - - ( + 83 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT + + SUM( ALL - + 9 ) AS col2 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-1571
SELECT + + SUM ( ALL - + 9 ) AS col2 FROM tab2 AS cor0
----
-27

query I rowsort
SELECT + col1 * - + col2 * ( + 58 ) FROM tab1 AS cor0
----
-17110
-185368
-77952

query I rowsort
SELECT + 99 * + - 76 FROM tab0 AS cor0
----
-7524
-7524
-7524

query III rowsort
SELECT * FROM tab1 WHERE NOT + 31 NOT BETWEEN + 67 * + - 37 * ( + 18 ) AND + + col1
----
91
47
68

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

query II rowsort
SELECT DISTINCT ( ( 33 ) ) AS col1, + col0 + + + 92 + - - col1 FROM tab1
----
33
157
33
182
33
230

query II rowsort
SELECT ALL - col0, + col1 FROM tab0 WHERE NOT + - 39 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 WHERE NOT + + col1 * - 96 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 90 + - + col2 * - col1 >= col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT - + 70 + COUNT( * ) * - - 62 + + COUNT( + col2 ) FROM tab1 AS cor0
----
119

skipif mysql # not compatible
query I rowsort label-1581
SELECT - + 70 + COUNT ( * ) * - - 62 + + COUNT ( + col2 ) FROM tab1 AS cor0
----
119

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

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

query I rowsort
SELECT DISTINCT - 90 + 95 + - col0 AS col1 FROM tab2
----
-41
-59
-70

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

query I rowsort
SELECT 65 * + ( 5 ) AS col0 FROM tab1
----
325
325
325

query I rowsort
SELECT 57 + + col2 FROM tab2
----
115
80
97

query I rowsort
SELECT - 93 + + 66 FROM tab2 AS cor0
----
-27
-27
-27

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + 89 * ( - col1 ) + col1 FROM tab2 AS cor0
----
-4488
-5896
-6776

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

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

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

query I rowsort
SELECT ALL - col2 + - + col1 AS col2 FROM tab2
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-1597
SELECT DISTINCT COUNT( * ) + + 88 * COUNT( * ) col2, 53 AS col1 FROM tab2
----
267
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1597
SELECT DISTINCT COUNT ( * ) + + 88 * COUNT ( * ) col2, 53 AS col1 FROM tab2
----
267
53

query I rowsort
SELECT DISTINCT col2 - + - 40 - + + col0 FROM tab0
----
-37
42
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT 52 * + + ( - MIN( ALL + col1 ) ) AS col0 FROM tab2
----
-2652

skipif mysql # not compatible
query I rowsort label-1599
SELECT 52 * + + ( - MIN ( ALL + col1 ) ) AS col0 FROM tab2
----
-2652

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

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

query I rowsort
SELECT DISTINCT + 16 - - + 73 FROM tab0
----
89

query I rowsort
SELECT col2 - 77 + - + col2 FROM tab2 AS cor0
----
-77
-77
-77

query I rowsort
SELECT ALL col1 * + + 70 FROM tab1 AS cor0
----
3290
350
980

query III rowsort
SELECT * FROM tab2 WHERE NOT 82 IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1606
SELECT - col0 DIV 29 FROM tab0
----
-3
-3
0

skipif mysql # not compatible
query I rowsort label-1606
SELECT - col0 / 29 FROM tab0
----
-3
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT DISTINCT SUM( ALL 92 ) col2 FROM tab1 AS cor0
----
276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1607
SELECT DISTINCT SUM ( ALL 92 ) col2 FROM tab1 AS cor0
----
276

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT ALL - MIN( DISTINCT - col1 ) * 62 * + COUNT( * ) AS col0 FROM tab0 cor0
----
15066

skipif mysql # not compatible
query I rowsort label-1610
SELECT ALL - MIN ( DISTINCT - col1 ) * 62 * + COUNT ( * ) AS col0 FROM tab0 cor0
----
15066

query I rowsort
SELECT ALL - - col0 FROM tab1 AS cor0 WHERE - 48 IS NULL
----

query I rowsort
SELECT + 73 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( + col0 * col1 * + + col0, 67, 24 )
----

query I rowsort
SELECT col0 * - - 75 FROM tab2 cor0
----
3450
4800
5625

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1616
SELECT ALL + + 44 + 16 - - + ( - + col1 ) FROM tab2 WHERE NOT NULL BETWEEN - 63 AND + col0 / + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL + + 44 + 16 - - + ( - + col1 ) FROM tab2 WHERE NOT NULL BETWEEN - 63 AND + col0 / + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1617
SELECT ALL - + col1 AS col1, - col0 FROM tab2 WHERE + - CAST( - + 47 AS SIGNED ) IS NOT NULL
----
-51
-46
-67
-75
-77
-64

skipif mysql # not compatible
query II rowsort label-1617
SELECT ALL - + col1 AS col1, - col0 FROM tab2 WHERE + - CAST ( - + 47 AS INTEGER ) IS NOT NULL
----
-51
-46
-67
-75
-77
-64

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

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

query I rowsort
SELECT ALL - col1 + + - 3 FROM tab1
----
-17
-50
-8

query I rowsort
SELECT DISTINCT col0 * 17 AS col0 FROM tab0
----
1479
1649
255

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

query I rowsort
SELECT - + 70 + - col2 * - col2 AS col1 FROM tab2 AS cor0
----
1530
3294
459

query I rowsort
SELECT + 78 AS col0 FROM tab2 WHERE NULL IS NULL
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 - + col1 col0 FROM tab0 AS cor0
----
67
7
87

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1626
SELECT ALL + - COUNT( * ) + 53 / + COUNT( * ) + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL + - COUNT ( * ) + 53 / + COUNT ( * ) + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1627
SELECT + col0 DIV 34 AS col2 FROM tab1 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-1627
SELECT + col0 / 34 AS col2 FROM tab1 AS cor0
----
1
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT 45 - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-1628
SELECT 45 - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1629
SELECT 2 col2, COUNT( * ) AS col0 FROM tab1 WHERE + - CAST( NULL AS SIGNED ) IS NULL
----
2
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1631
SELECT - 92 - CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1631
SELECT - 92 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT ALL - COUNT( col1 ) + - + 72 - + - MIN( DISTINCT + + col1 ) AS col0 FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-1632
SELECT ALL - COUNT ( col1 ) + - + 72 - + - MIN ( DISTINCT + + col1 ) AS col0 FROM tab1
----
-70

query II rowsort
SELECT 41 - - col0 AS col1, - col0 * + - col0 AS col2 FROM tab0
----
128
7569
138
9409
56
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1634
SELECT ALL + 50 - + col1 * - + col1 - + CAST( NULL AS SIGNED ) + - - 87 / - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1634
SELECT ALL + 50 - + col1 * - + col1 - + CAST ( NULL AS INTEGER ) + - - 87 / - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1635
SELECT ALL 11 * - + COUNT ( * ) col2 FROM tab1 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT ALL - 85 * + COUNT( * ) + 23 AS col1 FROM tab1 AS cor0
----
-232

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL - 85 * + COUNT ( * ) + 23 AS col1 FROM tab1 AS cor0
----
-232

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= - + 26
----

query I rowsort
SELECT ALL + col1 * + 90 * 92 FROM tab1
----
115920
389160
41400

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + + + 35 NOT IN ( col2, col2 * - col1 * + 91 )
----

query I rowsort
SELECT 18 * - - col2 FROM tab2 AS cor0
----
1044
414
720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 4 + - col0 - - ( col2 ) * col0 + - - 64 col2 FROM tab0 AS cor0
----
887
942
9966

onlyif mysql # DIV for integer division: 
query I rowsort label-1643
SELECT ALL + 52 DIV + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-2
-52
0

skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL + 52 / + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-2
-52
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1645
SELECT + col0 AS col0, CAST( - + col1 AS SIGNED ) AS col2 FROM tab2
----
46
-51
64
-77
75
-67

skipif mysql # not compatible
query II rowsort label-1645
SELECT + col0 AS col0, CAST ( - + col1 AS INTEGER ) AS col2 FROM tab2
----
46
-51
64
-77
75
-67

query I rowsort
SELECT DISTINCT + ( 19 ) * - col2 FROM tab2
----
-1102
-437
-760

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 34 <= NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-1649
SELECT DISTINCT col2 / + + 85 AS col0 FROM tab1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT DISTINCT MIN( ALL + + 14 ) FROM tab0 cor0
----
14

skipif mysql # not compatible
query I rowsort label-1650
SELECT DISTINCT MIN ( ALL + + 14 ) FROM tab0 cor0
----
14

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT DISTINCT + SUM( ALL + + col2 ) FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-1652
SELECT DISTINCT + SUM ( ALL + + col2 ) FROM tab0 cor0
----
156

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

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

skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT 21 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # aggregate syntax: 
query I rowsort label-1656
SELECT + + 48 + + COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1656
SELECT + + 48 + + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
57

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

query I rowsort
SELECT DISTINCT 78 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
78

query I rowsort
SELECT 99 + - col2 AS col1 FROM tab0 AS cor0
----
0
52
89

query I rowsort
SELECT 44 + - 32 - + col1 * - - col0 AS col2 FROM tab1 AS cor0
----
-413
-4265
-702

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 1 / + - 98 + - + 71 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 + col0 * - col1, 88 ) OR NOT - - col0 * - col2 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 WHERE NOT NULL < NULL
----

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

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

query I rowsort
SELECT + 34 * 55 AS col0 FROM tab0
----
1870
1870
1870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - col1 * - col0, 3 * col2 col0 FROM tab0
----
-158949
30
-18225
141
-9409
297

query I rowsort
SELECT - 32 * + 45 AS col1 FROM tab2
----
-1440
-1440
-1440

query II rowsort
SELECT ALL col2 AS col2, + 84 * + col0 AS col1 FROM tab1
----
59
7140
68
7644
96
4284

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1670
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT - col2 * - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1670
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT - col2 * - col2 IS NOT NULL
----

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

skipif mysql # not compatible
query II rowsort label-1671
SELECT DISTINCT COUNT ( * ) AS col2, 82 * COUNT ( * ) AS col1 FROM tab2
----
3
246

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

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

query I rowsort
SELECT - 39 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col2, 34 FROM tab2 AS cor0
----
23
34
40
34
58
34

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

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

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE col1 - ( - - col1 ) IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT + + COUNT( DISTINCT col1 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1678
SELECT + + COUNT ( DISTINCT col1 ) FROM tab1 cor0
----
3

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

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

query II rowsort
SELECT + col2 AS col0, ( col2 ) + + - 26 FROM tab1
----
59
33
68
42
96
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT ALL - + COUNT( * ) + - + 60 AS col2 FROM tab0 WHERE + - col1 IS NULL
----
-60

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL - + COUNT ( * ) + - + 60 AS col2 FROM tab0 WHERE + - col1 IS NULL
----
-60

query I rowsort
SELECT DISTINCT - col1 + - + col2 AS col0 FROM tab1
----
-110
-115
-64

query I rowsort
SELECT ALL + 72 * - + col0 + + col0 FROM tab0
----
-1065
-6177
-6887

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

skipif mysql # not compatible
query I rowsort label-1684
SELECT MAX ( DISTINCT + 8 ) AS col0 FROM tab1
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1685
SELECT ALL - col1 + - - 0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND - CAST( + - col1 AS SIGNED ) * - 97 * - + col1
----

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL - col1 + - - 0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND - CAST ( + - col1 AS INTEGER ) * - 97 * - + col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1686
SELECT ALL ( 18 ) DIV + col0 AS col1, + 56 + 52 FROM tab2
----
0
108
0
108
0
108

skipif mysql # not compatible
query II rowsort label-1686
SELECT ALL ( 18 ) / + col0 AS col1, + 56 + 52 FROM tab2
----
0
108
0
108
0
108

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT MIN( ALL - + 4 ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-1687
SELECT MIN ( ALL - + 4 ) FROM tab0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1688
SELECT DISTINCT CAST( - MAX( ALL - + ( - 23 ) ) AS SIGNED ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-1688
SELECT DISTINCT CAST ( - MAX ( ALL - + ( - 23 ) ) AS INTEGER ) FROM tab2 AS cor0
----
-23

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - 39 - - col0 - - - col0 / ( - - col1 ) <> ( + col0 / - col1 * 63 * + col0 + + 7 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE + col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1691
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE + col1 <> NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 82 * + + col0 + - - col0 col2 FROM tab2 cor0
----
3818
5312
6225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1693
SELECT + - col0 * + col1 - CAST( col1 AS SIGNED ) + + col0 * - - col1 FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-1693
SELECT + - col0 * + col1 - CAST ( col1 AS INTEGER ) + + col0 * - - col1 FROM tab0 cor0
----
-1
-21
-81

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 69 col2, + col1 + + ( + col2 ) + - 14 + 74 FROM tab2 AS cor0
----
-69
134
-69
177
-69
185

query I rowsort
SELECT DISTINCT 21 - col0 FROM tab0 AS cor0
----
-66
-76
6

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

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

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

query II rowsort
SELECT ALL ( - - 81 ) AS col1, - col1 AS col1 FROM tab2
----
81
-51
81
-67
81
-77

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

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

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

query I rowsort
SELECT - - 46 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT col1 * - 0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1706
SELECT - col1 / - 30 + + CAST( NULL AS SIGNED ) * - 10 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1706
SELECT - col1 / - 30 + + CAST ( NULL AS INTEGER ) * - 10 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 23 <> col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT - + SUM( ALL col0 ) + + 43 FROM tab1 AS cor0
----
-184

skipif mysql # not compatible
query I rowsort label-1709
SELECT - + SUM ( ALL col0 ) + + 43 FROM tab1 AS cor0
----
-184

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + AVG ( DISTINCT - col0 ) col0 FROM tab2 WHERE NULL < NULL
----
NULL

query I rowsort
SELECT 0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 54 + + - ( + - col1 ) FROM tab2
----
105
121
131

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT MAX( + - 94 ) FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-1714
SELECT MAX ( + - 94 ) FROM tab2
----
-94

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1715
SELECT + col1 FROM tab2 WHERE + - CAST( NULL AS DECIMAL ) + + CAST( NULL AS SIGNED ) IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1715
SELECT + col1 FROM tab2 WHERE + - CAST ( NULL AS REAL ) + + CAST ( NULL AS INTEGER ) IS NULL
----
51
67
77

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

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT - COUNT ( * ) + + CAST ( + 37 AS INTEGER ) FROM tab2 AS cor0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1717
SELECT DISTINCT - 63 * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1717
SELECT DISTINCT - 63 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT - col1 * + 51 AS col1 FROM tab0 cor0
----
-1071
-4131
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE 36 BETWEEN + col2 + - col1 - + 47 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1719
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE 36 BETWEEN + col2 + - col1 - + 47 AND NULL
----
0

query I rowsort
SELECT ALL 79 * + col2 FROM tab1 AS cor0 WHERE 98 + + + col1 * + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1721
SELECT DISTINCT - col1 + - - CAST( + + col0 AS SIGNED ) + - 76 AS col0 FROM tab1
----
-32
-39
4

skipif mysql # not compatible
query I rowsort label-1721
SELECT DISTINCT - col1 + - - CAST ( + + col0 AS INTEGER ) + - 76 AS col0 FROM tab1
----
-32
-39
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT DISTINCT ( - COUNT( DISTINCT - col0 ) ) * - + ( - + 47 ) * - + 61 - + + COUNT( * ) + + + 19 FROM tab1
----
8617

skipif mysql # not compatible
query I rowsort label-1722
SELECT DISTINCT ( - COUNT ( DISTINCT - col0 ) ) * - + ( - + 47 ) * - + 61 - + + COUNT ( * ) + + + 19 FROM tab1
----
8617

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1724
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL = 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT ALL - MAX( - col1 ) * + - 36 FROM tab1 cor0
----
-180

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL - MAX ( - col1 ) * + - 36 FROM tab1 cor0
----
-180

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1727
SELECT ALL - col1 / 64 / - CAST( NULL AS DECIMAL ) AS col2, - col2 FROM tab0 cor0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-1727
SELECT ALL - col1 / 64 / - CAST ( NULL AS REAL ) AS col2, - col2 FROM tab0 cor0
----
NULL
-10
NULL
-47
NULL
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1728
SELECT + ( 61 ) DIV - MAX( ALL - col2 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1728
SELECT + ( 61 ) / - MAX ( ALL - col2 ) FROM tab1
----
1

query II rowsort
SELECT + col1, - 79 + col1 AS col0 FROM tab2
----
51
-28
67
-12
77
-2

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1731
SELECT + 26 AS col0, + col2 * + CAST( NULL AS DECIMAL ) + - 90 AS col0, - + col2 AS col1 FROM tab1
----
9 values hashing to 440a95be4036aefcebd3b2001df30975

skipif mysql # not compatible
query III rowsort label-1731
SELECT + 26 AS col0, + col2 * + CAST ( NULL AS REAL ) + - 90 AS col0, - + col2 AS col1 FROM tab1
----
9 values hashing to 440a95be4036aefcebd3b2001df30975

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT - 25 * + COUNT( * ) FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-1732
SELECT - 25 * + COUNT ( * ) FROM tab0
----
-75

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col1 + + 24 < - col1
----
-3

skipif mysql # not compatible
query I rowsort label-1735
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col1 + + 24 < - col1
----
-3

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

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

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

query II rowsort
SELECT ALL - 79 AS col2, col0 AS col1 FROM tab2 AS cor0
----
-79
46
-79
64
-79
75

query II rowsort
SELECT col0 AS col0, 89 + col2 * - col1 * - ( 1 ) AS col2 FROM tab2 cor0
----
46
1262
64
3169
75
3975

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1740
SELECT - 43 AS col1, - 42 - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
-43
NULL
-43
NULL
-43
NULL

skipif mysql # not compatible
query II rowsort label-1740
SELECT - 43 AS col1, - 42 - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
-43
NULL
-43
NULL
-43
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT DISTINCT + ( + - 92 ) + - + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-101

skipif mysql # not compatible
query I rowsort label-1742
SELECT DISTINCT + ( + - 92 ) + - + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT DISTINCT SUM( 37 ) + 62 FROM tab1
----
173

skipif mysql # not compatible
query I rowsort label-1743
SELECT DISTINCT SUM ( 37 ) + 62 FROM tab1
----
173

query I rowsort
SELECT + + 54 + + col2 AS col2 FROM tab0 AS cor0
----
101
153
64

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

query I rowsort
SELECT + 80 * + 61 * - col0 * + 80 AS col0 FROM tab0 cor0
----
-33964800
-37868800
-5856000

onlyif mysql # DIV for integer division: 
query I rowsort label-1747
SELECT ALL + 75 + + col0 DIV col0 AS col2 FROM tab2 AS cor0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-1747
SELECT ALL + 75 + + col0 / col0 AS col2 FROM tab2 AS cor0
----
76
76
76

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - col2 col1 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-4896
-5015
-6188

query I rowsort
SELECT ALL col1 * + col0 + - 29 + 22 FROM tab0
----
1208
1820
90

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

query I rowsort
SELECT ALL 96 + - 28 FROM tab0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT ALL - 66 * - COUNT( * ) + + - 26 FROM tab0
----
172

skipif mysql # not compatible
query I rowsort label-1753
SELECT ALL - 66 * - COUNT ( * ) + + - 26 FROM tab0
----
172

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 17, 92 col1 FROM tab0
----
17
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1756
SELECT CAST( - col0 AS SIGNED ) + 35 AS col0, - col0 * - col2 + - col0 + col1 FROM tab2 AS cor0
----
-11
1063
-29
2573
-40
4342

skipif mysql # not compatible
query II rowsort label-1756
SELECT CAST ( - col0 AS INTEGER ) + 35 AS col0, - col0 * - col2 + - col0 + col1 FROM tab2 AS cor0
----
-11
1063
-29
2573
-40
4342

query I rowsort
SELECT ALL - 46 - - col2 FROM tab2 AS cor0
----
-23
-6
12

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <> NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1762
SELECT DISTINCT + col0 DIV col0 * + - col0 AS col1 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1762
SELECT DISTINCT + col0 / col0 * + - col0 AS col1 FROM tab1
----
-51
-85
-91

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

query II rowsort
SELECT DISTINCT ( + - col0 ), - col1 + col2 AS col0 FROM tab0 WHERE NULL < 72
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1766
SELECT col1 * 16 DIV + ( - - 69 ) FROM tab1
----
1
10
3

skipif mysql # not compatible
query I rowsort label-1766
SELECT col1 * 16 / + ( - - 69 ) FROM tab1
----
1
10
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 21 col1 FROM tab1
----
21
21
21

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1770
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, ( + 16 ) AS col2 FROM tab1
----
NULL
16

skipif mysql # not compatible
query II rowsort label-1770
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, ( + 16 ) AS col2 FROM tab1
----
NULL
16

query I rowsort
SELECT - 11 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1775
SELECT ALL - col1 DIV col2 + 21 AS col0 FROM tab2 AS cor0
----
19
20
20

skipif mysql # not compatible
query I rowsort label-1775
SELECT ALL - col1 / col2 + 21 AS col0 FROM tab2 AS cor0
----
19
20
20

query II rowsort
SELECT - col0 + col1 + - col1 + + 97 - - col2 * + + col2 AS col1, + col0 FROM tab1 AS cor0
----
3493
85
4630
91
9262
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, + col0 * - - 44 * 74 col0 FROM tab0 AS cor0
----
15
48840
87
283272
97
315832

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1778
SELECT + COUNT ( * ) + + COUNT ( 52 ) col1 FROM tab2 AS cor0
----
6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT - - COUNT( * ) + + 64 FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-1780
SELECT - - COUNT ( * ) + + 64 FROM tab1 AS cor0
----
67

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT DISTINCT MAX( ALL + col0 ) AS col2 FROM tab1 WHERE - col1 * - + col2 + + 29 + + - col0 * - + col1 + - + 50 IS NOT NULL
----
91

skipif mysql # not compatible
query I rowsort label-1783
SELECT DISTINCT MAX ( ALL + col0 ) AS col2 FROM tab1 WHERE - col1 * - + col2 + + 29 + + - col0 * - + col1 + - + 50 IS NOT NULL
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT + COUNT( * ) + - 10 AS col0 FROM tab0, tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1784
SELECT + COUNT ( * ) + - 10 AS col0 FROM tab0, tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - 38 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT DISTINCT - MIN( DISTINCT + 73 ) + 73 + - COUNT( * ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1786
SELECT DISTINCT - MIN ( DISTINCT + 73 ) + 73 + - COUNT ( * ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT + col1 * + - 16 FROM tab0
----
-1296
-16
-336

query I rowsort
SELECT - - 77 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query II rowsort
SELECT col2, 86 * col1 FROM tab1
----
59
430
68
4042
96
1204

onlyif mysql # DIV for integer division: 
query I rowsort label-1790
SELECT col2 DIV - - col1 FROM tab0 cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-1790
SELECT col2 / - - col1 FROM tab0 cor0
----
0
0
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT DISTINCT + SUM( - 42 ) * - 16 AS col2 FROM tab2 AS cor0
----
2016

skipif mysql # not compatible
query I rowsort label-1792
SELECT DISTINCT + SUM ( - 42 ) * - 16 AS col2 FROM tab2 AS cor0
----
2016

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

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE NOT + 71 >= - - col1
----
-81

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

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

query II rowsort
SELECT ALL 34 AS col2, - col0 FROM tab2 AS cor0
----
34
-46
34
-64
34
-75

query I rowsort
SELECT col2 * - 7 * - + 21 * - + col0 FROM tab2
----
-155526
-376320
-639450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1799
SELECT 36 * + ( - CAST( + + ( - 97 ) AS SIGNED ) ) AS col0 FROM tab2
----
3492
3492
3492

skipif mysql # not compatible
query I rowsort label-1799
SELECT 36 * + ( - CAST ( + + ( - 97 ) AS INTEGER ) ) AS col0 FROM tab2
----
3492
3492
3492

onlyif mysql # aggregate syntax: 
query II rowsort label-1800
SELECT ALL - MIN( ALL - + col0 ), 75 AS col1 FROM tab0
----
97
75

skipif mysql # not compatible
query II rowsort label-1800
SELECT ALL - MIN ( ALL - + col0 ), 75 AS col1 FROM tab0
----
97
75

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1801
SELECT ALL * FROM tab2 WHERE NOT - + ( CAST( NULL AS DECIMAL ) ) BETWEEN col0 - - + col1 AND + 9
----

skipif mysql # not compatible
query III rowsort label-1801
SELECT ALL * FROM tab2 WHERE NOT - + ( CAST ( NULL AS REAL ) ) BETWEEN col0 - - + col1 AND + 9
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1802
SELECT DISTINCT - col2 DIV - - col1 FROM tab0 cor0
----
-99
0

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT - col2 / - - col1 FROM tab0 cor0
----
-99
0

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

skipif mysql # not compatible
query I rowsort label-1803
SELECT - COUNT ( * ) + + - COUNT ( DISTINCT col2 ) FROM tab1
----
-6

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

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

query I rowsort
SELECT - - 97 * col2 + - 58 AS col2 FROM tab0 AS cor0
----
4501
912
9545

query I rowsort
SELECT - col1 - - - col2 FROM tab1 cor0
----
-110
-115
-64

query I rowsort
SELECT col1 - + + 73 AS col0 FROM tab0
----
-52
-72
8

query II rowsort
SELECT ALL 5 + + 39 * - + col1 * col1 AS col0, col1 AS col1 FROM tab0
----
-17194
21
-255874
81
-34
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT DISTINCT COUNT( * ) + - 68 AS col2 FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-1810
SELECT DISTINCT COUNT ( * ) + - 68 AS col2 FROM tab0
----
-65

query I rowsort
SELECT 14 - - col0 + + col1 FROM tab0
----
110
112
122

query III rowsort
SELECT ALL col1 AS col1, + 0 AS col0, col0 FROM tab0
----
9 values hashing to bbfba661dca6a932f9f1af8ff058def3

query I rowsort
SELECT DISTINCT - col0 + + - 77 AS col2 FROM tab1
----
-128
-162
-168

query I rowsort
SELECT DISTINCT 92 + + 59 FROM tab1
----
151

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 - col0 + col1 + col1 col0 FROM tab2 cor0
----
121
87
90

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1819
SELECT - - col1 AS col1, + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-1819
SELECT - - col1 AS col1, + CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT - col0 * + + 50 * + col1 FROM tab1 AS cor0
----
-21250
-213850
-35700

onlyif mysql # DIV for integer division: 
query I rowsort label-1821
SELECT ALL col0 * col0 DIV 8 FROM tab0
----
1176
28
946

skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL col0 * col0 / 8 FROM tab0
----
1176
28
946

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT DISTINCT + COUNT( * ) * - - 17 * - MAX( DISTINCT + col1 ) FROM tab0 AS cor0
----
-4131

skipif mysql # not compatible
query I rowsort label-1823
SELECT DISTINCT + COUNT ( * ) * - - 17 * - MAX ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-4131

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

query I rowsort
SELECT 54 + + - 93 FROM tab0
----
-39
-39
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + + col2 * + col2 col1 FROM tab2 AS cor0
----
123200
225388
26979

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1827
SELECT - + 82 * + - col2 - + CAST( + + 5 AS SIGNED ) FROM tab2 cor0
----
1881
3275
4751

skipif mysql # not compatible
query I rowsort label-1827
SELECT - + 82 * + - col2 - + CAST ( + + 5 AS INTEGER ) FROM tab2 cor0
----
1881
3275
4751

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 25 BETWEEN ( col1 ) AND NULL
----
15
81
47

query I rowsort
SELECT ALL 96 * col2 FROM tab2
----
2208
3840
5568

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > 11 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT ALL COUNT( * ) - + 15 col2 FROM tab0
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1832
SELECT ALL COUNT ( * ) - + 15 col2 FROM tab0
----
-12

query I rowsort
SELECT DISTINCT 86 - 7 * + col1 FROM tab1
----
-12
-243
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT + 76 + + MIN( + col0 ) FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-1834
SELECT + 76 + + MIN ( + col0 ) FROM tab0
----
91

query III rowsort
SELECT * FROM tab1 WHERE ( - 2 ) NOT IN ( - col2 * + 72 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 65 - col1 FROM tab0
----
-146
-66
-86

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 > - col1 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NULL <> + col0 * col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 NOT BETWEEN - 86 AND col0
----
15
81
47
87
21
10

query I rowsort
SELECT 11 * - col2 AS col1 FROM tab1 WHERE NULL IS NULL
----
-1056
-649
-748

query I rowsort
SELECT 32 * + 17 FROM tab2
----
544
544
544

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT DISTINCT SUM( ALL col0 ) * - 36 FROM tab2
----
-6660

skipif mysql # not compatible
query I rowsort label-1843
SELECT DISTINCT SUM ( ALL col0 ) * - 36 FROM tab2
----
-6660

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

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

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

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

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

query I rowsort
SELECT 45 * col0 + col1 FROM tab1
----
2309
3830
4142

query I rowsort
SELECT col1 FROM tab0 WHERE NOT col2 + col2 * 49 >= 29 * - col1
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1851
SELECT DISTINCT 75 DIV col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
0
1
7

skipif mysql # not compatible
query I rowsort label-1851
SELECT DISTINCT 75 / col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
0
1
7

query I rowsort
SELECT col0 - col1 * + ( col0 ) AS col2 FROM tab1
----
-340
-4186
-663

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT DISTINCT COUNT( DISTINCT - col0 ) - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1854
SELECT DISTINCT COUNT ( DISTINCT - col0 ) - COUNT ( * ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND 85 * col0 - col2 * col1
----
0

skipif mysql # not compatible
query I rowsort label-1855
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND 85 * col0 - col2 * col1
----
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 51 ) IS NULL
----

query I rowsort
SELECT - 96 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to c89b545346f99713888a7934e4caa539

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

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

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

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab0 ON NOT ( NULL ) NOT BETWEEN NULL AND 91
----

query I rowsort
SELECT - 1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT + 94 * col1 AS col1 FROM tab1 AS cor0
----
1316
4418
470

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1869
SELECT ALL * FROM tab0 AS cor0 WHERE ( - CAST( NULL AS SIGNED ) ) NOT IN ( + 95 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1869
SELECT ALL * FROM tab0 AS cor0 WHERE ( - CAST ( NULL AS INTEGER ) ) NOT IN ( + 95 + + CAST ( NULL AS INTEGER ) )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT DISTINCT ( COUNT( * ) ) + - 10 * + 98 FROM tab1
----
-977

skipif mysql # not compatible
query I rowsort label-1872
SELECT DISTINCT ( COUNT ( * ) ) + - 10 * + 98 FROM tab1
----
-977

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * + col0 BETWEEN + col0 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT MIN( 71 ) FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-1874
SELECT MIN ( 71 ) FROM tab0
----
71

query I rowsort
SELECT ALL col0 + + col1 * col1 AS col0 FROM tab0
----
528
6576
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT - 52 * - COUNT( * ) AS col0 FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-1876
SELECT - 52 * - COUNT ( * ) AS col0 FROM tab1
----
156

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT DISTINCT COUNT( * ) * - COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-1879
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 * - col2 ) IS NOT NULL AND 39 >= col2
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1882
SELECT ALL + 98 FROM tab0 AS cor0 WHERE ( - 96 * - CAST( NULL AS SIGNED ) ) NOT IN ( + col0 * col1 + col2 ) AND NULL > ( - col2 * col1 )
----

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL + 98 FROM tab0 AS cor0 WHERE ( - 96 * - CAST ( NULL AS INTEGER ) ) NOT IN ( + col0 * col1 + col2 ) AND NULL > ( - col2 * col1 )
----

query I rowsort
SELECT - col1 + - ( + 32 ) * col0 AS col0 FROM tab0 AS cor0
----
-2805
-3105
-561

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT + COUNT( * ) FROM tab2 WHERE ( - + 29 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1884
SELECT + COUNT ( * ) FROM tab2 WHERE ( - + 29 ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1885
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-1885
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL + col0 - 37 * + 73 AS col2 FROM tab1 AS cor0
----
-2610
-2616
-2650

query I rowsort
SELECT + 68 * + + col0 AS col0 FROM tab2 AS cor0
----
3128
4352
5100

query I rowsort
SELECT + col0 * - 7 + - + col0 FROM tab0 AS cor0
----
-120
-696
-776

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT DISTINCT + COUNT( * ) - COUNT( DISTINCT + 84 ) col1 FROM tab0 AS cor0
----
2

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1895
SELECT ALL - - 66 DIV 28 * - col1 + + 3 * 77 FROM tab0 AS cor0
----
189
229
69

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL - - 66 / 28 * - col1 + + 3 * 77 FROM tab0 AS cor0
----
189
229
69

onlyif mysql # DIV for integer division: 
query I rowsort label-1896
SELECT col1 - - + col2 * + col1 * + col2 + + col2 DIV col1 FROM tab0 AS cor0
----
179010
2121
9901

skipif mysql # not compatible
query I rowsort label-1896
SELECT col1 - - + col2 * + col1 * + col2 + + col2 / col1 FROM tab0 AS cor0
----
179010
2121
9901

query I rowsort
SELECT ALL 24 * + 71 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 * - col0 > NULL
----

query I rowsort
SELECT ALL - col2 * - - ( + col1 ) * - ( 91 ) FROM tab0
----
19110
346437
9009

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1900
SELECT ALL - ( + col2 ) DIV col0 * + 47 AS col2 FROM tab0
----
-141
-47
0

skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL - ( + col2 ) / col0 * + 47 AS col2 FROM tab0
----
-141
-47
0

query I rowsort
SELECT + 15 + 56 FROM tab2 WHERE NOT - ( + col2 ) IS NULL
----
71
71
71

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

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

skipif mysql # not compatible
query I rowsort label-1903
SELECT SUM ( DISTINCT - + 85 ) AS col1 FROM tab0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT COUNT( * ) FROM tab2 WHERE NOT ( - col0 * - - ( 35 ) / col2 - + 31 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1904
SELECT COUNT ( * ) FROM tab2 WHERE NOT ( - col0 * - - ( 35 ) / col2 - + 31 ) IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1905
SELECT DISTINCT - 52 DIV - col1 FROM tab0 AS cor0
----
0
2
52

skipif mysql # not compatible
query I rowsort label-1905
SELECT DISTINCT - 52 / - col1 FROM tab0 AS cor0
----
0
2
52

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

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( 11 ) NOT IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1909
SELECT * FROM tab0 WHERE NOT NULL < + CAST( 93 AS SIGNED ) / - col2 * - col0
----

skipif mysql # not compatible
query III rowsort label-1909
SELECT * FROM tab0 WHERE NOT NULL < + CAST ( 93 AS INTEGER ) / - col2 * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1910
SELECT DISTINCT + + col2 DIV - - col1 AS col2 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-1910
SELECT DISTINCT + + col2 / - - col1 AS col2 FROM tab1 AS cor0
----
1
11
6

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1912
SELECT CAST( NULL AS SIGNED ) AS col2, - col1 * - col1 AS col0 FROM tab0 cor0
----
NULL
1
NULL
441
NULL
6561

skipif mysql # not compatible
query II rowsort label-1912
SELECT CAST ( NULL AS INTEGER ) AS col2, - col1 * - col1 AS col0 FROM tab0 cor0
----
NULL
1
NULL
441
NULL
6561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1913
SELECT DISTINCT + COUNT( + 35 ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE col0 < - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1913
SELECT DISTINCT + COUNT ( + 35 ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE col0 < - col0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 8 - + col2 IS NULL
----

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

query I rowsort
SELECT + + col1 + + - 43 FROM tab1 AS cor0
----
-29
-38
4

query III rowsort
SELECT ALL * FROM tab1 WHERE + 94 + - col0 > + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 + 17 FROM tab0
----
104
114
32

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT DISTINCT COUNT( * ) + + 54 AS col1 FROM tab0, tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-1920
SELECT DISTINCT COUNT ( * ) + + 54 AS col1 FROM tab0, tab0 AS cor0
----
63

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 98 ) < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > col1 + + 85
----

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

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

query II rowsort
SELECT ALL 75 + + + col0 AS col2, - col1 AS col1 FROM tab2
----
121
-51
139
-77
150
-67

query I rowsort
SELECT col1 + - - col2 * - col1 FROM tab1
----
-1330
-290
-3149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1928
SELECT COUNT( * ) + + 56 * - SUM( col2 ) * - MAX( DISTINCT - + CAST( NULL AS SIGNED ) ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1928
SELECT COUNT ( * ) + + 56 * - SUM ( col2 ) * - MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) ) col2 FROM tab1
----
NULL

query I rowsort
SELECT + + col2 FROM tab0 WHERE - 54 = NULL
----

query I rowsort
SELECT ALL 75 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
75
75
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= - - col1
----

query I rowsort
SELECT 57 + - col2 AS col0 FROM tab0 AS cor0
----
-42
10
47

query I rowsort
SELECT 75 + - col1 + col0 + - 76 AS col1 FROM tab1 AS cor0 WHERE col1 BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT ALL - 55 * + - 75 - COUNT( * ) FROM tab1 AS cor0
----
4122

skipif mysql # not compatible
query I rowsort label-1934
SELECT ALL - 55 * + - 75 - COUNT ( * ) FROM tab1 AS cor0
----
4122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1935
SELECT - 76 + + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1935
SELECT - 76 + + - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + - col0 NOT BETWEEN - 12 AND + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 24 * - - col0 )
----

query II rowsort
SELECT DISTINCT col0 AS col1, col2 + + + col0 * - 40 FROM tab1
----
51
-1944
85
-3341
91
-3572

query I rowsort
SELECT DISTINCT col0 * 25 FROM tab0
----
2175
2425
375

query III rowsort
SELECT * FROM tab2 WHERE NOT + 56 IS NOT NULL
----

query I rowsort
SELECT col0 * - - col2 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1942
SELECT 75 * - + CAST( 58 AS SIGNED ) AS col1 FROM tab0
----
-4350
-4350
-4350

skipif mysql # not compatible
query I rowsort label-1942
SELECT 75 * - + CAST ( 58 AS INTEGER ) AS col1 FROM tab0
----
-4350
-4350
-4350

query I rowsort
SELECT DISTINCT - 13 * + - col2 AS col1 FROM tab0
----
1287
130
611

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1944
SELECT - + CAST( NULL AS SIGNED ) + + COUNT( * ) + + COUNT( * ) + 57 * - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT - col1 > + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-1944
SELECT - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + COUNT ( * ) + 57 * - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT - col1 > + 2
----
NULL

query I rowsort
SELECT col1 * + ( - + col0 ) * - col0 AS col2 FROM tab1
----
36125
36414
389207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1946
SELECT ALL CAST( NULL AS SIGNED ) * + MAX( + 95 ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1946
SELECT ALL CAST ( NULL AS INTEGER ) * + MAX ( + 95 ) AS col1 FROM tab2 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 * - col2 ) BETWEEN ( 16 ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT - + 41 * - COUNT( * ) + + + 4 col2 FROM tab1 AS cor0
----
127

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1948
SELECT - + 41 * - COUNT ( * ) + + + 4 col2 FROM tab1 AS cor0
----
127

query I rowsort
SELECT DISTINCT + 78 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + col1 AS col1, col1 col1 FROM tab2
----
2601
51
4489
67
5929
77

query I rowsort
SELECT 34 * + col1 + + col1 AS col2 FROM tab1
----
1645
175
490

query I rowsort
SELECT - - col2 FROM tab2 AS cor0 WHERE NOT col0 + col2 <> + 22
----

query I rowsort
SELECT DISTINCT + col0 - - col0 * + col0 * + col2 - + - col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 32 AS col0 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT ALL + col1 * + 98 * - 97 FROM tab0 AS cor0
----
-199626
-769986
-9506

query I rowsort
SELECT ALL - ( + - col0 ) FROM tab2 cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT DISTINCT + SUM( - ( - + col2 ) ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-1957
SELECT DISTINCT + SUM ( - ( - + col2 ) ) AS col2 FROM tab1 AS cor0
----
223

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 3 NOT BETWEEN 66 + + + col1 AND ( + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT DISTINCT + 12 + + 91 * 39 * - 59 + COUNT( * ) col0 FROM tab2
----
-209376

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1959
SELECT DISTINCT + 12 + + 91 * 39 * - 59 + COUNT ( * ) col0 FROM tab2
----
-209376

query I rowsort
SELECT 49 * + col0 AS col1 FROM tab2
----
2254
3136
3675

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT - 47 * + COUNT( * ) + - COUNT( * ) FROM tab0
----
-144

skipif mysql # not compatible
query I rowsort label-1961
SELECT - 47 * + COUNT ( * ) + - COUNT ( * ) FROM tab0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT DISTINCT + COUNT( * ) + 0 AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1962
SELECT DISTINCT + COUNT ( * ) + 0 AS col0 FROM tab2 cor0
----
3

query I rowsort
SELECT 88 + - col0 AS col0 FROM tab2 AS cor0
----
13
24
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1964
SELECT + - COUNT( * ) + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1964
SELECT + - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + 37 + 96 AS col1 FROM tab1 AS cor0
----
133
133
133

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT 58 + COUNT( * ) * 70 col0 FROM tab0 AS cor0
----
268

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1966
SELECT 58 + COUNT ( * ) * 70 col0 FROM tab0 AS cor0
----
268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + 4 col1 FROM tab1 AS cor0
----
100
63
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT ALL + + SUM( ALL + col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL + + SUM ( ALL + col0 ) FROM tab1 AS cor0
----
227

query II rowsort
SELECT + + col1, 33 AS col0 FROM tab2 AS cor0
----
51
33
67
33
77
33

query II rowsort
SELECT DISTINCT col2 AS col2, 73 AS col0 FROM tab0 AS cor0
----
10
73
47
73
99
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT ALL - 88 * - - 42 * - + SUM( - col2 ) + - 4 AS col1 FROM tab1 AS cor0
----
-824212

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL - 88 * - - 42 * - + SUM ( - col2 ) + - 4 AS col1 FROM tab1 AS cor0
----
-824212

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 col2 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - ( 90 ) FROM tab0 AS cor0
----
-90

query II rowsort
SELECT - col2 AS col1, + 51 FROM tab2 AS cor0
----
-23
51
-40
51
-58
51

query I rowsort
SELECT ALL - 52 * + col2 FROM tab0
----
-2444
-5148
-520

query II rowsort
SELECT ALL col0 * + + col0, - 35 * col1 AS col0 FROM tab0
----
225
-2835
7569
-735
9409
-35

query I rowsort
SELECT DISTINCT - 59 * - col2 AS col2 FROM tab2
----
1357
2360
3422

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT ( NOT - col0 + - col2 + col2 * + 97 / + col2 IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1979
SELECT ALL + 87 DIV + COUNT( * ) + 18 AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1979
SELECT ALL + 87 / + COUNT ( * ) + 18 AS col2 FROM tab1 AS cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 77 * - ( + 91 ) col2, col1 + - col2 AS col1 FROM tab0
----
7007
-98
7007
11
7007
34

onlyif mysql # aggregate syntax: 
query II rowsort label-1981
SELECT + 17 AS col2, COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
17
9

skipif mysql # not compatible
query II rowsort label-1981
SELECT + 17 AS col2, COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
17
9

query I rowsort
SELECT + 43 * - 55 FROM tab1
----
-2365
-2365
-2365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, - col1 * - 99 AS col2 FROM tab0 AS cor0
----
-1
99
-21
2079
-81
8019

query I rowsort
SELECT + 4 + col1 * 39 AS col1 FROM tab2 AS cor0
----
1993
2617
3007

query I rowsort
SELECT - 7 + - col0 AS col0 FROM tab1 AS cor0
----
-58
-92
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT ALL + + SUM( DISTINCT - - ( - col0 ) ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-1986
SELECT ALL + + SUM ( DISTINCT - - ( - col0 ) ) AS col2 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT ALL col1 + col2 * - col1 AS col2 FROM tab2 AS cor0
----
-1122
-3003
-3819

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1988
SELECT ALL - CAST( NULL AS SIGNED ) + - CAST( - col1 AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL - CAST ( NULL AS INTEGER ) + - CAST ( - col1 AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT + MAX( ( 33 ) ) + + - 43 * + - COUNT( * ) FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-1989
SELECT + MAX ( ( 33 ) ) + + - 43 * + - COUNT ( * ) FROM tab2 AS cor0
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1990
SELECT DISTINCT - col1, CAST( + + col1 AS SIGNED ) FROM tab1 AS cor0 WHERE col0 IS NULL
----

skipif mysql # not compatible
query II rowsort label-1990
SELECT DISTINCT - col1, CAST ( + + col1 AS INTEGER ) FROM tab1 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1991
SELECT ALL COUNT( DISTINCT + CAST( + col2 AS SIGNED ) ) + - 56 FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL COUNT ( DISTINCT + CAST ( + col2 AS INTEGER ) ) + - 56 FROM tab0
----
-53

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 * 26 + - + 51 * - col0 + ( + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + AVG ( DISTINCT - col0 ) col0 FROM tab2 WHERE - - col1 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - col0 * + - 73 * - ( - - col0 ) IN ( ( - + ( - 80 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT ALL 24 - COUNT( * ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-1995
SELECT ALL 24 - COUNT ( * ) FROM tab1
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-1996
SELECT ALL - + col1 DIV col2 - - col1 AS col2 FROM tab0 AS cor0
----
1
19
80

skipif mysql # not compatible
query I rowsort label-1996
SELECT ALL - + col1 / col2 - - col1 AS col2 FROM tab0 AS cor0
----
1
19
80

query I rowsort
SELECT - + 55 - + 78 FROM tab0 AS cor0
----
-133
-133
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT + COUNT( * ) FROM tab2 cor0 WHERE col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1998
SELECT + COUNT ( * ) FROM tab2 cor0 WHERE col0 < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT - COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1999
SELECT - COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2000
SELECT + col1 * + - col2 + CAST( - - 76 AS SIGNED ) * col0 * 23 col2 FROM tab0
----
151866
169457
22413

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2000
SELECT + col1 * + - col2 + CAST ( - - 76 AS INTEGER ) * col0 * 23 col2 FROM tab0
----
151866
169457
22413

query I rowsort
SELECT DISTINCT + ( - col0 ) FROM tab1 WHERE NOT - + 60 IS NULL
----
-51
-85
-91

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 35 IS NULL
----

query I rowsort
SELECT col1 * - - 18 FROM tab0
----
1458
18
378

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT ( + MIN( - + 2 ) ) * - 67 AS col1 FROM tab2
----
134

skipif mysql # not compatible
query I rowsort label-2004
SELECT ( + MIN ( - + 2 ) ) * - 67 AS col1 FROM tab2
----
134

query II rowsort
SELECT ALL + col0 AS col1, - 60 * - 2 FROM tab2
----
46
120
64
120
75
120

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 23 ) >= + 13
----

query I rowsort
SELECT 50 * - 14 AS col1 FROM tab2
----
-700
-700
-700

query I rowsort
SELECT ALL - 42 * col0 * + + 27 AS col1 FROM tab1
----
-103194
-57834
-96390

query II rowsort
SELECT 95 AS col1, - 62 + - 31 FROM tab2
----
95
-93
95
-93
95
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT DISTINCT + COUNT( * ) * + 12 AS col1 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-2010
SELECT DISTINCT + COUNT ( * ) * + 12 AS col1 FROM tab0
----
36

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col0 - - col2 + col2 ) <= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - 89 col1 FROM tab0 AS cor0
----
1335
7743
8633

query I rowsort
SELECT + col1 * 12 - - col0 + col2 * col1 + + 58 + 90 FROM tab2 AS cor0
----
1979
4216
4913

query I rowsort
SELECT - + col0 + - 40 AS col0 FROM tab0 cor0
----
-127
-137
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT DISTINCT COUNT( * ) + + SUM( DISTINCT - 74 ) AS col1 FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-2015
SELECT DISTINCT COUNT ( * ) + + SUM ( DISTINCT - 74 ) AS col1 FROM tab1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT - 37 - + COUNT( * ) + + 0 FROM tab0 AS cor0 WHERE NULL IN ( col1 + - col0 )
----
-37

skipif mysql # not compatible
query I rowsort label-2016
SELECT - 37 - + COUNT ( * ) + + 0 FROM tab0 AS cor0 WHERE NULL IN ( col1 + - col0 )
----
-37

query I rowsort
SELECT ALL + - col0 + - 31 * + 98 AS col0 FROM tab1 AS cor0
----
-3089
-3123
-3129

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2018
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2018
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + col0 IS NOT NULL
----

query II rowsort
SELECT + + col1 * col0 AS col1, col2 FROM tab0 AS cor0
----
1215
47
1827
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT ( MIN( - 66 ) ) FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2020
SELECT ( MIN ( - 66 ) ) FROM tab2 AS cor0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2021
SELECT DISTINCT + - AVG ( + + 11 ) * + MIN( DISTINCT - + CAST( NULL AS DECIMAL ) ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2021
SELECT DISTINCT + - AVG ( + + 11 ) * + MIN ( DISTINCT - + CAST ( NULL AS REAL ) ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 36 + - col0 FROM tab2
----
-100
-111
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-2023
SELECT col2 DIV 9 FROM tab0
----
1
11
5

skipif mysql # not compatible
query I rowsort label-2023
SELECT col2 / 9 FROM tab0
----
1
11
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2024
SELECT DISTINCT 7 * - SUM( + ( + + CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2024
SELECT DISTINCT 7 * - SUM ( + ( + + CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( col0 ) * + - 78 * + 45 AND col2 + col2
----

query I rowsort
SELECT 41 - - - col0 * - 57 AS col0 FROM tab2
----
2663
3689
4316

query II rowsort
SELECT - 12 * + col0 + - col0, - col0 * + col1 AS col0 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
-598
-2346
-832
-4928
-975
-5025

query I rowsort
SELECT - col0 - + col0 * col1 AS col2 FROM tab2
----
-2392
-4992
-5100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + ( - col2 ) ) + - + col1 + + 13 col0 FROM tab1
----
-102
-51
-97

query I rowsort
SELECT DISTINCT 6 - + + col0 FROM tab2
----
-40
-58
-69

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 + + 83 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 < col0
----

query I rowsort
SELECT DISTINCT - 76 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2034
SELECT CAST( NULL AS SIGNED ) / + 30 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2034
SELECT CAST ( NULL AS INTEGER ) / + 30 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT ( NOT - 29 IS NOT NULL )
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN - 16 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - ( - 44 ) AS col0 FROM tab1 AS cor0
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT ALL - COUNT( * ) * + COUNT( * ) + 52 AS col0 FROM tab0 cor0
----
43

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL - COUNT ( * ) * + COUNT ( * ) + 52 AS col0 FROM tab0 cor0
----
43

query II rowsort
SELECT col2 * col0, - col0 AS col1 FROM tab2 AS cor0
----
1058
-46
2560
-64
4350
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT DISTINCT SUM( + 57 ) AS col2 FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-2040
SELECT DISTINCT SUM ( + 57 ) AS col2 FROM tab2 AS cor0
----
171

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col2 <= col1
----
15
81
47
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2043
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, - 90 AS col0 FROM tab2
----
NULL
-90

skipif mysql # not compatible
query II rowsort label-2043
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, - 90 AS col0 FROM tab2
----
NULL
-90

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 61 * col2 - - - col0 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT ALL COUNT( * ) + - 49 AS col2 FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL COUNT ( * ) + - 49 AS col2 FROM tab0
----
-46

query I rowsort
SELECT DISTINCT 89 + - - col0 AS col1 FROM tab1 WHERE NOT col1 + + 70 * - - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2047
SELECT col0 + + + col1 DIV - col0 AS col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2047
SELECT col0 + + + col1 / - col0 AS col2 FROM tab1
----
51
85
91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * + + 94 / + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( - col0 )
----

query I rowsort
SELECT DISTINCT 12 + - col1 AS col2 FROM tab2 AS cor0
----
-39
-55
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2052
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2052
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT ALL - SUM( + + 30 ) FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-2053
SELECT ALL - SUM ( + + 30 ) FROM tab0 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT + COUNT( * ) + + SUM( + col2 ) col0 FROM tab2 AS cor0
----
124

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2054
SELECT + COUNT ( * ) + + SUM ( + col2 ) col0 FROM tab2 AS cor0
----
124

query I rowsort
SELECT + 58 + + col1 AS col1 FROM tab0 AS cor0
----
139
59
79

query I rowsort
SELECT DISTINCT - + col1 * + + col0 * + col2 * + + 13 FROM tab1 AS cor0
----
-325975
-3780868
-891072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2057
SELECT ALL 11 / 74 * 62 + CAST( NULL AS SIGNED ) - - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL 11 / 74 * 62 + CAST ( NULL AS INTEGER ) - - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 + - 46 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2059
SELECT COUNT( * ) DIV - ( + 67 ) col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2059
SELECT COUNT ( * ) / - ( + 67 ) col2 FROM tab1
----
0

query I rowsort
SELECT ALL col0 + + - col1 + + + 97 + col2 AS col0 FROM tab1
----
209
230
236

query I rowsort
SELECT DISTINCT 93 AS col2 FROM tab1 WHERE + + col0 IS NULL
----

query II rowsort
SELECT ALL - 74 - 60 AS col1, + 46 FROM tab0
----
-134
46
-134
46
-134
46

query I rowsort
SELECT ALL col1 * - 96 + ( col2 ) FROM tab0
----
-2006
-7729
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2064
SELECT DISTINCT - 34 - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2064
SELECT DISTINCT - 34 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT - - 15 * - + COUNT( * ) FROM tab2 cor0
----
-45

skipif mysql # not compatible
query I rowsort label-2065
SELECT - - 15 * - + COUNT ( * ) FROM tab2 cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT DISTINCT MIN( ALL + col0 ) * + COUNT( * ) col1 FROM tab1 cor0
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2066
SELECT DISTINCT MIN ( ALL + col0 ) * + COUNT ( * ) col1 FROM tab1 cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT + + MAX( DISTINCT - + 91 ) + - 18 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - + 80, + col2, + + col2 + + col0, 51 * + 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2067
SELECT + + MAX ( DISTINCT - + 91 ) + - 18 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - + 80, + col2, + + col2 + + col0, 51 * + 95 )
----
NULL

query I rowsort
SELECT DISTINCT - - col0 * 93 FROM tab0 cor0
----
1395
8091
9021

onlyif mysql # DIV for integer division: 
query I rowsort label-2069
SELECT 4 DIV - - ( ( ( 8 ) ) ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2069
SELECT 4 / - - ( ( ( 8 ) ) ) FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col2 * 59 AS col0 FROM tab0 cor0
----
2773
5841
590

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col1 - col2 ) NOT BETWEEN NULL AND - col0
----
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT ALL + COUNT( ALL - - 16 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL + COUNT ( ALL - - 16 ) FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2073
SELECT - 35 + - CAST( NULL AS DECIMAL ), + col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col1 - + 90, - col2, - col1, 98 )
----

skipif mysql # not compatible
query II rowsort label-2073
SELECT - 35 + - CAST ( NULL AS REAL ), + col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col1 - + 90, - col2, - col1, 98 )
----

query I rowsort
SELECT ALL + + 35 AS col2 FROM tab0 cor0
----
35
35
35

query II rowsort
SELECT - col2 * + - 81 AS col2, + col0 AS col0 FROM tab2
----
1863
46
3240
64
4698
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2076
SELECT - ( + ( + 60 ) ) DIV col1 * - 13 - ( - col2 ) + - col0 * col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-178
-7533
-8530

skipif mysql # not compatible
query I rowsort label-2076
SELECT - ( + ( + 60 ) ) / col1 * - 13 - ( - col2 ) + - col0 * col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-178
-7533
-8530

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 69 < - 69
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2078
SELECT ALL + CAST( NULL AS SIGNED ) * + - col1 + - + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL + CAST ( NULL AS INTEGER ) * + - col1 + - + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * + col1 * - col2 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT ALL COUNT( ALL - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL COUNT ( ALL - col2 ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 < + 27 + - col0
----

query I rowsort
SELECT + col0 * 64 + - 68 FROM tab2 AS cor0
----
2876
4028
4732

query I rowsort
SELECT 67 + + + col1 FROM tab1 cor0
----
114
72
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2084
SELECT + 28 + - CAST( + COUNT( 97 ) AS SIGNED ) + - - ( + COUNT( ALL - - col2 ) ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-2084
SELECT + 28 + - CAST ( + COUNT ( 97 ) AS INTEGER ) + - - ( + COUNT ( ALL - - col2 ) ) FROM tab0
----
28

query I rowsort
SELECT col2 + - 91 AS col0 FROM tab1
----
-23
-32
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT ALL - 14 * - - COUNT( - - col1 ) + - 92 FROM tab0 AS cor0
----
-134

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL - 14 * - - COUNT ( - - col1 ) + - 92 FROM tab0 AS cor0
----
-134

query I rowsort
SELECT ALL + - col1 AS col2 FROM tab2 AS cor0 WHERE ( col2 ) IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT ALL + col1 * + col2 * + col2 * - col1 * + 13 + + col1 * 87 + - + col0 + 76 FROM tab1 AS cor0
----
-1130899
-132783334
-23481125

onlyif mysql # DIV for integer division: 
query I rowsort label-2089
SELECT DISTINCT col1 + + col0 DIV + + 69 FROM tab2 AS cor0
----
51
68
77

skipif mysql # not compatible
query I rowsort label-2089
SELECT DISTINCT col1 + + col0 / + + 69 FROM tab2 AS cor0
----
51
68
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2090
SELECT ALL + CAST( NULL AS DECIMAL ) * - 7 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2090
SELECT ALL + CAST ( NULL AS REAL ) * - 7 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 AS col0 FROM tab0 WHERE NOT - 61 IS NOT NULL OR 75 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2092
SELECT ALL + col1 * - col1 + - 11 - col0 - + 9 * col2 DIV - col1 FROM tab0
----
-535
-6582
782

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL + col1 * - col1 + - 11 - col0 - + 9 * col2 / - col1 FROM tab0
----
-535
-6582
782

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 IN ( col2 * + + 20 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 + + 58 col0 FROM tab0
----
157
268
3865

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 = + - col1 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col1, - col1 + - + 1 FROM tab1 cor0
----
14
-15
47
-48
5
-6

query II rowsort
SELECT + ( - 52 ) * - + col1 * - 89 + col0 * - - col2 AS col1, - 57 * + col1 FROM tab0 AS cor0
----
-374163
-4617
-96318
-1197
4975
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2098
SELECT DISTINCT + CAST( + - COUNT( * ) AS SIGNED ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2098
SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

query II rowsort
SELECT DISTINCT 61 * + col2, col0 AS col0 FROM tab1 AS cor0
----
3599
85
4148
91
5856
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT ALL - + COUNT( * ) * 84 FROM tab1 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL - + COUNT ( * ) * 84 FROM tab1 AS cor0
----
-252

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 37 + col2 >= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2103
SELECT DISTINCT - - 41 DIV + - COUNT( * ) - - CAST( + 44 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-2103
SELECT DISTINCT - - 41 / + - COUNT ( * ) - - CAST ( + 44 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
31

query I rowsort
SELECT DISTINCT - - 42 + 92 FROM tab2 AS cor0
----
134

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 + col1 * - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 + - + col2 col1 FROM tab0
----
-29
-81
8

query III rowsort
SELECT * FROM tab2 WHERE - col1 BETWEEN NULL AND + col0
----

query I rowsort
SELECT DISTINCT col2 * 1 FROM tab1
----
59
68
96

query II rowsort
SELECT ( col1 ) + - - 33 + - 39 AS col1, + col0 * - col1 FROM tab0
----
-5
-97
15
-1827
75
-1215

query III rowsort
SELECT * FROM tab1 WHERE col0 + + 29 BETWEEN NULL AND + - ( - 29 ) + 47
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2111
SELECT ALL 47 AS col2, + COUNT( * ) FROM tab2
----
47
3

skipif mysql # not compatible
query II rowsort label-2111
SELECT ALL 47 AS col2, + COUNT ( * ) FROM tab2
----
47
3

query II rowsort
SELECT + col1 AS col0, col0 - + col0 + col2 FROM tab1
----
14
96
47
68
5
59

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col0 + ( col2 ) >= + - col0 * - 10 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2114
SELECT + 64 DIV 64 + - 84 + - + col0 + + 81 AS col0 FROM tab0 cor0
----
-17
-89
-99

skipif mysql # not compatible
query I rowsort label-2114
SELECT + 64 / 64 + - 84 + - + col0 + + 81 AS col0 FROM tab0 cor0
----
-17
-89
-99

query I rowsort
SELECT ( 90 ) FROM tab1 AS cor0
----
90
90
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2116
SELECT + col0 DIV + ( col0 ) - + 69 DIV col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2116
SELECT + col0 / + ( col0 ) - + 69 / col0 FROM tab2
----
0
0
1

query I rowsort
SELECT DISTINCT - + col2 - + col2 + - - 26 FROM tab0 AS cor0
----
-172
-68
6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 IN ( + ( + + col1 ) + - + col0, 41, + 65 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT - MIN( - - 73 ) + - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-2119
SELECT - MIN ( - - 73 ) + - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT + COUNT( * ) * - 61 + ( 40 ) AS col0 FROM tab2 AS cor0
----
-143

skipif mysql # not compatible
query I rowsort label-2120
SELECT + COUNT ( * ) * - 61 + ( 40 ) AS col0 FROM tab2 AS cor0
----
-143

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 - - 30 NOT BETWEEN + - col2 * col0 + + 0 AND - col1 + - 15 + - - col1
----

query II rowsort
SELECT ALL + ( col1 ) AS col2, 49 + col0 * - 38 FROM tab0 AS cor0
----
1
-3637
21
-3257
81
-521

query I rowsort
SELECT ALL + 27 + 19 + - - 40 AS col2 FROM tab2 AS cor0
----
86
86
86

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL NOT BETWEEN NULL AND NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= - 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT COUNT( * ) * + + 92 col1 FROM tab0
----
276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2126
SELECT COUNT ( * ) * + + 92 col1 FROM tab0
----
276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2127
SELECT ALL + - SUM( ALL - col2 ) DIV + - MAX( - - col2 ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL + - SUM ( ALL - col2 ) / + - MAX ( - - col2 ) FROM tab1 AS cor0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2128
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * + - col2 + col0 * + col1 - 79 * CAST( NULL AS SIGNED ) + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2128
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * + - col2 + col0 * + col1 - 79 * CAST ( NULL AS INTEGER ) + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT - + MAX( - 30 ) FROM tab0 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2129
SELECT - + MAX ( - 30 ) FROM tab0 WHERE NOT NULL < NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2130
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2130
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL BETWEEN 44 * - + 84 AND ( NULL )
----

query I rowsort
SELECT + ( + - 12 ) FROM tab2
----
-12
-12
-12

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 96 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab2 AS cor0 WHERE NOT ( ( NOT - 62 + + + col2 + + ( ( + + col1 ) ) IS NULL ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2135
SELECT ALL + 7 DIV - col1 col0, col1 * - - col2 * + col2 FROM tab1 AS cor0
----
-1
17405
0
129024
0
217328

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2135
SELECT ALL + 7 / - col1 col0, col1 * - - col2 * + col2 FROM tab1 AS cor0
----
-1
17405
0
129024
0
217328

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 66 + - col0 col1 FROM tab0 AS cor0
----
-21
-31
51

query II rowsort
SELECT DISTINCT - - col0 AS col0, + 10 * + col2 AS col2 FROM tab0 cor0
----
15
470
87
100
97
990

query I rowsort
SELECT ALL 92 + col0 + - 79 AS col1 FROM tab2 AS cor0
----
59
77
88

query I rowsort
SELECT DISTINCT col1 * - + col1 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT 68 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 * - 90 col1 FROM tab1
----
1350
1350
1350

query I rowsort
SELECT ALL + 70 + ( col0 ) AS col1 FROM tab0
----
157
167
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT SUM( - 28 ) AS col1 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-2143
SELECT SUM ( - 28 ) AS col1 FROM tab2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT ALL + COUNT( * ) + - + 59 AS col2 FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL + COUNT ( * ) + - + 59 AS col2 FROM tab1
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2145
SELECT DISTINCT - - COUNT( * ) DIV ( SUM( ALL col1 ) ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2145
SELECT DISTINCT - - COUNT ( * ) / ( SUM ( ALL col1 ) ) AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * + col2 * - - 60 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 + - col0 col1 FROM tab1 cor0
----
-13
-47
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2148
SELECT + col2 / 65 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2148
SELECT + col2 / 65 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * 90 < col2
----

query I rowsort
SELECT DISTINCT col1 * + 22 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, col0 AS col0 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT DISTINCT 0 + col1 AS col0 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL col0 - - ( 22 ) + col1 FROM tab0
----
118
120
130

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + col1 * + - col1 AND NULL
----

query I rowsort
SELECT DISTINCT - + col1 * + - 4 + col2 - col2 AS col1 FROM tab0 AS cor0
----
324
4
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2156
SELECT DISTINCT - col2 * - - col0 + col1 * CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2156
SELECT DISTINCT - col2 * - - col0 + col1 * CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 94 - - 84 + + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 96 AS col2, - 95 - + - 62 * + col0 + col2 + - + col1 FROM tab1 AS cor0
----
96
3149
96
5229
96
5568

query I rowsort
SELECT col2 * ( - ( + col1 ) ) FROM tab0 AS cor0
----
-210
-3807
-99

query II rowsort
SELECT + + col2 AS col0, - ( - - col0 ) AS col1 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

query I rowsort
SELECT DISTINCT + - 46 * + col2 * - 77 AS col2 FROM tab1 WHERE NOT NULL <> - ( + + 32 ) * col2 + - - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL <> 27 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2163
SELECT ALL - CAST( - - 31 AS SIGNED ) FROM tab0 AS cor0 WHERE 34 = + - 64
----

skipif mysql # not compatible
query I rowsort label-2163
SELECT ALL - CAST ( - - 31 AS INTEGER ) FROM tab0 AS cor0 WHERE 34 = + - 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT DISTINCT + COUNT( * ) + - + 69 + ( + 21 ) FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-2164
SELECT DISTINCT + COUNT ( * ) + - + 69 + ( + 21 ) FROM tab1
----
-45

query I rowsort
SELECT ALL - + col1 AS col1 FROM tab0 WHERE NOT + col1 IS NULL
----
-1
-21
-81

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( + col2, + 43, - 35, - 21, - + 51 )
----

query I rowsort
SELECT ALL + col1 + + col2 + col2 * - + col1 FROM tab0
----
-179
-3679
1

query I rowsort
SELECT - 78 + col1 AS col0 FROM tab1 AS cor0
----
-31
-64
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT ALL + MIN( ALL - ( col1 ) ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2169
SELECT ALL + MIN ( ALL - ( col1 ) ) FROM tab1 cor0
----
-47

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) >= col0
----

query I rowsort
SELECT ALL - col2 + - 23 FROM tab0 AS cor0
----
-122
-33
-70

query II rowsort
SELECT 62 + + + 49 AS col1, col0 AS col2 FROM tab1
----
111
51
111
85
111
91

query III rowsort
SELECT * FROM tab1 WHERE - col0 - - + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2174
SELECT CAST( NULL AS SIGNED ) + ( + col0 ) + + - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2174
SELECT CAST ( NULL AS INTEGER ) + ( + col0 ) + + - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN 87 AND col2
----

query II rowsort
SELECT DISTINCT col2, col1 * + col0 FROM tab1 AS cor0
----
59
425
68
4277
96
714

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 41 <> - 96
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT + MAX( ALL + + 73 ) AS col2 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-2178
SELECT + MAX ( ALL + + 73 ) AS col2 FROM tab2 AS cor0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2179
SELECT - - col1 * - - CAST( NULL AS SIGNED ) * - - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2179
SELECT - - col1 * - - CAST ( NULL AS INTEGER ) * - - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 66 AS col1 FROM tab1 AS cor0 WHERE NOT col1 / + - col1 = NULL
----

query I rowsort
SELECT ALL - 86 AS col1 FROM tab2 AS cor0 WHERE 77 IS NOT NULL
----
-86
-86
-86

query I rowsort
SELECT DISTINCT col1 * 28 * + col2 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
106596
2772
5880

query I rowsort
SELECT + ( 37 ) AS col2 FROM tab2
----
37
37
37

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 11 + - + col2 - 38 + - - col1 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 76 AS col1, 26 col1 FROM tab1 AS cor0
----
76
26
76
26
76
26

query II rowsort
SELECT ALL + 94 AS col2, col1 * - col1 FROM tab0 AS cor0
----
94
-1
94
-441
94
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT - MAX( DISTINCT - col2 ) + 14 - + COUNT( * ) FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-2187
SELECT - MAX ( DISTINCT - col2 ) + 14 - + COUNT ( * ) FROM tab2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT ALL COUNT( * ) * + 22 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2188
SELECT ALL COUNT ( * ) * + 22 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
198

query I rowsort
SELECT DISTINCT - + 19 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-19

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 * + col2 IS NOT NULL
----

query I rowsort
SELECT ALL col1 / 16 * + col0 + + col0 + + 42 * + col0 + - 82 FROM tab2 WHERE NOT + - 61 IS NOT NULL
----

query I rowsort
SELECT ALL - - col2 * + 50 FROM tab2 AS cor0
----
1150
2000
2900

query II rowsort
SELECT - col2 * ( - - ( col0 ) ), + col0 FROM tab0 AS cor0
----
-705
15
-870
87
-9603
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 73 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT ALL SUM( DISTINCT - + col0 ) * + + COUNT( * ) + COUNT( * ) FROM tab1
----
-678

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL SUM ( DISTINCT - + col0 ) * + + COUNT ( * ) + COUNT ( * ) FROM tab1
----
-678

onlyif mysql # DIV for integer division: 
query II rowsort label-2196
SELECT - 81 DIV - 96 + + + col1 AS col1, col1 FROM tab1
----
14
14
47
47
5
5

skipif mysql # not compatible
query II rowsort label-2196
SELECT - 81 / - 96 + + + col1 AS col1, col1 FROM tab1
----
14
14
47
47
5
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col0 + col1 AND NULL
----

query II rowsort
SELECT DISTINCT + 98 * + - col0 + + col2 AS col1, col2 FROM tab1 AS cor0
----
-4902
96
-8271
59
-8850
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2199
SELECT ALL + col0 DIV - + col1 AS col0 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL + col0 / - + col1 AS col0 FROM tab1 AS cor0
----
-1
-17
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2200
SELECT CAST( NULL AS DECIMAL ) * + 61 / col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2200
SELECT CAST ( NULL AS REAL ) * + 61 / col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col0 * + - col0 AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

query I rowsort
SELECT ALL - + 63 AS col1 FROM tab1 AS cor0
----
-63
-63
-63

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 23 > col1
----
91
47
68

query I rowsort
SELECT 39 * - + col2 FROM tab2 AS cor0
----
-1560
-2262
-897

onlyif mysql # aggregate syntax: 
query II rowsort label-2205
SELECT DISTINCT 23 * - 49 col1, + COUNT( * ) FROM tab2 AS cor0
----
-1127
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2205
SELECT DISTINCT 23 * - 49 col1, + COUNT ( * ) FROM tab2 AS cor0
----
-1127
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT + - 75 * COUNT( * ) FROM tab2 cor0
----
-225

skipif mysql # not compatible
query I rowsort label-2206
SELECT + - 75 * COUNT ( * ) FROM tab2 cor0
----
-225

onlyif mysql # DIV for integer division: 
query I rowsort label-2207
SELECT DISTINCT col1 DIV col1 * + 16 AS col0 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-2207
SELECT DISTINCT col1 / col1 * + 16 AS col0 FROM tab0
----
16

query III rowsort
SELECT * FROM tab2 WHERE NOT + 33 * + + col1 * col2 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT ALL COUNT( - + 79 ) FROM tab0, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2209
SELECT ALL COUNT ( - + 79 ) FROM tab0, tab2 cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2210
SELECT DISTINCT + 61 * COUNT( * ) DIV - + 61 FROM tab1, tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2210
SELECT DISTINCT + 61 * COUNT ( * ) / - + 61 FROM tab1, tab2 cor0
----
-9

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NULL < + + 69
----

query I rowsort
SELECT - col0 * col2 * - - col0 AS col2 FROM tab0 AS cor0
----
-10575
-75690
-931491

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT - COUNT( * ) col0 FROM tab1 cor0 WHERE NOT NULL >= - col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2213
SELECT - COUNT ( * ) col0 FROM tab1 cor0 WHERE NOT NULL >= - col2
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN - col0 * + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2215
SELECT ALL + + col2 DIV - 59 + + - 2 AS col0 FROM tab2 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-2215
SELECT ALL + + col2 / - 59 + + - 2 AS col0 FROM tab2 AS cor0
----
-2
-2
-2

query I rowsort
SELECT - ( + - 1 ) FROM tab0 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab2 WHERE + ( 4 ) IS NULL
----

query I rowsort
SELECT DISTINCT + + ( + col0 ) * + - col1 * + 19 AS col1 FROM tab2 WHERE 35 = + 56 * + col2
----

query I rowsort
SELECT col1 + - 33 + - col0 FROM tab2
----
-20
-28
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 col1, - 45 + col0 * + 23 * + + col2 FROM tab2 AS cor0
----
-51
24289
-67
100005
-77
58835

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2221
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 78 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2221
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 78 AND + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 + col2 col2 FROM tab0 cor0
----
1262
1837
196

query I rowsort
SELECT DISTINCT + col2 + - col1 * col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - ( + col2 ) + - + 64 AND - + col0 * + col2 - col1 + 39
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < col1 / col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2225
SELECT - CAST( NULL AS SIGNED ), - AVG ( ALL - col2 ) FROM tab1 WHERE + col1 IS NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2225
SELECT - CAST ( NULL AS INTEGER ), - AVG ( ALL - col2 ) FROM tab1 WHERE + col1 IS NULL
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT - ( SUM( - col0 ) ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-2226
SELECT - ( SUM ( - col0 ) ) FROM tab2
----
185

query II rowsort
SELECT DISTINCT + - col1 + - - col1 * col0, - col2 FROM tab0 WHERE 29 + - col0 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2228
SELECT DISTINCT COUNT( * ) + + - 1 / - CAST( NULL AS DECIMAL ) * + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2228
SELECT DISTINCT COUNT ( * ) + + - 1 / - CAST ( NULL AS REAL ) * + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - col1 + - 52 * - col1 + - col0 + + 29 * col2 FROM tab0
----
1274
2825
5479

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT ALL 4 - + COUNT( * ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2230
SELECT ALL 4 - + COUNT ( * ) AS col2 FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2231
SELECT ALL + + col2 - + col2 DIV col1 * col2 AS col2 FROM tab1 AS cor0
----
-480
-590
0

skipif mysql # not compatible
query I rowsort label-2231
SELECT ALL + + col2 - + col2 / col1 * col2 AS col2 FROM tab1 AS cor0
----
-480
-590
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT + + COUNT( * ) * - + COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2232
SELECT + + COUNT ( * ) * - + COUNT ( * ) FROM tab0 AS cor0
----
-9

query I rowsort
SELECT DISTINCT col0 * + ( + col0 ) AS col0 FROM tab0 AS cor0
----
225
7569
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 38 col2 FROM tab0 cor0
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2235
SELECT COUNT( DISTINCT + - CAST( + 54 AS SIGNED ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2235
SELECT COUNT ( DISTINCT + - CAST ( + 54 AS INTEGER ) ) FROM tab0
----
1

query I rowsort
SELECT + - 46 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * + col2 + + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2238
SELECT DISTINCT - col0 DIV + col2 AS col2 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2238
SELECT DISTINCT - col0 / + col2 AS col2 FROM tab1 cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2239
SELECT DISTINCT - + CAST( + col1 AS SIGNED ) DIV 76 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2239
SELECT DISTINCT - + CAST ( + col1 AS INTEGER ) / 76 FROM tab0 AS cor0
----
-1
0

query II rowsort
SELECT DISTINCT col0 AS col1, + col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2241
SELECT ALL + col2 DIV + + 11 AS col0 FROM tab0 cor0
----
0
4
9

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL + col2 / + + 11 AS col0 FROM tab0 cor0
----
0
4
9

query I rowsort
SELECT ALL - 94 AS col0 FROM tab1 cor0
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT - MAX( DISTINCT - + 31 ) FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-2243
SELECT - MAX ( DISTINCT - + 31 ) FROM tab2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT ALL MAX( DISTINCT col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL MAX ( DISTINCT col1 ) AS col0 FROM tab1
----
47

query I rowsort
SELECT col1 * + 36 FROM tab2
----
1836
2412
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT ALL + COUNT( * ) * - + SUM( - + col2 ) AS col1 FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-2246
SELECT ALL + COUNT ( * ) * - + SUM ( - + col2 ) AS col1 FROM tab2
----
363

query I rowsort
SELECT - 22 * + col0 FROM tab1
----
-1122
-1870
-2002

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT + - COUNT( + col0 ) * - + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2248
SELECT + - COUNT ( + col0 ) * - + COUNT ( * ) FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT DISTINCT MAX( ALL col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2249
SELECT DISTINCT MAX ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2250
SELECT DISTINCT + col0 DIV col1 - + col1 FROM tab2 AS cor0
----
-51
-66
-77

skipif mysql # not compatible
query I rowsort label-2250
SELECT DISTINCT + col0 / col1 - + col1 FROM tab2 AS cor0
----
-51
-66
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2251
SELECT DISTINCT + - COUNT( * ) DIV + + 77 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2251
SELECT DISTINCT + - COUNT ( * ) / + + 77 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT DISTINCT + SUM( col1 ) * + ( + - SUM( DISTINCT col0 ) ) FROM tab0
----
-20497

skipif mysql # not compatible
query I rowsort label-2252
SELECT DISTINCT + SUM ( col1 ) * + ( + - SUM ( DISTINCT col0 ) ) FROM tab0
----
-20497

query I rowsort
SELECT ( + + col0 ) + col2 FROM tab1
----
144
147
159

query I rowsort
SELECT + 58 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - 78 + col0 - - - col2 AND + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * + 65 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 64 IS NOT NULL
----

query II rowsort
SELECT ALL + + ( col2 ) AS col2, + col1 AS col0 FROM tab2 AS cor0
----
23
51
40
77
58
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 50 * - col0 + - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) * + + 36 - - col2 col2 FROM tab2 cor0
----
-1633
-2264
-2642

query I rowsort
SELECT col1 - col1 - + - col0 * + + 90 FROM tab1 cor0
----
4590
7650
8190

onlyif mysql # DIV for integer division: 
query I rowsort label-2262
SELECT + + col1 DIV col1 - + col0 col1 FROM tab2 AS cor0
----
-45
-63
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2262
SELECT + + col1 / col1 - + col0 col1 FROM tab2 AS cor0
----
-45
-63
-74

query I rowsort
SELECT DISTINCT - + ( 6 ) * + + col0 + + - 22 FROM tab0 AS cor0
----
-112
-544
-604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2264
SELECT - CAST( NULL AS SIGNED ) / - col1 - + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2264
SELECT - CAST ( NULL AS INTEGER ) / - col1 - + col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT DISTINCT + MAX( ALL + + 56 ) FROM tab0 WHERE NOT col1 IS NULL
----
56

skipif mysql # not compatible
query I rowsort label-2265
SELECT DISTINCT + MAX ( ALL + + 56 ) FROM tab0 WHERE NOT col1 IS NULL
----
56

query II rowsort
SELECT DISTINCT 76, + col0 FROM tab0
----
76
15
76
87
76
97

query I rowsort
SELECT DISTINCT - col0 - + 77 FROM tab1
----
-128
-162
-168

query I rowsort
SELECT - 29 + + col1 FROM tab0
----
-28
-8
52

query I rowsort
SELECT ALL + col1 + - col0 FROM tab1 WHERE + + col1 = + col2 * + - 60
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * - col2 NOT BETWEEN - 84 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2271
SELECT - col0 * 12 DIV - col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1164
2
49

skipif mysql # not compatible
query I rowsort label-2271
SELECT - col0 * 12 / - col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1164
2
49

query III rowsort
SELECT * FROM tab0 WHERE ( - 36 ) * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT ALL COUNT( * ) + + 11 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL COUNT ( * ) + + 11 FROM tab1
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2274
SELECT ALL col1 DIV 66 + 94 AS col2 FROM tab1
----
94
94
94

skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL col1 / 66 + 94 AS col2 FROM tab1
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE NOT ( col2 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2275
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( col2 ) = NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE + 98 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2277
SELECT ALL CAST( NULL AS DECIMAL ) AS col2 FROM tab1 WHERE ( - col0 * + col1 ) <= - ( + 81 ) + + col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2277
SELECT ALL CAST ( NULL AS REAL ) AS col2 FROM tab1 WHERE ( - col0 * + col1 ) <= - ( + 81 ) + + col0
----
NULL
NULL
NULL

query I rowsort
SELECT + 88 * - col0 + - col2 FROM tab2 WHERE NOT NULL = - col1 / + ( - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE 95 NOT BETWEEN NULL AND + 28 * + 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT COUNT( - ( - 25 ) ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2280
SELECT COUNT ( - ( - 25 ) ) col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT - 36 + COUNT( * ) FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-2281
SELECT - 36 + COUNT ( * ) FROM tab0
----
-33

query I rowsort
SELECT + 53 + 80 * + col0 FROM tab1
----
4133
6853
7333

query I rowsort
SELECT DISTINCT - 60 + ( - ( - ( + col2 ) ) ) AS col2 FROM tab2 WHERE NOT col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2284
SELECT 19 + + COUNT( * ) DIV SUM( + 22 * 50 + + ( - col2 - + col1 ) ) AS col0 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-2284
SELECT 19 + + COUNT ( * ) / SUM ( + 22 * 50 + + ( - col2 - + col1 ) ) AS col0 FROM tab1
----
19

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 35 + + 4 * + col2 IN ( - 4 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 89 FROM tab2 WHERE NOT col0 >= col0 + col1 * + 93
----
89

query I rowsort
SELECT + 66 * - 96 FROM tab2
----
-6336
-6336
-6336

query I rowsort
SELECT + 50 * + col0 FROM tab2
----
2300
3200
3750

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE - 97 NOT BETWEEN + 39 - - col2 AND + col0 * - col2 + - col0
----
51
85
91

query I rowsort
SELECT - 35 * + col2 FROM tab0 WHERE col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 53 BETWEEN ( - col2 + col0 ) AND col1
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT ( COUNT( * ) ) AS col0 FROM tab0 WHERE NOT 61 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2292
SELECT ( COUNT ( * ) ) AS col0 FROM tab0 WHERE NOT 61 IS NULL
----
3

query I rowsort
SELECT 60 - col2 FROM tab2
----
2
20
37

onlyif mysql # DIV for integer division: 
query I rowsort label-2294
SELECT ALL col0 DIV 70 + col1 * + ( col1 + col1 ) AS col0 FROM tab2
----
11858
5202
8979

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL col0 / 70 + col1 * + ( col1 + col1 ) AS col0 FROM tab2
----
11858
5202
8979

query I rowsort
SELECT + 39 * + 20 AS col0 FROM tab0 cor0
----
780
780
780

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 > col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT ALL - ( 54 ) + COUNT( DISTINCT col0 ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL - ( 54 ) + COUNT ( DISTINCT col0 ) FROM tab1 cor0
----
-51

query I rowsort
SELECT DISTINCT col0 * - col1 + col0 AS col2 FROM tab1 AS cor0
----
-340
-4186
-663

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NULL >= NULL
----

query I rowsort
SELECT 81 - 96 FROM tab2 WHERE NULL IS NULL
----
-15
-15
-15

query I rowsort
SELECT - 99 + + col2 FROM tab2 AS cor0
----
-41
-59
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT DISTINCT COUNT( - col1 ) - + 99 FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2303
SELECT DISTINCT COUNT ( - col1 ) - + 99 FROM tab2 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2304
SELECT + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2304
SELECT + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - 84 FROM tab0 AS cor0
----
-69
13
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2306
SELECT DISTINCT - CAST( ( + col0 ) AS SIGNED ) * col1 - col1 AS col2 FROM tab1 AS cor0
----
-430
-4324
-728

skipif mysql # not compatible
query I rowsort label-2306
SELECT DISTINCT - CAST ( ( + col0 ) AS INTEGER ) * col1 - col1 AS col2 FROM tab1 AS cor0
----
-430
-4324
-728

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 + + col0 < NULL
----

query I rowsort
SELECT col0 * - 56 FROM tab2 AS cor0
----
-2576
-3584
-4200

query I rowsort
SELECT ALL - col1 * + ( 31 ) AS col2 FROM tab2 cor0
----
-1581
-2077
-2387

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT + SUM( col0 ) FROM tab2 AS cor0 WHERE NULL > 67 / + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT + SUM ( col0 ) FROM tab2 AS cor0 WHERE NULL > 67 / + col0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + col0 NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2312
SELECT col1 * + CAST( NULL AS SIGNED ) + - ( col2 ) * - col0 col0 FROM tab1 cor0 WHERE ( - ( 35 ) * col1 + - CAST( NULL AS SIGNED ) ) BETWEEN ( NULL ) AND col1 * - col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2312
SELECT col1 * + CAST ( NULL AS INTEGER ) + - ( col2 ) * - col0 col0 FROM tab1 cor0 WHERE ( - ( 35 ) * col1 + - CAST ( NULL AS INTEGER ) ) BETWEEN ( NULL ) AND col1 * - col0
----

query I rowsort
SELECT + 44 FROM tab0 WHERE - col2 > NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE col2 IS NULL
----

query I rowsort
SELECT - 43 FROM tab1 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT col0 FROM tab0 WHERE NULL NOT IN ( - 60 )
----

query I rowsort
SELECT ( - AVG ( + ( col1 ) ) ) AS col0 FROM tab2 WHERE ( 15 ) IS NULL
----
NULL

query I rowsort
SELECT ALL + col1 + - col2 - 80 FROM tab2
----
-43
-52
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 11 * - col0 col1 FROM tab2 WHERE NOT col1 IS NULL
----
-460
-640
-750

query I rowsort
SELECT DISTINCT + 59 * 95 AS col0 FROM tab1 WHERE NULL NOT IN ( - 55 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2321
SELECT DISTINCT + CAST( - CAST( - SUM( ALL - 43 ) AS SIGNED ) AS SIGNED ) FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-2321
SELECT DISTINCT + CAST ( - CAST ( - SUM ( ALL - 43 ) AS INTEGER ) AS INTEGER ) FROM tab1
----
-129

query I rowsort
SELECT 43 * 49 AS col1 FROM tab1 cor0 WHERE NOT NULL IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT + + MAX( ALL - 66 ) AS col2 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2323
SELECT + + MAX ( ALL - 66 ) AS col2 FROM tab2 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT COUNT( - - col2 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2324
SELECT COUNT ( - - col2 ) col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 * + col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2326
SELECT CAST( + - 62 AS SIGNED ) FROM tab0
----
-62
-62
-62

skipif mysql # not compatible
query I rowsort label-2326
SELECT CAST ( + - 62 AS INTEGER ) FROM tab0
----
-62
-62
-62

query I rowsort
SELECT + 51 FROM tab1 WHERE NOT + col0 IS NULL
----
51
51
51

query I rowsort
SELECT - 98 AS col1 FROM tab1 WHERE NOT ( NULL ) NOT IN ( 49 )
----

query II rowsort
SELECT ALL - 23, + col0 AS col1 FROM tab1 AS cor0
----
-23
51
-23
85
-23
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT - + ( - COUNT( - - 81 ) ) col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2330
SELECT - + ( - COUNT ( - - 81 ) ) col1 FROM tab1 cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 25 * col1 NOT IN ( - col0 + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - 37 AS col2, + col0 + - 22 FROM tab0 AS cor0
----
-37
-7
-37
65
-37
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 51 < + col1
----
46
51
23

query II rowsort
SELECT + + col2 AS col1, - 9 FROM tab1 AS cor0
----
59
-9
68
-9
96
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2335
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( CAST( NULL AS SIGNED ) + + col0 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2335
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( CAST ( NULL AS INTEGER ) + + col0 ) AND NULL
----

query I rowsort
SELECT ALL col0 * - - 43 * col0 * - col2 + col2 AS col0 FROM tab0
----
-3254660
-40054014
-454678

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT ( - COUNT( DISTINCT - 81 ) ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2337
SELECT ( - COUNT ( DISTINCT - 81 ) ) FROM tab1
----
-1

query I rowsort
SELECT ALL + 39 + + 46 + - col2 FROM tab2
----
27
45
62

query III rowsort
SELECT * FROM tab2 WHERE 56 BETWEEN - col2 AND - 56
----

query I rowsort
SELECT + 41 FROM tab0 WHERE - 17 + - col2 IS NOT NULL
----
41
41
41

query I rowsort
SELECT 73 * - col2 * - + col1 FROM tab1
----
21535
233308
98112

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + - col1 ) IS NULL
----

query I rowsort
SELECT 14 * - ( col1 ) AS col0 FROM tab1
----
-196
-658
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT 32 * + ( - + COUNT( * ) ) FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-2344
SELECT 32 * + ( - + COUNT ( * ) ) FROM tab2
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2345
SELECT - col2 DIV + 7 + + ( - col1 ) col0 FROM tab2
----
-54
-75
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2345
SELECT - col2 / + 7 + + ( - col1 ) col0 FROM tab2
----
-54
-75
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2346
SELECT ALL + col2 * + col1 - 79 FROM tab1 AS cor0 WHERE NOT CAST( 35 AS SIGNED ) <= ( col1 )
----
1265
216

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL + col2 * + col1 - 79 FROM tab1 AS cor0 WHERE NOT CAST ( 35 AS INTEGER ) <= ( col1 )
----
1265
216

onlyif mysql # DIV for integer division: 
query I rowsort label-2347
SELECT 74 + - - 59 - - - col0 DIV + 68 + - 52 FROM tab2 AS cor0
----
80
81
81

skipif mysql # not compatible
query I rowsort label-2347
SELECT 74 + - - 59 - - - col0 / + 68 + - 52 FROM tab2 AS cor0
----
80
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * col1 + col1 col0 FROM tab1 AS cor0
----
-420
-4230
-700

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 88 * + - ( - + 24 ) + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 + - - col0 col1 FROM tab0
----
103
175
185

query I rowsort
SELECT + 49 + - col2 * + 70 AS col1 FROM tab2
----
-1561
-2751
-4011

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT - - 54 - + + MAX( - 61 ) col0 FROM tab1 AS cor0
----
115

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2352
SELECT - - 54 - + + MAX ( - 61 ) col0 FROM tab1 AS cor0
----
115

query I rowsort
SELECT ALL - ( 29 ) - - col0 * + - col1 AS col0 FROM tab2 AS cor0
----
-2375
-4957
-5054

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2354
SELECT DISTINCT + col1 DIV - CAST( + 48 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2354
SELECT DISTINCT + col1 / - CAST ( + 48 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT - - col2 - + + col2 + + col0 AS col0 FROM tab1 cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2356
SELECT + col0 - + 47 + + CAST( NULL AS SIGNED ) * col1 + + - col2 + + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2356
SELECT + col0 - + 47 + + CAST ( NULL AS INTEGER ) * col1 + + - col2 + + col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( col0 ) + + col0 + - - ( - col0 ) FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 + col1 + - + col0 ) >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2359
SELECT ( CAST( NULL AS SIGNED ) ) * + col1 FROM tab0 WHERE NOT ( 50 - + + 57 >= + col2 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2359
SELECT ( CAST ( NULL AS INTEGER ) ) * + col1 FROM tab0 WHERE NOT ( 50 - + + 57 >= + col2 )
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col1 col0 FROM tab0
----
1
441
6561

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2361
SELECT DISTINCT ( + CAST( NULL AS DECIMAL ) ) * - COUNT( * ) FROM tab2 WHERE NOT + - 11 - + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2361
SELECT DISTINCT ( + CAST ( NULL AS REAL ) ) * - COUNT ( * ) FROM tab2 WHERE NOT + - 11 - + col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT ALL ( + + COUNT( col0 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL ( + + COUNT ( col0 ) ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 WHERE + 18 IS NULL
----

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE + col1 - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT MIN( DISTINCT - col0 ) / COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 49 AND 53 * - + 2 * + col2 * + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-2365
SELECT MIN ( DISTINCT - col0 ) / COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 49 AND 53 * - + 2 * + col2 * + 92
----
NULL

query I rowsort
SELECT - - col1 * - + col1 FROM tab2 cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT - COUNT( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2367
SELECT - COUNT ( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2368
SELECT CAST( - - 40 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-2368
SELECT CAST ( - - 40 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
40
40
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 col0 FROM tab0 AS cor0
----
6
6
6

query I rowsort
SELECT ALL col0 * - 51 + col2 FROM tab0 AS cor0 WHERE ( col0 IS NULL )
----

query I rowsort
SELECT - col1 * - col2 FROM tab0 AS cor0 WHERE ( + col2 * - - col0 - - col0 ) IN ( + 97, + 15 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 >= + - col1 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2373
SELECT col2 + - CAST( NULL AS SIGNED ) + - 61 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2373
SELECT col2 + - CAST ( NULL AS INTEGER ) + - 61 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT ALL - COUNT( * ) * - 19 * + MAX( col0 ) FROM tab2
----
4275

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL - COUNT ( * ) * - 19 * + MAX ( col0 ) FROM tab2
----
4275

query III rowsort
SELECT * FROM tab2 WHERE - - col1 IN ( - + col0 * + 86 )
----

query I rowsort
SELECT - 7 FROM tab1 WHERE + col2 - + 47 + col1 * + col0 / col2 * + ( 20 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2377
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, 79 FROM tab0
----
NULL
79

skipif mysql # not compatible
query II rowsort label-2377
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 79 FROM tab0
----
NULL
79

query III rowsort
SELECT * FROM tab1 WHERE + 82 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-2379
SELECT ALL col0 DIV 89 + col2, col1 FROM tab0
----
10
21
100
1
47
81

skipif mysql # not compatible
query II rowsort label-2379
SELECT ALL col0 / 89 + col2, col1 FROM tab0
----
10
21
100
1
47
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT DISTINCT MAX( + - 67 ) FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-2380
SELECT DISTINCT MAX ( + - 67 ) FROM tab1
----
-67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 <> - + 83
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col2, ( + col2 ) FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2383
SELECT DISTINCT + + COUNT( * ) + + + CAST( NULL AS SIGNED ) + - AVG ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2383
SELECT DISTINCT + + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) + - AVG ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 + 90 + - col2 FROM tab0
----
90

query I rowsort
SELECT DISTINCT 11 - + + col0 FROM tab0 AS cor0
----
-4
-76
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT 44 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT 44 >= NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2387
SELECT DISTINCT + COUNT( * ) DIV - COUNT( * ) col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2387
SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE NOT col2 IS NULL
----
23
40
58

query I rowsort
SELECT ALL 47 * col0 FROM tab1
----
2397
3995
4277

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE NOT - col1 / - + col1 NOT IN ( + - col0 + + col0 / - 76 )
----
0

skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col1 / - + col1 NOT IN ( + - col0 + + col0 / - 76 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2392
SELECT + MIN( ALL col1 ) DIV ( - 51 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2392
SELECT + MIN ( ALL col1 ) / ( - 51 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT ALL 85 * - COUNT( + col1 ) FROM tab1
----
-255

skipif mysql # not compatible
query I rowsort label-2393
SELECT ALL 85 * - COUNT ( + col1 ) FROM tab1
----
-255

query I rowsort
SELECT ALL 12 * - col1 FROM tab0
----
-12
-252
-972

onlyif mysql # DIV for integer division: 
query I rowsort label-2395
SELECT + col2 DIV - 53 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2395
SELECT + col2 / - 53 AS col1 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2396
SELECT DISTINCT col0 / + + col0 + + CAST( NULL AS SIGNED ) col0, col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2396
SELECT DISTINCT col0 / + + col0 + + CAST ( NULL AS INTEGER ) col0, col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2398
SELECT ALL + 4 DIV 19 - - 40 AS col2 FROM tab2 cor0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-2398
SELECT ALL + 4 / 19 - - 40 AS col2 FROM tab2 cor0
----
40
40
40

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE NULL < ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN 46 AND NULL
----
46
51
23
64
77
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2401
SELECT ALL 56 + + + 75 DIV + 13 + + ( col2 ) * - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-644
-809
-9542

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL 56 + + + 75 / + 13 + + ( col2 ) * - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-644
-809
-9542

query I rowsort
SELECT DISTINCT - col1 + - ( - + ( 6 ) ) FROM tab0 AS cor0
----
-15
-75
5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2403
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) AND - + 92
----

skipif mysql # not compatible
query III rowsort label-2403
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) AND - + 92
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2404
SELECT ALL col1 FROM tab0 AS cor0 WHERE ( - col1 + 13 ) BETWEEN CAST( col2 AS SIGNED ) + col1 + 96 - - - col1 AND - 48 * 88 * - + col1
----

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL col1 FROM tab0 AS cor0 WHERE ( - col1 + 13 ) BETWEEN CAST ( col2 AS INTEGER ) + col1 + 96 - - - col1 AND - 48 * 88 * - + col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 < 39
----

query I rowsort
SELECT ALL 4 + - col2 FROM tab2
----
-19
-36
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2407
SELECT - COUNT( * ) DIV + - 34 * + - ( + 57 ) - - + 85 AS col1 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-2407
SELECT - COUNT ( * ) / + - 34 * + - ( + 57 ) - - + 85 AS col1 FROM tab0
----
85

query I rowsort
SELECT DISTINCT + 43 + + col0 + + + col0 AS col0 FROM tab1
----
145
213
225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 col1 FROM tab1
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT DISTINCT + 17 + MAX( col0 ) FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-2410
SELECT DISTINCT + 17 + MAX ( col0 ) FROM tab0
----
114

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT - 30 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE - col1 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2413
SELECT - ( - - CAST( NULL AS SIGNED ) ) * - - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT - ( - - CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT DISTINCT - 33 + COUNT( * ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-2414
SELECT DISTINCT - 33 + COUNT ( * ) FROM tab0
----
-30

query I rowsort
SELECT DISTINCT - 85 AS col2 FROM tab0 WHERE NOT + - 74 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col1 + - + ( col2 ) AS col0 FROM tab2
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT DISTINCT + - COUNT( * ) * - COUNT( * ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2417
SELECT DISTINCT + - COUNT ( * ) * - COUNT ( * ) FROM tab2 cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2418
SELECT ALL - 69 * + CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-2418
SELECT ALL - 69 * + CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-207

query I rowsort
SELECT - col0 * + - col2 AS col1 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT DISTINCT - 96 * - SUM( col2 ) AS col2 FROM tab0 AS cor0
----
14976

skipif mysql # not compatible
query I rowsort label-2420
SELECT DISTINCT - 96 * - SUM ( col2 ) AS col2 FROM tab0 AS cor0
----
14976

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT DISTINCT - MAX( - 83 ) FROM tab0 cor0 WHERE 22 IS NOT NULL
----
83

skipif mysql # not compatible
query I rowsort label-2421
SELECT DISTINCT - MAX ( - 83 ) FROM tab0 cor0 WHERE 22 IS NOT NULL
----
83

query I rowsort
SELECT 64 * - 20 FROM tab2
----
-1280
-1280
-1280

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( + - 75 ) IS NULL OR NOT + - 66 + - - ( col2 ) > ( + col1 * 49 / - - 77 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT + COUNT( col0 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2424
SELECT + COUNT ( col0 ) col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= - 69 * - - 2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 70 NOT BETWEEN + + col2 AND - col1
----

query I rowsort
SELECT ALL col1 * - 25 AS col0 FROM tab1
----
-1175
-125
-350

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 + - col0 / + + col2 NOT IN ( - - col0 * col0 )
----

query I rowsort
SELECT ALL - + col1 * - 53 + - - col2 AS col1 FROM tab0 AS cor0
----
1123
152
4340

onlyif mysql # DIV for integer division: 
query I rowsort label-2430
SELECT ALL - 5 DIV - 53 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2430
SELECT ALL - 5 / - 53 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2431
SELECT DISTINCT + - COUNT( * ) DIV + + COUNT( * ) col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2431
SELECT DISTINCT + - COUNT ( * ) / + + COUNT ( * ) col1 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT col2 + + + col2 + + 75 FROM tab1 AS cor0 WHERE - ( + col0 ) * + - col1 BETWEEN NULL AND col1 OR NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT ALL + MAX( ALL - 12 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-12

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL + MAX ( ALL - 12 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2434
SELECT + col2 + - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2434
SELECT + col2 + - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT DISTINCT - - MAX( DISTINCT - 93 ) AS col2 FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-2435
SELECT DISTINCT - - MAX ( DISTINCT - 93 ) AS col2 FROM tab2 AS cor0
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-2436
SELECT ALL + 72 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
3
72

skipif mysql # not compatible
query I rowsort label-2436
SELECT ALL + 72 / + col1 AS col0 FROM tab0 AS cor0
----
0
3
72

query I rowsort
SELECT ALL - col0 + ( - col2 ) AS col1 FROM tab2 cor0
----
-104
-133
-69

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN + 14 AND + col1
----

query I rowsort
SELECT DISTINCT col2 + + - 5 AS col2 FROM tab0
----
42
5
94

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> + 77
----

query I rowsort
SELECT ALL - 61 * col0 - 69 FROM tab0
----
-5376
-5986
-984

query I rowsort
SELECT 69 * + 34 FROM tab0 cor0 WHERE ( ( NOT ( NULL ) NOT BETWEEN - col2 * + - ( + ( 29 ) ) + - col1 AND - - col1 / - 80 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * col0 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2444
SELECT CAST( + col2 AS SIGNED ) + 67 FROM tab1
----
126
135
163

skipif mysql # not compatible
query I rowsort label-2444
SELECT CAST ( + col2 AS INTEGER ) + 67 FROM tab1
----
126
135
163

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * 63 / 82 / + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2446
SELECT DISTINCT * FROM tab2 cor0 WHERE + 89 - - col1 <> - + 74 * - CAST( NULL AS SIGNED ) / + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2446
SELECT DISTINCT * FROM tab2 cor0 WHERE + 89 - - col1 <> - + 74 * - CAST ( NULL AS INTEGER ) / + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT SUM( ( ( + 60 ) ) ) FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-2447
SELECT SUM ( ( ( + 60 ) ) ) FROM tab1
----
180

query II rowsort
SELECT - 92 * 56 * + + 34 AS col1, col1 AS col1 FROM tab0
----
-175168
1
-175168
21
-175168
81

query I rowsort
SELECT DISTINCT - + col0 / - col2 FROM tab1 WHERE NOT ( NOT ( NOT + ( - 80 ) = NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2450
SELECT 26 DIV - 52 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2450
SELECT 26 / - 52 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col0 * ( + - col2 ) AS col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT DISTINCT - + COUNT( * ) FROM tab0 WHERE NOT + col1 >= - ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2452
SELECT DISTINCT - + COUNT ( * ) FROM tab0 WHERE NOT + col1 >= - ( + col1 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2453
SELECT 67 DIV col2 AS col0 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-2453
SELECT 67 / col2 AS col0 FROM tab0
----
0
1
6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * col1 NOT IN ( + 32 - + - col2 * 2, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 + + 71 - 25 * + 95 FROM tab1 AS cor0
----
-2208
-2236
-2245

query I rowsort
SELECT ALL + - col0 * + col0 + + col0 AS col1 FROM tab1 cor0
----
-2550
-7140
-8190

query I rowsort
SELECT - col0 * col0 + + 1 AS col2 FROM tab2
----
-2115
-4095
-5624

query I rowsort
SELECT - 25 + - - col0 + - col0 AS col1 FROM tab1
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT 2 + - COUNT( * ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2459
SELECT 2 + - COUNT ( * ) FROM tab2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2460
SELECT ALL - CAST( NULL AS SIGNED ) + COUNT( * ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2460
SELECT ALL - CAST ( NULL AS INTEGER ) + COUNT ( * ) col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2461
SELECT DISTINCT - 95 DIV col1 AS col1 FROM tab0
----
-1
-4
-95

skipif mysql # not compatible
query I rowsort label-2461
SELECT DISTINCT - 95 / col1 AS col1 FROM tab0
----
-1
-4
-95

query I rowsort
SELECT + - 62 FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2463
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col0 ) <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2463
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col0 ) <= CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT + + ( + ( + - ( - COUNT( * ) ) ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2464
SELECT + + ( + ( + - ( - COUNT ( * ) ) ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col0 * - col1 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 35 + + 42 + + + col2 FROM tab2 AS cor0
----
30
47
65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2467
SELECT - + CAST( - + col0 AS SIGNED ) DIV - + col1 AS col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-2467
SELECT - + CAST ( - + col0 AS INTEGER ) / - + col1 AS col1 FROM tab1 AS cor0
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT DISTINCT + - COUNT( * ) * - COUNT( * ) + - 66 + + 25 FROM tab0 cor0
----
-32

skipif mysql # not compatible
query I rowsort label-2468
SELECT DISTINCT + - COUNT ( * ) * - COUNT ( * ) + - 66 + + 25 FROM tab0 cor0
----
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + - col0 - + 83 col2 FROM tab2 AS cor0
----
-175
-211
-233

query I rowsort
SELECT + col0 - - 23 FROM tab0 AS cor0
----
110
120
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2471
SELECT CAST( NULL AS SIGNED ) * - - ( col0 ) * + + col2 - - col2 AS col1, - 6 FROM tab1
----
NULL
-6
NULL
-6
NULL
-6

skipif mysql # not compatible
query II rowsort label-2471
SELECT CAST ( NULL AS INTEGER ) * - - ( col0 ) * + + col2 - - col2 AS col1, - 6 FROM tab1
----
NULL
-6
NULL
-6
NULL
-6

query I rowsort
SELECT + 65 - + - 98 AS col0 FROM tab0
----
163
163
163

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT COUNT( * ) - - 84 AS col1 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-2473
SELECT COUNT ( * ) - - 84 AS col1 FROM tab0
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2474
SELECT + 45 + - COUNT( * ) + 96 + + + 47 + - COUNT( * ) DIV + 35 DIV - COUNT( * ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-2474
SELECT + 45 + - COUNT ( * ) + 96 + + + 47 + - COUNT ( * ) / + 35 / - COUNT ( * ) FROM tab2
----
185

query I rowsort
SELECT ALL - - col0 FROM tab1 WHERE NOT col1 * - - 75 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT ALL + MAX( col0 ) AS col1 FROM tab0 WHERE col2 IS NOT NULL
----
97

skipif mysql # not compatible
query I rowsort label-2476
SELECT ALL + MAX ( col0 ) AS col1 FROM tab0 WHERE col2 IS NOT NULL
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( 0 ) + + col2 + + + 2 col1, + 35 AS col0 FROM tab2 WHERE - col0 BETWEEN + 91 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + - col2 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT DISTINCT COUNT( * ) + + - MAX( ( 16 ) ) * - COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-2479
SELECT DISTINCT COUNT ( * ) + + - MAX ( ( 16 ) ) * - COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
51

query I rowsort
SELECT col1 + + - 59 FROM tab1 AS cor0
----
-12
-45
-54

query I rowsort
SELECT + 33 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT + COUNT( * ) + - 9 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2482
SELECT + COUNT ( * ) + - 9 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2483
SELECT ( - COUNT( * ) ) AS col2, CAST( + 80 AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
80

skipif mysql # not compatible
query II rowsort label-2483
SELECT ( - COUNT ( * ) ) AS col2, CAST ( + 80 AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col2 * col2 < NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - - 71 ) + - 22 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 col1, 12 AS col1 FROM tab2 AS cor0
----
-46
12
-64
12
-75
12

onlyif mysql # aggregate syntax: 
query II rowsort label-2487
SELECT ALL - 3 AS col2, + ( + COUNT( col2 ) ) AS col1 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-2487
SELECT ALL - 3 AS col2, + ( + COUNT ( col2 ) ) AS col1 FROM tab1 AS cor0
----
-3
3

query II rowsort
SELECT + + col2, - col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

query I rowsort
SELECT - - ( + - col1 ) FROM tab1 cor0
----
-14
-47
-5

query II rowsort
SELECT DISTINCT - 18, 12 AS col2 FROM tab0 AS cor0
----
-18
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT DISTINCT SUM( ALL + - ( - + col2 ) ) col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2491
SELECT DISTINCT SUM ( ALL + - ( - + col2 ) ) col0 FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - 80
----
0

skipif mysql # not compatible
query I rowsort label-2492
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - 80
----
0

query II rowsort
SELECT ALL - - col0 AS col2, col0 AS col2 FROM tab2 AS cor0
----
46
46
64
64
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, + 18 FROM tab0 AS cor0
----
10
18
47
18
99
18

query I rowsort
SELECT - + ( col1 ) * col2 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 16 = NULL
----

query II rowsort
SELECT DISTINCT col1 * + + 98, - col2 * + col1 AS col1 FROM tab0
----
2058
-210
7938
-3807
98
-99

query I rowsort
SELECT ALL col2 + 48 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
106
71
88

query I rowsort
SELECT 28 + + - col1 * - 44 AS col2 FROM tab1
----
2096
248
644

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2500
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * col2 + + col0 - + 46 - - + CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2500
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * col2 + + col0 - + 46 - - + CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE NOT col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2502
SELECT + + CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2502
SELECT + + CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE - 85 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT col2 * + - 60 FROM tab1
----
-3540
-4080
-5760

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT ALL - + COUNT( * ) - + 7 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL - + COUNT ( * ) - + 7 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT 9 + + - col0 AS col0 FROM tab2 AS cor0
----
-37
-55
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT ALL + COUNT( + col2 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2507
SELECT ALL + COUNT ( + col2 ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col1 + - + 54 FROM tab2 AS cor0
----
-3
13
23

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2510
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( 82 + + CAST( - + 44 AS SIGNED ), - col0 )
----

skipif mysql # not compatible
query III rowsort label-2510
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( 82 + + CAST ( - + 44 AS INTEGER ), - col0 )
----

query I rowsort
SELECT ALL + 29 * 91 + - col0 * + col0 AS col1 FROM tab1 AS cor0
----
-4586
-5642
38

query II rowsort
SELECT ALL + - col1 + - 74 * 98 AS col1, - 74 AS col1 FROM tab0 cor0
----
-7253
-74
-7273
-74
-7333
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT DISTINCT + COUNT( * ) + - - MAX( + + 80 ) AS col1 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-2513
SELECT DISTINCT + COUNT ( * ) + - - MAX ( + + 80 ) AS col1 FROM tab2
----
83

query III rowsort
SELECT * FROM tab2 WHERE 87 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT DISTINCT + 99 - + ( + MIN( DISTINCT - - col0 ) ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-2515
SELECT DISTINCT + 99 - + ( + MIN ( DISTINCT - - col0 ) ) FROM tab0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT + 46 * - + 46 - - - COUNT( * ) FROM tab0
----
-2119

skipif mysql # not compatible
query I rowsort label-2516
SELECT + 46 * - + 46 - - - COUNT ( * ) FROM tab0
----
-2119

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col0 + - + 87 ) NOT BETWEEN col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT COUNT( * ) - - - COUNT( * ) col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2518
SELECT COUNT ( * ) - - - COUNT ( * ) col1 FROM tab2
----
0

query I rowsort
SELECT + + 35 AS col1 FROM tab0 AS cor0 WHERE - col1 - - col2 + + col2 + - 75 < + 70 * - - 33
----
35
35
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2520
SELECT ALL 77 DIV + - COUNT( + col0 ) AS col0 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-2520
SELECT ALL 77 / + - COUNT ( + col0 ) AS col0 FROM tab2 AS cor0
----
-25

query I rowsort
SELECT col1 * 26 FROM tab1
----
1222
130
364

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT ALL + + MAX( ALL + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL + + MAX ( ALL + col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2523
SELECT ALL - + CAST( - + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL - + CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT + col1 FROM tab0 cor0 WHERE NOT 90 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col2 * - 64 * - col0 + - col2 IN ( + ( col1 ) + - 9 + - 73 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 col2 FROM tab1
----
-67
-67
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2528
SELECT DISTINCT 45 + + CAST( NULL AS SIGNED ) + col1 * 86 * - 78 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2528
SELECT DISTINCT 45 + + CAST ( NULL AS INTEGER ) + col1 * 86 * - 78 AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT ALL + COUNT( * ) + + - COUNT( * ) * - + 85 col0 FROM tab1
----
258

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2529
SELECT ALL + COUNT ( * ) + + - COUNT ( * ) * - + 85 col0 FROM tab1
----
258

query II rowsort
SELECT + 42 AS col1, col2 + - - col1 FROM tab0
----
42
100
42
128
42
31

query I rowsort
SELECT DISTINCT + col2 + - col0 * col2 AS col0 FROM tab0
----
-658
-860
-9504

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= 87
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 col1 FROM tab1
----
15
15
15

query II rowsort
SELECT col2 AS col0, col1 + col1 AS col1 FROM tab2
----
23
102
40
154
58
134

query II rowsort
SELECT DISTINCT col2, - ( - col2 ) * - 62 AS col1 FROM tab1
----
59
-3658
68
-4216
96
-5952

onlyif mysql # aggregate syntax: 
query II rowsort label-2536
SELECT ALL COUNT( * ), SUM( ALL - - 57 ) col1 FROM tab2
----
3
171

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2536
SELECT ALL COUNT ( * ), SUM ( ALL - - 57 ) col1 FROM tab2
----
3
171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 16 ) col0 FROM tab1 AS cor0
----
16
16
16

query I rowsort
SELECT col1 + + col0 FROM tab2 cor0 WHERE + col1 BETWEEN ( - + col2 + + col1 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2539
SELECT DISTINCT CAST( - MIN( ALL + - col1 ) AS SIGNED ) + + 58 + - 58 * + 56 FROM tab2
----
-3113

skipif mysql # not compatible
query I rowsort label-2539
SELECT DISTINCT CAST ( - MIN ( ALL + - col1 ) AS INTEGER ) + + 58 + - 58 * + 56 FROM tab2
----
-3113

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN ( NULL ) AND + - col0
----

query II rowsort
SELECT ALL col1 * + - col2, - col0 AS col2 FROM tab0 AS cor0
----
-210
-87
-3807
-15
-99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT ALL MAX( - col1 ) AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL MAX ( - col1 ) AS col0 FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2543
SELECT - AVG ( ALL - 77 ) col1 FROM tab0 WHERE + CAST( ( - col2 ) AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2543
SELECT - AVG ( ALL - 77 ) col1 FROM tab0 WHERE + CAST ( ( - col2 ) AS INTEGER ) IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 26 IS NOT NULL AND + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 * + - col2 FROM tab1
----
3481
4624
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 49 col0 FROM tab1
----
-2499
-4165
-4459

query II rowsort
SELECT DISTINCT + 63 AS col1, + col2 FROM tab1
----
63
59
63
68
63
96

query III rowsort
SELECT ALL * FROM tab1 WHERE + 67 NOT BETWEEN 54 AND + 34 + 61 * - - 1 + + + 0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2549
SELECT ALL - CAST( + + 67 AS SIGNED ) FROM tab1 AS cor0
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL - CAST ( + + 67 AS INTEGER ) FROM tab1 AS cor0
----
-67
-67
-67

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT + ( COUNT( * ) ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2551
SELECT + ( COUNT ( * ) ) col2 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 NOT IN ( - - 10 )
----

query I rowsort
SELECT DISTINCT col2 * col1 * + 78 FROM tab1
----
104832
23010
249288

query I rowsort
SELECT ALL col2 * + ( - col2 ) AS col2 FROM tab1 cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT + SUM( DISTINCT - + 51 ) AS col1 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2555
SELECT + SUM ( DISTINCT - + 51 ) AS col1 FROM tab0 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT + - MIN( DISTINCT - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2556
SELECT + - MIN ( DISTINCT - col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT - + 67 + + ( 9 ) FROM tab1 AS cor0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-2558
SELECT ALL + - 69 DIV col0 DIV - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL + - 69 / col0 / - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 16 AS col1 FROM tab2 WHERE + ( 27 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT DISTINCT SUM( DISTINCT + 71 ) AS col0 FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-2560
SELECT DISTINCT SUM ( DISTINCT + 71 ) AS col0 FROM tab1
----
71

query I rowsort
SELECT ALL + 7 * - 95 * + col1 + + 61 AS col2 FROM tab1 WHERE + col1 + 36 + - 47 BETWEEN + col2 AND - col1 + 91 * - col2
----

query I rowsort
SELECT DISTINCT - - col1 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, - col0 AS col0 FROM tab0
----
15
-15
87
-87
97
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2564
SELECT - 10 DIV col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2564
SELECT - 10 / col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2565
SELECT ALL * FROM tab2 WHERE NOT + col2 * + 94 * 24 * col1 - + + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2565
SELECT ALL * FROM tab2 WHERE NOT + col2 * + 94 * 24 * col1 - + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col1 AS col0, 71 FROM tab0 AS cor0
----
1
71
21
71
81
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT DISTINCT COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2567
SELECT DISTINCT COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2568
SELECT + 49 + - - 97, MIN( ALL col2 ) AS col0 FROM tab1
----
146
59

skipif mysql # not compatible
query II rowsort label-2568
SELECT + 49 + - - 97, MIN ( ALL col2 ) AS col0 FROM tab1
----
146
59

onlyif mysql # DIV for integer division: 
query I rowsort label-2569
SELECT ALL 28 + + 46 * - 40 + + col2 DIV + col1 AS col2 FROM tab2
----
-1812
-1812
-1812

skipif mysql # not compatible
query I rowsort label-2569
SELECT ALL 28 + + 46 * - 40 + + col2 / + col1 AS col2 FROM tab2
----
-1812
-1812
-1812

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + + col0 NOT BETWEEN NULL AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col1 + + + ( - col0 ) + col2 * col0 FROM tab2 AS cor0
----
1063
2573
4342

query I rowsort
SELECT - col1 + ( + + col1 ) AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT - 10 * + - COUNT( * ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2573
SELECT - 10 * + - COUNT ( * ) FROM tab0 AS cor0
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 col1, 69 * - + 37 FROM tab1 AS cor0
----
59
-2553
68
-2553
96
-2553

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT + COUNT( - - col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2575
SELECT + COUNT ( - - col2 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2576
SELECT DISTINCT - COUNT( * ) DIV - + 91 - - 41 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-2576
SELECT DISTINCT - COUNT ( * ) / - + 91 - - 41 FROM tab2 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT + + MIN( ALL - - 87 ) FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-2577
SELECT + + MIN ( ALL - - 87 ) FROM tab2 AS cor0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-2578
SELECT ( col1 ) DIV + + 6 col2 FROM tab1 AS cor0
----
0
2
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2578
SELECT ( col1 ) / + + 6 col2 FROM tab1 AS cor0
----
0
2
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT DISTINCT + MIN( DISTINCT 63 ) * - 40 - - 9 FROM tab0
----
-2511

skipif mysql # not compatible
query I rowsort label-2579
SELECT DISTINCT + MIN ( DISTINCT 63 ) * - 40 - - 9 FROM tab0
----
-2511

query I rowsort
SELECT + 33 * - col1 AS col1 FROM tab0
----
-2673
-33
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT MIN( DISTINCT - 68 ) col1 FROM tab2
----
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2581
SELECT MIN ( DISTINCT - 68 ) col1 FROM tab2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT DISTINCT - COUNT( * ) * - 19 AS col0 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT - COUNT ( * ) * - 19 AS col0 FROM tab1 AS cor0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2583
SELECT col2 * ( - CAST( NULL AS SIGNED ) ) * - col1 + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2583
SELECT col2 * ( - CAST ( NULL AS INTEGER ) ) * - col1 + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT DISTINCT + 6 * - + COUNT( * ) AS col0 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-2584
SELECT DISTINCT + 6 * - + COUNT ( * ) AS col0 FROM tab1
----
-18

query II rowsort
SELECT ALL 70, ( + + 11 ) * - col2 + 6 - - col2 AS col2 FROM tab2
----
70
-224
70
-394
70
-574

query I rowsort
SELECT col0 * - 18 * - 37 AS col2 FROM tab1 AS cor0
----
33966
56610
60606

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2587
SELECT + 1 DIV + COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2587
SELECT + 1 / + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 col0 FROM tab0 cor0
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT - + SUM( ALL - col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2589
SELECT - + SUM ( ALL - col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2590
SELECT DISTINCT + - col2 FROM tab1 AS cor0 WHERE col0 <= + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2590
SELECT DISTINCT + - col2 FROM tab1 AS cor0 WHERE col0 <= + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + ( - col0 ) + - 41 FROM tab1
----
-126
-132
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-2592
SELECT DISTINCT + col1 DIV + 32 + col1 AS col0 FROM tab2
----
52
69
79

skipif mysql # not compatible
query I rowsort label-2592
SELECT DISTINCT + col1 / + 32 + col1 AS col0 FROM tab2
----
52
69
79

query II rowsort
SELECT DISTINCT 92 + + + col0, col2 AS col0 FROM tab2
----
138
23
156
40
167
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2594
SELECT DISTINCT 19 DIV - - 72 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT 19 / - - 72 AS col2 FROM tab1
----
0

query I rowsort
SELECT 62 FROM tab0 WHERE NULL IS NULL
----
62
62
62

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 37 > - + col1 + col1 - col1 * + - 68
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2597
SELECT ALL + COUNT( ALL - - col2 ) DIV MIN( - col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL + COUNT ( ALL - - col2 ) / MIN ( - col1 ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2598
SELECT - + 85 + - col2 * - CAST( 27 AS SIGNED ), + col1 * - col2 AS col1 FROM tab0 AS cor0
----
1184
-3807
185
-210
2588
-99

skipif mysql # not compatible
query II rowsort label-2598
SELECT - + 85 + - col2 * - CAST ( 27 AS INTEGER ), + col1 * - col2 AS col1 FROM tab0 AS cor0
----
1184
-3807
185
-210
2588
-99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL NOT BETWEEN col0 * + 17 AND NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 - 28 + 68 col2, + col1 AS col1 FROM tab2
----
104
77
115
67
86
51

query I rowsort
SELECT DISTINCT - col2 + + + col1 * + - 25 FROM tab2 AS cor0
----
-1298
-1733
-1965

query I rowsort
SELECT - 79 * ( + col0 ) - - 58 FROM tab1 AS cor0
----
-3971
-6657
-7131

onlyif mysql # DIV for integer division: 
query I rowsort label-2603
SELECT col0 DIV - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2603
SELECT col0 / - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2604
SELECT - ( COUNT( * ) ) DIV - ( - COUNT( * ) ) + 19 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-2604
SELECT - ( COUNT ( * ) ) / - ( - COUNT ( * ) ) + 19 FROM tab1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT ALL + SUM( DISTINCT + + col0 ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-2605
SELECT ALL + SUM ( DISTINCT + + col0 ) AS col0 FROM tab2
----
185

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 68 + + ( - col2 ) - - - col1 * - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2607
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT - col2 IS NOT NULL
----
0

query I rowsort
SELECT + 91 * + 1 AS col2 FROM tab2
----
91
91
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2609
SELECT DISTINCT - CAST( - 32 AS SIGNED ) + + + col1 + + col0 DIV + 35 FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
39
47
81

skipif mysql # not compatible
query I rowsort label-2609
SELECT DISTINCT - CAST ( - 32 AS INTEGER ) + + + col1 + + col0 / + 35 FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
39
47
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2610
SELECT ALL 3 col0, SUM( DISTINCT - col2 ) AS col0 FROM tab0 WHERE - col0 IS NULL
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2610
SELECT ALL 3 col0, SUM ( DISTINCT - col2 ) AS col0 FROM tab0 WHERE - col0 IS NULL
----
3
NULL

query I rowsort
SELECT ALL + 92 FROM tab1 AS cor0 WHERE NULL NOT IN ( - ( + 29 ) * - 27 + - 59 - + col1, + col1 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT ALL + COUNT( * ) * - ( + COUNT( * ) ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL + COUNT ( * ) * - ( + COUNT ( * ) ) AS col0 FROM tab2
----
-9

query II rowsort
SELECT + 73 + + col2 AS col1, ( + col0 ) FROM tab0 AS cor0
----
120
15
172
97
83
87

query I rowsort
SELECT - 2 * + + 20 + + col1 AS col1 FROM tab2 AS cor0
----
11
27
37

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 11 - - - 9 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2616
SELECT DISTINCT col1 col0 FROM tab1 AS cor0 WHERE NOT col0 + - - col1 NOT IN ( - - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2616
SELECT DISTINCT col1 col0 FROM tab1 AS cor0 WHERE NOT col0 + - - col1 NOT IN ( - - CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT - + col2 + 54 * - 91 AS col2 FROM tab1 AS cor0
----
-4973
-4982
-5010

query I rowsort
SELECT ALL col2 + col2 + - - ( - ( - 79 ) ) + + 3 AS col2 FROM tab1
----
200
218
274

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT DISTINCT COUNT( DISTINCT 59 ) FROM tab1 WHERE col1 BETWEEN col1 AND - 89
----
0

skipif mysql # not compatible
query I rowsort label-2619
SELECT DISTINCT COUNT ( DISTINCT 59 ) FROM tab1 WHERE col1 BETWEEN col1 AND - 89
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2620
SELECT CAST( + - col0 AS SIGNED ) AS col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2620
SELECT CAST ( + - col0 AS INTEGER ) AS col2 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL + - 60 FROM tab0 WHERE - 9 * ( - + col2 ) IS NOT NULL
----
-60
-60
-60

query II rowsort
SELECT ALL col0 AS col1, col1 * + + col2 * col0 - 49 - - - col1 * + col2 + + col0 FROM tab2
----
46
52782
64
194055
75
287590

query I rowsort
SELECT DISTINCT + col0 + col2 + + 52 AS col0 FROM tab2
----
121
156
185

query I rowsort
SELECT DISTINCT - col0 / - 37 FROM tab2 WHERE + - 80 - col0 + + + 35 / + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2625
SELECT 57 DIV col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2625
SELECT 57 / col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT col0 - - + col1 FROM tab2 cor0
----
141
142
97

query I rowsort
SELECT - col1 + - col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2628
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < col2 * + col1 / - 61 / - 35 + - - CAST( NULL AS SIGNED ) * - col2 / - + col0 * + 5 * - col0
----

skipif mysql # not compatible
query III rowsort label-2628
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < col2 * + col1 / - 61 / - 35 + - - CAST ( NULL AS INTEGER ) * - col2 / - + col0 * + 5 * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2629
SELECT + col1 DIV 49 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2629
SELECT + col1 / 49 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2630
SELECT + + CAST( NULL AS SIGNED ) * + 9 + - col1 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2630
SELECT + + CAST ( NULL AS INTEGER ) * + 9 + - col1 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 8 * + col0 FROM tab2
----
-368
-512
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT ALL MAX( DISTINCT - 43 ) FROM tab0
----
-43

skipif mysql # not compatible
query I rowsort label-2632
SELECT ALL MAX ( DISTINCT - 43 ) FROM tab0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT COUNT( - 16 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2633
SELECT COUNT ( - 16 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2634
SELECT DISTINCT + COUNT( * ) AS col1, - COUNT( * ) FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-2634
SELECT DISTINCT + COUNT ( * ) AS col1, - COUNT ( * ) FROM tab2
----
3
-3

query I rowsort
SELECT - 86 AS col0 FROM tab2 WHERE NOT + + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 64 col0, 39 AS col1 FROM tab2
----
-64
39
-64
39
-64
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT + COUNT( ALL - col2 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2637
SELECT + COUNT ( ALL - col2 ) col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT ALL + MIN( - + 39 ) FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL + MIN ( - + 39 ) FROM tab1
----
-39

query I rowsort
SELECT - 83 + - 98 AS col2 FROM tab2 AS cor0
----
-181
-181
-181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2640
SELECT CAST( - col2 AS SIGNED ) + - col2 * - col2 AS col0 FROM tab0 cor0
----
2162
90
9702

skipif mysql # not compatible
query I rowsort label-2640
SELECT CAST ( - col2 AS INTEGER ) + - col2 * - col2 AS col0 FROM tab0 cor0
----
2162
90
9702

onlyif mysql # DIV for integer division: 
query I rowsort label-2641
SELECT 85 + 90 DIV - col1 AS col2 FROM tab0
----
-5
81
84

skipif mysql # not compatible
query I rowsort label-2641
SELECT 85 + 90 / - col1 AS col2 FROM tab0
----
-5
81
84

query II rowsort
SELECT ALL col1, ( - 22 ) + + + col1 FROM tab1
----
14
-8
47
25
5
-17

query I rowsort
SELECT ALL 7 + + 33 FROM tab1
----
40
40
40

query I rowsort
SELECT DISTINCT col1 + + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT DISTINCT + 58 * + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT + 58 * + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 - col1 IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + col2 / + col0 + - col2 + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2647
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) / - - col0 >= NULL
----

skipif mysql # not compatible
query III rowsort label-2647
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) / - - col0 >= NULL
----

query I rowsort
SELECT DISTINCT 22 * - col1 * col1 AS col1 FROM tab2 cor0
----
-130438
-57222
-98758

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2649
SELECT ALL - + COUNT( * ) DIV - 4 + 69 AS col2 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL - + COUNT ( * ) / - 4 + 69 AS col2 FROM tab1 AS cor0
----
69

query I rowsort
SELECT DISTINCT + - col1 * - + ( + 70 ) * col2 + + + col1 FROM tab2 AS cor0
----
215677
272087
82161

query I rowsort
SELECT + col2 * - + 26 + - + 95 AS col1 FROM tab1 AS cor0
----
-1629
-1863
-2591

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= - col1 * - + col2 * + col1 * + 32
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2653
SELECT * FROM tab2 AS cor0 WHERE + CAST( 9 AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2653
SELECT * FROM tab2 AS cor0 WHERE + CAST ( 9 AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2654
SELECT DISTINCT + 7 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2654
SELECT DISTINCT + 7 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col0 + 66 FROM tab2
----
112
130
141

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT DISTINCT + COUNT( * ) - + - 72 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT + COUNT ( * ) - + - 72 FROM tab1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT 41 + + COUNT( * ) AS col2 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-2657
SELECT 41 + + COUNT ( * ) AS col2 FROM tab1
----
44

query I rowsort
SELECT col0 * - col1 + col2 + - col2 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT + col1 * col1 + - - col0 * 97 * - - col0 FROM tab1
----
252493
700850
805466

query I rowsort
SELECT DISTINCT 59 * - col2 AS col2 FROM tab0
----
-2773
-5841
-590

query I rowsort
SELECT DISTINCT - ( 91 ) + + col2 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2662
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE CAST( - - 36 AS SIGNED ) * + 4 IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2662
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE CAST ( - - 36 AS INTEGER ) * + 4 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT + COUNT( - 17 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2663
SELECT + COUNT ( - 17 ) FROM tab2 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 99 * - - col0 AS col0, - 10 col0 FROM tab2 AS cor0
----
-4554
-10
-6336
-10
-7425
-10

query I rowsort
SELECT ALL + 42 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2666
SELECT COUNT( * ) DIV + - 38 col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2666
SELECT COUNT ( * ) / + - 38 col1 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - - ( + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT DISTINCT - SUM( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2668
SELECT DISTINCT - SUM ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT DISTINCT - COUNT( * ) * + + 35 FROM tab2 cor0
----
-105

skipif mysql # not compatible
query I rowsort label-2669
SELECT DISTINCT - COUNT ( * ) * + + 35 FROM tab2 cor0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT DISTINCT MIN( ALL + 57 ) FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT MIN ( ALL + 57 ) FROM tab2 AS cor0
----
57

query II rowsort
SELECT - col2 AS col2, - 6 AS col0 FROM tab0 AS cor0
----
-10
-6
-47
-6
-99
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT DISTINCT - ( + - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2672
SELECT DISTINCT - ( + - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 41 AND + + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN - - col0 AND NULL
----
87
21
10

query II rowsort
SELECT DISTINCT + + col0, col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 40 = 68
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT DISTINCT SUM( ALL + 74 ) AS col1 FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-2677
SELECT DISTINCT SUM ( ALL + 74 ) AS col1 FROM tab2
----
222

query I rowsort
SELECT col1 * ( - col1 ) AS col1 FROM tab2
----
-2601
-4489
-5929

query I rowsort
SELECT 19 * + - col0 * 5 FROM tab1
----
-4845
-8075
-8645

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 81 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2681
SELECT ALL + col1 DIV col0 - + col0 AS col0 FROM tab0 cor0
----
-10
-87
-97

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL + col1 / col0 - + col0 AS col0 FROM tab0 cor0
----
-10
-87
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + - col1 / col0 / col2 NOT BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2683
SELECT DISTINCT + - COUNT( * ) / CAST( - MAX( DISTINCT + + col0 ) AS SIGNED ) FROM tab2 cor0 WHERE NOT col1 + - + CAST( - 15 AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2683
SELECT DISTINCT + - COUNT ( * ) / CAST ( - MAX ( DISTINCT + + col0 ) AS INTEGER ) FROM tab2 cor0 WHERE NOT col1 + - + CAST ( - 15 AS INTEGER ) IS NOT NULL
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 56 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT - col1 + + - col2 AS col1 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2686
SELECT - + ( + ( + col2 ) ) + - CAST( col0 AS SIGNED ) - - col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2686
SELECT - + ( + ( + col2 ) ) + - CAST ( col0 AS INTEGER ) - - col0 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT 30 + + + MIN( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-2687
SELECT 30 + + + MIN ( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT ALL + - COUNT( DISTINCT + col0 ) * + + COUNT( * ) - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2688
SELECT ALL + - COUNT ( DISTINCT + col0 ) * + + COUNT ( * ) - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-12

query I rowsort
SELECT + 19 + - 98 - - 22 + + col2 * - + 93 * + - col2 AS col0 FROM tab0 cor0
----
205380
911436
9243

query I rowsort
SELECT ALL + 54 * + 95 AS col2 FROM tab0 AS cor0
----
5130
5130
5130

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE 30 + col0 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT ALL AVG ( - col2 ) * + 37 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 <= + col1
----

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NULL <= - col2
----

onlyif mysql # aggregate syntax: 
query III rowsort label-2695
SELECT 13 AS col0, - COUNT( * ), - + ( - + COUNT( * ) ) AS col2 FROM tab2
----
13
-3
3

skipif mysql # not compatible
query III rowsort label-2695
SELECT 13 AS col0, - COUNT ( * ), - + ( - + COUNT ( * ) ) AS col2 FROM tab2
----
13
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT DISTINCT - ( - COUNT( * ) ) - 56 col0 FROM tab1
----
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2696
SELECT DISTINCT - ( - COUNT ( * ) ) - 56 col0 FROM tab1
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2697
SELECT ALL - 80 + - CAST( - col0 AS SIGNED ) FROM tab2
----
-16
-34
-5

skipif mysql # not compatible
query I rowsort label-2697
SELECT ALL - 80 + - CAST ( - col0 AS INTEGER ) FROM tab2
----
-16
-34
-5

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT - + 34 - + 43 * + MIN( ALL - ( col1 ) ) AS col0 FROM tab2 AS cor0
----
3277

skipif mysql # not compatible
query I rowsort label-2699
SELECT - + 34 - + 43 * + MIN ( ALL - ( col1 ) ) AS col0 FROM tab2 AS cor0
----
3277

query I rowsort
SELECT - 14 * - 28 FROM tab2
----
392
392
392

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 > - col2
----
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 14 * - ( col1 ) AS col2, col1 * 93 col1 FROM tab1
----
-196
1302
-658
4371
-70
465

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT + ( + SUM( ALL - col0 ) ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2703
SELECT + ( + SUM ( ALL - col0 ) ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT + - col0 * - + col0 AS col0 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2705
SELECT ALL - col1 / - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2705
SELECT ALL - col1 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT + MIN( DISTINCT - - 31 ) FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-2706
SELECT + MIN ( DISTINCT - - 31 ) FROM tab0 AS cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT DISTINCT + 99 * SUM( ALL - 36 ) * + - 62 AS col2 FROM tab1 cor0
----
662904

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT + 99 * SUM ( ALL - 36 ) * + - 62 AS col2 FROM tab1 cor0
----
662904

query I rowsort
SELECT DISTINCT - 3 AS col0 FROM tab2 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2709
SELECT ALL + + col0 - + col1 + - - ( - col1 ) DIV + col1 - + col2 * - - col1 + col2 AS col0 FROM tab2 AS cor0 WHERE col2 + + 90 IS NOT NULL
----
-1156
-3054
-3821

skipif mysql # not compatible
query I rowsort label-2709
SELECT ALL + + col0 - + col1 + - - ( - col1 ) / + col1 - + col2 * - - col1 + col2 AS col0 FROM tab2 AS cor0 WHERE col2 + + 90 IS NOT NULL
----
-1156
-3054
-3821

query I rowsort
SELECT DISTINCT - 53 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2711
SELECT - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0 WHERE NOT 31 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2711
SELECT - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0 WHERE NOT 31 IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2712
SELECT + col0 AS col2, + 28 DIV + - 13 FROM tab0
----
15
-2
87
-2
97
-2

skipif mysql # not compatible
query II rowsort label-2712
SELECT + col0 AS col2, + 28 / + - 13 FROM tab0
----
15
-2
87
-2
97
-2

query I rowsort
SELECT ALL + col2 + - + col1 AS col1 FROM tab0
----
-11
-34
98

query I rowsort
SELECT + 47 + - AVG ( DISTINCT + + col0 ) FROM tab0 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2715
SELECT DISTINCT + col0, - col1 / - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-2715
SELECT DISTINCT + col0, - col1 / - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2716
SELECT 91 DIV - + col2 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-2716
SELECT 91 / - + col2 FROM tab2
----
-1
-2
-3

query II rowsort
SELECT ALL col2 AS col0, col1 + + 42 FROM tab2
----
23
93
40
119
58
109

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 * - + 33 + + + ( - 19 ) * col2 * + 35 * + - col2 * - col0 + - col1 + + col0 + - + 62 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2719
SELECT 39 DIV - COUNT( * ) AS col0 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-2719
SELECT 39 / - COUNT ( * ) AS col0 FROM tab0
----
-13

query I rowsort
SELECT + 91 * - 47 AS col2 FROM tab0
----
-4277
-4277
-4277

query I rowsort
SELECT - ( + 44 ) * col2 FROM tab1
----
-2596
-2992
-4224

query I rowsort
SELECT ALL - 87 * 11 FROM tab1
----
-957
-957
-957

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT + COUNT( * ) + 52 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-2723
SELECT + COUNT ( * ) + 52 FROM tab1
----
55

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 45 ) NOT BETWEEN ( + col1 ) AND 14
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 72 + - col1 / col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( col0 + 41 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2727
SELECT DISTINCT + CAST( ( 77 ) AS SIGNED ) FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-2727
SELECT DISTINCT + CAST ( ( 77 ) AS INTEGER ) FROM tab1
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2728
SELECT ALL - col2 DIV - col0 FROM tab0 WHERE NULL IS NULL
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL - col2 / - col0 FROM tab0 WHERE NULL IS NULL
----
0
1
3

query I rowsort
SELECT ALL + 56 + 77 AS col1 FROM tab2
----
133
133
133

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2730
SELECT CAST( NULL AS DECIMAL ) * 71 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2730
SELECT CAST ( NULL AS REAL ) * 71 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + - ( 47 + + col0 ) AS col1 FROM tab1
----
-47

query I rowsort
SELECT - 54 * + col2 FROM tab0
----
-2538
-5346
-540

query I rowsort
SELECT col0 + 61 * + col0 FROM tab0 WHERE NULL > 59 * 72
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2734
SELECT DISTINCT + 97 * + CAST( col2 AS SIGNED ) AS col2 FROM tab1
----
5723
6596
9312

skipif mysql # not compatible
query I rowsort label-2734
SELECT DISTINCT + 97 * + CAST ( col2 AS INTEGER ) AS col2 FROM tab1
----
5723
6596
9312

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NULL >= ( + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 60 < 71
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2737
SELECT DISTINCT CAST( - col0 AS SIGNED ) + - 40 AS col0 FROM tab1
----
-125
-131
-91

skipif mysql # not compatible
query I rowsort label-2737
SELECT DISTINCT CAST ( - col0 AS INTEGER ) + - 40 AS col0 FROM tab1
----
-125
-131
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT ( - COUNT( ALL 39 ) ) AS col1 FROM tab0 WHERE NOT + 39 BETWEEN col2 AND NULL
----
-2

skipif mysql # not compatible
query I rowsort label-2738
SELECT ( - COUNT ( ALL 39 ) ) AS col1 FROM tab0 WHERE NOT + 39 BETWEEN col2 AND NULL
----
-2

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) < + 37
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT 46 * - COUNT( DISTINCT 42 ) AS col0 FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-2740
SELECT 46 * - COUNT ( DISTINCT 42 ) AS col0 FROM tab0
----
-46

query I rowsort
SELECT 83 * 69 AS col2 FROM tab1
----
5727
5727
5727

onlyif mysql # DIV for integer division: 
query I rowsort label-2742
SELECT DISTINCT - 12 DIV col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2742
SELECT DISTINCT - 12 / col2 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 23 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col1 / + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 64 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 87 AS col2 FROM tab1 WHERE NOT ( col1 * col1 - + 3 * col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 < col0
----
51
14
96

query I rowsort
SELECT 17 * + col2 AS col2 FROM tab0
----
1683
170
799

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 NOT IN ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2750
SELECT DISTINCT + 31 DIV 35 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2750
SELECT DISTINCT + 31 / 35 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT SUM( ALL 17 ) FROM tab2 AS cor0 WHERE NOT - col2 * + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2751
SELECT SUM ( ALL 17 ) FROM tab2 AS cor0 WHERE NOT - col2 * + col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT - MIN( - 95 ) FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-2752
SELECT - MIN ( - 95 ) FROM tab1 AS cor0
----
95

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= col2 * 32
----

query I rowsort
SELECT - - ( - 46 ) FROM tab0 AS cor0
----
-46
-46
-46

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 / + 19 > + col1
----
15
87

query I rowsort
SELECT ALL - 31 AS col2 FROM tab2 WHERE NOT ( 4 / col2 ) IS NULL OR NULL IS NULL
----
-31
-31
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2757
SELECT ALL + 67 * col0 - + col1 * - col2 FROM tab1 WHERE NOT ( 56 ) NOT BETWEEN NULL AND ( - CAST( NULL AS SIGNED ) * - CAST( col0 * - 95 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2757
SELECT ALL + 67 * col0 - + col1 * - col2 FROM tab1 WHERE NOT ( 56 ) NOT BETWEEN NULL AND ( - CAST ( NULL AS INTEGER ) * - CAST ( col0 * - 95 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2758
SELECT CAST( ( ( - col1 ) ) AS SIGNED ) + - 94 * 38 AS col2 FROM tab0
----
-3573
-3593
-3653

skipif mysql # not compatible
query I rowsort label-2758
SELECT CAST ( ( ( - col1 ) ) AS INTEGER ) + - 94 * 38 AS col2 FROM tab0
----
-3573
-3593
-3653

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2760
SELECT ALL + CAST( - - col2 AS SIGNED ) * col0 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL + CAST ( - - col2 AS INTEGER ) * col0 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT DISTINCT - COUNT( * ) * + 19 AS col2 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-2761
SELECT DISTINCT - COUNT ( * ) * + 19 AS col2 FROM tab1
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-2762
SELECT + 30 * ( 30 ) DIV - 35 col2 FROM tab1
----
-25
-25
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2762
SELECT + 30 * ( 30 ) / - 35 col2 FROM tab1
----
-25
-25
-25

query I rowsort
SELECT DISTINCT + 24 FROM tab1 cor0 WHERE NOT ( col2 ) NOT BETWEEN + col0 AND - col1
----

query I rowsort
SELECT + 35 * + + 65 FROM tab2 AS cor0
----
2275
2275
2275

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 + - col0 * - col0 BETWEEN + 46 * - 71 AND NULL
----

query I rowsort
SELECT ALL - - col1 + + 57 FROM tab0 AS cor0
----
138
58
78

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NOT NULL NOT IN ( 79 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT COUNT( DISTINCT 98 ) + - 9 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-8

skipif mysql # not compatible
query I rowsort label-2768
SELECT COUNT ( DISTINCT 98 ) + - 9 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-8

query I rowsort
SELECT 19 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query III rowsort
SELECT * FROM tab0 WHERE - + 8 IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT ALL + 7 + - MAX( DISTINCT - col2 ) col0 FROM tab1
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2771
SELECT ALL + 7 + - MAX ( DISTINCT - col2 ) col0 FROM tab1
----
66

query I rowsort
SELECT + col2 + - col1 - col0 AS col0 FROM tab0 AS cor0
----
-49
-98
1

query I rowsort
SELECT + - ( - 48 ) + ( 32 ) FROM tab2 cor0
----
80
80
80

query I rowsort
SELECT ALL col0 - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - 43 / col2 + col2 )
----

query I rowsort
SELECT + + 96 * ( - col2 ) + - col2 AS col2 FROM tab0 AS cor0
----
-4559
-9603
-970

query I rowsort
SELECT col2 * - + col1 + + + 80 * - 54 AS col1 FROM tab0 AS cor0
----
-4419
-4530
-8127

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * + - col2 IS NULL
----

query I rowsort
SELECT - col0 + 91 * - 25 AS col1 FROM tab2 AS cor0
----
-2321
-2339
-2350

query I rowsort
SELECT DISTINCT 76 - - col0 FROM tab1 AS cor0
----
127
161
167

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col1 ) <= 95 + + col2 * - 79
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) < + 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT + + COUNT( * ) FROM tab0 AS cor0 WHERE 19 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2782
SELECT + + COUNT ( * ) FROM tab0 AS cor0 WHERE 19 < NULL
----
0

query I rowsort
SELECT col1 * - col2 - - col1 FROM tab1
----
-1330
-290
-3149

query I rowsort
SELECT - col2 + col0 * col1 AS col2 FROM tab1 WHERE NOT - col1 BETWEEN + col2 / + 25 - col0 AND ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT MIN( DISTINCT 0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2785
SELECT MIN ( DISTINCT 0 ) FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + - 30 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2787
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN CAST( 12 AS SIGNED ) * 97 AND ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-2787
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN CAST ( 12 AS INTEGER ) * 97 AND ( - col1 )
----

query I rowsort
SELECT col0 * + col0 * - - col1 AS col2 FROM tab1
----
36125
36414
389207

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT MIN( - + 76 ) AS col0 FROM tab1
----
-76

skipif mysql # not compatible
query I rowsort label-2789
SELECT MIN ( - + 76 ) AS col0 FROM tab1
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-2790
SELECT ALL col0 DIV - 61 AS col1 FROM tab2 AS cor0 WHERE ( 30 ) <> ( 41 )
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL col0 / - 61 AS col1 FROM tab2 AS cor0 WHERE ( 30 ) <> ( 41 )
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT DISTINCT - 94 * - + SUM( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
9682

skipif mysql # not compatible
query I rowsort label-2791
SELECT DISTINCT - 94 * - + SUM ( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
9682

query I rowsort
SELECT + col1 / + 94 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 <> ( ( + col1 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN col1 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT - - COUNT( 86 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2794
SELECT - - COUNT ( 86 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query II rowsort
SELECT + - col0 AS col2, 13 FROM tab0 cor0
----
-15
13
-87
13
-97
13

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> - col2 - - 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT ALL - - MIN( 91 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2797
SELECT ALL - - MIN ( 91 ) AS col2 FROM tab1 AS cor0
----
91

query I rowsort
SELECT ALL + 71 + - ( + col2 ) AS col1 FROM tab0 cor0
----
-28
24
61

onlyif mysql # DIV for integer division: 
query I rowsort label-2799
SELECT ALL col0 * - col2 + - 96 DIV col1 col2 FROM tab0 AS cor0
----
-706
-874
-9699

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2799
SELECT ALL col0 * - col2 + - 96 / col1 col2 FROM tab0 AS cor0
----
-706
-874
-9699

query I rowsort
SELECT DISTINCT col1 * + 71 - ( col0 ) FROM tab2 WHERE NULL IS NULL
----
3575
4682
5403

query I rowsort
SELECT ALL + col2 + + 61 AS col2 FROM tab2
----
101
119
84

query I rowsort
SELECT ALL + ( + col2 ) * 61 FROM tab1
----
3599
4148
5856

onlyif mysql # DIV for integer division: 
query I rowsort label-2803
SELECT ALL - col2 DIV + ( col2 ) + col1 FROM tab1
----
13
4
46

skipif mysql # not compatible
query I rowsort label-2803
SELECT ALL - col2 / + ( col2 ) + col1 FROM tab1
----
13
4
46

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 60 * + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( 45 ) AS col1 FROM tab0
----
45

query I rowsort
SELECT - col0 + + 21 AS col0 FROM tab0
----
-66
-76
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT DISTINCT COUNT( * ) col0 FROM tab2 WHERE NOT ( - ( + col0 ) ) IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2807
SELECT DISTINCT COUNT ( * ) col0 FROM tab2 WHERE NOT ( - ( + col0 ) ) IS NULL
----
3

query I rowsort
SELECT DISTINCT col2 * + 31 + + col2 AS col1 FROM tab0
----
1504
3168
320

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( - - col1 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2810
SELECT DISTINCT + 39 AS col1, COUNT( * ) AS col1 FROM tab1 cor0
----
39
3

skipif mysql # not compatible
query II rowsort label-2810
SELECT DISTINCT + 39 AS col1, COUNT ( * ) AS col1 FROM tab1 cor0
----
39
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT ALL - SUM( + + col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2811
SELECT ALL - SUM ( + + col2 ) AS col2 FROM tab0 AS cor0
----
-156

query II rowsort
SELECT ALL - - col2, col2 + ( - + 1 ) AS col1 FROM tab0 cor0
----
10
9
47
46
99
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT - COUNT( 7 ) FROM tab1 AS cor0 WHERE ( - ( + 3 ) ) NOT BETWEEN ( NULL ) AND - col0
----
-3

skipif mysql # not compatible
query I rowsort label-2813
SELECT - COUNT ( 7 ) FROM tab1 AS cor0 WHERE ( - ( + 3 ) ) NOT BETWEEN ( NULL ) AND - col0
----
-3

query I rowsort
SELECT + + 8 * + col2 FROM tab1 AS cor0
----
472
544
768

query I rowsort
SELECT ALL - col0 - + + 9 AS col1 FROM tab1
----
-100
-60
-94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2816
SELECT DISTINCT COUNT( * ) + - CAST( NULL AS DECIMAL ) + - COUNT( * ) + - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT COUNT ( * ) + - CAST ( NULL AS REAL ) + - COUNT ( * ) + - COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col0 - + - col0 + 84 FROM tab0 AS cor0
----
114
258
278

query I rowsort
SELECT - col1 - + 4 * - 47 AS col2 FROM tab2 AS cor0
----
111
121
137

query I rowsort
SELECT 12 + + 49 + - col0 * col1 AS col0 FROM tab0 AS cor0
----
-1154
-1766
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT + MIN( col2 ) * COUNT( * ) * - 55 AS col0 FROM tab0 AS cor0
----
-1650

skipif mysql # not compatible
query I rowsort label-2820
SELECT + MIN ( col2 ) * COUNT ( * ) * - 55 AS col0 FROM tab0 AS cor0
----
-1650

query I rowsort
SELECT - - col1 FROM tab1 AS cor0 WHERE NOT NULL < col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 - + col1 < - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL NOT BETWEEN col0 AND + col1 * - - col1
----

query I rowsort
SELECT ALL + ( - + col0 ) * - + col2 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT + col1 * - - col0 AS col2 FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2826
SELECT CAST( CAST( + + ( - - COUNT( - col0 ) ) AS SIGNED ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2826
SELECT CAST ( CAST ( + + ( - - COUNT ( - col0 ) ) AS INTEGER ) AS INTEGER ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 11 AS col1, col2 + + 95 col2 FROM tab0
----
11
105
11
142
11
194

query I rowsort
SELECT - 37 * + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3219
-3589
-555

query I rowsort
SELECT 34 * + - col1 FROM tab0 AS cor0
----
-2754
-34
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT DISTINCT + MIN( ALL + 40 ) AS col0 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-2830
SELECT DISTINCT + MIN ( ALL + 40 ) AS col0 FROM tab1 AS cor0
----
40

query II rowsort
SELECT DISTINCT + - 68 AS col2, 19 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT - - col2 * - 1 * - 60 FROM tab2 WHERE NOT col0 IS NULL
----
1380
2400
3480

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( 94 ) AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2834
SELECT ALL + CAST( + + 65 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
65
65
65

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL + CAST ( + + 65 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
65
65
65

query I rowsort
SELECT 54 * - 20 AS col2 FROM tab2 AS cor0
----
-1080
-1080
-1080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2836
SELECT + - 58 + + COUNT( * ) DIV - 86 FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2836
SELECT + - 58 + + COUNT ( * ) / - 86 FROM tab1 AS cor0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-2837
SELECT + col2 DIV - 60 + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2837
SELECT + col2 / - 60 + col2 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > 60 - - - col0
----

query I rowsort
SELECT ALL - - 91 FROM tab2 cor0 WHERE NULL <= - col1 / - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2840
SELECT col1 + - col1 + - + 9 DIV col1 FROM tab0 AS cor0
----
-9
0
0

skipif mysql # not compatible
query I rowsort label-2840
SELECT col1 + - col1 + - + 9 / col1 FROM tab0 AS cor0
----
-9
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2841
SELECT + SUM( ALL + 93 ) + + ( COUNT( * ) ) col1, 61 + - 81 AS col0 FROM tab1 AS cor0
----
282
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2841
SELECT + SUM ( ALL + 93 ) + + ( COUNT ( * ) ) col1, 61 + - 81 AS col0 FROM tab1 AS cor0
----
282
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-2842
SELECT DISTINCT SUM( DISTINCT + - col0 ) col2, 85 AS col0 FROM tab2 AS cor0
----
-185
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2842
SELECT DISTINCT SUM ( DISTINCT + - col0 ) col2, 85 AS col0 FROM tab2 AS cor0
----
-185
85

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE - 32 IS NOT NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2844
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 41 + ( - 21 ) col1, AVG ( + col2 ) / - 10 col2 FROM tab1 WHERE NOT NULL IS NULL
----
20
NULL

query I rowsort
SELECT DISTINCT col2 + + 37 AS col1 FROM tab2
----
60
77
95

query I rowsort
SELECT ALL 4 + 65 FROM tab1
----
69
69
69

query I rowsort
SELECT ALL + - col1 * + + 18 + - 54 FROM tab1 WHERE ( NULL ) BETWEEN NULL AND 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT 52 * - 10 * + COUNT( + + 60 ) AS col2 FROM tab1
----
-1560

skipif mysql # not compatible
query I rowsort label-2849
SELECT 52 * - 10 * + COUNT ( + + 60 ) AS col2 FROM tab1
----
-1560

query I rowsort
SELECT ALL + col0 + + ( 3 ) FROM tab1
----
54
88
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT COUNT( * ) * 67 * 11 AS col0 FROM tab2 AS cor0
----
2211

skipif mysql # not compatible
query I rowsort label-2851
SELECT COUNT ( * ) * 67 * 11 AS col0 FROM tab2 AS cor0
----
2211

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT + 79 - - COUNT( * ) FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-2852
SELECT + 79 - - COUNT ( * ) FROM tab1 AS cor0
----
82

query I rowsort
SELECT - + 24 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT + ( - MIN( + col1 ) ) + + SUM( + col2 ) FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-2854
SELECT + ( - MIN ( + col1 ) ) + + SUM ( + col2 ) FROM tab2
----
70

query I rowsort
SELECT - 23 + - col1 + + - col1 FROM tab2
----
-125
-157
-177

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2856
SELECT - COUNT( * ) FROM tab2 WHERE + CAST( NULL AS DECIMAL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2856
SELECT - COUNT ( * ) FROM tab2 WHERE + CAST ( NULL AS REAL ) IS NULL
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2857
SELECT + CAST( NULL AS DECIMAL ) * + 37 + + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2857
SELECT + CAST ( NULL AS REAL ) * + 37 + + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT DISTINCT + + 88 * - - COUNT( * ) - - - COUNT( * ) FROM tab1 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-2858
SELECT DISTINCT + + 88 * - - COUNT ( * ) - - - COUNT ( * ) FROM tab1 AS cor0
----
261

query II rowsort
SELECT - col2 AS col0, - ( + + 98 ) AS col0 FROM tab0 AS cor0
----
-10
-98
-47
-98
-99
-98

query I rowsort
SELECT + 11 * - + col2 FROM tab1 AS cor0
----
-1056
-649
-748

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2862
SELECT ALL - CAST( NULL AS SIGNED ) / + col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2862
SELECT ALL - CAST ( NULL AS INTEGER ) / + col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * col0 * col0 AS col0 FROM tab2 AS cor0
----
-107916
-315392
-376875

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT ALL 25 * - ( - ( - 82 ) ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-2053

skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL 25 * - ( - ( - 82 ) ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-2053

onlyif mysql # aggregate syntax: 
query II rowsort label-2865
SELECT DISTINCT - - 92 AS col2, COUNT( * ) FROM tab0 AS cor0
----
92
3

skipif mysql # not compatible
query II rowsort label-2865
SELECT DISTINCT - - 92 AS col2, COUNT ( * ) FROM tab0 AS cor0
----
92
3

query I rowsort
SELECT DISTINCT + 26 * - 71 FROM tab1 AS cor0
----
-1846

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT + MAX( col1 ) + + 16 * COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
125

skipif mysql # not compatible
query I rowsort label-2867
SELECT + MAX ( col1 ) + + 16 * COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
125

query I rowsort
SELECT DISTINCT + - col2 * + col2 * - - col2 AS col1 FROM tab0 AS cor0
----
-1000
-103823
-970299

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 70 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + col1 IS NOT NULL
----

query I rowsort
SELECT + col1 / - + 78 FROM tab1 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT + col2 * 28 FROM tab2
----
1120
1624
644

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL OR NOT NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - ( + col0 ) + - 4 AS col2, + col1 AS col0 FROM tab2
----
-50
51
-68
77
-79
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2875
SELECT + col1 + - col0 + - CAST( NULL AS SIGNED ), - 26 AS col2 FROM tab2
----
NULL
-26
NULL
-26
NULL
-26

skipif mysql # not compatible
query II rowsort label-2875
SELECT + col1 + - col0 + - CAST ( NULL AS INTEGER ), - 26 AS col2 FROM tab2
----
NULL
-26
NULL
-26
NULL
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE - 76 BETWEEN NULL AND 68
----
0

skipif mysql # not compatible
query I rowsort label-2876
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE - 76 BETWEEN NULL AND 68
----
0

query I rowsort
SELECT ALL - 76 * + + col2 FROM tab1 AS cor0
----
-4484
-5168
-7296

onlyif mysql # DIV for integer division: 
query I rowsort label-2878
SELECT ALL + - 17 DIV + - col2 * - col2 * + col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2878
SELECT ALL + - 17 / + - col2 * - col2 * + col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL - + ( + - col1 ) AS col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT 14 + ( - - col0 ) FROM tab2
----
60
78
89

query I rowsort
SELECT + 46 AS col0 FROM tab1 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2882
SELECT col2 * col2 + + ( CAST( - + col0 AS SIGNED ) ) + - 46 * - col0 FROM tab2
----
2599
4480
6739

skipif mysql # not compatible
query I rowsort label-2882
SELECT col2 * col2 + + ( CAST ( - + col0 AS INTEGER ) ) + - 46 * - col0 FROM tab2
----
2599
4480
6739

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2883
SELECT CAST( + col2 AS SIGNED ) DIV + col2 + col1 AS col2 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-2883
SELECT CAST ( + col2 AS INTEGER ) / + col2 + col1 AS col2 FROM tab1
----
15
48
6

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL + col2 * col2 + - 50 AS col0 FROM tab0
----
2159
50
9751

query I rowsort
SELECT 72 * + col0 + - col1 AS col2 FROM tab0
----
6243
6983
999

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT SUM( - col1 ) + + COUNT( * ) FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-2887
SELECT SUM ( - col1 ) + + COUNT ( * ) FROM tab2
----
-192

query II rowsort
SELECT col1 + col2 AS col0, col2 AS col1 FROM tab0
----
100
99
128
47
31
10

query I rowsort
SELECT ALL 15 * + 51 - col1 * col0 FROM tab1 AS cor0
----
-3512
340
51

query I rowsort
SELECT DISTINCT - + col0 * - 22 FROM tab2 cor0
----
1012
1408
1650

query I rowsort
SELECT ALL + col0 * + 86 + + col1 AS col2 FROM tab1 AS cor0
----
4400
7315
7873

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col2 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2893
SELECT - 13 DIV + col0 * + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2893
SELECT - 13 / + col0 * + col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + 63 FROM tab2 WHERE NOT + col1 * + + 92 IS NULL
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT ALL + 32 * - COUNT( * ) FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2895
SELECT ALL + 32 * - COUNT ( * ) FROM tab2 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT COUNT( * ) * + + 86 AS col1 FROM tab0 cor0
----
258

skipif mysql # not compatible
query I rowsort label-2896
SELECT COUNT ( * ) * + + 86 AS col1 FROM tab0 cor0
----
258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2897
SELECT DISTINCT - 92 / CAST( NULL AS SIGNED ) + + + col1 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2897
SELECT DISTINCT - 92 / CAST ( NULL AS INTEGER ) + + + col1 AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 * - 5 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT MIN( - - col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2899
SELECT MIN ( - - col2 ) AS col0 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT - SUM( + col2 ) / + COUNT( * ) * + + 40 AS col0 FROM tab1 AS cor0 WHERE NOT 43 * col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2900
SELECT - SUM ( + col2 ) / + COUNT ( * ) * + + 40 AS col0 FROM tab1 AS cor0 WHERE NOT 43 * col2 IS NOT NULL
----
NULL

query I rowsort
SELECT + ( + 79 ) FROM tab0 AS cor0
----
79
79
79

query I rowsort
SELECT ALL + - col2 * + col1 + + col0 AS col2 FROM tab0 AS cor0
----
-123
-2
-3792

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2903
SELECT DISTINCT CAST( NULL AS SIGNED ), col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-2903
SELECT DISTINCT CAST ( NULL AS INTEGER ), col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < 85
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2905
SELECT ALL + CAST( - 27 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL + CAST ( - 27 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-27
-27
-27

query II rowsort
SELECT col0 * col0 * + col1, + col0 FROM tab0 cor0
----
158949
87
18225
15
9409
97

query I rowsort
SELECT 5 * + - 71 * col0 * + 95 FROM tab2
----
-1551350
-2158400
-2529375

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT ALL + COUNT( * ) * MIN( + col2 ) AS col1 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL + COUNT ( * ) * MIN ( + col2 ) AS col1 FROM tab0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT DISTINCT - SUM( DISTINCT - + col0 ) * + COUNT( - + 93 ) FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-2909
SELECT DISTINCT - SUM ( DISTINCT - + col0 ) * + COUNT ( - + 93 ) FROM tab2
----
555

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT - COUNT( ALL + - col2 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2910
SELECT - COUNT ( ALL + - col2 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2911
SELECT DISTINCT * FROM tab0 WHERE + - 39 NOT BETWEEN - col0 + - col2 * CAST( NULL AS SIGNED ) AND - - col2 + - 4
----

skipif mysql # not compatible
query III rowsort label-2911
SELECT DISTINCT * FROM tab0 WHERE + - 39 NOT BETWEEN - col0 + - col2 * CAST ( NULL AS INTEGER ) AND - - col2 + - 4
----

query I rowsort
SELECT ALL + 73 * - col1 FROM tab1
----
-1022
-3431
-365

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - + col0 >= + 45
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 9 + - col1 AS col2 FROM tab0 AS cor0
----
-10
-30
-90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 16 + + 27 - - + 84 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - ( + 6 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT COUNT( * ) + + 60 AS col1 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-2917
SELECT COUNT ( * ) + + 60 AS col1 FROM tab1 AS cor0
----
63

query I rowsort
SELECT - + 18 + + - 84 FROM tab2 AS cor0
----
-102
-102
-102

query I rowsort
SELECT DISTINCT + 4 * + col1 * + col2 * - 16 AS col2 FROM tab1 AS cor0
----
-18880
-204544
-86016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2920
SELECT ALL COUNT( * ) DIV - - 58 * + 82 * - + COUNT( * ) + + 14 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL COUNT ( * ) / - - 58 * + 82 * - + COUNT ( * ) + + 14 FROM tab0 AS cor0
----
14

query I rowsort
SELECT ALL - col0 * col0 + - col2 FROM tab2 AS cor0
----
-2139
-4136
-5683

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 99 ) * + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - 66 ) + col2 FROM tab1 AS cor0
----
125
134
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 22 col2, col1 - - col1 AS col1 FROM tab2
----
22
102
22
134
22
154

query I rowsort
SELECT ALL col2 + - col2 + + + col2 AS col2 FROM tab1
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 / + 40 <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE col2 * - ( + col0 ) < - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2928
SELECT COUNT( * ) col0, - COUNT( * ) AS col0 FROM tab1
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2928
SELECT COUNT ( * ) col0, - COUNT ( * ) AS col0 FROM tab1
----
3
-3

query I rowsort
SELECT col0 * col0 - 34 AS col2 FROM tab2
----
2082
4062
5591

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 16 + + 54 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT DISTINCT - 94 - + + COUNT( * ) FROM tab2 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2932
SELECT DISTINCT - 94 - + + COUNT ( * ) FROM tab2 AS cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 6 AS col2, 74 col1 FROM tab0 AS cor0
----
-6
74
-6
74
-6
74

query I rowsort
SELECT col1 * + - ( + - ( col0 ) ) + - col0 + + col2 FROM tab0 AS cor0
----
1247
1750
99

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT col1 / - + col1 * - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2936
SELECT ALL + 68 AS col2, COUNT( * ) FROM tab2 AS cor0
----
68
3

skipif mysql # not compatible
query II rowsort label-2936
SELECT ALL + 68 AS col2, COUNT ( * ) FROM tab2 AS cor0
----
68
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT - 94 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT - 94 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - 83 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2939
SELECT + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2939
SELECT + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * + col1 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT DISTINCT + SUM( ALL + col0 ) col1 FROM tab2
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2941
SELECT DISTINCT + SUM ( ALL + col0 ) col1 FROM tab2
----
185

query I rowsort
SELECT col2 * - - 67 FROM tab2
----
1541
2680
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT ALL - COUNT( DISTINCT + 4 ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2943
SELECT ALL - COUNT ( DISTINCT + 4 ) AS col1 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE 99 >= + + 43 + 15
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2945
SELECT ALL - CAST( NULL AS SIGNED ) * - - 31 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 31 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) col2 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2946
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) col2 FROM tab2
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col2 NOT BETWEEN + col0 AND + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2948
SELECT + CAST( NULL AS DECIMAL ) - - col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2948
SELECT + CAST ( NULL AS REAL ) - - col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2949
SELECT 87 * - COUNT( * ) + + 59 AS col0, 1 AS col1 FROM tab0 AS cor0
----
-202
1

skipif mysql # not compatible
query II rowsort label-2949
SELECT 87 * - COUNT ( * ) + + 59 AS col0, 1 AS col1 FROM tab0 AS cor0
----
-202
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT + MIN( + - col0 ) + + ( + 87 ) - COUNT( * ) FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-2950
SELECT + MIN ( + - col0 ) + + ( + 87 ) - COUNT ( * ) FROM tab1 AS cor0
----
-7

query I rowsort
SELECT - col2 + - - col1 * - col0 + col2 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT + 91 * - + 94 * + - col2 - + col0 - - col2 AS col0 FROM tab0 AS cor0
----
402070
846848
85463

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT DISTINCT - SUM( DISTINCT + 52 ) FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT - SUM ( DISTINCT + 52 ) FROM tab1 AS cor0
----
-52

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 15 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2955
SELECT ALL - 4, COUNT( * ) AS col0 FROM tab0 AS cor0
----
-4
3

skipif mysql # not compatible
query II rowsort label-2955
SELECT ALL - 4, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-4
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT DISTINCT MAX( col1 ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-2956
SELECT DISTINCT MAX ( col1 ) FROM tab2 cor0
----
77

query I rowsort
SELECT - col2 - - - col1 FROM tab0 cor0
----
-100
-128
-31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= ( col1 )
----

query I rowsort
SELECT DISTINCT - 58 + col2 * col0 FROM tab2 AS cor0
----
1000
2502
4292

onlyif mysql # DIV for integer division: 
query I rowsort label-2960
SELECT col0 DIV - 5 + - + 53 FROM tab1
----
-63
-70
-71

skipif mysql # not compatible
query I rowsort label-2960
SELECT col0 / - 5 + - + 53 FROM tab1
----
-63
-70
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 13 + - col1 * col2 * + col1 col2 FROM tab2
----
-237224
-260416
-59861

query I rowsort
SELECT col1 + + col0 + col0 * - + col1 * - col1 FROM tab1
----
10061
201157
2215

query I rowsort
SELECT - 31 FROM tab2 WHERE NULL <= - - ( + 1 ) + - - 7
----

query I rowsort
SELECT - ( + - col1 ) + - - col2 * + col0 FROM tab0
----
786
891
9604

query I rowsort
SELECT - 35 + + 41 AS col0 FROM tab2
----
6
6
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2966
SELECT 35 * COUNT( * ) DIV - COUNT( * ) + 78 * COUNT( - - 19 ) + - - 98 col1 FROM tab0
----
297

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2966
SELECT 35 * COUNT ( * ) / - COUNT ( * ) + 78 * COUNT ( - - 19 ) + - - 98 col1 FROM tab0
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT DISTINCT - COUNT( * ) + - - SUM( + + 39 ) AS col2 FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT - COUNT ( * ) + - - SUM ( + + 39 ) AS col2 FROM tab1
----
114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + - col0 ) col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 28 * + - 92, - col2 + 65 - + + col0 col2 FROM tab0 cor0
----
2576
-131
2576
-32
2576
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT DISTINCT + SUM( 40 ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT + SUM ( 40 ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE col1 <= + 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT ALL - COUNT( ALL - col2 ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2972
SELECT ALL - COUNT ( ALL - col2 ) AS col2 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT ALL - + MAX( - - col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL - + MAX ( - - col2 ) AS col2 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT col0 + - 16 FROM tab1
----
35
69
75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( NULL ) NOT IN ( - col2 + + 31 + + col1 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2976
SELECT DISTINCT ( - col1 ) + + col1 * - + CAST( NULL AS DECIMAL ) - + - 1 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2976
SELECT DISTINCT ( - col1 ) + + col1 * - + CAST ( NULL AS REAL ) - + - 1 AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2977
SELECT ALL MIN( DISTINCT CAST( NULL AS DECIMAL ) ) AS col2, + 24 AS col1 FROM tab0
----
NULL
24

skipif mysql # not compatible
query II rowsort label-2977
SELECT ALL MIN ( DISTINCT CAST ( NULL AS REAL ) ) AS col2, + 24 AS col1 FROM tab0
----
NULL
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT DISTINCT COUNT( * ) * + MIN( ALL col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT COUNT ( * ) * + MIN ( ALL col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2979
SELECT ALL 84 + + CAST( NULL AS SIGNED ) - - + 57 / - + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL 84 + + CAST ( NULL AS INTEGER ) - - + 57 / - + COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2980
SELECT DISTINCT + COUNT( + 12 ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2980
SELECT DISTINCT + COUNT ( + 12 ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col0 + - + ( - 28 ) - - 67 + + 16 * + 39 AS col0 FROM tab2
----
765
783
794

query I rowsort
SELECT ALL - col2 * + 76 + + 22 AS col2 FROM tab2 AS cor0
----
-1726
-3018
-4386

query I rowsort
SELECT - 82 * col0 * + 61 + + + col0 FROM tab1 AS cor0
----
-255051
-425085
-455091

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT DISTINCT - 67 + MAX( 9 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2984
SELECT DISTINCT - 67 + MAX ( 9 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query II rowsort
SELECT + col1 * - 36 * col0 * + col1 + - - 56 AS col1, col0 * - col0 FROM tab0 AS cor0
----
-1381156
-7569
-3436
-9409
-3542884
-225

query I rowsort
SELECT + - 16 * + - col0 + + + ( - 49 ) AS col0 FROM tab1 AS cor0
----
1311
1407
767

onlyif mysql # DIV for integer division: 
query I rowsort label-2987
SELECT - col2 + - + col2 DIV + 32 - 63 * col1 + - + 25 FROM tab1 AS cor0
----
-1006
-3056
-400

skipif mysql # not compatible
query I rowsort label-2987
SELECT - col2 + - + col2 / + 32 - 63 * col1 + - + 25 FROM tab1 AS cor0
----
-1006
-3056
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT ALL - COUNT( DISTINCT + 3 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL - COUNT ( DISTINCT + 3 ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2989
SELECT + 25 DIV COUNT( * ) FROM tab1 cor0
----
8

skipif mysql # not compatible
query I rowsort label-2989
SELECT + 25 / COUNT ( * ) FROM tab1 cor0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2990
SELECT ALL col1 + 87 DIV col2 AS col2 FROM tab0 AS cor0
----
1
29
82

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL col1 + 87 / col2 AS col2 FROM tab0 AS cor0
----
1
29
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT ( + COUNT( DISTINCT 81 ) ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2991
SELECT ( + COUNT ( DISTINCT 81 ) ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 63 < NULL
----

query I rowsort
SELECT ALL + - col1 * + 45 AS col1 FROM tab0 AS cor0
----
-3645
-45
-945

query I rowsort
SELECT ALL col0 + - 80 FROM tab2
----
-16
-34
-5

query I rowsort
SELECT DISTINCT - col1 * - 81 + + + ( - col1 ) AS col1 FROM tab2 WHERE NOT + + col0 * col1 / + - col1 * - 76 <= ( NULL )
----

query I rowsort
SELECT col2 FROM tab1 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL 37 * 17 - + - col0 * + ( col0 ) FROM tab2
----
2745
4725
6254

query I rowsort
SELECT + 56 * - col1 + - col0 FROM tab0 WHERE NULL IS NULL
----
-1263
-153
-4551

query II rowsort
SELECT ALL col1 AS col1, col0 - col2 AS col0 FROM tab2
----
51
23
67
17
77
24

query II rowsort
SELECT + 63 AS col2, - col1 AS col2 FROM tab0 cor0
----
63
-1
63
-21
63
-81

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 27 >= ( - + 93 * - 46 )
----

query II rowsort
SELECT ALL col2, ( - - col0 ) FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) + - SUM( ALL + + col2 ) - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-115

skipif mysql # not compatible
query I rowsort label-3003
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) + - SUM ( ALL + + col2 ) - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, ( + 44 ) AS col2 FROM tab1 AS cor0
----
-59
44
-68
44
-96
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3005
SELECT ALL - + CAST( NULL AS SIGNED ) + + COUNT( * ) + - - 53 FROM tab1, tab0 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - - 53 FROM tab1, tab0 AS cor0 WHERE NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3006
SELECT col1 DIV 24 AS col1, col1 AS col2 FROM tab1
----
0
14
0
5
1
47

skipif mysql # not compatible
query II rowsort label-3006
SELECT col1 / 24 AS col1, col1 AS col2 FROM tab1
----
0
14
0
5
1
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3007
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3008
SELECT - col0 * CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3008
SELECT - col0 * CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - col2 ) * - col0 * - 49 - - 59 FROM tab1 AS cor0
----
-239845
-245676
-303153

query I rowsort
SELECT DISTINCT + 71 * 63 * + col2 AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
102879
178920
259434

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3011
SELECT 32 * - col2 / col1 * + col1 + - col1 + CAST( NULL AS SIGNED ) * + ( col2 ) - - - 30 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3011
SELECT 32 * - col2 / col1 * + col1 + - col1 + CAST ( NULL AS INTEGER ) * + ( col2 ) - - - 30 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + ( - ( col0 ) ) AS col2 FROM tab1 cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT + 21 * - COUNT( * ) AS col2 FROM tab2 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-3013
SELECT + 21 * - COUNT ( * ) AS col2 FROM tab2 cor0
----
-63

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT COUNT( * ) FROM tab1 WHERE NOT + - 91 * + - 97 * + col2 + + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3015
SELECT COUNT ( * ) FROM tab1 WHERE NOT + - 91 * + - 97 * + col2 + + col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT COUNT( + + 5 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3016
SELECT COUNT ( + + 5 ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3017
SELECT col1 AS col0 FROM tab0 WHERE NOT NULL IN ( - col2, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3017
SELECT col1 AS col0 FROM tab0 WHERE NOT NULL IN ( - col2, CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT DISTINCT col1 AS col2, - 52 AS col0 FROM tab2
----
51
-52
67
-52
77
-52

query I rowsort
SELECT ALL + 91 * - 78 + - col1 + - 1 FROM tab0
----
-7100
-7120
-7180

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 79 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT ALL - MAX( ALL + 33 ) AS col2 FROM tab0 AS cor0 WHERE NOT 37 / - - col0 + + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL - MAX ( ALL + 33 ) AS col2 FROM tab0 AS cor0 WHERE NOT 37 / - - col0 + + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 49 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + ( - 18 ) AS col0 FROM tab1 cor0
----
-18
-18
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3024
SELECT - col0 col0 FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3024
SELECT - col0 col0 FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 9 + - col0 FROM tab0 AS cor0
----
-6
-78
-88

query I rowsort
SELECT ALL 28 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT DISTINCT + SUM( DISTINCT + ( + col1 ) ) + ( + ( - 93 ) ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT + SUM ( DISTINCT + ( + col1 ) ) + ( + ( - 93 ) ) FROM tab0
----
10

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 51 + - col2 - 7 > + - col1 AND NOT NULL IS NOT NULL
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3029
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + col1 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3029
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + col1 + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT - + COUNT( * ) - 3 AS col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3030
SELECT - + COUNT ( * ) - 3 AS col2 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3031
SELECT - 94 + + - 82 + + COUNT( * ) + + MIN( ALL col1 ) DIV + - 81 + 64 FROM tab2 AS cor0
----
-109

skipif mysql # not compatible
query I rowsort label-3031
SELECT - 94 + + - 82 + + COUNT ( * ) + + MIN ( ALL col1 ) / + - 81 + 64 FROM tab2 AS cor0
----
-109

query I rowsort
SELECT + - 4 * + - 58 + - col1 AS col1 FROM tab1 AS cor0
----
185
218
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3033
SELECT + col1 + + col2 - CAST( NULL AS SIGNED ) - + + col2 * col1 * - 28 * 90 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-3033
SELECT + col1 + + col2 - CAST ( NULL AS INTEGER ) - + + col2 * col1 * - 28 * 90 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3034
SELECT + 77 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3034
SELECT + 77 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 33 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3036
SELECT + 61 DIV col1 FROM tab0
----
0
2
61

skipif mysql # not compatible
query I rowsort label-3036
SELECT + 61 / col1 FROM tab0
----
0
2
61

query II rowsort
SELECT col2 AS col0, col0 FROM tab2 cor0
----
23
46
40
64
58
75

query I rowsort
SELECT col0 * 9 AS col0 FROM tab2 AS cor0
----
414
576
675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3039
SELECT CAST( + 55 AS SIGNED ) FROM tab0 AS cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-3039
SELECT CAST ( + 55 AS INTEGER ) FROM tab0 AS cor0
----
55
55
55

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3040
SELECT DISTINCT - col1, - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-3040
SELECT DISTINCT - col1, - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT ALL + + SUM( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL + + SUM ( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3042
SELECT DISTINCT CAST( 77 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
77

skipif mysql # not compatible
query I rowsort label-3042
SELECT DISTINCT CAST ( 77 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 83 * ( col2 ) col0 FROM tab1 AS cor0
----
-4897
-5644
-7968

onlyif mysql # DIV for integer division: 
query I rowsort label-3044
SELECT + ( + 97 ) DIV - col0 + + 76 * + + col2 FROM tab1 AS cor0
----
4483
5167
7295

skipif mysql # not compatible
query I rowsort label-3044
SELECT + ( + 97 ) / - col0 + + 76 * + + col2 FROM tab1 AS cor0
----
4483
5167
7295

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3045
SELECT ALL 81 DIV COUNT( * ) DIV + + 35 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3045
SELECT ALL 81 / COUNT ( * ) / + + 35 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col1 * col2 * - col0 AS col0 FROM tab2 AS cor0
----
-197120
-291450
-53958

query I rowsort
SELECT DISTINCT - + col1 * - 27 * + col2 + - 88 * col2 + + + 4 FROM tab1 AS cor0
----
2777
27844
80312

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3048
SELECT - CAST( 82 AS SIGNED ) AS col0, - col0 * col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-3048
SELECT - CAST ( 82 AS INTEGER ) AS col0, - col0 * col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT 92 + ( 87 ) * + - COUNT( * ) FROM tab1 AS cor0
----
-169

skipif mysql # not compatible
query I rowsort label-3049
SELECT 92 + ( 87 ) * + - COUNT ( * ) FROM tab1 AS cor0
----
-169

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT DISTINCT 46 + + + COUNT( * ) FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-3050
SELECT DISTINCT 46 + + + COUNT ( * ) FROM tab2
----
49

query III rowsort
SELECT * FROM tab0 WHERE - + ( + - col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 * - col0 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3053
SELECT ALL col2 * - - CAST( NULL AS SIGNED ) * + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL col2 * - - CAST ( NULL AS INTEGER ) * + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT ALL - - COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL - - COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * - - 38 * col1 IS NULL
----

query I rowsort
SELECT DISTINCT + + col1 * 8 AS col2 FROM tab2 AS cor0
----
408
536
616

query I rowsort
SELECT ALL - + 12 AS col0 FROM tab2 AS cor0
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT COUNT( ALL + col1 ) - - 32 AS col2 FROM tab2 cor0
----
35

skipif mysql # not compatible
query I rowsort label-3058
SELECT COUNT ( ALL + col1 ) - - 32 AS col2 FROM tab2 cor0
----
35

query I rowsort
SELECT ALL + 23 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT + 66 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT - - col2 + col1 + col0 AS col0 FROM tab1 AS cor0
----
149
161
206

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3062
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <> ( + col0 ) + 58 * - col1 * + CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3062
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <> ( + col0 ) + 58 * - col1 * + CAST ( + col1 AS INTEGER )
----

query I rowsort
SELECT ALL 77 - + - 41 - - - 94 * col1 + - ( + + 49 ) FROM tab2 AS cor0
----
-4725
-6229
-7169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3064
SELECT DISTINCT 43 + + CAST( NULL AS SIGNED ), MIN( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3064
SELECT DISTINCT 43 + + CAST ( NULL AS INTEGER ), MIN ( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL
NULL

query II rowsort
SELECT 36 AS col1, + col2 FROM tab1 AS cor0
----
36
59
36
68
36
96

query II rowsort
SELECT 86, col1 AS col0 FROM tab0 cor0
----
86
1
86
21
86
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 50 col2, + 88 AS col0 FROM tab0 AS cor0
----
-50
88

query I rowsort
SELECT ALL + - 52 AS col2 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT 26 * - - MAX( + col0 ) AS col0 FROM tab2
----
1950

skipif mysql # not compatible
query I rowsort label-3069
SELECT 26 * - - MAX ( + col0 ) AS col0 FROM tab2
----
1950

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT 75 * + COUNT( DISTINCT + + col1 ) AS col1 FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-3070
SELECT 75 * + COUNT ( DISTINCT + + col1 ) AS col1 FROM tab0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT DISTINCT - 5 + - COUNT( * ) AS col1 FROM tab1 WHERE + col2 * + col2 = NULL
----
-5

skipif mysql # not compatible
query I rowsort label-3071
SELECT DISTINCT - 5 + - COUNT ( * ) AS col1 FROM tab1 WHERE + col2 * + col2 = NULL
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT ALL - COUNT( * ) * - - 86 FROM tab1
----
-258

skipif mysql # not compatible
query I rowsort label-3072
SELECT ALL - COUNT ( * ) * - - 86 FROM tab1
----
-258

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 col0 FROM tab1 cor0
----
73

query I rowsort
SELECT + 88 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT 2 * 86 FROM tab2
----
172
172
172

query I rowsort
SELECT DISTINCT col1 * - col2 * + 87 AS col2 FROM tab0
----
-18270
-331209
-8613

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3077
SELECT ( - CAST( NULL AS SIGNED ) ) * - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3077
SELECT ( - CAST ( NULL AS INTEGER ) ) * - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3078
SELECT ALL COUNT( * ) DIV + 19 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL COUNT ( * ) / + 19 FROM tab2
----
0

query I rowsort
SELECT 51 * - 44 FROM tab0
----
-2244
-2244
-2244

query I rowsort
SELECT - + 86 * - 40 FROM tab0 AS cor0
----
3440
3440
3440

query I rowsort
SELECT DISTINCT - col0 * - 52 FROM tab2 AS cor0
----
2392
3328
3900

query I rowsort
SELECT ALL - AVG ( ALL + + 13 ) FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
NULL

query I rowsort
SELECT + - col0 * 54 AS col2 FROM tab0 AS cor0
----
-4698
-5238
-810

query II rowsort
SELECT DISTINCT - - col2 AS col0, - col2 AS col1 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

query I rowsort
SELECT ALL + col1 + - 42 FROM tab1 AS cor0
----
-28
-37
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3086
SELECT DISTINCT CAST( - + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT CAST ( - + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT - col1 + col1 * + col1, col0 AS col2 FROM tab1 AS cor0
----
182
51
20
85
2162
91

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 WHERE + - 26 + + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT 43 + - 95 + - col0 * - col2 AS col0 FROM tab1
----
4844
4963
6136

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT - MIN( ALL + col2 ) col0 FROM tab0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3090
SELECT - MIN ( ALL + col2 ) col0 FROM tab0
----
-10

query I rowsort
SELECT col2 + + col1 * - + col1 AS col1 FROM tab2
----
-2578
-4431
-5889

query I rowsort
SELECT ALL - 34 + + + col0 FROM tab0
----
-19
53
63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3093
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - + 57 + col2 * + col1 * - + col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3093
SELECT DISTINCT CAST ( NULL AS REAL ) * - + 57 + col2 * + col1 * - + col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 58 - + col1 AS col2 FROM tab0
----
-23
37
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 col1 FROM tab2 cor0
----
-97
-97
-97

query I rowsort
SELECT ALL - + col0 + - col0 + col0 AS col0 FROM tab0 cor0
----
-15
-87
-97

query I rowsort
SELECT + 5 + - - col1 AS col2 FROM tab2 AS cor0
----
56
72
82

query II rowsort
SELECT DISTINCT col1, col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT ALL + + MIN( col1 ) col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3099
SELECT ALL + + MIN ( col1 ) col1 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3100
SELECT - COUNT( * ) * - + 46 AS col0, + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0
----
138
NULL

skipif mysql # not compatible
query II rowsort label-3100
SELECT - COUNT ( * ) * - + 46 AS col0, + CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0
----
138
NULL

query II rowsort
SELECT + col2 * 65, - col0 AS col2 FROM tab0
----
3055
-15
6435
-97
650
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT DISTINCT + COUNT( * ) + - 87 AS col0 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-3102
SELECT DISTINCT + COUNT ( * ) + - 87 AS col0 FROM tab1
----
-84

query I rowsort
SELECT - 30 - col2 AS col1 FROM tab2
----
-53
-70
-88

query I rowsort
SELECT - - 52 FROM tab2 WHERE NULL = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 / - col0 ) IS NULL
----

query I rowsort
SELECT ALL - - col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3107
SELECT col2 + ( - + col2 ) + - col0 + CAST( 58 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-27
-33
7

skipif mysql # not compatible
query I rowsort label-3107
SELECT col2 + ( - + col2 ) + - col0 + CAST ( 58 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-27
-33
7

query I rowsort
SELECT + 55 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT - COUNT( * ) * MIN( - - col1 ) + MAX( - 91 ) AS col0 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-3109
SELECT - COUNT ( * ) * MIN ( - - col1 ) + MAX ( - 91 ) AS col0 FROM tab0 AS cor0
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-3110
SELECT col2 DIV + ( - col0 ) AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3110
SELECT col2 / + ( - col0 ) AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT ( - + SUM( - ( - col1 ) ) ) * - - COUNT( * ) * COUNT( ALL + + 4 ) FROM tab0 AS cor0
----
-927

skipif mysql # not compatible
query I rowsort label-3111
SELECT ( - + SUM ( - ( - col1 ) ) ) * - - COUNT ( * ) * COUNT ( ALL + + 4 ) FROM tab0 AS cor0
----
-927

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT DISTINCT + MAX( - 27 ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-3112
SELECT DISTINCT + MAX ( - 27 ) FROM tab2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT DISTINCT SUM( DISTINCT + 40 ) AS col1 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-3113
SELECT DISTINCT SUM ( DISTINCT + 40 ) AS col1 FROM tab1
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3114
SELECT DISTINCT * FROM tab1 WHERE NOT + - CAST( NULL AS SIGNED ) + - CAST( 69 AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3114
SELECT DISTINCT * FROM tab1 WHERE NOT + - CAST ( NULL AS INTEGER ) + - CAST ( 69 AS INTEGER ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT DISTINCT - COUNT( - 50 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3115
SELECT DISTINCT - COUNT ( - 50 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3116
SELECT ALL COUNT( + ( + col1 ) ) * + ( + 79 ) DIV - 77 AS col0 FROM tab2 AS cor0 WHERE + col0 * - 69 - - + ( - + col1 ) NOT IN ( - 2 )
----
-3

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL COUNT ( + ( + col1 ) ) * + ( + 79 ) / - 77 AS col0 FROM tab2 AS cor0 WHERE + col0 * - 69 - - + ( - + col1 ) NOT IN ( - 2 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT + MAX( + ( col0 ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3117
SELECT + MAX ( + ( col0 ) ) FROM tab2
----
75

query I rowsort
SELECT 13 + + - ( + 44 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE - 57 IS NULL
----

query I rowsort
SELECT - 38 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

onlyif mysql # aggregate syntax: 
query II rowsort label-3120
SELECT COUNT( * ) * - COUNT( * ) * - MAX( + 43 ) + - 16 col1, + 91 FROM tab0 AS cor0
----
371
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3120
SELECT COUNT ( * ) * - COUNT ( * ) * - MAX ( + 43 ) + - 16 col1, + 91 FROM tab0 AS cor0
----
371
91

query I rowsort
SELECT - - 10 * - - col0 + 43 * 60 + + col1 AS col2 FROM tab2 AS cor0
----
3091
3297
3397

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 86 * col0 * col2 * 76 * - - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 * col1 col2 FROM tab1 AS cor0
----
420
4230
700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3124
SELECT ALL - SUM( - + ( ( + + CAST( NULL AS SIGNED ) ) ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL - SUM ( - + ( ( + + CAST ( NULL AS INTEGER ) ) ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3125
SELECT 7 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-3125
SELECT 7 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) < NULL
----

query I rowsort
SELECT DISTINCT col0 + 29 FROM tab2
----
104
75
93

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN - 12 AND NULL
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE - 26 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT DISTINCT COUNT( * ) + 97 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-3129
SELECT DISTINCT COUNT ( * ) + 97 FROM tab0
----
100

query I rowsort
SELECT ALL - col1 + + 7 - + ( col1 ) * - col0 * - 89 + - 41 AS col1 FROM tab0
----
-108250
-162658
-8668

query I rowsort
SELECT DISTINCT 26 + ( col0 ) FROM tab2
----
101
72
90

query I rowsort
SELECT - + 50 - + 92 AS col1 FROM tab1 AS cor0
----
-142
-142
-142

onlyif mysql # DIV for integer division: 
query I rowsort label-3133
SELECT - - col2 - - col2 + - + col1 * - col1 * col0 DIV - + col1 + + 40 AS col1 FROM tab2 AS cor0
----
-2260
-4808
-4869

skipif mysql # not compatible
query I rowsort label-3133
SELECT - - col2 - - col2 + - + col1 * - col1 * col0 / - + col1 + + 40 AS col1 FROM tab2 AS cor0
----
-2260
-4808
-4869

query I rowsort
SELECT ALL + + col0 FROM tab2 cor0 WHERE NOT 63 < + 95 + + 89 + col1
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE + ( - 16 ) >= 6
----

query II rowsort
SELECT - col1 AS col2, 35 * - - 19 AS col1 FROM tab0 AS cor0
----
-1
665
-21
665
-81
665

query II rowsort
SELECT - - 59, 37 AS col1 FROM tab2 AS cor0
----
59
37
59
37
59
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT + COUNT( + - col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL > - col2
----
0

skipif mysql # not compatible
query I rowsort label-3138
SELECT + COUNT ( + - col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL > - col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3139
SELECT ALL + ( - + CAST( - COUNT( * ) AS SIGNED ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL + ( - + CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < + ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT DISTINCT + MAX( ALL + + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT + MAX ( ALL + + col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT + + col0 FROM tab1 WHERE NOT 43 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT + COUNT( * ) * + 56 FROM tab1
----
168

skipif mysql # not compatible
query I rowsort label-3143
SELECT + COUNT ( * ) * + 56 FROM tab1
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT - 98 * - - COUNT( - col0 ) AS col1 FROM tab2
----
-294

skipif mysql # not compatible
query I rowsort label-3144
SELECT - 98 * - - COUNT ( - col0 ) AS col1 FROM tab2
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT DISTINCT 99 * + MIN( ALL - 59 ) AS col2 FROM tab2
----
-5841

skipif mysql # not compatible
query I rowsort label-3145
SELECT DISTINCT 99 * + MIN ( ALL - 59 ) AS col2 FROM tab2
----
-5841

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3146
SELECT DISTINCT - SUM( DISTINCT + col0 ) AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
-227
NULL

skipif mysql # not compatible
query II rowsort label-3146
SELECT DISTINCT - SUM ( DISTINCT + col0 ) AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
-227
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3147
SELECT col2 DIV + 66 * - CAST( - col2 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3147
SELECT col2 / + 66 * - CAST ( - col2 AS INTEGER ) FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 WHERE 12 + 51 + - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 col2 FROM tab2 AS cor0 WHERE - col1 * + col1 * + col0 > NULL
----

query II rowsort
SELECT col1, - col1 + + - col1 FROM tab1
----
14
-28
47
-94
5
-10

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3152
SELECT + COUNT( * ) col1, COUNT( * ) * - - 66 AS col1 FROM tab2 AS cor0
----
3
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3152
SELECT + COUNT ( * ) col1, COUNT ( * ) * - - 66 AS col1 FROM tab2 AS cor0
----
3
198

query I rowsort
SELECT + col0 * - col0 + + col2 AS col2 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT ALL 15 AS col1 FROM tab0 AS cor0 WHERE NOT + 21 / + 5 IS NULL
----
15
15
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3155
SELECT DISTINCT - + ( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT - + ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + - 38, col0 FROM tab0 AS cor0
----
-38
15
-38
87
-38
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT COUNT( * ) FROM tab2 cor0 WHERE NULL BETWEEN NULL AND 21 * - 59 / 48
----
0

skipif mysql # not compatible
query I rowsort label-3157
SELECT COUNT ( * ) FROM tab2 cor0 WHERE NULL BETWEEN NULL AND 21 * - 59 / 48
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3158
SELECT col1 - + CAST( - col0 AS SIGNED ) + + col2 FROM tab0 cor0
----
118
143
197

skipif mysql # not compatible
query I rowsort label-3158
SELECT col1 - + CAST ( - col0 AS INTEGER ) + + col2 FROM tab0 cor0
----
118
143
197

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col0 AND + + 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT DISTINCT + MAX( + + 22 ) AS col0 FROM tab1 cor0
----
22

skipif mysql # not compatible
query I rowsort label-3160
SELECT DISTINCT + MAX ( + + 22 ) AS col0 FROM tab1 cor0
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-3161
SELECT ALL + 30 DIV col2 * - col2 + + 43 + + col2 FROM tab0
----
142
23
90

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL + 30 / col2 * - col2 + + 43 + + col2 FROM tab0
----
142
23
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3162
SELECT - CAST( NULL AS DECIMAL ) + + - 38 * + - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3162
SELECT - CAST ( NULL AS REAL ) + + - 38 * + - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + col1 * 50 AS col1 FROM tab2
----
2573
3408
3890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3164
SELECT ALL ( + - CAST( + col0 AS SIGNED ) ) + + - col1 * + 28 AS col2 FROM tab2
----
-1474
-1951
-2220

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL ( + - CAST ( + col0 AS INTEGER ) ) + + - col1 * + 28 AS col2 FROM tab2
----
-1474
-1951
-2220

onlyif mysql # DIV for integer division: 
query I rowsort label-3165
SELECT 43 DIV + + ( col2 ) + + + col2 FROM tab2 WHERE - - col2 NOT IN ( + col1 )
----
24
41
58

skipif mysql # not compatible
query I rowsort label-3165
SELECT 43 / + + ( col2 ) + + + col2 FROM tab2 WHERE - - col2 NOT IN ( + col1 )
----
24
41
58

onlyif mysql # DIV for integer division: 
query II rowsort label-3166
SELECT ( col0 ) * col2 DIV col1 + col1 col0, - col1 AS col1 FROM tab0
----
62
-21
89
-81
9604
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3166
SELECT ( col0 ) * col2 / col1 + col1 col0, - col1 AS col1 FROM tab0
----
62
-21
89
-81
9604
-1

query I rowsort
SELECT - 2 + + - ( - 93 ) AS col1 FROM tab0
----
91
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, - 55 FROM tab1 WHERE - + col2 IS NOT NULL
----
51
-55
85
-55
91
-55

query I rowsort
SELECT col0 * + col0 + + 15 AS col0 FROM tab0
----
240
7584
9424

query I rowsort
SELECT DISTINCT 17 - - - 74 AS col2 FROM tab0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3171
SELECT col0 * 99 / - col2 * - 26 + - CAST( NULL AS SIGNED ) AS col2, ( + col2 ) AS col2, + col1 col1 FROM tab1
----
9 values hashing to 1d3af6bacffb2093fc7198f222f5d755

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3171
SELECT col0 * 99 / - col2 * - 26 + - CAST ( NULL AS INTEGER ) AS col2, ( + col2 ) AS col2, + col1 col1 FROM tab1
----
9 values hashing to 1d3af6bacffb2093fc7198f222f5d755

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + + ( 3 ) < + - col2
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 63 * 74 + + - col1 <> NULL
----

query I rowsort
SELECT ALL + 69 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT DISTINCT + COUNT( * ) + 5 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
14

skipif mysql # not compatible
query I rowsort label-3176
SELECT DISTINCT + COUNT ( * ) + 5 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
14

query I rowsort
SELECT ALL 46 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3178
SELECT - SUM( ALL - + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3178
SELECT - SUM ( ALL - + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - ( - 11 ) FROM tab1 AS cor0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT ALL + + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL + + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3181
SELECT DISTINCT - 75 DIV + col2 FROM tab0 AS cor0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-3181
SELECT DISTINCT - 75 / + col2 FROM tab0 AS cor0
----
-1
-7
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT ALL 95 * + MAX( + col1 ) AS col1 FROM tab0 AS cor0
----
7695

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL 95 * + MAX ( + col1 ) AS col1 FROM tab0 AS cor0
----
7695

onlyif mysql # DIV for integer division: 
query I rowsort label-3183
SELECT DISTINCT + - col0 DIV - - col2 AS col1 FROM tab0 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-3183
SELECT DISTINCT + - col0 / - - col2 AS col1 FROM tab0 AS cor0
----
-8
0

query I rowsort
SELECT + AVG ( DISTINCT - col0 ) FROM tab0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT DISTINCT 68 + + + MIN( ALL + col0 ) FROM tab2 WHERE NOT + 70 < 18
----
114

skipif mysql # not compatible
query I rowsort label-3185
SELECT DISTINCT 68 + + + MIN ( ALL + col0 ) FROM tab2 WHERE NOT + 70 < 18
----
114

query I rowsort
SELECT ALL + 70 AS col2 FROM tab1 WHERE NOT + - col0 < 53 / - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE NOT + 53 * col0 - + ( 1 ) + - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE NOT + 53 * col0 - + ( 1 ) + - col0 IS NULL
----
3

query I rowsort
SELECT - col0 * - + 79 FROM tab0
----
1185
6873
7663

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3189
SELECT - col0 AS col0, + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-3189
SELECT - col0 AS col0, + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT - ( + - MAX( - 32 ) ) * - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3190
SELECT - ( + - MAX ( - 32 ) ) * - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 62 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN col0 AND - col1 + + col2
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT + + 94 * + COUNT( * ) + - 25 FROM tab0 AS cor0
----
257

skipif mysql # not compatible
query I rowsort label-3193
SELECT + + 94 * + COUNT ( * ) + - 25 FROM tab0 AS cor0
----
257

query I rowsort
SELECT ALL - col2 * + col2 + - + 33 FROM tab1 AS cor0
----
-3514
-4657
-9249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3195
SELECT - - MAX( + col2 ) + CAST( - + 89 AS SIGNED ) FROM tab1 cor0
----
7

skipif mysql # not compatible
query I rowsort label-3195
SELECT - - MAX ( + col2 ) + CAST ( - + 89 AS INTEGER ) FROM tab1 cor0
----
7

query I rowsort
SELECT 89 * + - col0 * - 11 AS col1 FROM tab2 AS cor0 WHERE col2 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, 52 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT DISTINCT + col1 + + 45 AS col1 FROM tab2
----
112
122
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3199
SELECT ALL + col1 DIV - col2 + col1 + - col0 + - col0 col2 FROM tab1
----
-135
-165
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3199
SELECT ALL + col1 / - col2 + col1 + - col0 + - col0 col2 FROM tab1
----
-135
-165
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 - + + col0 col2 FROM tab1
----
-42
-76
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT - COUNT( * ) - 9 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-3201
SELECT - COUNT ( * ) - 9 FROM tab1
----
-12

query I rowsort
SELECT ALL ( + col1 ) * + 3 AS col1 FROM tab2 AS cor0
----
153
201
231

query I rowsort
SELECT DISTINCT + + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT + SUM( + 82 ) FROM tab1 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-3204
SELECT + SUM ( + 82 ) FROM tab1 AS cor0
----
246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3205
SELECT DISTINCT - - CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3205
SELECT DISTINCT - - CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT + COUNT( * ) + + 24 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-3206
SELECT + COUNT ( * ) + + 24 FROM tab2
----
27

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 - ( + 10 + + 91 ) * + 44 < ( + 27 )
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT NULL BETWEEN - col2 AND 43
----

query I rowsort
SELECT col0 + + 65 * col2 FROM tab1
----
3920
4511
6291

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT + MAX( DISTINCT 21 ) AS col2 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-3210
SELECT + MAX ( DISTINCT 21 ) AS col2 FROM tab2
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-3211
SELECT col1 + col0 DIV + ( col1 ) col1 FROM tab2
----
51
68
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3211
SELECT col1 + col0 / + ( col1 ) col1 FROM tab2
----
51
68
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT DISTINCT COUNT( * ) * - MIN( + col1 * - col1 ) + 62 FROM tab0
----
19745

skipif mysql # not compatible
query I rowsort label-3212
SELECT DISTINCT COUNT ( * ) * - MIN ( + col1 * - col1 ) + 62 FROM tab0
----
19745

query I rowsort
SELECT ALL + col1 * + col2 + 74 FROM tab1
----
1418
3270
369

query I rowsort
SELECT DISTINCT - 66 FROM tab2 WHERE ( + col0 + col1 ) BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3215
SELECT col1 + CAST( + 47 AS SIGNED ) * col2 AS col2 FROM tab2
----
1132
1957
2793

skipif mysql # not compatible
query I rowsort label-3215
SELECT col1 + CAST ( + 47 AS INTEGER ) * col2 AS col2 FROM tab2
----
1132
1957
2793

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE ( col1 + + col2 * - col1 ) NOT IN ( col0 * + 43 )
----
59
68
96

query I rowsort
SELECT ALL col1 * - 39 AS col1 FROM tab0
----
-3159
-39
-819

query I rowsort
SELECT ALL + col2 * ( - col2 * + col2 ) AS col0 FROM tab1 WHERE NOT + ( 85 ) < - 85 + col1 * + col1
----
-205379

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT ALL - MAX( DISTINCT - col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL - MAX ( DISTINCT - col0 ) FROM tab1
----
51

query I rowsort
SELECT ALL 85 * - 60 AS col0 FROM tab2
----
-5100
-5100
-5100

query I rowsort
SELECT - ( 31 ) + + col2 FROM tab2
----
-8
27
9

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE + col0 IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT + col2 - + 72 * col1 FROM tab0 WHERE NOT ( - col0 / col0 ) IN ( col2 )
----
-1502
-5785
27

query I rowsort
SELECT - 20 FROM tab0 AS cor0 WHERE 1 + - col0 IN ( ( + col1 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col1 ) AND NULL
----

query I rowsort
SELECT DISTINCT + col1 * + col2 + col2 FROM tab1
----
1440
3264
354

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 = + col1 * + col0 - + 42
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3228
SELECT ALL 91 + col1 DIV + 83 FROM tab0
----
91
91
91

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL 91 + col1 / + 83 FROM tab0
----
91
91
91

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE 79 < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 64 * col1 > col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3231
SELECT - CAST( NULL AS DECIMAL ) / + COUNT( * ) col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3231
SELECT - CAST ( NULL AS REAL ) / + COUNT ( * ) col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3232
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3232
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 46 AS col1 FROM tab2 cor0
----
46
46
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 16 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - 51 / + col1 )
----

query I rowsort
SELECT 42 * - col2 + + 36 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-1938
-384
-4122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3237
SELECT - COUNT( * ) DIV 66 + + COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3237
SELECT - COUNT ( * ) / 66 + + COUNT ( * ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3238
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + 25 IN ( - 65 * col2 )
----

skipif mysql # not compatible
query III rowsort label-3238
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + 25 IN ( - 65 * col2 )
----

query I rowsort
SELECT DISTINCT + 21 + ( col2 ) FROM tab2
----
44
61
79

query I rowsort
SELECT 71 + - ( col0 ) FROM tab2
----
-4
25
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3241
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - 92 - - 14 * col1 * col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - 92 - - 14 * col1 * col0 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 28 ) > ( NULL )
----

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IN ( + 1 )
----
59
68
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * - 67 IN ( - 8 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL BETWEEN 93 + - col1 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT DISTINCT + 93 * - - ( - + COUNT( * ) ) FROM tab1
----
-279

skipif mysql # not compatible
query I rowsort label-3246
SELECT DISTINCT + 93 * - - ( - + COUNT ( * ) ) FROM tab1
----
-279

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 ) BETWEEN - col0 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT ALL + MAX( DISTINCT - 71 ) FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL + MAX ( DISTINCT - 71 ) FROM tab1 AS cor0
----
-71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 * - col0 * col1 ) IN ( + col2 * + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * col1 + + col0 FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( + col1 * + 56 )
----

query I rowsort
SELECT DISTINCT col2 * 47 AS col2 FROM tab2 AS cor0
----
1081
1880
2726

query I rowsort
SELECT + col1 * - col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-2346
-4928
-5025

query I rowsort
SELECT - col1 * 39 * + 40 AS col2 FROM tab1 AS cor0
----
-21840
-73320
-7800

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 54 IS NULL
----

query I rowsort
SELECT + col0 + + ( - col0 ) + col2 AS col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT - + 46 * 45 + - 60 + + COUNT( * ) FROM tab2 AS cor0
----
-2127

skipif mysql # not compatible
query I rowsort label-3256
SELECT - + 46 * 45 + - 60 + + COUNT ( * ) FROM tab2 AS cor0
----
-2127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3257
SELECT ALL - COUNT( * ) + - - MIN( - col1 ) + - + 99 DIV ( 22 ) AS col0 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL - COUNT ( * ) + - - MIN ( - col1 ) + - + 99 / ( 22 ) AS col0 FROM tab1
----
-54

query I rowsort
SELECT ALL - col2 + col1 - + - col1 FROM tab0
----
-97
115
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NULL <> - + col2 / - 0
----
0

skipif mysql # not compatible
query I rowsort label-3259
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NULL <> - + col2 / - 0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= ( col0 )
----

query I rowsort
SELECT DISTINCT - ( - ( - col0 ) ) * - 44 + col1 AS col1 FROM tab2
----
2075
2893
3367

query III rowsort
SELECT * FROM tab0 WHERE - + col0 * - + 57 + - 20 = ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT DISTINCT + COUNT( * ) + + 16 AS col2 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-3263
SELECT DISTINCT + COUNT ( * ) + + 16 AS col2 FROM tab0 AS cor0
----
19

query I rowsort
SELECT DISTINCT - AVG ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 / - col1 <> NULL
----
NULL

query I rowsort
SELECT - 71 + - - 20 + - col0 * + 64 * + col2 FROM tab2 AS cor0
----
-163891
-278451
-67763

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT SUM( ALL 32 ) AS col1 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3266
SELECT SUM ( ALL 32 ) AS col1 FROM tab0 AS cor0
----
96

query I rowsort
SELECT + ( + 2 ) FROM tab2 AS cor0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3268
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN ( NULL ) AND CAST( - col1 AS SIGNED ) * - 6
----

skipif mysql # not compatible
query III rowsort label-3268
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN ( NULL ) AND CAST ( - col1 AS INTEGER ) * - 6
----

query I rowsort
SELECT + col0 * + + col1 * + - 78 - + col2 + 13 - + col1 * + col1 AS col1 FROM tab2 AS cor0
----
-185599
-390340
-396484

query I rowsort
SELECT ALL 53 + 82 FROM tab0
----
135
135
135

query II rowsort
SELECT ALL + 35 AS col2, col1 * 46 FROM tab2
----
35
2346
35
3082
35
3542

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 / 10 < - + col1 / + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col0, + col0 col2 FROM tab0
----
15
15
87
87
97
97

query II rowsort
SELECT + 91 AS col0, + col0 AS col1 FROM tab1 WHERE NOT - col2 IS NULL
----
91
51
91
85
91
91

query III rowsort
SELECT * FROM tab2 WHERE NOT 69 + - col0 IN ( - 72 * col1 - 68 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT - COUNT( DISTINCT - ( col2 ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3276
SELECT - COUNT ( DISTINCT - ( col2 ) ) AS col1 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) = + - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 42 + - 66 * + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( - - col2 ) AS col2 FROM tab2 cor0
----
23
40
58

query II rowsort
SELECT ALL col0 AS col2, + 37 FROM tab2 AS cor0
----
46
37
64
37
75
37

query I rowsort
SELECT ALL - - col1 FROM tab1 WHERE ( - col2 ) >= col2
----

query I rowsort
SELECT DISTINCT + 36 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-3283
SELECT ( - col0 ) DIV + - col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3283
SELECT ( - col0 ) / + - col0 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL + 89 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
89
89
89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3285
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col2 + + ( + col2 ) - - ( + + CAST( NULL AS SIGNED ) ) ) >= + 39 + col2
----

skipif mysql # not compatible
query III rowsort label-3285
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col2 + + ( + col2 ) - - ( + + CAST ( NULL AS INTEGER ) ) ) >= + 39 + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col2 * - col2 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT DISTINCT 11 + - + COUNT( * ) AS col1 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT 11 + - + COUNT ( * ) AS col1 FROM tab2
----
8

query I rowsort
SELECT + col2 * - - 70 FROM tab2
----
1610
2800
4060

query I rowsort
SELECT DISTINCT - 53 + - 65 + + - col1 * 62 FROM tab1
----
-3032
-428
-986

query I rowsort
SELECT DISTINCT col0 + - + col2 + + 46 * + col0 AS col0 FROM tab0
----
4079
4460
658

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3291
SELECT COUNT( * ) + + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3291
SELECT COUNT ( * ) + + CAST ( NULL AS REAL ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col1 NOT BETWEEN NULL AND - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT DISTINCT - MAX( - col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT - MAX ( - col2 ) AS col1 FROM tab0 AS cor0
----
10

query I rowsort
SELECT + 61 FROM tab2 AS cor0 WHERE ( - col0 ) >= col0
----

query I rowsort
SELECT DISTINCT + 99 * col1 AS col2 FROM tab2 AS cor0
----
5049
6633
7623

onlyif mysql # aggregate syntax: 
query II rowsort label-3296
SELECT DISTINCT + 70 + + + MAX( DISTINCT + col2 ), 66 col0 FROM tab1 AS cor0
----
166
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3296
SELECT DISTINCT + 70 + + + MAX ( DISTINCT + col2 ), 66 col0 FROM tab1 AS cor0
----
166
66

query I rowsort
SELECT ALL 54 + + 34 AS col2 FROM tab0 cor0
----
88
88
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col2, col2 col0 FROM tab1 cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT MAX( DISTINCT 49 ) FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-3299
SELECT MAX ( DISTINCT 49 ) FROM tab2
----
49

query I rowsort
SELECT + 41 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT - 99 - col2 AS col0 FROM tab0
----
-109
-146
-198

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( + 95 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 48 - 16 * + col1 + 20 * - - col2 FROM tab2
----
-308
-384
136

query I rowsort
SELECT ALL - ( 71 ) FROM tab1 AS cor0
----
-71
-71
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 * 55 + + col2 + - 40 * 67 col1 FROM tab1 AS cor0
----
-439
-467
-476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3306
SELECT DISTINCT 24 * - COUNT( CAST( + + 36 AS SIGNED ) ) AS col0 FROM tab0 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-3306
SELECT DISTINCT 24 * - COUNT ( CAST ( + + 36 AS INTEGER ) ) AS col0 FROM tab0 cor0
----
-72

query I rowsort
SELECT - col0 / + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> col1 - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3308
SELECT + 96 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3308
SELECT + 96 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 * - col1 * - col2 FROM tab2 AS cor0
----
-197120
-291450
-53958

query I rowsort
SELECT - 1 * - col1 AS col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL - + ( + + 17 ) * + col0 FROM tab2 AS cor0
----
-1088
-1275
-782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3312
SELECT - CAST( NULL AS SIGNED ) / - - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3312
SELECT - CAST ( NULL AS INTEGER ) / - - col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 29 * - + col1 FROM tab0
----
-2349
-29
-609

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3314
SELECT ALL - COUNT( ALL - - CAST( NULL AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL - COUNT ( ALL - - CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT DISTINCT MAX( DISTINCT 28 ) FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-3315
SELECT DISTINCT MAX ( DISTINCT 28 ) FROM tab2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3316
SELECT + ( - + CAST( - MAX( DISTINCT ( + col1 ) ) AS SIGNED ) ) + + 43 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3316
SELECT + ( - + CAST ( - MAX ( DISTINCT ( + col1 ) ) AS INTEGER ) ) + + 43 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3317
SELECT DISTINCT 89 * - + col2 * + + CAST( - + 1 AS SIGNED ) AS col1 FROM tab2
----
2047
3560
5162

skipif mysql # not compatible
query I rowsort label-3317
SELECT DISTINCT 89 * - + col2 * + + CAST ( - + 1 AS INTEGER ) AS col1 FROM tab2
----
2047
3560
5162

query II rowsort
SELECT DISTINCT + col2 AS col0, 84 FROM tab2 AS cor0 WHERE NULL >= col0
----

query II rowsort
SELECT + col0 AS col1, col2 + - col1 + + col0 FROM tab0 AS cor0
----
15
-19
87
76
97
195

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT MAX( ALL - ( - ( col0 ) ) ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-3320
SELECT MAX ( ALL - ( - ( col0 ) ) ) FROM tab0 cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT DISTINCT - 46 + + 66 + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
29

skipif mysql # not compatible
query I rowsort label-3321
SELECT DISTINCT - 46 + + 66 + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
29

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 44 <= - 45 * - - col0
----

query I rowsort
SELECT - col0 + - 22 FROM tab1 AS cor0
----
-107
-113
-73

query I rowsort
SELECT - col2 + 59 AS col2 FROM tab1 cor0
----
-37
-9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT ALL - + COUNT( DISTINCT + - col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL - + COUNT ( DISTINCT + - col1 ) FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3326
SELECT - 24 DIV + col1 FROM tab1 WHERE NULL IS NULL
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3326
SELECT - 24 / + col1 FROM tab1 WHERE NULL IS NULL
----
-1
-4
0

query I rowsort
SELECT - 31 * - col0 AS col0 FROM tab0 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 43 / + + 17 IS NULL
----

query I rowsort
SELECT - - col0 * - 6 * + 76 FROM tab0 AS cor0
----
-39672
-44232
-6840

query II rowsort
SELECT + 37 - 13, col0 FROM tab2 cor0
----
24
46
24
64
24
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT DISTINCT - 93 + MIN( + col0 ) * + + COUNT( * ) * + - ( + - 77 ) FROM tab1 AS cor0
----
11688

skipif mysql # not compatible
query I rowsort label-3331
SELECT DISTINCT - 93 + MIN ( + col0 ) * + + COUNT ( * ) * + - ( + - 77 ) FROM tab1 AS cor0
----
11688

query I rowsort
SELECT DISTINCT 9 + + col1 * col1 FROM tab1
----
205
2218
34

query III rowsort
SELECT ALL * FROM tab1 WHERE + 49 IN ( col0 ) AND NOT col1 > ( + - 57 + col1 * col1 - + + 35 )
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 72 > NULL
----

query I rowsort
SELECT ALL + col0 * - - col2 + + 92 + + + col2 + - col2 FROM tab2
----
1150
2652
4442

query II rowsort
SELECT + col1 AS col1, 90 AS col1 FROM tab2
----
51
90
67
90
77
90

query I rowsort
SELECT DISTINCT + 61 * - 41 AS col2 FROM tab0 AS cor0
----
-2501

query II rowsort
SELECT - col0 AS col2, - col1 AS col2 FROM tab0 AS cor0
----
-15
-81
-87
-21
-97
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( ( + col2 ) ) col2, col2 AS col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT - 48 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT 88 * + col1 AS col2 FROM tab1 AS cor0
----
1232
4136
440

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3342
SELECT ALL - ( + + col0 ) * col0 DIV + col0 - - CAST( - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-102
-170
-182

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL - ( + + col0 ) * col0 / + col0 - - CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-102
-170
-182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3343
SELECT - MAX( col1 ) * CAST( NULL AS SIGNED ) col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3343
SELECT - MAX ( col1 ) * CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + 44 FROM tab2 cor0
----
44
44
44

onlyif mysql # DIV for integer division: 
query I rowsort label-3345
SELECT DISTINCT - 93 DIV col1 FROM tab0
----
-1
-4
-93

skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT - 93 / col1 FROM tab0
----
-1
-4
-93

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 - + col0 NOT BETWEEN NULL AND - - col0
----

query I rowsort
SELECT + 16 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
16
16
16

onlyif mysql # DIV for integer division: 
query I rowsort label-3348
SELECT ALL - 60 DIV - + col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3348
SELECT ALL - 60 / - + col1 FROM tab2
----
0
0
1

query I rowsort
SELECT 99 * - col0 AS col0 FROM tab1
----
-5049
-8415
-9009

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT DISTINCT SUM( 84 ) FROM tab0
----
252

skipif mysql # not compatible
query I rowsort label-3350
SELECT DISTINCT SUM ( 84 ) FROM tab0
----
252

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 85 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3352
SELECT DISTINCT col0 * - CAST( - 68 AS DECIMAL ) * col1 FROM tab1 AS cor0 WHERE NOT 31 / 19 < col2
----

skipif mysql # not compatible
query I rowsort label-3352
SELECT DISTINCT col0 * - CAST ( - 68 AS REAL ) * col1 FROM tab1 AS cor0 WHERE NOT 31 / 19 < col2
----

query I rowsort
SELECT DISTINCT + 46 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 * 68 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( col1 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 89, col2 col0 FROM tab2 AS cor0 WHERE col2 + - col2 >= ( + col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 85 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - + col0, col0 * + - col0 AS col1 FROM tab2 AS cor0
----
-46
-2116
-64
-4096
-75
-5625

query I rowsort
SELECT + col0 * + - col2 + + 22 AS col0 FROM tab1
----
-4874
-4993
-6166

onlyif mysql # DIV for integer division: 
query I rowsort label-3361
SELECT + col1 + + - 39 DIV 75 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3361
SELECT + col1 + + - 39 / 75 FROM tab2
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 AND + col2 AND NOT + col1 / + col2 + col1 + col0 BETWEEN col0 AND + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 * + 83 col2 FROM tab0
----
-1198
-7211
-7952

query I rowsort
SELECT ALL - 58 + + - 85 + - + col0 FROM tab0
----
-158
-230
-240

query I rowsort
SELECT - 18 + col1 FROM tab1
----
-13
-4
29

query I rowsort
SELECT DISTINCT - 64 + - col0 + + 27 FROM tab2
----
-101
-112
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, + ( - + col0 ) col2 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

query I rowsort
SELECT + ( + AVG ( - - 8 ) ) + - 61 - - + 68 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col0 + + 52
----
NULL

query I rowsort
SELECT ALL + 45 + + + 15 + + col1 * 83 + - col2 AS col1 FROM tab1 AS cor0
----
1126
3893
416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 43 ) col2 FROM tab0 AS cor0
----
-43
-43
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 11 * + col1 col0 FROM tab0 AS cor0
----
11
231
891

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-3372
SELECT DISTINCT + col2 DIV CAST( CAST( - 12 AS DECIMAL ) AS SIGNED ) - + col1 AS col2, col2 FROM tab1
----
-22
96
-52
68
-9
59

skipif mysql # not compatible
query II rowsort label-3372
SELECT DISTINCT + col2 / CAST ( CAST ( - 12 AS REAL ) AS INTEGER ) - + col1 AS col2, col2 FROM tab1
----
-22
96
-52
68
-9
59

query I rowsort
SELECT col2 - + - col1 * + + col2 AS col0 FROM tab0
----
198
220
3854

query III rowsort
SELECT * FROM tab0 WHERE + 74 - col1 / + ( 76 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT ALL - 21 * + MIN( DISTINCT - - col2 ) FROM tab0
----
-210

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL - 21 * + MIN ( DISTINCT - - col2 ) FROM tab0
----
-210

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 25 + col2 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3378
SELECT DISTINCT CAST( - col0 AS SIGNED ) AS col2, - col1 col1 FROM tab1 cor0
----
-51
-14
-85
-5
-91
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3378
SELECT DISTINCT CAST ( - col0 AS INTEGER ) AS col2, - col1 col1 FROM tab1 cor0
----
-51
-14
-85
-5
-91
-47

query II rowsort
SELECT ALL - - ( - col0 ) AS col2, 19 AS col2 FROM tab0 AS cor0
----
-15
19
-87
19
-97
19

query I rowsort
SELECT DISTINCT - col0 * + 80 FROM tab0 AS cor0
----
-1200
-6960
-7760

query II rowsort
SELECT - col2 * + - 43, + 99 AS col1 FROM tab2 AS cor0
----
1720
99
2494
99
989
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
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-3382
SELECT COUNT ( + col2 ) col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT 28 * - col0 AS col0 FROM tab1 cor0
----
-1428
-2380
-2548

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 67 + - - col0 + - - 20 + + + col0 * 2 * + 60 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT - COUNT( * ) * + + MIN( ALL + + col0 ) col1 FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3385
SELECT - COUNT ( * ) * + + MIN ( ALL + + col0 ) col1 FROM tab2 AS cor0
----
-138

query I rowsort
SELECT col1 * 2 AS col0 FROM tab1
----
10
28
94

onlyif mysql # aggregate syntax: 
query II rowsort label-3387
SELECT - COUNT( * ) AS col2, 88 AS col2 FROM tab1
----
-3
88

skipif mysql # not compatible
query II rowsort label-3387
SELECT - COUNT ( * ) AS col2, 88 AS col2 FROM tab1
----
-3
88

query II rowsort
SELECT ALL col0 AS col1, + col1 AS col0 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3389
SELECT ALL + 80 DIV col2 AS col2 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL + 80 / col2 AS col2 FROM tab2 AS cor0
----
1
2
3

query I rowsort
SELECT DISTINCT - 11 * + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL 15 + + ( col0 ) AS col0 FROM tab0
----
102
112
30

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE NOT - 14 IS NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query II rowsort label-3393
SELECT + - col1 + + + 43 AS col2, + col1 DIV - 47 FROM tab2 AS cor0
----
-24
-1
-34
-1
-8
-1

skipif mysql # not compatible
query II rowsort label-3393
SELECT + - col1 + + + 43 AS col2, + col1 / - 47 FROM tab2 AS cor0
----
-24
-1
-34
-1
-8
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT + COUNT( * ) + SUM( ALL + - col2 ) AS col2 FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-3394
SELECT + COUNT ( * ) + SUM ( ALL + - col2 ) AS col2 FROM tab0 AS cor0
----
-153

query I rowsort
SELECT - 80 + + col1 AS col1 FROM tab0 AS cor0
----
-59
-79
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3396
SELECT * FROM tab2 AS cor0 WHERE ( NOT NULL IN ( + - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-3396
SELECT * FROM tab2 AS cor0 WHERE ( NOT NULL IN ( + - CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT - col1 * + col0 + + 84 FROM tab0 AS cor0
----
-1131
-13
-1743

query I rowsort
SELECT + 52 + + + col2 FROM tab1 AS cor0
----
111
120
148

query I rowsort
SELECT + col2 + + + 97 + col2 - - + col1 * + - col2 * - ( - 33 ) * + - 74 FROM tab2 AS cor0
----
2864609
7521537
9489825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 28 + + col2 col0 FROM tab1 AS cor0
----
108
164
90

query I rowsort
SELECT DISTINCT col0 * + col1 + - col1 + + 96 * + 95 * col1 AS col2 FROM tab0
----
193326
739854
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3402
SELECT ALL CAST( - col0 AS SIGNED ) + + - 65 col0 FROM tab2
----
-111
-129
-140

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3402
SELECT ALL CAST ( - col0 AS INTEGER ) + + - 65 col0 FROM tab2
----
-111
-129
-140

query I rowsort
SELECT DISTINCT col1 - - 13 FROM tab2
----
64
80
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 - 28 col1 FROM tab1
----
-31
-31
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 4 * - - 90 + col1 col0 FROM tab0
----
361
381
441

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3406
SELECT CAST( NULL AS SIGNED ) - - + col0 - col2 + - 54 - col0, - 72 AS col0 FROM tab0 AS cor0
----
NULL
-72
NULL
-72
NULL
-72

skipif mysql # not compatible
query II rowsort label-3406
SELECT CAST ( NULL AS INTEGER ) - - + col0 - col2 + - 54 - col0, - 72 AS col0 FROM tab0 AS cor0
----
NULL
-72
NULL
-72
NULL
-72

query I rowsort
SELECT - 21 - col1 FROM tab1 cor0
----
-26
-35
-68

query I rowsort
SELECT - + col0 * - 33 + + 27 FROM tab1 AS cor0
----
1710
2832
3030

query I rowsort
SELECT ALL 36 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT ALL - col0 * + col2 * - col1 AS col2 FROM tab1
----
25075
290836
68544

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT + COUNT( ALL + - col1 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3411
SELECT + COUNT ( ALL + - col1 ) AS col1 FROM tab0 cor0
----
3

query I rowsort
SELECT + col1 + - + 29 AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3413
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3413
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL + col2 * + + col0 AS col1 FROM tab0
----
705
870
9603

query I rowsort
SELECT - col2 * 4 * + col2 * col0 AS col1 FROM tab1
----
-1183540
-1683136
-1880064

onlyif mysql # DIV for integer division: 
query I rowsort label-3416
SELECT ALL col0 DIV 87 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL col0 / 87 FROM tab1
----
0
0
1

query I rowsort
SELECT 70 FROM tab2 WHERE NOT NULL = - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3418
SELECT ALL col2 DIV + + col2 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL col2 / + + col2 AS col2 FROM tab1
----
1
1
1

query II rowsort
SELECT 26 AS col2, - col0 - + col1 * - 22 * col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
26
130374
26
57176
26
98683

query I rowsort
SELECT + 82 + + col0 FROM tab1 AS cor0 WHERE col1 + + - ( - col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3421
SELECT ALL + CAST( + - col1 AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL + CAST ( + - col1 AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col0 FROM tab0 WHERE - 55 <= + col1 * col2 * + col1 - + + 89 + + col0 + + 40 * col1 + + col1
----
-15
-87
-97

query I rowsort
SELECT + col2 * + col2 * + col0 AS col2 FROM tab0
----
33135
8700
950697

query I rowsort
SELECT DISTINCT col1 + - 25 + - col0 * - + col2 FROM tab2
----
1084
2612
4392

query I rowsort
SELECT DISTINCT ( - 91 ) AS col0 FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3426
SELECT * FROM tab1 AS cor0 WHERE col2 + + + col1 + + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3426
SELECT * FROM tab1 AS cor0 WHERE col2 + + + col1 + + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 66 - + + col0 FROM tab1 AS cor0 WHERE NOT + col1 + + col2 * - 13 NOT IN ( - col2 + + - 42, - 28 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3428
SELECT + + CAST( NULL AS SIGNED ) + col1 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3428
SELECT + + CAST ( NULL AS INTEGER ) + col1 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3429
SELECT * FROM tab0 AS cor0 WHERE NULL <> CAST( NULL AS SIGNED ) + + - ( 38 )
----

skipif mysql # not compatible
query III rowsort label-3429
SELECT * FROM tab0 AS cor0 WHERE NULL <> CAST ( NULL AS INTEGER ) + + - ( 38 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3430
SELECT + MIN( - 18 ) + + - 87 AS col2, MIN( - - col0 ) * - + ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 cor0
----
-105
NULL

skipif mysql # not compatible
query II rowsort label-3430
SELECT + MIN ( - 18 ) + + - 87 AS col2, MIN ( - - col0 ) * - + ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 cor0
----
-105
NULL

query I rowsort
SELECT + 65 + - - col0 * + col2 + - - col2 + - + 84 AS col0 FROM tab0
----
733
861
9683

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3432
SELECT - 13 + CAST( NULL AS DECIMAL ), col2 AS col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-3432
SELECT - 13 + CAST ( NULL AS REAL ), col2 AS col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) + - col0 col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3434
SELECT ( + 83 ) + - + COUNT( * ) DIV - SUM( + col2 ) FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-3434
SELECT ( + 83 ) + - + COUNT ( * ) / - SUM ( + col2 ) FROM tab1
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) * + 39 + col1 + + - col0 col2 FROM tab2
----
-1984
-2621
-2990

query I rowsort
SELECT + + col2 * + - col2 AS col2 FROM tab1 WHERE 29 >= + - 41
----
-3481
-4624
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 + col2 col1 FROM tab2
----
109
127
92

onlyif mysql # DIV for integer division: 
query I rowsort label-3438
SELECT ALL + col0 * 81 * + + col1 - col2 * col0 DIV - - 41 FROM tab2 AS cor0
----
190001
399106
406919

skipif mysql # not compatible
query I rowsort label-3438
SELECT ALL + col0 * 81 * + + col1 - col2 * col0 / - - 41 FROM tab2 AS cor0
----
190001
399106
406919

query I rowsort
SELECT - 55 * + 2 * + - 65 * - 89 + - + col2 + - 21 FROM tab2 AS cor0
----
-636394
-636411
-636429

query I rowsort
SELECT DISTINCT - 65 AS col0 FROM tab0 WHERE NOT + 90 * + col2 - + ( - - 37 ) + - col2 NOT BETWEEN NULL AND - - 96
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + col1 * + col1 + - - col0 AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 90 col0 FROM tab2 AS cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT ALL - MIN( DISTINCT - 78 ) col2 FROM tab0 cor0
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3444
SELECT ALL - MIN ( DISTINCT - 78 ) col2 FROM tab0 cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT ALL - + COUNT( + 86 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL - + COUNT ( + 86 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 = - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col2, + col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3448
SELECT - CAST( NULL AS SIGNED ) + + + 81 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3448
SELECT - CAST ( NULL AS INTEGER ) + + + 81 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col1 AS col1, 85 AS col2 FROM tab0 WHERE NOT + + 87 <= NULL
----

query II rowsort
SELECT DISTINCT col2, + col0 * + 7 FROM tab0
----
10
609
47
105
99
679

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3451
SELECT ALL - COUNT( * ) DIV + - 16 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL - COUNT ( * ) / + - 16 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT DISTINCT 3 * + - COUNT( * ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT 3 * + - COUNT ( * ) AS col0 FROM tab0
----
-9

query I rowsort
SELECT + - 74 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 65 FROM tab0 AS cor0 WHERE NOT + 70 IS NOT NULL
----

query II rowsort
SELECT - - col2 * + - col2 + + - col2 + col2 AS col1, col0 * + + col2 FROM tab1 cor0
----
-3481
5015
-4624
6188
-9216
4896

query II rowsort
SELECT - + 46 AS col2, - ( + + col2 ) AS col1 FROM tab2 AS cor0
----
-46
-23
-46
-40
-46
-58

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 LEFT JOIN tab0 AS cor1 ON NOT NULL > NULL
----
18 values hashing to 3bb2bca130a6dfa84e4c44460040062d

query I rowsort
SELECT + col2 * col0 * ( + - 29 ) + + 90 - + col2 FROM tab2
----
-126118
-30615
-74190

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3459
SELECT * FROM tab2 WHERE NULL > + 54 / col2 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3459
SELECT * FROM tab2 WHERE NULL > + 54 / col2 * + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 + + - col1 col1 FROM tab2
----
-2652
-4556
-6006

query II rowsort
SELECT col0 + - 95 AS col1, - col0 * + 49 * ( - 89 ) FROM tab0
----
-8
379407
-80
65415
2
423017

query I rowsort
SELECT col0 + col0 - + 34 FROM tab0
----
-4
140
160

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT SUM( - col1 ) + + COUNT( ( - 23 ) ) AS col1 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-3463
SELECT SUM ( - col1 ) + + COUNT ( ( - 23 ) ) AS col1 FROM tab1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3464
SELECT 16 + + 54 * CAST( + - 19 AS SIGNED ) FROM tab2 AS cor0
----
-1010
-1010
-1010

skipif mysql # not compatible
query I rowsort label-3464
SELECT 16 + + 54 * CAST ( + - 19 AS INTEGER ) FROM tab2 AS cor0
----
-1010
-1010
-1010

query II rowsort
SELECT DISTINCT - + ( - 29 ) AS col0, ( + - col0 ) AS col0 FROM tab1 AS cor0
----
29
-51
29
-85
29
-91

query I rowsort
SELECT ALL - col0 * - 36 * - + col1 * - 75 FROM tab0 AS cor0
----
261900
3280500
4932900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3467
SELECT - SUM( - col0 ) FROM tab2 AS cor0 WHERE NULL BETWEEN col0 * + CAST( NULL AS SIGNED ) - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3467
SELECT - SUM ( - col0 ) FROM tab2 AS cor0 WHERE NULL BETWEEN col0 * + CAST ( NULL AS INTEGER ) - col0 AND NULL
----
NULL

query I rowsort
SELECT ALL col2 FROM tab0 cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE NULL < - 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT ALL + COUNT( * ) * 67 FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL + COUNT ( * ) * 67 FROM tab2
----
201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3471
SELECT + col1 FROM tab0 WHERE + CAST( + - col1 AS SIGNED ) * - + col1 + + 19 NOT BETWEEN 34 * - ( - col2 ) * - - 9 AND + - col1
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3471
SELECT + col1 FROM tab0 WHERE + CAST ( + - col1 AS INTEGER ) * - + col1 + + 19 NOT BETWEEN 34 * - ( - col2 ) * - - 9 AND + - col1
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT - MAX( col1 ) col0 FROM tab1
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3472
SELECT - MAX ( col1 ) col0 FROM tab1
----
-47

query I rowsort
SELECT + 74 * - col2 AS col0 FROM tab0
----
-3478
-7326
-740

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT COUNT( * ) * - + 62 FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-3474
SELECT COUNT ( * ) * - + 62 FROM tab2 AS cor0
----
-186

query I rowsort
SELECT ALL + - col0 * 51 AS col2 FROM tab0 AS cor0
----
-4437
-4947
-765

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 75 <= + col2 * ( + 0 )
----

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NOT + - col0 > - 49
----
14
47
5

query I rowsort
SELECT - - col1 + + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
117
125
74

onlyif mysql # DIV for integer division: 
query I rowsort label-3479
SELECT - - col0 DIV + 92 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3479
SELECT - - col0 / + 92 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT ALL 16 - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE + col0 NOT IN ( - col0 )
----
13

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL 16 - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE + col0 NOT IN ( - col0 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT DISTINCT + ( - MIN( - - 58 ) ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT + ( - MIN ( - - 58 ) ) FROM tab2 AS cor0
----
-58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 23 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * 43 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 AS cor0 WHERE + 44 = - + col2 / col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 <= - ( + col0 )
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT COUNT( DISTINCT + - 57 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3486
SELECT COUNT ( DISTINCT + - 57 ) AS col1 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT - MIN( ALL + + col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-3487
SELECT - MIN ( ALL + + col2 ) FROM tab2
----
-23

query I rowsort
SELECT + ( + 81 ) AS col2 FROM tab1
----
81
81
81

query I rowsort
SELECT DISTINCT - col1 * + + 57 AS col0 FROM tab2 WHERE + ( - col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col1 + 61 / - col2 IS NULL
----

query I rowsort
SELECT ALL + 93 + col1 + - col2 FROM tab1
----
11
39
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3492
SELECT DISTINCT - + CAST( + MAX( col1 ) AS SIGNED ) col0 FROM tab0 cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3492
SELECT DISTINCT - + CAST ( + MAX ( col1 ) AS INTEGER ) col0 FROM tab0 cor0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-3493
SELECT DISTINCT + 33 AS col0, COUNT( * ) FROM tab2 AS cor0
----
33
3

skipif mysql # not compatible
query II rowsort label-3493
SELECT DISTINCT + 33 AS col0, COUNT ( * ) FROM tab2 AS cor0
----
33
3

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE 70 >= NULL
----

query I rowsort
SELECT + ( col1 ) + + col0 + col2 AS col0 FROM tab1 cor0
----
149
161
206

query I rowsort
SELECT ALL 43 * + - col2 FROM tab1 AS cor0
----
-2537
-2924
-4128

query III rowsort
SELECT * FROM tab0 cor0 WHERE 91 < + 23 / - 37
----

query I rowsort
SELECT ALL ( - col1 ) * + col2 + + 85 FROM tab0
----
-125
-14
-3722

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT DISTINCT 46 * + + COUNT( * ) FROM tab0
----
138

skipif mysql # not compatible
query I rowsort label-3499
SELECT DISTINCT 46 * + + COUNT ( * ) FROM tab0
----
138

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 33 BETWEEN col1 AND NULL
----

query II rowsort
SELECT - col1 + 65 AS col1, + ( col0 ) AS col2 FROM tab2
----
-12
64
-2
75
14
46

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 62 IN ( - ( - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3503
SELECT 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-3503
SELECT CAST ( NULL AS INTEGER ) / + col1 col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3504
SELECT 7 AS col1 FROM tab2 WHERE NOT 20 + - - CAST( NULL AS SIGNED ) * col0 * + col0 * - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3504
SELECT 7 AS col1 FROM tab2 WHERE NOT 20 + - - CAST ( NULL AS INTEGER ) * col0 * + col0 * - col2 IS NULL
----

query I rowsort
SELECT - 33 * + 33 FROM tab0
----
-1089
-1089
-1089

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT ALL MIN( DISTINCT 22 ) AS col0 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-3506
SELECT ALL MIN ( DISTINCT 22 ) AS col0 FROM tab0
----
22

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 82 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT - ( + - MIN( DISTINCT - col0 ) ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3508
SELECT - ( + - MIN ( DISTINCT - col0 ) ) FROM tab2 AS cor0
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab0 AS cor0 WHERE - col2 + + - ( + col0 ) / + - col0 * - + col0 * + col0 < + col1
----
-10
-47
-99

query II rowsort
SELECT + - ( + + col0 ) AS col0, col2 * - + 50 FROM tab1 AS cor0
----
-51
-4800
-85
-2950
-91
-3400

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 / - 48 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3512
SELECT ALL - col0 DIV + 64 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL - col0 / + 64 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT ALL MIN( DISTINCT + 15 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL MIN ( DISTINCT + 15 ) FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT ALL - + COUNT( DISTINCT + 0 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-3514
SELECT ALL - + COUNT ( DISTINCT + 0 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3515
SELECT - CAST( NULL AS SIGNED ) col1, ( + ( col0 ) ) col1 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3515
SELECT - CAST ( NULL AS INTEGER ) col1, ( + ( col0 ) ) col1 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT ALL col1 * col1 + - 72 AS col1 FROM tab0 AS cor0
----
-71
369
6489

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT DISTINCT - COUNT( + 67 ) * + - 87 AS col1 FROM tab2 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-3517
SELECT DISTINCT - COUNT ( + 67 ) * + - 87 AS col1 FROM tab2 AS cor0
----
261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3518
SELECT + col2 * - col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3518
SELECT + col2 * - col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < col1 + - col0 + - col2 * col2
----

query I rowsort
SELECT col2 * + - col1 + - - col0 FROM tab0 AS cor0
----
-123
-2
-3792

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) * 88 AS col2 FROM tab2 WHERE - col0 NOT BETWEEN + col0 AND NULL
----
792

skipif mysql # not compatible
query I rowsort label-3521
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) * 88 AS col2 FROM tab2 WHERE - col0 NOT BETWEEN + col0 AND NULL
----
792

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT + MIN( DISTINCT - col0 ) AS col1 FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3523
SELECT + MIN ( DISTINCT - col0 ) AS col1 FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT ( + ( - 66 ) ) FROM tab1
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT DISTINCT COUNT( DISTINCT + - col0 ) + + MIN( + col1 ) col2 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3525
SELECT DISTINCT COUNT ( DISTINCT + - col0 ) + + MIN ( + col1 ) col2 FROM tab1 AS cor0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 81 col1, col0 AS col2 FROM tab0 AS cor0
----
81
15
81
87
81
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3527
SELECT ALL - COUNT( * ) * + ( CAST( NULL AS SIGNED ) ) * - - COUNT( * ) + SUM( ALL col0 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3527
SELECT ALL - COUNT ( * ) * + ( CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) + SUM ( ALL col0 ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT SUM( - 60 ) * - 2 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3528
SELECT SUM ( - 60 ) * - 2 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, col1 col1 FROM tab1 cor0
----
-51
14
-85
5
-91
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3530
SELECT - col0 DIV + - 87 * - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3530
SELECT - col0 / + - 87 * - col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + col1 * + ( - - col0 ) FROM tab0
----
1215
1827
97

query I rowsort
SELECT ALL 14 * 42 FROM tab1
----
588
588
588

onlyif mysql # DIV for integer division: 
query I rowsort label-3533
SELECT ALL col2 DIV + ( 39 ) AS col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL col2 / + ( 39 ) AS col0 FROM tab0
----
0
1
2

query II rowsort
SELECT + col0, ( + col0 ) AS col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 44, 1 col2 FROM tab0 AS cor0
----
44
1
44
1
44
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3536
SELECT ALL - col0 DIV col0 col1, col1 + + + 20 FROM tab0 AS cor0
----
-1
101
-1
21
-1
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3536
SELECT ALL - col0 / col0 col1, col1 + + + 20 FROM tab0 AS cor0
----
-1
101
-1
21
-1
41

query I rowsort
SELECT ALL + + col1 AS col0 FROM tab2 WHERE NOT - 70 IS NOT NULL
----

query I rowsort
SELECT ALL - 59 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN NULL AND - - 73
----

query I rowsort
SELECT - 15 * col0 AS col1 FROM tab2
----
-1125
-690
-960

query II rowsort
SELECT + col2 * - col2 AS col2, - col1 AS col1 FROM tab1 AS cor0
----
-3481
-5
-4624
-47
-9216
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * col0 AS col2, - 30 col0 FROM tab1 AS cor0
----
-425
-30
-4277
-30
-714
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3543
SELECT DISTINCT 45 DIV SUM( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT 45 / SUM ( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
0

query II rowsort
SELECT ALL - col1 * - - col1 * 69 + + col0, col0 / + col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 6 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT ALL - COUNT( * ) + + 87 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL - COUNT ( * ) + + 87 FROM tab0 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-3547
SELECT DISTINCT + MIN( DISTINCT + col2 ) + 36, + SUM( + + 35 ) AS col1 FROM tab0
----
46
105

skipif mysql # not compatible
query II rowsort label-3547
SELECT DISTINCT + MIN ( DISTINCT + col2 ) + 36, + SUM ( + + 35 ) AS col1 FROM tab0
----
46
105

query I rowsort
SELECT - col1 * - 81 + - col0 FROM tab2
----
4085
5352
6173

query I rowsort
SELECT 32 + - - 48 AS col2 FROM tab2
----
80
80
80

query I rowsort
SELECT 96 + - col2 AS col2 FROM tab2
----
38
56
73

query I rowsort
SELECT ALL + ( - col1 ) + - - col2 * - 95 - - col1 * + + col1 * col2 FROM tab1
----
-4135
143705
9682

query I rowsort
SELECT + col2 + - 2 FROM tab2
----
21
38
56

query I rowsort
SELECT + 54 + ( - col2 ) * - - col0 * col2 FROM tab2
----
-102346
-24280
-252246

query I rowsort
SELECT col1 * + col2 * - col0 AS col0 FROM tab1 AS cor0
----
-25075
-290836
-68544

query I rowsort
SELECT DISTINCT + - 76 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-76

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 - - col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 35 col2 FROM tab1 AS cor0
----
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - 21 ) col0 FROM tab2 AS cor0
----
21
21
21

query I rowsort
SELECT DISTINCT - + 74 * 59 AS col1 FROM tab2 WHERE NOT - - 50 BETWEEN - col2 AND + col0
----
-4366

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3560
SELECT - 93 DIV + COUNT( * ) FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-3560
SELECT - 93 / + COUNT ( * ) FROM tab1
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-3561
SELECT DISTINCT MIN( ALL - ( - + col1 ) ) AS col0, + 74 AS col0 FROM tab1
----
5
74

skipif mysql # not compatible
query II rowsort label-3561
SELECT DISTINCT MIN ( ALL - ( - + col1 ) ) AS col0, + 74 AS col0 FROM tab1
----
5
74

query I rowsort
SELECT DISTINCT + col2 * + ( - col1 ) * + - col1 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
308367
4410
99

query I rowsort
SELECT DISTINCT + 22 * - 41 AS col0 FROM tab2
----
-902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 col1 FROM tab0 AS cor0 WHERE NOT + 83 - - + 98 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3565
SELECT + COUNT( * ) col0, + ( - COUNT( * ) ) FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3565
SELECT + COUNT ( * ) col0, + ( - COUNT ( * ) ) FROM tab1 AS cor0
----
3
-3

query II rowsort
SELECT ALL 70, - ( col2 ) - + + col0 AS col2 FROM tab0
----
70
-196
70
-62
70
-97

query I rowsort
SELECT + 34 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT ( - COUNT( * ) ) AS col0 FROM tab2 WHERE - ( - col2 ) * - ( - col0 ) + + - col2 - - + 63 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3568
SELECT ( - COUNT ( * ) ) AS col0 FROM tab2 WHERE - ( - col2 ) * - ( - col0 ) + + - col2 - - + 63 IS NOT NULL
----
-3

query I rowsort
SELECT 57 + - col2 + col1 AS col1 FROM tab1 AS cor0
----
-25
3
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT ALL - MAX( + - col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL - MAX ( + - col1 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT DISTINCT + SUM( DISTINCT + 93 ) AS col1 FROM tab1 WHERE ( NOT ( NOT NULL = - + col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3571
SELECT DISTINCT + SUM ( DISTINCT + 93 ) AS col1 FROM tab1 WHERE ( NOT ( NOT NULL = - + col2 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT DISTINCT COUNT( * ) + - - MIN( DISTINCT - 65 ) - - - ( + 98 ) AS col1 FROM tab1
----
-160

skipif mysql # not compatible
query I rowsort label-3572
SELECT DISTINCT COUNT ( * ) + - - MIN ( DISTINCT - 65 ) - - - ( + 98 ) AS col1 FROM tab1
----
-160

query I rowsort
SELECT ALL - col1 * + 12 * 72 + + col0 FROM tab0
----
-18057
-69969
-767

query III rowsort
SELECT * FROM tab2 WHERE - col0 / + col2 + col0 - ( - + col1 ) + - + col2 < + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3575
SELECT DISTINCT + col2 + - + col0 + - + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT + col2 + - + col0 + - + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL + 89 + 85 AS col0 FROM tab2
----
174
174
174

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT DISTINCT + MIN( + - 32 ) FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-3577
SELECT DISTINCT + MIN ( + - 32 ) FROM tab0 AS cor0
----
-32

query II rowsort
SELECT ALL + col1, col1 AS col2 FROM tab1 WHERE NULL IS NULL
----
14
14
47
47
5
5

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 + + col1 * col0 * - 89 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3580
SELECT + COUNT( * ), - COUNT( * ) * - 51 AS col1 FROM tab0
----
3
153

skipif mysql # not compatible
query II rowsort label-3580
SELECT + COUNT ( * ), - COUNT ( * ) * - 51 AS col1 FROM tab0
----
3
153

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT DISTINCT - - MIN( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3581
SELECT DISTINCT - - MIN ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
51

query I rowsort
SELECT col2 * col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
100
2209
9801

query II rowsort
SELECT - - 19 AS col0, col0 AS col2 FROM tab2 AS cor0
----
19
46
19
64
19
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3584
SELECT + col1 - + CAST( + + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-3584
SELECT + col1 - + CAST ( + + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT DISTINCT + + ( + + COUNT( * ) ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3585
SELECT DISTINCT + + ( + + COUNT ( * ) ) AS col0 FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT col0 * + col2 * col0 AS col0 FROM tab1
----
249696
426275
563108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3588
SELECT 81 * + - CAST( NULL AS SIGNED ) * + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3588
SELECT 81 * + - CAST ( NULL AS INTEGER ) * + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - 56 AS col2 FROM tab1
----
-2632
-280
-784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3590
SELECT DISTINCT ( + - CAST( col2 AS SIGNED ) ) AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3590
SELECT DISTINCT ( + - CAST ( col2 AS INTEGER ) ) AS col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT 34 AS col0 FROM tab1 AS cor0 WHERE NULL > + 59
----

query I rowsort
SELECT ALL ( + + col0 ) AS col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 38 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT DISTINCT + ( ( + col0 ) ) FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL - col0 + 99 + col1 * col0 AS col2 FROM tab1 AS cor0
----
4285
439
762

onlyif mysql # aggregate syntax: 
query II rowsort label-3597
SELECT ALL 40 col0, + SUM( col0 ) FROM tab1 AS cor0
----
40
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3597
SELECT ALL 40 col0, + SUM ( col0 ) FROM tab1 AS cor0
----
40
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 33 + col2 col0 FROM tab2 AS cor0
----
-4
24
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT 47 + + COUNT( ALL + col0 ) AS col2 FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-3599
SELECT 47 + + COUNT ( ALL + col0 ) AS col2 FROM tab2
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3600
SELECT ( + MAX( ALL + 6 ) ) + + 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-3600
SELECT ( + MAX ( ALL + 6 ) ) + + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 55 * 83 AS col1 FROM tab2
----
4565

query I rowsort
SELECT DISTINCT - col2 * - col2 + - + col0 + + + 44 FROM tab1
----
3440
4577
9209

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT COUNT( * ) * - COUNT( * ) + - 40 FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-3603
SELECT COUNT ( * ) * - COUNT ( * ) + - 40 FROM tab1
----
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 48 - - + 11 col2 FROM tab0
----
146
156
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT DISTINCT 82 + COUNT( * ) + + 95 FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-3605
SELECT DISTINCT 82 + COUNT ( * ) + + 95 FROM tab1
----
180

query I rowsort
SELECT col0 + + ( + col1 ) + col1 * - + col1 FROM tab1
----
-131
-2071
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3607
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) * + COUNT( * ) - + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) * + COUNT ( * ) - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ( - - col0 ) + col2 AS col0 FROM tab2
----
104
133
69

onlyif mysql # DIV for integer division: 
query I rowsort label-3609
SELECT DISTINCT 39 * col2 - + col2 DIV + 63 AS col0 FROM tab2
----
1560
2262
897

skipif mysql # not compatible
query I rowsort label-3609
SELECT DISTINCT 39 * col2 - + col2 / + 63 AS col0 FROM tab2
----
1560
2262
897

query I rowsort
SELECT DISTINCT col2 - 22 * 92 AS col0 FROM tab2
----
-1966
-1984
-2001

query I rowsort
SELECT DISTINCT + ( col2 ) * - 28 - + + col1 AS col1 FROM tab0 AS cor0
----
-1397
-2773
-301

query II rowsort
SELECT ALL + col0 * + 80, + col1 FROM tab1
----
4080
14
6800
5
7280
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT - COUNT( - 6 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3613
SELECT - COUNT ( - 6 ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 47
----

query I rowsort
SELECT DISTINCT col1 * + + col2 FROM tab1 cor0
----
1344
295
3196

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 51 * 21 < NULL
----

query I rowsort
SELECT ALL + 37 * - ( - 93 ) AS col1 FROM tab1 AS cor0
----
3441
3441
3441

query I rowsort
SELECT 60 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT - 96 * - + 10 FROM tab1 AS cor0
----
960
960
960

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT + + 53 * MAX( + col0 ) + 20 - + ( MIN( - 84 ) ) FROM tab2 AS cor0
----
4079

skipif mysql # not compatible
query I rowsort label-3620
SELECT + + 53 * MAX ( + col0 ) + 20 - + ( MIN ( - 84 ) ) FROM tab2 AS cor0
----
4079

query II rowsort
SELECT col0 AS col2, - col2 AS col2 FROM tab1
----
51
-96
85
-59
91
-68

query I rowsort
SELECT ALL col1 + - 97 FROM tab0
----
-16
-76
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT ALL + SUM( ALL 38 ) FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL + SUM ( ALL 38 ) FROM tab2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT DISTINCT + COUNT( ALL 1 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3624
SELECT DISTINCT + COUNT ( ALL 1 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query II rowsort
SELECT DISTINCT col0, col2 * - - col0 FROM tab1
----
51
4896
85
5015
91
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT COUNT( * ) * + - 7 AS col2 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-3626
SELECT COUNT ( * ) * + - 7 AS col2 FROM tab2
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3627
SELECT - 13 AS col2, - CAST( NULL AS SIGNED ) - - col1 FROM tab0 AS cor0
----
-13
NULL
-13
NULL
-13
NULL

skipif mysql # not compatible
query II rowsort label-3627
SELECT - 13 AS col2, - CAST ( NULL AS INTEGER ) - - col1 FROM tab0 AS cor0
----
-13
NULL
-13
NULL
-13
NULL

query II rowsort
SELECT + col0, + 38 FROM tab1 AS cor0
----
51
38
85
38
91
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT COUNT( - 89 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3629
SELECT COUNT ( - 89 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT ALL - MAX( col2 ) * SUM( ( col2 ) ) AS col2 FROM tab0
----
-15444

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL - MAX ( col2 ) * SUM ( ( col2 ) ) AS col2 FROM tab0
----
-15444

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT + 54 + COUNT( * ) AS col0 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-3631
SELECT + 54 + COUNT ( * ) AS col0 FROM tab1
----
57

query III rowsort
SELECT * FROM tab1 WHERE + col0 * - 39 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3633
SELECT * FROM tab0 WHERE CAST( NULL AS SIGNED ) IN ( 66 + + col2 )
----

skipif mysql # not compatible
query III rowsort label-3633
SELECT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) IN ( 66 + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3634
SELECT CAST( NULL AS SIGNED ) + 91 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3634
SELECT CAST ( NULL AS INTEGER ) + 91 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 81 FROM tab2 WHERE - 89 + - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3636
SELECT ALL ( col1 ) DIV + 26 FROM tab2
----
1
2
2

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL ( col1 ) / + 26 FROM tab2
----
1
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3637
SELECT + col0 DIV + col2 - 95 DIV col0 FROM tab0
----
-6
0
7

skipif mysql # not compatible
query I rowsort label-3637
SELECT + col0 / + col2 - 95 / col0 FROM tab0
----
-6
0
7

query I rowsort
SELECT ( col2 ) + - 89 AS col1 FROM tab1
----
-21
-30
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3639
SELECT DISTINCT - 24 FROM tab1 WHERE NOT 11 * - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT - 24 FROM tab1 WHERE NOT 11 * - CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 / col2 <> + ( + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3642
SELECT COUNT( * ) + - COUNT( * ) DIV 73 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3642
SELECT COUNT ( * ) + - COUNT ( * ) / 73 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN col1 + 78 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT ALL - 34 * - COUNT( * ) AS col2 FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-3644
SELECT ALL - 34 * - COUNT ( * ) AS col2 FROM tab2
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3645
SELECT - CAST( NULL AS SIGNED ) / col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3645
SELECT - CAST ( NULL AS INTEGER ) / col1 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT + MIN( DISTINCT + col0 ) + + 92 AS col1 FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-3646
SELECT + MIN ( DISTINCT + col0 ) + + 92 AS col1 FROM tab2
----
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3647
SELECT - COUNT( * ) DIV - 34 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3647
SELECT - COUNT ( * ) / - 34 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3648
SELECT DISTINCT - 75 + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3648
SELECT DISTINCT - 75 + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - col0 / + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3651
SELECT DISTINCT + col0 DIV + 23 FROM tab0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-3651
SELECT DISTINCT + col0 / + 23 FROM tab0
----
0
3
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3652
SELECT DISTINCT 18 FROM tab1 WHERE + CAST( col2 AS SIGNED ) * CAST( NULL AS SIGNED ) <= + 70
----

skipif mysql # not compatible
query I rowsort label-3652
SELECT DISTINCT 18 FROM tab1 WHERE + CAST ( col2 AS INTEGER ) * CAST ( NULL AS INTEGER ) <= + 70
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3653
SELECT DISTINCT + 90 * - col2 + 52 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE - 29 / - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3653
SELECT DISTINCT + 90 * - col2 + 52 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE - 29 / - col0 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND ( - col2 / - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3655
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 41 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3655
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 41 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3656
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col0 - - col2 ) NOT BETWEEN NULL AND CAST( NULL AS SIGNED ) + - col1
----

skipif mysql # not compatible
query III rowsort label-3656
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col0 - - col2 ) NOT BETWEEN NULL AND CAST ( NULL AS INTEGER ) + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT - MIN( 46 ) AS col0 FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3657
SELECT - MIN ( 46 ) AS col0 FROM tab0 AS cor0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-3658
SELECT ALL 10 DIV col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3658
SELECT ALL 10 / col0 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3659
SELECT + COUNT( * ) DIV - 44 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3659
SELECT + COUNT ( * ) / - 44 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
0

query I rowsort
SELECT 40 FROM tab2 AS cor0 WHERE NOT col0 * + col1 NOT IN ( 72 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3661
SELECT ALL - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + col2 ) * 79 FROM tab0
----
3713
7821
790

query I rowsort
SELECT DISTINCT - ( + 10 ) * col1 AS col0 FROM tab0 AS cor0
----
-10
-210
-810

query I rowsort
SELECT ALL 74 * - col1 FROM tab0 cor0
----
-1554
-5994
-74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= + col1 + 64
----

query I rowsort
SELECT DISTINCT ( 50 ) * - 46 AS col0 FROM tab0 AS cor0
----
-2300

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT + MAX( 26 ) AS col2 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-3667
SELECT + MAX ( 26 ) AS col2 FROM tab0 AS cor0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-3668
SELECT DISTINCT + - 10 DIV - col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3668
SELECT DISTINCT + - 10 / - col1 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3669
SELECT * FROM tab1 AS cor0 WHERE NOT - 22 * + CAST( - col1 * + col2 AS SIGNED ) + col2 BETWEEN + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3669
SELECT * FROM tab1 AS cor0 WHERE NOT - 22 * + CAST ( - col1 * + col2 AS INTEGER ) + col2 BETWEEN + col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col1 * 15 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 - + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3672
SELECT * FROM tab2 AS cor0 WHERE NOT ( 65 + - CAST( CAST( NULL AS SIGNED ) + col2 * col2 AS SIGNED ) * - col1 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3672
SELECT * FROM tab2 AS cor0 WHERE NOT ( 65 + - CAST ( CAST ( NULL AS INTEGER ) + col2 * col2 AS INTEGER ) * - col1 ) IS NULL
----

query I rowsort
SELECT 56 AS col1 FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----

query I rowsort
SELECT col0 * - 72 FROM tab0 WHERE NOT - col0 + + 46 IS NOT NULL
----

query I rowsort
SELECT - col0 * + col1 * col1 AS col0 FROM tab0
----
-38367
-97
-98415

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT DISTINCT 83 + - COUNT( * ) AS col1 FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT 83 + - COUNT ( * ) AS col1 FROM tab1
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3677
SELECT ALL - 74 + + col0 FROM tab0 WHERE NOT col1 / - CAST( + col0 * + col0 AS SIGNED ) + - 10 * + col2 IN ( 84 )
----
-59
13
23

skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL - 74 + + col0 FROM tab0 WHERE NOT col1 / - CAST ( + col0 * + col0 AS INTEGER ) + - 10 * + col2 IN ( 84 )
----
-59
13
23

query III rowsort
SELECT * FROM tab1 WHERE + 87 / 88 NOT BETWEEN ( NULL ) AND 39
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 / col1 IN ( 52 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 28 + - - col0 AS col0 FROM tab2 cor0
----
103
74
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3681
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 + col1 BETWEEN NULL AND 13 + CAST( + col2 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3681
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 + col1 BETWEEN NULL AND 13 + CAST ( + col2 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT - 94 * - ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
282

skipif mysql # not compatible
query I rowsort label-3682
SELECT - 94 * - ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
282

query I rowsort
SELECT DISTINCT 1 + col2 + - col2 * 17 FROM tab0
----
-1583
-159
-751

query I rowsort
SELECT ( + ( - 28 ) ) + - 46 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT - - 12 * - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-108

skipif mysql # not compatible
query I rowsort label-3685
SELECT - - 12 * - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-108

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3687
SELECT ALL 93 / ( + 61 ) FROM tab2 AS cor0 WHERE NOT - CAST( - + ( - 36 ) AS DECIMAL ) * 36 >= NULL
----

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL 93 / ( + 61 ) FROM tab2 AS cor0 WHERE NOT - CAST ( - + ( - 36 ) AS REAL ) * 36 >= NULL
----

query I rowsort
SELECT + col1 * + col2 FROM tab0 AS cor0 WHERE + col0 * col1 / col2 BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT ALL - SUM( + 37 ) - 73 AS col2 FROM tab0 cor0
----
-184

skipif mysql # not compatible
query I rowsort label-3689
SELECT ALL - SUM ( + 37 ) - 73 AS col2 FROM tab0 cor0
----
-184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3690
SELECT DISTINCT CAST( 95 AS SIGNED ) - + col1 * - col0 AS col0 FROM tab2 AS cor0
----
2441
5023
5120

skipif mysql # not compatible
query I rowsort label-3690
SELECT DISTINCT CAST ( 95 AS INTEGER ) - + col1 * - col0 AS col0 FROM tab2 AS cor0
----
2441
5023
5120

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-51
-85
-91

query I rowsort
SELECT col2 * - - col1 * + col2 + + ( ( col1 ) ) + + col2 AS col1 FROM tab1 AS cor0
----
129134
17469
217443

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3693
SELECT ALL - col1 * + col1 * CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-308367
-4410
-99

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL - col1 * + col1 * CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-308367
-4410
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3694
SELECT 98 * + 64 + + col2 DIV 11 AS col1 FROM tab1 AS cor0
----
6277
6278
6280

skipif mysql # not compatible
query I rowsort label-3694
SELECT 98 * + 64 + + col2 / 11 AS col1 FROM tab1 AS cor0
----
6277
6278
6280

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT ( 40 ) IS NULL
----
51
67
77

query I rowsort
SELECT + 5 FROM tab2 WHERE ( NULL ) IS NULL
----
5
5
5

query I rowsort
SELECT 99 * + + col1 + + - col1 + - col1 FROM tab0
----
2037
7857
97

query I rowsort
SELECT + col0 + - 44 FROM tab1
----
41
47
7

onlyif mysql # aggregate syntax: 
query II rowsort label-3699
SELECT ALL + COUNT( ALL - col0 ) AS col1, SUM( - col0 ) AS col1 FROM tab0
----
3
-199

skipif mysql # not compatible
query II rowsort label-3699
SELECT ALL + COUNT ( ALL - col0 ) AS col1, SUM ( - col0 ) AS col1 FROM tab0
----
3
-199

onlyif mysql # DIV for integer division: 
query I rowsort label-3700
SELECT + 67 DIV - col0 AS col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3700
SELECT + 67 / - col0 AS col0 FROM tab2
----
-1
-1
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 86 ) + col0 NOT BETWEEN + 74 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT - MIN( DISTINCT + col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-3702
SELECT - MIN ( DISTINCT + col0 ) AS col1 FROM tab1
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3703
SELECT DISTINCT + SUM( ALL + - ( - + CAST( col0 AS SIGNED ) ) ) * + COUNT( * ) FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-3703
SELECT DISTINCT + SUM ( ALL + - ( - + CAST ( col0 AS INTEGER ) ) ) * + COUNT ( * ) FROM tab1
----
681

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3704
SELECT ALL * FROM tab1 WHERE CAST( + + col1 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-3704
SELECT ALL * FROM tab1 WHERE CAST ( + + col1 AS INTEGER ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3705
SELECT ALL - CAST( - - col1 AS SIGNED ) * - 11 FROM tab1
----
154
517
55

skipif mysql # not compatible
query I rowsort label-3705
SELECT ALL - CAST ( - - col1 AS INTEGER ) * - 11 FROM tab1
----
154
517
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE + col0 >= - col1
----
-3

skipif mysql # not compatible
query I rowsort label-3706
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + col0 >= - col1
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 76 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT 28 * 31 + - 46 AS col2 FROM tab0 AS cor0
----
822
822
822

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT DISTINCT + SUM( ALL + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT + SUM ( ALL + col2 ) FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3710
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( + col0 AS SIGNED ) NOT BETWEEN + + 0 AND col1
----
15
81
47

skipif mysql # not compatible
query III rowsort label-3710
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( + col0 AS INTEGER ) NOT BETWEEN + + 0 AND col1
----
15
81
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3711
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + SUM( ALL + - 55 ) + - ( COUNT( * ) ) * + 2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3711
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + SUM ( ALL + - 55 ) + - ( COUNT ( * ) ) * + 2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT + 18 + - col2 AS col1 FROM tab1 AS cor0
----
-41
-50
-78

query I rowsort
SELECT 78 * - 36 + col1 * - ( - + col2 ) * - 77 AS col2 FROM tab2 AS cor0
----
-239968
-302030
-93129

onlyif mysql # DIV for integer division: 
query I rowsort label-3714
SELECT + 92 DIV + col2 + + + 84 - ( 31 ) FROM tab2 AS cor0
----
54
55
57

skipif mysql # not compatible
query I rowsort label-3714
SELECT + 92 / + col2 + + + 84 - ( 31 ) FROM tab2 AS cor0
----
54
55
57

query I rowsort
SELECT - - 24 + - - 91 FROM tab0 AS cor0
----
115
115
115

query I rowsort
SELECT ALL 93 * - col0 * + + 53 FROM tab1
----
-251379
-418965
-448539

query I rowsort
SELECT ALL + 51 + - col2 FROM tab1
----
-17
-45
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT ALL + ( MIN( DISTINCT 91 ) ) AS col1 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL + ( MIN ( DISTINCT 91 ) ) AS col1 FROM tab0
----
91

query I rowsort
SELECT - 12 * + - col1 FROM tab2
----
612
804
924

query I rowsort
SELECT ALL - col0 * - - 21 AS col0 FROM tab2 AS cor0
----
-1344
-1575
-966

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 38 * + col0 + col1 col0 FROM tab2 AS cor0
----
-1697
-2355
-2783

onlyif mysql # aggregate syntax: 
query II rowsort label-3722
SELECT - - 7 AS col0, + SUM( + col1 ) AS col2 FROM tab2 AS cor0
----
7
195

skipif mysql # not compatible
query II rowsort label-3722
SELECT - - 7 AS col0, + SUM ( + col1 ) AS col2 FROM tab2 AS cor0
----
7
195

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - ( + - col2 ) * col1
----

query I rowsort
SELECT ALL col1 + - + 16 AS col0 FROM tab1
----
-11
-2
31

query I rowsort
SELECT DISTINCT - col0 - + col2 + - ( - col0 ) * - - col0 * - - ( - col0 ) AS col2 FROM tab2
----
-262248
-422008
-97405

query I rowsort
SELECT DISTINCT - 22 + - col1 + - col2 * - ( 95 ) FROM tab0
----
4362
907
9382

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3727
SELECT ALL + CAST( NULL AS SIGNED ) - - + col1 * + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL + CAST ( NULL AS INTEGER ) - - + col1 * + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 38 * + 27 FROM tab2 AS cor0
----
1026
1026
1026

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 9 col2 FROM tab0 cor0
----
-9
-9
-9

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 73 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT - MIN( + col2 ) * + 38 FROM tab2 AS cor0
----
-874

skipif mysql # not compatible
query I rowsort label-3731
SELECT - MIN ( + col2 ) * + 38 FROM tab2 AS cor0
----
-874

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT ALL - COUNT( - 77 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL - COUNT ( - 77 ) FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3733
SELECT 8 DIV - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3733
SELECT 8 / - col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT ALL + COUNT( * ) * - 69 AS col2 FROM tab0
----
-207

skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL + COUNT ( * ) * - 69 AS col2 FROM tab0
----
-207

query II rowsort
SELECT col1, - 14 AS col1 FROM tab0
----
1
-14
21
-14
81
-14

query I rowsort
SELECT + - 9 FROM tab0 WHERE NOT - + 64 BETWEEN ( + - col1 + + ( - col0 ) ) AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3737
SELECT ALL CAST( - - 3 AS SIGNED ) col2 FROM tab2 AS cor0
----
3
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3737
SELECT ALL CAST ( - - 3 AS INTEGER ) col2 FROM tab2 AS cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT DISTINCT - MAX( 9 ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3738
SELECT DISTINCT - MAX ( 9 ) AS col2 FROM tab2 AS cor0
----
-9

query II rowsort
SELECT ALL + col0, + 96 FROM tab1 AS cor0
----
51
96
85
96
91
96

query II rowsort
SELECT - + col0, + ( - + col1 ) AS col1 FROM tab2 AS cor0
----
-46
-51
-64
-77
-75
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3741
SELECT DISTINCT - + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * ( - + col1 ) - - col0 * + col2 NOT BETWEEN NULL AND + col0
----
0

skipif mysql # not compatible
query I rowsort label-3741
SELECT DISTINCT - + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * ( - + col1 ) - - col0 * + col2 NOT BETWEEN NULL AND + col0
----
0

query I rowsort
SELECT col1 + + 45 AS col0 FROM tab2 WHERE NOT col0 <> NULL
----

query I rowsort
SELECT ALL - + 45 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 71160abf09589695379a70558726f0ba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3745
SELECT - MIN( - col0 ) AS col1, + CAST( NULL AS SIGNED ) col1 FROM tab1
----
91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3745
SELECT - MIN ( - col0 ) AS col1, + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT DISTINCT - - ( + - COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT - - ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = 40
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3748
SELECT ALL - - col1 DIV - col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3748
SELECT ALL - - col1 / - col1 FROM tab0 AS cor0
----
-1
-1
-1

query II rowsort
SELECT + ( col2 ) AS col1, ( - 95 ) * - ( - ( - - 65 ) ) * + col2 * col0 + - col1 AS col1 FROM tab0 AS cor0
----
10
-5372271
47
-4353456
99
-59298526

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3750
SELECT * FROM tab0 cor0 WHERE NOT ( - col0 * - col1 * 44 + 84 * - col2 * - col0 ) <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3750
SELECT * FROM tab0 cor0 WHERE NOT ( - col0 * - col1 * 44 + 84 * - col2 * - col0 ) <> CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT MAX( DISTINCT + - 12 ) AS col2 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-3751
SELECT MAX ( DISTINCT + - 12 ) AS col2 FROM tab1
----
-12

query III rowsort
SELECT * FROM tab0 WHERE + + 52 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3753
SELECT DISTINCT - CAST( + col1 AS SIGNED ) + - - col1 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) + - - col1 AS col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3754
SELECT DISTINCT 75 DIV col0 FROM tab0
----
0
5

skipif mysql # not compatible
query I rowsort label-3754
SELECT DISTINCT 75 / col0 FROM tab0
----
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT DISTINCT MAX( ALL col1 ) col2 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3755
SELECT DISTINCT MAX ( ALL col1 ) col2 FROM tab2
----
77

query I rowsort
SELECT ( + 85 ) + + col2 FROM tab0
----
132
184
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3757
SELECT 14 + + + ( - col2 ) + - 44 * col2 DIV + col1 FROM tab2
----
-28
-48
-82

skipif mysql # not compatible
query I rowsort label-3757
SELECT 14 + + + ( - col2 ) + - 44 * col2 / + col1 FROM tab2
----
-28
-48
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT ALL MIN( DISTINCT col0 ) AS col2 FROM tab2 WHERE NOT 49 IS NOT NULL AND NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3758
SELECT ALL MIN ( DISTINCT col0 ) AS col2 FROM tab2 WHERE NOT 49 IS NOT NULL AND NOT ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT + 88 * - - col2 FROM tab1
----
5192
5984
8448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3760
SELECT ALL CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3760
SELECT ALL CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT COUNT( ALL 49 ) - - - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3761
SELECT COUNT ( ALL 49 ) - - - COUNT ( * ) FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * col1 - + col2 col2 FROM tab1
----
1248
236
3128

query II rowsort
SELECT col0, col1 + col1 FROM tab0 AS cor0
----
15
162
87
42
97
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3764
SELECT DISTINCT + CAST( + - col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3764
SELECT DISTINCT + CAST ( + - col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT - 44 * + 17 FROM tab2 AS cor0 WHERE NOT col2 <= 61
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3766
SELECT DISTINCT COUNT( col1 ) AS col2, CAST( NULL AS DECIMAL ) FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3766
SELECT DISTINCT COUNT ( col1 ) AS col2, CAST ( NULL AS REAL ) FROM tab0
----
3
NULL

query I rowsort
SELECT + col0 / col0 * - + col0 * + col1 AS col0 FROM tab0 WHERE NOT ( NOT NULL > 19 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3768
SELECT COUNT( * ) DIV + 54 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3768
SELECT COUNT ( * ) / + 54 AS col0 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3769
SELECT DISTINCT + ( + + col2 ) DIV - col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3769
SELECT DISTINCT + ( + + col2 ) / - col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT DISTINCT MAX( + col2 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3770
SELECT DISTINCT MAX ( + col2 ) AS col2 FROM tab1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3771
SELECT ALL 94 DIV + 12 AS col1 FROM tab2
----
7
7
7

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL 94 / + 12 AS col1 FROM tab2
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT + + MAX( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3772
SELECT + + MAX ( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3773
SELECT + CAST( 3 AS SIGNED ) FROM tab1 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-3773
SELECT + CAST ( 3 AS INTEGER ) FROM tab1 AS cor0
----
3
3
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IS NULL OR ( NULL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT DISTINCT + 27 * + MIN( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 - 24 IS NULL
----
1377

skipif mysql # not compatible
query I rowsort label-3775
SELECT DISTINCT + 27 * + MIN ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 - 24 IS NULL
----
1377

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3776
SELECT + col0 DIV col1 DIV 51 + + CAST( + 70 AS SIGNED ) + - col1 FROM tab0 AS cor0
----
-11
49
70

skipif mysql # not compatible
query I rowsort label-3776
SELECT + col0 / col1 / 51 + + CAST ( + 70 AS INTEGER ) + - col1 FROM tab0 AS cor0
----
-11
49
70

query I rowsort
SELECT - - ( + - col1 ) * - col0 + + col2 * + col0 - 61 * - 35 * + - col2 AS col0 FROM tab1 AS cor0
----
-120525
-134715
-199350

query I rowsort
SELECT - + col2 * - 49 + - - 93 FROM tab0 cor0
----
2396
4944
583

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT ALL + MAX( DISTINCT + 88 ) + + 27 FROM tab1 AS cor0
----
115

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL + MAX ( DISTINCT + 88 ) + + 27 FROM tab1 AS cor0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT + + COUNT( DISTINCT 4 ) + 74 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3780
SELECT + + COUNT ( DISTINCT 4 ) + 74 FROM tab1 AS cor0
----
75

query II rowsort
SELECT ALL + + col1 AS col1, + col1 + + 84 FROM tab1 AS cor0
----
14
98
47
131
5
89

query I rowsort
SELECT DISTINCT + + 46 + - + 55 AS col1 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT ALL - - col2 * + 56 FROM tab0 WHERE 93 * - col1 NOT IN ( + col2 * col2, 26 + - col0 )
----
2632
5544
560

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - + col2
----

query II rowsort
SELECT DISTINCT col0 - + col0, + col1 AS col0 FROM tab0
----
0
1
0
21
0
81

query I rowsort
SELECT DISTINCT - col0 + - 36 AS col2 FROM tab0
----
-123
-133
-51

query II rowsort
SELECT DISTINCT - + col0 * - 25, + col1 FROM tab1 AS cor0
----
1275
14
2125
5
2275
47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - - col1 IS NOT NULL AND + 92 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 72 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # DIV for integer division: 
query II rowsort label-3790
SELECT ALL + col2 DIV + col1 + + + 42 col1, - 31 col0 FROM tab1
----
43
-31
48
-31
53
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3790
SELECT ALL + col2 / + col1 + + + 42 col1, - 31 col0 FROM tab1
----
43
-31
48
-31
53
-31

query I rowsort
SELECT DISTINCT - col1 * - 1 AS col0 FROM tab2 AS cor0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 83 * + 77 * + + 28 AS col1, - col2 col2 FROM tab2 AS cor0
----
178948
-23
178948
-40
178948
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3793
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 < NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3794
SELECT MAX( DISTINCT - col0 ) * + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3794
SELECT MAX ( DISTINCT - col0 ) * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3795
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) * - 43 + - MAX( DISTINCT - 99 ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-3795
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) * - 43 + - MAX ( DISTINCT - 99 ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3796
SELECT DISTINCT + COUNT( * ) DIV - + COUNT( * ) + - 65 FROM tab0 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3796
SELECT DISTINCT + COUNT ( * ) / - + COUNT ( * ) + - 65 FROM tab0 cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT - 90 * - SUM( DISTINCT - col2 ) AS col1 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3797
SELECT - 90 * - SUM ( DISTINCT - col2 ) AS col1 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT - col0 * col1 * - 16 - 82 AS col1 FROM tab2 cor0
----
37454
78766
80318

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT MAX( DISTINCT - col0 ) AS col0 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3799
SELECT MAX ( DISTINCT - col0 ) AS col0 FROM tab0 cor0
----
-15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 IN ( + 55 * + - col1 * + 24 - + col2 * - - col2, - ( - - col2 ) * - 21, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * 24 + col2 AS col1 FROM tab1 WHERE NOT 98 * - col1 * col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 3 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3803
SELECT * FROM tab0 WHERE NOT 5 IN ( CAST( NULL AS SIGNED ) + - col0 )
----

skipif mysql # not compatible
query III rowsort label-3803
SELECT * FROM tab0 WHERE NOT 5 IN ( CAST ( NULL AS INTEGER ) + - col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3804
SELECT + 78 col2, - COUNT( * ) FROM tab0
----
78
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3804
SELECT + 78 col2, - COUNT ( * ) FROM tab0
----
78
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 80 col0, col1 AS col0 FROM tab0
----
80
1
80
21
80
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3806
SELECT COUNT( * ) DIV - + 94 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3806
SELECT COUNT ( * ) / - + 94 col2 FROM tab2
----
0

query II rowsort
SELECT DISTINCT col1 AS col2, ( - + col0 ) - - col1 + + col1 AS col2 FROM tab0
----
1
-95
21
-45
81
147

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 21 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT - - COUNT( DISTINCT - 6 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3809
SELECT - - COUNT ( DISTINCT - 6 ) FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3810
SELECT + + CAST( + 98 AS SIGNED ) * col1 FROM tab1 AS cor0
----
1372
4606
490

skipif mysql # not compatible
query I rowsort label-3810
SELECT + + CAST ( + 98 AS INTEGER ) * col1 FROM tab1 AS cor0
----
1372
4606
490

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + + ( col1 ) ) col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT - - ( - + col1 ) + - - col1 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT + ( + COUNT( + - col1 ) ) * + - 39 FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-3813
SELECT + ( + COUNT ( + - col1 ) ) * + - 39 FROM tab0
----
-117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + col1 AS col0, + 57 col1 FROM tab1
----
425
57
4277
57
714
57

onlyif mysql # DIV for integer division: 
query I rowsort label-3815
SELECT ALL - col2 DIV 59 DIV - col1 + + col0 AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL - col2 / 59 / - col1 + + col0 AS col1 FROM tab2
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 2 * - - 66 NOT BETWEEN NULL AND - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 + - 57 FROM tab0 AS cor0
----
-104
-156
-67

query I rowsort
SELECT 72 + - - col1 / + 10 + + + col2 - + ( + + 58 ) * - col1 AS col0 FROM tab2 AS cor0 WHERE + col1 + col1 = - 73
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + + - col1 + - col2 BETWEEN NULL AND col0
----

query I rowsort
SELECT - 44 + + col0 + - col0 AS col2 FROM tab2
----
-44
-44
-44

query I rowsort
SELECT ALL col0 + + 91 FROM tab1
----
142
176
182

onlyif mysql # DIV for integer division: 
query I rowsort label-3822
SELECT DISTINCT - 7 DIV + col2 + + ( + + col0 ) + 7 * col2 AS col0 FROM tab0
----
157
344
790

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT - 7 / + col2 + + ( + + col0 ) + 7 * col2 AS col0 FROM tab0
----
157
344
790

query I rowsort
SELECT + col0 - - - col1 - col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 + 73 AS col1 FROM tab2
----
119
137
148

query I rowsort
SELECT DISTINCT col2 + + 36 FROM tab0
----
135
46
83

query I rowsort
SELECT ALL 70 * - 76 - - col0 + + - 25 AS col1 FROM tab2
----
-5270
-5281
-5299

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT + + COUNT( * ) * - - COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3827
SELECT + + COUNT ( * ) * - - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 36 * + 85 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT ( - COUNT( * ) ) * 81 AS col2 FROM tab1 cor0
----
-243

skipif mysql # not compatible
query I rowsort label-3829
SELECT ( - COUNT ( * ) ) * 81 AS col2 FROM tab1 cor0
----
-243

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 76 > - + col1 / - col1
----

query IIIIII rowsort
SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT + 10 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col1 * + + col2 / - - col2, + col2 * + col0 + + col1 + + 41 * + col0 FROM tab1 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT + + col0 * + col0 * col1 + + col1 AS col0 FROM tab0 AS cor0
----
158970
18306
9410

query I rowsort
SELECT 57 * - + col1 FROM tab0 AS cor0
----
-1197
-4617
-57

query I rowsort
SELECT ( 17 ) AS col2 FROM tab1 AS cor0
----
17
17
17

query I rowsort
SELECT ALL + + col0 * col0 + + + col1 AS col0 FROM tab0 AS cor0
----
306
7590
9410

query II rowsort
SELECT + col2 * - 68 AS col0, + 67 * - col1 FROM tab0 AS cor0
----
-3196
-5427
-6732
-67
-680
-1407

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3838
SELECT DISTINCT + + ( + - col1 ) DIV - CAST( + - col2 AS SIGNED ) + ( 58 ) * - 36 AS col1 FROM tab2 AS cor0
----
-2089
-2090

skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT + + ( + - col1 ) / - CAST ( + - col2 AS INTEGER ) + ( 58 ) * - 36 AS col1 FROM tab2 AS cor0
----
-2089
-2090

query I rowsort
SELECT 80 * 38 AS col0 FROM tab1
----
3040
3040
3040

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3840
SELECT DISTINCT * FROM tab2 WHERE NOT - + col2 * - CAST( + + 12 AS SIGNED ) >= - 22
----

skipif mysql # not compatible
query III rowsort label-3840
SELECT DISTINCT * FROM tab2 WHERE NOT - + col2 * - CAST ( + + 12 AS INTEGER ) >= - 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT DISTINCT + COUNT( * ) * - 9 AS col0 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-3841
SELECT DISTINCT + COUNT ( * ) * - 9 AS col0 FROM tab1
----
-27

query II rowsort
SELECT ALL - col2, 26 + - - col2 + + ( 34 ) AS col1 FROM tab0
----
-10
70
-47
107
-99
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3843
SELECT - + CAST( - col0 AS SIGNED ) * - col1 FROM tab1 WHERE NOT - + col2 BETWEEN col1 + - col0 AND NULL
----
-4277
-714

skipif mysql # not compatible
query I rowsort label-3843
SELECT - + CAST ( - col0 AS INTEGER ) * - col1 FROM tab1 WHERE NOT - + col2 BETWEEN col1 + - col0 AND NULL
----
-4277
-714

query II rowsort
SELECT ALL col2 * + 61 * + 87, col0 FROM tab1 cor0
----
313113
85
360876
91
509472
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3845
SELECT DISTINCT + + MAX( - col0 ) DIV - 11 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3845
SELECT DISTINCT + + MAX ( - col0 ) / - 11 FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 + col0 * - + 26 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3847
SELECT ALL 38 * - col1 + + CAST( + 63 AS SIGNED ) / - - 53 FROM tab0 WHERE - 63 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL 38 * - col1 + + CAST ( + 63 AS INTEGER ) / - - 53 FROM tab0 WHERE - 63 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 46 + - ( 58 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL ( - col0 ) + 55 FROM tab2
----
-20
-9
9

query I rowsort
SELECT - ( col0 ) + 30 AS col2 FROM tab0 AS cor0
----
-57
-67
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IN ( col2, - col2 + col2, 60 )
----
0

skipif mysql # not compatible
query I rowsort label-3851
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IN ( col2, - col2 + col2, 60 )
----
0

query I rowsort
SELECT - + 4 + - + col0 FROM tab2 AS cor0
----
-50
-68
-79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3853
SELECT * FROM tab1 AS cor0 WHERE CAST( - 16 AS SIGNED ) + + + col2 + - ( - + ( - ( col2 ) ) ) * col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3853
SELECT * FROM tab1 AS cor0 WHERE CAST ( - 16 AS INTEGER ) + + + col2 + - ( - + ( - ( col2 ) ) ) * col0 IS NULL
----

query I rowsort
SELECT + col1 + + col2 * 77 AS col1 FROM tab0 AS cor0
----
3700
7624
791

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT DISTINCT SUM( - 42 ) AS col1 FROM tab2 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT SUM ( - 42 ) AS col1 FROM tab2 AS cor0
----
-126

query I rowsort
SELECT - + ( - 69 ) * - col0 FROM tab2 AS cor0
----
-3174
-4416
-5175

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 69 - col0 NOT BETWEEN - 26 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3858
SELECT col2 DIV + + col1 + + 69 + + + col2 FROM tab2 cor0
----
109
127
92

skipif mysql # not compatible
query I rowsort label-3858
SELECT col2 / + + col1 + + 69 + + + col2 FROM tab2 cor0
----
109
127
92

query I rowsort
SELECT DISTINCT + 16 + - - 45 FROM tab2 AS cor0
----
61

query I rowsort
SELECT DISTINCT ( - 18 ) FROM tab0 AS cor0
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( + + col2 ) AS col2, col1 * 7 col1 FROM tab0
----
10
147
47
567
99
7

query I rowsort
SELECT ALL + 59 FROM tab2 WHERE - ( - - 58 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT ALL + COUNT( * ) + 52 * COUNT( * ) FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-3863
SELECT ALL + COUNT ( * ) + 52 * COUNT ( * ) FROM tab2
----
159

query I rowsort
SELECT DISTINCT 25 - + col0 + - - 44 * - col1 FROM tab0
----
-116
-3554
-986

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT ALL - COUNT( * ) * - - COUNT( * ) - + - COUNT( ALL + 17 ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL - COUNT ( * ) * - - COUNT ( * ) - + - COUNT ( ALL + 17 ) FROM tab2
----
-6

query II rowsort
SELECT + + col1 * + - col0 - + col1 AS col2, 46 FROM tab1 AS cor0
----
-430
46
-4324
46
-728
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT ALL - MAX( + 67 ) - - 20 col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3867
SELECT ALL - MAX ( + 67 ) - - 20 col2 FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3868
SELECT - MAX( DISTINCT - + 44 ), - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
44
NULL

skipif mysql # not compatible
query II rowsort label-3868
SELECT - MAX ( DISTINCT - + 44 ), - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
44
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + 42 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3869
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + 42 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT ALL - MIN( ALL + col0 ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-3870
SELECT ALL - MIN ( ALL + col0 ) AS col0 FROM tab2
----
-46

query I rowsort
SELECT DISTINCT + - ( - - col1 ) * - col0 AS col2 FROM tab0 AS cor0
----
1215
1827
97

query II rowsort
SELECT col0 AS col0, 60 + - col2 + - 29 * + 37 AS col0 FROM tab1 AS cor0
----
51
-1109
85
-1072
91
-1081

query II rowsort
SELECT ( + + ( - col1 ) ), + col2 AS col0 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query II rowsort
SELECT ALL + - col0 AS col0, 91 AS col1 FROM tab0 AS cor0
----
-15
91
-87
91
-97
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3875
SELECT DISTINCT 10 DIV - col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3875
SELECT DISTINCT 10 / - col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

query I rowsort
SELECT col2 * + - 61 AS col2 FROM tab2
----
-1403
-2440
-3538

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT ALL 58 + + - COUNT( col0 ) AS col0 FROM tab1 WHERE - 82 IS NOT NULL
----
55

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL 58 + + - COUNT ( col0 ) AS col0 FROM tab1 WHERE - 82 IS NOT NULL
----
55

query I rowsort
SELECT col0 * + 56 FROM tab2
----
2576
3584
4200

query I rowsort
SELECT DISTINCT col2 * - 65 FROM tab1
----
-3835
-4420
-6240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3880
SELECT - 31 DIV + SUM( ALL + col1 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3880
SELECT - 31 / + SUM ( ALL + col1 ) FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT col0 NOT IN ( + col1, - 47 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + 18, col1 col0 FROM tab1 AS cor0
----
114
14
77
5
86
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT DISTINCT - ( - MIN( DISTINCT col2 ) ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3883
SELECT DISTINCT - ( - MIN ( DISTINCT col2 ) ) AS col2 FROM tab2 AS cor0
----
23

query I rowsort
SELECT ALL ( + 98 ) AS col0 FROM tab2 AS cor0
----
98
98
98

query I rowsort
SELECT DISTINCT - col1 * - col0 * - col0 + col2 AS col2 FROM tab0 AS cor0
----
-158939
-18178
-9310

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT COUNT( * ) * - 0 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3886
SELECT COUNT ( * ) * - 0 AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL 64 - + 88 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col0, + col1 col2 FROM tab0 cor0
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3889
SELECT 12 * - col1 - - 15 / - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3889
SELECT 12 * - col1 - - 15 / - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE col2 + 50 - - 59 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT ALL + COUNT( 75 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3891
SELECT ALL + COUNT ( 75 ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 >= - ( - 72 )
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT 61 + - MIN( DISTINCT + + col0 ) FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3893
SELECT 61 + - MIN ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
15

query I rowsort
SELECT - - col0 + - 0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3895
SELECT CAST( NULL AS SIGNED ) + + + SUM( - - col1 ) + COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3895
SELECT CAST ( NULL AS INTEGER ) + + + SUM ( - - col1 ) + COUNT ( * ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT DISTINCT - COUNT( * ) + + 63 * - SUM( + col2 ) AS col0 FROM tab1
----
-14052

skipif mysql # not compatible
query I rowsort label-3896
SELECT DISTINCT - COUNT ( * ) + + 63 * - SUM ( + col2 ) AS col0 FROM tab1
----
-14052

query I rowsort
SELECT ALL - ( - 90 ) - + 11 * + - 61 FROM tab0
----
761
761
761

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3898
SELECT DISTINCT col0 - + col1 * + ( + - col2 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3898
SELECT DISTINCT col0 - + col1 * + ( + - col2 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + col2 * - - col1 * + 91 FROM tab0
----
19110
346437
9009

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT ALL + COUNT( * ) - - ( + + 72 ) FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL + COUNT ( * ) - - ( + + 72 ) FROM tab0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 72 col0 FROM tab1 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-3902
SELECT - COUNT( + col1 ) AS col2, 32 AS col2 FROM tab1 AS cor0
----
-3
32

skipif mysql # not compatible
query II rowsort label-3902
SELECT - COUNT ( + col1 ) AS col2, 32 AS col2 FROM tab1 AS cor0
----
-3
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT + - MAX( + + 53 ) * - 79 FROM tab0 AS cor0
----
4187

skipif mysql # not compatible
query I rowsort label-3903
SELECT + - MAX ( + + 53 ) * - 79 FROM tab0 AS cor0
----
4187

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT DISTINCT + SUM( - - 9 ) AS col2 FROM tab1 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT + SUM ( - - 9 ) AS col2 FROM tab1 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3905
SELECT + col0 * CAST( 98 AS SIGNED ) col2 FROM tab1
----
4998
8330
8918

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3905
SELECT + col0 * CAST ( 98 AS INTEGER ) col2 FROM tab1
----
4998
8330
8918

query I rowsort
SELECT - col0 * 84 AS col2 FROM tab2
----
-3864
-5376
-6300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3907
SELECT DISTINCT + CAST( + SUM( DISTINCT + 94 ) AS SIGNED ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-3907
SELECT DISTINCT + CAST ( + SUM ( DISTINCT + 94 ) AS INTEGER ) FROM tab1
----
94

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( 70 )
----

query II rowsort
SELECT DISTINCT + col2 * 60, 53 AS col0 FROM tab2 AS cor0
----
1380
53
2400
53
3480
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3910
SELECT CAST( - - 16 AS SIGNED ) FROM tab2
----
16
16
16

skipif mysql # not compatible
query I rowsort label-3910
SELECT CAST ( - - 16 AS INTEGER ) FROM tab2
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT DISTINCT - COUNT( DISTINCT - col2 ) + COUNT( * ) + + + 64 * - - COUNT( * ) + - 33 AS col2 FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT - COUNT ( DISTINCT - col2 ) + COUNT ( * ) + + + 64 * - - COUNT ( * ) + - 33 AS col2 FROM tab1
----
159

query I rowsort
SELECT DISTINCT 27 * col0 FROM tab0
----
2349
2619
405

onlyif mysql # aggregate syntax: 
query II rowsort label-3913
SELECT DISTINCT COUNT( * ), + COUNT( * ) AS col1 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-3913
SELECT DISTINCT COUNT ( * ), + COUNT ( * ) AS col1 FROM tab1
----
3
3

query I rowsort
SELECT 8 * + col0 FROM tab2 AS cor0
----
368
512
600

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= col0 * 92
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3916
SELECT + + 9, COUNT( * ) AS col1 FROM tab0 AS cor0
----
9
3

skipif mysql # not compatible
query II rowsort label-3916
SELECT + + 9, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9
3

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT ALL + COUNT( DISTINCT + ( - + ( - col2 ) ) ) + - - 58 AS col2 FROM tab1 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL + COUNT ( DISTINCT + ( - + ( - col2 ) ) ) + - - 58 AS col2 FROM tab1 AS cor0
----
61

query I rowsort
SELECT DISTINCT - col1 - - - col1 AS col0 FROM tab1
----
-10
-28
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3920
SELECT col1 + CAST( NULL AS SIGNED ) AS col1, + 32 + + + col0 AS col1 FROM tab0
----
NULL
119
NULL
129
NULL
47

skipif mysql # not compatible
query II rowsort label-3920
SELECT col1 + CAST ( NULL AS INTEGER ) AS col1, + 32 + + + col0 AS col1 FROM tab0
----
NULL
119
NULL
129
NULL
47

query I rowsort
SELECT ALL + 56 FROM tab2 WHERE NOT ( + 60 ) * + 59 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT + ( COUNT( * ) ) * 18 AS col1 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3922
SELECT + ( COUNT ( * ) ) * 18 AS col1 FROM tab1 AS cor0
----
54

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE + ( - col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3924
SELECT DISTINCT + CAST( - - col2 AS SIGNED ), - ( + + col0 ) AS col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

skipif mysql # not compatible
query II rowsort label-3924
SELECT DISTINCT + CAST ( - - col2 AS INTEGER ), - ( + + col0 ) AS col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3925
SELECT ALL + - col2 * - - CAST( NULL AS SIGNED ) / + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL + - col2 * - - CAST ( NULL AS INTEGER ) / + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT ALL + ( 2 ) * + + SUM( ALL + col2 ) FROM tab0 AS cor0
----
312

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL + ( 2 ) * + + SUM ( ALL + col2 ) FROM tab0 AS cor0
----
312

query I rowsort
SELECT ALL + - 92 * - ( col1 ) FROM tab2 AS cor0
----
4692
6164
7084

query I rowsort
SELECT DISTINCT 74 + + - col0 AS col1 FROM tab1 cor0
----
-11
-17
23

query I rowsort
SELECT + col0 * col0 FROM tab2 WHERE NULL >= + - 84
----

query I rowsort
SELECT ALL col1 * col1 + col1 + - - col0 + - col1 AS col2 FROM tab0
----
528
6576
98

query I rowsort
SELECT ALL ( + 68 ) FROM tab2
----
68
68
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3932
SELECT DISTINCT 0 DIV + col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3932
SELECT DISTINCT 0 / + col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3933
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( - col1 - - CAST( NULL AS SIGNED ) IS NULL ) )
----

skipif mysql # not compatible
query III rowsort label-3933
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( - col1 - - CAST ( NULL AS INTEGER ) IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT - SUM( col1 ) col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3934
SELECT - SUM ( col1 ) col0 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT DISTINCT + 97 * + col0 AS col1 FROM tab0 AS cor0
----
1455
8439
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT DISTINCT - MIN( + 89 ) FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT - MIN ( + 89 ) FROM tab1
----
-89

query I rowsort
SELECT + col1 * + 52 AS col2 FROM tab1
----
2444
260
728

query I rowsort
SELECT - - col1 * - + 66 FROM tab0 AS cor0
----
-1386
-5346
-66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 90 + + col0 <> - 58
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3940
SELECT col1 * - CAST( 70 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3940
SELECT col1 * - CAST ( 70 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----

query II rowsort
SELECT ALL col2 AS col1, 50 * - col0 AS col0 FROM tab0 AS cor0
----
10
-4350
47
-750
99
-4850

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT ALL MAX( col2 ) + + - COUNT( * ) FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-3943
SELECT ALL MAX ( col2 ) + + - COUNT ( * ) FROM tab0
----
96

query I rowsort
SELECT - col2 FROM tab2 WHERE + - ( - col1 ) NOT BETWEEN - + col1 + - 72 + + 34 AND - col2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT SUM( ALL + 60 ) + + COUNT( * ) FROM tab2
----
183

skipif mysql # not compatible
query I rowsort label-3945
SELECT SUM ( ALL + 60 ) + + COUNT ( * ) FROM tab2
----
183

query I rowsort
SELECT 56 * + - col1 + - col1 + + 73 FROM tab1
----
-212
-2606
-725

query III rowsort
SELECT * FROM tab0 WHERE - 27 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT COUNT( * ) + + 70 FROM tab0 cor0
----
73

skipif mysql # not compatible
query I rowsort label-3948
SELECT COUNT ( * ) + + 70 FROM tab0 cor0
----
73

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NULL <= ( + 53 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT ALL - 84 * COUNT( * ) FROM tab2 cor0
----
-252

skipif mysql # not compatible
query I rowsort label-3950
SELECT ALL - 84 * COUNT ( * ) FROM tab2 cor0
----
-252

query I rowsort
SELECT DISTINCT - ( col1 ) - - col2 + - col0 + + col1 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT DISTINCT - + 96 * col1 * - + col1 FROM tab0 AS cor0
----
42336
629856
96

query I rowsort
SELECT ALL + - col2 - - 63 AS col0 FROM tab0 cor0
----
-36
16
53

query I rowsort
SELECT ALL + col1 * + - col0 - - 20 + + col0 + - col0 AS col0 FROM tab2 cor0
----
-2326
-4908
-5005

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT DISTINCT + - COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT + - COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
-9

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN NULL AND - 21
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + col1, - col0 * + + col1, + 66 / - col2 + + - col0, + 69 )
----

query I rowsort
SELECT + - col1 * 96 + 0 + col1 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT DISTINCT + ( - ( - COUNT( * ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT + ( - ( - COUNT ( * ) ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT DISTINCT SUM( DISTINCT - 95 ) col0 FROM tab1
----
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3960
SELECT DISTINCT SUM ( DISTINCT - 95 ) col0 FROM tab1
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 86 ) col1 FROM tab1
----
86
86
86

query I rowsort
SELECT DISTINCT 9 * + 90 AS col0 FROM tab0
----
810

query I rowsort
SELECT col2 * col2 * col2 * - col0 FROM tab0
----
-1557345
-87000
-94119003

query III rowsort
SELECT ALL * FROM tab2 WHERE - 21 + + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT - + COUNT( * ) * - - 39 AS col1 FROM tab0 cor0
----
-117

skipif mysql # not compatible
query I rowsort label-3965
SELECT - + COUNT ( * ) * - - 39 AS col1 FROM tab0 cor0
----
-117

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col2 ) NOT BETWEEN col1 AND col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * - col2 * - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3968
SELECT ALL - + col1 DIV col0 + + col1 AS col2, + 30 FROM tab2 AS cor0
----
50
30
67
30
76
30

skipif mysql # not compatible
query II rowsort label-3968
SELECT ALL - + col1 / col0 + + col1 AS col2, + 30 FROM tab2 AS cor0
----
50
30
67
30
76
30

query I rowsort
SELECT + col2 + 40 AS col1 FROM tab2 AS cor0
----
63
80
98

query I rowsort
SELECT ( + + col2 ) + - col1 AS col1 FROM tab0 cor0
----
-11
-34
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 43 col1 FROM tab1 AS cor0
----
-43
-43
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT - COUNT( * ) + + 79 AS col2 FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-3972
SELECT - COUNT ( * ) + + 79 AS col2 FROM tab2 AS cor0
----
76

query I rowsort
SELECT DISTINCT + - ( - + col2 ) FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * - col1 BETWEEN col1 + + + col0 * col2 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT DISTINCT COUNT( * ) + ( + COUNT( * ) ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3975
SELECT DISTINCT COUNT ( * ) + ( + COUNT ( * ) ) FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3976
SELECT ALL col1 + - 46 * col2 - - CAST( NULL AS SIGNED ) - 28 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL col1 + - 46 * col2 - - CAST ( NULL AS INTEGER ) - 28 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3977
SELECT ALL - CAST( + SUM( DISTINCT - 57 ) AS SIGNED ) FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL - CAST ( + SUM ( DISTINCT - 57 ) AS INTEGER ) FROM tab0
----
57

query I rowsort
SELECT ALL - col1 + 87 AS col0 FROM tab1
----
40
73
82

query II rowsort
SELECT ALL col0 * - + col0, - 85 AS col1 FROM tab0
----
-225
-85
-7569
-85
-9409
-85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + - ( - + col0 ) * - ( + + col0 ) + + - col2 AND NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col0, 35 AS col0 FROM tab0 AS cor0
----
15
35
87
35
97
35

query I rowsort
SELECT ALL col2 + - 32 AS col2 FROM tab0 AS cor0
----
-22
15
67

query III rowsort
SELECT * FROM tab0 WHERE + 61 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3984
SELECT ALL 87 + 24 * CAST( NULL AS SIGNED ) + 90 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3984
SELECT ALL 87 + 24 * CAST ( NULL AS INTEGER ) + 90 AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT + col1 * + + col0 AS col0, col0 FROM tab0
----
1215
15
1827
87
97
97

query I rowsort
SELECT ALL - col0 - + col1 AS col2 FROM tab1 cor0
----
-138
-65
-90

query I rowsort
SELECT ALL - 97 * + - ( - 68 ) - + col0 AS col0 FROM tab2 AS cor0
----
-6642
-6660
-6671

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT - MAX( ( - 19 ) ) FROM tab1 AS cor0 WHERE + col0 BETWEEN - col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3988
SELECT - MAX ( ( - 19 ) ) FROM tab1 AS cor0 WHERE + col0 BETWEEN - col1 AND NULL
----
NULL

query I rowsort
SELECT DISTINCT + - col0 * - 2 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3990
SELECT - CAST( NULL AS DECIMAL ) + ( - col2 ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND - ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-3990
SELECT - CAST ( NULL AS REAL ) + ( - col2 ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND - ( - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + - 10 * + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT DISTINCT - SUM( ALL - - 87 ) AS col0 FROM tab2 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-3993
SELECT DISTINCT - SUM ( ALL - - 87 ) AS col0 FROM tab2 AS cor0
----
-261

onlyif mysql # aggregate syntax: 
query II rowsort label-3994
SELECT DISTINCT - SUM( DISTINCT - col0 ), + 62 AS col2 FROM tab1 AS cor0
----
227
62

skipif mysql # not compatible
query II rowsort label-3994
SELECT DISTINCT - SUM ( DISTINCT - col0 ), + 62 AS col2 FROM tab1 AS cor0
----
227
62

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 96 <> + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT ALL - COUNT( + + col0 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3996
SELECT ALL - COUNT ( + + col0 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + 35 * + - 15 AS col1 FROM tab1
----
-525

query I rowsort
SELECT ALL 0 FROM tab1 WHERE NULL IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE + col2 / - 21 < - 76
----
0

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE + col2 / - 21 < - 76
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4000
SELECT 22 DIV - - COUNT( * ) AS col1 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-4000
SELECT 22 / - - COUNT ( * ) AS col1 FROM tab1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4001
SELECT col2, CAST( - 2 AS SIGNED ) AS col0 FROM tab1
----
59
-2
68
-2
96
-2

skipif mysql # not compatible
query II rowsort label-4001
SELECT col2, CAST ( - 2 AS INTEGER ) AS col0 FROM tab1
----
59
-2
68
-2
96
-2

query I rowsort
SELECT DISTINCT - 8 * + - col2 FROM tab0
----
376
792
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 95 col1 FROM tab1 AS cor0
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-4004
SELECT DISTINCT - col2 DIV - 73 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4004
SELECT DISTINCT - col2 / - 73 FROM tab1 AS cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4005
SELECT DISTINCT col2 DIV - 45 FROM tab1 cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-4005
SELECT DISTINCT col2 / - 45 FROM tab1 cor0
----
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4006
SELECT + + CAST( 9 AS SIGNED ) * - 15 * - ( col0 ) + col0 * - col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
3712
3864
5100

skipif mysql # not compatible
query I rowsort label-4006
SELECT + + CAST ( 9 AS INTEGER ) * - 15 * - ( col0 ) + col0 * - col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
3712
3864
5100

query I rowsort
SELECT DISTINCT 55 * 37 * + 45 AS col0 FROM tab1 AS cor0
----
91575

query I rowsort
SELECT - 66 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 * - + 56 * - 8 col1 FROM tab2
----
35392
35392
35392

query I rowsort
SELECT DISTINCT - col0 * + + ( + col1 ) AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT - - col1 + + + 36 AS col0 FROM tab0 AS cor0 WHERE + col0 * - 62 + 50 IS NOT NULL
----
117
37
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT COUNT( * ) AS col1 FROM tab1 cor0 WHERE + ( - col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4012
SELECT COUNT ( * ) AS col1 FROM tab1 cor0 WHERE + ( - col1 ) IS NULL
----
0

query I rowsort
SELECT ALL - + ( - + 7 ) FROM tab1 AS cor0
----
7
7
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4014
SELECT - COUNT( * ) * - + ( - CAST( NULL AS SIGNED ) ) + + - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4014
SELECT - COUNT ( * ) * - + ( - CAST ( NULL AS INTEGER ) ) + + - COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT ALL 36 * - COUNT( * ) + - ( - 95 ) AS col0 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-4015
SELECT ALL 36 * - COUNT ( * ) + - ( - 95 ) AS col0 FROM tab2
----
-13

query I rowsort
SELECT ALL - ( + 37 ) AS col0 FROM tab0
----
-37
-37
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4017
SELECT col1 + - + CAST( col2 AS SIGNED ) col1 FROM tab2
----
28
37
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4017
SELECT col1 + - + CAST ( col2 AS INTEGER ) col1 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT ALL 97 + - SUM( col2 ) * COUNT( * ) AS col1 FROM tab0
----
-371

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL 97 + - SUM ( col2 ) * COUNT ( * ) AS col1 FROM tab0
----
-371

query I rowsort
SELECT + ( + col1 ) + col2 * col0 - - col0 FROM tab1
----
4961
5105
6326

query I rowsort
SELECT DISTINCT + col0 * + + col1 * col2 + col1 + + ( - col1 ) * col1 AS col1 FROM tab0
----
17850
50625
9603

query I rowsort
SELECT ALL - col0 - + - 10 AS col2 FROM tab1 AS cor0
----
-41
-75
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT DISTINCT - MAX( ALL 67 ) AS col1 FROM tab0 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-4022
SELECT DISTINCT - MAX ( ALL 67 ) AS col1 FROM tab0 AS cor0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT ALL 61 * 65 + + COUNT( * ) FROM tab1 AS cor0
----
3968

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL 61 * 65 + + COUNT ( * ) FROM tab1 AS cor0
----
3968

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT DISTINCT - MIN( DISTINCT - col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4024
SELECT DISTINCT - MIN ( DISTINCT - col2 ) FROM tab1
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4025
SELECT - COUNT( * ) DIV + - 32 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4025
SELECT - COUNT ( * ) / + - 32 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT DISTINCT - 89 * + + MIN( + 29 ) AS col1 FROM tab2 AS cor0
----
-2581

skipif mysql # not compatible
query I rowsort label-4027
SELECT DISTINCT - 89 * + + MIN ( + 29 ) AS col1 FROM tab2 AS cor0
----
-2581

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE col0 / 95 NOT IN ( + + col1 + col1 * + 5, - col2, - + col2 * + - 72 - - 35 )
----
51
85
91

query II rowsort
SELECT - 82 AS col0, + col1 FROM tab1 cor0
----
-82
14
-82
47
-82
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, - col0 col1 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

query II rowsort
SELECT + - col0 * - - col2, ( + col2 ) AS col0 FROM tab0 AS cor0
----
-705
47
-870
10
-9603
99

query I rowsort
SELECT + col1 * - 31 AS col1 FROM tab1
----
-1457
-155
-434

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4033
SELECT DISTINCT - 80 * + - ( + - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4033
SELECT DISTINCT - 80 * + - ( + - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 cor0 WHERE col0 * + 20 * + col1 IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT 81 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
81

query I rowsort
SELECT DISTINCT - ( + - 76 ) * - 54 AS col1 FROM tab1
----
-4104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 85 col2, + 23 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 8e5e90563d5a68e3c777a692b655209e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 16 + + - col2 col1, col2 col1 FROM tab2 WHERE 70 BETWEEN + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4039
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 - + col0 <> CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4039
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 - + col0 <> CAST ( - col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT ALL + SUM( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4040
SELECT ALL + SUM ( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-4041
SELECT - - 77 DIV col2 + - col1 * + col2 + + col0 FROM tab0 AS cor0
----
-116
-2
-3791

skipif mysql # not compatible
query I rowsort label-4041
SELECT - - 77 / col2 + - col1 * + col2 + + col0 FROM tab0 AS cor0
----
-116
-2
-3791

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4042
SELECT - CAST( NULL AS SIGNED ) + + MAX( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4042
SELECT - CAST ( NULL AS INTEGER ) + + MAX ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 93 + 95 * - + col0 * - col1 + col1 AS col1 FROM tab2 AS cor0
----
223014
468330
477535

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT ALL COUNT( * ) + + ( 44 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL COUNT ( * ) + + ( 44 ) AS col0 FROM tab1 AS cor0
----
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 18 + - col0 IS NULL
----

query III rowsort
SELECT col2 / ( 13 ) * - col0, - 85, + + col0 FROM tab1 WHERE NULL NOT IN ( - 74 + + + col2, + col2 + - + col2 + - col0 / - col2 - - - col0, col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE - 71 + + col1 * - ( col1 ) * - 12 IS NULL
----

query I rowsort
SELECT DISTINCT - 30 / - 42 / + col2 FROM tab0 AS cor0 WHERE NULL IS NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT + - col0 * - - 61 + - - 20 AS col0 FROM tab2 AS cor0
----
-2786
-3884
-4555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4050
SELECT DISTINCT CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4050
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT 59 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT - COUNT( + 81 ) * - COUNT( * ) FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4052
SELECT - COUNT ( + 81 ) * - COUNT ( * ) FROM tab0 cor0
----
9

query I rowsort
SELECT ALL + - ( - - 99 ) AS col2 FROM tab0 AS cor0
----
-99
-99
-99

query I rowsort
SELECT ALL 10 FROM tab2 cor0 WHERE - 56 > + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 2 NOT IN ( 3, ( + + col2 ) + + col0, + + col0 * - 72 * - col0 / - - 32 * - col0, - 46 * ( 93 ) * - + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 32 FROM tab1 cor0 WHERE NOT 88 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT - COUNT( * ) * - - 92 FROM tab2
----
-276

skipif mysql # not compatible
query I rowsort label-4057
SELECT - COUNT ( * ) * - - 92 FROM tab2
----
-276

onlyif mysql # aggregate syntax: 
query II rowsort label-4058
SELECT DISTINCT 12 AS col0, COUNT( * ) col0 FROM tab1
----
12
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4058
SELECT DISTINCT 12 AS col0, COUNT ( * ) col0 FROM tab1
----
12
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4059
SELECT ALL - col2 + ( - col1 ) AS col2 FROM tab1 WHERE NOT - - CAST( col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL - col2 + ( - col1 ) AS col2 FROM tab1 WHERE NOT - - CAST ( col0 AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT col0 AS col2, 62 AS col0 FROM tab1
----
51
62
85
62
91
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT DISTINCT COUNT( * ) * 5 AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4061
SELECT DISTINCT COUNT ( * ) * 5 AS col1 FROM tab0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col2, + col2 * + + 51 col1 FROM tab1 cor0
----
-14
4896
-47
3468
-5
3009

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN - + 96 AND + col2
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT DISTINCT - MIN( - 1 ) * + - 65 * ( COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-585

skipif mysql # not compatible
query I rowsort label-4064
SELECT DISTINCT - MIN ( - 1 ) * + - 65 * ( COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-585

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT + + 49 + - COUNT( * ) FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4065
SELECT + + 49 + - COUNT ( * ) FROM tab1 AS cor0
----
46

query I rowsort
SELECT + col2 + - 1 FROM tab2
----
22
39
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4067
SELECT col2 * + - 80 col1 FROM tab2 WHERE + 6 * - 11 + + + col0 * - CAST( NULL AS SIGNED ) * - col1 < col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4067
SELECT col2 * + - 80 col1 FROM tab2 WHERE + 6 * - 11 + + + col0 * - CAST ( NULL AS INTEGER ) * - col1 < col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 + + 87 + col2 col2 FROM tab2
----
162
179
197

query I rowsort
SELECT - 46 * col1 * + + 51 + + 32 * - + 44 AS col1 FROM tab0
----
-191434
-3754
-50674

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4070
SELECT DISTINCT - 54 * - + CAST( NULL AS SIGNED ) * + + col2 + - + col2 + - col2 * - - col0 * - col0 + + 18 * - + 8 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4070
SELECT DISTINCT - 54 * - + CAST ( NULL AS INTEGER ) * + + col2 + - + col2 + - col2 * - - col0 * - col0 + + 18 * - + 8 FROM tab0
----
NULL

query I rowsort
SELECT + col0 * col0 * - col1 + + col2 FROM tab2
----
-107893
-315352
-376817

query I rowsort
SELECT DISTINCT ( + col2 ) - + - 91 + + col0 * - col0 AS col0 FROM tab2
----
-2002
-3965
-5476

query I rowsort
SELECT col0 * - 87 FROM tab0 AS cor0
----
-1305
-7569
-8439

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4074
SELECT - 10, + col2 AS col1 FROM tab2 AS cor0 WHERE NOT col0 * col0 >= + - 38 * CAST( NULL AS SIGNED ) + + col1 + - 57
----

skipif mysql # not compatible
query II rowsort label-4074
SELECT - 10, + col2 AS col1 FROM tab2 AS cor0 WHERE NOT col0 * col0 >= + - 38 * CAST ( NULL AS INTEGER ) + + col1 + - 57
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4075
SELECT ALL ( + COUNT( ALL - - 5 ) ) DIV + 20 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL ( + COUNT ( ALL - - 5 ) ) / + 20 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4076
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE col1 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 46 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 53 * 99 FROM tab1 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT - SUM( DISTINCT + 94 ) AS col0 FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-4079
SELECT - SUM ( DISTINCT + 94 ) AS col0 FROM tab2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT DISTINCT - ( - MIN( - col1 ) ) * - COUNT( - col1 ) + - 2 FROM tab1
----
139

skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT - ( - MIN ( - col1 ) ) * - COUNT ( - col1 ) + - 2 FROM tab1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT + COUNT( * ) + - 94 FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-4081
SELECT + COUNT ( * ) + - 94 FROM tab2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT DISTINCT - ( MAX( + 12 ) ) AS col0 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-4082
SELECT DISTINCT - ( MAX ( + 12 ) ) AS col0 FROM tab2
----
-12

query I rowsort
SELECT - col0 + + col1 FROM tab2 WHERE + 60 > + col2
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4084
SELECT col0 col1 FROM tab0 WHERE CAST( 64 AS SIGNED ) BETWEEN col2 AND + 65
----
15
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4084
SELECT col0 col1 FROM tab0 WHERE CAST ( 64 AS INTEGER ) BETWEEN col2 AND + 65
----
15
87

query I rowsort
SELECT DISTINCT - col2 * - col1 FROM tab0 WHERE NOT + 48 + - 82 BETWEEN - col2 + + col1 AND 43
----
210
3807

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4086
SELECT ALL col0 + col1 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL col0 + col1 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + + 71 FROM tab2
----
111
129
94

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT ( - col2 / - col0 ) IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT 8 * col2 - 12 AS col2 FROM tab1
----
460
532
756

query I rowsort
SELECT DISTINCT + 19 + - 42 AS col2 FROM tab2
----
-23

query I rowsort
SELECT DISTINCT 41 * 70 FROM tab0 WHERE ( col0 ) IS NOT NULL
----
2870

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT - MIN( + 58 ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-4092
SELECT - MIN ( + 58 ) AS col1 FROM tab2
----
-58

query I rowsort
SELECT ALL + col2 * + 35 + 14 FROM tab2 WHERE 19 + 45 = col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4094
SELECT DISTINCT 43 + col2 DIV - ( - col0 ) AS col0 FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-4094
SELECT DISTINCT 43 + col2 / - ( - col0 ) AS col0 FROM tab2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT ALL - COUNT( * ) + 32 AS col2 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-4095
SELECT ALL - COUNT ( * ) + 32 AS col2 FROM tab2
----
29

query I rowsort
SELECT + 16 * - col2 + col1 AS col1 FROM tab2
----
-317
-563
-861

query I rowsort
SELECT + ( ( col1 ) ) * col1 + - ( - col2 ) FROM tab1
----
2277
292
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4098
SELECT ALL 83 + 86 DIV + MAX( + 8 DIV - col2 + - col2 ) AS col0 FROM tab0 WHERE NOT ( 9 ) IN ( col1 )
----
75

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL 83 + 86 / + MAX ( + 8 / - col2 + - col2 ) AS col0 FROM tab0 WHERE NOT ( 9 ) IN ( col1 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT ALL SUM( DISTINCT + 49 ) AS col1 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL SUM ( DISTINCT + 49 ) AS col1 FROM tab0 AS cor0
----
49

query I rowsort
SELECT ALL col2 * col2 + 56 AS col1 FROM tab1 AS cor0
----
3537
4680
9272

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 77 )
----
0

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 77 )
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 5 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * - col1 + col2 * - 80 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 + + 45 AS col0 FROM tab2
----
103
68
85

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE ( ( col1 ) * - col1 ) <= ( - col2 - 79 * 49 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT ALL COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT ALL MAX( ALL + 41 ) col0 FROM tab2
----
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4107
SELECT ALL MAX ( ALL + 41 ) col0 FROM tab2
----
41

query I rowsort
SELECT 68 * col0 + col2 AS col0 FROM tab2
----
3151
4392
5158

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 / col2 <= + 46
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + + 51 * + col0 AS col1 FROM tab2 AS cor0
----
2300
3200
3750

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4111
SELECT * FROM tab0 cor0 WHERE NULL < - CAST( + 69 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4111
SELECT * FROM tab0 cor0 WHERE NULL < - CAST ( + 69 AS REAL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN 39 * 94 AND ( col0 + - 24 / col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= col2 * - 99 + 1 * 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT - 54 * - SUM( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
12042

skipif mysql # not compatible
query I rowsort label-4114
SELECT - 54 * - SUM ( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
12042

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4115
SELECT + + CAST( NULL AS SIGNED ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4115
SELECT + + CAST ( NULL AS INTEGER ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT + - MAX( col0 ) * - 34 FROM tab1 AS cor0
----
3094

skipif mysql # not compatible
query I rowsort label-4116
SELECT + - MAX ( col0 ) * - 34 FROM tab1 AS cor0
----
3094

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col2 * - col2 + 97 ) = col1
----

query I rowsort
SELECT ALL - 67 + + 27 FROM tab1 AS cor0
----
-40
-40
-40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 46
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE 26 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 84 NOT IN ( - 22 * 60 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 67 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT ALL - COUNT( * ) AS col2 FROM tab2 WHERE NULL <= + 32
----
0

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 WHERE NULL <= + 32
----
0

query I rowsort
SELECT ALL + ( - - 22 ) * - 58 + + 84 FROM tab2
----
-1192
-1192
-1192

query I rowsort
SELECT ALL ( + col0 ) + ( + col0 + 73 ) AS col0 FROM tab0
----
103
247
267

query I rowsort
SELECT col1 + - col2 FROM tab2 WHERE + col0 * col2 IN ( + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4127
SELECT DISTINCT col0 DIV - - col0 + - col2 * col0 AS col1 FROM tab2
----
-1057
-2559
-4349

skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT col0 / - - col0 + - col2 * col0 AS col1 FROM tab2
----
-1057
-2559
-4349

query I rowsort
SELECT ( col1 ) * - 28 - + col0 * 7 AS col0 FROM tab0
----
-1197
-2373
-707

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4129
SELECT DISTINCT - 69 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT - 69 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col2 * col1 AS col0 FROM tab1 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
1344
295
3196

query I rowsort
SELECT ALL col1 * 27 + col0 * + col0 FROM tab0 AS cor0
----
2412
8136
9436

query I rowsort
SELECT DISTINCT - col2 * + + col2 * - col2 FROM tab0 AS cor0
----
1000
103823
970299

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 * + col2 ) > + col2 * + 30
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4134
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) + - col2 ) >= - col1
----

skipif mysql # not compatible
query III rowsort label-4134
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) + - col2 ) >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL NOT IN ( col1 + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4135
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL NOT IN ( col1 + col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT DISTINCT - COUNT( * ) FROM tab2, tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4136
SELECT DISTINCT - COUNT ( * ) FROM tab2, tab1 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT DISTINCT + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-4137
SELECT DISTINCT + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL IS NULL
----
9

query I rowsort
SELECT DISTINCT ( + 3 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT - 1 + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-10

skipif mysql # not compatible
query I rowsort label-4139
SELECT - 1 + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-10

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE ( col0 + + 37 ) BETWEEN - col1 * col2 AND ( - col2 )
----

query I rowsort
SELECT + 71 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT DISTINCT + COUNT( * ) * + + 5 + 16 FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT + COUNT ( * ) * + + 5 + 16 FROM tab0 AS cor0
----
31

query II rowsort
SELECT + 52 AS col0, + col2 + + - 0 FROM tab0 AS cor0
----
52
10
52
47
52
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4144
SELECT ALL - COUNT( * ) col1, 9 FROM tab2 AS cor0
----
-3
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4144
SELECT ALL - COUNT ( * ) col1, 9 FROM tab2 AS cor0
----
-3
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 76 col0, - col0 FROM tab2 AS cor0
----
76
-46
76
-64
76
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4146
SELECT - 30 AS col2, + AVG ( - - CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
-30
NULL

skipif mysql # not compatible
query II rowsort label-4146
SELECT - 30 AS col2, + AVG ( - - CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
-30
NULL

query I rowsort
SELECT ALL col1 + 16 AS col0 FROM tab2 AS cor0 WHERE ( + col1 ) NOT BETWEEN + col0 AND col1
----
83

query II rowsort
SELECT DISTINCT + col1 AS col1, + 51 FROM tab1 AS cor0
----
14
51
47
51
5
51

query I rowsort
SELECT col0 * col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 79 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 96 / + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4151
SELECT ALL - 69 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL - 69 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 42 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 91 * - + col2 + + 77 + - col1 * col2 AS col2 FROM tab2 AS cor0
----
1469
637
997

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 NOT IN ( - col0 )
----

query I rowsort
SELECT ( - 21 ) * - ( + col1 ) FROM tab1
----
105
294
987

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4156
SELECT ALL * FROM tab1 WHERE NOT ( - col0 ) <> - col2 + CAST( - 53 AS SIGNED ) * + col1
----

skipif mysql # not compatible
query III rowsort label-4156
SELECT ALL * FROM tab1 WHERE NOT ( - col0 ) <> - col2 + CAST ( - 53 AS INTEGER ) * + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4157
SELECT DISTINCT col2 + + + col1 DIV - + col0 FROM tab2
----
22
39
58

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT col2 + + + col1 / - + col0 FROM tab2
----
22
39
58

query I rowsort
SELECT ALL - col0 * - col1 * + + 74 + + col1 * + 85 AS col1 FROM tab1
----
31875
320493
54026

query I rowsort
SELECT - ( + - col0 ) AS col1 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT ALL COUNT( DISTINCT col2 ) FROM tab0 WHERE NOT - 14 NOT IN ( + - ( - col0 ) * + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL COUNT ( DISTINCT col2 ) FROM tab0 WHERE NOT - 14 NOT IN ( + - ( - col0 ) * + col1 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 + 15 col2 FROM tab1
----
70
70
70

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 - - 52 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT DISTINCT - MAX( + col0 ) * 5 + - 32 FROM tab1 AS cor0
----
-487

skipif mysql # not compatible
query I rowsort label-4163
SELECT DISTINCT - MAX ( + col0 ) * 5 + - 32 FROM tab1 AS cor0
----
-487

query I rowsort
SELECT col1 + + col2 * - col1 FROM tab0 AS cor0 WHERE + col0 + - + col2 <> ( col2 )
----
-189
-3726
-98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - 84 * + 79 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT - COUNT( DISTINCT + col1 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4166
SELECT - COUNT ( DISTINCT + col1 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - ( + col2 ) + + col1 AS col1 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT DISTINCT + 84 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
84

query II rowsort
SELECT col2 AS col0, 45 * + col0 + - 37 FROM tab2
----
23
2033
40
2843
58
3338

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT - - COUNT( * ) - - 20 AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4170
SELECT - - COUNT ( * ) - - 20 AS col0 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col2 AND ( 22 )
----
0

skipif mysql # not compatible
query I rowsort label-4171
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col2 AND ( 22 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT - SUM( + col1 ) / - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4172
SELECT - SUM ( + col1 ) / - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4173
SELECT * FROM tab0 AS cor0 WHERE 58 + CAST( NULL AS DECIMAL ) + - 70 + col2 / col0 / col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4173
SELECT * FROM tab0 AS cor0 WHERE 58 + CAST ( NULL AS REAL ) + - 70 + col2 / col0 / col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 95 * - col2 + col1 + + + col0 + col1 * - col1 FROM tab0 AS cor0
----
-10930
-1283
-9308

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT DISTINCT + COUNT( 75 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4175
SELECT DISTINCT + COUNT ( 75 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - col1 + - 52 - col1 * 65 AS col1 FROM tab0 AS cor0
----
-118
-1438
-5398

query I rowsort
SELECT DISTINCT - col2 + + + ( + 18 ) AS col2 FROM tab1 AS cor0
----
-41
-50
-78

query I rowsort
SELECT + col2 + + + 16 FROM tab0
----
115
26
63

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 49 + + 77 NOT IN ( - + col1 * + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 5 * - + col1 - + 98 FROM tab2
----
157
237
287

query I rowsort
SELECT + col2 * - ( + + col2 ) AS col1 FROM tab1
----
-3481
-4624
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 9 col2 FROM tab1 WHERE + col2 + - col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 >= + ( - col0 ) * - - col1 + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 92 col2 FROM tab0 AS cor0
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( - 7 ) NOT IN ( - col1 )
----
3

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( - 7 ) NOT IN ( - col1 )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4186
SELECT + + 41, COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
41
9

skipif mysql # not compatible
query II rowsort label-4186
SELECT + + 41, COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
41
9

query I rowsort
SELECT - 76 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - col2 / col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT ALL + - 94 * - COUNT( * ) FROM tab1 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL + - 94 * - COUNT ( * ) FROM tab1 AS cor0
----
282

onlyif mysql # DIV for integer division: 
query I rowsort label-4190
SELECT ALL + col2 DIV - col0 + - 81 AS col1 FROM tab0 AS cor0
----
-81
-82
-84

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL + col2 / - col0 + - 81 AS col1 FROM tab0 AS cor0
----
-81
-82
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT - MAX( DISTINCT - 97 ) + - 49 + + - COUNT( * ) AS col2 FROM tab2 cor0
----
45

skipif mysql # not compatible
query I rowsort label-4191
SELECT - MAX ( DISTINCT - 97 ) + - 49 + + - COUNT ( * ) AS col2 FROM tab2 cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT + - SUM( 36 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
-108

skipif mysql # not compatible
query I rowsort label-4192
SELECT + - SUM ( 36 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
-108

query I rowsort
SELECT + - 1 + col1 FROM tab0 AS cor0
----
0
20
80

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 - - 94 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT DISTINCT + COUNT( * ) + - 84 + - - SUM( - + 88 ) AS col1 FROM tab0
----
-345

skipif mysql # not compatible
query I rowsort label-4195
SELECT DISTINCT + COUNT ( * ) + - 84 + - - SUM ( - + 88 ) AS col1 FROM tab0
----
-345

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT COUNT( * ) * + COUNT( * ) * + - 86 FROM tab2
----
-774

skipif mysql # not compatible
query I rowsort label-4196
SELECT COUNT ( * ) * + COUNT ( * ) * + - 86 FROM tab2
----
-774

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT DISTINCT + COUNT( ALL ( - 60 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4197
SELECT DISTINCT + COUNT ( ALL ( - 60 ) ) AS col1 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE 86 * - - col1 + col1 = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4199
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) BETWEEN ( + + col1 / + col1 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4199
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) BETWEEN ( + + col1 / + col1 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab1 WHERE NULL BETWEEN ( - col2 ) AND - 22 * - 20 * col2
----

query I rowsort
SELECT col0 * - 2 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4202
SELECT ALL - + CAST( - ( col1 ) AS SIGNED ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL - + CAST ( - ( col1 ) AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT ALL - MAX( DISTINCT + - col0 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL - MAX ( DISTINCT + - col0 ) AS col1 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT - COUNT( * ) + + COUNT( * ) * - + 25 + + COUNT( * ) AS col1 FROM tab0 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4204
SELECT - COUNT ( * ) + + COUNT ( * ) * - + 25 + + COUNT ( * ) AS col1 FROM tab0 cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT DISTINCT + SUM( DISTINCT - 50 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-50

skipif mysql # not compatible
query I rowsort label-4205
SELECT DISTINCT + SUM ( DISTINCT - 50 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-50

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col2 * + col2 + - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4207
SELECT col1 FROM tab2 AS cor0 WHERE col2 + - col2 * - 47 NOT IN ( CAST( 32 AS SIGNED ) )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4207
SELECT col1 FROM tab2 AS cor0 WHERE col2 + - col2 * - 47 NOT IN ( CAST ( 32 AS INTEGER ) )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT DISTINCT - SUM( DISTINCT col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-66

skipif mysql # not compatible
query I rowsort label-4208
SELECT DISTINCT - SUM ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-66

query I rowsort
SELECT + col0 + + 16 FROM tab0 AS cor0 WHERE ( ( - - ( - 39 ) ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT ALL + SUM( - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL + SUM ( - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * + + 49 col0, + col2 + + - 40 FROM tab2 cor0
----
-2499
-17
-3283
18
-3773
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab2 AS cor0 WHERE NOT NULL < col1
----

query I rowsort
SELECT DISTINCT + col1 * - col1 * col1 * - - 69 * - col1 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
2650704
336697989
43125

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4214
SELECT * FROM tab2 WHERE NOT - col0 + - CAST( NULL AS SIGNED ) BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4214
SELECT * FROM tab2 WHERE NOT - col0 + - CAST ( NULL AS INTEGER ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT - col0 < + + 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT SUM( + 4 ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-4216
SELECT SUM ( + 4 ) FROM tab1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4217
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4217
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col0 * - col0 + - - col2 AS col1 FROM tab1 AS cor0
----
2697
7284
8349

query II rowsort
SELECT + + 46 AS col0, 15 * + col1 + + + col0 * + - col2 * - + col2 FROM tab2 AS cor0
----
46
103555
46
25099
46
253305

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT ALL + - COUNT( * ) * - - 22 AS col2 FROM tab0 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL + - COUNT ( * ) * - - 22 AS col2 FROM tab0 cor0
----
-66

query I rowsort
SELECT ALL - 50 AS col1 FROM tab1 WHERE - + 93 * + - ( + + 56 ) + - col0 < + - col0 + col2 + + + col2
----

query I rowsort
SELECT + col0 * + 33 FROM tab0
----
2871
3201
495

onlyif mysql # DIV for integer division: 
query II rowsort label-4223
SELECT ALL + col0, col1 DIV - col2 FROM tab0
----
15
-1
87
-2
97
0

skipif mysql # not compatible
query II rowsort label-4223
SELECT ALL + col0, col1 / - col2 FROM tab0
----
15
-1
87
-2
97
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4224
SELECT ALL CAST( NULL AS SIGNED ) * 62 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL CAST ( NULL AS INTEGER ) * 62 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4225
SELECT DISTINCT - - COUNT( * ) DIV + 18 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4225
SELECT DISTINCT - - COUNT ( * ) / + 18 AS col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT 58 + + + col0 + col0, - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - - col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4227
SELECT 34 DIV col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4227
SELECT 34 / col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT - col2, + col1 * + col0 + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col0 * + + 40 + + + col1 FROM tab2 AS cor0
----
1891
2637
3067

query I rowsort
SELECT + ( 57 ) FROM tab0 cor0
----
57
57
57

query I rowsort
SELECT - - col2 AS col1 FROM tab2 AS cor0 WHERE ( + 35 * 73 ) <= + 86 * - - col2 * - col1 + col0
----

query I rowsort
SELECT DISTINCT - col0 * + 21 * col2 + col2 * + col2 FROM tab2 cor0
----
-21689
-52160
-87986

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 AS col2, col1 col0 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT COUNT( * ) * MAX( 9 ) + - + 9 AS col1 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-4234
SELECT COUNT ( * ) * MAX ( 9 ) + - + 9 AS col1 FROM tab0
----
18

query II rowsort
SELECT col1 + + 44, col0 + - col2 AS col1 FROM tab0
----
125
-32
45
-2
65
77

query I rowsort
SELECT DISTINCT col2 + - ( col2 ) AS col2 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) + col2 col2 FROM tab0
----
-11
-34
98

query I rowsort
SELECT ALL col1 * - + col1 + - col0 - - 97 * - - col1 AS col0 FROM tab2
----
1476
1935
2300

query I rowsort
SELECT DISTINCT + 74 + - col1 + col0 AS col2 FROM tab1
----
111
118
154

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4240
SELECT * FROM tab2 WHERE - + col0 BETWEEN col0 + + 69 AND CAST( NULL AS SIGNED ) * col0 - + + 56 / - ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-4240
SELECT * FROM tab2 WHERE - + col0 BETWEEN col0 + + 69 AND CAST ( NULL AS INTEGER ) * col0 - + + 56 / - ( + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE col2 * + col1 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4242
SELECT ALL - 41 / - - 64 * - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL - 41 / - - 64 * - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col0 + col2 + 1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
197
63
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + + + 72 col2, 2 + + col0 AS col0 FROM tab0
----
-15
89
-25
99
57
17

query I rowsort
SELECT ALL + col0 + 32 AS col1 FROM tab0 AS cor0
----
119
129
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT ALL + ( - + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL + ( - + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 13 + - ( col1 ) AS col2 FROM tab1
----
-1
-34
8

query II rowsort
SELECT col2 - col0 * + + 80, + col1 - + col1 AS col0 FROM tab1
----
-3984
0
-6741
0
-7212
0

query I rowsort
SELECT 49 + - col0 FROM tab1
----
-2
-36
-42

query I rowsort
SELECT - col0 * + + 63 * - col1 AS col0 FROM tab2 AS cor0
----
147798
310464
316575

query I rowsort
SELECT + ( + 51 ) * + col0 AS col0 FROM tab2 AS cor0
----
2346
3264
3825

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - + col1 ) <> ( NULL )
----

query I rowsort
SELECT + 68 * - col2 + + 16 AS col0 FROM tab2 AS cor0
----
-1548
-2704
-3928

query II rowsort
SELECT DISTINCT + 73 * col1, + col1 FROM tab0
----
1533
21
5913
81
73
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4255
SELECT + 98 DIV - col0 FROM tab0
----
-1
-1
-6

skipif mysql # not compatible
query I rowsort label-4255
SELECT + 98 / - col0 FROM tab0
----
-1
-1
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4256
SELECT DISTINCT + 35 DIV - COUNT( * ) AS col2 FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT + 35 / - COUNT ( * ) AS col2 FROM tab1
----
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab0 WHERE + - 67 + - + col1 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL <= col2
----
0

skipif mysql # not compatible
query I rowsort label-4258
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL <= col2
----
0

query I rowsort
SELECT + 79 + 32 AS col0 FROM tab1 AS cor0
----
111
111
111

query I rowsort
SELECT + col0 + - + 20 AS col2 FROM tab1 AS cor0
----
31
65
71

query II rowsort
SELECT ALL col2, ( ( - + col2 ) ) FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT ALL MIN( + 98 ) * + 8 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL MIN ( + 98 ) * + 8 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE + col1 NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT COUNT( * ) AS col0 FROM tab1 WHERE 35 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4264
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE 35 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4265
SELECT ALL - col0 DIV col1 + + col0 + col0 + - - col1 AS col0 FROM tab1
----
113
158
228

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL - col0 / col1 + + col0 + col0 + - - col1 AS col0 FROM tab1
----
113
158
228

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab0 WHERE NOT + 6 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4266
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab0 WHERE NOT + 6 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4267
SELECT + col1 * - + col2 + + ( - 48 ) + - 16 DIV - - col2 * - 89 FROM tab1 AS cor0
----
-1392
-3244
-343

skipif mysql # not compatible
query I rowsort label-4267
SELECT + col1 * - + col2 + + ( - 48 ) + - 16 / - - col2 * - 89 FROM tab1 AS cor0
----
-1392
-3244
-343

query I rowsort
SELECT - + col0 + + + col1 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT ALL + - col0 FROM tab1 AS cor0 WHERE NOT ( - col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT DISTINCT 22 * + COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-4270
SELECT DISTINCT 22 * + COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
-198

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT ( NOT col2 IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 47 * + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4273
SELECT - 79 * + col2 / - + CAST( NULL AS SIGNED ) AS col0, 25 AS col2 FROM tab1 AS cor0
----
NULL
25
NULL
25
NULL
25

skipif mysql # not compatible
query II rowsort label-4273
SELECT - 79 * + col2 / - + CAST ( NULL AS INTEGER ) AS col0, 25 AS col2 FROM tab1 AS cor0
----
NULL
25
NULL
25
NULL
25

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 68 <= col2
----
85
5
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4275
SELECT CAST( + + SUM( - ( + 5 ) ) AS SIGNED ) FROM tab1 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4275
SELECT CAST ( + + SUM ( - ( + 5 ) ) AS INTEGER ) FROM tab1 cor0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-4276
SELECT - col1 * col2 DIV - col2 col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4276
SELECT - col1 * col2 / - col2 col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4277
SELECT ALL COUNT( * ) AS col1, 94 AS col1 FROM tab1
----
3
94

skipif mysql # not compatible
query II rowsort label-4277
SELECT ALL COUNT ( * ) AS col1, 94 AS col1 FROM tab1
----
3
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT + + COUNT( * ) FROM tab1 WHERE NOT ( NULL = ( 17 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4278
SELECT + + COUNT ( * ) FROM tab1 WHERE NOT ( NULL = ( 17 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4279
SELECT ALL + 7 DIV col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL + 7 / col1 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL - col1 * + col1 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-2601
-4489
-5929

query I rowsort
SELECT + ( 39 ) AS col2 FROM tab0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT - COUNT( DISTINCT + 1 ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4282
SELECT - COUNT ( DISTINCT + 1 ) AS col1 FROM tab2
----
-1

query I rowsort
SELECT + ( + 24 ) AS col1 FROM tab0
----
24
24
24

query I rowsort
SELECT + - ( - 18 ) FROM tab0 AS cor0
----
18
18
18

query I rowsort
SELECT 42 * - 13 AS col2 FROM tab0
----
-546
-546
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT 91 * - COUNT( * ) FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-4286
SELECT 91 * - COUNT ( * ) FROM tab1
----
-273

query II rowsort
SELECT ( - 32 ) AS col1, col1 * - 4 AS col1 FROM tab0 AS cor0
----
-32
-324
-32
-4
-32
-84

query I rowsort
SELECT + col1 AS col2 FROM tab2 cor0 WHERE - col0 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 86 <= ( NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( - - 8 ) ) NOT BETWEEN - col1 * - 3 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4291
SELECT CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) / col1 * - col0 - col0 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4291
SELECT CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) / col1 * - col0 - col0 NOT BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 96 < + col0 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4293
SELECT DISTINCT - - col2 FROM tab1 AS cor0 WHERE ( + - CAST( + col2 AS SIGNED ) NOT BETWEEN - 84 AND NULL )
----
96

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT - - col2 FROM tab1 AS cor0 WHERE ( + - CAST ( + col2 AS INTEGER ) NOT BETWEEN - 84 AND NULL )
----
96

query I rowsort
SELECT DISTINCT + 12 AS col1 FROM tab2 cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT ALL - COUNT( * ) + 62 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4295
SELECT ALL - COUNT ( * ) + 62 FROM tab1 AS cor0
----
59

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 35 + + - col0 AS col1 FROM tab2
----
-11
-29
-40

query I rowsort
SELECT ALL + col2 + + + 66 + - col2 FROM tab1 WHERE NULL < + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT - 87 + + - COUNT( * ) AS col2 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-4299
SELECT - 87 + + - COUNT ( * ) AS col2 FROM tab0
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4300
SELECT COUNT( * ) + - 27 + ( + COUNT( * ) ) DIV - 99 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-4300
SELECT COUNT ( * ) + - 27 + ( + COUNT ( * ) ) / - 99 FROM tab2
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-4301
SELECT ALL col1 - - + col2 + + col1 + col1 DIV col2 FROM tab0
----
101
210
54

skipif mysql # not compatible
query I rowsort label-4301
SELECT ALL col1 - - + col2 + + col1 + col1 / col2 FROM tab0
----
101
210
54

query I rowsort
SELECT ALL 7 * - + col2 * + 2 * - 0 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT + COUNT( + ( - 70 ) ) FROM tab1 WHERE col2 - col1 * - - col2 <> - 51 * + col2 + col1
----
3

skipif mysql # not compatible
query I rowsort label-4303
SELECT + COUNT ( + ( - 70 ) ) FROM tab1 WHERE col2 - col1 * - - col2 <> - 51 * + col2 + col1
----
3

query I rowsort
SELECT col1 - - - col0 + - col1 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-4305
SELECT DISTINCT col1 DIV + + col0 AS col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4305
SELECT DISTINCT col1 / + + col0 AS col0 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT ALL + - 54 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4307
SELECT + - CAST( NULL AS SIGNED ), col2 * + col1 AS col2 FROM tab0 WHERE NOT NULL >= - col2
----

skipif mysql # not compatible
query II rowsort label-4307
SELECT + - CAST ( NULL AS INTEGER ), col2 * + col1 AS col2 FROM tab0 WHERE NOT NULL >= - col2
----

query I rowsort
SELECT DISTINCT + col0 * + - 22 FROM tab0 AS cor0
----
-1914
-2134
-330

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 / + col1 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4310
SELECT - - col1 * + - 19 * - ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4310
SELECT - - col1 * + - 19 * - ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4311
SELECT - + col2 * - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4311
SELECT - + col2 * - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * + - 83 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT DISTINCT 19 * + 7 + + + COUNT( * ) + + - COUNT( * ) + - - AVG ( + - 9 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4313
SELECT DISTINCT 19 * + 7 + + + COUNT ( * ) + + - COUNT ( * ) + - - AVG ( + - 9 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - - 51 * col2 + + 94 AS col0 FROM tab2 cor0
----
1267
2134
3052

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4315
SELECT - ( + CAST( NULL AS SIGNED ) ) * - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4315
SELECT - ( + CAST ( NULL AS INTEGER ) ) * - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col0 * + col2 AS col0, col0 FROM tab1 AS cor0
----
4896
51
5015
85
6188
91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( - 75 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT + 59 * - - COUNT( * ) * + SUM( - col2 ) FROM tab0
----
-27612

skipif mysql # not compatible
query I rowsort label-4318
SELECT + 59 * - - COUNT ( * ) * + SUM ( - col2 ) FROM tab0
----
-27612

query I rowsort
SELECT + 74 FROM tab1 WHERE NOT 54 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 25 col2 FROM tab2
----
-25

query I rowsort
SELECT DISTINCT 24 * 7 FROM tab2
----
168

onlyif mysql # DIV for integer division: 
query I rowsort label-4322
SELECT 22 DIV col0 * + - 16 + + col2 * - 41 * col0 AS col0 FROM tab2 cor0
----
-104960
-178350
-43378

skipif mysql # not compatible
query I rowsort label-4322
SELECT 22 / col0 * + - 16 + + col2 * - 41 * col0 AS col0 FROM tab2 cor0
----
-104960
-178350
-43378

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col0 * - ( 94 ) + + col2 - - + ( - col0 ) + ( + 97 ) IN ( + + col2 + + + ( - ( + col1 ) ) / - - col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT MAX( col2 ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-4324
SELECT MAX ( col2 ) FROM tab1 cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4325
SELECT + col2 * + CAST( - - col0 AS SIGNED ) FROM tab0 cor0 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-4325
SELECT + col2 * + CAST ( - - col0 AS INTEGER ) FROM tab0 cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT col0 + - - 2 FROM tab2
----
48
66
77

query I rowsort
SELECT ALL + ( + 78 ) * + 13 + col1 FROM tab1
----
1019
1028
1061

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 35 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT + COUNT( * ) + + 91 * - MAX( DISTINCT 20 ) FROM tab1 AS cor0
----
-1817

skipif mysql # not compatible
query I rowsort label-4329
SELECT + COUNT ( * ) + + 91 * - MAX ( DISTINCT 20 ) FROM tab1 AS cor0
----
-1817

query I rowsort
SELECT + - col1 + + + col0 AS col1 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4331
SELECT + - col1 DIV - + col2 AS col0 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4331
SELECT + - col1 / - + col2 AS col0 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT - col1 FROM tab1 cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + ( - col2 ) <> - 11 * + 32 / ( + - 48 ) * col2 * col2
----

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 48 + + 28 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT + + MAX( - 66 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4335
SELECT + + MAX ( - 66 ) AS col1 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT ALL + col0 + col1 + 62 * - 72 FROM tab0 AS cor0
----
-4356
-4366
-4368

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT - MIN( ALL - 18 ) * - 11 AS col0 FROM tab1 cor0
----
-198

skipif mysql # not compatible
query I rowsort label-4337
SELECT - MIN ( ALL - 18 ) * - 11 AS col0 FROM tab1 cor0
----
-198

query I rowsort
SELECT ALL - ( - + 59 ) / + col1 - + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4339
SELECT - col1 DIV + + 93 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4339
SELECT - col1 / + + 93 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - 12 * - col2 - + 47 FROM tab0
----
1141
517
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT DISTINCT - COUNT( * ) + + MIN( ALL - col2 ) FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT - COUNT ( * ) + + MIN ( ALL - col2 ) FROM tab0
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-4342
SELECT col2 - - col0 DIV - - 18 AS col1 FROM tab2
----
25
43
62

skipif mysql # not compatible
query I rowsort label-4342
SELECT col2 - - col0 / - - 18 AS col1 FROM tab2
----
25
43
62

query I rowsort
SELECT ALL 63 * + col2 - - ( - col0 ) + + ( + col1 ) AS col2 FROM tab1
----
3637
4240
6011

query I rowsort
SELECT 39 + + col2 AS col1 FROM tab1 AS cor0
----
107
135
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4345
SELECT - 89 DIV - col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4345
SELECT - 89 / - col2 FROM tab2
----
1
2
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4346
SELECT + - CAST( - col2 AS SIGNED ) * + - col0 FROM tab0 AS cor0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-4346
SELECT + - CAST ( - col2 AS INTEGER ) * + - col0 FROM tab0 AS cor0
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 30 col2 FROM tab1 AS cor0
----
30

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 AS cor0 WHERE + col1 * - col2 IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4349
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT NULL NOT BETWEEN + 50 AND CAST( NULL AS SIGNED ) + - col0 )
----

skipif mysql # not compatible
query III rowsort label-4349
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT NULL NOT BETWEEN + 50 AND CAST ( NULL AS INTEGER ) + - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col2 + - + col1 * - 6 * - + col0 col1 FROM tab0
----
-10973
-484
-7324

onlyif mysql # DIV for integer division: 
query I rowsort label-4351
SELECT 4 DIV - 74 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4351
SELECT 4 / - 74 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - 2 * + col1 FROM tab0
----
-162
-2
-42

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 + - col0 + - 9 <> + - col2 * - ( - col0 ) * - 24 - col2
----

query I rowsort
SELECT 53 + - + col1 + + col0 AS col1 FROM tab1
----
133
90
97

query I rowsort
SELECT ALL - - col2 + + col2 AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE + col2 / col2 * - col0 - - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4356
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE + col2 / col2 * - col0 - - col2 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4357
SELECT DISTINCT col0 DIV col1 + col2 + col1 AS col2 FROM tab2
----
117
126
74

skipif mysql # not compatible
query I rowsort label-4357
SELECT DISTINCT col0 / col1 + col2 + col1 AS col2 FROM tab2
----
117
126
74

query II rowsort
SELECT ( + + col1 ) AS col0, col0 * col2 * + 64 FROM tab2
----
51
67712
67
278400
77
163840

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT + MIN( + 38 ) - - COUNT( ALL col2 ) FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-4359
SELECT + MIN ( + 38 ) - - COUNT ( ALL col2 ) FROM tab2 AS cor0
----
41

query I rowsort
SELECT - - col0 AS col1 FROM tab1 AS cor0 WHERE - 64 * - + col2 / + col1 IS NOT NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + ( + 9 ) = col1 OR col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 - - + 0 col2 FROM tab1 AS cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query II rowsort label-4363
SELECT ALL + - 17 - - - 56, + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-73
3

skipif mysql # not compatible
query II rowsort label-4363
SELECT ALL + - 17 - - - 56, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-73
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + - col0 ) NOT IN ( - 98 + - col0 + + 95 * - col2 * + col2 + + ( + col1 ), - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 <= + - col2 + + + ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * - col2 NOT IN ( - - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 + + col1 + - 54 col1 FROM tab1 AS cor0
----
-104
-137
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT ALL - + COUNT( * ) + + + MIN( ALL + - 84 ) FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL - + COUNT ( * ) + + + MIN ( ALL + - 84 ) FROM tab0 AS cor0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4369
SELECT 20 AS col1 FROM tab0 WHERE + ( + col0 ) <= ( col2 * + col0 + + col1 + CAST( NULL AS SIGNED ) + - 9 )
----

skipif mysql # not compatible
query I rowsort label-4369
SELECT 20 AS col1 FROM tab0 WHERE + ( + col0 ) <= ( col2 * + col0 + + col1 + CAST ( NULL AS INTEGER ) + - 9 )
----

query I rowsort
SELECT DISTINCT - col0 + - - col2 * + col1 FROM tab2
----
1127
3016
3811

query I rowsort
SELECT + col2 + 3 AS col1 FROM tab1
----
62
71
99

query I rowsort
SELECT DISTINCT col0 + + + col0 * + col1 FROM tab2
----
2392
4992
5100

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4373
SELECT * FROM tab0 WHERE col1 NOT BETWEEN - col1 AND CAST( NULL AS SIGNED ) + + col2
----

skipif mysql # not compatible
query III rowsort label-4373
SELECT * FROM tab0 WHERE col1 NOT BETWEEN - col1 AND CAST ( NULL AS INTEGER ) + + col2
----

query II rowsort
SELECT 1 AS col1, - col1 AS col1 FROM tab2
----
1
-51
1
-67
1
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT ALL + - MIN( DISTINCT + - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL + - MIN ( DISTINCT + - col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT DISTINCT + ( - COUNT( * ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT + ( - COUNT ( * ) ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT - - MIN( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4377
SELECT - - MIN ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
10

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 + + col0 IS NULL
----

query I rowsort
SELECT + 88 + col2 FROM tab2 AS cor0
----
111
128
146

query I rowsort
SELECT col1 * - ( col1 ) AS col2 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT DISTINCT - 69 + + MAX( DISTINCT + col0 ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-4381
SELECT DISTINCT - 69 + + MAX ( DISTINCT + col0 ) FROM tab1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4382
SELECT ALL CAST( NULL AS SIGNED ) + + 51 * + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4382
SELECT ALL CAST ( NULL AS INTEGER ) + + 51 * + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 18 * 77 AS col1 FROM tab0
----
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT DISTINCT SUM( ALL + 77 ) AS col1 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-4384
SELECT DISTINCT SUM ( ALL + 77 ) AS col1 FROM tab2
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT ALL COUNT( * ) * COUNT( DISTINCT - col1 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL COUNT ( * ) * COUNT ( DISTINCT - col1 ) FROM tab2
----
9

query I rowsort
SELECT + 20 * + - 78 FROM tab2 cor0
----
-1560
-1560
-1560

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4387
SELECT DISTINCT + col1 * - + col2 * - 98 + - col1 + 82 AS col1, col1, + CAST( + + CAST( + - ( + col1 ) AS SIGNED ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
9 values hashing to b54a6acacd38d68d7357ea9a0e028193

skipif mysql # not compatible
query III rowsort label-4387
SELECT DISTINCT + col1 * - + col2 * - 98 + - col1 + 82 AS col1, col1, + CAST ( + + CAST ( + - ( + col1 ) AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
9 values hashing to b54a6acacd38d68d7357ea9a0e028193

query I rowsort
SELECT + col2 + col0 - + col1 AS col0 FROM tab0 AS cor0
----
-19
195
76

query II rowsort
SELECT - col0 * - col0 + + col2 + - + col2 + - col0 AS col2, - col1 - col2 * 99 FROM tab0 AS cor0
----
210
-4734
7482
-1011
9312
-9802

query I rowsort
SELECT - col2 + - 0 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + col1 - - + col1 + + 13 FROM tab0
----
15
175
55

query I rowsort
SELECT + col1 * - 26 * - col1 + 16 AS col1 FROM tab0 AS cor0
----
11482
170602
42

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( + col1 ) > 28
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 - - col2 * - - col1 * - col0 FROM tab1 AS cor0
----
-24990
-290745
-68493

query I rowsort
SELECT DISTINCT col2 * 29 AS col1 FROM tab0 AS cor0
----
1363
2871
290

query II rowsort
SELECT ALL ( + col2 ) AS col1, - 23 * - 70 + - col2 AS col0 FROM tab0 AS cor0
----
10
1600
47
1563
99
1511

onlyif mysql # DIV for integer division: 
query II rowsort label-4397
SELECT + col0, - 59 DIV + ( 64 ) AS col2 FROM tab0 AS cor0
----
15
0
87
0
97
0

skipif mysql # not compatible
query II rowsort label-4397
SELECT + col0, - 59 / + ( 64 ) AS col2 FROM tab0 AS cor0
----
15
0
87
0
97
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col0 + - + col2 ) > ( - + col1 ) + - 94
----

query I rowsort
SELECT + ( col0 ) - + - ( - + 4 ) * ( - + ( 89 ) ) FROM tab0 AS cor0
----
371
443
453

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 >= - 86 * + ( + 45 )
----

query I rowsort
SELECT DISTINCT 54 * - col2 + - col0 FROM tab0
----
-2553
-5443
-627

query I rowsort
SELECT col2 * + + 94 AS col0 FROM tab1
----
5546
6392
9024

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT - - MAX( - + col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4403
SELECT - - MAX ( - + col2 ) AS col0 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT ALL - col1 FROM tab1 cor0 WHERE ( NULL ) < col0 * - 82 * + ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query II rowsort
SELECT - 93 AS col0, col2 FROM tab0 cor0
----
-93
10
-93
47
-93
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4407
SELECT + col0 DIV + 2 AS col2 FROM tab1 AS cor0
----
25
42
45

skipif mysql # not compatible
query I rowsort label-4407
SELECT + col0 / + 2 AS col2 FROM tab1 AS cor0
----
25
42
45

query I rowsort
SELECT col2 * - + 77 AS col0 FROM tab0 AS cor0
----
-3619
-7623
-770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4409
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NULL BETWEEN col2 AND - col2 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4409
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NULL BETWEEN col2 AND - col2 * CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4410
SELECT ALL col1, 10 * - + 74 + + + col1 + col1 DIV col0 col0 FROM tab2 cor0
----
51
-688
67
-673
77
-662

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4410
SELECT ALL col1, 10 * - + 74 + + + col1 + col1 / col0 col0 FROM tab2 cor0
----
51
-688
67
-673
77
-662

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab1 AS cor0 WHERE NOT - col1 * - col1 = NULL
----

query I rowsort
SELECT DISTINCT col2 + + 16 AS col2 FROM tab2
----
39
56
74

query II rowsort
SELECT DISTINCT + - 9 + - 6 AS col0, - col1 + col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 / - + col0 / + - 45 >= - - 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT + COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4415
SELECT + COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + + col1 + + col2 col1 FROM tab1
----
149
161
206

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + col1 col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT ALL - COUNT( * ) - - 18 AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL - COUNT ( * ) - - 18 AS col0 FROM tab0
----
15

query I rowsort
SELECT - col0 + - - ( - - col1 ) - 83 + 63 FROM tab0 AS cor0
----
-116
-86
46

query I rowsort
SELECT ALL + 16 - - col0 FROM tab2 AS cor0
----
62
80
91

query I rowsort
SELECT 76 FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT ALL - col1 * - 22 FROM tab0 AS cor0
----
1782
22
462

query I rowsort
SELECT + 38 * col2 AS col0 FROM tab2 AS cor0
----
1520
2204
874

query I rowsort
SELECT DISTINCT + - col1 * + + col0 AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT DISTINCT - SUM( ALL - col1 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4425
SELECT DISTINCT - SUM ( ALL - col1 ) AS col1 FROM tab1
----
66

query II rowsort
SELECT ALL ( col1 ) AS col0, 0 AS col2 FROM tab1
----
14
0
47
0
5
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4427
SELECT ALL - col0 DIV - ( + col2 ) AS col1 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL - col0 / - ( + col2 ) AS col1 FROM tab2
----
1
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4428
SELECT + CAST( + COUNT( DISTINCT 10 ) AS SIGNED ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4428
SELECT + CAST ( + COUNT ( DISTINCT 10 ) AS INTEGER ) FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - 96 col1, + col2 AS col2, - col0 AS col0 FROM tab1
----
9 values hashing to 76e6b717bf034d45a7d76fbab3595d2d

onlyif mysql # aggregate syntax: 
query II rowsort label-4430
SELECT + 14 AS col2, COUNT( + + 49 ) FROM tab2
----
14
3

skipif mysql # not compatible
query II rowsort label-4430
SELECT + 14 AS col2, COUNT ( + + 49 ) FROM tab2
----
14
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4431
SELECT + CAST( - 96 AS SIGNED ) AS col0 FROM tab1
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-4431
SELECT + CAST ( - 96 AS INTEGER ) AS col0 FROM tab1
----
-96
-96
-96

query II rowsort
SELECT col0 AS col1, 86 * - + col1 FROM tab0 AS cor0
----
15
-6966
87
-1806
97
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-4433
SELECT ALL - - 79 AS col2, COUNT( * ) FROM tab2 AS cor0
----
79
3

skipif mysql # not compatible
query II rowsort label-4433
SELECT ALL - - 79 AS col2, COUNT ( * ) FROM tab2 AS cor0
----
79
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT DISTINCT - 85 + + COUNT( * ) FROM tab2 WHERE NOT - col0 * - 5 < - ( col1 ) / - - 52
----
-82

skipif mysql # not compatible
query I rowsort label-4434
SELECT DISTINCT - 85 + + COUNT ( * ) FROM tab2 WHERE NOT - col0 * - 5 < - ( col1 ) / - - 52
----
-82

query I rowsort
SELECT ALL + col0 + - + 52 FROM tab0 AS cor0
----
-37
35
45

query I rowsort
SELECT 87 + 3 FROM tab0 AS cor0
----
90
90
90

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT + 67 NOT BETWEEN col1 * - + col0 + + 35 AND - 3 )
----

query I rowsort
SELECT ALL 40 + + col0 AS col2 FROM tab0
----
127
137
55

query I rowsort
SELECT DISTINCT + ( + - col2 ) * - col2 + - col0 FROM tab0
----
13
2194
9704

query I rowsort
SELECT ALL 6 + - 57 FROM tab2
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT ALL + MIN( - col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL + MIN ( - col1 ) AS col1 FROM tab1
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - 90 col0 FROM tab1
----
-149
-158
-186

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 13 + - ( + col1 ) < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 31, + col2 col0 FROM tab0 AS cor0
----
-31
10
-31
47
-31
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4445
SELECT + 99 + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / 99 * - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4445
SELECT + 99 + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / 99 * - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col0 + + - 13 + col2 + + + col0 FROM tab1 cor0
----
185
216
237

query I rowsort
SELECT ALL + - 22 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT DISTINCT + col2 - + 92 * - 75 AS col2 FROM tab1 AS cor0
----
6959
6968
6996

onlyif mysql # DIV for integer division: 
query I rowsort label-4449
SELECT DISTINCT col2 * + col2 DIV - col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-4449
SELECT DISTINCT col2 * + col2 / - col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT 32 * col0 FROM tab0 AS cor0
----
2784
3104
480

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4451
SELECT ( - CAST( NULL AS SIGNED ) ) AS col0, + 69 AS col1 FROM tab1 AS cor0
----
NULL
69
NULL
69
NULL
69

skipif mysql # not compatible
query II rowsort label-4451
SELECT ( - CAST ( NULL AS INTEGER ) ) AS col0, + 69 AS col1 FROM tab1 AS cor0
----
NULL
69
NULL
69
NULL
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT + COUNT( col1 ) * 65 FROM tab0 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4452
SELECT + COUNT ( col1 ) * 65 FROM tab0 AS cor0
----
195

query II rowsort
SELECT ALL - + 56 * + col1 AS col0, + col1 + + + col0 FROM tab2 AS cor0
----
-2856
97
-3752
142
-4312
141

query III rowsort
SELECT * FROM tab1 WHERE NULL > NULL AND + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT - 17 * - COUNT( * ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4455
SELECT - 17 * - COUNT ( * ) AS col0 FROM tab1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4456
SELECT ALL - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) * COUNT( * ) + - - 18 + - MAX( - col1 ) AS col1 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) + - - 18 + - MAX ( - col1 ) AS col1 FROM tab2
----
69

query I rowsort
SELECT DISTINCT col2 * + 13 + + col0 FROM tab2 AS cor0
----
345
584
829

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT + ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT - 22 * - col2 - - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4458
SELECT + ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT - 22 * - col2 - - col0 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - 17 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT + 83 * - ( + MIN( + col2 ) ) AS col1 FROM tab1
----
-4897

skipif mysql # not compatible
query I rowsort label-4460
SELECT + 83 * - ( + MIN ( + col2 ) ) AS col1 FROM tab1
----
-4897

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT DISTINCT MAX( ALL - col2 ) FROM tab2 WHERE + - col2 IS NOT NULL
----
-23

skipif mysql # not compatible
query I rowsort label-4461
SELECT DISTINCT MAX ( ALL - col2 ) FROM tab2 WHERE + - col2 IS NOT NULL
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT ALL + SUM( col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL + SUM ( col2 ) AS col0 FROM tab0 AS cor0
----
156

query I rowsort
SELECT DISTINCT 12 * col0 FROM tab0 cor0
----
1044
1164
180

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4464
SELECT ALL + - COUNT( * ) + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL + - COUNT ( * ) + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4465
SELECT - col0, + 32 + CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-46
78
-64
96
-75
107

skipif mysql # not compatible
query II rowsort label-4465
SELECT - col0, + 32 + CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-46
78
-64
96
-75
107

onlyif mysql # DIV for integer division: 
query I rowsort label-4466
SELECT ALL + col2 DIV col0 * - - col2 AS col1 FROM tab1 AS cor0
----
0
0
96

skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL + col2 / col0 * - - col2 AS col1 FROM tab1 AS cor0
----
0
0
96

query I rowsort
SELECT - col1 + - 69 FROM tab2 AS cor0
----
-120
-136
-146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - + col0 col1 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4469
SELECT - col0 * + + CAST( NULL AS SIGNED ) + - col1 / col0 * + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4469
SELECT - col0 * + + CAST ( NULL AS INTEGER ) + - col1 / col0 * + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4470
SELECT ALL col0 + 38 / - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL col0 + 38 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 65 + col2 + - col1 AS col2 FROM tab2
----
-102
-74
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 + - col0 col0 FROM tab2
----
1127
3016
3811

query I rowsort
SELECT ALL - ( - col1 ) * + + 77 + + col1 FROM tab1
----
1092
3666
390

onlyif mysql # aggregate syntax: 
query II rowsort label-4474
SELECT - COUNT( * ) * COUNT( * ) AS col1, ( - - 43 ) AS col1 FROM tab2, tab0 AS cor0
----
-81
43

skipif mysql # not compatible
query II rowsort label-4474
SELECT - COUNT ( * ) * COUNT ( * ) AS col1, ( - - 43 ) AS col1 FROM tab2, tab0 AS cor0
----
-81
43

onlyif mysql # DIV for integer division: 
query I rowsort label-4475
SELECT DISTINCT - col1 DIV - 82 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4475
SELECT DISTINCT - col1 / - 82 col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT DISTINCT - + ( + - SUM( ALL - + col2 ) ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT - + ( + - SUM ( ALL - + col2 ) ) FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT - MIN( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
77

skipif mysql # not compatible
query I rowsort label-4477
SELECT - MIN ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
77

query I rowsort
SELECT ALL + col2 * + 67 FROM tab2 AS cor0
----
1541
2680
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4479
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - 89 / + 80 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4479
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - 89 / + 80 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 20 * + col0 FROM tab0 AS cor0
----
-1740
-1940
-300

query II rowsort
SELECT ALL + col1, ( - col0 ) AS col0 FROM tab0 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT - 98 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4483
SELECT col2 * 94 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col2 * - 58 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4483
SELECT col2 * 94 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col2 * - 58 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4484
SELECT - 34 AS col2, + SUM( ALL 26 ) col1 FROM tab2 AS cor0
----
-34
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4484
SELECT - 34 AS col2, + SUM ( ALL 26 ) col1 FROM tab2 AS cor0
----
-34
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 3 col0 FROM tab1 AS cor0
----
-3
-3
-3

query II rowsort
SELECT - + col2, - col1 AS col0 FROM tab2 AS cor0
----
-23
-51
-40
-77
-58
-67

query I rowsort
SELECT col0 * - + ( col1 ) AS col1 FROM tab2
----
-2346
-4928
-5025

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 21 <= col0
----

query I rowsort
SELECT DISTINCT - 37 * + col2 FROM tab1
----
-2183
-2516
-3552

query I rowsort
SELECT ALL col0 / - + 43 * + - col0 + col0 AS col0 FROM tab1 WHERE NOT + col1 + + 93 * + 9 * + - ( - ( + col1 ) ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT MAX( ALL col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4491
SELECT MAX ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4492
SELECT ALL - + col2 DIV col2 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL - + col2 / col2 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4493
SELECT DISTINCT col2 + - col0 DIV 7 AS col1 FROM tab0 AS cor0
----
-2
45
86

skipif mysql # not compatible
query I rowsort label-4493
SELECT DISTINCT col2 + - col0 / 7 AS col1 FROM tab0 AS cor0
----
-2
45
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT COUNT( * ) * + 82 FROM tab1 cor0
----
246

skipif mysql # not compatible
query I rowsort label-4494
SELECT COUNT ( * ) * + 82 FROM tab1 cor0
----
246

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( - 59 ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL <> + col1 * - 11
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4497
SELECT DISTINCT col2 DIV + + 49 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT col2 / + + 49 FROM tab0
----
0
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4498
SELECT DISTINCT + + 28 DIV + col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4498
SELECT DISTINCT + + 28 / + col0 FROM tab1 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 = + ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4500
SELECT DISTINCT 84 DIV - col1 AS col0 FROM tab1 AS cor0
----
-1
-16
-6

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT 84 / - col1 AS col0 FROM tab1 AS cor0
----
-1
-16
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT + SUM( + 72 ) AS col0 FROM tab2 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-4501
SELECT + SUM ( + 72 ) AS col0 FROM tab2 AS cor0
----
216

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4502
SELECT - AVG ( ALL 49 ), CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4502
SELECT - AVG ( ALL 49 ), CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT - - SUM( - col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4503
SELECT - - SUM ( - col0 ) AS col1 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT + MAX( + 74 ) AS col0 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-4504
SELECT + MAX ( + 74 ) AS col0 FROM tab2
----
74

query I rowsort
SELECT ALL col1 * col0 + - ( + - 96 ) + + 16 FROM tab0
----
1327
1939
209

query II rowsort
SELECT col0 AS col2, + col2 AS col2 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT 33 + - + 32 + + + 4 + + 67 + - - col0 * col1 + 29 + + col0 FROM tab2
----
2493
5093
5201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - + col0 col1 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT DISTINCT - 4 - - 0 FROM tab0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4510
SELECT * FROM tab0 WHERE - col0 * - - CAST( NULL AS SIGNED ) / - col0 / - 27 - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4510
SELECT * FROM tab0 WHERE - col0 * - - CAST ( NULL AS INTEGER ) / - col0 / - 27 - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, - col0 FROM tab0 cor0
----
-15
-15
-87
-87
-97
-97

query I rowsort
SELECT DISTINCT - col1 * - - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 31 * + + col2 + 84 + + 74 + + col1 * + 24 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL - 75 AS col2 FROM tab1 cor0
----
-75
-75
-75

query II rowsort
SELECT ALL ( - 98 ) AS col0, col0 FROM tab0 AS cor0
----
-98
15
-98
87
-98
97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4516
SELECT * FROM tab2 AS cor0 WHERE NOT 60 >= + ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-4516
SELECT * FROM tab2 AS cor0 WHERE NOT 60 >= + ( CAST ( NULL AS REAL ) )
----

query II rowsort
SELECT ( + - 98 ) * - - col2 AS col1, col1 FROM tab2
----
-2254
51
-3920
77
-5684
67

query I rowsort
SELECT col1 * - 46 AS col2 FROM tab0
----
-3726
-46
-966

onlyif mysql # DIV for integer division: 
query I rowsort label-4519
SELECT ALL col0 * + col1 * col0 * + col0 * col1 DIV col0 FROM tab0
----
1476225
3337929
9409

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL col0 * + col1 * col0 * + col0 * col1 / col0 FROM tab0
----
1476225
3337929
9409

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT 36 * MAX( ALL - + 57 ) FROM tab2
----
-2052

skipif mysql # not compatible
query I rowsort label-4521
SELECT 36 * MAX ( ALL - + 57 ) FROM tab2
----
-2052

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4522
SELECT - CAST( NULL AS SIGNED ) + + ( - col0 ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4522
SELECT - CAST ( NULL AS INTEGER ) + + ( - col0 ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 16 * + + col0 + + + 55 AS col1 FROM tab1
----
1415
1511
871

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4524
SELECT col1 + + - CAST( - col0 AS SIGNED ) * + 90 AS col2 FROM tab2 AS cor0
----
4191
5837
6817

skipif mysql # not compatible
query I rowsort label-4524
SELECT col1 + + - CAST ( - col0 AS INTEGER ) * + 90 AS col2 FROM tab2 AS cor0
----
4191
5837
6817

query II rowsort
SELECT DISTINCT + col1, col2 * - col0 FROM tab2 AS cor0
----
51
-1058
67
-4350
77
-2560

onlyif mysql # DIV for integer division: 
query II rowsort label-4526
SELECT DISTINCT col1 AS col1, - 17 DIV - 82 * 6 * + 42 col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4526
SELECT DISTINCT col1 AS col1, - 17 / - 82 * 6 * + 42 col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

query I rowsort
SELECT - ( + 99 ) FROM tab0 AS cor0
----
-99
-99
-99

query I rowsort
SELECT ALL - 36 * + 82 AS col1 FROM tab0
----
-2952
-2952
-2952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4529
SELECT DISTINCT - MAX( DISTINCT - col2 ) FROM tab0 WHERE NOT NULL = ( CAST( col1 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT - MAX ( DISTINCT - col2 ) FROM tab0 WHERE NOT NULL = ( CAST ( col1 AS INTEGER ) )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 <> - 52
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT ALL + SUM( 47 ) * + 27 FROM tab0
----
3807

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL + SUM ( 47 ) * + 27 FROM tab0
----
3807

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN ( - col1 ) AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4534
SELECT DISTINCT + 7 * + CAST( + col2 * - col1 AS SIGNED ) FROM tab2
----
-21560
-27202
-8211

skipif mysql # not compatible
query I rowsort label-4534
SELECT DISTINCT + 7 * + CAST ( + col2 * - col1 AS INTEGER ) FROM tab2
----
-21560
-27202
-8211

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT ALL - MAX( ALL + col1 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL - MAX ( ALL + col1 ) AS col0 FROM tab1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4536
SELECT DISTINCT 70 + + 45 AS col0 FROM tab1 WHERE NOT + col1 IN ( - 19 + + CAST( 59 AS SIGNED ) )
----
115

skipif mysql # not compatible
query I rowsort label-4536
SELECT DISTINCT 70 + + 45 AS col0 FROM tab1 WHERE NOT + col1 IN ( - 19 + + CAST ( 59 AS INTEGER ) )
----
115

query I rowsort
SELECT - 79 FROM tab0 WHERE + 14 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT ALL COUNT( * ) * 79 col0 FROM tab0
----
237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4538
SELECT ALL COUNT ( * ) * 79 col0 FROM tab0
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4539
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) FROM tab1 WHERE + col0 NOT BETWEEN - col2 AND ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) FROM tab1 WHERE + col0 NOT BETWEEN - col2 AND ( + col0 )
----

query I rowsort
SELECT - 26 + col2 AS col0 FROM tab0
----
-16
21
73

query III rowsort
SELECT * FROM tab0 WHERE + col1 + ( + col0 ) * - col1 >= 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT DISTINCT COUNT( * ) col2 FROM tab0 WHERE NULL IN ( + col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4542
SELECT DISTINCT COUNT ( * ) col2 FROM tab0 WHERE NULL IN ( + col1 )
----
0

query I rowsort
SELECT col2 * 27 AS col0 FROM tab1
----
1593
1836
2592

query I rowsort
SELECT ( + col0 ) + col2 AS col0 FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT MIN( col1 ) * 33 FROM tab2
----
1683

skipif mysql # not compatible
query I rowsort label-4545
SELECT MIN ( col1 ) * 33 FROM tab2
----
1683

query III rowsort
SELECT * FROM tab2 WHERE + 18 <= ( ( 64 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE + col2 * col2 < + col0 * - col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col2 ) BETWEEN + 80 AND NULL
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT DISTINCT COUNT( * ) * COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4550
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4551
SELECT * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) >= - 56 * col1
----

skipif mysql # not compatible
query III rowsort label-4551
SELECT * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) >= - 56 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT 28 * COUNT( * ) FROM tab2 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4552
SELECT 28 * COUNT ( * ) FROM tab2 WHERE NULL >= NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > + col2 + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4554
SELECT ( - col0 ) - - col2 DIV col1 col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4554
SELECT ( - col0 ) - - col2 / col1 col1 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT ALL 36 * + COUNT( * ) FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL 36 * + COUNT ( * ) FROM tab2
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-4556
SELECT ALL 80 DIV - 84 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL 80 / - 84 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 30 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 * col0 + - 41 ) NOT IN ( + col0 * 7 )
----

query I rowsort
SELECT ALL col2 + + 28 FROM tab0 AS cor0 WHERE NULL IS NULL
----
127
38
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4560
SELECT AVG ( CAST( NULL AS SIGNED ) ) - - COUNT( * ) AS col2 FROM tab1 WHERE NOT col1 NOT BETWEEN - col0 AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4560
SELECT AVG ( CAST ( NULL AS INTEGER ) ) - - COUNT ( * ) AS col2 FROM tab1 WHERE NOT col1 NOT BETWEEN - col0 AND col1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col1 / 39 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < ( 58 )
----

query I rowsort
SELECT ALL col0 + col1 FROM tab0 AS cor0 WHERE - 84 NOT IN ( - col0 )
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT DISTINCT ( COUNT( col0 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT ( COUNT ( col0 ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT COUNT( * ) * - 65 FROM tab1 AS cor0 WHERE NOT col0 * 26 = col0
----
-195

skipif mysql # not compatible
query I rowsort label-4565
SELECT COUNT ( * ) * - 65 FROM tab1 AS cor0 WHERE NOT col0 * 26 = col0
----
-195

query I rowsort
SELECT ALL col0 * 14 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1218
1358
210

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) < - col2
----

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + ( + col1 ) AND - col2
----

query I rowsort
SELECT ALL ( + 2 ) AS col0 FROM tab2
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT - 47 * 71 * - COUNT( 56 ) FROM tab0
----
10011

skipif mysql # not compatible
query I rowsort label-4570
SELECT - 47 * 71 * - COUNT ( 56 ) FROM tab0
----
10011

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4571
SELECT - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) < 11
----

skipif mysql # not compatible
query I rowsort label-4571
SELECT - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) < 11
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 >= + col1
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4573
SELECT - MAX( - col0 ) DIV 50 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4573
SELECT - MAX ( - col0 ) / 50 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 50 + - - 26 AS col2 FROM tab1 AS cor0
----
76

query I rowsort
SELECT ALL + col2 * - 37 FROM tab2 AS cor0
----
-1480
-2146
-851

query I rowsort
SELECT DISTINCT + - ( + + col0 ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4577
SELECT - 56 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) = + 20 + + col1
----

skipif mysql # not compatible
query I rowsort label-4577
SELECT - 56 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) = + 20 + + col1
----

query I rowsort
SELECT DISTINCT - + 81 * - col1 FROM tab2 AS cor0
----
4131
5427
6237

query I rowsort
SELECT - 49 * 13 + - 13 AS col2 FROM tab0 AS cor0
----
-650
-650
-650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4580
SELECT CAST( NULL AS SIGNED ) * - - col0 + - 17 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4580
SELECT CAST ( NULL AS INTEGER ) * - - col0 + - 17 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 75 + 94 FROM tab0 AS cor0 WHERE ( col2 ) BETWEEN ( NULL ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT MIN( col2 ) * + 28 AS col0 FROM tab0 AS cor0
----
280

skipif mysql # not compatible
query I rowsort label-4582
SELECT MIN ( col2 ) * + 28 AS col0 FROM tab0 AS cor0
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT - MIN( ( col2 ) ) + - ( - MIN( ALL 9 ) + COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE + 16 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4583
SELECT - MIN ( ( col2 ) ) + - ( - MIN ( ALL 9 ) + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE + 16 >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT + COUNT( ALL - 94 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4584
SELECT + COUNT ( ALL - 94 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col1 * 63 - + col0 FROM tab2 AS cor0
----
-3259
-4296
-4915

query I rowsort
SELECT col0 * + col1 * 5 * + 90 FROM tab1 AS cor0
----
191250
1924650
321300

query I rowsort
SELECT - col1 * col2 AS col2 FROM tab0 WHERE ( + + col2 / + col1 ) IN ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4588
SELECT ALL col0 + + - col1 + col0 DIV col2 AS col1 FROM tab1
----
37
45
81

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL col0 + + - col1 + col0 / col2 AS col1 FROM tab1
----
37
45
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT DISTINCT COUNT( DISTINCT + col0 ) - + MAX( ALL + col0 ) FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-4589
SELECT DISTINCT COUNT ( DISTINCT + col0 ) - + MAX ( ALL + col0 ) FROM tab0
----
-94

query I rowsort
SELECT 70 * col1 AS col1 FROM tab2 WHERE NOT + 25 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col1 col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT 71 * - col1 - + + col2 AS col1 FROM tab2 AS cor0
----
-3644
-4815
-5507

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4593
SELECT - COUNT( * ) * - - CAST( NULL AS SIGNED ) * 13 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4593
SELECT - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) * 13 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT ALL COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT ( col1 ) IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT ( col1 ) IS NOT NULL )
----
3

query I rowsort
SELECT ALL + ( - - 63 ) * - - col0 + + 87 + ( 16 ) * col0 FROM tab1
----
4116
6802
7276

query I rowsort
SELECT col2 * ( - ( - col2 ) ) * col0 * col0 AS col0 FROM tab0
----
497025
756900
92217609

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 WHERE NOT 36 / - + 40 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT DISTINCT - ( - COUNT( * ) ) * MAX( - 22 ) + + - COUNT( * ) AS col0 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-4598
SELECT DISTINCT - ( - COUNT ( * ) ) * MAX ( - 22 ) + + - COUNT ( * ) AS col0 FROM tab1
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4599
SELECT col2 DIV - 53 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4599
SELECT col2 / - 53 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT + MAX( 61 ) FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-4600
SELECT + MAX ( 61 ) FROM tab0 AS cor0
----
61

query I rowsort
SELECT + 82 * + 44 FROM tab1 AS cor0 WHERE NOT ( 76 ) NOT BETWEEN - 49 AND + 75 * - col0 + - col0 AND ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4602
SELECT - + col0 DIV + - ( - ( - col1 ) ) FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-4602
SELECT - + col0 / + - ( - ( - col1 ) ) FROM tab1 AS cor0
----
1
17
3

query I rowsort
SELECT + col2 * + - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) < ( - 96 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4604
SELECT DISTINCT - - 97 / 94 - - - 89 + + ( + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4604
SELECT DISTINCT - - 97 / 94 - - - 89 + + ( + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4605
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * 90 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4605
SELECT DISTINCT - CAST ( NULL AS REAL ) * 90 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 + - + 62 FROM tab0 AS cor0
----
-41
-61
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT COUNT( - col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4607
SELECT COUNT ( - col1 ) AS col1 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 NOT IN ( - col1 / - col2 * - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT DISTINCT + ( + - ( COUNT( * ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4609
SELECT DISTINCT + ( + - ( COUNT ( * ) ) ) FROM tab2
----
-3

query I rowsort
SELECT 12 * + + 49 + - 70 FROM tab0
----
518
518
518

query I rowsort
SELECT DISTINCT 80 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( col0, 15 * col1 )
----

query II rowsort
SELECT DISTINCT + col2 AS col1, - col0 AS col2 FROM tab1 cor0
----
59
-85
68
-91
96
-51

query I rowsort
SELECT ALL - - col2 * 83 * - 97 AS col2 FROM tab1 AS cor0 WHERE NOT - 83 IS NULL
----
-475009
-547468
-772896

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT DISTINCT + 68 * + COUNT( * ) + - SUM( + col0 ) FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-4615
SELECT DISTINCT + 68 * + COUNT ( * ) + - SUM ( + col0 ) FROM tab1
----
-23

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 + - + col0 IS NOT NULL AND NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 - - - col1 * + + col2 FROM tab1 AS cor0
----
-1440
-3264
-354

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4618
SELECT + COUNT( * ) DIV + 48 FROM tab2 AS cor0 WHERE NULL < + 33 + + 14 * + + col0 * ( + ( + 87 ) ) * + 91
----
0

skipif mysql # not compatible
query I rowsort label-4618
SELECT + COUNT ( * ) / + 48 FROM tab2 AS cor0 WHERE NULL < + 33 + + 14 * + + col0 * ( + ( + 87 ) ) * + 91
----
0

query I rowsort
SELECT DISTINCT - 15 FROM tab2 AS cor0 WHERE NULL NOT IN ( - 20, 72 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4620
SELECT ALL - col2 DIV + + 53 + - - col1 * col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( - + 97 ) IS NOT NULL )
----
210
3807
98

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL - col2 / + + 53 + - - col1 * col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( - + 97 ) IS NOT NULL )
----
210
3807
98

query I rowsort
SELECT + col0 + - ( + - col2 ) AS col2 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT + - 18 + + - ( + 6 ) - col2 * col1 * - + col2 FROM tab1 AS cor0
----
129000
17381
217304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - 14 col0 FROM tab1 cor0
----
-196
-658
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4624
SELECT + - CAST( NULL AS SIGNED ) * - 15 + - + ( col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4624
SELECT + - CAST ( NULL AS INTEGER ) * - 15 + - + ( col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - col0 * + 80 AS col2 FROM tab2
----
-187680
-394240
-402000

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT col2 IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT ALL ( + - ( - MAX( DISTINCT - col2 ) ) ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4627
SELECT ALL ( + - ( - MAX ( DISTINCT - col2 ) ) ) AS col2 FROM tab0
----
-10

query I rowsort
SELECT ALL col0 * + + col0 AS col0 FROM tab2
----
2116
4096
5625

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= - - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4630
SELECT DISTINCT COUNT( * ), COUNT( * ) + - COUNT( * ) AS col1 FROM tab1
----
3
0

skipif mysql # not compatible
query II rowsort label-4630
SELECT DISTINCT COUNT ( * ), COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1
----
3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT ALL + + COUNT( * ) * 74 + - 97 AS col0 FROM tab0 WHERE - + 2 <> NULL
----
-97

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL + + COUNT ( * ) * 74 + - 97 AS col0 FROM tab0 WHERE - + 2 <> NULL
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT ALL - 93 * + - COUNT( * ) FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-4632
SELECT ALL - 93 * + - COUNT ( * ) FROM tab0
----
279

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + col0 NOT IN ( + 24 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT - - MAX( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4635
SELECT - - MAX ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
99

query I rowsort
SELECT 63 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 65 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT ALL + col1 * - col2 + - col2 FROM tab1 AS cor0
----
-1440
-3264
-354

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE 89 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - 53 * 51 AS col0 FROM tab0 AS cor0
----
-2703

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4641
SELECT ALL ( col0 ) + + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL ( col0 ) + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT ALL + MAX( ALL + 86 ) + + COUNT( ALL + - col0 ) - + - COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL + MAX ( ALL + 86 ) + + COUNT ( ALL + - col0 ) - + - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
95

query I rowsort
SELECT - col1 / + - col2 + - + 91 + col0 AS col0 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT + MAX( + 12 ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-4644
SELECT + MAX ( + 12 ) FROM tab0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT DISTINCT + - MIN( col0 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4645
SELECT DISTINCT + - MIN ( col0 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT DISTINCT + SUM( DISTINCT ( 45 ) ) + + SUM( + + 44 ) FROM tab2
----
177

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT + SUM ( DISTINCT ( 45 ) ) + + SUM ( + + 44 ) FROM tab2
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT + COUNT( * ) * - 6 AS col0 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-4647
SELECT + COUNT ( * ) * - 6 AS col0 FROM tab2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-4648
SELECT DISTINCT - 60 DIV + + col0 col0 FROM tab2
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4648
SELECT DISTINCT - 60 / + + col0 col0 FROM tab2
----
-1
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + - col1 ) IS NOT NULL
----

query II rowsort
SELECT + 40 AS col2, + 16 FROM tab0 AS cor0
----
40
16
40
16
40
16

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 69 NOT BETWEEN + + 34 AND NULL
----

query II rowsort
SELECT DISTINCT col1, - 48 AS col2 FROM tab1 cor0
----
14
-48
47
-48
5
-48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 80 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT ALL + COUNT( col2 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4654
SELECT ALL + COUNT ( col2 ) col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 82 + - ( - - 38 ) AS col2 FROM tab0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT ALL COUNT( * ) + + COUNT( - 17 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL COUNT ( * ) + + COUNT ( - 17 ) FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT DISTINCT ( + - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4657
SELECT DISTINCT ( + - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4658
SELECT CAST( + + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4658
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4659
SELECT DISTINCT + ( - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4659
SELECT DISTINCT + ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT - MAX( ALL - + ( - col1 ) ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4660
SELECT - MAX ( ALL - + ( - col1 ) ) FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT ALL + MIN( + - 64 ) * + 5 AS col0 FROM tab1
----
-320

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL + MIN ( + - 64 ) * + 5 AS col0 FROM tab1
----
-320

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL BETWEEN NULL AND + col0 - ( 4 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4663
SELECT 81 DIV col1 FROM tab0
----
1
3
81

skipif mysql # not compatible
query I rowsort label-4663
SELECT 81 / col1 FROM tab0
----
1
3
81

query I rowsort
SELECT col2 * + col0 * - 69 FROM tab1
----
-337824
-346035
-426972

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT + MIN( 62 ) FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-4665
SELECT + MIN ( 62 ) FROM tab0 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT 85 * - 25 * - MAX( 37 ) FROM tab2
----
78625

skipif mysql # not compatible
query I rowsort label-4666
SELECT 85 * - 25 * - MAX ( 37 ) FROM tab2
----
78625

query I rowsort
SELECT ALL + 53 * ( + - col2 ) AS col1 FROM tab2
----
-1219
-2120
-3074

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 38 + - 51 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + ( - + col1 ) ) col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query II rowsort label-4670
SELECT + + 66 DIV + col0 - - - col1 AS col1, + col0 FROM tab1 AS cor0
----
-13
51
-47
91
-5
85

skipif mysql # not compatible
query II rowsort label-4670
SELECT + + 66 / + col0 - - - col1 AS col1, + col0 FROM tab1 AS cor0
----
-13
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT DISTINCT 92 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-4671
SELECT DISTINCT 92 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 + 13 col1 FROM tab2 AS cor0
----
50
50
50

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE col2 + + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT - ( - MIN( + col2 ) ) AS col1 FROM tab1 WHERE - + 68 * + col1 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4674
SELECT - ( - MIN ( + col2 ) ) AS col1 FROM tab1 WHERE - + 68 * + col1 BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT DISTINCT - 31 + - 14 + - 69 AS col2 FROM tab1
----
-114

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4676
SELECT ALL - 26 + CAST( 93 AS SIGNED ) + - ( - col2 ) DIV + + 34 AS col2 FROM tab0
----
67
68
69

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL - 26 + CAST ( 93 AS INTEGER ) + - ( - col2 ) / + + 34 AS col2 FROM tab0
----
67
68
69

query I rowsort
SELECT - col2 FROM tab1 WHERE NULL <> + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4678
SELECT DISTINCT + CAST( 66 AS SIGNED ) + + - 78 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-4678
SELECT DISTINCT + CAST ( 66 AS INTEGER ) + + - 78 FROM tab0
----
-12

query I rowsort
SELECT DISTINCT + 93 * - col2 FROM tab2
----
-2139
-3720
-5394

query I rowsort
SELECT ALL 5 + + - col0 AS col0 FROM tab0
----
-10
-82
-92

query II rowsort
SELECT + 57 + 65 AS col1, - 1 FROM tab1
----
122
-1
122
-1
122
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4682
SELECT ALL + 99 DIV COUNT( * ) AS col2 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL + 99 / COUNT ( * ) AS col2 FROM tab1
----
33

query III rowsort
SELECT * FROM tab1 WHERE col2 - - 47 + 2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-4684
SELECT ALL 50 DIV + col2 AS col0, + col0 col2 FROM tab1
----
0
51
0
85
0
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4684
SELECT ALL 50 / + col2 AS col0, + col0 col2 FROM tab1
----
0
51
0
85
0
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4685
SELECT DISTINCT - CAST( - col1 AS SIGNED ) AS col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4685
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) AS col1 FROM tab0
----
1
21
81

query I rowsort
SELECT + 31 * + + 36 + - col2 AS col0 FROM tab2 AS cor0
----
1058
1076
1093

onlyif mysql # DIV for integer division: 
query I rowsort label-4687
SELECT ALL 4 DIV - 9 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4687
SELECT ALL 4 / - 9 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT DISTINCT + COUNT( * ) + - + 68 AS col0 FROM tab1
----
-65

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT + COUNT ( * ) + - + 68 AS col0 FROM tab1
----
-65

query I rowsort
SELECT 1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + + ( 36 )
----

query I rowsort
SELECT 8 * 17 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 241ddcc97f622e1fcc14bd3c6a5bb6f4

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + ( col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 <= 4 + + - col1
----
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4695
SELECT - col2 * col2 DIV - + col0 AS col2 FROM tab1
----
180
40
50

skipif mysql # not compatible
query I rowsort label-4695
SELECT - col2 * col2 / - + col0 AS col2 FROM tab1
----
180
40
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4696
SELECT DISTINCT + SUM( DISTINCT CAST( col2 AS SIGNED ) ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-4696
SELECT DISTINCT + SUM ( DISTINCT CAST ( col2 AS INTEGER ) ) FROM tab2
----
121

onlyif mysql # DIV for integer division: 
query II rowsort label-4697
SELECT col2 AS col0, + col0 DIV + col2 - 59 FROM tab1
----
59
-58
68
-58
96
-59

skipif mysql # not compatible
query II rowsort label-4697
SELECT col2 AS col0, + col0 / + col2 - 59 FROM tab1
----
59
-58
68
-58
96
-59

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT + + 19 - - col2 * + ( + 84 ) * - 48 / - 42 IS NOT NULL
----

query I rowsort
SELECT ALL - ( + + col0 ) AS col2 FROM tab2
----
-46
-64
-75

query II rowsort
SELECT + 5 AS col2, 0 FROM tab2 AS cor0
----
5
0
5
0
5
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4701
SELECT - CAST( NULL AS DECIMAL ) * - col2, + 75 * + 14 AS col1 FROM tab2
----
NULL
1050
NULL
1050
NULL
1050

skipif mysql # not compatible
query II rowsort label-4701
SELECT - CAST ( NULL AS REAL ) * - col2, + 75 * + 14 AS col1 FROM tab2
----
NULL
1050
NULL
1050
NULL
1050

query I rowsort
SELECT + col2 + - 22 AS col2 FROM tab2
----
1
18
36

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT 77 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4704
SELECT ( + 4 ) + + col1 DIV + - col0 FROM tab2 AS cor0
----
3
3
4

skipif mysql # not compatible
query I rowsort label-4704
SELECT ( + 4 ) + + col1 / + - col0 FROM tab2 AS cor0
----
3
3
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4705
SELECT - ( - - 47 ), 76 DIV - - 97 * - ( - 98 ) DIV - + ( + - COUNT( * ) ) - COUNT( - + ( + 51 ) ) AS col2 FROM tab1 AS cor0
----
-47
-3

skipif mysql # not compatible
query II rowsort label-4705
SELECT - ( - - 47 ), 76 / - - 97 * - ( - 98 ) / - + ( + - COUNT ( * ) ) - COUNT ( - + ( + 51 ) ) AS col2 FROM tab1 AS cor0
----
-47
-3

query I rowsort
SELECT - ( - col2 ) * col2 - - col2 FROM tab1 cor0
----
3540
4692
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT ALL - COUNT( * ) + - - 87 col0 FROM tab1
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4707
SELECT ALL - COUNT ( * ) + - - 87 col0 FROM tab1
----
84

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE ( ( NOT NULL IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT - COUNT( * ) col1 FROM tab2, tab1 cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4709
SELECT - COUNT ( * ) col1 FROM tab2, tab1 cor0
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4710
SELECT ALL * FROM tab2 WHERE NOT - 94 + CAST( NULL AS DECIMAL ) * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4710
SELECT ALL * FROM tab2 WHERE NOT - 94 + CAST ( NULL AS REAL ) * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col2 + - 40 FROM tab1 WHERE + ( - + col0 ) - + col1 + 46 * - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4712
SELECT - 43 * col1 * + CAST( - - col1 AS SIGNED ) - + 30 AS col0 FROM tab1
----
-1105
-8458
-95017

skipif mysql # not compatible
query I rowsort label-4712
SELECT - 43 * col1 * + CAST ( - - col1 AS INTEGER ) - + 30 AS col0 FROM tab1
----
-1105
-8458
-95017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col2 col2 FROM tab1
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4714
SELECT ALL CAST( NULL AS SIGNED ) - + 90 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4714
SELECT ALL CAST ( NULL AS INTEGER ) - + 90 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 + col0 * col1 * - - col2 * col2 * + 76 + - + col0 FROM tab1 AS cor0
----
112436156
1503040289
500096877

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col1 NOT BETWEEN - + ( - col1 ) - + 95 + + 57 AND ( + 15 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 50 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT + + 26 + COUNT( * ) AS col1 FROM tab2 cor0
----
29

skipif mysql # not compatible
query I rowsort label-4718
SELECT + + 26 + COUNT ( * ) AS col1 FROM tab2 cor0
----
29

query I rowsort
SELECT DISTINCT - ( + col1 ) * - col1 AS col1 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # aggregate syntax: 
query II rowsort label-4720
SELECT ALL - MAX( + 56 ) AS col1, + COUNT( ALL col1 ) FROM tab0 AS cor0
----
-56
3

skipif mysql # not compatible
query II rowsort label-4720
SELECT ALL - MAX ( + 56 ) AS col1, + COUNT ( ALL col1 ) FROM tab0 AS cor0
----
-56
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = 64 / - 11 + col0 - - 8
----

query I rowsort
SELECT ALL - + col2 * - 13 AS col0 FROM tab2 AS cor0
----
299
520
754

query I rowsort
SELECT DISTINCT ( + - col2 ) * + col2 AS col1 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4724
SELECT ALL CAST( - + 91 AS SIGNED ) FROM tab2
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL CAST ( - + 91 AS INTEGER ) FROM tab2
----
-91
-91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT + 86 * - ( - COUNT( ALL + col1 ) ) AS col2 FROM tab1
----
258

skipif mysql # not compatible
query I rowsort label-4725
SELECT + 86 * - ( - COUNT ( ALL + col1 ) ) AS col2 FROM tab1
----
258

query I rowsort
SELECT - col0 + + 9 - + 10 AS col0 FROM tab0 AS cor0
----
-16
-88
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 28 col0 FROM tab1 AS cor0 WHERE NOT - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT ALL - - SUM( + + col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL <> - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL - - SUM ( + + col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL <> - 66
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4729
SELECT DISTINCT - 1 AS col1, + COUNT( * ) FROM tab1
----
-1
3

skipif mysql # not compatible
query II rowsort label-4729
SELECT DISTINCT - 1 AS col1, + COUNT ( * ) FROM tab1
----
-1
3

query I rowsort
SELECT ALL 99 * - + col2 AS col1 FROM tab1 WHERE NOT + 52 IS NULL
----
-5841
-6732
-9504

query I rowsort
SELECT ALL - 81 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT ALL 74 * col1 + - + 90 * + 8 * - col1 FROM tab0
----
16674
64314
794

query II rowsort
SELECT - col2 AS col2, - col1 FROM tab2
----
-23
-51
-40
-77
-58
-67

query I rowsort
SELECT DISTINCT + col1 * col2 AS col0 FROM tab2 AS cor0 WHERE + 5 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 BETWEEN - 52 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT DISTINCT - SUM( - 93 ) AS col1 FROM tab1 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT - SUM ( - 93 ) AS col1 FROM tab1 AS cor0
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT - 8 + + + COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-4737
SELECT - 8 + + + COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
-17

query I rowsort
SELECT DISTINCT + 55 + + col1 FROM tab0
----
136
56
76

query I rowsort
SELECT col2 FROM tab2 WHERE - 45 IS NULL
----

query II rowsort
SELECT + 78 + - col0 AS col2, - col2 * + 29 FROM tab2
----
14
-1160
3
-1682
32
-667

query II rowsort
SELECT + col1 + - 83, - col2 AS col0 FROM tab2
----
-16
-58
-32
-23
-6
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT DISTINCT - 28 + SUM( ALL + col2 ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-4742
SELECT DISTINCT - 28 + SUM ( ALL + col2 ) FROM tab2
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4743
SELECT ALL col2 * - + CAST( - 98 AS SIGNED ) AS col2 FROM tab0
----
4606
9702
980

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL col2 * - + CAST ( - 98 AS INTEGER ) AS col2 FROM tab0
----
4606
9702
980

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT ALL COUNT( * ) col2 FROM tab0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4744
SELECT ALL COUNT ( * ) col2 FROM tab0 WHERE ( NULL ) IS NULL
----
3

query III rowsort
SELECT * FROM tab0 WHERE - 17 < + 27
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4746
SELECT DISTINCT - MIN( col0 ), - COUNT( * ) col0 FROM tab2 cor0
----
-46
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4746
SELECT DISTINCT - MIN ( col0 ), - COUNT ( * ) col0 FROM tab2 cor0
----
-46
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL >= - 94 )
----

query II rowsort
SELECT DISTINCT 97 * - - ( col2 ) * col0 AS col1, - ( - + 88 ) * - + 49 AS col1 FROM tab1
----
474912
-4312
486455
-4312
600236
-4312

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT ALL 45 * - COUNT( * ) AS col1 FROM tab1
----
-135

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL 45 * - COUNT ( * ) AS col1 FROM tab1
----
-135

query I rowsort
SELECT + 44 * + col1 - 36 * - col2 * + col2 - + - 82 - + + col0 * + 47 AS col1 FROM tab2 cor0 WHERE NOT - 64 = + 76
----
120609
19208
58062

query I rowsort
SELECT DISTINCT ( + - 63 ) FROM tab0 AS cor0
----
-63

query II rowsort
SELECT DISTINCT + col2, - ( col0 ) * 66 AS col1 FROM tab2 AS cor0
----
23
-3036
40
-4224
58
-4950

query I rowsort
SELECT DISTINCT - col0 * 4 FROM tab1 cor0
----
-204
-340
-364

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4754
SELECT ALL - + COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4754
SELECT ALL - + COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + ( 74 ) AS col2 FROM tab2
----
74
74
74

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * + 4 + - 6 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4757
SELECT ALL + 88 DIV col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL + 88 / col2 FROM tab1
----
0
1
1

query I rowsort
SELECT 46 + - - col0 AS col0 FROM tab2
----
110
121
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4759
SELECT 45 DIV + - col1 FROM tab0 AS cor0
----
-2
-45
0

skipif mysql # not compatible
query I rowsort label-4759
SELECT 45 / + - col1 FROM tab0 AS cor0
----
-2
-45
0

query I rowsort
SELECT DISTINCT + col2 * + - 53 AS col0 FROM tab2 AS cor0
----
-1219
-2120
-3074

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT MIN( DISTINCT - - col0 ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-4761
SELECT MIN ( DISTINCT - - col0 ) FROM tab0 cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4762
SELECT * FROM tab1 cor0 WHERE ( + CAST( NULL AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-4762
SELECT * FROM tab1 cor0 WHERE ( + CAST ( NULL AS INTEGER ) IS NOT NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4763
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT NULL = + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-4763
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT NULL = + CAST ( NULL AS REAL )
----

query I rowsort
SELECT + - 55 * col1 FROM tab2 AS cor0
----
-2805
-3685
-4235

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT ALL MIN( DISTINCT 59 ) AS col2 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4765
SELECT ALL MIN ( DISTINCT 59 ) AS col2 FROM tab0 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT - - MAX( 34 ) FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-4766
SELECT - - MAX ( 34 ) FROM tab0 AS cor0
----
34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4767
SELECT col1 col2, col0 * CAST( col2 AS SIGNED ) DIV + 85 FROM tab0 AS cor0
----
1
112
21
10
81
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4767
SELECT col1 col2, col0 * CAST ( col2 AS INTEGER ) / + 85 FROM tab0 AS cor0
----
1
112
21
10
81
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT DISTINCT + MIN( ALL + 60 ) + + - MAX( col0 ) AS col1 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT + MIN ( ALL + 60 ) + + - MAX ( col0 ) AS col1 FROM tab1
----
-31

query I rowsort
SELECT - col1 - + - col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col2 - - 31 AS col2 FROM tab1
----
127
90
99

query I rowsort
SELECT + 61 + - + col1 FROM tab0
----
-20
40
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT + COUNT( * ) * COUNT( + - 31 ) + 54 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-4772
SELECT + COUNT ( * ) * COUNT ( + - 31 ) + 54 FROM tab2 AS cor0
----
63

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 74 > NULL
----

query II rowsort
SELECT ( - ( + col1 ) ) AS col1, col0 AS col0 FROM tab2
----
-51
46
-67
75
-77
64

query I rowsort
SELECT ALL + col1 * col0 * - col2 FROM tab1 AS cor0
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT ALL + MIN( ALL 36 ) AS col0 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL + MIN ( ALL 36 ) AS col0 FROM tab1 AS cor0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT ALL + - 68 AS col0 FROM tab1 cor0
----
-68
-68
-68

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col0 - col0 + + ( 59 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * 58 * - col1 + 91 AS col2 FROM tab1 AS cor0
----
-11277
-128031
-1359

query I rowsort
SELECT ALL - col2 * col1 - col1 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1224
-3157
-3953

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4782
SELECT + CAST( NULL AS SIGNED ) AS col2, + col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-4782
SELECT + CAST ( NULL AS INTEGER ) AS col2, + col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT ALL + + COUNT( * ) AS col1 FROM tab0 WHERE NOT + col1 >= - 54 + col0 + + 11
----
2

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL + + COUNT ( * ) AS col1 FROM tab0 WHERE NOT + col1 >= - 54 + col0 + + 11
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4784
SELECT - 70 DIV + 14 + + COUNT( * ) AS col2 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-4784
SELECT - 70 / + 14 + + COUNT ( * ) AS col2 FROM tab0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT ALL + COUNT( * ) + + 9 AS col1 FROM tab1 WHERE NOT + + 47 >= NULL
----
9

skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL + COUNT ( * ) + + 9 AS col1 FROM tab1 WHERE NOT + + 47 >= NULL
----
9

query I rowsort
SELECT - 12 + - - 69 AS col2 FROM tab2
----
57
57
57

query I rowsort
SELECT - + col0 FROM tab2 WHERE col2 IS NULL
----

query II rowsort
SELECT DISTINCT col2 AS col0, col1 AS col0 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # DIV for integer division: 
query I rowsort label-4789
SELECT ALL - + 30 DIV - 69 + + - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL - + 30 / - 69 + + - col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4790
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4790
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT DISTINCT + ( + MAX( - ( - + col2 ) ) ) - - 23 * 28 AS col2 FROM tab2
----
702

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT + ( + MAX ( - ( - + col2 ) ) ) - - 23 * 28 AS col2 FROM tab2
----
702

query III rowsort
SELECT * FROM tab0 WHERE + 65 * - 0 BETWEEN + 20 AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4793
SELECT DISTINCT - col1 DIV - 92 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4793
SELECT DISTINCT - col1 / - 92 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + ( - + 91 ) FROM tab2 AS cor0
----
-91
-91
-91

query I rowsort
SELECT col1 * + ( col2 ) + 46 + col0 AS col1 FROM tab2 AS cor0
----
1265
3190
4007

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - ( - col0 ) col1 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # DIV for integer division: 
query I rowsort label-4797
SELECT 13 DIV + 56 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4797
SELECT 13 / + 56 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE ( NULL NOT BETWEEN col0 AND 5 )
----

query I rowsort
SELECT DISTINCT - col1 + - 31 + - col0 AS col0 FROM tab1
----
-121
-169
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 23 ) col2 FROM tab2
----
23
23
23

query II rowsort
SELECT DISTINCT col1, 26 FROM tab2
----
51
26
67
26
77
26

query I rowsort
SELECT ( 80 ) * + col1 * + col0 AS col1 FROM tab0
----
146160
7760
97200

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT ALL + - COUNT( ALL - 75 ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4803
SELECT ALL + - COUNT ( ALL - 75 ) col2 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4804
SELECT - 90 DIV - 49 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4804
SELECT - 90 / - 49 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + 24 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT ALL - - col2 + + col0 FROM tab0 WHERE col2 NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT - 36 * SUM( - - 29 ) FROM tab1
----
-3132

skipif mysql # not compatible
query I rowsort label-4807
SELECT - 36 * SUM ( - - 29 ) FROM tab1
----
-3132

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 < ( - + col1 * col2 - - col2 - - + ( + 56 ) * + - 92 * + - 96 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 * + ( 8 ) + col2 FROM tab2 AS cor0
----
391
552
658

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NULL <= ( - col1 ) * + - 74
----

query II rowsort
SELECT - + col0 * + col2 AS col2, 76 AS col0 FROM tab0 AS cor0
----
-705
76
-870
76
-9603
76

query I rowsort
SELECT ALL 65 * - + ( + col2 ) * + + 8 + + col1 * - - 85 FROM tab2 AS cor0
----
-14255
-24465
-7625

query II rowsort
SELECT DISTINCT col0 AS col2, + col1 AS col0 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT ALL - col0 + - + col0 AS col1 FROM tab2 AS cor0 WHERE + col2 > 45
----
-150

query I rowsort
SELECT col1 FROM tab1 WHERE NOT + col1 <> - - col2 + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 col0 FROM tab0
----
8
8
8

query I rowsort
SELECT - col1 * - 10 FROM tab2
----
510
670
770

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT ALL 10 + - - MIN( ALL + col0 ) * + - COUNT( * ) + ( 82 ) col2 FROM tab0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4818
SELECT ALL 10 + - - MIN ( ALL + col0 ) * + - COUNT ( * ) + ( 82 ) col2 FROM tab0
----
47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN - - 35 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT ALL + COUNT( * ) + 60 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL + COUNT ( * ) + 60 FROM tab0
----
63

query I rowsort
SELECT DISTINCT 55 * + col0 AS col2 FROM tab2
----
2530
3520
4125

query I rowsort
SELECT ALL ( - col1 ) * - 21 * - 86 FROM tab2
----
-121002
-139062
-92106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND 77
----

query I rowsort
SELECT ALL + + AVG ( ALL - 33 ) FROM tab0 WHERE NOT + - 96 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4825
SELECT + CAST( - 55 AS SIGNED ) * - col2 * + 28 / col2 + - - col1 col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4825
SELECT + CAST ( - 55 AS INTEGER ) * - col2 * + 28 / col2 + - - col1 col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4826
SELECT ALL - CAST( NULL AS SIGNED ) / - COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL - CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT col2 * col1, col2, + 8 AS col2 FROM tab2 AS cor0
----
9 values hashing to f8877da41d06c4f2d055f7629b9a77ac

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4828
SELECT ALL * FROM tab1 cor0 WHERE NOT - + col0 * + + col1 IS NULL AND NULL BETWEEN - CAST( - col1 AS SIGNED ) AND - - col1 * + 25 * - - col2
----

skipif mysql # not compatible
query III rowsort label-4828
SELECT ALL * FROM tab1 cor0 WHERE NOT - + col0 * + + col1 IS NULL AND NULL BETWEEN - CAST ( - col1 AS INTEGER ) AND - - col1 * + 25 * - - col2
----

query I rowsort
SELECT + ( 30 ) FROM tab0 AS cor0
----
30
30
30

query II rowsort
SELECT + 96, + col1 FROM tab2 AS cor0
----
96
51
96
67
96
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT ( - ( + + ( + COUNT( * ) ) ) ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4831
SELECT ( - ( + + ( + COUNT ( * ) ) ) ) col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - 23 * col1 - - - 61 - + col0 FROM tab1 AS cor0
----
-1233
-261
-434

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4833
SELECT + col1 - + col0 - + CAST( + 68 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-134
-164
-2

skipif mysql # not compatible
query I rowsort label-4833
SELECT + col1 - + col0 - + CAST ( + 68 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-134
-164
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4834
SELECT + col2 - - ( 50 ) DIV + CAST( - col0 AS SIGNED ) AS col1 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4834
SELECT + col2 - - ( 50 ) / + CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 cor0
----
59
68
96

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query III rowsort label-4835
SELECT * FROM tab0 WHERE + col1 DIV - + col0 NOT IN ( + + 32 * + col2, CAST( + - 39 AS DECIMAL ), col1 + col0 - - - 57, + + col1 + - col1 ) AND + 44 + - col2 IS NOT NULL
----
15
81
47

skipif mysql # not compatible
query III rowsort label-4835
SELECT * FROM tab0 WHERE + col1 / - + col0 NOT IN ( + + 32 * + col2, CAST ( + - 39 AS REAL ), col1 + col0 - - - 57, + + col1 + - col1 ) AND + 44 + - col2 IS NOT NULL
----
15
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4836
SELECT DISTINCT 1 DIV 5 * - col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4836
SELECT DISTINCT 1 / 5 * - col0 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col2 BETWEEN col2 AND + col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 82 + + 37 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4839
SELECT - col0 DIV - 84 * + + 31 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4839
SELECT - col0 / - 84 * + + 31 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col0 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - + col0, + 5 AS col0 FROM tab0 AS cor0 WHERE NOT 42 IS NULL
----
-15
5
-87
5
-97
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 43 col1 FROM tab0 AS cor0
----
-43
-43
-43

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT - 3 / 67 >= NULL
----

query II rowsort
SELECT + 23, - 75 AS col2 FROM tab1 AS cor0
----
23
-75
23
-75
23
-75

query II rowsort
SELECT ALL - 12 AS col2, 10 * - col0 FROM tab0 cor0
----
-12
-150
-12
-870
-12
-970

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT - MAX( - + col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4846
SELECT - MAX ( - + col1 ) AS col2 FROM tab2 AS cor0
----
51

query II rowsort
SELECT DISTINCT - col1 AS col1, + 58 FROM tab1 AS cor0
----
-14
58
-47
58
-5
58

query I rowsort
SELECT ALL - + col1 + - 55 AS col1 FROM tab1 cor0
----
-102
-60
-69

query I rowsort
SELECT DISTINCT + col2 + - 91 AS col1 FROM tab0 AS cor0
----
-44
-81
8

query I rowsort
SELECT 88 AS col1 FROM tab1 AS cor0 WHERE - col2 * - col0 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 10 * + col1 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 45 col1, col1 AS col2 FROM tab0
----
45
1
45
21
45
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4853
SELECT col2 DIV + 99 + - + 53 AS col2 FROM tab0
----
-52
-53
-53

skipif mysql # not compatible
query I rowsort label-4853
SELECT col2 / + 99 + - + 53 AS col2 FROM tab0
----
-52
-53
-53

query I rowsort
SELECT col1 * col0 + - col2 AS col0 FROM tab1
----
366
4209
618

query I rowsort
SELECT + col0 * - col1 + - col2 * + col1 + - col0 FROM tab2
----
-3565
-8072
-8986

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL < 95
----

query I rowsort
SELECT ALL - ( + - col2 ) + + 88 AS col2 FROM tab1 AS cor0
----
147
156
184

query I rowsort
SELECT - col0 - + 51 AS col1 FROM tab0
----
-138
-148
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-4859
SELECT DISTINCT - 2 DIV + 78 + + - col0 col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4859
SELECT DISTINCT - 2 / + 78 + + - col0 col2 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL + + col0 * 29 FROM tab2 AS cor0
----
1334
1856
2175

query I rowsort
SELECT ALL + 48 - col0 FROM tab0 cor0
----
-39
-49
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT DISTINCT 33 + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
33

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT 33 + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
33

query II rowsort
SELECT DISTINCT col1 * + 20, col2 AS col2 FROM tab0 AS cor0
----
1620
47
20
99
420
10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT + col1 + col0 * + col1 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4865
SELECT - col1 DIV col0 * CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
0
0
75

skipif mysql # not compatible
query I rowsort label-4865
SELECT - col1 / col0 * CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
0
0
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4866
SELECT + 12, COUNT( * ) AS col1 FROM tab1
----
12
3

skipif mysql # not compatible
query II rowsort label-4866
SELECT + 12, COUNT ( * ) AS col1 FROM tab1
----
12
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4867
SELECT + AVG ( DISTINCT - CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT + AVG ( DISTINCT - CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4868
SELECT DISTINCT - ( + - CAST( - COUNT( * ) AS SIGNED ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4868
SELECT DISTINCT - ( + - CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 col0 FROM tab2
----
19
19
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4870
SELECT DISTINCT col0 FROM tab1 WHERE + col1 / + + ( - ( + CAST( - + 31 AS SIGNED ) ) ) + - 72 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-4870
SELECT DISTINCT col0 FROM tab1 WHERE + col1 / + + ( - ( + CAST ( - + 31 AS INTEGER ) ) ) + - 72 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - ( - 16 ) FROM tab2 AS cor0
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT ALL MIN( + col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL MIN ( + col1 ) AS col0 FROM tab1 AS cor0
----
5

query I rowsort
SELECT + col0 * - 14 FROM tab0 AS cor0
----
-1218
-1358
-210

query I rowsort
SELECT + col1 * - col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT - + 18 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

onlyif mysql # aggregate syntax: 
query II rowsort label-4876
SELECT DISTINCT MIN( ALL - + 49 ) AS col1, + 64 - 63 AS col1 FROM tab1
----
-49
1

skipif mysql # not compatible
query II rowsort label-4876
SELECT DISTINCT MIN ( ALL - + 49 ) AS col1, + 64 - 63 AS col1 FROM tab1
----
-49
1

query I rowsort
SELECT + 10 * - - col2 * col2 FROM tab0 cor0
----
1000
22090
98010

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 NOT IN ( + col0, col2, + 21 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( col0 ) + + - 88 AS col2 FROM tab0
----
-1
-73
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4880
SELECT * FROM tab1 WHERE CAST( + col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4880
SELECT * FROM tab1 WHERE CAST ( + col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 + - 46 IS NOT NULL
----

query I rowsort
SELECT - col0 - col2 + + 88 FROM tab0
----
-108
-9
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + 88 col0 FROM tab1 AS cor0
----
4488
7480
8008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4884
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4884
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT + COUNT( * ) + + 41 * - COUNT( * ) FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-4885
SELECT + COUNT ( * ) + + 41 * - COUNT ( * ) FROM tab2 AS cor0
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4886
SELECT ALL - col0 + col0 + - - col2 * - - ( col0 ) * + ( - + CAST( - 46 AS SIGNED ) ) - col1, + 73 AS col2 FROM tab1
----
225202
73
230685
73
284601
73

skipif mysql # not compatible
query II rowsort label-4886
SELECT ALL - col0 + col0 + - - col2 * - - ( col0 ) * + ( - + CAST ( - 46 AS INTEGER ) ) - col1, + 73 AS col2 FROM tab1
----
225202
73
230685
73
284601
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - 67 col1 FROM tab1
----
114
72
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4888
SELECT - col0 AS col0, ( col1 ) + - 5 + ( + - 71 ) * + CAST( NULL AS SIGNED ) * + 5 * + col1 * - col1 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-4888
SELECT - col0 AS col0, ( col1 ) + - 5 + ( + - 71 ) * + CAST ( NULL AS INTEGER ) * + 5 * + col1 * - col1 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL <= + ( - - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4889
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL <= + ( - - col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT ALL - 96 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-4890
SELECT ALL - 96 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-288

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4891
SELECT ALL + + 34 DIV + COUNT( - 80 ) AS col1 FROM tab0 cor0
----
11

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL + + 34 / + COUNT ( - 80 ) AS col1 FROM tab0 cor0
----
11

query I rowsort
SELECT ALL + 49 FROM tab2 WHERE NOT + - col0 IS NOT NULL
----

query I rowsort
SELECT - col2 * - + 10 * - col0 FROM tab2
----
-10580
-25600
-43500

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT ( + ( - 41 ) - + + col0 IS NULL )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT DISTINCT + COUNT( * ) * MIN( ALL + col1 ) FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT + COUNT ( * ) * MIN ( ALL + col1 ) FROM tab2
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT + COUNT( ALL - + col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4896
SELECT + COUNT ( ALL - + col1 ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4897
SELECT MIN( DISTINCT - - CAST( + col2 AS SIGNED ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4897
SELECT MIN ( DISTINCT - - CAST ( + col2 AS INTEGER ) ) FROM tab1
----
59

query I rowsort
SELECT ALL + col0 * + ( col1 ) FROM tab2
----
2346
4928
5025

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 < 25
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4900
SELECT ALL col2 * CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL col2 * CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4901
SELECT DISTINCT + - col2 DIV - col0 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4901
SELECT DISTINCT + - col2 / - col0 AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 = + 72
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 + - - col1 * col1 FROM tab0
----
-96
354
6546

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT ALL - COUNT( + col1 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL - COUNT ( + col1 ) AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4905
SELECT DISTINCT - - MAX( col0 ) DIV SUM( col1 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT - - MAX ( col0 ) / SUM ( col1 ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4906
SELECT - col0 DIV col1 + - - col2 + - 89 * col2 * + 53 + - col0 * 36 AS col1, - 87 FROM tab2 AS cor0
----
-110124
-87
-190944
-87
-276229
-87

skipif mysql # not compatible
query II rowsort label-4906
SELECT - col0 / col1 + - - col2 + - 89 * col2 * + 53 + - col0 * 36 AS col1, - 87 FROM tab2 AS cor0
----
-110124
-87
-190944
-87
-276229
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4907
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS DECIMAL ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-4907
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS REAL ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT + COUNT( * ) AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4908
SELECT + COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL + + 85 FROM tab1 cor0 WHERE NOT + ( - - ( - col2 ) ) IS NULL
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT 72 + + COUNT( * ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4910
SELECT 72 + + COUNT ( * ) FROM tab1 AS cor0
----
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 52 BETWEEN col2 * 79 AND col2 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4912
SELECT ALL CAST( - ( + 78 ) AS SIGNED ) FROM tab1 AS cor0
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL CAST ( - ( + 78 ) AS INTEGER ) FROM tab1 AS cor0
----
-78
-78
-78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4913
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + 2 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4913
SELECT DISTINCT + CAST ( NULL AS REAL ) + + 2 AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 23 + - - col0 * - 82 IS NULL
----

query II rowsort
SELECT DISTINCT + - col1 AS col1, + col0 * 63 FROM tab0 cor0
----
-1
6111
-21
5481
-81
945

query II rowsort
SELECT ALL - col2 + + 8, col0 AS col0 FROM tab2
----
-15
46
-32
64
-50
75

query I rowsort
SELECT DISTINCT + - 79 FROM tab2 WHERE col1 * - 91 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4918
SELECT ALL - 36 * + + CAST( NULL AS SIGNED ) - - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL - 36 * + + CAST ( NULL AS INTEGER ) - - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4919
SELECT - CAST( COUNT( DISTINCT + 25 ) AS SIGNED ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4919
SELECT - CAST ( COUNT ( DISTINCT + 25 ) AS INTEGER ) AS col1 FROM tab2
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - + ( col0 ) col2 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT ALL + col0 - col1 + col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT - 94 * + + col2 * col0 - col0 FROM tab2 cor0
----
-240704
-408975
-99498

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4923
SELECT - - col2 - + CAST( NULL AS SIGNED ) 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-4923
SELECT - - col2 - + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col1 * + - col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4925
SELECT ALL + ( - ( - + col1 ) ) * - + 90 * - ( + CAST( - 4 AS SIGNED ) ) col2 FROM tab1 cor0
----
-16920
-1800
-5040

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4925
SELECT ALL + ( - ( - + col1 ) ) * - + 90 * - ( + CAST ( - 4 AS INTEGER ) ) col2 FROM tab1 cor0
----
-16920
-1800
-5040

query I rowsort
SELECT 97 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT - + MAX( 80 ) FROM tab1 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-4927
SELECT - + MAX ( 80 ) FROM tab1 AS cor0
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-4928
SELECT DISTINCT 51 AS col0, COUNT( * ) AS col0 FROM tab1
----
51
3

skipif mysql # not compatible
query II rowsort label-4928
SELECT DISTINCT 51 AS col0, COUNT ( * ) AS col0 FROM tab1
----
51
3

query I rowsort
SELECT + col2 * - - 18 AS col1 FROM tab1
----
1062
1224
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT - 30 * + ( + + COUNT( DISTINCT + 33 ) ) FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-4930
SELECT - 30 * + ( + + COUNT ( DISTINCT + 33 ) ) FROM tab2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT ALL + 95 * + + COUNT( DISTINCT col1 ) FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL + 95 * + + COUNT ( DISTINCT col1 ) FROM tab2
----
285

query I rowsort
SELECT DISTINCT - col1 * 76 FROM tab1
----
-1064
-3572
-380

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4933
SELECT col1 AS col2, + CAST( col1 AS SIGNED ) + + - 28, - col0 * + - 5 col2 FROM tab2
----
9 values hashing to 8213c001c209604e398782ae2fb22c5a

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-4933
SELECT col1 AS col2, + CAST ( col1 AS INTEGER ) + + - 28, - col0 * + - 5 col2 FROM tab2
----
9 values hashing to 8213c001c209604e398782ae2fb22c5a

query III rowsort
SELECT * FROM tab2 WHERE NOT 48 * col2 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4935
SELECT ALL + 4 AS col0, - 19 * 55 * - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( 5 + + col2 ) IS NOT NULL
----
4
3135

skipif mysql # not compatible
query II rowsort label-4935
SELECT ALL + 4 AS col0, - 19 * 55 * - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( 5 + + col2 ) IS NOT NULL
----
4
3135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4936
SELECT ALL MAX( + col1 ) + + CAST( + MIN( DISTINCT - col1 ) AS SIGNED ) col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4936
SELECT ALL MAX ( + col1 ) + + CAST ( + MIN ( DISTINCT - col1 ) AS INTEGER ) col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + col0 + + + 95 AS col2 FROM tab2 AS cor0
----
20
31
49

query I rowsort
SELECT col2 * + ( + 20 ) + col2 AS col0 FROM tab0
----
2079
210
987

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT ( + ( 1 ) ) + - ( + - COUNT( * ) ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-4939
SELECT ( + ( 1 ) ) + - ( + - COUNT ( * ) ) FROM tab0
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-4940
SELECT col2 DIV - col2 AS col2, + 94 AS col0 FROM tab0 AS cor0
----
-1
94
-1
94
-1
94

skipif mysql # not compatible
query II rowsort label-4940
SELECT col2 / - col2 AS col2, + 94 AS col0 FROM tab0 AS cor0
----
-1
94
-1
94
-1
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT 1 * + + 14 * + + SUM( ALL + 97 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
4074

skipif mysql # not compatible
query I rowsort label-4941
SELECT 1 * + + 14 * + + SUM ( ALL + 97 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
4074

query I rowsort
SELECT + + 61 * + + 73 FROM tab2 AS cor0
----
4453
4453
4453

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4943
SELECT + SUM( DISTINCT + - CAST( col0 AS SIGNED ) ) AS col0 FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4943
SELECT + SUM ( DISTINCT + - CAST ( col0 AS INTEGER ) ) AS col0 FROM tab2 cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT ALL + 52 + + COUNT( * ) * - - 81 AS col0 FROM tab2 AS cor0
----
295

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL + 52 + + COUNT ( * ) * - - 81 AS col0 FROM tab2 AS cor0
----
295

query III rowsort
SELECT ALL * FROM tab0 WHERE + - ( - 95 ) * - + 85 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 + 53 + + - col2 * + col1 FROM tab2
----
-1074
-2963
-3758

query III rowsort
SELECT * FROM tab1 WHERE + - 49 * col2 * - + col1 * 78 / + col0 * + + 9 <= - col1
----

query I rowsort
SELECT ALL 91 + + - 60 FROM tab2
----
31
31
31

query I rowsort
SELECT ALL col0 + + 58 FROM tab1
----
109
143
149

query I rowsort
SELECT DISTINCT + 62 + + - 12 + col0 FROM tab1
----
101
135
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4951
SELECT DISTINCT + CAST( col2 AS SIGNED ) FROM tab0 WHERE ( NOT NULL IS NULL )
----

skipif mysql # not compatible
query I rowsort label-4951
SELECT DISTINCT + CAST ( col2 AS INTEGER ) FROM tab0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT ALL + col2 * + 57 - + col1 + - - col0 FROM tab0
----
2613
5739
636

query I rowsort
SELECT - col2 * - col0 + + 6 FROM tab2
----
1064
2566
4356

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4954
SELECT - CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ), + col1 + + col2 AS col2 FROM tab2 AS cor0 WHERE ( + - col2 ) + col2 * - col2 - - col2 IS NOT NULL
----
NULL
117
NULL
125
NULL
74

skipif mysql # not compatible
query II rowsort label-4954
SELECT - CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ), + col1 + + col2 AS col2 FROM tab2 AS cor0 WHERE ( + - col2 ) + col2 * - col2 - - col2 IS NOT NULL
----
NULL
117
NULL
125
NULL
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4955
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4955
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) IN ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col0 + 14 AS col1 FROM tab0
----
101
111
29

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 13 * 74 - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT DISTINCT + COUNT( * ) * MAX( ALL - col2 ) - SUM( + col0 ) FROM tab1
----
-404

skipif mysql # not compatible
query I rowsort label-4958
SELECT DISTINCT + COUNT ( * ) * MAX ( ALL - col2 ) - SUM ( + col0 ) FROM tab1
----
-404

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4959
SELECT CAST( + 37 AS SIGNED ) * col0 + - col1 * - col1 FROM tab2 WHERE + 21 NOT BETWEEN - 4 AND ( col0 * col0 - 36 )
----

skipif mysql # not compatible
query I rowsort label-4959
SELECT CAST ( + 37 AS INTEGER ) * col0 + - col1 * - col1 FROM tab2 WHERE + 21 NOT BETWEEN - 4 AND ( col0 * col0 - 36 )
----

query I rowsort
SELECT DISTINCT + col1 + 16 * + col1 AS col1 FROM tab1
----
238
799
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT + 29 + COUNT( col1 ) AS col0 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-4961
SELECT + 29 + COUNT ( col1 ) AS col0 FROM tab1
----
32

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 / - col1 + col1 IS NOT NULL
----

query I rowsort
SELECT + 31 AS col1 FROM tab2 WHERE NOT ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL col0 - col0 FROM tab0 WHERE NOT + ( 86 ) BETWEEN + col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 40 ) IN ( col0 / - col2 + - 4 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 + - 1 * + ( - col1 + col1 ) col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT + 90 * - 50 + - 81 * col1 FROM tab0
----
-11061
-4581
-6201

query I rowsort
SELECT - col2 * - col0 - 93 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 45 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4970
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4970
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4971
SELECT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) / + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4971
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) / + col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 / 85 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 - - col2 col1 FROM tab2
----
112
130
95

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NOT 21 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT COUNT( * ) - 80 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4975
SELECT COUNT ( * ) - 80 FROM tab2
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 66 * col1 col0 FROM tab0
----
1396
165
5393

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE col1 + + ( - ( - col0 ) ) NOT BETWEEN col2 AND NULL
----
51

query I rowsort
SELECT + col1 + - col0 * ( - col2 * + col2 ) FROM tab2
----
102477
24385
252367

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT ALL COUNT( * ) FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL COUNT ( * ) FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4980
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col2 ) IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 27 * - ( col1 ) - - col2 * col0 AS col2 FROM tab0 WHERE ( - col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 87 * col0 + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT - COUNT( * ) * - ( + MIN( ALL ( + col1 ) ) ) + + 55 * COUNT( * ) FROM tab0 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-4984
SELECT - COUNT ( * ) * - ( + MIN ( ALL ( + col1 ) ) ) + + 55 * COUNT ( * ) FROM tab0 AS cor0
----
168

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT ALL + + COUNT( * ) * - 25 AS col2 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4986
SELECT ALL + + COUNT ( * ) * - 25 AS col2 FROM tab1 AS cor0
----
-75

query I rowsort
SELECT DISTINCT 93 + - ( col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( + 59 * + 93 ) AND - 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT DISTINCT + 29 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-4988
SELECT DISTINCT + 29 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
32

query III rowsort
SELECT * FROM tab1 cor0 WHERE 32 >= - col2 * 25
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= - col0 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT DISTINCT + 25 * COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 + col1 > col2 + + col1
----
0

skipif mysql # not compatible
query I rowsort label-4991
SELECT DISTINCT + 25 * COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 + col1 > col2 + + col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4992
SELECT + + col1 + - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4992
SELECT + + col1 + - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT AVG ( DISTINCT + col1 ) col0 FROM tab0 AS cor0 WHERE NULL = + col2 / col0
----
NULL

query I rowsort
SELECT 70 + - + col2 AS col0 FROM tab2
----
12
30
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 col2 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT DISTINCT - col0 + 39 - - 15 FROM tab2
----
-10
-21
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4997
SELECT ALL CAST( NULL AS DECIMAL ) + COUNT( DISTINCT col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL CAST ( NULL AS REAL ) + COUNT ( DISTINCT col0 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT DISTINCT + MAX( ALL col0 ) + - COUNT( * ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-4998
SELECT DISTINCT + MAX ( ALL col0 ) + - COUNT ( * ) FROM tab2
----
72

query I rowsort
SELECT ALL - 75 + 29 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 - + + col2 + 15 * - col2 FROM tab0
----
-1487
-73
-737

query I rowsort
SELECT DISTINCT + - 79 * - col2 FROM tab2 cor0
----
1817
3160
4582

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5002
SELECT * FROM tab0 WHERE NOT ( CAST( NULL AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-5002
SELECT * FROM tab0 WHERE NOT ( CAST ( NULL AS INTEGER ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT ALL + - COUNT( ALL 74 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL + - COUNT ( ALL 74 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query II rowsort
SELECT ALL + + col2 AS col2, 71 AS col2 FROM tab1 AS cor0
----
59
71
68
71
96
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT MAX( ALL col2 ) * ( COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT col1 <= + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-5005
SELECT MAX ( ALL col2 ) * ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT col1 <= + 92
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5006
SELECT - - col2, + ( - - ( - col0 ) ) - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-5006
SELECT - - col2, + ( - - ( - col0 ) ) - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, ( + + 5 ) AS col0 FROM tab2 AS cor0
----
46
5
64
5
75
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT 76 * + - COUNT( * ) * 13 AS col1 FROM tab0 AS cor0
----
-2964

skipif mysql # not compatible
query I rowsort label-5008
SELECT 76 * + - COUNT ( * ) * 13 AS col1 FROM tab0 AS cor0
----
-2964

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT COUNT( * ) * + - 97 AS col1 FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-5009
SELECT COUNT ( * ) * + - 97 AS col1 FROM tab0
----
-291

query I rowsort
SELECT DISTINCT + 12 * + + 54 * + 8 FROM tab2
----
5184

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT 10 * - - COUNT( ALL col1 ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-5011
SELECT 10 * - - COUNT ( ALL col1 ) FROM tab0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5012
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT col2 * + col0 * - - ( - - col0 ) FROM tab1
----
249696
426275
563108

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT DISTINCT + 0 + COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5014
SELECT DISTINCT + 0 + COUNT ( * ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 WHERE - 49 IS NULL
----

query I rowsort
SELECT 95 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 + + - col0 * 91 col0 FROM tab2 AS cor0
----
-4090
-5728
-6729

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT - COUNT( col2 ) * + SUM( 49 ) + - 94 FROM tab2 AS cor0
----
-535

skipif mysql # not compatible
query I rowsort label-5018
SELECT - COUNT ( col2 ) * + SUM ( 49 ) + - 94 FROM tab2 AS cor0
----
-535

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5019
SELECT - + CAST( NULL AS SIGNED ) + MIN( ALL col0 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5019
SELECT - + CAST ( NULL AS INTEGER ) + MIN ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT + 61 + - COUNT( * ) + + COUNT( * ) AS col0 FROM tab0 cor0
----
61

skipif mysql # not compatible
query I rowsort label-5020
SELECT + 61 + - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0 cor0
----
61

query I rowsort
SELECT + 59 + - - 9 FROM tab2
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT ALL COUNT( * ) + + COUNT( * ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5022
SELECT ALL COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0
----
6

query III rowsort
SELECT * FROM tab2 WHERE ( col1 * - col1 * + + col1 ) NOT BETWEEN ( col0 ) AND 64 * - 59
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 89 + + + col2 AS col2 FROM tab2
----
-31
-49
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 11 * - 29 * col2 + col0 col0 FROM tab2 AS cor0
----
12824
18577
7383

query I rowsort
SELECT DISTINCT - 4 FROM tab2 AS cor0 WHERE + col0 * + col2 / + + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( ( + col2 ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT DISTINCT + COUNT( - 1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT + COUNT ( - 1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 81 FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 * + + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col1 * + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - + col1 + + 59 col0 FROM tab0 AS cor0
----
59
59
59

query I rowsort
SELECT - col0 * - - col0 AS col1 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT + - 67 * + 85 AS col0 FROM tab1 cor0
----
-5695
-5695
-5695

query I rowsort
SELECT ALL col0 * - - col0 + - - 59 * + - col2 + - col2 + col2 AS col2 FROM tab0 AS cor0
----
-2548
3568
6979

query I rowsort
SELECT - col2 - + + col2 AS col0 FROM tab1 AS cor0
----
-118
-136
-192

query I rowsort
SELECT DISTINCT - col0 * - 36 AS col1 FROM tab0 cor0
----
3132
3492
540

query I rowsort
SELECT ALL - 20 FROM tab1 WHERE NULL NOT IN ( + + col0 - 19 )
----

query I rowsort
SELECT ALL - 84 * + + col1 + col0 FROM tab2
----
-4238
-5553
-6404

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE ( NOT ( NOT + col0 = ( + 90 ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5040
SELECT ALL - MIN( ALL 7 ) + + CAST( - + COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL - MIN ( ALL 7 ) + + CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT COUNT( * ) + 26 AS col2 FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-5041
SELECT COUNT ( * ) + 26 AS col2 FROM tab0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT + MAX( DISTINCT - 50 ) AS col0 FROM tab0
----
-50

skipif mysql # not compatible
query I rowsort label-5042
SELECT + MAX ( DISTINCT - 50 ) AS col0 FROM tab0
----
-50

query III rowsort
SELECT ALL * FROM tab2 WHERE + 10 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT 53 * - + 26 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to eb6626b843a8d9c7e10369ad188b8d6c

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <> - ( + 53 ) / + col0 + - col1
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 IN ( - 38, 83 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 * + col2 * + 48 FROM tab1 AS cor0
----
14160
153408
64512

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - 23 / + 94
----

query I rowsort
SELECT ALL - 12 * - col1 AS col0 FROM tab2 AS cor0
----
612
804
924

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5050
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + CAST( + col2 AS SIGNED ) >= - 37 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5050
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + CAST ( + col2 AS INTEGER ) >= - 37 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 col1 FROM tab1 AS cor0
----
27
27
27

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 + col0 BETWEEN 83 AND ( + 23 + - col0 * col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5053
SELECT - 22 DIV col0 * + 10 * - + col1 * + col2 * + CAST( + col2 AS SIGNED ) + - 77 FROM tab2 AS cor0
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-5053
SELECT - 22 / col0 * + 10 * - + col1 * + col2 * + CAST ( + col2 AS INTEGER ) + - 77 FROM tab2 AS cor0
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT DISTINCT - + SUM( DISTINCT + col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5054
SELECT DISTINCT - + SUM ( DISTINCT + col0 ) FROM tab0 AS cor0
----
-199

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 85 IN ( + ( + col2 ), 37 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col1, + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
14
14
47
47
5
5

query I rowsort
SELECT ALL col0 + + + 46 FROM tab1
----
131
137
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 81 IS NULL
----

query I rowsort
SELECT col0 * col2 + + - 8 FROM tab1
----
4888
5007
6180

onlyif mysql # DIV for integer division: 
query II rowsort label-5060
SELECT ALL + ( - 35 ) DIV - - col0 + col2 + + 11 * col2, 42 * col2 col0 FROM tab0
----
1188
4158
120
420
562
1974

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5060
SELECT ALL + ( - 35 ) / - - col0 + col2 + + 11 * col2, 42 * col2 col0 FROM tab0
----
1188
4158
120
420
562
1974

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT ALL + 78 * - + 10 * - ( - SUM( ALL col0 ) ) FROM tab2
----
-144300

skipif mysql # not compatible
query I rowsort label-5061
SELECT ALL + 78 * - + 10 * - ( - SUM ( ALL col0 ) ) FROM tab2
----
-144300

query I rowsort
SELECT DISTINCT + 6 FROM tab0 WHERE - 26 = NULL
----

query I rowsort
SELECT DISTINCT - col1 + + - 51 AS col1 FROM tab2
----
-102
-118
-128

query II rowsort
SELECT DISTINCT 56 AS col0, ( + 14 ) FROM tab1
----
56
14

query II rowsort
SELECT 86 + - 41 * - + col1 * - 19, + 18 AS col1 FROM tab2
----
-39643
18
-52107
18
-59897
18

query I rowsort
SELECT + 68 + + 31 FROM tab1
----
99
99
99

query I rowsort
SELECT - 7 + - - col1 AS col0 FROM tab1
----
-2
40
7

query I rowsort
SELECT DISTINCT - + 61 + col0 * + col0 + - + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
117
7498
9249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5069
SELECT - - SUM( DISTINCT - + CAST( NULL AS SIGNED ) ) + + AVG ( + + col2 ) - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5069
SELECT - - SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) ) + + AVG ( + + col2 ) - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT 65 * + 84 - - - 23, col1 AS col1 FROM tab2 AS cor0 WHERE col0 = + col0
----
5437
51
5437
67
5437
77

query I rowsort
SELECT col1 - col0 * col0 AS col1 FROM tab1
----
-2587
-7220
-8234

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT COUNT( * ) col1 FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5072
SELECT COUNT ( * ) col1 FROM tab0, tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 17 ) > NULL
----

query I rowsort
SELECT ALL + col2 - + 58 FROM tab1 AS cor0
----
1
10
38

query I rowsort
SELECT DISTINCT + col1 * + col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1173
3080
3886

query I rowsort
SELECT DISTINCT - col0 + + + col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + + 60 + 56 + - - col0 / col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - 39 * - + col0 FROM tab1 cor0
----
1989
3315
3549

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT DISTINCT + MIN( + ( - col0 ) ) AS col0 FROM tab0 WHERE + - col1 IS NOT NULL
----
-97

skipif mysql # not compatible
query I rowsort label-5079
SELECT DISTINCT + MIN ( + ( - col0 ) ) AS col0 FROM tab0 WHERE + - col1 IS NOT NULL
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5080
SELECT + col2 DIV ( + - 27 ) * - col2 FROM tab0
----
0
297
47

skipif mysql # not compatible
query I rowsort label-5080
SELECT + col2 / ( + - 27 ) * - col2 FROM tab0
----
0
297
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5081
SELECT - col2 + - ( CAST( + 96 AS SIGNED ) ) AS col0 FROM tab2 WHERE NOT NULL > - + col2
----

skipif mysql # not compatible
query I rowsort label-5081
SELECT - col2 + - ( CAST ( + 96 AS INTEGER ) ) AS col0 FROM tab2 WHERE NOT NULL > - + col2
----

query II rowsort
SELECT - 2 AS col0, + col2 * 78 + col2 * - + col2 AS col2 FROM tab2
----
-2
1160
-2
1265
-2
1520

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT + - SUM( - col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5083
SELECT + - SUM ( - col1 ) AS col0 FROM tab1 AS cor0
----
66

query I rowsort
SELECT ( col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 20 FROM tab2 AS cor0 WHERE ( NULL IN ( + + col1 ) )
----

query I rowsort
SELECT + col2 * - 28 AS col1 FROM tab2
----
-1120
-1624
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT MIN( - - 49 ) + - COUNT( * ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-5087
SELECT MIN ( - - 49 ) + - COUNT ( * ) FROM tab2 AS cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, 71 col2 FROM tab2 AS cor0
----
-23
71
-40
71
-58
71

onlyif mysql # DIV for integer division: 
query I rowsort label-5089
SELECT DISTINCT + col2 + + - 12 DIV + + col1 FROM tab0 AS cor0
----
10
47
87

skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT + col2 + + - 12 / + + col1 FROM tab0 AS cor0
----
10
47
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT + COUNT( 67 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5090
SELECT + COUNT ( 67 ) FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT + col0 + + - 53 AS col0 FROM tab0 AS cor0
----
-38
34
44

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 94 <= - 72 / - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 50 + + 4 - 32 AS col1 FROM tab2
----
-78
-78
-78

query III rowsort
SELECT ALL * FROM tab1 WHERE + 55 <> 3
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + 31 AS col1 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT ALL + COUNT( ALL 79 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5096
SELECT ALL + COUNT ( ALL 79 ) col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT + SUM( - + 45 ) - - COUNT( * ) + + 39 AS col1 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-5097
SELECT + SUM ( - + 45 ) - - COUNT ( * ) + + 39 AS col1 FROM tab1
----
-93

query I rowsort
SELECT ALL - - ( + col2 ) - - + 47 FROM tab2 AS cor0
----
105
70
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT ALL - - MIN( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL - - MIN ( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
5

query I rowsort
SELECT + 35 + + 20 * col2 * col2 AS col2 FROM tab0 AS cor0
----
196055
2035
44215

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE + col2 + - - 5 + - col2 + - - col1 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5102
SELECT ( + ( + 25 ) ) * - COUNT( * ) + COUNT( * ), COUNT( * ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-72
9

skipif mysql # not compatible
query II rowsort label-5102
SELECT ( + ( + 25 ) ) * - COUNT ( * ) + COUNT ( * ), COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-72
9

query I rowsort
SELECT DISTINCT - - col1 + - - col2 AS col2 FROM tab0 AS cor0
----
100
128
31

query II rowsort
SELECT col0 AS col1, 36 FROM tab2
----
46
36
64
36
75
36

query II rowsort
SELECT ALL col1 AS col1, 6 AS col1 FROM tab1 AS cor0
----
14
6
47
6
5
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * - col2 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT + COUNT( + - col2 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5107
SELECT + COUNT ( + - col2 ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5108
SELECT 41 AS col0, - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
41
NULL
41
NULL
41
NULL

skipif mysql # not compatible
query II rowsort label-5108
SELECT 41 AS col0, - CAST ( NULL AS REAL ) FROM tab0 cor0
----
41
NULL
41
NULL
41
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5110
SELECT + CAST( + col2 AS SIGNED ) DIV - - 69 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5110
SELECT + CAST ( + col2 AS INTEGER ) / - - 69 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT DISTINCT + MIN( DISTINCT + 80 ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-5111
SELECT DISTINCT + MIN ( DISTINCT + 80 ) FROM tab2
----
80

query II rowsort
SELECT ALL - 57 * col2 AS col2, col1 AS col0 FROM tab2
----
-1311
51
-2280
77
-3306
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5113
SELECT COUNT( - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5113
SELECT COUNT ( - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT MAX( DISTINCT 66 ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-5114
SELECT MAX ( DISTINCT 66 ) FROM tab2
----
66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5115
SELECT DISTINCT CAST( NULL AS DECIMAL ) / + COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5115
SELECT DISTINCT CAST ( NULL AS REAL ) / + COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT - SUM( ALL - col0 ) AS col1 FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-5116
SELECT - SUM ( ALL - col0 ) AS col1 FROM tab1 cor0
----
227

query I rowsort
SELECT ALL - col0 * - - col1 AS col2 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5118
SELECT - + AVG ( + CAST( NULL AS SIGNED ) ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5118
SELECT - + AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5119
SELECT - + ( - CAST( - col1 AS SIGNED ) ) AS col0, + ( col2 ) AS col2 FROM tab2 cor0
----
-51
23
-67
58
-77
40

skipif mysql # not compatible
query II rowsort label-5119
SELECT - + ( - CAST ( - col1 AS INTEGER ) ) AS col0, + ( col2 ) AS col2 FROM tab2 cor0
----
-51
23
-67
58
-77
40

onlyif mysql # DIV for integer division: 
query I rowsort label-5120
SELECT ALL + col2 DIV ( - col0 ) AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5120
SELECT ALL + col2 / ( - col0 ) AS col2 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5121
SELECT DISTINCT CAST( - + 10 AS SIGNED ) / - col1 FROM tab0 AS cor0 WHERE ( - col2 ) = NULL
----

skipif mysql # not compatible
query I rowsort label-5121
SELECT DISTINCT CAST ( - + 10 AS INTEGER ) / - col1 FROM tab0 AS cor0 WHERE ( - col2 ) = NULL
----

query I rowsort
SELECT DISTINCT 55 + - col2 FROM tab2 AS cor0
----
-3
15
32

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 - + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 + - - 12 FROM tab2 AS cor0
----
63
79
89

query I rowsort
SELECT ALL - col0 * + col2 FROM tab2 cor0 WHERE NULL IS NULL
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT ALL COUNT( * ) + - + 83 + + 57 FROM tab1 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL COUNT ( * ) + - + 83 + + 57 FROM tab1 cor0
----
-23

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * - + 85 IS NULL
----

query II rowsort
SELECT DISTINCT + col2, 85 AS col1 FROM tab1 cor0
----
59
85
68
85
96
85

query I rowsort
SELECT ALL + 51 + 18 AS col1 FROM tab2
----
69
69
69

query I rowsort
SELECT DISTINCT col2 + 80 FROM tab0
----
127
179
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT ALL 14 + + + MIN( DISTINCT col2 ) AS col2 FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL 14 + + + MIN ( DISTINCT col2 ) AS col2 FROM tab2
----
37

query III rowsort
SELECT * FROM tab0 WHERE col1 BETWEEN - 88 * col2 + - - 60 AND - 43
----

query I rowsort
SELECT ALL 41 - + col0 + - col0 AS col2 FROM tab1
----
-129
-141
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - col0 ) + - col1 + + + 98 AS col1, 15 col2 FROM tab2
----
106
15
85
15
93
15

query I rowsort
SELECT ALL - col2 + - 29 FROM tab1
----
-125
-88
-97

query I rowsort
SELECT 86 + col2 AS col0 FROM tab1
----
145
154
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col2 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT + SUM( DISTINCT - col2 ) * - COUNT( * ) FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-5138
SELECT + SUM ( DISTINCT - col2 ) * - COUNT ( * ) FROM tab2
----
363

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT DISTINCT + SUM( - col1 ) - + + 77 FROM tab2 cor0
----
-272

skipif mysql # not compatible
query I rowsort label-5139
SELECT DISTINCT + SUM ( - col1 ) - + + 77 FROM tab2 cor0
----
-272

onlyif mysql # DIV for integer division: 
query I rowsort label-5140
SELECT ALL - ( - col0 ) DIV + col0 - - + ( 76 ) FROM tab2 AS cor0
----
77
77
77

skipif mysql # not compatible
query I rowsort label-5140
SELECT ALL - ( - col0 ) / + col0 - - + ( 76 ) FROM tab2 AS cor0
----
77
77
77

query II rowsort
SELECT ALL - 95 AS col0, - ( col0 ) FROM tab1 AS cor0
----
-95
-51
-95
-85
-95
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT - - MIN( 99 ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5142
SELECT - - MIN ( 99 ) FROM tab1 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT - SUM( ALL + col1 ) FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5143
SELECT - SUM ( ALL + col1 ) FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT + + col0 * - + col1 * + - 7 FROM tab0 cor0
----
12789
679
8505

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 19 + + 79 * + 72 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5146
SELECT + SUM( DISTINCT - col0 ) DIV 57 AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5146
SELECT + SUM ( DISTINCT - col0 ) / 57 AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT ALL + - COUNT( * ) FROM tab0 WHERE col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5147
SELECT ALL + - COUNT ( * ) FROM tab0 WHERE col1 IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 71 AS col2, 39 col0 FROM tab0
----
71
39
71
39
71
39

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NULL IN ( - col2, + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1, col1 + + + col2 col2 FROM tab2 AS cor0
----
-51
74
-67
125
-77
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT COUNT( ALL - 59 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5151
SELECT COUNT ( ALL - 59 ) FROM tab1 cor0
----
3

query I rowsort
SELECT 5 * + col2 AS col0 FROM tab0 AS cor0
----
235
495
50

query I rowsort
SELECT DISTINCT + + 98 AS col2 FROM tab1 WHERE NOT - - col0 + + + 27 IS NULL
----
98

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > 12 * col0 + + - col0
----

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE + 3 * + - 93 - - 33 IS NOT NULL
----
15
87
97

query II rowsort
SELECT DISTINCT - - ( col2 ) AS col0, 82 FROM tab0 AS cor0
----
10
82
47
82
99
82

query I rowsort
SELECT - col1 * - + 39 FROM tab2 AS cor0
----
1989
2613
3003

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 48 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5159
SELECT DISTINCT - 41 + - col1 * + CAST( - col0 AS SIGNED ) FROM tab1
----
384
4236
673

skipif mysql # not compatible
query I rowsort label-5159
SELECT DISTINCT - 41 + - col1 * + CAST ( - col0 AS INTEGER ) FROM tab1
----
384
4236
673

query I rowsort
SELECT DISTINCT + col0 + + 25 AS col0 FROM tab2
----
100
71
89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5161
SELECT ALL * FROM tab1 WHERE ( + 78 - + CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5161
SELECT ALL * FROM tab1 WHERE ( + 78 - + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5162
SELECT - 37 - - - col0 - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5162
SELECT - 37 - - - col0 - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5163
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN col2 / + 27 * + - CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5163
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN col2 / + 27 * + - CAST ( NULL AS INTEGER ) AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 36 ) + - - ( col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 FROM tab1 WHERE - col0 IS NOT NULL
----
-51
-85
-91

query II rowsort
SELECT - col1 AS col1, + 61 FROM tab0 WHERE NULL IS NULL
----
-1
61
-21
61
-81
61

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col1 / + col0 IS NOT NULL AND NOT ( 58 * - col2 ) >= - 74 * col0
----

query I rowsort
SELECT - 81 + + - 95 + - - col2 FROM tab0 AS cor0
----
-129
-166
-77

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL = col2
----

query II rowsort
SELECT + col2 AS col2, 8 FROM tab2 cor0
----
23
8
40
8
58
8

query II rowsort
SELECT DISTINCT + 25, col0 FROM tab1 AS cor0
----
25
51
25
85
25
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 col1, col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query I rowsort
SELECT 5 * - + col0 AS col0 FROM tab0 AS cor0
----
-435
-485
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 75 col1 FROM tab2 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5175
SELECT - - col1 * col0 DIV + col2 AS col1 FROM tab2 AS cor0
----
102
123
86

skipif mysql # not compatible
query I rowsort label-5175
SELECT - - col1 * col0 / + col2 AS col1 FROM tab2 AS cor0
----
102
123
86

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + col2 + col0 + + 37 IN ( col1 * + 88 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * - col0 * + + 69 + - col1 FROM tab1
----
-29330
-295160
-49280

query I rowsort
SELECT ALL - - 5 FROM tab2 AS cor0 WHERE col2 + - - 80 IS NULL
----

query I rowsort
SELECT 74 * + + col2 AS col1 FROM tab0
----
3478
7326
740

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT COUNT( * ) + - COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-72

skipif mysql # not compatible
query I rowsort label-5180
SELECT COUNT ( * ) + - COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-72

query III rowsort
SELECT * FROM tab1 WHERE + 36 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - + col2 AS col1, col2 + + - 84 AS col1 FROM tab0 AS cor0
----
-10
-74
-47
-37
-99
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT + ( - 64 ) + - MAX( + 76 ) AS col1 FROM tab1 cor0
----
-140

skipif mysql # not compatible
query I rowsort label-5183
SELECT + ( - 64 ) + - MAX ( + 76 ) AS col1 FROM tab1 cor0
----
-140

query I rowsort
SELECT + - 35 + - 96 + + 79 + + ( + col2 ) FROM tab2 AS cor0
----
-12
-29
6

query I rowsort
SELECT ALL + 31 * col2 * + + col0 FROM tab1 AS cor0
----
151776
155465
191828

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT DISTINCT - MAX( ALL col0 ) + - 69 AS col1 FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-5186
SELECT DISTINCT - MAX ( ALL col0 ) + - 69 AS col1 FROM tab2
----
-144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - ( 35 ) col1 FROM tab1 AS cor0
----
-1785
-2975
-3185

query I rowsort
SELECT - col1 AS col1 FROM tab0 cor0 WHERE - col0 = 93
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5189
SELECT DISTINCT + + ( + col1 ) DIV + - col1 + - + col0 + - - 90 * - 89 + + col1 FROM tab0 AS cor0
----
-7945
-8077
-8107

skipif mysql # not compatible
query I rowsort label-5189
SELECT DISTINCT + + ( + col1 ) / + - col1 + - + col0 + - - 90 * - 89 + + col1 FROM tab0 AS cor0
----
-7945
-8077
-8107

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 - + col0 AS col0, + col0 col0 FROM tab0 AS cor0
----
0
15
0
87
0
97

query I rowsort
SELECT - ( ( + - 12 ) ) * + + col2 AS col0 FROM tab0
----
1188
120
564

query I rowsort
SELECT DISTINCT + col0 * + 85 FROM tab0 cor0
----
1275
7395
8245

query I rowsort
SELECT DISTINCT col2 * + col2 + 4 FROM tab1 AS cor0
----
3485
4628
9220

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5194
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col1, - CAST( - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5194
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col1, - CAST ( - col0 AS INTEGER ) )
----

query I rowsort
SELECT col2 / - col0 / + + 76 * - col0 FROM tab2 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 BETWEEN + col2 AND NULL
----

query II rowsort
SELECT ALL col1, - 0 * 12 * - col0 + - 32 AS col2 FROM tab2
----
51
-32
67
-32
77
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5198
SELECT + SUM( CAST( NULL AS SIGNED ) ) * + - 24 + + + CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5198
SELECT + SUM ( CAST ( NULL AS INTEGER ) ) * + - 24 + + + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, - col1 * ( + 51 ) FROM tab1
----
59
-255
68
-2397
96
-714

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5200
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) * col2 <= + - 79
----

skipif mysql # not compatible
query III rowsort label-5200
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * col2 <= + - 79
----

query I rowsort
SELECT + col1 + + + col0 FROM tab0 cor0
----
108
96
98

query I rowsort
SELECT DISTINCT - - 48 + + 92 * - + col1 AS col2 FROM tab0 AS cor0
----
-1884
-44
-7404

query I rowsort
SELECT 94 * - 37 + + col2 FROM tab1
----
-3382
-3410
-3419

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT ALL COUNT( * ) AS col0 FROM tab2 WHERE NOT col1 * - col1 + + col0 <= + col0
----
0

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE NOT col1 * - col1 + + col0 <= + col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5205
SELECT - ( + 18 ) * + - 74 AS col0, + 20 DIV + 96 * + 31 AS col0 FROM tab1 AS cor0 WHERE + col2 > + + col1 + + ( - col2 )
----
1332
0
1332
0
1332
0

skipif mysql # not compatible
query II rowsort label-5205
SELECT - ( + 18 ) * + - 74 AS col0, + 20 / + 96 * + 31 AS col0 FROM tab1 AS cor0 WHERE + col2 > + + col1 + + ( - col2 )
----
1332
0
1332
0
1332
0

query II rowsort
SELECT ALL col0 AS col2, ( - 53 ) AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT + COUNT( * ) * - COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5207
SELECT + COUNT ( * ) * - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
-6

query I rowsort
SELECT DISTINCT + col2 + - col0 * ( - 28 ) FROM tab0
----
2446
2815
467

query I rowsort
SELECT ALL 69 * + col1 + - col2 AS col2 FROM tab1
----
286
3175
870

query I rowsort
SELECT ALL - col1 - + 7 FROM tab0
----
-28
-8
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT - COUNT( ALL col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5211
SELECT - COUNT ( ALL col0 ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL - + col1, 58 AS col1 FROM tab1 AS cor0
----
-14
58
-47
58
-5
58

query I rowsort
SELECT + 9 * - + ( + 78 ) AS col0 FROM tab0 AS cor0
----
-702
-702
-702

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT + COUNT( * ) * 96 AS col0 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-5214
SELECT + COUNT ( * ) * 96 AS col0 FROM tab1
----
288

query I rowsort
SELECT ALL + col2 * - col1 + - 99 AS col1 FROM tab1 AS cor0
----
-1443
-3295
-394

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT MIN( ( + - col2 ) ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5216
SELECT MIN ( ( + - col2 ) ) FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT + MAX( - 20 ) AS col2 FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-5217
SELECT + MAX ( - 20 ) AS col2 FROM tab1 AS cor0
----
-20

query I rowsort
SELECT + 40 AS col2 FROM tab2 AS cor0 WHERE NOT + 97 + - col2 IS NULL
----
40
40
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5219
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 = + CAST( - 13 AS SIGNED ) + 39
----

skipif mysql # not compatible
query III rowsort label-5219
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 = + CAST ( - 13 AS INTEGER ) + 39
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5220
SELECT ALL - col2 DIV col0 * ( ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5220
SELECT ALL - col2 / col0 * ( ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * + col1 * col1 FROM tab1 AS cor0
----
-1475
-150212
-18816

onlyif mysql # DIV for integer division: 
query II rowsort label-5222
SELECT DISTINCT 63 DIV - - 74 * + col2 * - + 14, + col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
0
-1

skipif mysql # not compatible
query II rowsort label-5222
SELECT DISTINCT 63 / - - 74 * + col2 * - + 14, + col1 / - col1 AS col2 FROM tab2 AS cor0
----
0
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5223
SELECT ALL + CAST( - col2 AS SIGNED ) * - + 95 col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
4465
9405
950

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5223
SELECT ALL + CAST ( - col2 AS INTEGER ) * - + 95 col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
4465
9405
950

query I rowsort
SELECT DISTINCT - 36 * - - col1 + + col1 AS col2 FROM tab0
----
-2835
-35
-735

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + + col0 col1 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT + 84 + COUNT( * ) AS col0 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-5226
SELECT + 84 + COUNT ( * ) AS col0 FROM tab0
----
87

query I rowsort
SELECT - 29 AS col1 FROM tab0 WHERE ( - 91 + + 30 <> NULL )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE 33 * 70 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * - 40 FROM tab2 cor0
----
-2040
-2680
-3080

query I rowsort
SELECT ALL - - 55 * 34 FROM tab1 AS cor0
----
1870
1870
1870

onlyif mysql # DIV for integer division: 
query I rowsort label-5231
SELECT DISTINCT - 55 DIV + + col1 col1 FROM tab1 AS cor0
----
-1
-11
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5231
SELECT DISTINCT - 55 / + + col1 col1 FROM tab1 AS cor0
----
-1
-11
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT - MAX( ALL - 17 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
17

skipif mysql # not compatible
query I rowsort label-5232
SELECT - MAX ( ALL - 17 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
17

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 * - col0 + + 61 AND NULL
----

query II rowsort
SELECT + col0 AS col2, + 32 FROM tab0 AS cor0
----
15
32
87
32
97
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5235
SELECT ALL col1 * 60 + 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-5235
SELECT ALL col1 * 60 + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col0 AS col1, 51 AS col0 FROM tab2 AS cor0
----
46
51
64
51
75
51

onlyif mysql # aggregate syntax: 
query II rowsort label-5237
SELECT DISTINCT - - COUNT( * ), 66 AS col2 FROM tab1 cor0
----
3
66

skipif mysql # not compatible
query II rowsort label-5237
SELECT DISTINCT - - COUNT ( * ), 66 AS col2 FROM tab1 cor0
----
3
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5238
SELECT ALL + CAST( + 42 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
42
42
42

skipif mysql # not compatible
query I rowsort label-5238
SELECT ALL + CAST ( + 42 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT ALL - 27 FROM tab1 WHERE NULL <= 37
----

query III rowsort
SELECT * FROM tab0 WHERE col2 + + col1 = + 75 + + 81 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT DISTINCT - MAX( DISTINCT - 34 ) + - COUNT( * ) AS col1 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-5241
SELECT DISTINCT - MAX ( DISTINCT - 34 ) + - COUNT ( * ) AS col1 FROM tab0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT DISTINCT + SUM( ( + col2 ) ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-5242
SELECT DISTINCT + SUM ( ( + col2 ) ) AS col1 FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT ALL - COUNT( * ) * 69 FROM tab2
----
-207

skipif mysql # not compatible
query I rowsort label-5243
SELECT ALL - COUNT ( * ) * 69 FROM tab2
----
-207

query I rowsort
SELECT ALL - 42 * + ( - col1 ) AS col0 FROM tab1
----
1974
210
588

query II rowsort
SELECT - ( col0 ) AS col0, col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 15 * - col2 AS col1 FROM tab2
----
-345
-600
-870

onlyif mysql # aggregate syntax: 
query II rowsort label-5248
SELECT ALL + 29 col0, - COUNT( * ) FROM tab0
----
29
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5248
SELECT ALL + 29 col0, - COUNT ( * ) FROM tab0
----
29
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT DISTINCT - COUNT( * ) * + MIN( DISTINCT + 27 ) AS col2 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5249
SELECT DISTINCT - COUNT ( * ) * + MIN ( DISTINCT + 27 ) AS col2 FROM tab2 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT DISTINCT - MIN( ALL - col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5250
SELECT DISTINCT - MIN ( ALL - col2 ) FROM tab1 AS cor0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5251
SELECT ALL + - col0 DIV 61 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5251
SELECT ALL + - col0 / 61 FROM tab1 cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 36 col0 FROM tab2 AS cor0
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col2, + col1 col0 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5255
SELECT DISTINCT - COUNT( DISTINCT + - 33 ) + + COUNT( + - 77 ) DIV + + CAST( - MIN( DISTINCT col1 ) AS SIGNED ) * - 70, - COUNT( * ) DIV - 81 AS col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query II rowsort label-5255
SELECT DISTINCT - COUNT ( DISTINCT + - 33 ) + + COUNT ( + - 77 ) / + + CAST ( - MIN ( DISTINCT col1 ) AS INTEGER ) * - 70, - COUNT ( * ) / - 81 AS col0 FROM tab1 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5256
SELECT col1 * - 98 * + col1 * - col2 + - col0 DIV - + 72 FROM tab0 AS cor0
----
30219966
432181
9703

skipif mysql # not compatible
query I rowsort label-5256
SELECT col1 * - 98 * + col1 * - col2 + - col0 / - + 72 FROM tab0 AS cor0
----
30219966
432181
9703

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5257
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 4 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5257
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 4 FROM tab0
----
NULL

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NULL > - col2
----

query I rowsort
SELECT DISTINCT 1 * - col2 + + - col2 AS col2 FROM tab0
----
-198
-20
-94

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 81 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ( - 72 ), - col2 AS col2 FROM tab2
----
-72
-23
-72
-40
-72
-58

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT ( 59 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 86 * + + col2 + + 34 FROM tab0 AS cor0
----
4076
8548
894

onlyif mysql # DIV for integer division: 
query I rowsort label-5264
SELECT + 28 DIV + col1 + + - col1 * + col2 * col2 - - 17 * 33 AS col2 FROM tab0
----
-1538
-178368
-9212

skipif mysql # not compatible
query I rowsort label-5264
SELECT + 28 / + col1 + + - col1 * + col2 * col2 - - 17 * 33 AS col2 FROM tab0
----
-1538
-178368
-9212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5265
SELECT + + col0 * 48 col2 FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5265
SELECT + + col0 * 48 col2 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + + 27 AS col1 FROM tab1 cor0
----
27
27
27

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5268
SELECT - col0 - + CAST( NULL AS SIGNED ) * - col2 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5268
SELECT - col0 - + CAST ( NULL AS INTEGER ) * - col2 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - - - 61 + + col0 FROM tab1 AS cor0
----
83
86
98

query I rowsort
SELECT + 32 - col1 AS col2 FROM tab0 AS cor0
----
-49
11
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT ALL + + COUNT( * ) * + 49 AS col2 FROM tab1 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL + + COUNT ( * ) * + 49 AS col2 FROM tab1 AS cor0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT - + ( SUM( + col1 ) ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5272
SELECT - + ( SUM ( + col1 ) ) AS col2 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT ALL - + 42 AS col1 FROM tab1 AS cor0
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT DISTINCT + 56 + - - 27 + + - COUNT( * ) FROM tab0, tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-5274
SELECT DISTINCT + 56 + - - 27 + + - COUNT ( * ) FROM tab0, tab0 AS cor0
----
74

query I rowsort
SELECT + 85 * - col0 AS col1 FROM tab1
----
-4335
-7225
-7735

onlyif mysql # DIV for integer division: 
query I rowsort label-5276
SELECT ALL col2 DIV 59 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL col2 / 59 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE ( + 42 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT + ( - MIN( ALL - 62 ) ) AS col2 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-5278
SELECT + ( - MIN ( ALL - 62 ) ) AS col2 FROM tab2
----
62

query I rowsort
SELECT ALL + col1 / - col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT DISTINCT + SUM( + - col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5280
SELECT DISTINCT + SUM ( + - col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col1, + col1 col2 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT - + ( + MAX( + ( + col2 ) ) ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5282
SELECT - + ( + MAX ( + ( + col2 ) ) ) AS col1 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT ALL - ( - - 30 ) FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - 99 FROM tab1 WHERE NULL IS NULL
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT ALL - ( - + COUNT( * ) ) + - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL - ( - + COUNT ( * ) ) + - COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT + col1 + - col1 - 12 * - 65 * + + col2 FROM tab1
----
46020
53040
74880

query I rowsort
SELECT ALL 44 + + col2 AS col2 FROM tab1
----
103
112
140

query I rowsort
SELECT 54 + - 17 AS col1 FROM tab0
----
37
37
37

onlyif mysql # DIV for integer division: 
query II rowsort label-5289
SELECT - col2 + - col1 DIV - col2 + - + col0 col2, - 67 * 51 + - col2 FROM tab2
----
-103
-3457
-132
-3475
-67
-3440

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5289
SELECT - col2 + - col1 / - col2 + - + col0 col2, - 67 * 51 + - col2 FROM tab2
----
-103
-3457
-132
-3475
-67
-3440

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT DISTINCT COUNT( * ) + - 19 AS col1 FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-5290
SELECT DISTINCT COUNT ( * ) + - 19 AS col1 FROM tab2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT DISTINCT - SUM( ALL + - col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col0 + + + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT - SUM ( ALL + - col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col0 + + + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 99 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL col1 + - + col2 AS col2 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5294
SELECT DISTINCT MAX( DISTINCT - + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5294
SELECT DISTINCT MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col0 + + 72 col0 FROM tab0
----
-24
138
6

query I rowsort
SELECT - 29 + + + col1 FROM tab2
----
22
38
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5297
SELECT col1 * - - col0 * + + 95 - 11 - - - CAST( + col1 AS SIGNED ) + col2 + - 26 FROM tab0 AS cor0
----
115354
173517
9276

skipif mysql # not compatible
query I rowsort label-5297
SELECT col1 * - - col0 * + + 95 - 11 - - - CAST ( + col1 AS INTEGER ) + col2 + - 26 FROM tab0 AS cor0
----
115354
173517
9276

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 59 > ( + + ( - 19 ) )
----

query I rowsort
SELECT DISTINCT + col2 * - 52 AS col1 FROM tab1 cor0
----
-3068
-3536
-4992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5300
SELECT + - SUM( ALL + 35 ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5300
SELECT + - SUM ( ALL + 35 ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) < NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5301
SELECT + - col1 DIV + - 1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5301
SELECT + - col1 / + - 1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5302
SELECT - 6 DIV - col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5302
SELECT - 6 / - col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5303
SELECT col1 * col0 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5303
SELECT col1 * col0 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 56 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab2 WHERE NOT - col2 IN ( - col1, col0 * col1 * + 42 )
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5306
SELECT ALL + 33 DIV col1 * ( - col1 ) FROM tab0 AS cor0
----
-21
-33
0

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL + 33 / col1 * ( - col1 ) FROM tab0 AS cor0
----
-21
-33
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT + MIN( + 37 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
37

skipif mysql # not compatible
query I rowsort label-5307
SELECT + MIN ( + 37 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5308
SELECT - ( - col1 ) * - CAST( - 24 AS SIGNED ) col2 FROM tab2 cor0
----
1224
1608
1848

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5308
SELECT - ( - col1 ) * - CAST ( - 24 AS INTEGER ) col2 FROM tab2 cor0
----
1224
1608
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT ALL - MAX( ALL - + col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5309
SELECT ALL - MAX ( ALL - + col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 col0 FROM tab2 AS cor0
----
29
29
29

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5311
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) > NULL
----

skipif mysql # not compatible
query III rowsort label-5311
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) > NULL
----

query I rowsort
SELECT + col2 * - + 10 + - col2 FROM tab1 AS cor0
----
-1056
-649
-748

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col2 ) > col0
----

query I rowsort
SELECT ALL - col2 * - 49 + + col1 AS col2 FROM tab1 AS cor0
----
2896
3379
4718

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5316
SELECT - - col2 AS col2 FROM tab0 cor0 WHERE col1 + col2 NOT BETWEEN - 83 AND + + col1 - - CAST( 65 AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-5316
SELECT - - col2 AS col2 FROM tab0 cor0 WHERE col1 + col2 NOT BETWEEN - 83 AND + + col1 - - CAST ( 65 AS INTEGER )
----
99

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NULL <> - - 15 / + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT - SUM( col0 ) col2 FROM tab0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5318
SELECT - SUM ( col0 ) col2 FROM tab0
----
-199

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE - col1 IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT 70 * - COUNT( DISTINCT + - ( - ( - - 12 ) ) ) FROM tab2, tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-5320
SELECT 70 * - COUNT ( DISTINCT + - ( - ( - - 12 ) ) ) FROM tab2, tab1 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT + COUNT( * ) AS col1 FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NOT NULL OR NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-5321
SELECT + COUNT ( * ) AS col1 FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NOT NULL OR NOT NULL IS NOT NULL
----
9

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE NULL IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT + + COUNT( * ) * SUM( ALL - col2 ) col2 FROM tab2 WHERE col2 IS NOT NULL
----
-363

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5323
SELECT + + COUNT ( * ) * SUM ( ALL - col2 ) col2 FROM tab2 WHERE col2 IS NOT NULL
----
-363

query I rowsort
SELECT DISTINCT - ( 56 ) FROM tab2
----
-56

query I rowsort
SELECT ALL 58 * + col1 * + col0 AS col1 FROM tab1 AS cor0
----
24650
248066
41412

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5326
SELECT + COUNT( * ) + - - 37 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5326
SELECT + COUNT ( * ) + - - 37 * - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5327
SELECT CAST( + 68 AS SIGNED ) + - - col2 FROM tab2 AS cor0
----
108
126
91

skipif mysql # not compatible
query I rowsort label-5327
SELECT CAST ( + 68 AS INTEGER ) + - - col2 FROM tab2 AS cor0
----
108
126
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( + col0 ) AND - - 86
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5329
SELECT + - col0 + + col2 + - - CAST( ( ( + 83 ) ) AS SIGNED ) FROM tab2 AS cor0
----
59
60
66

skipif mysql # not compatible
query I rowsort label-5329
SELECT + - col0 + + col2 + - - CAST ( ( ( + 83 ) ) AS INTEGER ) FROM tab2 AS cor0
----
59
60
66

query I rowsort
SELECT DISTINCT - col2 * + - 46 + col2 + - - 11 AS col1 FROM tab1 AS cor0 WHERE + col0 - - 78 + + 43 IS NULL
----

query I rowsort
SELECT + + col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + 94 AND NULL
----

query I rowsort
SELECT DISTINCT + 50 * col2 + - + 91 AS col1 FROM tab2 WHERE - 62 * + - 29 IS NULL
----

query I rowsort
SELECT DISTINCT + 17 FROM tab2 WHERE NULL <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT ALL MAX( DISTINCT col1 ) col0 FROM tab0 cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5334
SELECT ALL MAX ( DISTINCT col1 ) col0 FROM tab0 cor0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5335
SELECT - + 21, MAX( ALL 87 ) + - SUM( ALL - - 75 ) AS col1 FROM tab1 cor0
----
-21
-138

skipif mysql # not compatible
query II rowsort label-5335
SELECT - + 21, MAX ( ALL 87 ) + - SUM ( ALL - - 75 ) AS col1 FROM tab1 cor0
----
-21
-138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, - col0 * - col0 * + + col0 col2 FROM tab1 AS cor0
----
-59
614125
-68
753571
-96
132651

query I rowsort
SELECT col1 * + ( - col2 ) - + - col0 FROM tab2 AS cor0
----
-1127
-3016
-3811

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT DISTINCT + - 87 * - COUNT( * ) FROM tab2 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT + - 87 * - COUNT ( * ) FROM tab2 AS cor0
----
261

query I rowsort
SELECT DISTINCT col0 * + + col0 AS col1 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT DISTINCT + 50 * - + col2 - - col2 AS col2 FROM tab1 AS cor0
----
-2891
-3332
-4704

query II rowsort
SELECT DISTINCT - col1 + - + ( - col0 ), + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
-66
47
66
10
96
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5342
SELECT DISTINCT - + col0 DIV ( - - 45 ) AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT - + col0 / ( - - 45 ) AS col2 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN - col1 + - + col0 - + + 17 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5345
SELECT - CAST( NULL AS SIGNED ) * - + MIN( - col0 ) * - ( + 24 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5345
SELECT - CAST ( NULL AS INTEGER ) * - + MIN ( - col0 ) * - ( + 24 ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5346
SELECT DISTINCT COUNT( * ) * MAX( + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT COUNT ( * ) * MAX ( + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT col2 * - + col0 * + col0 AS col2 FROM tab2
----
-163840
-326250
-48668

query II rowsort
SELECT - - 74 * - col0, col2 * col2 AS col0 FROM tab1 AS cor0
----
-3774
9216
-6290
3481
-6734
4624

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT DISTINCT - + MIN( DISTINCT + 73 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-73

skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT - + MIN ( DISTINCT + 73 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT + MIN( DISTINCT - + 42 ) AS col0 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-5350
SELECT + MIN ( DISTINCT - + 42 ) AS col0 FROM tab0
----
-42

query I rowsort
SELECT - col0 * + + col2 FROM tab0 AS cor0
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 * + - col2 col1 FROM tab1 AS cor0
----
-4366
-5032
-7104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5353
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT - 71 * col2 - - CAST( - + col1 AS SIGNED ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT - 71 * col2 - - CAST ( - + col1 AS INTEGER ) IS NULL
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 41
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + col1 ) + 38 col2 FROM tab0 cor0
----
119
39
59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - 96 )
----

query I rowsort
SELECT col0 * col0 + - 27 + + - col1 FROM tab2 AS cor0
----
2038
3992
5531

query I rowsort
SELECT 95 + - + col1 FROM tab1
----
48
81
90

query I rowsort
SELECT 8 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col1 * + col1 - + col2 AS col1 FROM tab2
----
2578
4431
5889

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT DISTINCT - 86 + - MAX( DISTINCT - + col0 ) AS col2 FROM tab0
----
-71

skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT - 86 + - MAX ( DISTINCT - + col0 ) AS col2 FROM tab0
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-5362
SELECT - 1 col2, + COUNT( * ) AS col2 FROM tab0
----
-1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5362
SELECT - 1 col2, + COUNT ( * ) AS col2 FROM tab0
----
-1
3

query I rowsort
SELECT ALL - col1 + - 37 AS col2 FROM tab2
----
-104
-114
-88

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5365
SELECT CAST( NULL AS SIGNED ), col1 + col0 AS col0 FROM tab2
----
NULL
141
NULL
142
NULL
97

skipif mysql # not compatible
query II rowsort label-5365
SELECT CAST ( NULL AS INTEGER ), col1 + col0 AS col0 FROM tab2
----
NULL
141
NULL
142
NULL
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 col0 FROM tab1 AS cor0
----
49

query I rowsort
SELECT DISTINCT - 82 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5368
SELECT ALL + 97 * - COUNT( * ) + + 89 AS col0, COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
89
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5368
SELECT ALL + 97 * - COUNT ( * ) + + 89 AS col0, COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
89
0

query I rowsort
SELECT ALL + 0 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL ( + 3 ) * ( + col0 ) AS col2 FROM tab0 AS cor0
----
261
291
45

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT ALL - COUNT( * ) + COUNT( * ) + COUNT( * ) FROM tab0 AS cor0 WHERE col2 * + col2 + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL - COUNT ( * ) + COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0 WHERE col2 * + col2 + col2 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5373
SELECT * FROM tab1 AS cor0 WHERE NOT 74 * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5373
SELECT * FROM tab1 AS cor0 WHERE NOT 74 * CAST ( NULL AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT - 41 * COUNT( * ) FROM tab1 cor0
----
-123

skipif mysql # not compatible
query I rowsort label-5375
SELECT - 41 * COUNT ( * ) FROM tab1 cor0
----
-123

query II rowsort
SELECT - 95, col2 + + + col0 AS col0 FROM tab0
----
-95
196
-95
62
-95
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT SUM( DISTINCT - col2 ) * + COUNT( * ) AS col0 FROM tab2
----
-363

skipif mysql # not compatible
query I rowsort label-5377
SELECT SUM ( DISTINCT - col2 ) * + COUNT ( * ) AS col0 FROM tab2
----
-363

query II rowsort
SELECT - col0 * + 69 * col1 AS col1, 15 * - + col2 * + + ( + ( + + col0 ) ) + + col0 AS col0 FROM tab0
----
-126063
-12963
-6693
-143948
-83835
-10560

query I rowsort
SELECT col1 * - + 92 AS col2 FROM tab2
----
-4692
-6164
-7084

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5380
SELECT col2 * - CAST( NULL AS SIGNED ) * col2 AS col2, + col0 - - 28 * 45 AS col0 FROM tab0
----
NULL
1275
NULL
1347
NULL
1357

skipif mysql # not compatible
query II rowsort label-5380
SELECT col2 * - CAST ( NULL AS INTEGER ) * col2 AS col2, + col0 - - 28 * 45 AS col0 FROM tab0
----
NULL
1275
NULL
1347
NULL
1357

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5381
SELECT DISTINCT - CAST( - ( + col0 ) AS SIGNED ) * 86 + + - col0 FROM tab1
----
4335
7225
7735

skipif mysql # not compatible
query I rowsort label-5381
SELECT DISTINCT - CAST ( - ( + col0 ) AS INTEGER ) * 86 + + - col0 FROM tab1
----
4335
7225
7735

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 * + col1 col2 FROM tab2
----
1734
2278
2618

query I rowsort
SELECT DISTINCT ( 31 ) + - 81 FROM tab0 AS cor0
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-5384
SELECT DISTINCT + - ( - - 82 ) DIV - col2 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT + - ( - - 82 ) / - col2 AS col0 FROM tab1 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5385
SELECT ALL - CAST( + 26 AS SIGNED ) * + + col0 + + 49 AS col1 FROM tab2 AS cor0
----
-1147
-1615
-1901

skipif mysql # not compatible
query I rowsort label-5385
SELECT ALL - CAST ( + 26 AS INTEGER ) * + + col0 + + 49 AS col1 FROM tab2 AS cor0
----
-1147
-1615
-1901

onlyif mysql # DIV for integer division: 
query I rowsort label-5386
SELECT DISTINCT col2 * - + 74 + + col1 + 50 DIV col1 + - col1 col1 FROM tab1 AS cor0
----
-4356
-5031
-7101

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5386
SELECT DISTINCT col2 * - + 74 + + col1 + 50 / col1 + - col1 col1 FROM tab1 AS cor0
----
-4356
-5031
-7101

query I rowsort
SELECT + col0 * ( - 30 ) FROM tab1
----
-1530
-2550
-2730

query I rowsort
SELECT ALL ( + 88 ) * - col2 AS col2 FROM tab2
----
-2024
-3520
-5104

query III rowsort
SELECT * FROM tab2 WHERE 77 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + col2 * + 34 FROM tab1
----
2065
2380
3360

onlyif mysql # DIV for integer division: 
query I rowsort label-5391
SELECT col0 + 83 DIV + col2 FROM tab2
----
49
66
76

skipif mysql # not compatible
query I rowsort label-5391
SELECT col0 + 83 / + col2 FROM tab2
----
49
66
76

query I rowsort
SELECT col2 + ( + 80 ) FROM tab1
----
139
148
176

query I rowsort
SELECT col1 * - 69 AS col2 FROM tab2
----
-3519
-4623
-5313

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5394
SELECT - SUM( col1 ) DIV + 14 col1 FROM tab0 WHERE NULL IS NULL
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5394
SELECT - SUM ( col1 ) / + 14 col1 FROM tab0 WHERE NULL IS NULL
----
-7

query I rowsort
SELECT col0 * - col2 FROM tab0 WHERE col2 IS NOT NULL
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-5396
SELECT + col0 * ( 21 ) + 66 DIV col0 FROM tab2
----
1345
1575
967

skipif mysql # not compatible
query I rowsort label-5396
SELECT + col0 * ( 21 ) + 66 / col0 FROM tab2
----
1345
1575
967

query I rowsort
SELECT - 27 + - 50 AS col1 FROM tab2
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT - 16 + COUNT( 64 ) FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-5398
SELECT - 16 + COUNT ( 64 ) FROM tab1
----
-13

query I rowsort
SELECT col0 + + 69 * + col2 AS col2 FROM tab2
----
1633
2824
4077

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 31 col2 FROM tab2
----
1426
1984
2325

query I rowsort
SELECT ALL 87 FROM tab0 WHERE + col2 IS NULL
----

query I rowsort
SELECT DISTINCT 85 + - col2 * 11 FROM tab0
----
-1004
-25
-432

query I rowsort
SELECT ALL - 49 + - 20 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5404
SELECT ALL - CAST( NULL AS SIGNED ) * 25 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL - CAST ( NULL AS INTEGER ) * 25 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5405
SELECT + col0 DIV 43 AS col0 FROM tab0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-5405
SELECT + col0 / 43 AS col0 FROM tab0
----
0
2
2

query I rowsort
SELECT col2 FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT COUNT( * ) * + 80 AS col1 FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-5407
SELECT COUNT ( * ) * + 80 AS col1 FROM tab1
----
240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + ( 63 ) col2 FROM tab0
----
144
64
84

query I rowsort
SELECT 98 FROM tab0 AS cor0 WHERE col1 - ( 47 + - col1 * - col2 ) IS NULL
----

query I rowsort
SELECT 20 + - 93 FROM tab1 cor0
----
-73
-73
-73

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 36 * 19 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT DISTINCT COUNT( ALL 10 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT COUNT ( ALL 10 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT + SUM( - col1 ) * 87 FROM tab2
----
-16965

skipif mysql # not compatible
query I rowsort label-5413
SELECT + SUM ( - col1 ) * 87 FROM tab2
----
-16965

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT 50 / col1 NOT BETWEEN col0 AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 38 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT + ( COUNT( * ) ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 )
----
9

skipif mysql # not compatible
query I rowsort label-5416
SELECT + ( COUNT ( * ) ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 )
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 - 89 = - col1 * - 2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 79 - - 26 FROM tab0 WHERE NOT ( col0 + + 1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5419
SELECT DISTINCT - 28 * + MIN( CAST( col1 AS SIGNED ) * - 84 ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col1 * CAST( NULL AS DECIMAL ) AND + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT - 28 * + MIN ( CAST ( col1 AS INTEGER ) * - 84 ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col1 * CAST ( NULL AS REAL ) AND + 7
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * 63 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5421
SELECT - - CAST( 40 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-5421
SELECT - - CAST ( 40 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
40
40
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 29 col0 FROM tab0 AS cor0
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT DISTINCT + MAX( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5423
SELECT DISTINCT + MAX ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT ALL + COUNT( * ) * 53 AS col0 FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-5424
SELECT ALL + COUNT ( * ) * 53 AS col0 FROM tab1 AS cor0
----
159

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 BETWEEN NULL AND + col0
----

query I rowsort
SELECT DISTINCT 19 * - col1 AS col1 FROM tab0
----
-1539
-19
-399

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT ALL COUNT( * ) * + MIN( ALL col2 ) * 96 FROM tab2
----
6624

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL COUNT ( * ) * + MIN ( ALL col2 ) * 96 FROM tab2
----
6624

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN col1 AND col0
----

query I rowsort
SELECT DISTINCT + 10 * col2 FROM tab0
----
100
470
990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5430
SELECT DISTINCT + CAST( - ( col0 ) AS SIGNED ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT + CAST ( - ( col0 ) AS INTEGER ) FROM tab2
----
-46
-64
-75

query I rowsort
SELECT + 86 FROM tab0 WHERE NOT + 56 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 9 * + col1 + 7 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT ( + COUNT( * ) ) + COUNT( * ) * COUNT( * ) AS col2 FROM tab1 cor0
----
12

skipif mysql # not compatible
query I rowsort label-5433
SELECT ( + COUNT ( * ) ) + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 cor0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5434
SELECT DISTINCT + - SUM( - - col2 ) * + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5434
SELECT DISTINCT + - SUM ( - - col2 ) * + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col0 * - 51 - + ( + 33 ) FROM tab1 AS cor0
----
2568
4302
4608

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col2 + + col2 * + 69 FROM tab1 AS cor0 WHERE NULL <= - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 - col1 ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5439
SELECT ALL 17 + col0 DIV - col0 AS col2 FROM tab2 WHERE col2 * + col2 >= ( + col1 + + 35 )
----
16
16
16

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL 17 + col0 / - col0 AS col2 FROM tab2 WHERE col2 * + col2 >= ( + col1 + + 35 )
----
16
16
16

query I rowsort
SELECT col2 + 0 AS col1 FROM tab1 WHERE + - col2 IS NULL
----

query I rowsort
SELECT + 58 + + + ( - + 62 ) + - col2 * - 41 AS col2 FROM tab0
----
1923
4055
406

query I rowsort
SELECT - col2 * + 42 + + + col0 * 59 FROM tab0 AS cor0
----
-1089
1565
4713

query II rowsort
SELECT ALL + 27 AS col0, 84 AS col1 FROM tab2 cor0
----
27
84
27
84
27
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT + COUNT( * ) + 80 FROM tab2 cor0
----
83

skipif mysql # not compatible
query I rowsort label-5444
SELECT + COUNT ( * ) + 80 FROM tab2 cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT DISTINCT + COUNT( ALL - 77 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5445
SELECT DISTINCT + COUNT ( ALL - 77 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT DISTINCT COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT + 40 = ( col2 * - 88 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5446
SELECT DISTINCT COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT + 40 = ( col2 * - 88 )
----
3

query I rowsort
SELECT ALL ( 43 ) FROM tab0 cor0
----
43
43
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2, - 45 + - col2 col0 FROM tab0 AS cor0
----
10
-55
47
-92
99
-144

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * - + col2 + - col1 * + ( ( 36 ) * col0 - col1 ) > - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5450
SELECT ALL 25 DIV - - col2 + + col1 DIV col0 AS col0 FROM tab0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-5450
SELECT ALL 25 / - - col2 + + col1 / col0 AS col0 FROM tab0
----
0
2
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( + - col1 + + - 48 * col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 IN ( + col2 + 39 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5453
SELECT * FROM tab1 WHERE ( + col0 ) >= + 15 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5453
SELECT * FROM tab1 WHERE ( + col0 ) >= + 15 * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col0 / 62 AS col0 FROM tab0 WHERE ( NULL ) IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT SUM( ALL + 6 ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-5455
SELECT SUM ( ALL + 6 ) FROM tab0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 col1 FROM tab2 WHERE NULL BETWEEN NULL AND + col2 * - - col2
----

query I rowsort
SELECT DISTINCT - col1 + ( - col0 ) AS col2 FROM tab1
----
-138
-65
-90

query III rowsort
SELECT * FROM tab1 WHERE + - 90 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 50 / - - 73 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + col2 + col1 / col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> - col2 + col2 * + 54
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 87 + + 87 IS NULL
----

query I rowsort
SELECT + 64 * + - col1 AS col0 FROM tab2
----
-3264
-4288
-4928

onlyif mysql # DIV for integer division: 
query II rowsort label-5464
SELECT + 86 col0, + col2 DIV col0 - - + col1 AS col1 FROM tab2
----
86
51
86
67
86
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5464
SELECT + 86 col0, + col2 / col0 - - + col1 AS col1 FROM tab2
----
86
51
86
67
86
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5465
SELECT DISTINCT - COUNT( ALL + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5465
SELECT DISTINCT - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL IN ( - 15 )
----

query II rowsort
SELECT col1, + 97 FROM tab2
----
51
97
67
97
77
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT DISTINCT - COUNT( DISTINCT - col2 ) * - 9 AS col1 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-5468
SELECT DISTINCT - COUNT ( DISTINCT - col2 ) * - 9 AS col1 FROM tab2
----
27

query I rowsort
SELECT 80 * + col2 + col1 / col2 AS col2 FROM tab2 WHERE NOT + col1 / 99 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL + col2 * col1 FROM tab1 WHERE NOT ( NOT ( NULL ) IS NULL )
----
1344
295
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5471
SELECT + CAST( - COUNT( * ) AS SIGNED ) * + COUNT( * ) + - MIN( ALL + ( - 79 ) ) FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-5471
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) * + COUNT ( * ) + - MIN ( ALL + ( - 79 ) ) FROM tab2
----
70

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5473
SELECT - ( 39 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE ( + 20 ) NOT IN ( col2, 62 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5473
SELECT - ( 39 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE ( + 20 ) NOT IN ( col2, 62 )
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN 55 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 <= ( - - col1 )
----
15
81
47

onlyif mysql # aggregate syntax: 
query II rowsort label-5476
SELECT ALL + COUNT( * ) AS col1, ( ( 77 ) ) AS col0 FROM tab0 AS cor0
----
3
77

skipif mysql # not compatible
query II rowsort label-5476
SELECT ALL + COUNT ( * ) AS col1, ( ( 77 ) ) AS col0 FROM tab0 AS cor0
----
3
77

query I rowsort
SELECT DISTINCT col2 * + col0 * + col0 FROM tab0 AS cor0
----
10575
75690
931491

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND 5
----
46
64
75

query I rowsort
SELECT col2 + + + col1 * + 43 FROM tab1 cor0
----
2089
274
698

query I rowsort
SELECT ALL + + ( - col0 ) * + + col2 + - - col1 FROM tab0 AS cor0
----
-624
-849
-9602

query I rowsort
SELECT ALL col0 * ( + col1 ) * - col2 * - col0 + + col1 FROM tab2
----
12615757
21858817
2482119

query I rowsort
SELECT + 66 AS col0 FROM tab1 WHERE - col1 IN ( + - col0 )
----

query I rowsort
SELECT DISTINCT + 96 FROM tab2 WHERE + col0 + - 86 * - + col2 IN ( - 0 )
----

query I rowsort
SELECT ALL 21 + + 23 AS col0 FROM tab1
----
44
44
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5485
SELECT + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) * CAST( + SUM( ( col1 ) ) AS SIGNED ) * - 99 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5485
SELECT + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) * CAST ( + SUM ( ( col1 ) ) AS INTEGER ) * - 99 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT DISTINCT - 49 - - + COUNT( * ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT - 49 - - + COUNT ( * ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT - 89 * + + col0 + col0 AS col1 FROM tab2 AS cor0
----
-4048
-5632
-6600

query II rowsort
SELECT + - 15 - - col2 AS col2, - col1 AS col1 FROM tab2 cor0
----
25
-77
43
-67
8
-51

query I rowsort
SELECT - ( - col1 ) - - 71 FROM tab2 AS cor0
----
122
138
148

query I rowsort
SELECT DISTINCT - col0 * - + col2 * + + 22 FROM tab0 AS cor0
----
15510
19140
211266

query I rowsort
SELECT + 77 - - 68 FROM tab2 AS cor0
----
145
145
145

query I rowsort
SELECT DISTINCT 22 + 12 AS col0 FROM tab1
----
34

query I rowsort
SELECT DISTINCT 44 FROM tab1 WHERE + col1 + - col0 IS NOT NULL
----
44

query II rowsort
SELECT DISTINCT col2 AS col2, 99 * + + 56 + 1 FROM tab2
----
23
5545
40
5545
58
5545

onlyif mysql # aggregate syntax: 
query II rowsort label-5495
SELECT 27 AS col2, - COUNT( * ) FROM tab2 AS cor0
----
27
-3

skipif mysql # not compatible
query II rowsort label-5495
SELECT 27 AS col2, - COUNT ( * ) FROM tab2 AS cor0
----
27
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5496
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 WHERE 27 * + + 2 NOT BETWEEN - 39 AND + 70
----

skipif mysql # not compatible
query I rowsort label-5496
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 WHERE 27 * + + 2 NOT BETWEEN - 39 AND + 70
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 65 < ( + col1 )
----

query I rowsort
SELECT DISTINCT col0 * - col2 * ( - ( + col0 ) ) * - + ( + 20 ) * + col2 AS col1 FROM tab2 AS cor0
----
-131072000
-22387280
-378450000

query I rowsort
SELECT + 94 AS col0 FROM tab2 cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT ALL + ( + ( ( + MIN( + col2 ) ) ) ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5500
SELECT ALL + ( + ( ( + MIN ( + col2 ) ) ) ) FROM tab1 AS cor0
----
59

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 3 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT DISTINCT MAX( ALL + 59 ) FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5502
SELECT DISTINCT MAX ( ALL + 59 ) FROM tab0 AS cor0
----
59

query I rowsort
SELECT DISTINCT col0 + - 99 AS col1 FROM tab2 cor0
----
-24
-35
-53

query I rowsort
SELECT DISTINCT 60 FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN - 28 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5505
SELECT + SUM( DISTINCT + col1 ) AS col1, COUNT( + 54 ) - ( 64 ) FROM tab1 AS cor0 WHERE NOT ( col1 ) NOT IN ( ( 63 ) * + 99 )
----
NULL
-64

skipif mysql # not compatible
query II rowsort label-5505
SELECT + SUM ( DISTINCT + col1 ) AS col1, COUNT ( + 54 ) - ( 64 ) FROM tab1 AS cor0 WHERE NOT ( col1 ) NOT IN ( ( 63 ) * + 99 )
----
NULL
-64

query III rowsort
SELECT * FROM tab1 WHERE + 1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * - 71 + 24 FROM tab2
----
3290
4568
5349

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT DISTINCT - ( - COUNT( * ) ) + 96 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT - ( - COUNT ( * ) ) + 96 FROM tab0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 12 * + + 9 - + col1 col2 FROM tab1
----
-30
18
43

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 78 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 34 + - + col2 FROM tab2
----
-24
-6
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT - MAX( ALL - 71 ) col1 FROM tab2 AS cor0
----
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5512
SELECT - MAX ( ALL - 71 ) col1 FROM tab2 AS cor0
----
71

query I rowsort
SELECT + 26 * col2 AS col1 FROM tab1 AS cor0
----
1534
1768
2496

query I rowsort
SELECT DISTINCT - 44 * + col2 - 1 * - 71 FROM tab0
----
-1997
-369
-4285

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 95 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5516
SELECT 3 AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( - CAST( - ( - ( - 16 ) ) AS SIGNED ) + - col1 )
----

skipif mysql # not compatible
query I rowsort label-5516
SELECT 3 AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( - CAST ( - ( - ( - 16 ) ) AS INTEGER ) + - col1 )
----

query I rowsort
SELECT DISTINCT - col1 * - 44 FROM tab2 cor0
----
2244
2948
3388

query I rowsort
SELECT ALL - + col0 * - col0 * + col0 FROM tab2 AS cor0
----
262144
421875
97336

query I rowsort
SELECT DISTINCT + - col1 * - 58 + col0 + - + col1 FROM tab1 AS cor0 WHERE NOT ( + + 97 ) - - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5520
SELECT DISTINCT + col0 DIV + 95 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5520
SELECT DISTINCT + col0 / + 95 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL 70 * - + 11 + col0 FROM tab1 cor0
----
-679
-685
-719

query I rowsort
SELECT DISTINCT col2 FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 / col1 AND - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT ALL COUNT( * ) - + 98 AS col1 FROM tab2, tab1 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-5523
SELECT ALL COUNT ( * ) - + 98 AS col1 FROM tab2, tab1 AS cor0
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5524
SELECT + COUNT( * ) FROM tab0 WHERE NOT 65 + - col1 / - - CAST( NULL AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5524
SELECT + COUNT ( * ) FROM tab0 WHERE NOT 65 + - col1 / - - CAST ( NULL AS INTEGER ) IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( + 90 + col1 IS NOT NULL ) )
----

query I rowsort
SELECT col0 * - col0 * + + col0 * + 64 FROM tab2
----
-16777216
-27000000
-6229504

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > + + 5 * 12
----

query I rowsort
SELECT DISTINCT - + col0 AS col1 FROM tab0 WHERE - col0 * 22 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT + ( MAX( ALL + col2 ) ) col0 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5529
SELECT + ( MAX ( ALL + col2 ) ) col0 FROM tab2
----
58

query I rowsort
SELECT ALL col0 * + - col0 AS col0 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT DISTINCT + COUNT( * ) * + + 83 * + 17 + - - 90 AS col0 FROM tab2 cor0
----
4323

skipif mysql # not compatible
query I rowsort label-5531
SELECT DISTINCT + COUNT ( * ) * + + 83 * + 17 + - - 90 AS col0 FROM tab2 cor0
----
4323

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 + col2 <= NULL
----

query I rowsort
SELECT 71 * + - col2 AS col1 FROM tab2
----
-1633
-2840
-4118

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NOT col0 * + - col2 = + col2
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5535
SELECT ALL - ( - MAX( + col2 ) ) * - - CAST( COUNT( ALL - col1 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-5535
SELECT ALL - ( - MAX ( + col2 ) ) * - - CAST ( COUNT ( ALL - col1 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
297

query II rowsort
SELECT DISTINCT - col0 AS col1, + col0 * 58 AS col2 FROM tab2 AS cor0
----
-46
2668
-64
3712
-75
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5537
SELECT + col2 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE + col2 + + col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5537
SELECT + col2 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE + col2 + + col1 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - - 28 ) AS col0 FROM tab1 AS cor0
----
28
28
28

query II rowsort
SELECT ALL + + 13 * + 83 + + - 97 AS col2, - 91 AS col0 FROM tab0 AS cor0
----
982
-91
982
-91
982
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5540
SELECT - COUNT( * ) DIV + COUNT( - + col0 ) AS col0, - COUNT( * ) col1 FROM tab2 AS cor0
----
-1
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5540
SELECT - COUNT ( * ) / + COUNT ( - + col0 ) AS col0, - COUNT ( * ) col1 FROM tab2 AS cor0
----
-1
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT COUNT( * ) * + - 33 FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5541
SELECT COUNT ( * ) * + - 33 FROM tab2 AS cor0
----
-99

query I rowsort
SELECT ALL + col2 + - 96 FROM tab2 AS cor0
----
-38
-56
-73

query II rowsort
SELECT - col2 * - 46 * + 16 AS col0, col1 AS col1 FROM tab1 AS cor0
----
43424
5
50048
47
70656
14

query I rowsort
SELECT ALL col0 * + + col1 + + + 29 FROM tab2 WHERE - col0 < NULL
----

query I rowsort
SELECT + 91 AS col1 FROM tab0 WHERE - col0 <= ( ( + col0 ) )
----
91
91
91

query I rowsort
SELECT ALL + + 46 FROM tab2 WHERE NOT ( NULL ) <= + ( + col0 ) / - - col2 * - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 47 IN ( + col1 )
----
51
14
96
85
5
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5548
SELECT + - 21 FROM tab2 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5548
SELECT + - 21 FROM tab2 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 43 * col2 AS col1 FROM tab1 AS cor0
----
2537
2924
4128

onlyif mysql # DIV for integer division: 
query I rowsort label-5550
SELECT ALL ( + 80 ) DIV + col1 AS col1 FROM tab0 AS cor0
----
0
3
80

skipif mysql # not compatible
query I rowsort label-5550
SELECT ALL ( + 80 ) / + col1 AS col1 FROM tab0 AS cor0
----
0
3
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT COUNT( * ) + 53 AS col2 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-5551
SELECT COUNT ( * ) + 53 AS col2 FROM tab1 AS cor0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-5552
SELECT + 81 DIV col0 * col0 + + + col1 * + + col1 AS col0 FROM tab1 AS cor0
----
2209
247
25

skipif mysql # not compatible
query I rowsort label-5552
SELECT + 81 / col0 * col0 + + + col1 * + + col1 AS col0 FROM tab1 AS cor0
----
2209
247
25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5553
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 1 + - col0 - + 65 - + col2 * + CAST( NULL AS SIGNED ) * - 4 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5553
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 1 + - col0 - + 65 - + col2 * + CAST ( NULL AS INTEGER ) * - 4 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * - col1 - + - col2 * - + 73 FROM tab1
----
-4732
-7722
-9241

query I rowsort
SELECT - 95 * + 80 AS col2 FROM tab2
----
-7600
-7600
-7600

query I rowsort
SELECT DISTINCT - 25 * col1 - - ( 28 ) FROM tab1 AS cor0
----
-1147
-322
-97

query I rowsort
SELECT + 51 FROM tab0 AS cor0 WHERE NOT 75 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5558
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + 8 BETWEEN - + col0 * - ( + 85 ) + col1 AND NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5558
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + 8 BETWEEN - + col0 * - ( + 85 ) + col1 AND NULL
----
NULL
NULL
NULL

query II rowsort
SELECT - col1 AS col2, + col1 AS col0 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query III rowsort
SELECT ALL * FROM tab0 WHERE - 24 IN ( 10, ( + - col2 ) )
----

query II rowsort
SELECT ALL 20 AS col0, 9 + 80 FROM tab0
----
20
89
20
89
20
89

onlyif mysql # DIV for integer division: 
query I rowsort label-5562
SELECT DISTINCT - col1 DIV + col0 FROM tab0 WHERE NOT - col2 IS NULL
----
-5
0

skipif mysql # not compatible
query I rowsort label-5562
SELECT DISTINCT - col1 / + col0 FROM tab0 WHERE NOT - col2 IS NULL
----
-5
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( + col2 ) + - + ( + ( - col2 ) ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, - 62 FROM tab0
----
1
-62
21
-62
81
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-5565
SELECT COUNT( * ) col0, 88 + 15 FROM tab1
----
3
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5565
SELECT COUNT ( * ) col0, 88 + 15 FROM tab1
----
3
103

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5566
SELECT - AVG ( ALL - + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5566
SELECT - AVG ( ALL - + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT 37, + col0 AS col0 FROM tab0 AS cor0
----
37
15
37
87
37
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT - SUM( - 75 ) AS col0 FROM tab1 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-5568
SELECT - SUM ( - 75 ) AS col0 FROM tab1 AS cor0
----
225

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col0 AND col0
----

query I rowsort
SELECT + + 42 * - ( - col1 ) FROM tab0 AS cor0
----
3402
42
882

query I rowsort
SELECT ALL + - col2 * - + 65 FROM tab2 AS cor0
----
1495
2600
3770

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT - + COUNT( * ) AS col0 FROM tab0 WHERE NOT + + ( - - 8 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5572
SELECT - + COUNT ( * ) AS col0 FROM tab0 WHERE NOT + + ( - - 8 ) IS NULL
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 / ( + - ( - col1 ) ) >= - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT DISTINCT COUNT( * ) * 53 * - 19 FROM tab1 AS cor0
----
-3021

skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT COUNT ( * ) * 53 * - 19 FROM tab1 AS cor0
----
-3021

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL <> + 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT - 20 + - COUNT( * ) col0 FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5576
SELECT - 20 + - COUNT ( * ) col0 FROM tab0 AS cor0
----
-23

query I rowsort
SELECT DISTINCT col1 + 45 + + col0 AS col0 FROM tab2 cor0
----
142
186
187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 + - + 43 + col1 - - 35 col2 FROM tab2 AS cor0
----
72
88
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT DISTINCT - 97 * COUNT( * ) col0 FROM tab2 AS cor0
----
-291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5579
SELECT DISTINCT - 97 * COUNT ( * ) col0 FROM tab2 AS cor0
----
-291

query I rowsort
SELECT ALL + col0 + col1 * 63 AS col2 FROM tab1 AS cor0
----
3052
400
933

query I rowsort
SELECT DISTINCT 11 + - 64 AS col2 FROM tab0 AS cor0
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5582
SELECT SUM( ALL + col0 ) DIV + COUNT( ( ( + col2 ) ) ) + + + 76 * - COUNT( * ) AS col0 FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-5582
SELECT SUM ( ALL + col0 ) / + COUNT ( ( ( + col2 ) ) ) + + + 76 * - COUNT ( * ) AS col0 FROM tab1
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT ALL COUNT( * ) + + + COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT SUM( DISTINCT + 84 ) AS col2 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-5584
SELECT SUM ( DISTINCT + 84 ) AS col2 FROM tab1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT - SUM( ALL - col1 ) col0 FROM tab2
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5585
SELECT - SUM ( ALL - col1 ) col0 FROM tab2
----
195

onlyif mysql # DIV for integer division: 
query II rowsort label-5586
SELECT ALL + 52 AS col2, + col1 DIV - col0 AS col0 FROM tab2
----
52
-1
52
-1
52
0

skipif mysql # not compatible
query II rowsort label-5586
SELECT ALL + 52 AS col2, + col1 / - col0 AS col0 FROM tab2
----
52
-1
52
-1
52
0

query I rowsort
SELECT DISTINCT 7 - - - 19 AS col2 FROM tab0
----
-12

query I rowsort
SELECT ALL AVG ( 83 ) FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( + + col0 * 24 )
----
NULL

query II rowsort
SELECT col1 AS col2, - 87 * col1 FROM tab0 AS cor0
----
1
-87
21
-1827
81
-7047

query I rowsort
SELECT - 3 * + - col0 AS col2 FROM tab2 AS cor0
----
138
192
225

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT DISTINCT MIN( ALL col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5591
SELECT DISTINCT MIN ( ALL col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT ALL - MIN( + 80 ) AS col1 FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-5592
SELECT ALL - MIN ( + 80 ) AS col1 FROM tab1
----
-80

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 - + - col1 * - col2 > NULL
----

query I rowsort
SELECT + 45 * + 66 * - col0 AS col0 FROM tab0 AS cor0
----
-258390
-288090
-44550

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0, - col0 * col0 )
----

query II rowsort
SELECT + col2 * + - 45, col2 AS col0 FROM tab0 cor0
----
-2115
47
-4455
99
-450
10

query I rowsort
SELECT ALL 61 AS col0 FROM tab0 AS cor0 WHERE NOT 40 - 48 > - 69
----

query I rowsort
SELECT ( + + 95 ) * - 96 AS col0 FROM tab1 AS cor0
----
-9120
-9120
-9120

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT SUM( DISTINCT - 27 ) * 29 FROM tab2
----
-783

skipif mysql # not compatible
query I rowsort label-5599
SELECT SUM ( DISTINCT - 27 ) * 29 FROM tab2
----
-783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 92 col0 FROM tab2
----
92
92
92

query I rowsort
SELECT ALL ( + - 38 ) * - col0 + - 35 + - col1 * col0 FROM tab1
----
-854
1189
2770

query I rowsort
SELECT 45 - + - 87 * - ( - - col1 ) * 30 + - + col2 AS col2 FROM tab1 AS cor0 WHERE NOT + 33 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT DISTINCT + MIN( + + col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5603
SELECT DISTINCT + MIN ( + + col2 ) AS col0 FROM tab2 AS cor0
----
23

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 / + - 89 - - ( ( col1 ) ) * - + col2 IS NOT NULL
----

query II rowsort
SELECT ALL - + 13, ( col0 ) FROM tab2 AS cor0
----
-13
46
-13
64
-13
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5606
SELECT ALL - + SUM( ALL - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5606
SELECT ALL - + SUM ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + 81 * - 13 + - - 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT - - ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5608
SELECT - - ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 69 + col2 col2 FROM tab2 AS cor0
----
-11
-29
-46

query I rowsort
SELECT ALL - col1 + - col1 * + + 71 AS col0 FROM tab1 AS cor0
----
-1008
-3384
-360

query I rowsort
SELECT DISTINCT - 21 + - col0 + ( - + col1 ) AS col0 FROM tab1 AS cor0
----
-111
-159
-86

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > 88
----

query I rowsort
SELECT DISTINCT - col0 * 37 + + 0 + - - 43 * + 87 * - + 62 FROM tab0
----
-232497
-235161
-235531

query I rowsort
SELECT ( + + col1 ) - + - col1 FROM tab1
----
10
28
94

query I rowsort
SELECT 33 + - 63 + - 88 / col0 AS col1 FROM tab2 WHERE NULL IN ( + 12 * + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 + - - col0 col0 FROM tab1
----
54
88
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT COUNT( * ) * + 71 AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
213

skipif mysql # not compatible
query I rowsort label-5617
SELECT COUNT ( * ) * + 71 AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
213

query I rowsort
SELECT + - col1 + - - col2 AS col2 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE 25 * + + col1 * + - 79 + - col1 + + col2 IS NULL
----

query I rowsort
SELECT ALL + + col0 + + 4 AS col1 FROM tab0 AS cor0
----
101
19
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5621
SELECT 29 DIV - 93 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5621
SELECT 29 / - 93 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + + 49 FROM tab2 AS cor0
----
113
124
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT ALL 62 * - + 45 - - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-2787

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL 62 * - + 45 - - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-2787

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col0, col0 * + col0 col1 FROM tab1
----
51
2601
85
7225
91
8281

query I rowsort
SELECT ALL + 57 AS col1 FROM tab1 cor0 WHERE - col1 IS NOT NULL
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT 34 * COUNT( * ) FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-5626
SELECT 34 * COUNT ( * ) FROM tab2 AS cor0
----
102

query II rowsort
SELECT + - 13 AS col1, + col1 * - 10 * + - col2 AS col2 FROM tab0 AS cor0
----
-13
2100
-13
38070
-13
990

query I rowsort
SELECT col2 * 11 * + col2 FROM tab0 AS cor0
----
107811
1100
24299

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 16 col2 FROM tab1 AS cor0
----
-16
-16
-16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5630
SELECT col0 AS col1, CAST( - 30 AS SIGNED ) FROM tab0 AS cor0
----
15
-30
87
-30
97
-30

skipif mysql # not compatible
query II rowsort label-5630
SELECT col0 AS col1, CAST ( - 30 AS INTEGER ) FROM tab0 AS cor0
----
15
-30
87
-30
97
-30

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 = + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 * - 81 col0 FROM tab0 AS cor0
----
-6885
-6885
-6885

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT ALL - MIN( + - col0 ) col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5633
SELECT ALL - MIN ( + - col0 ) col0 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT ALL - COUNT( DISTINCT 59 ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5634
SELECT ALL - COUNT ( DISTINCT 59 ) AS col2 FROM tab1
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5635
SELECT + 37 AS col1 FROM tab0 WHERE NOT + ( - - 45 ) NOT BETWEEN ( - col0 / + col2 * CAST( - col0 AS DECIMAL ) ) AND 3
----

skipif mysql # not compatible
query I rowsort label-5635
SELECT + 37 AS col1 FROM tab0 WHERE NOT + ( - - 45 ) NOT BETWEEN ( - col0 / + col2 * CAST ( - col0 AS REAL ) ) AND 3
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5636
SELECT ALL 8 DIV + + col2 * + 62 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL 8 / + + col2 * + 62 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + 39 NOT IN ( - + 71, - ( - - col0 ), - col0 )
----

query I rowsort
SELECT ALL + ( - - 51 ) FROM tab0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT MIN( col1 ) + + SUM( - 93 ) AS col0 FROM tab1
----
-274

skipif mysql # not compatible
query I rowsort label-5639
SELECT MIN ( col1 ) + + SUM ( - 93 ) AS col0 FROM tab1
----
-274

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT ALL - 78 * - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - - col0 * 15 * - 71 IS NOT NULL OR NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL - 78 * - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - - col0 * 15 * - 71 IS NOT NULL OR NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col0 + - + 71 + col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
26
70
71

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - 54
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + - col1 col1 FROM tab2 AS cor0 WHERE + 98 > - - col2
----
-141
-142
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 BETWEEN 14 + - col0 AND + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 53 * + 82 FROM tab0
----
4346
4346
4346

query I rowsort
SELECT ALL col2 + - 70 FROM tab1
----
-11
-2
26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5647
SELECT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) + col0 BETWEEN + - col0 AND col1
----

skipif mysql # not compatible
query III rowsort label-5647
SELECT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) + col0 BETWEEN + - col0 AND col1
----

query I rowsort
SELECT ALL + + ( 0 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 12 + - 45 * + col1 FROM tab1 AS cor0
----
-2127
-237
-642

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5650
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) * - + ( + - CAST( NULL AS SIGNED ) ) + + 56 * + ( col2 ) NOT BETWEEN col2 AND - 11 / + - col0
----

skipif mysql # not compatible
query III rowsort label-5650
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * - + ( + - CAST ( NULL AS INTEGER ) ) + + 56 * + ( col2 ) NOT BETWEEN col2 AND - 11 / + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5651
SELECT - col2 col0, + CAST( NULL AS SIGNED ) col2 FROM tab2 cor0 WHERE - col1 NOT BETWEEN - 49 AND - col1
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5651
SELECT - col2 col0, + CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0 WHERE - col1 NOT BETWEEN - 49 AND - col1
----
-23
NULL
-40
NULL
-58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT + 72 + - COUNT( * ) FROM tab0 cor0
----
69

skipif mysql # not compatible
query I rowsort label-5652
SELECT + 72 + - COUNT ( * ) FROM tab0 cor0
----
69

query I rowsort
SELECT DISTINCT - 54 * + col1 AS col0 FROM tab0 cor0
----
-1134
-4374
-54

query I rowsort
SELECT ALL - 69 + - col1 + - col0 * - + 67 - - - col0 AS col2 FROM tab2
----
2916
4078
4814

query III rowsort
SELECT * FROM tab0 WHERE - 76 NOT IN ( - col2 + - - col2 * col2, 55 / + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, - 78 col1 FROM tab1
----
-51
-78
-85
-78
-91
-78

query II rowsort
SELECT DISTINCT - col2 - + ( + col2 ) + - 5, col0 AS col1 FROM tab0
----
-203
97
-25
87
-99
15

query I rowsort
SELECT + - col1 AS col0 FROM tab0 WHERE - + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * - - col1 + - - col0 * - 60 * - ( + - col0 ) FROM tab0
----
-17307
-454350
-564639

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN 34 AND + 29 + col2 / + col2 + + + 99
----

query I rowsort
SELECT ALL col0 - ( 98 ) AS col2 FROM tab2
----
-23
-34
-52

query II rowsort
SELECT + 29 AS col0, - 52 FROM tab1
----
29
-52
29
-52
29
-52

query I rowsort
SELECT DISTINCT - ( 80 ) FROM tab0 cor0
----
-80

query I rowsort
SELECT ( + col1 ) FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( - col0, - col2 * + 35 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT ALL - ( COUNT( * ) ) + - ( - - COUNT( * ) ) AS col1 FROM tab1, tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-5665
SELECT ALL - ( COUNT ( * ) ) + - ( - - COUNT ( * ) ) AS col1 FROM tab1, tab1 AS cor0
----
-18

query I rowsort
SELECT DISTINCT + 70 + - 79 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query III rowsort label-5667
SELECT DISTINCT - col2 DIV col1 AS col0, + col1 AS col1, + 9 FROM tab1 AS cor0
----
9 values hashing to abc5ecd5c3c8a084c9e3de5d67938ae3

skipif mysql # not compatible
query III rowsort label-5667
SELECT DISTINCT - col2 / col1 AS col0, + col1 AS col1, + 9 FROM tab1 AS cor0
----
9 values hashing to abc5ecd5c3c8a084c9e3de5d67938ae3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 63 + - 45 IS NULL
----

query II rowsort
SELECT ALL - ( - col1 ), + col0 FROM tab0 cor0
----
1
97
21
87
81
15

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col1 > + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 * + 71 AS col2 FROM tab2 AS cor0
----
1633
2840
4118

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT - 44 * - + MAX( ALL - - col2 ) AS col0 FROM tab0 AS cor0
----
4356

skipif mysql # not compatible
query I rowsort label-5672
SELECT - 44 * - + MAX ( ALL - - col2 ) AS col0 FROM tab0 AS cor0
----
4356

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 * 45 col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT ALL + COUNT( 79 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL + COUNT ( 79 ) FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5675
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT + col2 * + + ( + CAST( + 8 AS DECIMAL ) ) IS NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT + col2 * + + ( + CAST ( + 8 AS REAL ) ) IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT + - 70 * + MIN( 13 ) + - + 79 + + + 10 FROM tab1 AS cor0
----
-979

skipif mysql # not compatible
query I rowsort label-5676
SELECT + - 70 * + MIN ( 13 ) + - + 79 + + + 10 FROM tab1 AS cor0
----
-979

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5677
SELECT + - CAST( - 1 AS SIGNED ) + + - 47 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

skipif mysql # not compatible
query I rowsort label-5677
SELECT + - CAST ( - 1 AS INTEGER ) + + - 47 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT DISTINCT ( - + col2 ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT DISTINCT - MIN( + + col0 ) col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5679
SELECT DISTINCT - MIN ( + + col0 ) col0 FROM tab1 AS cor0
----
-51

query II rowsort
SELECT ALL col1 * + col0, - col1 AS col0 FROM tab0 AS cor0
----
1215
-81
1827
-21
97
-1

query I rowsort
SELECT DISTINCT + 86 * + col1 + 75 FROM tab2 AS cor0
----
4461
5837
6697

query I rowsort
SELECT 85 - - 46 - - + 42 FROM tab1 AS cor0
----
173
173
173

query I rowsort
SELECT + - col1 * - col2 - - ( - - col0 ) AS col0 FROM tab2 AS cor0
----
1219
3144
3961

query I rowsort
SELECT DISTINCT - + 73 + col2 AS col1 FROM tab0 AS cor0
----
-26
-63
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col2 col0 FROM tab2 WHERE + col2 <> - ( + 58 ) + - + 88
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT ALL - COUNT( * ) + 50 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL - COUNT ( * ) + 50 FROM tab0
----
47

query II rowsort
SELECT DISTINCT + col1 AS col1, 67 AS col2 FROM tab0
----
1
67
21
67
81
67

query I rowsort
SELECT - ( - 66 ) * col2 FROM tab1
----
3894
4488
6336

query I rowsort
SELECT ( + 90 ) AS col1 FROM tab2 AS cor0
----
90
90
90

query I rowsort
SELECT - - 37 * - col2 * - - 33 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + ( + col1 ) * - + col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT ALL ( + 89 ) FROM tab2 AS cor0
----
89
89
89

query I rowsort
SELECT + col1 * col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= 8 * + col1 - + - col1
----

query II rowsort
SELECT - - col1 AS col1, 32 FROM tab0 AS cor0
----
1
32
21
32
81
32

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( ( col1 ) ) * + col1 NOT IN ( - col2 + - col1, 97 * - ( - col1 ), + 49 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5696
SELECT DISTINCT - 58 DIV COUNT( * ) + + 8 + - + 75 FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-5696
SELECT DISTINCT - 58 / COUNT ( * ) + + 8 + - + 75 FROM tab1 AS cor0
----
-86

query I rowsort
SELECT DISTINCT 29 + + col1 FROM tab2
----
106
80
96

onlyif mysql # DIV for integer division: 
query II rowsort label-5698
SELECT DISTINCT - col2 DIV - 97 + col2 AS col2, - 85 FROM tab1
----
59
-85
68
-85
96
-85

skipif mysql # not compatible
query II rowsort label-5698
SELECT DISTINCT - col2 / - 97 + col2 AS col2, - 85 FROM tab1
----
59
-85
68
-85
96
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-5699
SELECT ( + col2 ) + col0 - col0 DIV ( 68 ) AS col1 FROM tab2
----
104
132
69

skipif mysql # not compatible
query I rowsort label-5699
SELECT ( + col2 ) + col0 - col0 / ( 68 ) AS col1 FROM tab2
----
104
132
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT + MIN( DISTINCT 42 ) + + COUNT( DISTINCT 25 ) AS col0 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-5700
SELECT + MIN ( DISTINCT 42 ) + + COUNT ( DISTINCT 25 ) AS col0 FROM tab1
----
43

query I rowsort
SELECT 68 + - - col0 AS col2 FROM tab0
----
155
165
83

query I rowsort
SELECT + ( - - col1 ) + 59 FROM tab0
----
140
60
80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col0 - + col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5704
SELECT - 29 DIV + col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5704
SELECT - 29 / + col0 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( + ( - col2 ) ) / - - col2 BETWEEN + - col2 AND + col1
----

query III rowsort
SELECT * FROM tab1 WHERE ( col0 + - 49 * col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5707
SELECT + 65, + COUNT( * ) * - MAX( ALL - col2 ) AS col0 FROM tab2
----
65
69

skipif mysql # not compatible
query II rowsort label-5707
SELECT + 65, + COUNT ( * ) * - MAX ( ALL - col2 ) AS col0 FROM tab2
----
65
69

query I rowsort
SELECT col1 - + + col2 AS col2 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT - - col0 * + 54 + col0 AS col2 FROM tab1 AS cor0
----
2805
4675
5005

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT - + 58 + + - COUNT( - + ( 60 ) ) col2 FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5710
SELECT - + 58 + + - COUNT ( - + ( 60 ) ) col2 FROM tab2 AS cor0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5711
SELECT ALL col1 col2 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5711
SELECT ALL col1 col2 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT col0 * - 55 AS col1 FROM tab1 AS cor0 WHERE ( - - col1 ) IS NOT NULL
----
-2805
-4675
-5005

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col2 * + col1 AND col0 / + - col2 * - 88 * + 52
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5714
SELECT + col2 DIV - - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5714
SELECT + col2 / - - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5715
SELECT - COUNT( * ) DIV - - 95 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5715
SELECT - COUNT ( * ) / - - 95 FROM tab0
----
0

query I rowsort
SELECT ALL - - col2 FROM tab1 WHERE + + col1 / - - 40 + col0 / - 11 + + 73 IS NOT NULL
----
59
68
96

query I rowsort
SELECT - - 37 + col0 + + - 57 FROM tab2 WHERE NOT - - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT COUNT( DISTINCT - col1 ) * + - COUNT( col1 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5718
SELECT COUNT ( DISTINCT - col1 ) * + - COUNT ( col1 ) FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5719
SELECT CAST( col0 AS SIGNED ), + col1 FROM tab1
----
51
14
85
5
91
47

skipif mysql # not compatible
query II rowsort label-5719
SELECT CAST ( col0 AS INTEGER ), + col1 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT - col0 * - 25 AS col2 FROM tab2
----
1150
1600
1875

query II rowsort
SELECT ALL + 0 * - + col2 AS col2, col1 FROM tab2
----
0
51
0
67
0
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5722
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( 2 + 16, col1, - CAST( - col2 AS SIGNED ), + 54 * + 11 )
----

skipif mysql # not compatible
query III rowsort label-5722
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( 2 + 16, col1, - CAST ( - col2 AS INTEGER ), + 54 * + 11 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 <= col2 + col2
----
87
21
10

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 22 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 * - - ( - col2 ) * col1 FROM tab2
----
-123200
-225388
-26979

onlyif mysql # DIV for integer division: 
query I rowsort label-5726
SELECT col2 DIV col1 * 27 FROM tab0
----
0
0
2673

skipif mysql # not compatible
query I rowsort label-5726
SELECT col2 / col1 * 27 FROM tab0
----
0
0
2673

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5727
SELECT DISTINCT * FROM tab2 WHERE + - CAST( + col0 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5727
SELECT DISTINCT * FROM tab2 WHERE + - CAST ( + col0 AS REAL ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 * + ( 69 ) FROM tab0
----
1035
6003
6693

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT ALL COUNT( * ) * - - 91 AS col0 FROM tab2
----
273

skipif mysql # not compatible
query I rowsort label-5729
SELECT ALL COUNT ( * ) * - - 91 AS col0 FROM tab2
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
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-5730
SELECT DISTINCT + - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE + col0 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5731
SELECT - ( + CAST( - COUNT( * ) AS SIGNED ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5731
SELECT - ( + CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT ALL MIN( DISTINCT - 23 ) + + - 63 col2 FROM tab2 AS cor0 WHERE 37 + - 83 + - 69 + - col1 * + 54 * + col1 IS NOT NULL
----
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5732
SELECT ALL MIN ( DISTINCT - 23 ) + + - 63 col2 FROM tab2 AS cor0 WHERE 37 + - 83 + - 69 + - col1 * + 54 * + col1 IS NOT NULL
----
-86

query I rowsort
SELECT ALL + + col1 + - ( - + 0 ) AS col0 FROM tab1 cor0
----
14
47
5

query II rowsort
SELECT + + col1 AS col1, - col0 AS col1 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT ALL 39 * + - MAX( + col1 ) FROM tab0
----
-3159

skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL 39 * + - MAX ( + col1 ) FROM tab0
----
-3159

query I rowsort
SELECT col1 + - - 13 FROM tab0 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT DISTINCT COUNT( * ) * - 88 AS col0 FROM tab1
----
-264

skipif mysql # not compatible
query I rowsort label-5737
SELECT DISTINCT COUNT ( * ) * - 88 AS col0 FROM tab1
----
-264

query I rowsort
SELECT DISTINCT + 14 + - col0 FROM tab2
----
-32
-50
-61

query II rowsort
SELECT col0 AS col0, - 52 * + col0 - col0 FROM tab1
----
51
-2703
85
-4505
91
-4823

onlyif mysql # aggregate syntax: 
query II rowsort label-5740
SELECT + COUNT( * ) AS col1, 83 AS col1 FROM tab2, tab1 AS cor0
----
9
83

skipif mysql # not compatible
query II rowsort label-5740
SELECT + COUNT ( * ) AS col1, 83 AS col1 FROM tab2, tab1 AS cor0
----
9
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5741
SELECT 37 + + CAST( NULL AS SIGNED ) / - MAX( 33 ) * + COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5741
SELECT 37 + + CAST ( NULL AS INTEGER ) / - MAX ( 33 ) * + COUNT ( * ) AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5742
SELECT ALL col2 DIV + col0 + + 0 + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5742
SELECT ALL col2 / + col0 + + 0 + col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT + - 11 + col2 AS col2 FROM tab2 AS cor0
----
12
29
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5744
SELECT COUNT( * ), + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-5744
SELECT COUNT ( * ), + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 23 - 29, + col2 * + - col1 col1 FROM tab1
----
-6
-1344
-6
-295
-6
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( col2 ), 94 col1 FROM tab2
----
-23
94
-40
94
-58
94

onlyif mysql # DIV for integer division: 
query I rowsort label-5747
SELECT ALL - col1 DIV + col0 - col2 + - - col1 FROM tab0 AS cor0
----
-98
11
29

skipif mysql # not compatible
query I rowsort label-5747
SELECT ALL - col1 / + col0 - col2 + - - col1 FROM tab0 AS cor0
----
-98
11
29

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 * + col0 <> NULL
----

query I rowsort
SELECT - - 55 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
55
55
55

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 12 + col1 BETWEEN NULL AND col2 - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + col1 AS col0 FROM tab2 WHERE NOT col1 IS NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= + col0 * - col2 * + 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT ALL + MAX( ALL + col1 ) col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5753
SELECT ALL + MAX ( ALL + col1 ) col1 FROM tab1 AS cor0
----
47

query I rowsort
SELECT 63 * - col2 FROM tab1 AS cor0
----
-3717
-4284
-6048

query II rowsort
SELECT DISTINCT 95 AS col2, col1 FROM tab2 AS cor0
----
95
51
95
67
95
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 24 <> NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NULL = - 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT COUNT( * ) FROM tab0, tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5758
SELECT COUNT ( * ) FROM tab0, tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5759
SELECT DISTINCT + col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5759
SELECT DISTINCT + col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 95 FROM tab0 AS cor0 WHERE col1 - - - col2 + + ( col1 ) * 13 / + col1 * + 36 + + col2 + col2 - + 16 IN ( - 59 * - 75 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL = 14
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 97 < - + col1 - + col2 + col1 + col1 * - col0
----

query I rowsort
SELECT DISTINCT 29 * 34 AS col0 FROM tab2 AS cor0 WHERE + 4 <> - 18 * - - col2 - col2
----
986

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5764
SELECT * FROM tab0 WHERE NULL <= col0 + - CAST( + 15 AS SIGNED ) - - 73 + + + ( col0 ) AND col0 + + - col2 BETWEEN - 64 * - col0 AND + col2 * + col1
----

skipif mysql # not compatible
query III rowsort label-5764
SELECT * FROM tab0 WHERE NULL <= col0 + - CAST ( + 15 AS INTEGER ) - - 73 + + + ( col0 ) AND col0 + + - col2 BETWEEN - 64 * - col0 AND + col2 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5765
SELECT DISTINCT col2 * CAST( col0 AS SIGNED ) + - - 1 AS col1 FROM tab2
----
1059
2561
4351

skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT col2 * CAST ( col0 AS INTEGER ) + - - 1 AS col1 FROM tab2
----
1059
2561
4351

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN 62 AND col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 93 - + col1 + - + col1 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5768
SELECT 38 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5768
SELECT 38 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5769
SELECT ( col2 ) + - col1 * - CAST( + 15 AS SIGNED ) + + + col0 - col1 - - col2 FROM tab0
----
1243
309
401

skipif mysql # not compatible
query I rowsort label-5769
SELECT ( col2 ) + - col1 * - CAST ( + 15 AS INTEGER ) + + + col0 - col1 - - col2 FROM tab0
----
1243
309
401

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT + COUNT( * ) * COUNT( DISTINCT + + 69 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5770
SELECT + COUNT ( * ) * COUNT ( DISTINCT + + 69 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5771
SELECT ALL - 58 AS col2, CAST( NULL AS SIGNED ) + + + 16 col2 FROM tab1
----
-58
NULL
-58
NULL
-58
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5771
SELECT ALL - 58 AS col2, CAST ( NULL AS INTEGER ) + + + 16 col2 FROM tab1
----
-58
NULL
-58
NULL
-58
NULL

query II rowsort
SELECT - col2, + col2 FROM tab1 AS cor0 WHERE ( 52 IS NOT NULL )
----
-59
59
-68
68
-96
96

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT ( NOT + - col0 NOT BETWEEN col2 AND NULL )
----
46
64
75

query I rowsort
SELECT 1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 36 IS NULL
----

query I rowsort
SELECT col0 + 11 + + col0 FROM tab2
----
103
139
161

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5776
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN CAST( NULL AS DECIMAL ) AND 72 * + 5 * - 63 * + - col2
----

skipif mysql # not compatible
query III rowsort label-5776
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN CAST ( NULL AS REAL ) AND 72 * + 5 * - 63 * + - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= 98
----

query II rowsort
SELECT DISTINCT + col2 AS col2, col0 + - - 14 FROM tab2 AS cor0
----
23
60
40
78
58
89

query II rowsort
SELECT DISTINCT - ( + - col1 ) AS col0, 22 FROM tab1 AS cor0
----
14
22
47
22
5
22

onlyif mysql # DIV for integer division: 
query I rowsort label-5780
SELECT 11 DIV col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5780
SELECT 11 / col0 FROM tab0
----
0
0
0

query II rowsort
SELECT - col0 * + + 1 AS col1, + col0 FROM tab2
----
-46
46
-64
64
-75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5782
SELECT 52 DIV - col0 col2 FROM tab0
----
-3
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5782
SELECT 52 / - col0 col2 FROM tab0
----
-3
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5783
SELECT ALL 7 DIV + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL 7 / + col2 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 44 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5785
SELECT DISTINCT + col2 * - ( 29 ) + - col2 FROM tab1 WHERE NOT + 43 IN ( col1, col2 / - CAST( NULL AS SIGNED ), + 29 )
----

skipif mysql # not compatible
query I rowsort label-5785
SELECT DISTINCT + col2 * - ( 29 ) + - col2 FROM tab1 WHERE NOT + 43 IN ( col1, col2 / - CAST ( NULL AS INTEGER ), + 29 )
----

query II rowsort
SELECT DISTINCT ( col2 ) AS col1, - col2 AS col2 FROM tab0 cor0
----
10
-10
47
-47
99
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col2 AND - - 40
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 + - col0 NOT BETWEEN + col0 AND + col2
----

query I rowsort
SELECT - 12 + 86 FROM tab2
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT + COUNT( DISTINCT 32 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-5790
SELECT + COUNT ( DISTINCT 32 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
1

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 90 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + 40 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5793
SELECT ALL + CAST( NULL AS SIGNED ) * ( + COUNT( * ) ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5793
SELECT ALL + CAST ( NULL AS INTEGER ) * ( + COUNT ( * ) ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

query II rowsort
SELECT DISTINCT col2 AS col0, + 5 + - col0 FROM tab2 AS cor0
----
23
-41
40
-59
58
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-5795
SELECT COUNT( * ) AS col2, ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5795
SELECT COUNT ( * ) AS col2, ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT ( 37 ) * + - col2 FROM tab0
----
-1739
-3663
-370

query I rowsort
SELECT ALL + 15 * + + col0 + col0 FROM tab2
----
1024
1200
736

query II rowsort
SELECT DISTINCT 98 + + + 62 AS col1, col0 FROM tab2
----
160
46
160
64
160
75

query I rowsort
SELECT ALL - col0 + - 84 FROM tab2 AS cor0
----
-130
-148
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT DISTINCT COUNT( DISTINCT 97 ) + - 65 AS col2 FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-5800
SELECT DISTINCT COUNT ( DISTINCT 97 ) + - 65 AS col2 FROM tab2 AS cor0
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5801
SELECT ALL - 32 * + + COUNT( * ) * - + COUNT( * ) DIV + - COUNT( * ) AS col0 FROM tab2 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL - 32 * + + COUNT ( * ) * - + COUNT ( * ) / + - COUNT ( * ) AS col0 FROM tab2 cor0
----
-96

query I rowsort
SELECT ALL - + col1 + + - 45 FROM tab1 AS cor0
----
-50
-59
-92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5803
SELECT + - CAST( NULL AS DECIMAL ) * + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5803
SELECT + - CAST ( NULL AS REAL ) * + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT DISTINCT + 3 + - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-6

skipif mysql # not compatible
query I rowsort label-5804
SELECT DISTINCT + 3 + - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-6

query I rowsort
SELECT DISTINCT - col1 * - + col2 AS col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT ALL - + 50 * 73 FROM tab2 AS cor0
----
-3650
-3650
-3650

query I rowsort
SELECT ALL 88 * + + col0 FROM tab2 AS cor0
----
4048
5632
6600

onlyif mysql # DIV for integer division: 
query I rowsort label-5808
SELECT ALL 55 DIV + 29 + - + ( col0 ) col2 FROM tab1 AS cor0
----
-50
-84
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5808
SELECT ALL 55 / + 29 + - + ( col0 ) col2 FROM tab1 AS cor0
----
-50
-84
-90

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 61 <> - - ( - - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5810
SELECT ALL col1 * - CAST( - - col1 AS SIGNED ) FROM tab0 AS cor0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-5810
SELECT ALL col1 * - CAST ( - - col1 AS INTEGER ) FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # DIV for integer division: 
query I rowsort label-5811
SELECT DISTINCT - 71 DIV + col1 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-5811
SELECT DISTINCT - 71 / + col1 FROM tab2
----
-1
0

query II rowsort
SELECT DISTINCT + col2, + col2 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE NOT - - ( col1 ) + - col0 + + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5813
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT - - ( col1 ) + - col0 + + col0 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 54 >= NULL
----

query II rowsort
SELECT ( + - 29 ), 30 AS col1 FROM tab0
----
-29
30
-29
30
-29
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5816
SELECT DISTINCT - - col0 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5816
SELECT DISTINCT - - col0 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT col2, 63 FROM tab0 AS cor0
----
10
63
47
63
99
63

onlyif mysql # DIV for integer division: 
query I rowsort label-5818
SELECT + col1 DIV - + 66 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5818
SELECT + col1 / - + 66 AS col2 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT ALL - + COUNT( - col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5819
SELECT ALL - + COUNT ( - col0 ) FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5820
SELECT DISTINCT + 42 DIV - col2 + col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5820
SELECT DISTINCT + 42 / - col2 + col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT - + 4 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-4

query I rowsort
SELECT - 95 + - col1 * + col0 FROM tab1
----
-4372
-520
-809

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT + 75 + + SUM( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-5823
SELECT + 75 + + SUM ( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
231

query I rowsort
SELECT - col2 + - - col1 FROM tab2 cor0
----
28
37
9

query I rowsort
SELECT col1 * + 71 + + col0 FROM tab0 AS cor0
----
1578
168
5766

query I rowsort
SELECT + - col1 + 88 FROM tab2 cor0
----
11
21
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5827
SELECT ( 71 ) + + - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-16
-26
56

skipif mysql # not compatible
query I rowsort label-5827
SELECT ( 71 ) + + - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-16
-26
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5828
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND NULL NOT BETWEEN + CAST( - col2 AS SIGNED ) AND + + col2 + + + col2
----

skipif mysql # not compatible
query III rowsort label-5828
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND NULL NOT BETWEEN + CAST ( - col2 AS INTEGER ) AND + + col2 + + + col2
----

query I rowsort
SELECT col2 + + - col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 + - - 39 IS NULL
----

query II rowsort
SELECT ALL - 35 + - col2, 47 + 83 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( - 6 ) FROM tab1
----
-6
-6
-6

query I rowsort
SELECT ( + 50 ) * col0 * col0 AS col0 FROM tab2
----
105800
204800
281250

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT - - 59 - + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-5834
SELECT - - 59 - + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
62

query I rowsort
SELECT ALL - ( + + col2 ) - + + col2 + 69 FROM tab2 AS cor0
----
-11
-47
23

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 AS cor0 WHERE NOT - 98 + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5837
SELECT ALL - CAST( NULL AS DECIMAL ) * 40 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL - CAST ( NULL AS REAL ) * 40 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 * + 37 col0 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
-2405
-2405
-2405

query I rowsort
SELECT DISTINCT 86 * + + col0 FROM tab0 AS cor0
----
1290
7482
8342

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + col2 NOT BETWEEN ( 79 * col2 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT 58 + ( + col2 ) IN ( col1 )
----
3

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT 58 + ( + col2 ) IN ( col1 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT + COUNT( ALL col0 ) AS col1 FROM tab1 WHERE NOT ( - 68 * - col1 ) = - ( + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-5842
SELECT + COUNT ( ALL col0 ) AS col1 FROM tab1 WHERE NOT ( - 68 * - col1 ) = - ( + col2 )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 + + col0 * col0 col2 FROM tab0
----
146
7490
9330

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE NOT NULL > ( - col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col0 ) NOT BETWEEN ( col1 ) AND - ( + col0 )
----

query I rowsort
SELECT + ( + col0 ) FROM tab2 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT - COUNT( * ) + + 48 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-5847
SELECT - COUNT ( * ) + + 48 FROM tab0
----
45

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + 7 * - col2 + - col1 * col1 AS col2 FROM tab1
----
-2685
-438
-868

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT - ( COUNT( * ) ) + - COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-5850
SELECT - ( COUNT ( * ) ) + - COUNT ( * ) FROM tab2
----
-6

query I rowsort
SELECT ALL 16 + + 14 FROM tab0 WHERE NULL IS NULL
----
30
30
30

query I rowsort
SELECT - col1 * 49 - col2 FROM tab2 WHERE NOT 98 + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 6 NOT BETWEEN ( ( col2 ) - - col2 ) AND ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 + col0 * col1 FROM tab1
----
4368
510
765

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT COUNT( DISTINCT ( col1 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5855
SELECT COUNT ( DISTINCT ( col1 ) ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5856
SELECT + col2 DIV - col1 + col2 * 97 FROM tab0
----
4559
9504
970

skipif mysql # not compatible
query I rowsort label-5856
SELECT + col2 / - col1 + col2 * 97 FROM tab0
----
4559
9504
970

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT - 1 + COUNT( * ) AS col2 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-5857
SELECT - 1 + COUNT ( * ) AS col2 FROM tab0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT + COUNT( * ) * COUNT( * ) + - COUNT( * ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-5858
SELECT + COUNT ( * ) * COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5859
SELECT DISTINCT + 16 + MAX( ALL + col2 + + col2 DIV + 34 ) DIV - COUNT( * ) FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-5859
SELECT DISTINCT + 16 + MAX ( ALL + col2 + + col2 / + 34 ) / - COUNT ( * ) FROM tab0
----
-17

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> + 44 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT ALL AVG ( ALL 21 ) + - MAX( ALL col2 ) FROM tab0 AS cor0 WHERE 68 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5861
SELECT ALL AVG ( ALL 21 ) + - MAX ( ALL col2 ) FROM tab0 AS cor0 WHERE 68 IS NULL
----
NULL

query I rowsort
SELECT - ( 44 ) + + col1 AS col1 FROM tab2 AS cor0
----
23
33
7

query I rowsort
SELECT col0 + + 37 FROM tab1 AS cor0
----
122
128
88

onlyif mysql # DIV for integer division: 
query I rowsort label-5864
SELECT + col2 DIV + col1 + - col2 col1 FROM tab0 AS cor0
----
-10
-47
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5864
SELECT + col2 / + col1 + - col2 col1 FROM tab0 AS cor0
----
-10
-47
0

query I rowsort
SELECT DISTINCT 48 FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NOT ( NULL ) BETWEEN + 30 AND + 68 / 42
----

query I rowsort
SELECT + 44 * + col0 FROM tab1 AS cor0
----
2244
3740
4004

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT DISTINCT - COUNT( * ) * - 8 AS col0 FROM tab0 AS cor0 WHERE NOT + 56 + col2 * - 30 IN ( col2 )
----
24

skipif mysql # not compatible
query I rowsort label-5867
SELECT DISTINCT - COUNT ( * ) * - 8 AS col0 FROM tab0 AS cor0 WHERE NOT + 56 + col2 * - 30 IN ( col2 )
----
24

query I rowsort
SELECT - col1 * 95 FROM tab1 cor0
----
-1330
-4465
-475

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT + + MIN( - 59 ) * 59 AS col1 FROM tab2 AS cor0
----
-3481

skipif mysql # not compatible
query I rowsort label-5869
SELECT + + MIN ( - 59 ) * 59 AS col1 FROM tab2 AS cor0
----
-3481

query I rowsort
SELECT ( 9 ) * + col0 AS col2 FROM tab1 cor0
----
459
765
819

onlyif mysql # DIV for integer division: 
query I rowsort label-5871
SELECT - col0 * col0 - - col2 DIV 86 FROM tab0 AS cor0
----
-225
-7569
-9408

skipif mysql # not compatible
query I rowsort label-5871
SELECT - col0 * col0 - - col2 / 86 FROM tab0 AS cor0
----
-225
-7569
-9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 - col2 * + 46 col1 FROM tab2 AS cor0
----
-1046
-1828
-2656

onlyif mysql # DIV for integer division: 
query I rowsort label-5873
SELECT col2 DIV col0 - col1 FROM tab0 AS cor0
----
-21
-78
0

skipif mysql # not compatible
query I rowsort label-5873
SELECT col2 / col0 - col1 FROM tab0 AS cor0
----
-21
-78
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5874
SELECT + 71 - - col1 DIV col0 FROM tab1
----
71
71
71

skipif mysql # not compatible
query I rowsort label-5874
SELECT + 71 - - col1 / col0 FROM tab1
----
71
71
71

query III rowsort
SELECT * FROM tab1 WHERE NULL <> 22
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5876
SELECT ALL 62 DIV - col1 - col1 DIV + col2 FROM tab2
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-5876
SELECT ALL 62 / - col1 - col1 / + col2 FROM tab2
----
-1
-1
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - - col1 + - 24 col2 FROM tab0
----
72
74
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5878
SELECT DISTINCT + 34 * - col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE - col2 * + col1 BETWEEN + 68 - col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5878
SELECT DISTINCT + 34 * - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE - col2 * + col1 BETWEEN + 68 - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT ALL - 76 - COUNT( * ) FROM tab2
----
-79

skipif mysql # not compatible
query I rowsort label-5879
SELECT ALL - 76 - COUNT ( * ) FROM tab2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT ALL - COUNT( * ) * - COUNT( * ) - 27 * - 38 FROM tab2
----
1035

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL - COUNT ( * ) * - COUNT ( * ) - 27 * - 38 FROM tab2
----
1035

query I rowsort
SELECT + 89 + - 52 AS col1 FROM tab1 WHERE + 43 / col0 + - 30 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > - 44
----

query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) BETWEEN col0 * col0 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5884
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + - col1 IN ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-5884
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + - col1 IN ( + col0 )
----

query I rowsort
SELECT + + 68 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 ) BETWEEN col2 * col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 73 * - col0 AS col2 FROM tab0
----
1095
6351
7081

query I rowsort
SELECT ALL + 39 * + col2 AS col0 FROM tab0
----
1833
3861
390

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5889
SELECT ALL * FROM tab2 WHERE 43 <= CAST( col0 AS SIGNED ) * 0
----

skipif mysql # not compatible
query III rowsort label-5889
SELECT ALL * FROM tab2 WHERE 43 <= CAST ( col0 AS INTEGER ) * 0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5890
SELECT ALL - CAST( NULL AS DECIMAL ) AS col1, 33 + + COUNT( * ) FROM tab2
----
NULL
36

skipif mysql # not compatible
query II rowsort label-5890
SELECT ALL - CAST ( NULL AS REAL ) AS col1, 33 + + COUNT ( * ) FROM tab2
----
NULL
36

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 + - + col0 + col0 * + 1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT DISTINCT + - MAX( ALL + 32 ) col2 FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5892
SELECT DISTINCT + - MAX ( ALL + 32 ) col2 FROM tab1 AS cor0
----
-32

query I rowsort
SELECT DISTINCT AVG ( ALL + col0 ) FROM tab1 AS cor0 WHERE NULL > + col0
----
NULL

query II rowsort
SELECT - - col2, col2 AS col1 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT ALL - 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-5895
SELECT ALL - COUNT ( + col1 ) col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT DISTINCT 24 * + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-5896
SELECT DISTINCT 24 * + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT ALL - - SUM( ALL ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5897
SELECT ALL - - SUM ( ALL ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query II rowsort label-5898
SELECT ALL - + 29, - COUNT( * ) + + 58 AS col0 FROM tab0 AS cor0
----
-29
55

skipif mysql # not compatible
query II rowsort label-5898
SELECT ALL - + 29, - COUNT ( * ) + + 58 AS col0 FROM tab0 AS cor0
----
-29
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT ALL COUNT( * ) + + 63 * - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - 48 + + col1 <= col1
----
-186

skipif mysql # not compatible
query I rowsort label-5899
SELECT ALL COUNT ( * ) + + 63 * - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - 48 + + col1 <= col1
----
-186

query II rowsort
SELECT DISTINCT 94, + col2 + - col2 AS col1 FROM tab2 AS cor0
----
94
0

query I rowsort
SELECT DISTINCT 79 AS col1 FROM tab0 cor0
----
79

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col1 AS col2, 9 FROM tab1 AS cor0
----
-14
9
-47
9
-5
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 86 <> - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 44 FROM tab1 WHERE ( - 75 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > ( + - 6 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( - + col0 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 51 + + 20 AS col2 FROM tab0
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT ALL + 99 * COUNT( * ) FROM tab2
----
297

skipif mysql # not compatible
query I rowsort label-5909
SELECT ALL + 99 * COUNT ( * ) FROM tab2
----
297

query I rowsort
SELECT ALL + col1 - col1 FROM tab1 WHERE NOT - col2 * + col2 < ( + 89 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 75 col2 FROM tab1
----
122
80
89

query I rowsort
SELECT 92 * - + ( + 60 ) AS col1 FROM tab0
----
-5520
-5520
-5520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5913
SELECT ALL - col0 + - col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( - - CAST( 12 AS SIGNED ) * 80 <> - col1 )
----

skipif mysql # not compatible
query I rowsort label-5913
SELECT ALL - col0 + - col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( - - CAST ( 12 AS INTEGER ) * 80 <> - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT - COUNT( * ) * 68 AS col2 FROM tab1 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-5914
SELECT - COUNT ( * ) * 68 AS col2 FROM tab1 AS cor0
----
-204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col1 FROM tab0 cor0 WHERE - col0 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT ALL 89 / + col1 AS col0 FROM tab2 WHERE ( - 98 * + col2 + - + col1 ) > - col1 / + col0
----

query I rowsort
SELECT ALL + 12 + - - col0 FROM tab0
----
109
27
99

query I rowsort
SELECT col0 + + + col0 + + 47 FROM tab1
----
149
217
229

query I rowsort
SELECT + col0 + + - col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5920
SELECT + ( - 9 ) + ( + - col1 ) + - - CAST( ( 85 ) AS SIGNED ) AS col0 FROM tab2
----
-1
25
9

skipif mysql # not compatible
query I rowsort label-5920
SELECT + ( - 9 ) + ( + - col1 ) + - - CAST ( ( 85 ) AS INTEGER ) AS col0 FROM tab2
----
-1
25
9

query I rowsort
SELECT + - col0 + col1 + col2 FROM tab1 AS cor0
----
-21
24
59

query I rowsort
SELECT - 15 + + - col1 AS col1 FROM tab0 AS cor0
----
-16
-36
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5923
SELECT ALL - col0 - ( + 38 ) + col2 + - col1 DIV + col1 col1 FROM tab1 AS cor0
----
-62
-65
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5923
SELECT ALL - col0 - ( + 38 ) + col2 + - col1 / + col1 col1 FROM tab1 AS cor0
----
-62
-65
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT DISTINCT + MIN( - - col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5924
SELECT DISTINCT + MIN ( - - col1 ) FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT DISTINCT SUM( ALL 16 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
48

skipif mysql # not compatible
query I rowsort label-5925
SELECT DISTINCT SUM ( ALL 16 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
48

query I rowsort
SELECT ALL - 77 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT ALL + COUNT( ALL - + col1 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5927
SELECT ALL + COUNT ( ALL - + col1 ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5928
SELECT DISTINCT + COUNT( * ) AS col0, + 21 col1 FROM tab2 AS cor0
----
3
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5928
SELECT DISTINCT + COUNT ( * ) AS col0, + 21 col1 FROM tab2 AS cor0
----
3
21

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5929
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5929
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) - col1 IS NULL
----

query I rowsort
SELECT ALL ( - ( + col2 ) ) FROM tab2 WHERE + 48 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + col0 + 92 - - col0 - + col0 * + 41 AS col1 FROM tab0
----
-3301
-3691
-493

query III rowsort
SELECT * FROM tab2 WHERE - + col2 NOT IN ( + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 81, + col2 FROM tab1
----
81
59
81
68
81
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT ALL - COUNT( + col2 ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5934
SELECT ALL - COUNT ( + col2 ) col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col2 * - ( col1 ) AS col2 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT - 13 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-13

query II rowsort
SELECT ALL 27, + 57 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
27
57
27
57
27
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT - COUNT( DISTINCT col2 ) col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5938
SELECT - COUNT ( DISTINCT col2 ) col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT DISTINCT + + MAX( ALL - - col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5939
SELECT DISTINCT + + MAX ( ALL - - col2 ) FROM tab1 AS cor0
----
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col0 / - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT DISTINCT COUNT( * ) + - SUM( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 * + + 24 BETWEEN + 13 + - 80 AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5941
SELECT DISTINCT COUNT ( * ) + - SUM ( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 * + + 24 BETWEEN + 13 + - 80 AND ( NULL )
----
NULL

query I rowsort
SELECT DISTINCT 94 + - col1 FROM tab2
----
17
27
43

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN 0 AND + col1
----

query I rowsort
SELECT ALL 39 * - + col1 FROM tab1
----
-1833
-195
-546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 82 * 95 * + + col1 * col0 col0, col2 FROM tab1
----
3310750
59
33317830
68
5562060
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 * 66 col1 FROM tab1
----
4752
4752
4752

query I rowsort
SELECT DISTINCT 54 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL OR NULL IS NOT NULL
----

query I rowsort
SELECT col2 * + + 90 * col0 FROM tab2
----
230400
391500
95220

query I rowsort
SELECT - + col0 * + col2 + + 26 + - + 84 + + + 1 * + col1 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IS NULL OR NOT + col2 NOT IN ( - col2 * + col2, col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5952
SELECT ALL + 95 + - + 23 DIV + - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
97

skipif mysql # not compatible
query I rowsort label-5952
SELECT ALL + 95 + - + 23 / + - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT DISTINCT - 10 - + - COUNT( * ) FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT - 10 - + - COUNT ( * ) FROM tab0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT DISTINCT - MAX( ALL - + 10 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
10

skipif mysql # not compatible
query I rowsort label-5954
SELECT DISTINCT - MAX ( ALL - + 10 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
10

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 63 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5956
SELECT - col1 * col1 * col0 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5956
SELECT - col1 * col1 * col0 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 93 - - col0 + + - col2 FROM tab2 cor0
----
110
116
117

query I rowsort
SELECT 78 - - + col0 FROM tab1 AS cor0
----
129
163
169

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5959
SELECT * FROM tab2 WHERE NOT ( + 13 + - CAST( + + col2 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5959
SELECT * FROM tab2 WHERE NOT ( + 13 + - CAST ( + + col2 AS INTEGER ) ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 70 col2, ( + + 65 ) FROM tab0
----
-70
65

query I rowsort
SELECT DISTINCT - - col0 * 83 FROM tab1 AS cor0
----
4233
7055
7553

query II rowsort
SELECT - 42 AS col0, - col2 + + col2 + 97 AS col2 FROM tab2 AS cor0
----
-42
97
-42
97
-42
97

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * - ( + col0 ) + - 92 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5964
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) DIV + 14 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-5964
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) / + 14 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5965
SELECT ALL - COUNT( * ), 91 AS col0 FROM tab2 AS cor0
----
-3
91

skipif mysql # not compatible
query II rowsort label-5965
SELECT ALL - COUNT ( * ), 91 AS col0 FROM tab2 AS cor0
----
-3
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 >= ( + 25 )
----
15
81
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5967
SELECT CAST( NULL AS SIGNED ) AS col2, COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5967
SELECT CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5968
SELECT ALL + CAST( + ( + col1 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5968
SELECT ALL + CAST ( + ( + col1 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-5969
SELECT ALL COUNT( * ) AS col2, ( - 4 ) FROM tab0 AS cor0
----
3
-4

skipif mysql # not compatible
query II rowsort label-5969
SELECT ALL COUNT ( * ) AS col2, ( - 4 ) FROM tab0 AS cor0
----
3
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5970
SELECT ALL - ( + CAST( - + COUNT( * ) AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5970
SELECT ALL - ( + CAST ( - + COUNT ( * ) AS INTEGER ) ) FROM tab2
----
3

query I rowsort
SELECT + 26 * - - col0 AS col0 FROM tab2 AS cor0
----
1196
1664
1950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 * + col2 + 75 + + col2 + + + col1 + - col0 * - col1 col1 FROM tab2
----
2817
5680
6037

query I rowsort
SELECT col0 * + - col2 AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5974
SELECT DISTINCT + + MIN( - - col2 ) DIV - - 48 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5974
SELECT DISTINCT + + MIN ( - - col2 ) / - - 48 FROM tab1 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - col2 + - + col1 * + ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col2 AS col0, + ( - + col0 ) col2, - - col1 AS col0 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN - 98 AND col0
----

query I rowsort
SELECT ALL + 74 FROM tab0 AS cor0 WHERE NOT ( + col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT COUNT( * ) * - - MAX( + col1 ) * - COUNT( * ) FROM tab1
----
-423

skipif mysql # not compatible
query I rowsort label-5978
SELECT COUNT ( * ) * - - MAX ( + col1 ) * - COUNT ( * ) FROM tab1
----
-423

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5979
SELECT + 75 DIV + - COUNT( * ) FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-5979
SELECT + 75 / + - COUNT ( * ) FROM tab0
----
-25

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col0 * - col1 + - - 35 * + 8 NOT BETWEEN col0 AND - - 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NULL NOT BETWEEN - col2 AND ( NULL )
----

query I rowsort
SELECT + 30 + + - col1 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-51
29
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT + 62 * + COUNT( * ) FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-5983
SELECT + 62 * + COUNT ( * ) FROM tab0
----
186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5984
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - + COUNT( * ) + + - 22 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5984
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + + - 22 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query II rowsort
SELECT col1, + 26 * + col2 FROM tab2 AS cor0
----
51
598
67
1508
77
1040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5986
SELECT ALL + CAST( 51 AS SIGNED ) AS col0 FROM tab2 cor0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-5986
SELECT ALL + CAST ( 51 AS INTEGER ) AS col0 FROM tab2 cor0
----
51
51
51

query II rowsort
SELECT col2 AS col0, + 61 FROM tab0 AS cor0
----
10
61
47
61
99
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT - SUM( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-5988
SELECT - SUM ( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT ALL + SUM( ALL - 79 ) FROM tab2
----
-237

skipif mysql # not compatible
query I rowsort label-5989
SELECT ALL + SUM ( ALL - 79 ) FROM tab2
----
-237

query I rowsort
SELECT ALL ( + + col1 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5991
SELECT ALL - 32 DIV + 11 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-5991
SELECT ALL - 32 / + 11 FROM tab1
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT DISTINCT + - MIN( ALL col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5992
SELECT DISTINCT + - MIN ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT ALL COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( + - col0 + - - 81 IS NULL )
----
9

skipif mysql # not compatible
query I rowsort label-5993
SELECT ALL COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( + - col0 + - - 81 IS NULL )
----
9

query I rowsort
SELECT + col0 + - + 35 AS col1 FROM tab0 cor0
----
-20
52
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT COUNT( * ) - 27 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-5995
SELECT COUNT ( * ) - 27 FROM tab0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5996
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IN ( CAST( 3 AS SIGNED ), 74, - 39 )
----

skipif mysql # not compatible
query IIIIII rowsort label-5996
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IN ( CAST ( 3 AS INTEGER ), 74, - 39 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT DISTINCT + COUNT( * ) * + 53 FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-5997
SELECT DISTINCT + COUNT ( * ) * + 53 FROM tab1 AS cor0
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5998
SELECT - col2 * + + col2 - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5998
SELECT - col2 * + + col2 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 96 FROM tab1 AS cor0 WHERE NOT col2 = - col0
----
96
96
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6000
SELECT CAST( + 35 AS SIGNED ) * COUNT( ALL col0 ) - 63 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-6000
SELECT CAST ( + 35 AS INTEGER ) * COUNT ( ALL col0 ) - 63 FROM tab0 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT COUNT( * ) * ( - - 67 ) FROM tab1 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-6001
SELECT COUNT ( * ) * ( - - 67 ) FROM tab1 AS cor0
----
201

query II rowsort
SELECT + 30 * + + 29 AS col1, 86 + + col2 AS col1 FROM tab1 AS cor0
----
870
145
870
154
870
182

query I rowsort
SELECT DISTINCT + - col1 * + 32 FROM tab2 AS cor0
----
-1632
-2144
-2464

query I rowsort
SELECT ALL + 45 * col0 AS col2 FROM tab1 AS cor0 WHERE NOT col2 * + ( - - 61 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6005
SELECT col0 * CAST( + 7 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
322
448
525

skipif mysql # not compatible
query I rowsort label-6005
SELECT col0 * CAST ( + 7 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
322
448
525

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT MAX( - 48 ) FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-6006
SELECT MAX ( - 48 ) FROM tab0
----
-48

query I rowsort
SELECT DISTINCT 56 AS col2 FROM tab2, tab0 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-6008
SELECT COUNT( * ), 67 AS col2 FROM tab2
----
3
67

skipif mysql # not compatible
query II rowsort label-6008
SELECT COUNT ( * ), 67 AS col2 FROM tab2
----
3
67

query I rowsort
SELECT ALL + - col0 AS col1 FROM tab0 AS cor0 WHERE NULL IN ( col2, 4, 53, + 24 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6010
SELECT DISTINCT - + 47 DIV + - col1 FROM tab1 AS cor0
----
1
3
9

skipif mysql # not compatible
query I rowsort label-6010
SELECT DISTINCT - + 47 / + - col1 FROM tab1 AS cor0
----
1
3
9

query II rowsort
SELECT ALL - col2 AS col2, 14 FROM tab0 AS cor0
----
-10
14
-47
14
-99
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6012
SELECT MIN( DISTINCT + col2 ) AS col2 FROM tab0 cor0 WHERE NOT NULL NOT IN ( ( + CAST( NULL AS SIGNED ) ) * + col0 / + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6012
SELECT MIN ( DISTINCT + col2 ) AS col2 FROM tab0 cor0 WHERE NOT NULL NOT IN ( ( + CAST ( NULL AS INTEGER ) ) * + col0 / + col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6013
SELECT ALL + - ( + - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL + - ( + - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6014
SELECT - - 23 FROM tab2 WHERE NOT NULL >= + 88 / - CAST( NULL AS SIGNED ) - + col2 * - + col0
----

skipif mysql # not compatible
query I rowsort label-6014
SELECT - - 23 FROM tab2 WHERE NOT NULL >= + 88 / - CAST ( NULL AS INTEGER ) - + col2 * - + col0
----

query I rowsort
SELECT ALL ( + ( - ( - - col1 ) ) ) * - - col1 + + 26 FROM tab2
----
-2575
-4463
-5903

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT 44 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-6016
SELECT 44 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-6017
SELECT + 0 * - 37 + + COUNT( ALL + 31 ) AS col2, - ( COUNT( * ) ) FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-6017
SELECT + 0 * - 37 + + COUNT ( ALL + 31 ) AS col2, - ( COUNT ( * ) ) FROM tab2 AS cor0
----
3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6018
SELECT DISTINCT 22 + + 65 + ( - - col0 ) DIV + col0 + - col0 FROM tab2 cor0
----
13
24
42

skipif mysql # not compatible
query I rowsort label-6018
SELECT DISTINCT 22 + + 65 + ( - - col0 ) / + col0 + - col0 FROM tab2 cor0
----
13
24
42

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * - - 26 + - col2 + col0 * - - col0 FROM tab1 AS cor0
----
1179
4956
5847

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 / + col2 BETWEEN col2 AND + col1 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT ALL COUNT( * ) AS col0 FROM tab2 WHERE + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE + col0 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE NOT + - col2 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-6025
SELECT DISTINCT - MIN( ALL + col1 ) + - + 37 AS col0, MAX( ALL + col2 ) FROM tab2
----
-88
58

skipif mysql # not compatible
query II rowsort label-6025
SELECT DISTINCT - MIN ( ALL + col1 ) + - + 37 AS col0, MAX ( ALL + col2 ) FROM tab2
----
-88
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6026
SELECT + 31 + + + 54 + - col1 DIV - + ( + - 32 ) FROM tab0
----
83
85
85

skipif mysql # not compatible
query I rowsort label-6026
SELECT + 31 + + + 54 + - col1 / - + ( + - 32 ) FROM tab0
----
83
85
85

query I rowsort
SELECT DISTINCT col1 * + - 69 AS col1 FROM tab0
----
-1449
-5589
-69

query I rowsort
SELECT DISTINCT - col2 - + 33 FROM tab0
----
-132
-43
-80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col0 < + 36 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE col2 / - + col2 - - col0 NOT IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( - + col1 ) * - col1 FROM tab2 cor0
----
2601
4489
5929

query I rowsort
SELECT DISTINCT - col2 - + col0 + 87 FROM tab1 AS cor0
----
-57
-60
-72

query I rowsort
SELECT DISTINCT + 6 + - col0 AS col2 FROM tab1 AS cor0
----
-45
-79
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT ALL - 67 + - - COUNT( * ) AS col2 FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-6034
SELECT ALL - 67 + - - COUNT ( * ) AS col2 FROM tab0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT ALL + COUNT( * ) FROM tab1 WHERE ( NOT ( NOT - - col1 * - - col2 - - 78 / + + col1 = NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL + COUNT ( * ) FROM tab1 WHERE ( NOT ( NOT - - col1 * - - col2 - - 78 / + + col1 = NULL ) )
----
0

query I rowsort
SELECT ( - 56 ) + + + 17 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query II rowsort
SELECT DISTINCT - col0 AS col2, - col2 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

query II rowsort
SELECT ALL col0 AS col1, - 94 FROM tab2 cor0
----
46
-94
64
-94
75
-94

query I rowsort
SELECT + 99 * - col2 AS col0 FROM tab2 cor0
----
-2277
-3960
-5742

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT ALL + - MIN( ALL ( + col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6040
SELECT ALL + - MIN ( ALL ( + col1 ) ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6041
SELECT - CAST( + SUM( - col0 ) AS SIGNED ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-6041
SELECT - CAST ( + SUM ( - col0 ) AS INTEGER ) AS col0 FROM tab1
----
227

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 BETWEEN 57 * + + 13 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6043
SELECT 76 DIV COUNT( - - 77 ) AS col0 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-6043
SELECT 76 / COUNT ( - - 77 ) AS col0 FROM tab0
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + col1 col2 FROM tab0
----
-1
-441
-6561

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6045
SELECT ( CAST( NULL AS DECIMAL ) ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6045
SELECT ( CAST ( NULL AS REAL ) ) col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6046
SELECT + col2 DIV + ( col1 ) AS col2 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-6046
SELECT + col2 / + ( col1 ) AS col2 FROM tab0
----
0
0
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL > ( - col1 ) )
----

query I rowsort
SELECT DISTINCT + col2 * col0 AS col0 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query II rowsort
SELECT DISTINCT col1 + col2, + col1 FROM tab1 AS cor0
----
110
14
115
47
64
5

query I rowsort
SELECT + + col0 + + 33 AS col0 FROM tab1 AS cor0
----
118
124
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT ALL COUNT( * ) + 21 AS col1 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL COUNT ( * ) + 21 AS col1 FROM tab0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT COUNT( + 49 ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6052
SELECT COUNT ( + 49 ) FROM tab1 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 3 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - ( ( - col0 ) ) + - col1 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6055
SELECT - - 2 DIV col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6055
SELECT - - 2 / col0 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + + - col0 <= + col2 - + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT ALL COUNT( - col2 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6057
SELECT ALL COUNT ( - col2 ) AS col0 FROM tab0 cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 48 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6059
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IN ( col1, - 93 + - col1 )
----

skipif mysql # not compatible
query I rowsort label-6059
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IN ( col1, - 93 + - col1 )
----

query I rowsort
SELECT col0 * - 25 AS col0 FROM tab2 AS cor0
----
-1150
-1600
-1875

query I rowsort
SELECT - - col2 * + + col2 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT - + COUNT( * ) - - 28 AS col0 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-6062
SELECT - + COUNT ( * ) - - 28 AS col0 FROM tab0 AS cor0
----
25

query I rowsort
SELECT col1 - ( + - 53 ) + + + col1 FROM tab0
----
215
55
95

query I rowsort
SELECT + col2 - 78 * - col0 FROM tab0
----
1217
6796
7665

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6065
SELECT * FROM tab2 WHERE + - CAST( NULL AS SIGNED ) + + col2 BETWEEN ( - + col2 ) AND - - col2
----

skipif mysql # not compatible
query III rowsort label-6065
SELECT * FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) + + col2 BETWEEN ( - + col2 ) AND - - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6066
SELECT DISTINCT COUNT( * ) + - - 10 AS col1, + COUNT( * ) col2 FROM tab1
----
13
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6066
SELECT DISTINCT COUNT ( * ) + - - 10 AS col1, + COUNT ( * ) col2 FROM tab1
----
13
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6067
SELECT - 38 AS col1, + CAST( + + COUNT( * ) AS SIGNED ) + - ( COUNT( * ) ) DIV - 73 AS col0 FROM tab0, tab2 AS cor0
----
-38
9

skipif mysql # not compatible
query II rowsort label-6067
SELECT - 38 AS col1, + CAST ( + + COUNT ( * ) AS INTEGER ) + - ( COUNT ( * ) ) / - 73 AS col0 FROM tab0, tab2 AS cor0
----
-38
9

query I rowsort
SELECT 5 + + col1 + - col0 + - 93 * col0 AS col0 FROM tab0
----
-1324
-8152
-9112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 17 col0 FROM tab2 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT - - COUNT( 3 ) * ( + - ( COUNT( * ) ) ) FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6070
SELECT - - COUNT ( 3 ) * ( + - ( COUNT ( * ) ) ) FROM tab0 cor0
----
-9

query I rowsort
SELECT DISTINCT - ( col2 ) AS col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6072
SELECT ALL 27 / - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6072
SELECT ALL 27 / - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 24 * + col0 + col0 FROM tab0 WHERE NOT col0 BETWEEN col0 AND - + col1
----
-2001
-2231
-345

query III rowsort
SELECT * FROM tab0 WHERE NOT + 29 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6075
SELECT DISTINCT - CAST( 44 AS SIGNED ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-44

skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT - CAST ( 44 AS INTEGER ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-44

query I rowsort
SELECT col0 + - col0 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
0
0
0

query II rowsort
SELECT ALL - + 84, - 30 AS col1 FROM tab0 cor0
----
-84
-30
-84
-30
-84
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT DISTINCT + - MAX( DISTINCT 86 ) AS col2 FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-6078
SELECT DISTINCT + - MAX ( DISTINCT 86 ) AS col2 FROM tab1 AS cor0
----
-86

query I rowsort
SELECT AVG ( ALL - 1 ) FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6080
SELECT - - col2 AS col0, + CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
23
51
40
77
58
67

skipif mysql # not compatible
query II rowsort label-6080
SELECT - - col2 AS col0, + CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6081
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= ( col2 ) + + + col2 + - col2 + + CAST( NULL AS SIGNED ) / - + ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-6081
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= ( col2 ) + + + col2 + - col2 + + CAST ( NULL AS INTEGER ) / - + ( - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6082
SELECT + CAST( NULL AS DECIMAL ) / - COUNT( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN 16 * - 34 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6082
SELECT + CAST ( NULL AS REAL ) / - COUNT ( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN 16 * - 34 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6083
SELECT DISTINCT SUM( ALL + 31 ), + 87 AS col1 FROM tab1
----
93
87

skipif mysql # not compatible
query II rowsort label-6083
SELECT DISTINCT SUM ( ALL + 31 ), + 87 AS col1 FROM tab1
----
93
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6084
SELECT ( - 86 ) + + ( + - MAX( ALL + col1 ) ) FROM tab2
----
-163

skipif mysql # not compatible
query I rowsort label-6084
SELECT ( - 86 ) + + ( + - MAX ( ALL + col1 ) ) FROM tab2
----
-163

onlyif mysql # DIV for integer division: 
query I rowsort label-6085
SELECT 86 DIV + - col1 FROM tab0
----
-1
-4
-86

skipif mysql # not compatible
query I rowsort label-6085
SELECT 86 / + - col1 FROM tab0
----
-1
-4
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-6086
SELECT col0 DIV col0 * - col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-6086
SELECT col0 / col0 * - col1 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 + - col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 88 AS col2, + 1 FROM tab2 AS cor0
----
88
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6089
SELECT - col1 DIV + + 59 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6089
SELECT - col1 / + + 59 FROM tab2 cor0
----
-1
-1
0

query I rowsort
SELECT ALL 55 * - col1 + - 48 FROM tab2 AS cor0
----
-2853
-3733
-4283

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 8 = ( - - col0 )
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT + 63 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + + 12 col1 FROM tab1 AS cor0
----
-39
-73
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT - MIN( col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6094
SELECT - MIN ( col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL > NULL
----
NULL

query I rowsort
SELECT - + 5 + + col2 AS col2 FROM tab2 AS cor0
----
18
35
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 col1 FROM tab1 AS cor0
----
11
11
11

query I rowsort
SELECT DISTINCT + + col1 * - col0 * + col0 - + col1 FROM tab1 AS cor0
----
-36130
-36428
-389254

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col1, 66 - - col1 col2 FROM tab0
----
-15
147
-87
87
-97
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT + MAX( ALL - col0 ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-6099
SELECT + MAX ( ALL - col0 ) AS col0 FROM tab2
----
-46

query I rowsort
SELECT 84 * - col2 FROM tab1
----
-4956
-5712
-8064

query I rowsort
SELECT DISTINCT + col0 - + col1 AS col1 FROM tab2
----
-13
-5
8

query I rowsort
SELECT + 17 * - col1 - + 96 + + col2 * + col2 AS col0 FROM tab2
----
-434
195
2129

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6103
SELECT DISTINCT col0 DIV col2 * - CAST( - 59 AS SIGNED ) + - 82 + - col0 AS col1, + col2 FROM tab2
----
-10
23
-87
40
-98
58

skipif mysql # not compatible
query II rowsort label-6103
SELECT DISTINCT col0 / col2 * - CAST ( - 59 AS INTEGER ) + - 82 + - col0 AS col1, + col2 FROM tab2
----
-10
23
-87
40
-98
58

query I rowsort
SELECT 25 - + + 50 AS col0 FROM tab1
----
-25
-25
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6105
SELECT + 1 DIV + 73 - + + SUM( + - 44 ) + + - 37 - + 89 * - 47 col1 FROM tab0 cor0
----
4278

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6105
SELECT + 1 / + 73 - + + SUM ( + - 44 ) + + - 37 - + 89 * - 47 col1 FROM tab0 cor0
----
4278

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 BETWEEN ( NULL ) AND + col0 + col1
----

query I rowsort
SELECT ALL - 20 * col1 FROM tab2 cor0
----
-1020
-1340
-1540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6108
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6108
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6109
SELECT DISTINCT + + COUNT( * ) - + - 1 DIV + + 95 * 16 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT + + COUNT ( * ) - + - 1 / + + 95 * 16 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT DISTINCT ( - - COUNT( - + col1 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6110
SELECT DISTINCT ( - - COUNT ( - + col1 ) ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6111
SELECT + COUNT( * ) AS col1, - MIN( ALL - - col1 ) AS col0 FROM tab2 cor0 WHERE NOT col2 * - CAST( + + col1 AS SIGNED ) >= NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6111
SELECT + COUNT ( * ) AS col1, - MIN ( ALL - - col1 ) AS col0 FROM tab2 cor0 WHERE NOT col2 * - CAST ( + + col1 AS INTEGER ) >= NULL
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6112
SELECT - col2 * + col0 DIV - col0 AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6112
SELECT - col2 * + col0 / - col0 AS col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT - + col2 * - - col0 * - col0 FROM tab1 AS cor0
----
249696
426275
563108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6114
SELECT DISTINCT CAST( 59 AS SIGNED ) / ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6114
SELECT DISTINCT CAST ( 59 AS INTEGER ) / ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ( + 5 ) FROM tab1 cor0
----
5
5
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + + 72 * + + 65 * col1 = NULL
----

query II rowsort
SELECT ALL col1, col2 + + + col0 AS col1 FROM tab1
----
14
147
47
159
5
144

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT + MIN( ALL + - col2 ) col2 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6118
SELECT + MIN ( ALL + - col2 ) col2 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT - - ( - COUNT( * ) ) FROM tab2 WHERE NULL = - col1
----
0

skipif mysql # not compatible
query I rowsort label-6119
SELECT - - ( - COUNT ( * ) ) FROM tab2 WHERE NULL = - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT ALL + ( - + MAX( + + col1 ) ) AS col0 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6120
SELECT ALL + ( - + MAX ( + + col1 ) ) AS col0 FROM tab0 cor0
----
-81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 <= col2
----
51
14
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6122
SELECT ALL ( + + MAX( DISTINCT - + CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6122
SELECT ALL ( + + MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT ALL + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) + 1 col1 FROM tab1
----
52
86
92

query I rowsort
SELECT ALL - 39 + - - col2 AS col0 FROM tab1
----
20
29
57

onlyif mysql # DIV for integer division: 
query III rowsort label-6126
SELECT DISTINCT * FROM tab1 WHERE 38 DIV col2 * - - col0 - - col1 <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6126
SELECT DISTINCT * FROM tab1 WHERE 38 / col2 * - - col0 - - col1 <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 79 AS col0 FROM tab0 WHERE NULL = - col0
----

query I rowsort
SELECT ALL 14 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT DISTINCT + - SUM( DISTINCT + 64 ) * + COUNT( * ) FROM tab0 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-6129
SELECT DISTINCT + - SUM ( DISTINCT + 64 ) * + COUNT ( * ) FROM tab0 AS cor0
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT - MAX( DISTINCT + ( - 1 ) ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6130
SELECT - MAX ( DISTINCT + ( - 1 ) ) AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT - 59 - - - COUNT( * ) + - ( - COUNT( * ) ) * 29 * COUNT( * ) * + - 81 col0 FROM tab0 AS cor0
----
-21203

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6131
SELECT - 59 - - - COUNT ( * ) + - ( - COUNT ( * ) ) * 29 * COUNT ( * ) * + - 81 col0 FROM tab0 AS cor0
----
-21203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-51
-85
-91

query I rowsort
SELECT - col0 - + - ( + + col2 ) FROM tab2 AS cor0
----
-17
-23
-24

query II rowsort
SELECT DISTINCT col1, - 72 FROM tab1 AS cor0
----
14
-72
47
-72
5
-72

query I rowsort
SELECT + - col0 * + - col2 - - - col2 * col2 + - - col2 - - col2 * - col2 AS col1 FROM tab1 cor0
----
-13440
-1888
-2992

query II rowsort
SELECT col2 + - col0, 9 AS col1 FROM tab2
----
-17
9
-23
9
-24
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT DISTINCT - COUNT( * ) + + ( 22 ) FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-6137
SELECT DISTINCT - COUNT ( * ) + + ( 22 ) FROM tab2
----
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + - col2 AS col2, - ( - - col0 ) col0 FROM tab2
----
0
-46
0
-64
0
-75

query I rowsort
SELECT ALL - ( col0 ) - col2 AS col1 FROM tab1
----
-144
-147
-159

query II rowsort
SELECT ALL - col1 + - 79 AS col2, col1 FROM tab1
----
-126
47
-84
5
-93
14

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 64 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + - 53 * - 12, col1 FROM tab1 cor0
----
636
14
636
47
636
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6143
SELECT ALL - col1 * 44 * - + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
167508
4356
9240

skipif mysql # not compatible
query I rowsort label-6143
SELECT ALL - col1 * 44 * - + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
167508
4356
9240

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT ALL + 84 * SUM( 18 ) * + - 21 FROM tab0 AS cor0
----
-95256

skipif mysql # not compatible
query I rowsort label-6144
SELECT ALL + 84 * SUM ( 18 ) * + - 21 FROM tab0 AS cor0
----
-95256

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 WHERE NOT - + col2 BETWEEN - col2 * col1 AND - col1
----
10
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6146
SELECT ALL * FROM tab0 WHERE NOT + col1 BETWEEN - col2 AND + - CAST( - - col0 AS SIGNED ) / - + 49
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-6146
SELECT ALL * FROM tab0 WHERE NOT + col1 BETWEEN - col2 AND + - CAST ( - - col0 AS INTEGER ) / - + 49
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col1 / col1 * + + 81 < - + 76
----

query II rowsort
SELECT DISTINCT - 36 AS col0, + col2 FROM tab0 AS cor0
----
-36
10
-36
47
-36
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT + 46 * 4 * COUNT( * ) FROM tab2 AS cor0
----
552

skipif mysql # not compatible
query I rowsort label-6149
SELECT + 46 * 4 * COUNT ( * ) FROM tab2 AS cor0
----
552

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6150
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( - 3 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6150
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( - 3 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT - COUNT( ALL - 31 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6151
SELECT - COUNT ( ALL - 31 ) FROM tab2 cor0
----
-3

query I rowsort
SELECT DISTINCT + 70 * + - ( ( - col0 ) ) FROM tab1 AS cor0
----
3570
5950
6370

onlyif mysql # DIV for integer division: 
query I rowsort label-6153
SELECT ALL 36 DIV + - 55 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6153
SELECT ALL 36 / + - 55 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 + ( - col0 ) - - - col0 col1 FROM tab0 cor0
----
-204
-224
-60

query I rowsort
SELECT ALL col0 + + - 45 + - 59 FROM tab2
----
-29
-40
-58

query I rowsort
SELECT DISTINCT 73 * + col0 AS col2 FROM tab2
----
3358
4672
5475

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 15 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT + MIN( ( - 40 ) ) * - 55 AS col2 FROM tab1
----
2200

skipif mysql # not compatible
query I rowsort label-6158
SELECT + MIN ( ( - 40 ) ) * - 55 AS col2 FROM tab1
----
2200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6159
SELECT - col2 / CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6159
SELECT - col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT ALL + COUNT( ALL + 50 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6160
SELECT ALL + COUNT ( ALL + 50 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT DISTINCT COUNT( * ) + 72 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6161
SELECT DISTINCT COUNT ( * ) + 72 FROM tab1 AS cor0
----
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 21 + col0 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6163
SELECT ( - CAST( NULL AS DECIMAL ) ) - col0 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6163
SELECT ( - CAST ( NULL AS REAL ) ) - col0 col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6164
SELECT - 9 * - col0 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6164
SELECT - 9 * - col0 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col0 AS col2, + col1 AS col0 FROM tab2
----
46
51
64
77
75
67

query III rowsort
SELECT * FROM tab2 WHERE - ( - col2 ) * 24 + + - col0 > - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) + + col1 * + ( - + col0 ) * - + col2 * 34 col0 FROM tab0
----
1941555
326405
621093

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT ALL COUNT( col2 ) - - ( - + 25 ) + - 89 FROM tab2 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL COUNT ( col2 ) - - ( - + 25 ) + - 89 FROM tab2 AS cor0
----
-111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6169
SELECT DISTINCT - 65 - - + CAST( - ( + - ( - + COUNT( * ) ) ) AS SIGNED ) FROM tab1 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-6169
SELECT DISTINCT - 65 - - + CAST ( - ( + - ( - + COUNT ( * ) ) ) AS INTEGER ) FROM tab1 AS cor0
----
-68

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col1 / + col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 6 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, 52 + - ( + col2 ) * + + 97 col1 FROM tab2
----
46
-2179
64
-3828
75
-5574

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT + ( + + COUNT( * ) ) * - 6 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-6173
SELECT + ( + + COUNT ( * ) ) * - 6 FROM tab1
----
-18

query I rowsort
SELECT DISTINCT ( + - 9 ) FROM tab1 AS cor0
----
-9

query III rowsort
SELECT * FROM tab0 WHERE NOT 57 / - col2 <= + col0 + col1
----

query II rowsort
SELECT DISTINCT col1 * 2, col1 FROM tab1 cor0
----
10
5
28
14
94
47

query I rowsort
SELECT DISTINCT + col1 * - + 6 + - + col2 FROM tab1 cor0
----
-180
-350
-89

query I rowsort
SELECT col2 * col0 * - + col0 FROM tab2 AS cor0
----
-163840
-326250
-48668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6179
SELECT - MIN( ALL - - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6179
SELECT - MIN ( ALL - - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 28 * + - col0 AS col1 FROM tab2
----
-1288
-1792
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT DISTINCT + SUM( + col2 ) + - COUNT( ALL + col2 ) AS col1 FROM tab2
----
118

skipif mysql # not compatible
query I rowsort label-6181
SELECT DISTINCT + SUM ( + col2 ) + - COUNT ( ALL + col2 ) AS col1 FROM tab2
----
118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - - 98 col0 FROM tab1
----
1372
4606
490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6183
SELECT + COUNT( * ) * - + CAST( MAX( ALL col1 ) AS SIGNED ) AS col2 FROM tab0 WHERE ( + 51 ) <> col1 / + + col0 / - col0
----
-243

skipif mysql # not compatible
query I rowsort label-6183
SELECT + COUNT ( * ) * - + CAST ( MAX ( ALL col1 ) AS INTEGER ) AS col2 FROM tab0 WHERE ( + 51 ) <> col1 / + + col0 / - col0
----
-243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6184
SELECT ALL col2 + CAST( 1 AS SIGNED ) FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL col2 + CAST ( 1 AS INTEGER ) FROM tab2
----
24
41
59

onlyif mysql # DIV for integer division: 
query I rowsort label-6185
SELECT DISTINCT ( - - 73 ) DIV - col0 + + + col1 + - + col0 FROM tab0
----
-66
-96
62

skipif mysql # not compatible
query I rowsort label-6185
SELECT DISTINCT ( - - 73 ) / - col0 + + + col1 + - + col0 FROM tab0
----
-66
-96
62

query I rowsort
SELECT - col0 FROM tab0 WHERE col1 / - 23 + + 52 * - 19 <> - col0
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 49 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6188
SELECT + 37 + + - col2 DIV + + col1 AS col2 FROM tab2
----
37
37
37

skipif mysql # not compatible
query I rowsort label-6188
SELECT + 37 + + - col2 / + + col1 AS col2 FROM tab2
----
37
37
37

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 + - ( - + col2 ) <> NULL
----

query I rowsort
SELECT - - 49 + + + 95 + + col2 * col1 FROM tab2 AS cor0
----
1317
3224
4030

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT - COUNT( * ) FROM tab1 cor0 WHERE NULL <= col0
----
0

skipif mysql # not compatible
query I rowsort label-6191
SELECT - COUNT ( * ) FROM tab1 cor0 WHERE NULL <= col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6192
SELECT ALL col0 + + - 16 AS col2, + 92 DIV col1 AS col1 FROM tab0
----
-1
1
71
4
81
92

skipif mysql # not compatible
query II rowsort label-6192
SELECT ALL col0 + + - 16 AS col2, + 92 / col1 AS col1 FROM tab0
----
-1
1
71
4
81
92

query I rowsort
SELECT ALL + 66 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT + + col0 - - col2 + + col2 FROM tab2 AS cor0
----
144
191
92

onlyif mysql # aggregate syntax: 
query II rowsort label-6195
SELECT DISTINCT COUNT( col2 ) AS col1, 72 AS col2 FROM tab2 AS cor0
----
3
72

skipif mysql # not compatible
query II rowsort label-6195
SELECT DISTINCT COUNT ( col2 ) AS col1, 72 AS col2 FROM tab2 AS cor0
----
3
72

query I rowsort
SELECT ALL col1 - - 21 AS col1 FROM tab0 AS cor0
----
102
22
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6197
SELECT - - CAST( NULL AS SIGNED ) * - MAX( DISTINCT - + col0 ) * - AVG ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6197
SELECT - - CAST ( NULL AS INTEGER ) * - MAX ( DISTINCT - + col0 ) * - AVG ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6198
SELECT - SUM( + col1 ), COUNT( * ) AS col0 FROM tab0 AS cor0
----
-103
3

skipif mysql # not compatible
query II rowsort label-6198
SELECT - SUM ( + col1 ), COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-103
3

query I rowsort
SELECT - + 75 * 56 FROM tab1 cor0
----
-4200
-4200
-4200

onlyif mysql # DIV for integer division: 
query I rowsort label-6200
SELECT + - col0 DIV 48 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6200
SELECT + - col0 / 48 FROM tab0 AS cor0
----
-1
-2
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 IN ( - col1 + col1 * - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT ALL MAX( - + col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-6202
SELECT ALL MAX ( - + col1 ) AS col1 FROM tab1
----
-5

query I rowsort
SELECT + col2 * + col1 * - 87 FROM tab2
----
-102051
-267960
-338082

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6204
SELECT DISTINCT + col1 AS col0, + CAST( NULL AS SIGNED ) + 67 AS col2 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-6204
SELECT DISTINCT + col1 AS col0, + CAST ( NULL AS INTEGER ) + 67 AS col2 FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6205
SELECT ALL COUNT( * ), 86 AS col1 FROM tab0
----
3
86

skipif mysql # not compatible
query II rowsort label-6205
SELECT ALL COUNT ( * ), 86 AS col1 FROM tab0
----
3
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col0, 77 col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6207
SELECT - ( + CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6207
SELECT - ( + CAST ( NULL AS REAL ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT + - MAX( col2 ) col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6208
SELECT + - MAX ( col2 ) col0 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT - + col1 AS col1 FROM tab1 AS cor0 WHERE NOT + 50 IS NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + 75 + - col0 AS col0 FROM tab2
----
0
11
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query II rowsort
SELECT ALL - 32, col0 FROM tab0
----
-32
15
-32
87
-32
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6213
SELECT col0 DIV - ( 66 ) AS col1 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6213
SELECT col0 / - ( 66 ) AS col1 FROM tab0
----
-1
-1
0

query II rowsort
SELECT - col2 AS col1, 22 AS col2 FROM tab2 AS cor0
----
-23
22
-40
22
-58
22

onlyif mysql # DIV for integer division: 
query I rowsort label-6215
SELECT + + col2 + col1 DIV + col2 AS col1 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6215
SELECT + + col2 + col1 / + col2 AS col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6216
SELECT ALL - - col1 DIV col2 DIV col0 + + + ( + - col2 ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL - - col1 / col2 / col0 + + + ( + - col2 ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT - + 59 - COUNT( ( - col2 ) ) AS col1 FROM tab0 WHERE NULL NOT IN ( col2, col2 + col1 )
----
-59

skipif mysql # not compatible
query I rowsort label-6217
SELECT - + 59 - COUNT ( ( - col2 ) ) AS col1 FROM tab0 WHERE NULL NOT IN ( col2, col2 + col1 )
----
-59

query I rowsort
SELECT + col1 + - - 85 + + col1 FROM tab1
----
113
179
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT MAX( DISTINCT - 37 ) FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-6219
SELECT MAX ( DISTINCT - 37 ) FROM tab1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT ALL COUNT( * ) + MIN( col1 ) + + COUNT( * ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-6220
SELECT ALL COUNT ( * ) + MIN ( col1 ) + + COUNT ( * ) FROM tab2
----
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6221
SELECT + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6221
SELECT + CAST ( NULL AS REAL ) AS col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - 69 - col1 - + col0 FROM tab1
----
-134
-159
-207

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL > + ( - + 6 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT DISTINCT + COUNT( ALL + col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6224
SELECT DISTINCT + COUNT ( ALL + col2 ) AS col0 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6225
SELECT DISTINCT - 40 DIV col2 * - col2 col1 FROM tab2
----
0
23
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6225
SELECT DISTINCT - 40 / col2 * - col2 col1 FROM tab2
----
0
23
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6226
SELECT ALL + 84 FROM tab0 AS cor0 WHERE NOT NULL <> + CAST( NULL AS SIGNED ) + - col0
----

skipif mysql # not compatible
query I rowsort label-6226
SELECT ALL + 84 FROM tab0 AS cor0 WHERE NOT NULL <> + CAST ( NULL AS INTEGER ) + - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( ( + 97 ) ) IS NOT NULL
----

query II rowsort
SELECT + col1 AS col1, 42 FROM tab1 cor0
----
14
42
47
42
5
42

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < 56
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT NULL = - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6231
SELECT + + CAST( NULL AS DECIMAL ) / 53 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6231
SELECT + + CAST ( NULL AS REAL ) / 53 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * 24 * - ( - + 10 ) FROM tab0
----
20880
23280
3600

query I rowsort
SELECT ( - col0 ) * + 77 AS col2 FROM tab1
----
-3927
-6545
-7007

query I rowsort
SELECT 0 * + col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6235
SELECT ALL MIN( + col0 ) AS col0, 16 + - 84 AS col0 FROM tab1
----
51
-68

skipif mysql # not compatible
query II rowsort label-6235
SELECT ALL MIN ( + col0 ) AS col0, 16 + - 84 AS col0 FROM tab1
----
51
-68

query I rowsort
SELECT + - ( 62 ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-62
-62
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6237
SELECT DISTINCT 81 * 59 + + ( + col2 ) + + CAST( NULL AS SIGNED ) * + - col1 + col2 col2 FROM tab0 WHERE - + col0 < NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6237
SELECT DISTINCT 81 * 59 + + ( + col2 ) + + CAST ( NULL AS INTEGER ) * + - col1 + col2 col2 FROM tab0 WHERE - + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT 48 * MIN( + - col0 ) FROM tab1
----
-4368

skipif mysql # not compatible
query I rowsort label-6238
SELECT 48 * MIN ( + - col0 ) FROM tab1
----
-4368

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 * - + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN 13 AND + 29 + + - col2
----

query I rowsort
SELECT + 82 * + ( col0 ) + + 32 AS col2 FROM tab1
----
4214
7002
7494

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 40 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col1, col1 FROM tab2 cor0
----
51
51
67
67
77
77

query I rowsort
SELECT ALL 55 + - 99 AS col0 FROM tab1 AS cor0
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT + - COUNT( * ) * - ( - + 12 ) col0 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6245
SELECT + - COUNT ( * ) * - ( - + 12 ) col0 FROM tab0 AS cor0
----
-36

query I rowsort
SELECT + ( + 78 ) FROM tab1 AS cor0
----
78
78
78

query I rowsort
SELECT DISTINCT + - 31 + + col1 FROM tab0 AS cor0
----
-10
-30
50

query I rowsort
SELECT 91 - - + col0 FROM tab0
----
106
178
188

query I rowsort
SELECT DISTINCT 7 + - + 76 * 13 FROM tab1
----
-981

query I rowsort
SELECT - 42 * - col2 + 23 AS col1 FROM tab0
----
1997
4181
443

query I rowsort
SELECT col0 * 7 + col1 FROM tab1
----
371
600
684

query I rowsort
SELECT + col1 - - 79 FROM tab2 WHERE + 92 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * - 91 - - + col0 AS col1 FROM tab2
----
-4595
-6022
-6943

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT ALL - COUNT( * ) - - 72 AS col2 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-6254
SELECT ALL - COUNT ( * ) - - 72 AS col2 FROM tab1 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT DISTINCT ( - ( COUNT( * ) ) ) AS col2 FROM tab1 cor0 WHERE + col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6255
SELECT DISTINCT ( - ( COUNT ( * ) ) ) AS col2 FROM tab1 cor0 WHERE + col2 IS NOT NULL
----
-3

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - 88
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6257
SELECT - 10 + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-9
11
71

skipif mysql # not compatible
query I rowsort label-6257
SELECT - 10 + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-9
11
71

query I rowsort
SELECT 47 * - col2 AS col1 FROM tab0 AS cor0
----
-2209
-4653
-470

query I rowsort
SELECT ALL + ( 28 ) AS col1 FROM tab1
----
28
28
28

query I rowsort
SELECT DISTINCT - ( 73 ) FROM tab0
----
-73

query I rowsort
SELECT DISTINCT + + col0 * - col2 * - 95 + - col2 AS col1 FROM tab2 AS cor0
----
100487
243160
413192

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + + + col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6263
SELECT + + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6263
SELECT + + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6264
SELECT ALL * 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-6264
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * + + col2 + - + col2 FROM tab0 AS cor0
----
658
860
9504

query I rowsort
SELECT ALL + col1 * + + col0 + + 76 * + col0 FROM tab0 AS cor0
----
2355
7469
8439

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6267
SELECT ALL - COUNT( + 24 ) DIV + 94 col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6267
SELECT ALL - COUNT ( + 24 ) / + 94 col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col1 * + col1 * col1 - + col2 FROM tab0 AS cor0
----
-98
531394
9251

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT + MAX( DISTINCT - col1 ) * - + 68 AS col2 FROM tab1 AS cor0
----
340

skipif mysql # not compatible
query I rowsort label-6269
SELECT + MAX ( DISTINCT - col1 ) * - + 68 AS col2 FROM tab1 AS cor0
----
340

query I rowsort
SELECT DISTINCT + 16 AS col2 FROM tab1 WHERE NOT + col2 = col1
----
16

query I rowsort
SELECT ( + col2 ) * - - col2 AS col2 FROM tab1
----
3481
4624
9216

query II rowsort
SELECT ALL - col0 AS col2, 99 FROM tab0
----
-15
99
-87
99
-97
99

query I rowsort
SELECT 69 * + + col1 FROM tab1
----
3243
345
966

query II rowsort
SELECT + 93, + col2 FROM tab2
----
93
23
93
40
93
58

query I rowsort
SELECT DISTINCT + 95 * - - 21 AS col2 FROM tab1
----
1995

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6276
SELECT ALL * FROM tab0 WHERE ( NOT CAST( + col1 AS SIGNED ) < - 23 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6276
SELECT ALL * FROM tab0 WHERE ( NOT CAST ( + col1 AS INTEGER ) < - 23 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT - COUNT( + col1 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6277
SELECT - COUNT ( + col1 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 78 * col2 + - 64 AS col0 FROM tab1 cor0 WHERE NULL BETWEEN + 5 AND - col1
----

query I rowsort
SELECT - - ( - 98 ) FROM tab0 AS cor0
----
-98
-98
-98

query I rowsort
SELECT DISTINCT - 55 * col2 FROM tab2
----
-1265
-2200
-3190

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT ALL - COUNT( col1 ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6281
SELECT ALL - COUNT ( col1 ) col0 FROM tab1
----
-3

query I rowsort
SELECT 96 FROM tab0 WHERE NOT ( + col2 - col1 ) IS NULL
----
96
96
96

query I rowsort
SELECT + 34 * col0 + col2 FROM tab0
----
2968
3397
557

query I rowsort
SELECT ALL 76 * 55 FROM tab1
----
4180
4180
4180

query I rowsort
SELECT 59 + col2 FROM tab1 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6286
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT IN ( 66 / col1 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6286
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT IN ( 66 / col1 + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - col2 + + 34 FROM tab1
----
-25
-34
-62

query I rowsort
SELECT + col0 * col1 + 23 FROM tab2
----
2369
4951
5048

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE ( + col2 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6289
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE ( + col2 ) IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - 9 FROM tab0 WHERE ( - 94 - col1 * 80 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 89 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 + + 40 * - 60 FROM tab2
----
-2325
-2336
-2354

query I rowsort
SELECT col2 * - 33 FROM tab2
----
-1320
-1914
-759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col2 col2 FROM tab2
----
-1600
-3364
-529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6295
SELECT - CAST( NULL AS SIGNED ) * 22 + col1 / col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6295
SELECT - CAST ( NULL AS INTEGER ) * 22 + col1 / col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 79 col1 FROM tab1
----
-4029
-6715
-7189

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT DISTINCT COUNT( ALL 17 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6297
SELECT DISTINCT COUNT ( ALL 17 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT COUNT( * ) FROM tab1 WHERE NOT ( 46 ) <= + col0
----
0

skipif mysql # not compatible
query I rowsort label-6298
SELECT COUNT ( * ) FROM tab1 WHERE NOT ( 46 ) <= + col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6299
SELECT ALL 6 DIV + 14 + - 13 AS col2 FROM tab1
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL 6 / + 14 + - 13 AS col2 FROM tab1
----
-13
-13
-13

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 ) = + 33 - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 * - col0 + + 37 FROM tab1 WHERE NOT - 57 NOT IN ( col2 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT MAX( 38 ) AS col1 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-6302
SELECT MAX ( 38 ) AS col1 FROM tab0
----
38

query I rowsort
SELECT - col1 - - 96 AS col1 FROM tab2
----
19
29
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT ALL - SUM( ALL - col2 ) * - 26 FROM tab2
----
-3146

skipif mysql # not compatible
query I rowsort label-6304
SELECT ALL - SUM ( ALL - col2 ) * - 26 FROM tab2
----
-3146

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 64 - - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 col2 FROM tab2 WHERE ( - col2 ) - col1 IS NULL
----

query I rowsort
SELECT ALL + col0 * - 76 AS col0 FROM tab1
----
-3876
-6460
-6916

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT COUNT( * ) + + COUNT( ALL 22 ) FROM tab0 WHERE NOT + 0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6308
SELECT COUNT ( * ) + + COUNT ( ALL 22 ) FROM tab0 WHERE NOT + 0 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE - 0 * + col1 + - 3 * col2 BETWEEN NULL AND 55
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6311
SELECT DISTINCT 86 DIV + 39 - col1 AS col1 FROM tab2 AS cor0
----
-49
-65
-75

skipif mysql # not compatible
query I rowsort label-6311
SELECT DISTINCT 86 / + 39 - col1 AS col1 FROM tab2 AS cor0
----
-49
-65
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT DISTINCT COUNT( * ) col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6312
SELECT DISTINCT COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col0 / + col2 <> ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT ALL COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6314
SELECT ALL COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT 20 * col0 FROM tab0 AS cor0
----
1740
1940
300

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT ALL + COUNT( DISTINCT - 99 ) col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6316
SELECT ALL + COUNT ( DISTINCT - 99 ) col2 FROM tab0
----
1

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < 49 + ( col1 ) * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT ALL + 64 * - COUNT( * ) FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL + 64 * - COUNT ( * ) FROM tab2
----
-192

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NOT 88 IS NOT NULL
----

query I rowsort
SELECT 11 * + col1 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN col2 AND - 82
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < ( col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 <> - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT ALL + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( col2 ) / - col2 NOT BETWEEN 18 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( col2 ) / - col2 NOT BETWEEN 18 AND NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( col0 - col1 )
----

query I rowsort
SELECT - 13 * 86 AS col2 FROM tab1 AS cor0
----
-1118
-1118
-1118

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col0 + col0 * + col0 IN ( - 56 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6327
SELECT 41 DIV - col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6327
SELECT 41 / - col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT SUM( DISTINCT 10 ) * - 32 col1 FROM tab0
----
-320

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6328
SELECT SUM ( DISTINCT 10 ) * - 32 col1 FROM tab0
----
-320

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6329
SELECT DISTINCT - MIN( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6329
SELECT DISTINCT - MIN ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT DISTINCT - MAX( - col2 ) AS col0 FROM tab0 WHERE NOT - col1 * - 74 BETWEEN - col1 AND ( - col1 )
----
10

skipif mysql # not compatible
query I rowsort label-6330
SELECT DISTINCT - MAX ( - col2 ) AS col0 FROM tab0 WHERE NOT - col1 * - 74 BETWEEN - col1 AND ( - col1 )
----
10

query I rowsort
SELECT ALL - 35 * - + col1 AS col0 FROM tab0
----
2835
35
735

query I rowsort
SELECT DISTINCT - 85 * + 0 * 5 AS col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= ( 2 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6334
SELECT DISTINCT - CAST( - 0 AS SIGNED ) DIV 4 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6334
SELECT DISTINCT - CAST ( - 0 AS INTEGER ) / 4 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 95 ) <= + 23
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 38 ) / + 14 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * + 67 * + ( - col1 * - col1 ) + - col1 * - col1 FROM tab1 AS cor0
----
-10061995
-1260476
-98800

onlyif mysql # DIV for integer division: 
query I rowsort label-6338
SELECT col1 + - 68 DIV + col0 AS col2 FROM tab2
----
50
67
76

skipif mysql # not compatible
query I rowsort label-6338
SELECT col1 + - 68 / + col0 AS col2 FROM tab2
----
50
67
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT ALL - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( col0 ) >= + col2 / + col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 * col1 NOT BETWEEN ( NULL ) AND 30
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 65 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT ALL - 53 FROM tab0 WHERE ( - 29 * + col2 ) > ( - col0 - + ( + col0 + col2 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN + col2 * + col0 AND NULL
----

query I rowsort
SELECT ALL 1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6346
SELECT ALL - CAST( col2 AS SIGNED ) DIV + col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6346
SELECT ALL - CAST ( col2 AS INTEGER ) / + col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6347
SELECT + CAST( NULL AS SIGNED ) * + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6347
SELECT + CAST ( NULL AS INTEGER ) * + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6349
SELECT DISTINCT + 58 DIV - - col1 AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6349
SELECT DISTINCT + 58 / - - col1 AS col1 FROM tab2 AS cor0
----
0
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * + - col0 * col2 NOT BETWEEN col1 + col0 AND + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 65 * 0 * + 88 - col0 + + ( col1 + col0 ) * 80 AS col2 FROM tab0 AS cor0
----
7665
7743
8553

query III rowsort
SELECT * FROM tab0 cor0 WHERE 68 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6353
SELECT DISTINCT col2 + CAST( - - col2 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
1196
3120
3944

skipif mysql # not compatible
query I rowsort label-6353
SELECT DISTINCT col2 + CAST ( - - col2 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
1196
3120
3944

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT 93 - - SUM( + col0 ) AS col0 FROM tab1 AS cor0
----
320

skipif mysql # not compatible
query I rowsort label-6354
SELECT 93 - - SUM ( + col0 ) AS col0 FROM tab1 AS cor0
----
320

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( + col2 ) ) BETWEEN 31 / 41 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 + 11 + - col1 * + col0 IS NOT NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE + col0 + - col0 - + col1 * + col1 NOT IN ( - 4 * + 57 + + 26 )
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + 98 - + col0 col0 FROM tab2 AS cor0
----
-5044
-6641
-7610

onlyif mysql # DIV for integer division: 
query I rowsort label-6359
SELECT + + ( col1 ) DIV - + col1 + 52 * - col0 - + col0 AS col0 FROM tab0 AS cor0
----
-4612
-5142
-796

skipif mysql # not compatible
query I rowsort label-6359
SELECT + + ( col1 ) / - + col1 + 52 * - col0 - + col0 AS col0 FROM tab0 AS cor0
----
-4612
-5142
-796

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6360
SELECT + COUNT( * ) DIV - COUNT( * ) - + 79 FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-6360
SELECT + COUNT ( * ) / - COUNT ( * ) - + 79 FROM tab0
----
-80

query I rowsort
SELECT ALL + 79 - + + 97 AS col0 FROM tab0
----
-18
-18
-18

query I rowsort
SELECT ALL col0 - + ( + col0 ) AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = NULL AND ( - col1 IN ( 13 * + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT - COUNT( * ) FROM tab2 WHERE ( + + col1 ) >= - col1
----
-3

skipif mysql # not compatible
query I rowsort label-6364
SELECT - COUNT ( * ) FROM tab2 WHERE ( + + col1 ) >= - col1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6365
SELECT DISTINCT - col1 DIV - col2 AS col2 FROM tab1 WHERE - col0 NOT IN ( 47 DIV - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6365
SELECT DISTINCT - col1 / - col2 AS col2 FROM tab1 WHERE - col0 NOT IN ( 47 / - col1 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE + + col1 / - 1 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6367
SELECT DISTINCT col1 DIV - 14 AS col1 FROM tab1 WHERE - col2 * + + 41 * col2 NOT IN ( + 30 )
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-6367
SELECT DISTINCT col1 / - 14 AS col1 FROM tab1 WHERE - col2 * + + 41 * col2 NOT IN ( + 30 )
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT - COUNT( - + col2 ) + - + ( 72 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-6368
SELECT - COUNT ( - + col2 ) + - + ( 72 ) AS col1 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT DISTINCT - + SUM( DISTINCT col1 ) * - 47 FROM tab0 cor0
----
4841

skipif mysql # not compatible
query I rowsort label-6369
SELECT DISTINCT - + SUM ( DISTINCT col1 ) * - 47 FROM tab0 cor0
----
4841

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( - col1 * + col2 + - ( col2 ) = NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + + col2 * + col2 + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 30 * col1 FROM tab0
----
2430
30
630

query I rowsort
SELECT - + 38 FROM tab0 cor0
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT DISTINCT MAX( ALL 65 ) FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-6374
SELECT DISTINCT MAX ( ALL 65 ) FROM tab0 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT - MIN( ALL 30 ) FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-6375
SELECT - MIN ( ALL 30 ) FROM tab1 AS cor0
----
-30

query I rowsort
SELECT DISTINCT - + col1 + + 21 FROM tab1 AS cor0
----
-26
16
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 88 col2 FROM tab2 AS cor0
----
-88
-88
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6378
SELECT DISTINCT + - AVG ( DISTINCT - + col1 ) FROM tab0 WHERE NOT + - CAST( - col1 AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6378
SELECT DISTINCT + - AVG ( DISTINCT - + col1 ) FROM tab0 WHERE NOT + - CAST ( - col1 AS INTEGER ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT + COUNT( * ) + - 73 AS col1 FROM tab0
----
-70

skipif mysql # not compatible
query I rowsort label-6379
SELECT + COUNT ( * ) + - 73 AS col1 FROM tab0
----
-70

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT - col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6381
SELECT + col2 * + ( CAST( col1 AS SIGNED ) ) * col1 * ( - col1 ) * - col1 FROM tab1
----
331818308
36875
3687936

skipif mysql # not compatible
query I rowsort label-6381
SELECT + col2 * + ( CAST ( col1 AS INTEGER ) ) * col1 * ( - col1 ) * - col1 FROM tab1
----
331818308
36875
3687936

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT DISTINCT - 22 + - - MIN( - - 36 ) AS col2 FROM tab1 cor0
----
14

skipif mysql # not compatible
query I rowsort label-6382
SELECT DISTINCT - 22 + - - MIN ( - - 36 ) AS col2 FROM tab1 cor0
----
14

query I rowsort
SELECT ALL + ( col0 ) + - 38 + + ( col2 ) + - + col0 AS col1 FROM tab0
----
-28
61
9

query I rowsort
SELECT col2 + + 68 FROM tab1
----
127
136
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6385
SELECT - COUNT( * ) * CAST( - + 82 AS SIGNED ) + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
747

skipif mysql # not compatible
query I rowsort label-6385
SELECT - COUNT ( * ) * CAST ( - + 82 AS INTEGER ) + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
747

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 1 + col1 col1, - col1 AS col2 FROM tab2
----
52
-51
68
-67
78
-77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( + 84 + - col1 + - - 84 ) IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6388
SELECT col2 + col2 AS col1, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
198
NULL
20
NULL
94
NULL

skipif mysql # not compatible
query II rowsort label-6388
SELECT col2 + col2 AS col1, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
198
NULL
20
NULL
94
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( + col0 ) <> ( - col0 + + + 85 )
----

query I rowsort
SELECT ALL + col1 + + col0 * + col2 + + col1 * - - col2 FROM tab0 cor0
----
1101
4593
9703

query I rowsort
SELECT DISTINCT col1 + - - col0 + - - col0 AS col0 FROM tab2
----
143
205
217

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT DISTINCT COUNT( * ) - + COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6392
SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab1
----
0

query II rowsort
SELECT col1, + col0 - - col0 AS col1 FROM tab0
----
1
194
21
174
81
30

query I rowsort
SELECT + 18 * + 30 AS col2 FROM tab1 WHERE NULL BETWEEN + col0 AND NULL
----

query I rowsort
SELECT - col0 - - + 96 AS col0 FROM tab1
----
11
45
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT + MIN( - col1 ) col1 FROM tab1
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6396
SELECT + MIN ( - col1 ) col1 FROM tab1
----
-47

query I rowsort
SELECT DISTINCT + 64 * + ( + - col1 ) FROM tab2
----
-3264
-4288
-4928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6398
SELECT - CAST( col2 AS SIGNED ) * col2 AS col0 FROM tab1 cor0
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-6398
SELECT - CAST ( col2 AS INTEGER ) * col2 AS col0 FROM tab1 cor0
----
-3481
-4624
-9216

query II rowsort
SELECT ALL col1 AS col1, 45 FROM tab1 cor0
----
14
45
47
45
5
45

query I rowsort
SELECT DISTINCT + + 44 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
44

query I rowsort
SELECT - col2 * + 52 * - - col1 AS col1 FROM tab2
----
-160160
-202072
-60996

query I rowsort
SELECT DISTINCT + 2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6403
SELECT ALL CAST( - + 67 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL CAST ( - + 67 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-67
-67
-67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6404
SELECT MIN( CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6404
SELECT MIN ( CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 > col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 * - 1 + col0 FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT SUM( + - col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-6407
SELECT SUM ( + - col0 ) FROM tab0
----
-199

query I rowsort
SELECT col2 FROM tab2 WHERE ( + col2 ) NOT IN ( col1 )
----
23
40
58

query I rowsort
SELECT ( - 26 ) FROM tab2
----
-26
-26
-26

query I rowsort
SELECT + col2 * + 41 FROM tab2
----
1640
2378
943

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT DISTINCT - 58 * - SUM( + col0 ) FROM tab0
----
11542

skipif mysql # not compatible
query I rowsort label-6411
SELECT DISTINCT - 58 * - SUM ( + col0 ) FROM tab0
----
11542

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - - 62, + col0 * col2 + - col2 * + - 13, + + ( + 22 ) )
----

query I rowsort
SELECT + 64 * - col1 AS col1 FROM tab0
----
-1344
-5184
-64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - + col1 ) * + col1 * - col0 IN ( + - col2 * col2 * + 76 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * - 67 AS col0 FROM tab1 cor0
----
-3417
-5695
-6097

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6416
SELECT DISTINCT - col2 * + col0 * CAST( + - col0 AS SIGNED ) + col0 + + col2 DIV + col0 AS col2 FROM tab1 AS cor0
----
249748
426360
563199

skipif mysql # not compatible
query I rowsort label-6416
SELECT DISTINCT - col2 * + col0 * CAST ( + - col0 AS INTEGER ) + col0 + + col2 / + col0 AS col2 FROM tab1 AS cor0
----
249748
426360
563199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6417
SELECT - - col0 + col2 * CAST( NULL AS SIGNED ) / + 9 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6417
SELECT - - col0 + col2 * CAST ( NULL AS INTEGER ) / + 9 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6418
SELECT col1 * col2 AS col0, col2 * + col1 * 35 DIV + 1 AS col2 FROM tab1
----
1344
47040
295
10325
3196
111860

skipif mysql # not compatible
query II rowsort label-6418
SELECT col1 * col2 AS col0, col2 * + col1 * 35 / + 1 AS col2 FROM tab1
----
1344
47040
295
10325
3196
111860

query I rowsort
SELECT DISTINCT - ( col1 ) * - + 66 + + - 89 - - col2 FROM tab0 AS cor0
----
1307
5304
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT - - SUM( DISTINCT - ( - 45 ) ) - + + 59 col2 FROM tab0 cor0
----
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6420
SELECT - - SUM ( DISTINCT - ( - 45 ) ) - + + 59 col2 FROM tab0 cor0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6421
SELECT ALL + + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6421
SELECT ALL + + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 99 FROM tab0 WHERE NOT col1 + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6423
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT + col2 BETWEEN + 38 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6423
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT + col2 BETWEEN + 38 AND NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 / + 45 + + + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6425
SELECT ALL col0 DIV col1 * - col0 AS col2 FROM tab1
----
-1445
-153
-91

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL col0 / col1 * - col0 AS col2 FROM tab1
----
-1445
-153
-91

query II rowsort
SELECT ALL + ( + col0 ), col1 * - col2 + + col2 - + + col2 AS col1 FROM tab1 AS cor0
----
51
-1344
85
-295
91
-3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6427
SELECT DISTINCT + MAX( DISTINCT - 5 ) + + ( + + CAST( NULL AS SIGNED ) ) + + 99 AS col1 FROM tab0 AS cor0 WHERE - 16 >= 84 * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6427
SELECT DISTINCT + MAX ( DISTINCT - 5 ) + + ( + + CAST ( NULL AS INTEGER ) ) + + 99 AS col1 FROM tab0 AS cor0 WHERE - 16 >= 84 * + col1
----
NULL

query II rowsort
SELECT - + 49, col1 FROM tab2 AS cor0
----
-49
51
-49
67
-49
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT + 48 * + COUNT( * ) AS col1 FROM tab1 cor0
----
144

skipif mysql # not compatible
query I rowsort label-6429
SELECT + 48 * + COUNT ( * ) AS col1 FROM tab1 cor0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT COUNT( + 86 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6430
SELECT COUNT ( + 86 ) col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 * - + col1 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 + - 11 * + 54, col0 col2 FROM tab2 AS cor0
----
-536
75
-554
64
-571
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6433
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) BETWEEN NULL AND - col1 * + col1 / + + 17 + + CAST( + - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6433
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) BETWEEN NULL AND - col1 * + col1 / + + 17 + + CAST ( + - col2 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 66 ) col2 FROM tab2 AS cor0
----
66
66
66

query I rowsort
SELECT ALL - col1 + 50 FROM tab1 AS cor0
----
3
36
45

query I rowsort
SELECT - - col0 + + - col2 AS col1 FROM tab2 AS cor0
----
17
23
24

query III rowsort
SELECT * FROM tab2 WHERE col2 * + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT COUNT( * ) + - - 63 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-6438
SELECT COUNT ( * ) + - - 63 FROM tab0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT 2 * COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-6439
SELECT 2 * COUNT ( * ) FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT DISTINCT + MIN( DISTINCT col0 ) FROM tab0 WHERE NOT ( + 40 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6440
SELECT DISTINCT + MIN ( DISTINCT col0 ) FROM tab0 WHERE NOT ( + 40 ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab0 WHERE NOT ( + col0 ) <> - 68
----

query I rowsort
SELECT + col0 * 25 AS col1 FROM tab0
----
2175
2425
375

query I rowsort
SELECT - col1 * - 61 FROM tab2 cor0
----
3111
4087
4697

query I rowsort
SELECT ( - 78 ) * col2 * 95 * + + 32 - - col2 * col0 * + col0 AS col2 FROM tab0 AS cor0
----
-11134065
-22543389
-2295510

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
8

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 35 * + + 31 IS NULL
----

query I rowsort
SELECT ALL - - col2 * - ( - + col2 ) FROM tab2 AS cor0 WHERE NOT - 94 IS NULL
----
1600
3364
529

query II rowsort
SELECT ALL col0 / 90, col1 / + col0 * - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( col0 )
----

query I rowsort
SELECT DISTINCT 42 * - + col0 AS col0 FROM tab0 cor0
----
-3654
-4074
-630

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 + - 38 / col2 * 52, col0 + + col2 * - 67 + + col0, col2 * - col0 )
----

query II rowsort
SELECT - col2 AS col2, - 80 FROM tab0
----
-10
-80
-47
-80
-99
-80

query II rowsort
SELECT + col1 AS col1, 98 FROM tab0
----
1
98
21
98
81
98

query I rowsort
SELECT + + 21 * - col0 AS col1 FROM tab0 WHERE NOT - + col0 IS NULL
----
-1827
-2037
-315

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - - col1 ), - col0 col1 FROM tab1
----
14
-51
47
-91
5
-85

query I rowsort
SELECT ALL - ( 22 ) FROM tab0
----
-22
-22
-22

query II rowsort
SELECT - col0 AS col1, col0 + - - 2 FROM tab2
----
-46
48
-64
66
-75
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6457
SELECT SUM( - + col0 ) DIV 51 + 40 + - - COUNT( * ) AS col0 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-6457
SELECT SUM ( - + col0 ) / 51 + 40 + - - COUNT ( * ) AS col0 FROM tab0
----
40

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 NOT BETWEEN ( - ( col1 ) ) AND col2
----
85
5
59
91
47
68

query II rowsort
SELECT DISTINCT - col1 * - + 46, col0 FROM tab0 AS cor0
----
3726
15
46
97
966
87

query I rowsort
SELECT DISTINCT + col2 * + 46 * - - col1 FROM tab0 AS cor0
----
175122
4554
9660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6461
SELECT CAST( col2 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-6461
SELECT CAST ( col2 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6462
SELECT ALL - 28, 34 DIV + col2 AS col0 FROM tab2 cor0
----
-28
0
-28
0
-28
1

skipif mysql # not compatible
query II rowsort label-6462
SELECT ALL - 28, 34 / + col2 AS col0 FROM tab2 cor0
----
-28
0
-28
0
-28
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6463
SELECT DISTINCT - 53 AS col0, SUM( + col2 ) AS col0 FROM tab0 cor0
----
-53
156

skipif mysql # not compatible
query II rowsort label-6463
SELECT DISTINCT - 53 AS col0, SUM ( + col2 ) AS col0 FROM tab0 cor0
----
-53
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - - col0 col2 FROM tab1 AS cor0
----
-425
-4277
-714

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT + col2 + - 99 AS col1 FROM tab0
----
-52
-89
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6467
SELECT ALL COUNT( ALL + col0 ) AS col0, + 70 AS col0 FROM tab1
----
3
70

skipif mysql # not compatible
query II rowsort label-6467
SELECT ALL COUNT ( ALL + col0 ) AS col0, + 70 AS col0 FROM tab1
----
3
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT ALL + - COUNT( * ) * - + MAX( ALL 59 ) - + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL + - COUNT ( * ) * - + MAX ( ALL 59 ) - + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT DISTINCT + MIN( + col2 ) * - COUNT( * ) AS col1 FROM tab1 cor0
----
-177

skipif mysql # not compatible
query I rowsort label-6469
SELECT DISTINCT + MIN ( + col2 ) * - COUNT ( * ) AS col1 FROM tab1 cor0
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT ALL - - SUM( DISTINCT - - 15 ) AS col2 FROM tab1 cor0
----
15

skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL - - SUM ( DISTINCT - - 15 ) AS col2 FROM tab1 cor0
----
15

query I rowsort
SELECT DISTINCT - col2 * - col2 * + + 19 * - 27 + col1 FROM tab2 AS cor0
----
-1725665
-271326
-820723

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT ALL - ( + - 61 ) + MIN( DISTINCT - + col1 ) AS col2 FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL - ( + - 61 ) + MIN ( DISTINCT - + col1 ) AS col2 FROM tab0
----
-20

query I rowsort
SELECT - col0 * - col1 + - + 72 FROM tab1
----
353
4205
642

query I rowsort
SELECT ALL - 63 - + col0 FROM tab2
----
-109
-127
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6475
SELECT ALL col1 - + 12 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6475
SELECT ALL col1 - + 12 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + + 59 + col1 AS col0 FROM tab1 AS cor0
----
106
64
73

query II rowsort
SELECT ( 59 ) + + - col1, 81 AS col1 FROM tab0 AS cor0
----
-22
81
38
81
58
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6478
SELECT ALL * FROM tab1 AS cor0 WHERE col1 >= - - CAST( + + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6478
SELECT ALL * FROM tab1 AS cor0 WHERE col1 >= - - CAST ( + + col0 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 91 * - - 45 FROM tab2
----
4095

onlyif mysql # DIV for integer division: 
query I rowsort label-6480
SELECT + col2 DIV - + 62 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6480
SELECT + col2 / - + 62 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6481
SELECT ( - 0 ), COUNT( * ) AS col2 FROM tab1 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-6481
SELECT ( - 0 ), COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6482
SELECT ALL - + 13 * + col1 * - - ( - + col1 ) AS col0, + CAST( + 29 AS SIGNED ) * + col0 + col1 * - 44 FROM tab0 AS cor0
----
13
2769
5733
1599
85293
-3129

skipif mysql # not compatible
query II rowsort label-6482
SELECT ALL - + 13 * + col1 * - - ( - + col1 ) AS col0, + CAST ( + 29 AS INTEGER ) * + col0 + col1 * - 44 FROM tab0 AS cor0
----
13
2769
5733
1599
85293
-3129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6483
SELECT 48 DIV COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT - 34 DIV 91 IS NULL
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6483
SELECT 48 / COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT - 34 / 91 IS NULL
----
16

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - ( + 90 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col2 - - - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * + - col1 + + 76 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( + col2 ) * col0 AS col1 FROM tab2
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 <> - 8
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 52 + - + col0 = + 67 OR - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6490
SELECT ALL + + col2 AS col0, - col2 FROM tab0 WHERE NOT - + 84 <= CAST( - 92 AS SIGNED ) * - 87 * + col1
----

skipif mysql # not compatible
query II rowsort label-6490
SELECT ALL + + col2 AS col0, - col2 FROM tab0 WHERE NOT - + 84 <= CAST ( - 92 AS INTEGER ) * - 87 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6491
SELECT - 99 + ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 WHERE NOT NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-6491
SELECT - 99 + ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 WHERE NOT NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6492
SELECT 28 DIV - col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6492
SELECT 28 / - col0 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT + MAX( ALL + - 44 ) FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-6493
SELECT + MAX ( ALL + - 44 ) FROM tab0 AS cor0
----
-44

query I rowsort
SELECT - ( 90 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( + 82 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6495
SELECT DISTINCT - + SUM( - - CAST( NULL AS SIGNED ) ) * + 0 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6495
SELECT DISTINCT - + SUM ( - - CAST ( NULL AS INTEGER ) ) * + 0 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + - ( - col2 ) AS col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6497
SELECT DISTINCT - + ( CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NOT + 64 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6497
SELECT DISTINCT - + ( CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NOT + 64 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT DISTINCT SUM( - + 37 ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-333

skipif mysql # not compatible
query I rowsort label-6498
SELECT DISTINCT SUM ( - + 37 ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-333

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT + COUNT( * ) * + 62 * - + 27 AS col2 FROM tab1, tab0 AS cor0
----
-15066

skipif mysql # not compatible
query I rowsort label-6499
SELECT + COUNT ( * ) * + 62 * - + 27 AS col2 FROM tab1, tab0 AS cor0
----
-15066

query I rowsort
SELECT - 3 * + - 54 AS col2 FROM tab1
----
162
162
162

query I rowsort
SELECT DISTINCT + col0 * - - col0 AS col2 FROM tab0 AS cor0
----
225
7569
9409

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) <> - 85 / - + col0 - - + 76 * + - col1
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL BETWEEN ( NULL ) AND + ( - col2 )
----

query I rowsort
SELECT ( + + 66 ) + - 48 - col2 FROM tab1 AS cor0
----
-41
-50
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 55 col0 FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + - col1 col0 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT ALL - - 78 + - + COUNT( * ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6507
SELECT ALL - - 78 + - + COUNT ( * ) FROM tab1 AS cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 28 col2 FROM tab1 AS cor0
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT DISTINCT - - MAX( col0 ) + - COUNT( * ) FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-6509
SELECT DISTINCT - - MAX ( col0 ) + - COUNT ( * ) FROM tab0 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT DISTINCT 15 + - + COUNT( * ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-6510
SELECT DISTINCT 15 + - + COUNT ( * ) FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT + + MAX( DISTINCT col1 ) AS col0 FROM tab1 WHERE + 78 >= - col1
----
47

skipif mysql # not compatible
query I rowsort label-6511
SELECT + + MAX ( DISTINCT col1 ) AS col0 FROM tab1 WHERE + 78 >= - col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT DISTINCT - SUM( DISTINCT + + 8 ) + 69 * - - 30 AS col1 FROM tab1
----
2062

skipif mysql # not compatible
query I rowsort label-6512
SELECT DISTINCT - SUM ( DISTINCT + + 8 ) + 69 * - - 30 AS col1 FROM tab1
----
2062

query I rowsort
SELECT ALL - col2 * - - col2 - - col1 + - + 16 + + col0 * + - col2 FROM tab2
----
-1552
-4099
-7663

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT DISTINCT + MIN( + col2 ) FROM tab2 WHERE 84 * + - col0 IS NOT NULL
----
23

skipif mysql # not compatible
query I rowsort label-6514
SELECT DISTINCT + MIN ( + col2 ) FROM tab2 WHERE 84 * + - col0 IS NOT NULL
----
23

query I rowsort
SELECT DISTINCT col0 * + col2 - - 5 AS col2 FROM tab2
----
1063
2565
4355

query I rowsort
SELECT - + ( + col2 ) - col2 FROM tab0 cor0
----
-198
-20
-94

query I rowsort
SELECT ALL + - 45 + 31 + + + 84 * + + col2 FROM tab1 cor0
----
4942
5698
8050

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT + COUNT( * ) + 18 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-6518
SELECT + COUNT ( * ) + 18 FROM tab0
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-6519
SELECT + 71 col2, COUNT( * ) AS col1 FROM tab0
----
71
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6519
SELECT + 71 col2, COUNT ( * ) AS col1 FROM tab0
----
71
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT SUM( + col2 ) * + - COUNT( col1 ) FROM tab2
----
-363

skipif mysql # not compatible
query I rowsort label-6520
SELECT SUM ( + col2 ) * + - COUNT ( col1 ) FROM tab2
----
-363

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT ( - MIN( ALL + - 79 ) ) FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-6521
SELECT ( - MIN ( ALL + - 79 ) ) FROM tab1
----
79

query II rowsort
SELECT col2, 34 + col2 AS col2 FROM tab0
----
10
44
47
81
99
133

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT DISTINCT COUNT( 79 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6523
SELECT DISTINCT COUNT ( 79 ) FROM tab2
----
3

query II rowsort
SELECT DISTINCT col1 AS col0, - col0 * - 45 FROM tab1 AS cor0
----
14
2295
47
4095
5
3825

query II rowsort
SELECT col2 AS col1, 72 + + col0 AS col2 FROM tab2 AS cor0
----
23
118
40
136
58
147

query I rowsort
SELECT ALL ( + col2 ) * - + col2 AS col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

query II rowsort
SELECT + 70 * - 63 + + + 58, - col0 + + col0 AS col1 FROM tab1 AS cor0
----
-4352
0
-4352
0
-4352
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6528
SELECT - MAX( DISTINCT CAST( NULL AS DECIMAL ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6528
SELECT - MAX ( DISTINCT CAST ( NULL AS REAL ) ) FROM tab2 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6529
SELECT + ( - col1 ) DIV - + col1 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6529
SELECT + ( - col1 ) / - + col1 AS col1 FROM tab1
----
1
1
1

query I rowsort
SELECT col1 * col0 * - - col1 FROM tab1
----
201019
2125
9996

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT DISTINCT - 19 * COUNT( + 99 ) AS col0 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-6531
SELECT DISTINCT - 19 * COUNT ( + 99 ) AS col0 FROM tab2
----
-57

query II rowsort
SELECT DISTINCT - col1 * col2, col1 * - - col2 * - - col2 AS col2 FROM tab2
----
-1173
26979
-3080
123200
-3886
225388

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6533
SELECT ALL + COUNT( * ) * + + CAST( - MAX( ALL - + col1 ) AS SIGNED ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-6533
SELECT ALL + COUNT ( * ) * + + CAST ( - MAX ( ALL - + col1 ) AS INTEGER ) FROM tab1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT DISTINCT + SUM( ALL + 64 ) AS col1 FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
192

skipif mysql # not compatible
query I rowsort label-6534
SELECT DISTINCT + SUM ( ALL + 64 ) AS col1 FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
192

query I rowsort
SELECT 6 FROM tab1 WHERE NOT col0 IS NULL
----
6
6
6

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT col0 * - + col2 + + 95 FROM tab0 AS cor0
----
-610
-775
-9508

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT DISTINCT COUNT( ALL + - col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6538
SELECT DISTINCT COUNT ( ALL + - col2 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL col0 * 48 + - col0 + + - col0 * ( - + col0 ) FROM tab2
----
4278
7104
9150

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6540
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + ( + 2 ), col1 + - col2 col2 FROM tab1
----
NULL
-21
NULL
-54
NULL
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6540
SELECT DISTINCT + CAST ( NULL AS REAL ) * + ( + 2 ), col1 + - col2 col2 FROM tab1
----
NULL
-21
NULL
-54
NULL
-82

query I rowsort
SELECT 50 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6542
SELECT ALL - + MIN( DISTINCT + - col2 ) DIV - 51 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6542
SELECT ALL - + MIN ( DISTINCT + - col2 ) / - 51 FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col2 * - col1 * col2 - + 51 col1 FROM tab0 AS cor0 WHERE NOT col0 * - - col2 <> + 1 + + 98 + col1 + - 81 * - 92 * col0
----

query I rowsort
SELECT + + ( + 6 ) FROM tab1 cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + + ( 68 ) * + col2 + col1 AS col0 FROM tab2 AS cor0
----
1615
2797
4011

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = col2 * - 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT ALL COUNT( ALL - - 63 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6547
SELECT ALL COUNT ( ALL - - 63 ) FROM tab2 cor0
----
3

query I rowsort
SELECT - + 78 AS col0 FROM tab2 cor0
----
-78
-78
-78

query I rowsort
SELECT - + col1 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
-14
-47
-5

query I rowsort
SELECT col2 - + + col2 * + col1 FROM tab2 AS cor0
----
-1150
-3040
-3828

query I rowsort
SELECT ALL + 91 + - col0 FROM tab0 AS cor0
----
-6
4
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6552
SELECT - + col0 FROM tab2 WHERE NULL <> + CAST( - 65 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6552
SELECT - + col0 FROM tab2 WHERE NULL <> + CAST ( - 65 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - col0 * - 52 col1 FROM tab1
----
-2556
-4361
-4664

query I rowsort
SELECT ( col1 ) * col1 + - col1 FROM tab2
----
2550
4422
5852

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 + col1 / + col1 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6556
SELECT * FROM tab1 WHERE + col0 * - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6556
SELECT * FROM tab1 WHERE + col0 * - CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6557
SELECT DISTINCT + 82 AS col2, COUNT( * ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN + col1 AND NULL
----
82
0

skipif mysql # not compatible
query II rowsort label-6557
SELECT DISTINCT + 82 AS col2, COUNT ( * ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN + col1 AND NULL
----
82
0

query II rowsort
SELECT DISTINCT - + 26 AS col2, + col1 AS col2 FROM tab2 cor0
----
-26
51
-26
67
-26
77

query II rowsort
SELECT + col2 AS col1, + 82 * - 40 AS col1 FROM tab2 AS cor0
----
23
-3280
40
-3280
58
-3280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 21, col1 + + 65 col1 FROM tab0 AS cor0
----
-21
146
-21
66
-21
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6561
SELECT - - 51 AS col2, - CAST( + - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
51
23
51
40
51
58

skipif mysql # not compatible
query II rowsort label-6561
SELECT - - 51 AS col2, - CAST ( + - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
51
23
51
40
51
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6562
SELECT COUNT( * ) DIV - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6562
SELECT COUNT ( * ) / - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6563
SELECT ALL - MIN( DISTINCT CAST( + col2 AS SIGNED ) ) AS col0, - 45 * 49 * - 51 FROM tab2
----
-23
112455

skipif mysql # not compatible
query II rowsort label-6563
SELECT ALL - MIN ( DISTINCT CAST ( + col2 AS INTEGER ) ) AS col0, - 45 * 49 * - 51 FROM tab2
----
-23
112455

query I rowsort
SELECT 57 * - ( - - col2 ) FROM tab0
----
-2679
-5643
-570

query I rowsort
SELECT DISTINCT - ( - - col1 ) AS col1 FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT ALL + - COUNT( DISTINCT - + 39 ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL + - COUNT ( DISTINCT - + 39 ) AS col2 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < - 39 * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 9 col2 FROM tab1 AS cor0
----
-9
-9
-9

query I rowsort
SELECT ALL - 93 * 75 FROM tab0
----
-6975
-6975
-6975

onlyif mysql # aggregate syntax: 
query II rowsort label-6570
SELECT DISTINCT COUNT( DISTINCT ( + col2 ) ) AS col1, 3 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-6570
SELECT DISTINCT COUNT ( DISTINCT ( + col2 ) ) AS col1, 3 FROM tab0
----
3
3

query I rowsort
SELECT ALL col0 * - ( + col2 ) FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab0 WHERE NOT - 97 * 95 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6573
SELECT - - CAST( NULL AS SIGNED ) / + 74 * - col2 + - 42 AS col2, - col0 AS col1 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-6573
SELECT - - CAST ( NULL AS INTEGER ) / + 74 * - col2 + - 42 AS col2, - col0 AS col1 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 60 * - col1 col2 FROM tab0 AS cor0 WHERE NOT - col1 * - col2 IS NULL
----
-1260
-4860
-60

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
51
67
77

query II rowsort
SELECT DISTINCT ( 27 ) + + col0 + col1, col1 AS col1 FROM tab0
----
123
81
125
1
135
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6577
SELECT DISTINCT ( CAST( + col1 AS SIGNED ) ) FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6577
SELECT DISTINCT ( CAST ( + col1 AS INTEGER ) ) FROM tab1
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( col2 ) + - - 93 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 54 col1, col2 AS col0 FROM tab2 AS cor0 WHERE - 88 >= - col1
----

query I rowsort
SELECT - - 34 * + col2 * - 71 + col1 + + col1 FROM tab0 AS cor0
----
-113296
-238984
-24098

query I rowsort
SELECT DISTINCT 91 * + col1 * - - col1 - - col1 * + col1 * - ( + col2 ) FROM tab0
----
-8
288684
35721

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT ALL 94 + COUNT( * ) AS col0 FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL 94 + COUNT ( * ) AS col0 FROM tab1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT - SUM( - 71 ) col1 FROM tab1
----
213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6583
SELECT - SUM ( - 71 ) col1 FROM tab1
----
213

query II rowsort
SELECT 31, + col2 AS col0 FROM tab2
----
31
23
31
40
31
58

query I rowsort
SELECT col0 - + + col1 AS col0 FROM tab2
----
-13
-5
8

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) >= + 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT DISTINCT + - 46 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-6587
SELECT DISTINCT + - 46 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT - COUNT( * ) * 96 + 83 - 9 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-790

skipif mysql # not compatible
query I rowsort label-6588
SELECT - COUNT ( * ) * 96 + 83 - 9 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-790

query I rowsort
SELECT ALL - + 66 AS col2 FROM tab1 cor0 WHERE NOT col1 + + 12 BETWEEN col0 AND NULL
----
-66
-66
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6590
SELECT 54 AS col2, - CAST( + - col2 AS SIGNED ) FROM tab2 AS cor0
----
54
23
54
40
54
58

skipif mysql # not compatible
query II rowsort label-6590
SELECT 54 AS col2, - CAST ( + - col2 AS INTEGER ) FROM tab2 AS cor0
----
54
23
54
40
54
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( ( ( + + col2 ) ) + - col2 + + 4 )
----

query II rowsort
SELECT - ( - col0 ), + 82 AS col1 FROM tab2
----
46
82
64
82
75
82

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT ( + 54 ) FROM tab0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT DISTINCT 66 * MAX( ALL - - 14 ) + - + MAX( - col0 ) AS col2 FROM tab0
----
939

skipif mysql # not compatible
query I rowsort label-6595
SELECT DISTINCT 66 * MAX ( ALL - - 14 ) + - + MAX ( - col0 ) AS col2 FROM tab0
----
939

onlyif mysql # DIV for integer division: 
query I rowsort label-6596
SELECT col2 DIV - 76 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6596
SELECT col2 / - 76 FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL col2 + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT 52 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT ALL COUNT( * ) + + + 75 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-6599
SELECT ALL COUNT ( * ) + + + 75 FROM tab1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6600
SELECT ALL - + 88 FROM tab0 WHERE col0 < - CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6600
SELECT ALL - + 88 FROM tab0 WHERE col0 < - CAST ( + col1 AS INTEGER )
----

query I rowsort
SELECT ALL - 21 * - - col2 FROM tab0
----
-2079
-210
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT ALL + - COUNT( ALL + col0 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6602
SELECT ALL + - COUNT ( ALL + col0 ) FROM tab0 cor0
----
-3

query I rowsort
SELECT + col1 - col0 * - ( ( + col1 ) ) AS col1 FROM tab1 AS cor0
----
430
4324
728

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND col1 * col2 / col2
----

query I rowsort
SELECT DISTINCT - 67 * 51 - 88 * - - col0 FROM tab0 AS cor0
----
-11073
-11953
-4737

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND 66 * + col1
----

query I rowsort
SELECT ALL - + 12 + - col2 + + + 78 * - - col1 FROM tab0 AS cor0
----
-33
1616
6259

query I rowsort
SELECT DISTINCT - 37 + + col2 AS col0 FROM tab2 AS cor0
----
-14
21
3

query I rowsort
SELECT ( - col0 ) + - 36 AS col2 FROM tab1
----
-121
-127
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT DISTINCT - ( + MIN( col1 ) ) AS col0 FROM tab0 WHERE + col0 NOT IN ( - 94 / + 11, + col2, - + col2, - col0 + col0 * - + col2, ( - 95 ), + - 73 )
----
-1

skipif mysql # not compatible
query I rowsort label-6610
SELECT DISTINCT - ( + MIN ( col1 ) ) AS col0 FROM tab0 WHERE + col0 NOT IN ( - 94 / + 11, + col2, - + col2, - col0 + col0 * - + col2, ( - 95 ), + - 73 )
----
-1

query I rowsort
SELECT ALL 37 * + - 97 FROM tab1
----
-3589
-3589
-3589

query I rowsort
SELECT DISTINCT ( - - 52 ) AS col0 FROM tab2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT + - COUNT( * ) * - - 16 + - MAX( - - 97 ) AS col1 FROM tab1 cor0
----
-145

skipif mysql # not compatible
query I rowsort label-6613
SELECT + - COUNT ( * ) * - - 16 + - MAX ( - - 97 ) AS col1 FROM tab1 cor0
----
-145

query I rowsort
SELECT - + 76 * col0 + + - 73 AS col1 FROM tab2 AS cor0
----
-3569
-4937
-5773

onlyif mysql # DIV for integer division: 
query I rowsort label-6615
SELECT DISTINCT + + 39 * col1 * col0 DIV - - 79 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
47
599
901

skipif mysql # not compatible
query I rowsort label-6615
SELECT DISTINCT + + 39 * col1 * col0 / - - 79 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
47
599
901

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6616
SELECT DISTINCT + ( 98 ) DIV + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-6616
SELECT DISTINCT + ( 98 ) / + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT - + 47 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-6617
SELECT - + 47 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-141

onlyif mysql # aggregate syntax: 
query II rowsort label-6618
SELECT ALL COUNT( * ), + 83 * - 84 * - 35 col2 FROM tab2
----
3
244020

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6618
SELECT ALL COUNT ( * ), + 83 * - 84 * - 35 col2 FROM tab2
----
3
244020

query I rowsort
SELECT - col2 + + col1 FROM tab0 WHERE NOT NULL = - + col1 + + - col0 * + + 69 * - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6620
SELECT ALL + - MAX( ALL - CAST( col2 AS SIGNED ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-6620
SELECT ALL + - MAX ( ALL - CAST ( col2 AS INTEGER ) ) FROM tab0 AS cor0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-6621
SELECT ALL + - 56 DIV + - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6621
SELECT ALL + - 56 / + - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 12 + col1 col0 FROM tab0 AS cor0
----
-11
69
9

query II rowsort
SELECT + 8, col0 AS col0 FROM tab0 cor0
----
8
15
8
87
8
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT + 31 * COUNT( * ) FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-6624
SELECT + 31 * COUNT ( * ) FROM tab2 AS cor0
----
93

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 89 NOT BETWEEN 15 * + col0 + - 66 AND + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 6 + - 10 FROM tab2 AS cor0
----
-4
-4
-4

query I rowsort
SELECT + col2 + + 69 AS col1 FROM tab1 AS cor0
----
128
137
165

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT ALL - 53 + - + COUNT( * ) FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-6628
SELECT ALL - 53 + - + COUNT ( * ) FROM tab2 AS cor0
----
-56

query I rowsort
SELECT - + col2 FROM tab1 WHERE col1 IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 * - - col0 <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 61 < - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6632
SELECT - col1 * + - CAST( NULL AS SIGNED ) + - col2 col2 FROM tab1 WHERE NULL < + 71
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6632
SELECT - col1 * + - CAST ( NULL AS INTEGER ) + - col2 col2 FROM tab1 WHERE NULL < + 71
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6633
SELECT - col0 DIV - col0 col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6633
SELECT - col0 / - col0 col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - - col1 / - col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6635
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + 9 + - - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6635
SELECT DISTINCT CAST ( NULL AS REAL ) * + 9 + - - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-9

query III rowsort
SELECT * FROM tab1 WHERE col0 <= - ( - + col0 ) + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT + + COUNT( * ) + + + 73 FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-6639
SELECT + + COUNT ( * ) + + + 73 FROM tab2 AS cor0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6640
SELECT ALL - - CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL - - CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT ( - 48 ) AS col2 FROM tab2 AS cor0
----
-48
-48
-48

query I rowsort
SELECT DISTINCT + - ( - 62 ) - - 37 AS col0 FROM tab0 AS cor0
----
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 * + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - + col2 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6645
SELECT AVG ( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6645
SELECT AVG ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT + - ( - col0 ) AS col2 FROM tab0 WHERE NOT + col1 IS NULL OR NOT + col1 = + 28 + - col2
----
15
87
97

query I rowsort
SELECT DISTINCT - 15 * + col2 FROM tab1
----
-1020
-1440
-885

query II rowsort
SELECT 16 AS col1, col1 FROM tab0
----
16
1
16
21
16
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT DISTINCT MIN( DISTINCT col1 ) * + ( + SUM( + col1 ) ) AS col2 FROM tab2
----
9945

skipif mysql # not compatible
query I rowsort label-6649
SELECT DISTINCT MIN ( DISTINCT col1 ) * + ( + SUM ( + col1 ) ) AS col2 FROM tab2
----
9945

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT + MIN( - + ( col0 ) ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-6650
SELECT + MIN ( - + ( col0 ) ) AS col1 FROM tab2 AS cor0
----
-75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 84 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( 68 ) * - 39 FROM tab0
----
-2652
-2652
-2652

query I rowsort
SELECT DISTINCT 77 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
77

query I rowsort
SELECT ALL col0 * + 71 AS col0 FROM tab2
----
3266
4544
5325

onlyif mysql # DIV for integer division: 
query I rowsort label-6655
SELECT DISTINCT - + 85 DIV + 92 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6655
SELECT DISTINCT - + 85 / + 92 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6656
SELECT ALL col0 + - col2 + + ( 23 ) * - - 75 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL col0 + - col2 + + ( 23 ) * - - 75 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 50 / - - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6658
SELECT DISTINCT col1 DIV + col2 + - - col0 + + + col0 AS col1 FROM tab0 AS cor0
----
176
194
31

skipif mysql # not compatible
query I rowsort label-6658
SELECT DISTINCT col1 / + col2 + - - col0 + + + col0 AS col1 FROM tab0 AS cor0
----
176
194
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT + SUM( ALL + 66 ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-6659
SELECT + SUM ( ALL + 66 ) FROM tab1
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6660
SELECT - ( col2 ) / + ( CAST( NULL AS SIGNED ) ) * col2 * - + 48 * + col0 + ( - + col0 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6660
SELECT - ( col2 ) / + ( CAST ( NULL AS INTEGER ) ) * col2 * - + 48 * + col0 + ( - + col0 ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT - 19 + - ( + 62 ) * + ( - + col1 ), col2 FROM tab1
----
2895
68
291
59
849
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( NOT NULL IS NOT NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6663
SELECT DISTINCT col1 / - ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6663
SELECT DISTINCT col1 / - ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6664
SELECT DISTINCT CAST( NULL AS SIGNED ) * 77 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6664
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 77 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 58 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-6665
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 58 IS NULL
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6666
SELECT + 31 - - + col2 - col0 + - CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6666
SELECT + 31 - - + col2 - col0 + - CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT ALL + ( + - MIN( DISTINCT - 29 ) ) FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
29

skipif mysql # not compatible
query I rowsort label-6667
SELECT ALL + ( + - MIN ( DISTINCT - 29 ) ) FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
29

query II rowsort
SELECT + 47 AS col1, col1 FROM tab0 AS cor0
----
47
1
47
21
47
81

query I rowsort
SELECT ALL ( ( + 67 ) ) FROM tab1 AS cor0
----
67
67
67

query II rowsort
SELECT + col2 AS col1, 99 AS col0 FROM tab0 AS cor0
----
10
99
47
99
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6671
SELECT ALL - CAST( NULL AS SIGNED ), col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-6671
SELECT ALL - CAST ( NULL AS INTEGER ), col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT 81 * + col2 + - 20 + 7 AS col2 FROM tab1 AS cor0
----
4766
5495
7763

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= - 93
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6674
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6674
SELECT DISTINCT + CAST ( NULL AS REAL ) * - col2 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < - col0 / + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 30 = NULL
----

query I rowsort
SELECT ALL + ( - 82 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT ALL col0 + + 28 AS col0 FROM tab2
----
103
74
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6679
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + col1 - CAST( - 85 AS SIGNED ) + - - col0 + - col0 / - ( + col2 ) AND col1
----

skipif mysql # not compatible
query III rowsort label-6679
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + col1 - CAST ( - 85 AS INTEGER ) + - - col0 + - col0 / - ( + col2 ) AND col1
----

query I rowsort
SELECT ALL - + 51 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT - COUNT( * ) * + + 37 FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-6681
SELECT - COUNT ( * ) * + + 37 FROM tab0
----
-111

onlyif mysql # DIV for integer division: 
query I rowsort label-6682
SELECT - + col1 DIV col2 + + col2 AS col1 FROM tab0 AS cor0
----
46
8
99

skipif mysql # not compatible
query I rowsort label-6682
SELECT - + col1 / col2 + + col2 AS col1 FROM tab0 AS cor0
----
46
8
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 + + - col0 * + col1 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6684
SELECT + CAST( NULL AS SIGNED ) * - col2 + col1 + - + col0 AS col2 FROM tab0 AS cor0 WHERE ( + col2 * col0 ) = - 61
----

skipif mysql # not compatible
query I rowsort label-6684
SELECT + CAST ( NULL AS INTEGER ) * - col2 + col1 + - + col0 AS col2 FROM tab0 AS cor0 WHERE ( + col2 * col0 ) = - 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT 44 + + ( - COUNT( * ) ) FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-6685
SELECT 44 + + ( - COUNT ( * ) ) FROM tab0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6686
SELECT ALL col0 * + + CAST( ( + 0 ) AS SIGNED ) + + - col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6686
SELECT ALL col0 * + + CAST ( ( + 0 ) AS INTEGER ) + + - col2 FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6687
SELECT DISTINCT + col2 / - ( col0 ) * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6687
SELECT DISTINCT + col2 / - ( col0 ) * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT DISTINCT 87 * - COUNT( * ) - 93 col1 FROM tab1
----
-354

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6688
SELECT DISTINCT 87 * - COUNT ( * ) - 93 col1 FROM tab1
----
-354

query II rowsort
SELECT + + col1 * - + col0, + 73 AS col0 FROM tab1 AS cor0
----
-425
73
-4277
73
-714
73

query I rowsort
SELECT ALL - 29 FROM tab2 cor0 WHERE NOT NULL IS NULL AND NOT + col0 NOT BETWEEN - 75 AND - col0 + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6691
SELECT DISTINCT + ( - COUNT( * ) ), - COUNT( * ) FROM tab1 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-6691
SELECT DISTINCT + ( - COUNT ( * ) ), - COUNT ( * ) FROM tab1 AS cor0
----
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6692
SELECT ALL 19 * + CAST( - - col0 AS SIGNED ) col1 FROM tab0 cor0
----
1653
1843
285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6692
SELECT ALL 19 * + CAST ( - - col0 AS INTEGER ) col1 FROM tab0 cor0
----
1653
1843
285

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6693
SELECT ALL * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) < + 79
----

skipif mysql # not compatible
query III rowsort label-6693
SELECT ALL * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) < + 79
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6694
SELECT + CAST( NULL AS SIGNED ) + - + 25 + + col1 + 65 + + 10 col0 FROM tab0 WHERE NOT + col0 IN ( + + col0 * col0, - 86 + + - 5, + 61 )
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6694
SELECT + CAST ( NULL AS INTEGER ) + - + 25 + + col1 + 65 + + 10 col0 FROM tab0 WHERE NOT + col0 IN ( + + col0 * col0, - 86 + + - 5, + 61 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT + 52 + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
61

skipif mysql # not compatible
query I rowsort label-6695
SELECT + 52 + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
61

query II rowsort
SELECT - col1, col2 * + col0 AS col1 FROM tab2 AS cor0
----
-51
1058
-67
4350
-77
2560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6697
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, MAX( ( col1 ) ) AS col2 FROM tab0 AS cor0
----
NULL
81

skipif mysql # not compatible
query II rowsort label-6697
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, MAX ( ( col1 ) ) AS col2 FROM tab0 AS cor0
----
NULL
81

query I rowsort
SELECT DISTINCT - col0 * - 71 * - col1 * - - 96 AS col1 FROM tab2 AS cor0 WHERE col2 * + col1 >= col2 * - + col0
----
-15990336
-33589248
-34250400

query II rowsort
SELECT - col2 * + - 67 * - + col0 AS col0, col0 * - - col0 FROM tab1 AS cor0
----
-328032
2601
-336005
7225
-414596
8281

query I rowsort
SELECT ( + + col1 ) * + - col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6701
SELECT DISTINCT - CAST( - 89 AS SIGNED ) AS col1 FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-6701
SELECT DISTINCT - CAST ( - 89 AS INTEGER ) AS col1 FROM tab1
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6702
SELECT ( - - MIN( ALL ( - - col0 ) ) ) DIV + 7 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-6702
SELECT ( - - MIN ( ALL ( - - col0 ) ) ) / + 7 FROM tab0
----
2

query I rowsort
SELECT DISTINCT 37 FROM tab1 WHERE NOT NULL IS NOT NULL
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6704
SELECT - + COUNT( * ) * + COUNT( * ) FROM tab1 WHERE NOT ( + 43 - - - 89 ) NOT BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6704
SELECT - + COUNT ( * ) * + COUNT ( * ) FROM tab1 WHERE NOT ( + 43 - - - 89 ) NOT BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT - ( MAX( - + col1 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6705
SELECT - ( MAX ( - + col1 ) ) FROM tab0
----
1

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 84 = + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT DISTINCT - MAX( ALL col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6708
SELECT DISTINCT - MAX ( ALL col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col0 + + + col0 AS col0 FROM tab0 cor0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT DISTINCT + ( + COUNT( + col0 ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6710
SELECT DISTINCT + ( + COUNT ( + col0 ) ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT COUNT( DISTINCT col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6711
SELECT COUNT ( DISTINCT col1 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL col0, + ( - 22 ) * col2 - ( + col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT + 32 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 50 FROM tab1 AS cor0 WHERE NOT - ( 53 ) / col0 >= col1
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 + + - col2 col2 FROM tab0 AS cor0
----
658
860
9504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6715
SELECT AVG ( ALL col0 ) * - CAST( NULL AS SIGNED ) - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6715
SELECT AVG ( ALL col0 ) * - CAST ( NULL AS INTEGER ) - COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT DISTINCT COUNT( * ) + + + 12 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT COUNT ( * ) + + + 12 FROM tab2 AS cor0
----
15

onlyif mysql # DIV for integer division: 
query II rowsort label-6717
SELECT + col2 - - - 65 DIV - col1 AS col2, + col2 AS col1 FROM tab2
----
24
23
40
40
58
58

skipif mysql # not compatible
query II rowsort label-6717
SELECT + col2 - - - 65 / - col1 AS col2, + col2 AS col1 FROM tab2
----
24
23
40
40
58
58

query I rowsort
SELECT DISTINCT 57 * 3 + 10 AS col2 FROM tab1
----
181

onlyif mysql # DIV for integer division: 
query I rowsort label-6719
SELECT + ( - 37 ) + + ( col0 ) + - + col0 + col2 + + + col2 DIV - col0 - - + 82 AS col2 FROM tab2
----
103
68
85

skipif mysql # not compatible
query I rowsort label-6719
SELECT + ( - 37 ) + + ( col0 ) + - + col0 + col2 + + + col2 / - col0 - - + 82 AS col2 FROM tab2
----
103
68
85

query I rowsort
SELECT DISTINCT + 60 + - col0 + ( + ( col2 ) ) FROM tab1
----
105
34
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6721
SELECT CAST( NULL AS SIGNED ) * + 20 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6721
SELECT CAST ( NULL AS INTEGER ) * + 20 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6722
SELECT DISTINCT + ( 22 ) + - ( + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6722
SELECT DISTINCT + ( 22 ) + - ( + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) ) col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT NULL <= + 14 + - ( + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 90 NOT BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 82 * - - col2 - 15 < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT - - COUNT( * ) * - - COUNT( * ) + 29 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-6726
SELECT - - COUNT ( * ) * - - COUNT ( * ) + 29 FROM tab0 AS cor0
----
38

query I rowsort
SELECT ALL 80 * + - 82 AS col0 FROM tab2 AS cor0
----
-6560
-6560
-6560

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 8 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN - ( col2 ) AND - col2 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT ALL MAX( ALL col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL MAX ( ALL col2 ) AS col0 FROM tab0
----
99

query I rowsort
SELECT ALL col2 + - col2 * - col2 AS col2 FROM tab1 WHERE + 26 * ( - ( + 56 ) ) NOT IN ( col1 * 15 )
----
3540
4692
9312

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 ) <= - col1
----

query I rowsort
SELECT ALL 45 * + 64 + - 81 * - col1 FROM tab2
----
7011
8307
9117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 + + col2 * + col0 col0 FROM tab2
----
1121
2623
4413

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT + 53 + + COUNT( * ) AS col2 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-6735
SELECT + 53 + + COUNT ( * ) AS col2 FROM tab1
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6736
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE + col2 >= - CAST( - col1 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-6736
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE + col2 >= - CAST ( - col1 AS INTEGER )
----
1

query III rowsort
SELECT * FROM tab2 WHERE NOT - 6 >= ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 IN ( col2 * - col2 - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6739
SELECT - CAST( NULL AS SIGNED ) + 76 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6739
SELECT - CAST ( NULL AS INTEGER ) + 76 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 ) NOT BETWEEN + 7 AND col1 - - col1
----
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6741
SELECT - CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab0 WHERE - 58 IN ( - 55 )
----

skipif mysql # not compatible
query I rowsort label-6741
SELECT - CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab0 WHERE - 58 IN ( - 55 )
----

query I rowsort
SELECT 56 + + col1 * 94 AS col2 FROM tab2
----
4850
6354
7294

query I rowsort
SELECT + 98 * + col0 + col2 AS col2 FROM tab0
----
1517
8536
9605

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 + 23 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6745
SELECT DISTINCT - CAST( 70 AS SIGNED ) AS col2 FROM tab2
----
-70

skipif mysql # not compatible
query I rowsort label-6745
SELECT DISTINCT - CAST ( 70 AS INTEGER ) AS col2 FROM tab2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT DISTINCT - ( 77 ) + - SUM( ALL 42 ) AS col0 FROM tab2
----
-203

skipif mysql # not compatible
query I rowsort label-6746
SELECT DISTINCT - ( 77 ) + - SUM ( ALL 42 ) AS col0 FROM tab2
----
-203

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6747
SELECT ALL + 42 + - ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6747
SELECT ALL + 42 + - ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE col0 <> + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 + 87 AS col0 FROM tab0
----
-12
40
77

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE NOT col0 <> ( 91 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT ALL MAX( DISTINCT 50 ) FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-6751
SELECT ALL MAX ( DISTINCT 50 ) FROM tab0 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT DISTINCT 52 + - COUNT( * ) FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-6752
SELECT DISTINCT 52 + - COUNT ( * ) FROM tab0 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT DISTINCT + COUNT( 81 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6753
SELECT DISTINCT + COUNT ( 81 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6754
SELECT ALL CAST( NULL AS DECIMAL ) + - 10 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6754
SELECT ALL CAST ( NULL AS REAL ) + - 10 col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 70 + 38 AS col1 FROM tab2
----
108
108
108

query I rowsort
SELECT - col1 + 36 AS col1 FROM tab2 AS cor0
----
-15
-31
-41

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 84 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 88 + col2 AS col1 FROM tab1 AS cor0
----
147
156
184

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT + MAX( 2 ) + - ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6759
SELECT + MAX ( 2 ) + - ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6760
SELECT - ( CAST( NULL AS SIGNED ) ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6760
SELECT - ( CAST ( NULL AS INTEGER ) ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col0 + col1 / 6 ) BETWEEN 34 AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 19 + col0 AS col2 FROM tab2 AS cor0
----
27
45
56

query I rowsort
SELECT DISTINCT 19 * col1 + - col0 FROM tab0 AS cor0
----
-78
1524
312

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 NOT IN ( + col2 + + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col2 ) > - 10
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) NOT BETWEEN - col2 + - col2 AND col1
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT DISTINCT 10 + - COUNT( * ) FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-6767
SELECT DISTINCT 10 + - COUNT ( * ) FROM tab0
----
7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6768
SELECT DISTINCT - 26 + - + col1 + + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6768
SELECT DISTINCT - 26 + - + col1 + + CAST ( NULL AS REAL ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 62 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT ALL - 32 + + 20 - + COUNT( * ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-6770
SELECT ALL - 32 + + 20 - + COUNT ( * ) FROM tab0
----
-15

query I rowsort
SELECT - col1 * 73 - + 19 AS col0 FROM tab1
----
-1041
-3450
-384

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > 59 * + col0
----

query I rowsort
SELECT DISTINCT + 28 - - + 94 + + 82 * - 26 AS col0 FROM tab2 AS cor0
----
-2010

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6774
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 55 + col0 * CAST( col2 AS SIGNED ) ) IS NOT NULL AND NOT ( NULL ) BETWEEN - 25 + + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-6774
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 55 + col0 * CAST ( col2 AS INTEGER ) ) IS NOT NULL AND NOT ( NULL ) BETWEEN - 25 + + col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6776
SELECT ALL col1 * + - CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6776
SELECT ALL col1 * + - CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6777
SELECT col2 * - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6777
SELECT col2 * - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 63 col2 FROM tab1 AS cor0
----
63

query I rowsort
SELECT DISTINCT - + 94 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT COUNT( * ) - COUNT( * ) AS col1 FROM tab2 WHERE NOT ( NOT ( NULL ) NOT BETWEEN NULL AND 57 * col1 + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6780
SELECT COUNT ( * ) - COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( NOT ( NULL ) NOT BETWEEN NULL AND 57 * col1 + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6781
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT MAX( DISTINCT + - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-6782
SELECT MAX ( DISTINCT + - col1 ) FROM tab1
----
-5

query I rowsort
SELECT ALL - + col1 * + 11 AS col0 FROM tab0 AS cor0
----
-11
-231
-891

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT + SUM( ALL - + 1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6784
SELECT + SUM ( ALL - + 1 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - + col2 * + 47 * col2 FROM tab2 cor0
----
-158108
-24863
-75200

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( col2 ) AND ( - col1 )
----

query I rowsort
SELECT ALL - col0 * - - 32 FROM tab1 AS cor0
----
-1632
-2720
-2912

onlyif mysql # DIV for integer division: 
query I rowsort label-6788
SELECT DISTINCT col1 DIV + + col2 * col2 * - col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6788
SELECT DISTINCT col1 / + + col2 * col2 * - col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + - col1 * + 93 AS col1 FROM tab2 cor0
----
-4743
-6231
-7161

query I rowsort
SELECT ALL - ( - col0 ) * - col0 * ( - col1 ) * + 62 AS col2 FROM tab2
----
19554304
23366250
6690792

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT - + COUNT( * ) FROM tab0 WHERE NOT - - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6791
SELECT - + COUNT ( * ) FROM tab0 WHERE NOT - - col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6792
SELECT DISTINCT 1 + - 67 + + col2 * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6792
SELECT DISTINCT 1 + - 67 + + col2 * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + ( + 60 ) * 76 FROM tab1 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6794
SELECT + col2 DIV - col1 col1 FROM tab0
----
-99
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6794
SELECT + col2 / - col1 col1 FROM tab0
----
-99
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT - 34 * + COUNT( * ) * 17 * + 26 AS col1 FROM tab0
----
-45084

skipif mysql # not compatible
query I rowsort label-6795
SELECT - 34 * + COUNT ( * ) * 17 * + 26 AS col1 FROM tab0
----
-45084

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab2 WHERE NOT - - col1 - + col1 <> col0 * 38 + col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) IN ( - 83 * - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < + - col2 / - col1 * 5
----

query I rowsort
SELECT ALL - col1 * col2 AS col0 FROM tab0 AS cor0 WHERE NOT + 5 = - col0 + + + col2
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT - SUM( + 43 ) + MIN( DISTINCT col2 - col1 ) AS col1 FROM tab1 AS cor0 WHERE ( + - 62 * + col2 = NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6800
SELECT - SUM ( + 43 ) + MIN ( DISTINCT col2 - col1 ) AS col1 FROM tab1 AS cor0 WHERE ( + - 62 * + col2 = NULL )
----
NULL

query I rowsort
SELECT DISTINCT - col0 * 97 + + ( + - 67 ) AS col1 FROM tab0 AS cor0
----
-1522
-8506
-9476

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 + - ( - col2 ) col0 FROM tab1
----
60
69
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 40 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE 24 IN ( + 71 )
----
0

skipif mysql # not compatible
query I rowsort label-6804
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE 24 IN ( + 71 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 41 col2 FROM tab1 AS cor0
----
2091
3485
3731

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6806
SELECT * FROM tab1 AS cor0 WHERE ( 40 + - CAST( NULL AS SIGNED ) + 45 * + 78 + col1 ) NOT IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-6806
SELECT * FROM tab1 AS cor0 WHERE ( 40 + - CAST ( NULL AS INTEGER ) + 45 * + 78 + col1 ) NOT IN ( col1 )
----

query I rowsort
SELECT + - col1 * + col2 - - col2 AS col1 FROM tab2 AS cor0
----
-1150
-3040
-3828

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + ( - + col1 ) ) IS NULL AND ( + col2 ) <> + 64
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6809
SELECT - + 75 * col2 - - col2 + CAST( NULL AS SIGNED ) * - col0 * - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6809
SELECT - + 75 * col2 - - col2 + CAST ( NULL AS INTEGER ) * - col0 * - col2 AS col0 FROM tab2 AS cor0
----
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 + col2 * + 63 + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( col1 - + + 12 ) IS NULL AND NOT col1 * col1 + + col1 <> ( + 6 + col1 * col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + + col1 col1 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT 4 * col0 + + col2 AS col0 FROM tab1
----
300
399
432

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + + 40 AND col0
----

query II rowsort
SELECT 19, - 26 AS col2 FROM tab2 WHERE - col1 = NULL
----

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NULL <= + + 92
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 31 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT - COUNT( * ) FROM tab2 WHERE NOT + col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-6818
SELECT - COUNT ( * ) FROM tab2 WHERE NOT + col1 > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6819
SELECT DISTINCT + col0 + + col0 + col2 + CAST( - - 8 AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6819
SELECT DISTINCT + col0 + + col0 + col2 + CAST ( - - 8 AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 47 * - + 79 * col2 + col2 * + col2 FROM tab1 AS cor0
----
-215586
-247860
-347232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6821
SELECT DISTINCT MAX( ALL - 28 ) DIV - 85 + + - 69 * COUNT( * ) FROM tab0 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-6821
SELECT DISTINCT MAX ( ALL - 28 ) / - 85 + + - 69 * COUNT ( * ) FROM tab0 AS cor0
----
-207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 70 col0 FROM tab1 AS cor0
----
-70
-70
-70

query I rowsort
SELECT - ( - + col2 ) AS col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6824
SELECT ALL + col1 DIV ( + col0 ) FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6824
SELECT ALL + col1 / ( + col0 ) FROM tab2 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT + + MAX( DISTINCT + + 14 ) FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-6825
SELECT + + MAX ( DISTINCT + + 14 ) FROM tab0 AS cor0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6826
SELECT DISTINCT - 65 + + CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6826
SELECT DISTINCT - 65 + + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= + 35 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT DISTINCT MIN( col1 ) * ( - 27 ) FROM tab1
----
-135

skipif mysql # not compatible
query I rowsort label-6828
SELECT DISTINCT MIN ( col1 ) * ( - 27 ) FROM tab1
----
-135

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6829
SELECT ALL 13 * - 84 DIV + COUNT( * ), + MIN( DISTINCT + 50 ) AS col2 FROM tab0
----
-364
50

skipif mysql # not compatible
query II rowsort label-6829
SELECT ALL 13 * - 84 / + COUNT ( * ), + MIN ( DISTINCT + 50 ) AS col2 FROM tab0
----
-364
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT DISTINCT + MIN( ALL + 15 ) * - 4 AS col2 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT + MIN ( ALL + 15 ) * - 4 AS col2 FROM tab1
----
-60

query I rowsort
SELECT 68 * - 13 FROM tab2
----
-884
-884
-884

query II rowsort
SELECT DISTINCT - + col1 AS col0, + col0 * - 38 + + 80 - - 36 FROM tab1 AS cor0
----
-14
-1822
-47
-3342
-5
-3114

query I rowsort
SELECT DISTINCT + ( + + 63 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 54 + + + col1 FROM tab2 AS cor0
----
-3
13
23

query II rowsort
SELECT + + 9, col1 FROM tab2 AS cor0
----
9
51
9
67
9
77

query II rowsort
SELECT DISTINCT + + col0, - 54 * + col1 AS col2 FROM tab2 AS cor0
----
46
-2754
64
-4158
75
-3618

query I rowsort
SELECT DISTINCT + + 6 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6838
SELECT ALL 19 * - col0 DIV col0 DIV - 34 + + 44 * + 43 * 13 * + + ( + 81 ) + - 0 FROM tab1
----
1992276
1992276
1992276

skipif mysql # not compatible
query I rowsort label-6838
SELECT ALL 19 * - col0 / col0 / - 34 + + 44 * + 43 * 13 * + + ( + 81 ) + - 0 FROM tab1
----
1992276
1992276
1992276

query I rowsort
SELECT ALL col0 * - ( - col1 ) AS col2 FROM tab0
----
1215
1827
97

query I rowsort
SELECT - 77 + - 33 * - - 28 AS col0 FROM tab1 AS cor0
----
-1001
-1001
-1001

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6841
SELECT - MIN( DISTINCT 65 ) * - + CAST( - 23 AS SIGNED ) + + 14 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-1484

skipif mysql # not compatible
query I rowsort label-6841
SELECT - MIN ( DISTINCT 65 ) * - + CAST ( - 23 AS INTEGER ) + + 14 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-1484

query I rowsort
SELECT + 82 + + - col0 AS col1 FROM tab1 AS cor0
----
-3
-9
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT + COUNT( * ) * SUM( - col0 ) FROM tab1 AS cor0
----
-681

skipif mysql # not compatible
query I rowsort label-6843
SELECT + COUNT ( * ) * SUM ( - col0 ) FROM tab1 AS cor0
----
-681

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT ALL MAX( DISTINCT - col0 ) col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6844
SELECT ALL MAX ( DISTINCT - col0 ) col1 FROM tab1 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6845
SELECT - CAST( 56 AS SIGNED ) FROM tab1
----
-56
-56
-56

skipif mysql # not compatible
query I rowsort label-6845
SELECT - CAST ( 56 AS INTEGER ) FROM tab1
----
-56
-56
-56

query II rowsort
SELECT col1, col1 + col0 + 62 FROM tab0
----
1
160
21
170
81
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6847
SELECT - COUNT( * ) * - - CAST( 65 AS SIGNED ) FROM tab0
----
-195

skipif mysql # not compatible
query I rowsort label-6847
SELECT - COUNT ( * ) * - - CAST ( 65 AS INTEGER ) FROM tab0
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6848
SELECT ALL + CAST( NULL AS SIGNED ) / + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6848
SELECT ALL + CAST ( NULL AS INTEGER ) / + col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - + col2 * - - col2 / + ( ( - + col2 ) ) ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 6 * - + 33 - 31 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( - 42 ) AS col2 FROM tab0 AS cor0
----
-42
-42
-42

query II rowsort
SELECT DISTINCT + col0 AS col1, - col2 * + col1 AS col1 FROM tab0
----
15
-3807
87
-210
97
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6853
SELECT - COUNT( * ) + - - 22 + AVG ( DISTINCT + 5 ) * + MAX( DISTINCT CAST( NULL AS SIGNED ) ) - 5 - 8 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6853
SELECT - COUNT ( * ) + - - 22 + AVG ( DISTINCT + 5 ) * + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) - 5 - 8 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 61 * - + 63 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col0, col1 + + - col1 * col2 + - col2 * col0 * + col1 AS col2 FROM tab2 AS cor0
----
-46
-55080
-64
-200123
-75
-295269

query I rowsort
SELECT + ( + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> - 53
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT DISTINCT ( + 70 ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-6857
SELECT DISTINCT ( + 70 ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-6858
SELECT ALL + col0 DIV - + col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6858
SELECT ALL + col0 / - + col0 FROM tab2
----
-1
-1
-1

query II rowsort
SELECT + col1, + col1 FROM tab2 WHERE ( ( NULL ) IS NULL )
----
51
51
67
67
77
77

query III rowsort
SELECT * FROM tab0 WHERE ( ( NOT NULL NOT BETWEEN ( - 65 / + col0 + + col2 ) AND NULL ) )
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT 73 / - col0 / - col1 + - - 41 IS NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6862
SELECT + + 99 DIV - col0 + - col2 FROM tab2 AS cor0
----
-25
-41
-59

skipif mysql # not compatible
query I rowsort label-6862
SELECT + + 99 / - col0 + - col2 FROM tab2 AS cor0
----
-25
-41
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT ALL - + 86 + + 60 * + COUNT( + ( + col2 ) ) FROM tab0 cor0
----
94

skipif mysql # not compatible
query I rowsort label-6863
SELECT ALL - + 86 + + 60 * + COUNT ( + ( + col2 ) ) FROM tab0 cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT COUNT( DISTINCT + - col1 ) + - COUNT( * ) + MIN( ALL - - ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6864
SELECT COUNT ( DISTINCT + - col1 ) + - COUNT ( * ) + MIN ( ALL - - ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT ( + + col1 ) - + - 35 + - + 87 FROM tab1
----
-38
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 19 * col0 + 69 col1 FROM tab2
----
-1107
-1298
-782

query III rowsort
SELECT * FROM tab1 WHERE + col1 NOT BETWEEN + col2 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 * + col0 + - col0 FROM tab0
----
-240
-7656
-9506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6869
SELECT DISTINCT - CAST( - 20 AS SIGNED ) col1 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6869
SELECT DISTINCT - CAST ( - 20 AS INTEGER ) col1 FROM tab1 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT - - 22 - + 18 - - COUNT( * ) + - - 63 AS col2 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-6870
SELECT - - 22 - + 18 - - COUNT ( * ) + - - 63 AS col2 FROM tab1 AS cor0
----
70

query I rowsort
SELECT - 65 + + col2 AS col0 FROM tab0 AS cor0
----
-18
-55
34

query I rowsort
SELECT + ( - + col1 ) + col2 + - 52 AS col0 FROM tab2 AS cor0
----
-61
-80
-89

query II rowsort
SELECT ALL - 3 * col1 * + col1, col0 FROM tab1 AS cor0
----
-588
51
-6627
91
-75
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT ALL - ( - SUM( ALL + col0 ) ) col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6874
SELECT ALL - ( - SUM ( ALL + col0 ) ) col2 FROM tab1 AS cor0
----
227

query II rowsort
SELECT ALL + 35 AS col1, col2 FROM tab0 AS cor0
----
35
10
35
47
35
99

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - col2 * - col1 ) NOT BETWEEN NULL AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 95 = + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT SUM( DISTINCT 27 ) col0 FROM tab1
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6878
SELECT SUM ( DISTINCT 27 ) col0 FROM tab1
----
27

query I rowsort
SELECT ALL ( ( + 63 ) ) FROM tab1
----
63
63
63

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) col0 FROM tab1
----
-51
-85
-91

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IN ( - 17 - 14 )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col2 * - 14 - - 89 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col2, - col1 col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT ALL COUNT( + - 7 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6885
SELECT ALL COUNT ( + - 7 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT col1 + - - ( - - col1 ) * + col0 * - - col0 FROM tab1 AS cor0
----
36130
36428
389254

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6887
SELECT * FROM tab1 WHERE - - 58 * 67 BETWEEN - - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-6887
SELECT * FROM tab1 WHERE - - 58 * 67 BETWEEN - - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6888
SELECT * FROM tab2 WHERE + ( + - CAST( + 81 AS DECIMAL ) ) * - col1 NOT IN ( col2 / - col0, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6888
SELECT * FROM tab2 WHERE + ( + - CAST ( + 81 AS REAL ) ) * - col1 NOT IN ( col2 / - col0, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6889
SELECT COUNT( * ) DIV - - MAX( DISTINCT - - 25 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6889
SELECT COUNT ( * ) / - - MAX ( DISTINCT - - 25 ) AS col1 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN ( - col2 - + ( ( - col0 ) ) ) AND col2 + ( + 26 )
----

query I rowsort
SELECT ALL + - 97 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col2 + - + ( - - 85 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT ALL + COUNT( DISTINCT 19 ) * COUNT( * ) - 70 - - MIN( DISTINCT + 12 ) + - 16 FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL + COUNT ( DISTINCT 19 ) * COUNT ( * ) - 70 - - MIN ( DISTINCT + 12 ) + - 16 FROM tab1 AS cor0
----
-71

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 87 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6894
SELECT + col1 + + + col2 DIV - - col1 FROM tab0
----
100
21
81

skipif mysql # not compatible
query I rowsort label-6894
SELECT + col1 + + + col2 / - - col1 FROM tab0
----
100
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6895
SELECT 22 DIV - col1 + + col1 AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6895
SELECT 22 / - col1 + + col1 AS col2 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL - + ( 44 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT col0 * - + col2 FROM tab0 cor0
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN - col1 * - ( - - ( + col0 ) ) AND - 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 * 13 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6899
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 * 13 = NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6901
SELECT ALL - + col1 DIV - - col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6901
SELECT ALL - + col1 / - - col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6902
SELECT - col1 DIV + ( + col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6902
SELECT - col1 / + ( + col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6903
SELECT 56 * + 21 * + - ( + - col2 ) FROM tab1 WHERE NOT col1 IN ( + CAST( col2 AS SIGNED ) + + - col2 )
----
112896
69384
79968

skipif mysql # not compatible
query I rowsort label-6903
SELECT 56 * + 21 * + - ( + - col2 ) FROM tab1 WHERE NOT col1 IN ( + CAST ( col2 AS INTEGER ) + + - col2 )
----
112896
69384
79968

onlyif mysql # DIV for integer division: 
query I rowsort label-6904
SELECT + col1 DIV - 61 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6904
SELECT + col1 / - 61 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, - col2 * - col1 - - 21 FROM tab2
----
46
1194
64
3101
75
3907

query II rowsort
SELECT 22 AS col0, - col0 AS col1 FROM tab1
----
22
-51
22
-85
22
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6907
SELECT - 29 * CAST( NULL AS SIGNED ) + + col0 * 48 + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6907
SELECT - 29 * CAST ( NULL AS INTEGER ) + + col0 * 48 + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6908
SELECT ALL + COUNT( + CAST( - col1 AS SIGNED ) ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6908
SELECT ALL + COUNT ( + CAST ( - col1 AS INTEGER ) ) col1 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6909
SELECT DISTINCT + CAST( + 93 AS SIGNED ) + COUNT( * ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-6909
SELECT DISTINCT + CAST ( + 93 AS INTEGER ) + COUNT ( * ) FROM tab0 AS cor0
----
96

query I rowsort
SELECT col0 + col2 + 57 * - col0 * + col1 FROM tab1
----
-24081
-243630
-40551

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT ALL + COUNT( * ) + + SUM( + col0 ) FROM tab2
----
188

skipif mysql # not compatible
query I rowsort label-6911
SELECT ALL + COUNT ( * ) + + SUM ( + col0 ) FROM tab2
----
188

query I rowsort
SELECT ALL 60 + + 10 FROM tab2
----
70
70
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6913
SELECT ALL col0 + - + CAST( - col1 AS SIGNED ) AS col0 FROM tab2
----
141
142
97

skipif mysql # not compatible
query I rowsort label-6913
SELECT ALL col0 + - + CAST ( - col1 AS INTEGER ) AS col0 FROM tab2
----
141
142
97

query I rowsort
SELECT + 62 + - col2 + + - col2 * + col0 FROM tab1
----
-4930
-5012
-6194

query I rowsort
SELECT 86 AS col0 FROM tab1 WHERE - - col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT DISTINCT + 72 - MAX( 65 ) col0 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6916
SELECT DISTINCT + 72 - MAX ( 65 ) col0 FROM tab2 AS cor0
----
7

query I rowsort
SELECT + col0 * - 79 FROM tab1 AS cor0
----
-4029
-6715
-7189

onlyif mysql # DIV for integer division: 
query I rowsort label-6918
SELECT ALL 51 + - 75 DIV col0 FROM tab0 AS cor0
----
46
51
51

skipif mysql # not compatible
query I rowsort label-6918
SELECT ALL 51 + - 75 / col0 FROM tab0 AS cor0
----
46
51
51

onlyif mysql # DIV for integer division: 
query I rowsort label-6919
SELECT col2 DIV - 48 AS col0 FROM tab1 cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-6919
SELECT col2 / - 48 AS col0 FROM tab1 cor0
----
-1
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6920
SELECT ALL CAST( + ( 91 ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + col1 * col2 IS NULL
----
91
91
91

skipif mysql # not compatible
query I rowsort label-6920
SELECT ALL CAST ( + ( 91 ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + col1 * col2 IS NULL
----
91
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6921
SELECT DISTINCT - 4 * + ( - 33 ) + + - CAST( col0 AS SIGNED ) FROM tab1
----
41
47
81

skipif mysql # not compatible
query I rowsort label-6921
SELECT DISTINCT - 4 * + ( - 33 ) + + - CAST ( col0 AS INTEGER ) FROM tab1
----
41
47
81

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL col2 * col2 + + col1 AS col0 FROM tab0
----
121
2290
9802

query I rowsort
SELECT ALL - ( + col1 ) - + - col1 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= - + col2
----

query I rowsort
SELECT - - 86 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 12 col2 FROM tab1 AS cor0
----
-12

query I rowsort
SELECT DISTINCT col2 * + - 65 AS col1 FROM tab0 AS cor0
----
-3055
-6435
-650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + - ( + 51 ) * - + col1 col2 FROM tab0 AS cor0
----
-22491
-334611
-51

query I rowsort
SELECT - - col2 * + 90 FROM tab1 AS cor0
----
5310
6120
8640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6931
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 * + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6931
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 * + col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 * + - col0 + - - col1 + - col0 FROM tab1 AS cor0
----
-2638
-7305
-8325

onlyif mysql # DIV for integer division: 
query I rowsort label-6933
SELECT ALL - ( + col2 ) DIV - - col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6933
SELECT ALL - ( + col2 ) / - - col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col0 * + - 62 * + + col1 * + col2 FROM tab1 AS cor0
----
-1554650
-18031832
-4249728

query I rowsort
SELECT - ( col1 ) * - - ( - col2 ) + + col0 FROM tab2 AS cor0
----
1219
3144
3961

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6936
SELECT ALL col0 col1, 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-6936
SELECT ALL col0 col1, CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col1 - + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6938
SELECT - COUNT( * ) DIV 93 col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6938
SELECT - COUNT ( * ) / 93 col1 FROM tab1
----
0

query I rowsort
SELECT ALL + col1 + + - 39 + col0 AS col0 FROM tab1 AS cor0
----
26
51
99

query III rowsort
SELECT * FROM tab2 WHERE NULL > - + 80 * - 31 - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT - 39 + - + COUNT( * ) FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-6941
SELECT - 39 + - + COUNT ( * ) FROM tab2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6942
SELECT - CAST( NULL AS SIGNED ) + col1 * - 62 * 18 * + - col2 / - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6942
SELECT - CAST ( NULL AS INTEGER ) + col1 * - 62 * 18 * + - col2 / - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6943
SELECT DISTINCT + COUNT( * ) AS col0, 14 FROM tab2 AS cor0
----
3
14

skipif mysql # not compatible
query II rowsort label-6943
SELECT DISTINCT + COUNT ( * ) AS col0, 14 FROM tab2 AS cor0
----
3
14

query I rowsort
SELECT - - 14 + - col2 FROM tab2 AS cor0
----
-26
-44
-9

query I rowsort
SELECT + col0 + + 12 FROM tab0 AS cor0
----
109
27
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6946
SELECT + col1 + - col1 DIV + col0 AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6946
SELECT + col1 + - col1 / + col0 AS col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT 68 + 30 * - - 3 FROM tab1 AS cor0
----
158
158
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6948
SELECT - SUM( ALL + + 4 ) + - COUNT( * ), - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
-15
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6948
SELECT - SUM ( ALL + + 4 ) + - COUNT ( * ), - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
-15
NULL

query I rowsort
SELECT col1 * + - col0 + 28 AS col1 FROM tab2 AS cor0
----
-2318
-4900
-4997

query I rowsort
SELECT ALL col2 * + 34 + - 76 + - 58 * + col2 * - + 25 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - col0 + - + col2 AS col0 FROM tab0 cor0
----
-196
-62
-97

query I rowsort
SELECT - + col2 + - col2 + + - col1 FROM tab0 AS cor0
----
-175
-199
-41

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6953
SELECT ALL 6 DIV - + 91 + - + col0 * + + CAST( - - col0 AS SIGNED ) FROM tab2 AS cor0
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-6953
SELECT ALL 6 / - + 91 + - + col0 * + + CAST ( - - col0 AS INTEGER ) FROM tab2 AS cor0
----
-2116
-4096
-5625

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < + 12
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 97 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 94 >= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT MIN( + 21 ) * - 36 AS col2 FROM tab2
----
-756

skipif mysql # not compatible
query I rowsort label-6957
SELECT MIN ( + 21 ) * - 36 AS col2 FROM tab2
----
-756

query I rowsort
SELECT + col1 * + col2 AS col1 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
210
3807
99

query I rowsort
SELECT 61 - + col0 AS col0 FROM tab1 AS cor0
----
-24
-30
10

query III rowsort
SELECT * FROM tab1 WHERE NOT 1 >= 97
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL >= 32 * + 72
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6962
SELECT COUNT( * ) DIV + 68 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6962
SELECT COUNT ( * ) / + 68 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6963
SELECT ALL + - CAST( NULL AS SIGNED ) * - - col1 * col2 + ( - col1 ) + - + 19 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6963
SELECT ALL + - CAST ( NULL AS INTEGER ) * - - col1 * col2 + ( - col1 ) + - + 19 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6964
SELECT ALL MAX( - + 16 ) AS col2 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL MAX ( - + 16 ) AS col2 FROM tab1 AS cor0
----
-16

query I rowsort
SELECT - + col2 * - - ( + 98 ) AS col0 FROM tab0 AS cor0
----
-4606
-9702
-980

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, - col2 + col1 + col2 + 10 FROM tab0
----
10
31
47
91
99
11

query II rowsort
SELECT + col0, - col0 FROM tab2
----
46
-46
64
-64
75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6968
SELECT - 70 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6968
SELECT - 70 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 33 FROM tab0 WHERE NOT - - 37 IS NULL
----
33
33
33

query I rowsort
SELECT ALL + ( + 64 ) * col1 AS col2 FROM tab2
----
3264
4288
4928

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT DISTINCT 84 * + + COUNT( * ) FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-6971
SELECT DISTINCT 84 * + + COUNT ( * ) FROM tab1
----
252

query III rowsort
SELECT * FROM tab0 WHERE NOT 0 < - 22
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6973
SELECT 89 DIV + + 25 FROM tab0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-6973
SELECT 89 / + + 25 FROM tab0
----
3
3
3

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 16 < NULL
----

query I rowsort
SELECT DISTINCT - col0 * + + col1 + - col2 * - ( - col1 ) FROM tab1
----
-2058
-720
-7473

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT ALL + - SUM( - 51 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
459

skipif mysql # not compatible
query I rowsort label-6977
SELECT ALL + - SUM ( - 51 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
459

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT ( 78 + - col0 ) IS NOT NULL )
----

query I rowsort
SELECT - - col1 + + col0 AS col2 FROM tab2 AS cor0 WHERE 98 + - col0 IS NOT NULL
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT 47 * COUNT( ALL - col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6980
SELECT 47 * COUNT ( ALL - col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT MAX( + - col2 ) * + - 14 FROM tab1 AS cor0
----
826

skipif mysql # not compatible
query I rowsort label-6981
SELECT MAX ( + - col2 ) * + - 14 FROM tab1 AS cor0
----
826

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 - 20, col0 col0 FROM tab0 AS cor0
----
-107
87
-117
97
-35
15

query I rowsort
SELECT ALL col0 + - 77 FROM tab1 AS cor0
----
-26
14
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT + 43 - + - MAX( + - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6984
SELECT + 43 - + - MAX ( + - col0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT DISTINCT 86 * - COUNT( * ) AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
-258

skipif mysql # not compatible
query I rowsort label-6985
SELECT DISTINCT 86 * - COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
-258

query II rowsort
SELECT - col1 + 83 AS col2, - col2 * col0 * - col2 FROM tab0 AS cor0
----
2
33135
62
8700
82
950697

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6987
SELECT ALL + - 79 - + - MIN( - col1 ) + + MAX( - - col0 ) * COUNT( * ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN 37 AND col1 AND NOT 77 >= + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6987
SELECT ALL + - 79 - + - MIN ( - col1 ) + + MAX ( - - col0 ) * COUNT ( * ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN 37 AND col1 AND NOT 77 >= + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ( + 82 ) + - 43 + + col1 AS col0 FROM tab0
----
120
40
60

query I rowsort
SELECT 19 + 95 FROM tab1
----
114
114
114

query III rowsort
SELECT * FROM tab2 WHERE NULL < ( - col2 )
----

query I rowsort
SELECT ALL + + 8 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col1 * col2 + col0 + 65 AS col0 FROM tab0
----
261
362
3887

query II rowsort
SELECT ALL 41 AS col1, col0 FROM tab2
----
41
46
41
64
41
75

query II rowsort
SELECT DISTINCT + col1 * - 56 - + col2, - 88 + col0 AS col2 FROM tab2
----
-2879
-42
-3810
-13
-4352
-24

query III rowsort
SELECT * FROM tab1 WHERE 96 * - - ( col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT ALL + COUNT( * ) - - 98 FROM tab2
----
101

skipif mysql # not compatible
query I rowsort label-6996
SELECT ALL + COUNT ( * ) - - 98 FROM tab2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT + MIN( DISTINCT - + col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6997
SELECT + MIN ( DISTINCT - + col1 ) AS col1 FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6998
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE col0 + col2 + - col2 + + col2 BETWEEN - + col1 * + 69 * + + 72 AND col1
----

skipif mysql # not compatible
query I rowsort label-6998
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE col0 + col2 + - col2 + + col2 BETWEEN - + col1 * + 69 * + + 72 AND col1
----

query I rowsort
SELECT - + 15 AS col1 FROM tab0 AS cor0
----
-15
-15
-15

query I rowsort
SELECT ALL col1 * col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT + + COUNT( DISTINCT + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7001
SELECT + + COUNT ( DISTINCT + col2 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NULL > ( ( - - 72 ) )
----

query I rowsort
SELECT DISTINCT + 60 + - ( + ( col2 ) ) FROM tab0 AS cor0 WHERE NULL IN ( + col2 - + col2 * + 47 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 17 col0 FROM tab0 AS cor0
----
17
17
17

query I rowsort
SELECT + col1 * - 45 + + 4 - 33 AS col2 FROM tab2 AS cor0
----
-2324
-3044
-3494

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 13 col1 FROM tab0 AS cor0
----
-13
-13
-13

query I rowsort
SELECT ALL + 87 AS col1 FROM tab2 cor0
----
87
87
87

query I rowsort
SELECT DISTINCT + col0 * 31 FROM tab0
----
2697
3007
465

onlyif mysql # DIV for integer division: 
query I rowsort label-7009
SELECT 17 DIV - - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7009
SELECT 17 / - - col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - ( + 25 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query II rowsort
SELECT + col1, - 1 FROM tab0
----
1
-1
21
-1
81
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 * - + 48 * - col2 col2, - 15 FROM tab0 cor0
----
33840
-15
41760
-15
460944
-15

query I rowsort
SELECT - + 47 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT + 34 + + 63 - - 60 FROM tab2
----
157
157
157

query I rowsort
SELECT DISTINCT + - ( - 46 ) AS col0 FROM tab2 WHERE NOT col1 / - col2 <= - col2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7016
SELECT + + 74 + + - 26 * - CAST( 0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
74
74
74

skipif mysql # not compatible
query I rowsort label-7016
SELECT + + 74 + + - 26 * - CAST ( 0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT COUNT( + + col1 ) + - + 57 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-7017
SELECT COUNT ( + + col1 ) + - + 57 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
174

query I rowsort
SELECT + col1 + - - col0 * col0 FROM tab1 cor0
----
2615
7230
8328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7019
SELECT 90 * - - 86 + - - CAST( + + col1 AS SIGNED ) + - + col1 * CAST( - + col0 AS SIGNED ) FROM tab2 AS cor0
----
10137
12745
12832

skipif mysql # not compatible
query I rowsort label-7019
SELECT 90 * - - 86 + - - CAST ( + + col1 AS INTEGER ) + - + col1 * CAST ( - + col0 AS INTEGER ) FROM tab2 AS cor0
----
10137
12745
12832

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT ALL SUM( DISTINCT + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7020
SELECT ALL SUM ( DISTINCT + col1 ) FROM tab2 AS cor0
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 96 + + col0 * + col0 col0 FROM tab1 AS cor0
----
2505
7129
8185

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 col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + 63 + - col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( NOT + col1 * 80 * + col2 NOT BETWEEN ( NULL ) AND NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7025
SELECT + MAX( ALL - + 32 ) AS col0, 2 DIV - ( COUNT( * ) ) AS col0, 5 FROM tab1
----
-32
0
5

skipif mysql # not compatible
query III rowsort label-7025
SELECT + MAX ( ALL - + 32 ) AS col0, 2 / - ( COUNT ( * ) ) AS col0, 5 FROM tab1
----
-32
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT DISTINCT + COUNT( * ) - - SUM( ALL + - col0 ) * + 81 FROM tab2
----
-14982

skipif mysql # not compatible
query I rowsort label-7026
SELECT DISTINCT + COUNT ( * ) - - SUM ( ALL + - col0 ) * + 81 FROM tab2
----
-14982

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT - - COUNT( * ) FROM tab2 WHERE + col1 * - 8 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7027
SELECT - - COUNT ( * ) FROM tab2 WHERE + col1 * - 8 IS NULL
----
0

query I rowsort
SELECT ALL - 70 * - col1 + 31 AS col2 FROM tab2
----
3601
4721
5421

query I rowsort
SELECT + col1 - + + col2 * - col2 FROM tab2
----
1677
3431
580

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7030
SELECT DISTINCT 86 DIV + COUNT( * ), COUNT( * ) AS col0 FROM tab1
----
28
3

skipif mysql # not compatible
query II rowsort label-7030
SELECT DISTINCT 86 / + COUNT ( * ), COUNT ( * ) AS col0 FROM tab1
----
28
3

query I rowsort
SELECT + col0 + + ( - + col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-45
23
26

query II rowsort
SELECT ALL + 72 * + col2 AS col0, col2 FROM tab2 AS cor0
----
1656
23
2880
40
4176
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7033
SELECT DISTINCT col2 DIV - 95 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7033
SELECT DISTINCT col2 / - 95 FROM tab1 AS cor0
----
-1
0

query III rowsort
SELECT 77 * ( 17 ), 24 AS col0, - col1 AS col2 FROM tab0
----
9 values hashing to 942a920743cbc10b9cfb9c1a8250d905

query I rowsort
SELECT + ( + 24 ) FROM tab2
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT DISTINCT - COUNT( 7 ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7036
SELECT DISTINCT - COUNT ( 7 ) col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + + 30 FROM tab2 cor0
----
30

query II rowsort
SELECT DISTINCT + col0 + + col2 + col0 AS col0, + col0 AS col0 FROM tab1 AS cor0
----
198
51
229
85
250
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7039
SELECT ALL col1 + + 37 - - ( CAST( NULL AS SIGNED ) ) * - + col1 * 50 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL col1 + + 37 - - ( CAST ( NULL AS INTEGER ) ) * - + col1 * 50 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 90 + - 20 col1 FROM tab0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT DISTINCT - SUM( DISTINCT - 17 ) AS col0 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-7041
SELECT DISTINCT - SUM ( DISTINCT - 17 ) AS col0 FROM tab2
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-7042
SELECT ( + COUNT( * ) ) AS col1, 79 FROM tab0
----
3
79

skipif mysql # not compatible
query II rowsort label-7042
SELECT ( + COUNT ( * ) ) AS col1, 79 FROM tab0
----
3
79

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 10 BETWEEN + - 33 / col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7044
SELECT + 5 * - + col0 + CAST( NULL AS SIGNED ) * + 92 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7044
SELECT + 5 * - + col0 + CAST ( NULL AS INTEGER ) * + 92 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT ALL - + MAX( col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-7045
SELECT ALL - + MAX ( col1 ) AS col1 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT 70 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7047
SELECT - col2 + - - CAST( - + 22 AS SIGNED ) col0 FROM tab0 AS cor0
----
-121
-32
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7047
SELECT - col2 + - - CAST ( - + 22 AS INTEGER ) col0 FROM tab0 AS cor0
----
-121
-32
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 70 + 64 col0 FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT - 57 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-7049
SELECT - 57 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7050
SELECT ALL - 59 + - - COUNT( * ) * - ( - + ( 1 ) ) DIV + 84 + COUNT( * ) FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-7050
SELECT ALL - 59 + - - COUNT ( * ) * - ( - + ( 1 ) ) / + 84 + COUNT ( * ) FROM tab1 AS cor0
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-7051
SELECT + + ( COUNT( * ) ) + COUNT( * ) + 75 AS col2, 44 - + 82 AS col2 FROM tab1 AS cor0
----
81
-38

skipif mysql # not compatible
query II rowsort label-7051
SELECT + + ( COUNT ( * ) ) + COUNT ( * ) + 75 AS col2, 44 - + 82 AS col2 FROM tab1 AS cor0
----
81
-38

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * + 60 / - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - col1, + col2 FROM tab2 cor0
----
-51
23
-67
58
-77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - + 0 col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT - + SUM( - col2 ) + ( + - MAX( - col0 ) ) - + - ( 18 ) AS col0 FROM tab1 AS cor0
----
292

skipif mysql # not compatible
query I rowsort label-7055
SELECT - + SUM ( - col2 ) + ( + - MAX ( - col0 ) ) - + - ( 18 ) AS col0 FROM tab1 AS cor0
----
292

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + + col1 * + 43 col0 FROM tab1 cor0
----
2089
274
698

query I rowsort
SELECT DISTINCT ( - col0 ) * + + ( + col0 ) AS col0 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT - COUNT( * ) * + 40 + 70 AS col0 FROM tab2 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-7058
SELECT - COUNT ( * ) * + 40 + 70 AS col0 FROM tab2 AS cor0
----
-50

query I rowsort
SELECT DISTINCT - col2 + + + 15 FROM tab2
----
-25
-43
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT - COUNT( * ) + - + ( - 71 ) AS col1 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-7060
SELECT - COUNT ( * ) + - + ( - 71 ) AS col1 FROM tab0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT ALL SUM( ALL col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-7061
SELECT ALL SUM ( ALL col2 ) AS col1 FROM tab1
----
223

query I rowsort
SELECT ALL - 88 * - + ( + col1 ) FROM tab1
----
1232
4136
440

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT ALL COUNT( ALL - + col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7063
SELECT ALL COUNT ( ALL - + col2 ) AS col0 FROM tab2
----
3

query II rowsort
SELECT ALL - 23 AS col1, col1 AS col2 FROM tab1 cor0
----
-23
14
-23
47
-23
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT DISTINCT MIN( + col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-7065
SELECT DISTINCT MIN ( + col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - ( - - ( col0 ) ) col0 FROM tab0 cor0
----
1
-97
21
-87
81
-15

query II rowsort
SELECT + col0 * - - col2, - 84 AS col2 FROM tab0 AS cor0 WHERE NOT 38 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 12 IS NOT NULL
----

query I rowsort
SELECT + + 54 FROM tab1 WHERE NOT col0 IS NULL
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT ALL + - 93 + - + COUNT( * ) + + 94 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-8

skipif mysql # not compatible
query I rowsort label-7070
SELECT ALL + - 93 + - + COUNT ( * ) + + 94 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT ALL + SUM( DISTINCT + - col2 ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-7071
SELECT ALL + SUM ( DISTINCT + - col2 ) AS col2 FROM tab0
----
-156

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * col1 * + col1 + - col0 FROM tab2 AS cor0
----
237096
260287
59777

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN NULL AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col0 FROM tab2 AS cor0
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT ALL + + MIN( + + 63 ) FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-7076
SELECT ALL + + MIN ( + + 63 ) FROM tab0 AS cor0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7077
SELECT CAST( + + col0 AS SIGNED ) + 98 AS col0 FROM tab0 AS cor0
----
113
185
195

skipif mysql # not compatible
query I rowsort label-7077
SELECT CAST ( + + col0 AS INTEGER ) + 98 AS col0 FROM tab0 AS cor0
----
113
185
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7078
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE 79 / - CAST( + + 98 AS SIGNED ) * + + col0 - - col1 * + + col1 * + + 25 + + - 76 + col1 IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7078
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE 79 / - CAST ( + + 98 AS INTEGER ) * + + col0 - - col1 * + + col1 * + + 25 + + - 76 + col1 IS NOT NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7079
SELECT ALL + 21 * col0 DIV - col1 + + col1 FROM tab2 AS cor0
----
33
44
60

skipif mysql # not compatible
query I rowsort label-7079
SELECT ALL + 21 * col0 / - col1 + + col1 FROM tab2 AS cor0
----
33
44
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7080
SELECT + COUNT( - + col1 ) + + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7080
SELECT + COUNT ( - + col1 ) + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col1 + + - col0 FROM tab1 WHERE 80 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 / + 79 * - col1 >= - 15
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( + 87 ) * - col1 * - + col2 FROM tab1
----
116928
25665
278052

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7084
SELECT + 92 * 7 + 23 AS col0 FROM tab1 WHERE + 41 + - CAST( + col1 AS DECIMAL ) NOT BETWEEN ( - 14 ) + + col0 / - ( + CAST( 41 AS DECIMAL ) ) AND + col0
----

skipif mysql # not compatible
query I rowsort label-7084
SELECT + 92 * 7 + 23 AS col0 FROM tab1 WHERE + 41 + - CAST ( + col1 AS REAL ) NOT BETWEEN ( - 14 ) + + col0 / - ( + CAST ( 41 AS REAL ) ) AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7085
SELECT - col1 DIV + 5 AS col0 FROM tab0 AS cor0
----
-16
-4
0

skipif mysql # not compatible
query I rowsort label-7085
SELECT - col1 / + 5 AS col0 FROM tab0 AS cor0
----
-16
-4
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 <> - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7087
SELECT - 84 DIV + COUNT( * ) + 52 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
43

skipif mysql # not compatible
query I rowsort label-7087
SELECT - 84 / + COUNT ( * ) + 52 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
43

query I rowsort
SELECT ALL AVG ( - 67 ) FROM tab1 AS cor0 WHERE ( NULL ) IN ( + col0 * col0 / + ( + + 20 ) )
----
NULL

query I rowsort
SELECT ALL + col0 * - ( col1 ) AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7090
SELECT DISTINCT + - 96 * col0 * + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7090
SELECT DISTINCT + - 96 * col0 * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 60, 73 col0 FROM tab0 AS cor0 WHERE NOT + 71 <= - ( 3 ) * col2 + col0
----
-60
73
-60
73
-60
73

query I rowsort
SELECT - col0 * - + 51 FROM tab0
----
4437
4947
765

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT DISTINCT - COUNT( - 35 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7093
SELECT DISTINCT - COUNT ( - 35 ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT + 40 * + + ( + 59 ) FROM tab0
----
2360

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT + SUM( + - 60 ) col0 FROM tab2
----
-180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7095
SELECT + SUM ( + - 60 ) col0 FROM tab2
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT MAX( - 2 ) AS col0 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-7096
SELECT MAX ( - 2 ) AS col0 FROM tab1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT - MAX( ALL - col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7097
SELECT - MAX ( ALL - col2 ) AS col2 FROM tab2
----
23

query I rowsort
SELECT - col2 * + 70 FROM tab1
----
-4130
-4760
-6720

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT MAX( + + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7099
SELECT MAX ( + + col2 ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT - + ( + 47 ) AS col1 FROM tab2 AS cor0
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 * - 94 col2 FROM tab0
----
-7896
-7896
-7896

query II rowsort
SELECT ALL - 17 * col1 AS col1, + col2 + col1 - 18 AS col0 FROM tab1
----
-238
92
-799
97
-85
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT MAX( - 59 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7103
SELECT MAX ( - 59 ) AS col1 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE - col0 * - col1 / + col0 IS NULL
----

query II rowsort
SELECT - + col0 AS col2, - col2 AS col1 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

query I rowsort
SELECT ALL + 33 * + col1 AS col2 FROM tab1 AS cor0
----
1551
165
462

query I rowsort
SELECT DISTINCT col2 + 37 FROM tab0 cor0
----
136
47
84

query II rowsort
SELECT - 49 AS col0, col1 AS col2 FROM tab1 AS cor0
----
-49
14
-49
47
-49
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7109
SELECT DISTINCT COUNT( * ) * - 50 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7109
SELECT DISTINCT COUNT ( * ) * - 50 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 94 * - + col1 * col0 / - - col0 + - col0 / - ( - 93 ) + - ( + 37 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT + MIN( col1 ) col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7111
SELECT + MIN ( col1 ) col0 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT + COUNT( ALL 55 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7112
SELECT + COUNT ( ALL 55 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT DISTINCT SUM( + 67 ) FROM tab0
----
201

skipif mysql # not compatible
query I rowsort label-7113
SELECT DISTINCT SUM ( + 67 ) FROM tab0
----
201

query II rowsort
SELECT 53 + 29 AS col1, col1 AS col1 FROM tab0
----
82
1
82
21
82
81

query I rowsort
SELECT ALL + col1 * - 76 + 21 AS col1 FROM tab1
----
-1043
-3551
-359

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT + 96 + + COUNT( DISTINCT + 2 ) FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-7116
SELECT + 96 + + COUNT ( DISTINCT + 2 ) FROM tab2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT DISTINCT COUNT( ALL 80 ) FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7117
SELECT DISTINCT COUNT ( ALL 80 ) FROM tab0, tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab2 WHERE 63 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT ALL - SUM( 96 ) AS col2 FROM tab0
----
-288

skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL - SUM ( 96 ) AS col2 FROM tab0
----
-288

query I rowsort
SELECT ALL + col2 * 91 + - ( + - col1 ) AS col2 FROM tab1 AS cor0
----
5374
6235
8750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 39 AS col1, col0 * - + col0 col1 FROM tab0
----
39
-225
39
-7569
39
-9409

query II rowsort
SELECT ALL + col0 - + col2 - - - 34 AS col2, + col0 * - 70 FROM tab1
----
-11
-6370
-79
-3570
-8
-5950

onlyif mysql # DIV for integer division: 
query I rowsort label-7123
SELECT + + 29 DIV + ( + ( - + col2 ) ) col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7123
SELECT + + 29 / + ( + ( - + col2 ) ) col1 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT + 66 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-7124
SELECT + 66 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7125
SELECT + - 5 DIV 62 * + - COUNT( * ) + + 2 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-7125
SELECT + - 5 / 62 * + - COUNT ( * ) + + 2 FROM tab0 AS cor0
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7126
SELECT DISTINCT + - 52, - ( - 38 ) * + 59 * + + 84 + + - ( + col2 ) * - col0 + col1 * + col2 * col1 * - - CAST( NULL AS DECIMAL ) col2 FROM tab1 AS cor0
----
-52
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7126
SELECT DISTINCT + - 52, - ( - 38 ) * + 59 * + + 84 + + - ( + col2 ) * - col0 + col1 * + col2 * col1 * - - CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0
----
-52
NULL

query I rowsort
SELECT - 40 / + + 41 * col0 AS col2 FROM tab1 WHERE NOT - + 45 <> NULL
----

query I rowsort
SELECT + col2 * ( + - col0 ) FROM tab2
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7129
SELECT DISTINCT MIN( ALL - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7129
SELECT DISTINCT MIN ( ALL - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT + col2 / - - col0 FROM tab2 WHERE NOT - col1 * + - ( col2 ) * + - col1 BETWEEN NULL AND - col0 + - col1 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT + - 23 + COUNT( * ) FROM tab2 WHERE NOT NULL < - + col2
----
-23

skipif mysql # not compatible
query I rowsort label-7131
SELECT + - 23 + COUNT ( * ) FROM tab2 WHERE NOT NULL < - + col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT DISTINCT COUNT( ALL - + 42 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7132
SELECT DISTINCT COUNT ( ALL - + 42 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + + col1 ) col1 FROM tab1 AS cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 67 col2 FROM tab2 AS cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT ALL - 69 / MAX( + ( + col2 ) ) AS col1 FROM tab0 cor0 WHERE NULL >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL - 69 / MAX ( + ( + col2 ) ) AS col1 FROM tab0 cor0 WHERE NULL >= ( NULL )
----
NULL

query I rowsort
SELECT DISTINCT + 73 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT ALL - MAX( ALL col0 ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-7137
SELECT ALL - MAX ( ALL col0 ) AS col0 FROM tab1
----
-91

query I rowsort
SELECT 54 * - - col1 * 26 FROM tab1
----
19656
65988
7020

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 + + - col2 col0 FROM tab1
----
-36
-8
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT 3 + + - COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-6

skipif mysql # not compatible
query I rowsort label-7140
SELECT 3 + + - COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT COUNT( * ) + - 60 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-7141
SELECT COUNT ( * ) + - 60 FROM tab1 AS cor0
----
-57

query III rowsort
SELECT * FROM tab1 cor0 WHERE 55 * + 58 * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 55 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7144
SELECT - - col0 DIV 74 + + col0 + - 73 col0 FROM tab0 AS cor0
----
-58
15
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7144
SELECT - - col0 / 74 + + col0 + - 73 col0 FROM tab0 AS cor0
----
-58
15
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT ALL - COUNT( * ) * + ( + ( - AVG ( + col0 ) ) ) + + - 55 AS col2 FROM tab1 AS cor0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7145
SELECT ALL - COUNT ( * ) * + ( + ( - AVG ( + col0 ) ) ) + + - 55 AS col2 FROM tab1 AS cor0 WHERE NULL > NULL
----
NULL

query I rowsort
SELECT ALL - col1 + - - 22 FROM tab0 cor0
----
-59
1
21

query I rowsort
SELECT DISTINCT col0 * - - ( + 6 ) + 41 AS col1 FROM tab0
----
131
563
623

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT ALL COUNT( * ) + - - 53 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-7148
SELECT ALL COUNT ( * ) + - - 53 FROM tab2
----
56

query I rowsort
SELECT ALL 94 * col2 FROM tab1
----
5546
6392
9024

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT - - ( + COUNT( * ) ) AS col2 FROM tab1 WHERE - 93 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7150
SELECT - - ( + COUNT ( * ) ) AS col2 FROM tab1 WHERE - 93 IS NOT NULL
----
3

query I rowsort
SELECT col0 * - 71 FROM tab1
----
-3621
-6035
-6461

onlyif mysql # DIV for integer division: 
query I rowsort label-7152
SELECT DISTINCT - ( - ( + col1 ) ) DIV 45 - - 45 AS col2 FROM tab0
----
45
46

skipif mysql # not compatible
query I rowsort label-7152
SELECT DISTINCT - ( - ( + col1 ) ) / 45 - - 45 AS col2 FROM tab0
----
45
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT ALL + + MIN( - col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-7153
SELECT ALL + + MIN ( - col2 ) AS col2 FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT ALL COUNT( * ) + - + COUNT( * ) + + 12 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-7154
SELECT ALL COUNT ( * ) + - + COUNT ( * ) + + 12 FROM tab1 AS cor0
----
12

query I rowsort
SELECT ALL ( - + ( + - 22 ) ) * + + col1 FROM tab1
----
1034
110
308

query II rowsort
SELECT 45 + 87 AS col1, + col2 * col2 FROM tab1
----
132
3481
132
4624
132
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7157
SELECT DISTINCT + CAST( + - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT + 35 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7157
SELECT DISTINCT + CAST ( + - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT + 35 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT + - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + 15 * col2 <= + + 92 + - col2 + - col2
----
-3

skipif mysql # not compatible
query I rowsort label-7158
SELECT + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + 15 * col2 <= + + 92 + - col2 + - col2
----
-3

query I rowsort
SELECT + 45 * + col0 + - - col0 AS col0 FROM tab1 AS cor0
----
2346
3910
4186

query I rowsort
SELECT DISTINCT + - 16 AS col0 FROM tab2 AS cor0
----
-16

query II rowsort
SELECT ALL col1, col0 + col0 AS col1 FROM tab0
----
1
194
21
174
81
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT DISTINCT MIN( + col1 ) * 80 + - 28 FROM tab2
----
4052

skipif mysql # not compatible
query I rowsort label-7162
SELECT DISTINCT MIN ( + col1 ) * 80 + - 28 FROM tab2
----
4052

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7163
SELECT + MIN( + 99 ) * - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7163
SELECT + MIN ( + 99 ) * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT col1 * 30 * - col1 * - col0 FROM tab0
----
1151010
2910
2952450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 col2 FROM tab1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7166
SELECT + CAST( - COUNT( col1 ) AS SIGNED ) / - AVG ( + col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND ( 46 ) * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7166
SELECT + CAST ( - COUNT ( col1 ) AS INTEGER ) / - AVG ( + col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND ( 46 ) * + col1
----
NULL

query I rowsort
SELECT + 23 FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( + 39 + + col2 )
----

query I rowsort
SELECT + col0 * col1 + 4 AS col1 FROM tab1
----
4281
429
718

query I rowsort
SELECT ALL col1 + + 50 FROM tab2
----
101
117
127

query III rowsort
SELECT ALL * FROM tab1 WHERE - 55 + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 + 37 FROM tab1 WHERE NOT - col2 IS NULL
----
-14
-48
-54

query I rowsort
SELECT ALL + col2 * 0 AS col0 FROM tab0 WHERE NOT + col0 * - 96 >= 1 * - col1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 / + col0 col2 FROM tab0 WHERE NOT NULL BETWEEN + 98 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7175
SELECT - col1 / + 38 + CAST( NULL AS SIGNED ) / - 79 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7175
SELECT - col1 / + 38 + CAST ( NULL AS INTEGER ) / - 79 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT + MAX( DISTINCT + col2 ) FROM tab0 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7176
SELECT + MAX ( DISTINCT + col2 ) FROM tab0 WHERE - col0 IS NULL
----
NULL

query I rowsort
SELECT - 17 * col1 + + col0 AS col0 FROM tab0
----
-1362
-270
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7178
SELECT 64 DIV MIN( DISTINCT col0 ) + + COUNT( * ) AS col0 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-7178
SELECT 64 / MIN ( DISTINCT col0 ) + + COUNT ( * ) AS col0 FROM tab1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7179
SELECT DISTINCT MIN( col0 ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7179
SELECT DISTINCT MIN ( col0 ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = - 5
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + ( + col1 ) + + 0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 48 + + col1 * col0 FROM tab1
----
4325
473
762

query I rowsort
SELECT 16 * ( + col1 ) AS col0 FROM tab2
----
1072
1232
816

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( col2 ) AND + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7185
SELECT 53 DIV 99 + + COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7185
SELECT 53 / 99 + + COUNT ( * ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 ) + col2 NOT IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT ALL 23 * + col1 AS col1 FROM tab0
----
1863
23
483

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NULL >= + ( + col2 ) * - 36
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 39 + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * 68 AS col2 FROM tab1
----
3468
5780
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7192
SELECT - col1 + ( CAST( col1 AS SIGNED ) ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7192
SELECT - col1 + ( CAST ( col1 AS INTEGER ) ) AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE - ( col2 ) - col2 IS NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT 46 * 15 - - 82 IS NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7195
SELECT col1 DIV + ( + 57 ) AS col0 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7195
SELECT col1 / + ( + 57 ) AS col0 FROM tab2 AS cor0
----
0
1
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT - COUNT( * ) * 4 AS col1 FROM tab2 AS cor0 WHERE - col2 * 70 < ( 3 )
----
-12

skipif mysql # not compatible
query I rowsort label-7197
SELECT - COUNT ( * ) * 4 AS col1 FROM tab2 AS cor0 WHERE - col2 * 70 < ( 3 )
----
-12

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN - col1 + col0 AND ( 70 )
----
85
5
59
91
47
68

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 22 NOT IN ( - 36 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT ALL SUM( ALL 47 ) * 17 col0 FROM tab0 AS cor0
----
2397

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7200
SELECT ALL SUM ( ALL 47 ) * 17 col0 FROM tab0 AS cor0
----
2397

query I rowsort
SELECT ALL + ( - 86 ) AS col2 FROM tab2
----
-86
-86
-86

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE + 94 + - 8 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT ALL + MAX( - ( - 14 ) ) AS col2 FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL + MAX ( - ( - 14 ) ) AS col2 FROM tab2 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT DISTINCT MAX( DISTINCT col1 ) col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7204
SELECT DISTINCT MAX ( DISTINCT col1 ) col2 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT - 6 * ( MIN( DISTINCT - col2 ) + - COUNT( * ) ) col1 FROM tab2 AS cor0
----
366

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7205
SELECT - 6 * ( MIN ( DISTINCT - col2 ) + - COUNT ( * ) ) col1 FROM tab2 AS cor0
----
366

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT - ( MIN( ALL 90 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 - - col0 NOT IN ( + col2 )
----
-90

skipif mysql # not compatible
query I rowsort label-7206
SELECT - ( MIN ( ALL 90 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 - - col0 NOT IN ( + col2 )
----
-90

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 - col1 >= ( 30 * 37 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( - col0 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7210
SELECT DISTINCT 28 DIV - - CAST( - col1 AS SIGNED ) FROM tab0
----
-1
-28
0

skipif mysql # not compatible
query I rowsort label-7210
SELECT DISTINCT 28 / - - CAST ( - col1 AS INTEGER ) FROM tab0
----
-1
-28
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7211
SELECT ALL + col1 + 71 AS col2 FROM tab0 WHERE NOT 27 + col2 * - CAST( NULL AS SIGNED ) = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7211
SELECT ALL + col1 + 71 AS col2 FROM tab0 WHERE NOT 27 + col2 * - CAST ( NULL AS INTEGER ) = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7212
SELECT ALL + 17 DIV - col1 AS col2 FROM tab0
----
-17
0
0

skipif mysql # not compatible
query I rowsort label-7212
SELECT ALL + 17 / - col1 AS col2 FROM tab0
----
-17
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * + 73 - ( ( col1 ) ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 col1 FROM tab2
----
-98
-98
-98

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE NOT + col0 IS NULL
----
15
87
97

query I rowsort
SELECT + 69 * - - col2 FROM tab2 AS cor0
----
1587
2760
4002

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 79 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7218
SELECT DISTINCT - + 79 + col1 DIV col1 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-7218
SELECT DISTINCT - + 79 + col1 / col1 FROM tab2 AS cor0
----
-78

query I rowsort
SELECT DISTINCT col2 / ( + col2 ) FROM tab0 WHERE NOT ( NULL ) NOT IN ( + col0 )
----

query I rowsort
SELECT ALL + 58 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

onlyif mysql # DIV for integer division: 
query I rowsort label-7221
SELECT col1 DIV col1 + + 90 FROM tab1
----
91
91
91

skipif mysql # not compatible
query I rowsort label-7221
SELECT col1 / col1 + + 90 FROM tab1
----
91
91
91

query III rowsort
SELECT * FROM tab1 WHERE ( - col0 * - col1 + - 89 / col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT 46 + - SUM( ALL + col2 ) FROM tab0
----
-110

skipif mysql # not compatible
query I rowsort label-7223
SELECT 46 + - SUM ( ALL + col2 ) FROM tab0
----
-110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7224
SELECT - col0 + - + CAST( + + col0 AS SIGNED ) + col0 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7224
SELECT - col0 + - + CAST ( + + col0 AS INTEGER ) + col0 FROM tab2 cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - 19 * - col2 AND - 39 + 29
----

query I rowsort
SELECT ( col0 ) + - + col1 AS col2 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT + - col2 + 47 + + 67 * + col2 AS col1 FROM tab2 AS cor0
----
1565
2687
3875

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT - MAX( DISTINCT + ( - ( + ( 38 ) ) ) ) + + 93 FROM tab0 AS cor0
----
131

skipif mysql # not compatible
query I rowsort label-7228
SELECT - MAX ( DISTINCT + ( - ( + ( 38 ) ) ) ) + + 93 FROM tab0 AS cor0
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT SUM( col2 ) AS col1 FROM tab0 AS cor0 WHERE 27 > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7229
SELECT SUM ( col2 ) AS col1 FROM tab0 AS cor0 WHERE 27 > ( NULL )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 22 ) BETWEEN ( 4 - + col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT - - 11 + - 10 + COUNT( * ) FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-7231
SELECT - - 11 + - 10 + COUNT ( * ) FROM tab2 AS cor0
----
4

query II rowsort
SELECT ALL + + col0, + col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 3 + - - col0 col2 FROM tab1 cor0
----
100
232
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT COUNT( * ) AS col2 FROM tab1 cor0 WHERE ( NULL ) NOT IN ( - col0 / + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7234
SELECT COUNT ( * ) AS col2 FROM tab1 cor0 WHERE ( NULL ) NOT IN ( - col0 / + col1 )
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 BETWEEN - 76 AND 95 * + 30
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-7236
SELECT ALL COUNT( * ) AS col1, COUNT( * ) AS col2 FROM tab0 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7236
SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) AS col2 FROM tab0 cor0
----
3
3

query I rowsort
SELECT ALL 81 AS col1 FROM tab2 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT + - 26 FROM tab2 WHERE NULL IS NULL
----
-26
-26
-26

query I rowsort
SELECT - col2 + col0 * - 53 FROM tab2 WHERE + + ( + 28 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7240
SELECT DISTINCT col1 * + 49 - - col1 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7240
SELECT DISTINCT col1 * + 49 - - col1 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT col2 FROM tab0 WHERE ( NULL ) BETWEEN NULL AND + - ( 56 ) AND - col1 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT DISTINCT COUNT( * ) * + 3 AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7242
SELECT DISTINCT COUNT ( * ) * + 3 AS col1 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT 14 - ( + MAX( ALL + col2 ) ) - 40 * - 46 FROM tab2
----
1796

skipif mysql # not compatible
query I rowsort label-7243
SELECT 14 - ( + MAX ( ALL + col2 ) ) - 40 * - 46 FROM tab2
----
1796

onlyif mysql # DIV for integer division: 
query I rowsort label-7244
SELECT DISTINCT - 89 DIV + ( - col1 ) FROM tab1 cor0
----
1
17
6

skipif mysql # not compatible
query I rowsort label-7244
SELECT DISTINCT - 89 / + ( - col1 ) FROM tab1 cor0
----
1
17
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7245
SELECT ALL + COUNT( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL + COUNT ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT ALL + + COUNT( * ) * + 41 AS col1 FROM tab2 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL + + COUNT ( * ) * + 41 AS col1 FROM tab2 AS cor0
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7247
SELECT ALL + CAST( NULL AS SIGNED ) * + + col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7247
SELECT ALL + CAST ( NULL AS INTEGER ) * + + col2 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > ( 67 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 91 + col2 NOT BETWEEN + col2 + + col2 * 75 AND + 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT DISTINCT - COUNT( ALL + col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7250
SELECT DISTINCT - COUNT ( ALL + col0 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT ALL - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE + 53 NOT BETWEEN - 99 AND - col2 * + 20
----
-3

skipif mysql # not compatible
query I rowsort label-7251
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE + 53 NOT BETWEEN - 99 AND - col2 * + 20
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col0 + - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7253
SELECT DISTINCT - col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7253
SELECT DISTINCT - col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7254
SELECT - CAST( NULL AS DECIMAL ) AS col1, - ( - - col0 ) FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-7254
SELECT - CAST ( NULL AS REAL ) AS col1, - ( - - col0 ) FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT DISTINCT + - ( + col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7256
SELECT - 85 * - 24 * - + COUNT( * ) * - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7256
SELECT - 85 * - 24 * - + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col2 + - col0 * col2 NOT IN ( ( col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7258
SELECT col2 / - - CAST( NULL AS SIGNED ) / - + col2 * - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7258
SELECT col2 / - - CAST ( NULL AS INTEGER ) / - + col2 * - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NULL NOT IN ( col0, col1 + + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT - 39 * COUNT( * ) AS col1 FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-7260
SELECT - 39 * COUNT ( * ) AS col1 FROM tab0
----
-117

query I rowsort
SELECT col0 * + 72 AS col2 FROM tab0
----
1080
6264
6984

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7263
SELECT ALL + ( + - CAST( NULL AS SIGNED ) ) + - col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7263
SELECT ALL + ( + - CAST ( NULL AS INTEGER ) ) + - col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 20 * - - col1 - - col1 / - - col1 )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE - 30 * + - col2 BETWEEN + - ( - 6 ) AND 35 / col1 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT DISTINCT SUM( - 76 ) AS col2 FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-7266
SELECT DISTINCT SUM ( - 76 ) AS col2 FROM tab2 AS cor0
----
-228

query I rowsort
SELECT ALL 69 - + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 BETWEEN + col0 / + + col2 AND NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 31 col1 FROM tab2 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7270
SELECT DISTINCT - col1 + - + CAST( NULL AS SIGNED ) * + - 22 + 0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7270
SELECT DISTINCT - col1 + - + CAST ( NULL AS INTEGER ) * + - 22 + 0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL + + col2 + + col0 AS col1, + 58 * col0 FROM tab1 AS cor0
----
144
4930
147
2958
159
5278

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT COUNT( * ) * + 63 + - 5 FROM tab1 AS cor0
----
184

skipif mysql # not compatible
query I rowsort label-7272
SELECT COUNT ( * ) * + 63 + - 5 FROM tab1 AS cor0
----
184

query I rowsort
SELECT + 71 * col2 + + 94 FROM tab1 AS cor0
----
4283
4922
6910

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - + col1 / 26 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7275
SELECT DISTINCT 18, - ( - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab1
----
18
NULL

skipif mysql # not compatible
query II rowsort label-7275
SELECT DISTINCT 18, - ( - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab1
----
18
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7276
SELECT DISTINCT COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7277
SELECT DISTINCT 80, - CAST( - - 52 AS SIGNED ) col2 FROM tab0
----
80
-52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7277
SELECT DISTINCT 80, - CAST ( - - 52 AS INTEGER ) col2 FROM tab0
----
80
-52

query II rowsort
SELECT ALL - 94 AS col2, 66 + col0 + + 25 * - col1 AS col2 FROM tab2
----
-94
-1163
-94
-1534
-94
-1795

query I rowsort
SELECT ALL ( 78 ) AS col1 FROM tab2 cor0
----
78
78
78

query I rowsort
SELECT + 3 * - 25 FROM tab0 AS cor0
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT DISTINCT + SUM( ALL + col0 ) * ( - 4 ) + - 74 AS col0 FROM tab1 AS cor0
----
-982

skipif mysql # not compatible
query I rowsort label-7281
SELECT DISTINCT + SUM ( ALL + col0 ) * ( - 4 ) + - 74 AS col0 FROM tab1 AS cor0
----
-982

onlyif mysql # aggregate syntax: 
query II rowsort label-7282
SELECT ALL 29 * COUNT( * ) AS col1, - COUNT( 66 ) FROM tab2
----
87
-3

skipif mysql # not compatible
query II rowsort label-7282
SELECT ALL 29 * COUNT ( * ) AS col1, - COUNT ( 66 ) FROM tab2
----
87
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7283
SELECT ALL * FROM tab0 WHERE NOT - + col1 + + col2 * col1 + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7283
SELECT ALL * FROM tab0 WHERE NOT - + col1 + + col2 * col1 + + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7284
SELECT - 78 DIV + - ( - - col2 ) AS col1 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7284
SELECT - 78 / + - ( - - col2 ) AS col1 FROM tab1 cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT ALL - - SUM( ALL col2 ) * 80 FROM tab0 AS cor0
----
12480

skipif mysql # not compatible
query I rowsort label-7285
SELECT ALL - - SUM ( ALL col2 ) * 80 FROM tab0 AS cor0
----
12480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + 25 * + + col2 * + 37 col1 FROM tab2 AS cor0
----
-1085025
-2849000
-3594550

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 19 NOT IN ( + 50 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT - - COUNT( * ) + - 30 AS col1 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-7288
SELECT - - COUNT ( * ) + - 30 AS col1 FROM tab1 AS cor0
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab2 cor0 WHERE NOT NULL = col0 * - col2 + + col0
----

query I rowsort
SELECT ALL + 23 * - - 73 / + col0 * + col2 FROM tab2 AS cor0 WHERE NOT col2 * - 30 - - - ( - + 43 ) / - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7291
SELECT DISTINCT CAST( - + col0 AS SIGNED ) col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7291
SELECT DISTINCT CAST ( - + col0 AS INTEGER ) col2 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + col1 * - 19 FROM tab0
----
-1539
-19
-399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7293
SELECT + CAST( NULL AS SIGNED ) * - + ( col0 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7293
SELECT + CAST ( NULL AS INTEGER ) * - + ( col0 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * col0 * + col2 FROM tab1
----
295885
420784
470016

query I rowsort
SELECT ALL 20 * + 76 AS col1 FROM tab2
----
1520
1520
1520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7296
SELECT ALL + 75 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7296
SELECT ALL + 75 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - + 15 * col2 - - col1, 84 + - - 75 AS col2 FROM tab2 AS cor0
----
-294
159
-523
159
-803
159

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7299
SELECT * FROM tab1 AS cor0 WHERE ( 26 - + - col0 IN ( - col0 - col1 - + + CAST( NULL AS SIGNED ) + CAST( - - 30 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-7299
SELECT * FROM tab1 AS cor0 WHERE ( 26 - + - col0 IN ( - col0 - col1 - + + CAST ( NULL AS INTEGER ) + CAST ( - - 30 AS INTEGER ) ) )
----

query I rowsort
SELECT - 68 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7301
SELECT DISTINCT - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) - - + COUNT( * ) * + - 85 - 60 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7301
SELECT DISTINCT - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) - - + COUNT ( * ) * + - 85 - 60 AS col0 FROM tab2
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 73 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7303
SELECT + COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7303
SELECT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col0 ) IN ( - col0 / + col1 + + + col1, - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7305
SELECT ALL + col2, - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-7305
SELECT ALL + col2, - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7306
SELECT DISTINCT - ( - col2 ), - ( - - 16 ) * 9 DIV + 7 - - + col1 + - + col1 + - col2 AS col1 FROM tab0 AS cor0
----
10
-30
47
-67
99
-119

skipif mysql # not compatible
query II rowsort label-7306
SELECT DISTINCT - ( - col2 ), - ( - - 16 ) * 9 / + 7 - - + col1 + - + col1 + - col2 AS col1 FROM tab0 AS cor0
----
10
-30
47
-67
99
-119

query I rowsort
SELECT DISTINCT - - 78 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7308
SELECT + col1 DIV - 54 * col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7308
SELECT + col1 / - 54 * col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT ALL ( MAX( ALL + col0 ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-7309
SELECT ALL ( MAX ( ALL + col0 ) ) FROM tab2
----
75

query I rowsort
SELECT col0 FROM tab1 WHERE NOT NULL <= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT - ( ( + COUNT( * ) ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7311
SELECT - ( ( + COUNT ( * ) ) ) FROM tab0 cor0
----
-3

query II rowsort
SELECT 17 * col1 AS col2, 79 AS col1 FROM tab2 cor0
----
1139
79
1309
79
867
79

query II rowsort
SELECT col1 * + + col0 * + - col0 AS col1, col1 + + + col0 + col0 AS col0 FROM tab0
----
-158949
195
-18225
111
-9409
195

query II rowsort
SELECT ALL - 30 AS col1, + col2 FROM tab2 AS cor0
----
-30
23
-30
40
-30
58

onlyif mysql # DIV for integer division: 
query II rowsort label-7315
SELECT - 50 DIV col2 - - + col2 AS col0, + ( + col0 ) + col0 * - ( - 90 ) FROM tab0 AS cor0
----
46
1365
5
7917
99
8827

skipif mysql # not compatible
query II rowsort label-7315
SELECT - 50 / col2 - - + col2 AS col0, + ( + col0 ) + col0 * - ( - 90 ) FROM tab0 AS cor0
----
46
1365
5
7917
99
8827

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT ALL 41 + - COUNT( * ) FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-7316
SELECT ALL 41 + - COUNT ( * ) FROM tab2 AS cor0
----
38

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col0 - + col2 AND - col1 + 34 + + 19
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN + col0 AND - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 47 + 48 col2 FROM tab1
----
154
163
191

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT DISTINCT MIN( DISTINCT + 99 ) + - - COUNT( * ) FROM tab0 WHERE NOT + col1 * + - col0 + col0 * + + ( - col2 ) NOT BETWEEN col1 / 21 AND + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-7320
SELECT DISTINCT MIN ( DISTINCT + 99 ) + - - COUNT ( * ) FROM tab0 WHERE NOT + col1 * + - col0 + col0 * + + ( - col2 ) NOT BETWEEN col1 / 21 AND + 84
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7321
SELECT ALL - ( + - CAST( NULL AS SIGNED ) ) / + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL - ( + - CAST ( NULL AS INTEGER ) ) / + col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7322
SELECT ( - col0 ) + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7322
SELECT ( - col0 ) + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT DISTINCT + COUNT( * ) * 44 FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-7323
SELECT DISTINCT + COUNT ( * ) * 44 FROM tab2
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7324
SELECT ALL - col2 FROM tab1 WHERE NOT + - col1 * - CAST( NULL AS SIGNED ) + 45 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-7324
SELECT ALL - col2 FROM tab1 WHERE NOT + - col1 * - CAST ( NULL AS INTEGER ) + 45 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT DISTINCT - MAX( DISTINCT - - col1 ) * 23 AS col1 FROM tab0
----
-1863

skipif mysql # not compatible
query I rowsort label-7325
SELECT DISTINCT - MAX ( DISTINCT - - col1 ) * 23 AS col1 FROM tab0
----
-1863

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + col1 AND + + 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT DISTINCT + COUNT( * ) + + 1 FROM tab1 cor0
----
4

skipif mysql # not compatible
query I rowsort label-7327
SELECT DISTINCT + COUNT ( * ) + + 1 FROM tab1 cor0
----
4

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE + col0 <= - 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT DISTINCT - + COUNT( * ) FROM tab0 WHERE NOT NULL NOT IN ( - - col1, col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7329
SELECT DISTINCT - + COUNT ( * ) FROM tab0 WHERE NOT NULL NOT IN ( - - col1, col2 )
----
0

query I rowsort
SELECT + col0 * + + col1 * + col0 + + col1 FROM tab2 AS cor0 WHERE - ( 13 ) * + col2 + - 99 IS NOT NULL
----
107967
315469
376942

query I rowsort
SELECT ALL - 74 - + - col2 AS col0 FROM tab1 AS cor0
----
-15
-6
22

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * + 42 * - + 39 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT DISTINCT + + MAX( + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7333
SELECT DISTINCT + + MAX ( + col2 ) FROM tab2 AS cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 80 * - 50 col2 FROM tab0 AS cor0
----
-4000
-4000
-4000

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( col2 + + col1 ) BETWEEN NULL AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT - 16 * + col0 * col1 / + - col1 * - - col2 - + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT ALL - MIN( - 28 ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-7337
SELECT ALL - MIN ( - 28 ) FROM tab0
----
28

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 98 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7339
SELECT DISTINCT col2 * col1 * CAST( col1 AS SIGNED ) col0 FROM tab0 AS cor0
----
308367
4410
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7339
SELECT DISTINCT col2 * col1 * CAST ( col1 AS INTEGER ) col0 FROM tab0 AS cor0
----
308367
4410
99

query II rowsort
SELECT ALL 47, - col2 AS col1 FROM tab1 AS cor0
----
47
-59
47
-68
47
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + ( - ( ( + + col0 ) ) ) * - 14 <= 36
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT ALL - + COUNT( * ) - - 74 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
65

skipif mysql # not compatible
query I rowsort label-7342
SELECT ALL - + COUNT ( * ) - - 74 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
65

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 85 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7344
SELECT DISTINCT 8 * col2 / CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7344
SELECT DISTINCT 8 * col2 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + 22 + + col1 FROM tab0 AS cor0
----
103
23
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT - MIN( + col0 ) + COUNT( * ) AS col0 FROM tab2 cor0
----
-43

skipif mysql # not compatible
query I rowsort label-7346
SELECT - MIN ( + col0 ) + COUNT ( * ) AS col0 FROM tab2 cor0
----
-43

query I rowsort
SELECT ALL + - col2 + - 4 FROM tab0 AS cor0
----
-103
-14
-51

query II rowsort
SELECT ALL + - col2 + - + col2 AS col1, col1 FROM tab2 AS cor0
----
-116
67
-46
51
-80
77

query I rowsort
SELECT ALL + 61 * - col1 * col1 + + col1 AS col1 FROM tab2 AS cor0
----
-158610
-273762
-361592

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 22 BETWEEN - 59 AND + 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT 74 * - 29 * - SUM( DISTINCT - 0 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7351
SELECT 74 * - 29 * - SUM ( DISTINCT - 0 ) AS col1 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 - + + col2 col1 FROM tab2
----
23
41
58

query II rowsort
SELECT DISTINCT + 10 AS col2, col0 + - col0 + + col0 AS col0 FROM tab0 AS cor0
----
10
15
10
87
10
97

query I rowsort
SELECT DISTINCT - 89 * - col0 FROM tab0 AS cor0
----
1335
7743
8633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7355
SELECT DISTINCT + 59 / + CAST( NULL AS SIGNED ) + + col0 + + col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7355
SELECT DISTINCT + 59 / + CAST ( NULL AS INTEGER ) + + col0 + + col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7356
SELECT ALL 15 * AVG ( + CAST( NULL AS DECIMAL ) ) - ( + COUNT( * ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7356
SELECT ALL 15 * AVG ( + CAST ( NULL AS REAL ) ) - ( + COUNT ( * ) ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7357
SELECT - + MAX( ALL ( col1 ) ) * + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7357
SELECT - + MAX ( ALL ( col1 ) ) * + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7358
SELECT ALL CAST( NULL AS SIGNED ) * - MIN( ALL - col1 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7358
SELECT ALL CAST ( NULL AS INTEGER ) * - MIN ( ALL - col1 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT ALL COUNT( - - col2 ) * + 39 FROM tab1 cor0
----
117

skipif mysql # not compatible
query I rowsort label-7359
SELECT ALL COUNT ( - - col2 ) * + 39 FROM tab1 cor0
----
117

query II rowsort
SELECT ALL - col2 * col0, col2 FROM tab0 AS cor0
----
-705
47
-870
10
-9603
99

onlyif mysql # aggregate syntax: 
query II rowsort label-7361
SELECT - 33 AS col1, + ( ( + MAX( ALL - col0 ) ) ) FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND 99
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-7361
SELECT - 33 AS col1, + ( ( + MAX ( ALL - col0 ) ) ) FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND 99
----
-33
NULL

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 54 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + - col1 col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT + MAX( 27 ) AS col0 FROM tab1 AS cor0 WHERE NOT 43 NOT IN ( - col1 * - - 47 + - col0 / - - col2 * + col0 * + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7364
SELECT + MAX ( 27 ) AS col0 FROM tab1 AS cor0 WHERE NOT 43 NOT IN ( - col1 * - - 47 + - col0 / - - col2 * + col0 * + col1 )
----
NULL

query I rowsort
SELECT ALL + col1 * + + 15 * col1 AS col0 FROM tab1 AS cor0
----
2940
33135
375

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col1 NOT BETWEEN 69 AND + 58
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - col1 * + ( + col0 )
----

query I rowsort
SELECT + - col2 FROM tab0 WHERE NOT + - col0 + + col2 + - + col0 + - - col0 + + 51 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 27 ) col2 FROM tab2
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7370
SELECT CAST( NULL AS SIGNED ) / + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7370
SELECT CAST ( NULL AS INTEGER ) / + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 53 * - - col1 FROM tab2
----
2703
3551
4081

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7372
SELECT ALL CAST( NULL AS DECIMAL ) * + col1 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7372
SELECT ALL CAST ( NULL AS REAL ) * + col1 col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 57 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
57
57
57

query I rowsort
SELECT - 47 * - - col0 FROM tab0
----
-4089
-4559
-705

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, - col0 col1 FROM tab1
----
-14
-51
-47
-91
-5
-85

query I rowsort
SELECT + col2 * - 95 FROM tab0 AS cor0
----
-4465
-9405
-950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7377
SELECT ALL + CAST( NULL AS SIGNED ) + + 32 + + + COUNT( * ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7377
SELECT ALL + CAST ( NULL AS INTEGER ) + + 32 + + + COUNT ( * ) AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7378
SELECT + MIN( ALL CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7378
SELECT + MIN ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7379
SELECT + CAST( NULL AS DECIMAL ) col2, ( + col1 ) + + + col0 AS col2 FROM tab2
----
NULL
141
NULL
142
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7379
SELECT + CAST ( NULL AS REAL ) col2, ( + col1 ) + + + col0 AS col2 FROM tab2
----
NULL
141
NULL
142
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT 78 + + 15 - + 45 * + COUNT( * ) + - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-7380
SELECT 78 + + 15 - + 45 * + COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT + 53 + - + COUNT( * ) + - 28 + - 29 * 76 + - - 84 AS col0 FROM tab2 cor0
----
-2098

skipif mysql # not compatible
query I rowsort label-7381
SELECT + 53 + - + COUNT ( * ) + - 28 + - 29 * 76 + - - 84 AS col0 FROM tab2 cor0
----
-2098

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7382
SELECT + CAST( MAX( DISTINCT + + 32 ) AS SIGNED ) + + SUM( 78 ) AS col1 FROM tab2 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7382
SELECT + CAST ( MAX ( DISTINCT + + 32 ) AS INTEGER ) + + SUM ( 78 ) AS col1 FROM tab2 WHERE col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7383
SELECT DISTINCT + 67 * + 29 - + CAST( NULL AS SIGNED ) * + + col0 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7383
SELECT DISTINCT + 67 * + 29 - + CAST ( NULL AS INTEGER ) * + + col0 AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7384
SELECT col1 / + CAST( NULL AS SIGNED ) + + ( 26 ) - - col2 + - - 36 + - CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7384
SELECT col1 / + CAST ( NULL AS INTEGER ) + + ( 26 ) - - col2 + - - 36 + - CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7385
SELECT + - 25 DIV - + col2 AS col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7385
SELECT + - 25 / - + col2 AS col0 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT ALL - - 51 * + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-7386
SELECT ALL - - 51 * + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-153

query I rowsort
SELECT ALL - col2 + - 77 FROM tab2 AS cor0
----
-100
-117
-135

query III rowsort
SELECT DISTINCT - 82 + 79 * col1 + + col2 * + - col1 + + + 53 * col1 AS col1, 16 AS col1, - col2 FROM tab1 AS cor0
----
9 values hashing to c383b9bdcb410c5835afe122afe6bd31

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT - + COUNT( * ) * - - SUM( ALL - - 29 ) FROM tab0 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-7389
SELECT - + COUNT ( * ) * - - SUM ( ALL - - 29 ) FROM tab0 AS cor0
----
-261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 44 * - - col0 + col1 col1 FROM tab2 AS cor0
----
-1973
-2739
-3233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7391
SELECT - 85 AS col0 FROM tab0 AS cor0 WHERE NOT 45 > CAST( + + CAST( + col0 AS SIGNED ) AS SIGNED ) + col1
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-7391
SELECT - 85 AS col0 FROM tab0 AS cor0 WHERE NOT 45 > CAST ( + + CAST ( + col0 AS INTEGER ) AS INTEGER ) + col1
----
-85
-85
-85

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + + col1 NOT BETWEEN col0 AND + - 84 + - - col0
----

query I rowsort
SELECT - 65 * + - col1 * - col0 + + + 94 - 35 FROM tab2 cor0
----
-152431
-320261
-326566

query II rowsort
SELECT - col2, + col2 AS col0 FROM tab1 cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT ALL col1 * col1 * + - col0 FROM tab1 AS cor0
----
-201019
-2125
-9996

query II rowsort
SELECT + - 68 AS col0, col0 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 93 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT DISTINCT + 87 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-7397
SELECT DISTINCT + 87 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
261

query I rowsort
SELECT ( - 88 ) AS col1 FROM tab1 AS cor0
----
-88
-88
-88

query I rowsort
SELECT DISTINCT - - 17 * + ( + + 83 ) * + 99 AS col0 FROM tab0 AS cor0
----
139689

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7400
SELECT - CAST( NULL AS SIGNED ) AS col0, - col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-7400
SELECT - CAST ( NULL AS INTEGER ) AS col0, - col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7401
SELECT + - 54 - + 87 FROM tab0 WHERE NOT ( NOT - CAST( NULL AS SIGNED ) BETWEEN + col2 + + col2 AND + - col1 + - col0 )
----

skipif mysql # not compatible
query I rowsort label-7401
SELECT + - 54 - + 87 FROM tab0 WHERE NOT ( NOT - CAST ( NULL AS INTEGER ) BETWEEN + col2 + + col2 AND + - col1 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT DISTINCT - SUM( DISTINCT - col0 ) col0 FROM tab1
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7402
SELECT DISTINCT - SUM ( DISTINCT - col0 ) col0 FROM tab1
----
227

query I rowsort
SELECT - 20 AS col0 FROM tab2 WHERE NOT ( NOT 78 IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7404
SELECT - COUNT( * ) + 65 AS col0 FROM tab2 WHERE NOT + + 92 <> + CAST( NULL AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-7404
SELECT - COUNT ( * ) + 65 AS col0 FROM tab2 WHERE NOT + + 92 <> + CAST ( NULL AS INTEGER )
----
65

query I rowsort
SELECT - 63 FROM tab2 WHERE NOT ( NOT 20 < + col2 )
----
-63
-63
-63

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > col2 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7407
SELECT CAST( + 69 AS SIGNED ) FROM tab0 AS cor0
----
69
69
69

skipif mysql # not compatible
query I rowsort label-7407
SELECT CAST ( + 69 AS INTEGER ) FROM tab0 AS cor0
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT DISTINCT - COUNT( * ) FROM tab2 cor0 WHERE col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7408
SELECT DISTINCT - COUNT ( * ) FROM tab2 cor0 WHERE col1 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7409
SELECT ALL 19 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7409
SELECT ALL 19 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + col1 + col0 FROM tab2 AS cor0
----
143
205
217

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 + - col2 col0 FROM tab1 AS cor0
----
-27
-36
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT DISTINCT - COUNT( * ) * - + 67 col0 FROM tab1 AS cor0
----
201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7412
SELECT DISTINCT - COUNT ( * ) * - + 67 col0 FROM tab1 AS cor0
----
201

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7413
SELECT ALL + + CAST( col0 AS SIGNED ) DIV 23 FROM tab0 cor0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-7413
SELECT ALL + + CAST ( col0 AS INTEGER ) / 23 FROM tab0 cor0
----
0
3
4

query I rowsort
SELECT 47 + + col1 + - ( + ( - col2 ) ) AS col0 FROM tab1 cor0
----
111
157
162

onlyif mysql # aggregate syntax: 
query II rowsort label-7415
SELECT ALL + + COUNT( * ), + 9 AS col2 FROM tab0 AS cor0
----
3
9

skipif mysql # not compatible
query II rowsort label-7415
SELECT ALL + + COUNT ( * ), + 9 AS col2 FROM tab0 AS cor0
----
3
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 18 - 45 * + 31 * - - col2 IS NULL
----

query I rowsort
SELECT DISTINCT 81 AS col1 FROM tab1 AS cor0 WHERE + ( - - col1 ) IS NOT NULL
----
81

query II rowsort
SELECT ALL 49 + col2, + col1 AS col1 FROM tab1
----
108
5
117
47
145
14

query I rowsort
SELECT DISTINCT col0 - - ( - 96 ) AS col0 FROM tab1
----
-11
-45
-5

query I rowsort
SELECT DISTINCT - ( - - 40 ) FROM tab1 cor0
----
-40

query I rowsort
SELECT - + col2 + + 12 * + col2 FROM tab0 AS cor0
----
1089
110
517

query II rowsort
SELECT ALL 11 AS col2, col2 FROM tab0 AS cor0
----
11
10
11
47
11
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7423
SELECT + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7423
SELECT + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col0 * - - col1 * col2 <= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7425
SELECT 94 DIV - 24 FROM tab1
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-7425
SELECT 94 / - 24 FROM tab1
----
-3
-3
-3

query I rowsort
SELECT DISTINCT col1 * - + 10 AS col2 FROM tab1
----
-140
-470
-50

query I rowsort
SELECT ALL - 24 + - ( col0 ) - - col2 AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-101
-22
8

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 + + 88 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT + MAX( ALL - 65 ) FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-7429
SELECT + MAX ( ALL - 65 ) FROM tab0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT DISTINCT - + COUNT( * ) FROM tab1 WHERE NOT + + col0 + col2 + - col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7430
SELECT DISTINCT - + COUNT ( * ) FROM tab1 WHERE NOT + + col0 + col2 + - col1 IS NULL
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7431
SELECT DISTINCT - col1 * + - CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7431
SELECT DISTINCT - col1 * + - CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT 88 * 26 FROM tab0
----
2288
2288
2288

query I rowsort
SELECT col1 * 97 * col2 AS col2 FROM tab2
----
113781
298760
376942

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT + 55 * + + SUM( - + col0 ) FROM tab2
----
-10175

skipif mysql # not compatible
query I rowsort label-7434
SELECT + 55 * + + SUM ( - + col0 ) FROM tab2
----
-10175

query I rowsort
SELECT ALL col2 * - 92 FROM tab2
----
-2116
-3680
-5336

onlyif mysql # aggregate syntax: 
query II rowsort label-7436
SELECT - COUNT( * ), 2 AS col0 FROM tab2 WHERE NOT col1 >= NULL
----
0
2

skipif mysql # not compatible
query II rowsort label-7436
SELECT - COUNT ( * ), 2 AS col0 FROM tab2 WHERE NOT col1 >= NULL
----
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7437
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT col0 * - - 15 AS col2 FROM tab1 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT + col2 * 7 FROM tab2 AS cor0 WHERE NOT 18 * + col2 IS NULL
----
161
280
406

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7440
SELECT ALL - CAST( NULL AS SIGNED ) + 51 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7440
SELECT ALL - CAST ( NULL AS INTEGER ) + 51 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + + col1 AS col0, 74 col0 FROM tab1 AS cor0
----
0
74
0
74
0
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7442
SELECT - + col2 + - + CAST( 83 AS SIGNED ) + + 16 * - col0 * + ( 26 ) FROM tab0 AS cor0
----
-36285
-40534
-6370

skipif mysql # not compatible
query I rowsort label-7442
SELECT - + col2 + - + CAST ( 83 AS INTEGER ) + + 16 * - col0 * + ( 26 ) FROM tab0 AS cor0
----
-36285
-40534
-6370

query I rowsort
SELECT + col1 + col0 + + - col1 * - col0 FROM tab1
----
4415
515
779

query I rowsort
SELECT DISTINCT + 42 + - + 96 FROM tab2
----
-54

query III rowsort
SELECT * FROM tab2 WHERE - 96 = + - 44
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * col2 + col2 AS col2, + 36 col1 FROM tab2
----
-1560
36
-3306
36
-506
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - - col1 col2 FROM tab1
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT DISTINCT - COUNT( * ) - + 73 AS col1 FROM tab0
----
-76

skipif mysql # not compatible
query I rowsort label-7448
SELECT DISTINCT - COUNT ( * ) - + 73 AS col1 FROM tab0
----
-76

query II rowsort
SELECT DISTINCT + - col0 AS col2, 16 FROM tab0 AS cor0
----
-15
16
-87
16
-97
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT DISTINCT SUM( DISTINCT + col1 ) col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7450
SELECT DISTINCT SUM ( DISTINCT + col1 ) col2 FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7451
SELECT ALL col0, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-7451
SELECT ALL col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7452
SELECT ALL - 30 AS col0, ( - COUNT( * ) ) FROM tab0
----
-30
-3

skipif mysql # not compatible
query II rowsort label-7452
SELECT ALL - 30 AS col0, ( - COUNT ( * ) ) FROM tab0
----
-30
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT COUNT( * ) FROM tab1 WHERE NOT NULL IN ( col0 + - 34 * + + col2 / - + col2, - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7453
SELECT COUNT ( * ) FROM tab1 WHERE NOT NULL IN ( col0 + - 34 * + + col2 / - + col2, - col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7454
SELECT + col0 + - - col1 + - col2 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + 44 * + col1 * + col1 + - + ( + col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7454
SELECT + col0 + - - col1 + - col2 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + 44 * + col1 * + col1 + - + ( + col2 ) IS NOT NULL
----

query II rowsort
SELECT + + col1, col2 * - col1 FROM tab1 AS cor0
----
14
-1344
47
-3196
5
-295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7456
SELECT ALL + + 29 AS col1, + CAST( COUNT( + + 30 ) AS SIGNED ), + 7 AS col0 FROM tab0 AS cor0
----
29
3
7

skipif mysql # not compatible
query III rowsort label-7456
SELECT ALL + + 29 AS col1, + CAST ( COUNT ( + + 30 ) AS INTEGER ), + 7 AS col0 FROM tab0 AS cor0
----
29
3
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT + + COUNT( col2 ) col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7457
SELECT + + COUNT ( col2 ) col1 FROM tab1 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 66 <= + 64
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7459
SELECT ALL - CAST( MIN( 56 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-7459
SELECT ALL - CAST ( MIN ( 56 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-56

query I rowsort
SELECT - + col1 + col1 * + ( 13 ) + - + col0 AS col1 FROM tab0 AS cor0
----
-85
165
957

query I rowsort
SELECT ALL - 63 + col2 FROM tab2 AS cor0
----
-23
-40
-5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 = + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT DISTINCT + + COUNT( DISTINCT + ( 98 ) ) * MAX( + col2 ) col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7463
SELECT DISTINCT + + COUNT ( DISTINCT + ( 98 ) ) * MAX ( + col2 ) col1 FROM tab1 AS cor0
----
96

query II rowsort
SELECT ( - + 23 ) AS col1, - col2 + - col0 - - col1 - + - 79 * + col2 AS col1 FROM tab2
----
-23
1799
-23
3133
-23
4516

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT COUNT( * ) * - 76 AS col1 FROM tab1
----
-228

skipif mysql # not compatible
query I rowsort label-7465
SELECT COUNT ( * ) * - 76 AS col1 FROM tab1
----
-228

query I rowsort
SELECT DISTINCT col0 + + 31 FROM tab1 AS cor0
----
116
122
82

query I rowsort
SELECT DISTINCT + + 51 AS col2 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-7468
SELECT COUNT( * ) + + - 9 AS col2, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-6
3

skipif mysql # not compatible
query II rowsort label-7468
SELECT COUNT ( * ) + + - 9 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-6
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT DISTINCT - + COUNT( * ) + + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
0

skipif mysql # not compatible
query I rowsort label-7469
SELECT DISTINCT - + COUNT ( * ) + + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7470
SELECT col0 FROM tab2 WHERE + CAST( NULL AS DECIMAL ) + 69 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7470
SELECT col0 FROM tab2 WHERE + CAST ( NULL AS REAL ) + 69 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7471
SELECT - 20 DIV 29 AS col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7471
SELECT - 20 / 29 AS col2 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT DISTINCT + COUNT( + col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7472
SELECT DISTINCT + COUNT ( + col2 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL 0 + - col2 - + + 71 AS col2 FROM tab1 AS cor0
----
-130
-139
-167

query I rowsort
SELECT ALL - 59 * - 89 + col1 AS col0 FROM tab2 AS cor0
----
5302
5318
5328

query I rowsort
SELECT - 43 AS col1 FROM tab0 AS cor0 WHERE col0 <= 15
----
-43

query I rowsort
SELECT DISTINCT + col1 * col2 + col2 AS col1 FROM tab2 cor0
----
1196
3120
3944

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 - + - col1 <= NULL
----

query I rowsort
SELECT DISTINCT - col0 + 42 FROM tab1 AS cor0
----
-43
-49
-9

query I rowsort
SELECT ALL + col2 - + + col0 * + 39 AS col0 FROM tab1
----
-1893
-3256
-3481

query I rowsort
SELECT ALL ( col1 ) - - 96 AS col0 FROM tab1
----
101
110
143

onlyif mysql # DIV for integer division: 
query II rowsort label-7481
SELECT ALL 96 DIV col0 AS col0, - col1 - - col2 FROM tab1
----
1
21
1
54
1
82

skipif mysql # not compatible
query II rowsort label-7481
SELECT ALL 96 / col0 AS col0, - col1 - - col2 FROM tab1
----
1
21
1
54
1
82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7482
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 * + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7482
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 * + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7483
SELECT - col1 DIV + - 80 - - + 95 DIV - + ( col2 ) AS col1 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-7483
SELECT - col1 / + - 80 - - + 95 / - + ( col2 ) AS col1 FROM tab2 AS cor0
----
-1
-2
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-7484
SELECT DISTINCT ( + - COUNT( * ) ) AS col0, - COUNT( * ) FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-7484
SELECT DISTINCT ( + - COUNT ( * ) ) AS col0, - COUNT ( * ) FROM tab0 AS cor0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT ALL SUM( - ( - col0 ) ) * 66 FROM tab0 WHERE NULL IS NULL
----
13134

skipif mysql # not compatible
query I rowsort label-7485
SELECT ALL SUM ( - ( - col0 ) ) * 66 FROM tab0 WHERE NULL IS NULL
----
13134

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT DISTINCT + SUM( ALL - 94 ) FROM tab1
----
-282

skipif mysql # not compatible
query I rowsort label-7486
SELECT DISTINCT + SUM ( ALL - 94 ) FROM tab1
----
-282

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7487
SELECT + COUNT( * ) AS col2, + MAX( - col1 ) DIV + 17 FROM tab1 cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-7487
SELECT + COUNT ( * ) AS col2, + MAX ( - col1 ) / + 17 FROM tab1 cor0
----
3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT + + MIN( DISTINCT + 67 ) col2 FROM tab1 AS cor0
----
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7488
SELECT + + MIN ( DISTINCT + 67 ) col2 FROM tab1 AS cor0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT ALL + + MAX( DISTINCT + - col0 ) AS col1 FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-7489
SELECT ALL + + MAX ( DISTINCT + - col0 ) AS col1 FROM tab2 cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT - COUNT( - - 73 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7490
SELECT - COUNT ( - - 73 ) FROM tab1 cor0
----
-3

query II rowsort
SELECT - 49 AS col1, 56 * col1 / + - col0 - 95 FROM tab1 AS cor0 WHERE NOT col2 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7492
SELECT DISTINCT - 63 DIV 84 + col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7492
SELECT DISTINCT - 63 / 84 + col0 FROM tab2
----
46
64
75

query III rowsort
SELECT * FROM tab2 WHERE + + 3 + + 18 NOT IN ( - 73 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7494
SELECT ALL - col1 + - - CAST( - col1 AS SIGNED ) FROM tab1
----
-10
-28
-94

skipif mysql # not compatible
query I rowsort label-7494
SELECT ALL - col1 + - - CAST ( - col1 AS INTEGER ) FROM tab1
----
-10
-28
-94

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 57 NOT BETWEEN ( - col0 ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 + - - 2 col2 FROM tab1
----
80
80
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, 44 * - col0 + + 54 AS col1 FROM tab0
----
15
-606
87
-3774
97
-4214

query I rowsort
SELECT - 53 + col0 AS col0 FROM tab0 AS cor0
----
-38
34
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT DISTINCT + + COUNT( * ) + - + 79 FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-7499
SELECT DISTINCT + + COUNT ( * ) + - + 79 FROM tab1 AS cor0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7500
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) * COUNT( * ) * + 33 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7500
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) * + 33 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT + 92 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query II rowsort
SELECT DISTINCT col1, - 7 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
-7
67
-7
77
-7

query I rowsort
SELECT DISTINCT + + 0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL < col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT ALL + MIN( 93 ) + + COUNT( * ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL + MIN ( 93 ) + + COUNT ( * ) FROM tab0 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-7505
SELECT ALL - COUNT( * ) * 24 + 34 AS col1, 72 + + + SUM( ALL + col1 ) FROM tab1 AS cor0
----
-38
138

skipif mysql # not compatible
query II rowsort label-7505
SELECT ALL - COUNT ( * ) * 24 + 34 AS col1, 72 + + + SUM ( ALL + col1 ) FROM tab1 AS cor0
----
-38
138

query I rowsort
SELECT + 0 * - col2 * col2 * + col1 + - - col0 AS col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT ALL col0 * + col2 * - col1 AS col1 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT DISTINCT - COUNT( DISTINCT - - col2 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7508
SELECT DISTINCT - COUNT ( DISTINCT - - col2 ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT - + col2 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col0 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT DISTINCT 43 * - - COUNT( * ) AS col1 FROM tab1 WHERE - 9 >= + col2
----
0

skipif mysql # not compatible
query I rowsort label-7511
SELECT DISTINCT 43 * - - COUNT ( * ) AS col1 FROM tab1 WHERE - 9 >= + col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7512
SELECT CAST( NULL AS SIGNED ), col2 * 17 + col1 AS col2 FROM tab2 AS cor0
----
NULL
1053
NULL
442
NULL
757

skipif mysql # not compatible
query II rowsort label-7512
SELECT CAST ( NULL AS INTEGER ), col2 * 17 + col1 AS col2 FROM tab2 AS cor0
----
NULL
1053
NULL
442
NULL
757

query I rowsort
SELECT DISTINCT - - 93 * + col2 FROM tab1 AS cor0
----
5487
6324
8928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 40 AS col1, 87 * - - col0 col1 FROM tab0 cor0
----
40
1305
40
7569
40
8439

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7515
SELECT ALL MIN( + 31 ) DIV 50 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL MIN ( + 31 ) / 50 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT DISTINCT SUM( ALL + + 44 ) AS col1 FROM tab0 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-7516
SELECT DISTINCT SUM ( ALL + + 44 ) AS col1 FROM tab0 AS cor0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT ALL COUNT( * ) + + 78 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
87

skipif mysql # not compatible
query I rowsort label-7517
SELECT ALL COUNT ( * ) + + 78 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
87

query I rowsort
SELECT DISTINCT + 14 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
14

query I rowsort
SELECT + + col2 + - col2 * 52 AS col1 FROM tab2 cor0
----
-1173
-2040
-2958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7520
SELECT 40 + 24 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7520
SELECT 40 + 24 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 + 64 - - 94 * + - ( + col2 ) + col1 * - - 78 FROM tab2 AS cor0
----
-87
1926
2374

query I rowsort
SELECT + col0 + + - col1 + + - 22 AS col1 FROM tab1 AS cor0
----
15
22
58

query I rowsort
SELECT ALL + col2 + 28 FROM tab2 cor0
----
51
68
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + col0 + + col2 + + - col1 col2 FROM tab1 cor0
----
-371
-4256
-632

query II rowsort
SELECT col2 AS col1, + col0 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT COUNT( * ) FROM tab1 WHERE + 65 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7526
SELECT COUNT ( * ) FROM tab1 WHERE + 65 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 41 AS col0, col0 + + + col2 + - col2 * col2 col0 FROM tab1
----
41
-3337
41
-4465
41
-9069

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT + ( 38 ) * SUM( DISTINCT + col2 ) AS col0 FROM tab1
----
8474

skipif mysql # not compatible
query I rowsort label-7528
SELECT + ( 38 ) * SUM ( DISTINCT + col2 ) AS col0 FROM tab1
----
8474

query I rowsort
SELECT - col2 - + + 11 AS col0 FROM tab1 AS cor0
----
-107
-70
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT MIN( DISTINCT col0 ) * + 34 AS col0 FROM tab1 AS cor0 WHERE - ( - col1 ) IS NOT NULL
----
1734

skipif mysql # not compatible
query I rowsort label-7530
SELECT MIN ( DISTINCT col0 ) * + 34 AS col0 FROM tab1 AS cor0 WHERE - ( - col1 ) IS NOT NULL
----
1734

onlyif mysql # DIV for integer division: 
query I rowsort label-7531
SELECT DISTINCT - 85 DIV + col0 + + 91 DIV + col0 AS col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-7531
SELECT DISTINCT - 85 / + col0 + + 91 / + col0 AS col2 FROM tab1
----
0
1

query I rowsort
SELECT - + 92 FROM tab0 WHERE NULL IS NULL
----
-92
-92
-92

query I rowsort
SELECT ALL - col0 - ( - + col1 ) AS col2 FROM tab0
----
-66
-96
66

query I rowsort
SELECT ALL - col0 * + col2 + + 32 FROM tab0
----
-673
-838
-9571

query I rowsort
SELECT 34 + col1 AS col0 FROM tab2
----
101
111
85

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 < - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7537
SELECT DISTINCT col2 * - CAST( NULL AS SIGNED ) + col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7537
SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) + col2 FROM tab2
----
NULL

query II rowsort
SELECT col2 AS col0, - 20 AS col1 FROM tab1
----
59
-20
68
-20
96
-20

query I rowsort
SELECT ALL col0 - + + 92 FROM tab1
----
-1
-41
-7

query I rowsort
SELECT DISTINCT - - col1 * - + col0 + + - ( col2 ) AS col1 FROM tab0 AS cor0
----
-1262
-1837
-196

query II rowsort
SELECT DISTINCT + - col1, - 4 / + 66 AS col0 FROM tab0 cor0 WHERE + col1 - - - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7542
SELECT SUM( DISTINCT + 4 ) * - + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7542
SELECT SUM ( DISTINCT + 4 ) * - + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT ALL - ( + COUNT( * ) ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7543
SELECT ALL - ( + COUNT ( * ) ) col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 7 AS col1 FROM tab2, tab0 AS cor0 WHERE 78 IS NULL
----

query I rowsort
SELECT col0 * + 2 FROM tab1
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT ALL - COUNT( DISTINCT - + col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7546
SELECT ALL - COUNT ( DISTINCT - + col2 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT COUNT( * ) * + 70 FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-7547
SELECT COUNT ( * ) * + 70 FROM tab1
----
210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7548
SELECT - MAX( col0 ) DIV + 51 AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7548
SELECT - MAX ( col0 ) / + 51 AS col2 FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7549
SELECT + col2 DIV - CAST( - + ( col1 ) AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7549
SELECT + col2 / - CAST ( - + ( col1 ) AS INTEGER ) FROM tab2
----
0
0
0

query I rowsort
SELECT col0 * + col2 * - col2 * - - col0 FROM tab2
----
-1119364
-18922500
-6553600

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT DISTINCT + COUNT( * ) * + 46 FROM tab1 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-7551
SELECT DISTINCT + COUNT ( * ) * + 46 FROM tab1 AS cor0
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-7552
SELECT DISTINCT - + 22 DIV + col0 AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7552
SELECT DISTINCT - + 22 / + col0 AS col1 FROM tab0 AS cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7553
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) + - + CAST( NULL AS SIGNED ) * - col2 < 51
----

skipif mysql # not compatible
query III rowsort label-7553
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS INTEGER ) * - col2 < 51
----

query II rowsort
SELECT col0 AS col1, col2 AS col0 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7555
SELECT - 3 DIV + + 97 * + + 12 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7555
SELECT - 3 / + + 97 * + + 12 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + ( - col0 ), 51, - 18 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * - 23 col0 FROM tab2 AS cor0
----
1334
529
920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 col2, + ( + 21 ) AS col0 FROM tab1 AS cor0
----
-59
21
-68
21
-96
21

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 + - - ( + col2 ) + + col2 + col0 AND - col0
----

query II rowsort
SELECT - + 98, col2 AS col1 FROM tab1 AS cor0
----
-98
59
-98
68
-98
96

query I rowsort
SELECT DISTINCT - col2 + - 47 + - col1 FROM tab1
----
-111
-157
-162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7562
SELECT ( CAST( - - 9 AS SIGNED ) ) + - - 10 FROM tab2
----
19
19
19

skipif mysql # not compatible
query I rowsort label-7562
SELECT ( CAST ( - - 9 AS INTEGER ) ) + - - 10 FROM tab2
----
19
19
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7563
SELECT col2 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7563
SELECT col2 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7564
SELECT - CAST( NULL AS DECIMAL ) * - col0 * + - 28 * - CAST( - col0 AS SIGNED ) + col1 * - col0 * + - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7564
SELECT - CAST ( NULL AS REAL ) * - col0 * + - 28 * - CAST ( - col0 AS INTEGER ) + col1 * - col0 * + - col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 + + - ( - col2 ) - - - col0 col2 FROM tab0
----
1
110
80

query II rowsort
SELECT + 11, - col0 AS col2 FROM tab1 WHERE - col0 <> NULL
----

query I rowsort
SELECT DISTINCT - ( 56 ) - col2 FROM tab2
----
-114
-79
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-7568
SELECT DISTINCT - col1 DIV - 94 * - + col0 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7568
SELECT DISTINCT - col1 / - 94 * - + col0 AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7569
SELECT DISTINCT + ( 33 ), CAST( + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
33
1
33
21
33
81

skipif mysql # not compatible
query II rowsort label-7569
SELECT DISTINCT + ( 33 ), CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
33
1
33
21
33
81

onlyif mysql # aggregate syntax: 
query II rowsort label-7570
SELECT - - MIN( + + col2 ) col1, COUNT( * ) FROM tab2 cor0
----
23
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7570
SELECT - - MIN ( + + col2 ) col1, COUNT ( * ) FROM tab2 cor0
----
23
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7571
SELECT * FROM tab1 WHERE col0 - - 57 <= - col1 * ( + col0 ) - - - CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7571
SELECT * FROM tab1 WHERE col0 - - 57 <= - col1 * ( + col0 ) - - - CAST ( - col1 AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col1 / ( col0 ) FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7573
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 + ( + + 40 ) * - col2 AS col0, col2 + - 72 * - - 7 AS col2 FROM tab0
----
NULL
-405
NULL
-457
NULL
-494

skipif mysql # not compatible
query II rowsort label-7573
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 + ( + + 40 ) * - col2 AS col0, col2 + - 72 * - - 7 AS col2 FROM tab0
----
NULL
-405
NULL
-457
NULL
-494

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT + + MAX( DISTINCT - 55 ) * 8 / COUNT( * ) AS col1 FROM tab0 WHERE NOT - + col2 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7574
SELECT + + MAX ( DISTINCT - 55 ) * 8 / COUNT ( * ) AS col1 FROM tab0 WHERE NOT - + col2 > NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 50 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - - col1 + - 82 FROM tab2 AS cor0 WHERE NOT - 23 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7577
SELECT + CAST( 72 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + col1 * + col1 * col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7577
SELECT + CAST ( 72 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + col1 * + col1 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT - SUM( + - col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-7578
SELECT - SUM ( + - col2 ) AS col1 FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7579
SELECT col2 DIV - CAST( 14 AS SIGNED ) col2 FROM tab1 AS cor0
----
-4
-4
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7579
SELECT col2 / - CAST ( 14 AS INTEGER ) col2 FROM tab1 AS cor0
----
-4
-4
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT ALL - COUNT( * ) * + 80 FROM tab0 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL - COUNT ( * ) * + 80 FROM tab0 AS cor0
----
-240

query II rowsort
SELECT - + col0 AS col2, + col0 AS col1 FROM tab1 cor0
----
-51
51
-85
85
-91
91

query II rowsort
SELECT - col1 AS col0, + 35 FROM tab2 AS cor0
----
-51
35
-67
35
-77
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT - COUNT( * ) * + SUM( - col2 ) AS col0 FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-7583
SELECT - COUNT ( * ) * + SUM ( - col2 ) AS col0 FROM tab1
----
669

query I rowsort
SELECT ALL ( + 15 ) AS col2 FROM tab0
----
15
15
15

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 28 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT DISTINCT + MAX( - col1 ) FROM tab2 WHERE NULL IS NULL
----
-51

skipif mysql # not compatible
query I rowsort label-7586
SELECT DISTINCT + MAX ( - col1 ) FROM tab2 WHERE NULL IS NULL
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7587
SELECT DISTINCT col1, + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-7587
SELECT DISTINCT col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT DISTINCT - 42 * COUNT( * ) col1 FROM tab0
----
-126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7588
SELECT DISTINCT - 42 * COUNT ( * ) col1 FROM tab0
----
-126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 30 col1, - 29 AS col2 FROM tab2 AS cor0
----
30
-29
30
-29
30
-29

query I rowsort
SELECT DISTINCT + col1 * - 94 + - col1 / + col2 + ( - - col1 ) AS col2 FROM tab0 WHERE NOT + 32 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * - - col2 * + - col1 FROM tab1
----
-1475
-150212
-18816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7592
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / 61 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7592
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / 61 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT 24 * - SUM( 53 ) + - - COUNT( * ) FROM tab1 AS cor0
----
-3813

skipif mysql # not compatible
query I rowsort label-7593
SELECT 24 * - SUM ( 53 ) + - - COUNT ( * ) FROM tab1 AS cor0
----
-3813

query II rowsort
SELECT col1 + 24, col1 + - + col2 AS col0 FROM tab0 cor0
----
105
34
25
-98
45
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT - COUNT( - 73 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7595
SELECT - COUNT ( - 73 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - col1 * + + 3 + - col0 * - col1 + - 36 FROM tab1 AS cor0
----
374
4100
636

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 + 33 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( - - col1 ) + + col0 FROM tab0 AS cor0 WHERE 87 <= - col0
----

query I rowsort
SELECT ALL - 4 + - + col0 AS col2 FROM tab2
----
-50
-68
-79

query I rowsort
SELECT ALL + ( + 34 ) - + col2 AS col0 FROM tab2
----
-24
-6
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7601
SELECT DISTINCT - - col2 * - col2 FROM tab1 WHERE NOT 89 BETWEEN + 23 - - col1 AND + CAST( + col1 AS SIGNED )
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT - - col2 * - col2 FROM tab1 WHERE NOT 89 BETWEEN + 23 - - col1 AND + CAST ( + col1 AS INTEGER )
----
-3481
-4624
-9216

query II rowsort
SELECT + col2 * - col0 * + 28 AS col0, ( - 96 ) AS col1 FROM tab0
----
-19740
-96
-24360
-96
-268884
-96

query I rowsort
SELECT + col0 - + + col2 AS col1 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT + col0 - 62 AS col2 FROM tab1 AS cor0
----
-11
23
29

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - ( + - col0 ) NOT BETWEEN 58 / - + 16 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 73 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT MAX( ALL 32 ) AS col0 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-7607
SELECT MAX ( ALL 32 ) AS col0 FROM tab0
----
32

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( 94 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= col0 / + 8 + - 70
----

query I rowsort
SELECT DISTINCT + col2 * + col2 AS col2 FROM tab2 WHERE col1 - col2 * 21 >= 86
----

query I rowsort
SELECT ALL col2 + + 19 AS col1 FROM tab2
----
42
59
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT DISTINCT + COUNT( * ) * 96 FROM tab1 WHERE - 7 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7612
SELECT DISTINCT + COUNT ( * ) * 96 FROM tab1 WHERE - 7 IS NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7613
SELECT + col0 + col0 * ( + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7613
SELECT + col0 + col0 * ( + CAST ( NULL AS REAL ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + + col2 AS col1 FROM tab1 WHERE NULL BETWEEN col1 * col2 AND 19
----

query I rowsort
SELECT ALL - 82 + - col2 FROM tab1
----
-141
-150
-178

query III rowsort
SELECT * FROM tab1 WHERE + ( - col0 ) + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT DISTINCT COUNT( * ) - - ( 55 ) FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-7617
SELECT DISTINCT COUNT ( * ) - - ( 55 ) FROM tab1
----
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7618
SELECT col2 DIV col0 + - ( CAST( 34 AS SIGNED ) + - col1 ) FROM tab1
----
-19
-29
13

skipif mysql # not compatible
query I rowsort label-7618
SELECT col2 / col0 + - ( CAST ( 34 AS INTEGER ) + - col1 ) FROM tab1
----
-19
-29
13

query I rowsort
SELECT DISTINCT 86 + + col0 FROM tab2
----
132
150
161

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 ) - + 44 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 82 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7622
SELECT - col2 * - col2 + + col2 DIV - col0 FROM tab2
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-7622
SELECT - col2 * - col2 + + col2 / - col0 FROM tab2
----
1600
3364
529

query I rowsort
SELECT ALL ( 30 ) AS col0 FROM tab2
----
30
30
30

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 7 ) < col2 * - 16
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7625
SELECT + CAST( col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7625
SELECT + CAST ( col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT DISTINCT 90 * COUNT( ALL 69 ) FROM tab2 AS cor0 WHERE ( NULL ) IN ( + 84 )
----
0

skipif mysql # not compatible
query I rowsort label-7626
SELECT DISTINCT 90 * COUNT ( ALL 69 ) FROM tab2 AS cor0 WHERE ( NULL ) IN ( + 84 )
----
0

query I rowsort
SELECT ALL col1 * + col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( - ( col1 ) * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7628
SELECT DISTINCT + 69 * + ( - col0 ) AS col2 FROM tab1 AS cor0 WHERE - col2 * col0 IN ( - CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7628
SELECT DISTINCT + 69 * + ( - col0 ) AS col2 FROM tab1 AS cor0 WHERE - col2 * col0 IN ( - CAST ( col1 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT DISTINCT 10 * + COUNT( * ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-7629
SELECT DISTINCT 10 * + COUNT ( * ) FROM tab2
----
30

query I rowsort
SELECT col1 * 48 AS col1 FROM tab2
----
2448
3216
3696

query I rowsort
SELECT ALL 83 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT DISTINCT ( + ( col2 ) ) AS col0 FROM tab2
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 75 * - col2 NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 61 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > - 86 * ( - ( - col1 ) ) + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7636
SELECT DISTINCT 24 * + MAX( + CAST( + 87 AS SIGNED ) + + col0 ) + 70 AS col0 FROM tab0 AS cor0
----
4486

skipif mysql # not compatible
query I rowsort label-7636
SELECT DISTINCT 24 * + MAX ( + CAST ( + 87 AS INTEGER ) + + col0 ) + 70 AS col0 FROM tab0 AS cor0
----
4486

query I rowsort
SELECT + 7 + - 59 FROM tab1 AS cor0
----
-52
-52
-52

query I rowsort
SELECT ALL - + ( col1 ) + - col1 * col0 FROM tab2 AS cor0
----
-2397
-5005
-5092

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT + MIN( DISTINCT - 26 ) * - COUNT( * ) + COUNT( - 89 + - col0 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7639
SELECT + MIN ( DISTINCT - 26 ) * - COUNT ( * ) + COUNT ( - 89 + - col0 ) FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7640
SELECT - CAST( NULL AS SIGNED ) + - 84 - + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7640
SELECT - CAST ( NULL AS INTEGER ) + - 84 - + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 8 + - + col1 - 12 * - col2 AS col2 FROM tab1
----
1146
711
777

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7642
SELECT DISTINCT CAST( + col2 AS SIGNED ) + + col2 AS col1 FROM tab2
----
116
46
80

skipif mysql # not compatible
query I rowsort label-7642
SELECT DISTINCT CAST ( + col2 AS INTEGER ) + + col2 AS col1 FROM tab2
----
116
46
80

query I rowsort
SELECT + 62 + + col0 AS col1 FROM tab0
----
149
159
77

query I rowsort
SELECT ALL 68 + + col1 + + col1 AS col1 FROM tab2
----
170
202
222

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT DISTINCT ( SUM( DISTINCT - col0 ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-7645
SELECT DISTINCT ( SUM ( DISTINCT - col0 ) ) FROM tab0
----
-199

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7646
SELECT DISTINCT 57 DIV + COUNT( * ) FROM tab0 WHERE NOT + col0 IS NULL
----
19

skipif mysql # not compatible
query I rowsort label-7646
SELECT DISTINCT 57 / + COUNT ( * ) FROM tab0 WHERE NOT + col0 IS NULL
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7647
SELECT ALL + COUNT( ALL + col1 ) * COUNT( ALL + CAST( NULL AS SIGNED ) + + 74 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7647
SELECT ALL + COUNT ( ALL + col1 ) * COUNT ( ALL + CAST ( NULL AS INTEGER ) + + 74 ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7648
SELECT ALL - 96 - COUNT( * ) DIV MIN( col1 * - 84 ) AS col1 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7648
SELECT ALL - 96 - COUNT ( * ) / MIN ( col1 * - 84 ) AS col1 FROM tab0 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7649
SELECT + ( + CAST( NULL AS SIGNED ) ) * 96 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7649
SELECT + ( + CAST ( NULL AS INTEGER ) ) * 96 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + - col2 * col1 FROM tab0 AS cor0
----
-123
-2
-3792

query I rowsort
SELECT col2 * 15 * - 13 - col1 FROM tab2 cor0
----
-11377
-4536
-7877

query I rowsort
SELECT DISTINCT + - 92 * - col1 FROM tab0 AS cor0
----
1932
7452
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7653
SELECT col2 * - 49 AS col1 FROM tab1 AS cor0 WHERE NOT NULL > ( CAST( NULL AS SIGNED ) ) * + col1
----

skipif mysql # not compatible
query I rowsort label-7653
SELECT col2 * - 49 AS col1 FROM tab1 AS cor0 WHERE NOT NULL > ( CAST ( NULL AS INTEGER ) ) * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE 87 * col1 - col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7654
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE 87 * col1 - col0 = NULL
----
0

query I rowsort
SELECT ALL ( + 41 ) FROM tab1
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT DISTINCT 51 * - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-459

skipif mysql # not compatible
query I rowsort label-7656
SELECT DISTINCT 51 * - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-459

onlyif mysql # aggregate syntax: 
query II rowsort label-7657
SELECT + 73 AS col0, COUNT( + - 78 ) + + 17 AS col1 FROM tab0 AS cor0
----
73
20

skipif mysql # not compatible
query II rowsort label-7657
SELECT + 73 AS col0, COUNT ( + - 78 ) + + 17 AS col1 FROM tab0 AS cor0
----
73
20

query II rowsort
SELECT DISTINCT + col1, - 76 AS col2 FROM tab0 AS cor0
----
1
-76
21
-76
81
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT MAX( DISTINCT + + col0 ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-7659
SELECT MAX ( DISTINCT + + col0 ) FROM tab0 cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT + - ( + + 84 ) * COUNT( * ) col1 FROM tab2 cor0
----
-252

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7660
SELECT + - ( + + 84 ) * COUNT ( * ) col1 FROM tab2 cor0
----
-252

query I rowsort
SELECT DISTINCT 79 * - - ( col0 ) AS col2 FROM tab1 AS cor0
----
4029
6715
7189

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7662
SELECT ALL col1 DIV - CAST( - 82 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7662
SELECT ALL col1 / - CAST ( - 82 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 * - col2 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 * col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT ALL - MIN( 32 ) * - 74 AS col1 FROM tab1 AS cor0
----
2368

skipif mysql # not compatible
query I rowsort label-7664
SELECT ALL - MIN ( 32 ) * - 74 AS col1 FROM tab1 AS cor0
----
2368

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( 51 )
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE NOT + 42 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT COUNT( * ) FROM tab1 WHERE NOT + col1 + - 56 / 74 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7667
SELECT COUNT ( * ) FROM tab1 WHERE NOT + col1 + - 56 / 74 IS NULL
----
3

query I rowsort
SELECT + 0 * + ( col1 ) FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= ( + 46 )
----

query I rowsort
SELECT - 7 * - ( - col2 ) * + ( col0 ) FROM tab0
----
-4935
-6090
-67221

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7671
SELECT - 74 * + COUNT( CAST( + col0 AS DECIMAL ) ) AS col2 FROM tab0
----
-222

skipif mysql # not compatible
query I rowsort label-7671
SELECT - 74 * + COUNT ( CAST ( + col0 AS REAL ) ) AS col2 FROM tab0
----
-222

query I rowsort
SELECT ALL + col1 * - 12 FROM tab1 AS cor0 WHERE ( + col2 + col2 ) IS NOT NULL
----
-168
-564
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-7673
SELECT - 93 * col2 * - 84 + + ( + col2 ) DIV col2 FROM tab2
----
179677
312481
453097

skipif mysql # not compatible
query I rowsort label-7673
SELECT - 93 * col2 * - 84 + + ( + col2 ) / col2 FROM tab2
----
179677
312481
453097

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE + - col0 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT + - col1 + - - ( + + col2 ) FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT + col0 + + 70 AS col0 FROM tab0 AS cor0
----
157
167
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7677
SELECT - CAST( NULL AS SIGNED ) + 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-7677
SELECT - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * + col2 * 65 + + + col2 FROM tab0 AS cor0
----
45872
56560
624294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7679
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col2 / 70 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7679
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 / 70 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT + MIN( col0 ) * ( - 86 ) AS col1 FROM tab1 AS cor0
----
-4386

skipif mysql # not compatible
query I rowsort label-7680
SELECT + MIN ( col0 ) * ( - 86 ) AS col1 FROM tab1 AS cor0
----
-4386

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT IN ( + col1, 27 )
----

query I rowsort
SELECT - + 82 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 60 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 ) * - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * col2 + + - col0 + - - col0 AS col0 FROM tab0 AS cor0
----
210
3807
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 ) BETWEEN ( col1 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - 37 AS col1 FROM tab2 cor0 WHERE col2 + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 + col0 AS col2 FROM tab1 WHERE + - 2 < + col2 / - col1 * + col2 + col0 * + 46
----
102
170
182

query I rowsort
SELECT 83 - + - col1 AS col2 FROM tab0
----
104
164
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT ALL - 69 * - 11 + COUNT( * ) FROM tab1
----
762

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL - 69 * - 11 + COUNT ( * ) FROM tab1
----
762

query III rowsort
SELECT * FROM tab2 WHERE + 86 <> - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7692
SELECT DISTINCT 89 * - 25 AS col1 FROM tab1 WHERE NOT + 62 + - col1 * - CAST( ( col2 ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7692
SELECT DISTINCT 89 * - 25 AS col1 FROM tab1 WHERE NOT + 62 + - col1 * - CAST ( ( col2 ) AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7693
SELECT - + CAST( - col1 AS SIGNED ) col1 FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7693
SELECT - + CAST ( - col1 AS INTEGER ) col1 FROM tab0 cor0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 75 ) BETWEEN col1 AND + + col0 - + col1 + - - 1
----
51
14
96
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7695
SELECT ALL + CAST( NULL AS SIGNED ) * 41 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7695
SELECT ALL + CAST ( NULL AS INTEGER ) * 41 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7696
SELECT DISTINCT + + AVG ( + - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7696
SELECT DISTINCT + + AVG ( + - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT COUNT( ALL + + 57 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7697
SELECT COUNT ( ALL + + 57 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT DISTINCT + 75 * - + MIN( ALL + col0 ) FROM tab0 AS cor0
----
-1125

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT + 75 * - + MIN ( ALL + col0 ) FROM tab0 AS cor0
----
-1125

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + col2 * 35 IS NOT NULL
----

query II rowsort
SELECT 90 * col0, col1 FROM tab0 AS cor0
----
1350
81
7830
21
8730
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7701
SELECT ALL + col1 DIV + 19 FROM tab2 cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-7701
SELECT ALL + col1 / + 19 FROM tab2 cor0
----
2
3
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7702
SELECT + 48 DIV - COUNT( * ) FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-7702
SELECT + 48 / - COUNT ( * ) FROM tab2 AS cor0
----
-16

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col2, + col0 * - - col1 )
----

query I rowsort
SELECT col2 + - 26 + 16 * + 69 * + 43 FROM tab0 cor0 WHERE NOT ( ( ( NULL ) <> NULL ) )
----

query I rowsort
SELECT DISTINCT + col0 + + - 32 + + col2 FROM tab1
----
112
115
127

query I rowsort
SELECT col1 * - - 20 AS col1 FROM tab2
----
1020
1340
1540

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 * col1 <= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 30 * + + col0 FROM tab1
----
1530
2550
2730

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT ALL + 27 + - MIN( col0 ) FROM tab0 WHERE NOT col2 IN ( + col2 * + - col2, col0 )
----
12

skipif mysql # not compatible
query I rowsort label-7709
SELECT ALL + 27 + - MIN ( col0 ) FROM tab0 WHERE NOT col2 IN ( + col2 * + - col2, col0 )
----
12

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> - 21
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 65 + - 71 * - + col0 col1 FROM tab1 AS cor0
----
3635
6015
6435

query I rowsort
SELECT DISTINCT - + 33 + - + 35 FROM tab0 AS cor0
----
-68

query I rowsort
SELECT + + col2 AS col1 FROM tab0 WHERE ( ( NOT NULL IS NOT NULL ) )
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7715
SELECT DISTINCT 49 - + + 49 - + 77 + + COUNT( col1 ) + + ( + CAST( - 50 AS SIGNED ) ) FROM tab1 cor0
----
-124

skipif mysql # not compatible
query I rowsort label-7715
SELECT DISTINCT 49 - + + 49 - + 77 + + COUNT ( col1 ) + + ( + CAST ( - 50 AS INTEGER ) ) FROM tab1 cor0
----
-124

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7716
SELECT - ( col2 ) + - ( - - CAST( + col1 AS SIGNED ) ), + col2 FROM tab2 AS cor0
----
-117
40
-125
58
-74
23

skipif mysql # not compatible
query II rowsort label-7716
SELECT - ( col2 ) + - ( - - CAST ( + col1 AS INTEGER ) ), + col2 FROM tab2 AS cor0
----
-117
40
-125
58
-74
23

query I rowsort
SELECT DISTINCT - - 30 + + col0 FROM tab1 AS cor0
----
115
121
81

query I rowsort
SELECT - col0 * - 10 + + 11 AS col0 FROM tab1 cor0
----
521
861
921

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 59 IN ( + ( - - 46 ) * - 58 * 69 + 78 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT ALL - COUNT( * ) + + MIN( DISTINCT - col0 ) FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL - COUNT ( * ) + + MIN ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-94

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 41 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL ( + 87 ) + + - col1 * + col2 * - col2 * - col2 FROM tab0 AS cor0
----
-20913
-8409576
-970212

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT ALL + 98 + - COUNT( + col2 ) FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-7723
SELECT ALL + 98 + - COUNT ( + col2 ) FROM tab0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT 3 + COUNT( * ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-7724
SELECT 3 + COUNT ( * ) AS col2 FROM tab1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7725
SELECT ALL CAST( NULL AS SIGNED ) - CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL CAST ( NULL AS INTEGER ) - CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE 66 * ( - - col0 ) >= 31
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT ALL + 52 * COUNT( * ) col1 FROM tab1 AS cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7727
SELECT ALL + 52 * COUNT ( * ) col1 FROM tab1 AS cor0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 89 col2 FROM tab0 AS cor0
----
89
89
89

query I rowsort
SELECT + col0 * col1 * col0 * col2 FROM tab1 AS cor0
----
2131375
26466076
3495744

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 20 * - 31 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 91 + - ( + + col0 ) > ( 41 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * + 52 / + + 38 AS col2 FROM tab1 AS cor0 WHERE NOT 76 NOT BETWEEN - col1 * + col1 AND NULL
----

query I rowsort
SELECT ALL - AVG ( col1 ) AS col2 FROM tab0 cor0 WHERE ( NULL ) BETWEEN col1 + - col2 * - + col1 + - + col1 AND + col1 * + 6
----
NULL

query I rowsort
SELECT ALL + col1 * - ( - - col2 ) AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT + col1 * - - 48 AS col2 FROM tab2 AS cor0
----
2448
3216
3696

query I rowsort
SELECT + col2 * + 31 + col0 AS col2 FROM tab1 AS cor0
----
1914
2199
3027

query I rowsort
SELECT DISTINCT + col0 + + col1 + + - col2 FROM tab1 AS cor0
----
-31
31
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT ALL - COUNT( - col2 ) * + + MIN( + col0 ) FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-7738
SELECT ALL - COUNT ( - col2 ) * + + MIN ( + col0 ) FROM tab2 AS cor0
----
-138

onlyif mysql # DIV for integer division: 
query I rowsort label-7739
SELECT DISTINCT + ( + - 64 ) DIV - col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7739
SELECT DISTINCT + ( + - 64 ) / - col2 FROM tab1 AS cor0
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7740
SELECT DISTINCT + 74, SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
74
NULL

skipif mysql # not compatible
query II rowsort label-7740
SELECT DISTINCT + 74, SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
74
NULL

query I rowsort
SELECT - + 71 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 + - ( + col1 ) IS NULL
----
-71
-71
-71

query I rowsort
SELECT - col0 * - 88 * col1 FROM tab1 AS cor0
----
37400
376376
62832

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT DISTINCT 26 + - 85 * - - 92 - - COUNT( + - 49 ) col2 FROM tab2
----
-7791

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7743
SELECT DISTINCT 26 + - 85 * - - 92 - - COUNT ( + - 49 ) col2 FROM tab2
----
-7791

query III rowsort
SELECT * FROM tab2 WHERE 91 > + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 56 * - - 56 - + 76, 36 * + 74 FROM tab2 WHERE - + col0 + col0 * col1 <= + 35 + + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7746
SELECT ALL - COUNT( * ) * + AVG ( - 87 ) * - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7746
SELECT ALL - COUNT ( * ) * + AVG ( - 87 ) * - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7747
SELECT - + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7747
SELECT - + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7748
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE 92 * + 66 NOT IN ( + - col1, - col2 + col1, 48 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7748
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE 92 * + 66 NOT IN ( + - col1, - col2 + col1, 48 )
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + ( + col2 ) AS col2, 79 AS col0 FROM tab0 AS cor0
----
10
79
47
79
99
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT DISTINCT - COUNT( * ) + - 86 FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-7750
SELECT DISTINCT - COUNT ( * ) + - 86 FROM tab2 AS cor0
----
-89

query I rowsort
SELECT + col2 + + 79 AS col2 FROM tab1 AS cor0
----
138
147
175

query I rowsort
SELECT ALL - col0 - 88 AS col1 FROM tab0 WHERE - + col1 = NULL
----

query I rowsort
SELECT ALL + 92 * 74 - - 83 FROM tab2 AS cor0
----
6891
6891
6891

query I rowsort
SELECT col2 * - col1 - 78 + + col0 FROM tab1 AS cor0
----
-1371
-288
-3183

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7755
SELECT - col0, + col0 AS col0 FROM tab1 AS cor0 WHERE - CAST( - + col2 AS SIGNED ) * - col0 * + 24 IS NOT NULL
----
-51
51
-85
85
-91
91

skipif mysql # not compatible
query II rowsort label-7755
SELECT - col0, + col0 AS col0 FROM tab1 AS cor0 WHERE - CAST ( - + col2 AS INTEGER ) * - col0 * + 24 IS NOT NULL
----
-51
51
-85
85
-91
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7756
SELECT ALL MAX( + CAST( + 99 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7756
SELECT ALL MAX ( + CAST ( + 99 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 63 * 5 col1 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query II rowsort
SELECT ALL + col0 AS col0, - col0 AS col0 FROM tab2 cor0
----
46
-46
64
-64
75
-75

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 48 * + col2 * + - 87 = - + 91
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT - COUNT( * ) * - MAX( - col2 ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-7760
SELECT - COUNT ( * ) * - MAX ( - col2 ) FROM tab0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT MIN( ALL + 0 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7761
SELECT MIN ( ALL + 0 ) AS col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - - col2 col2 FROM tab1
----
3481
4624
9216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7763
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7763
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 - + 81 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( - - 81 > NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT NULL < col1 )
----

query II rowsort
SELECT + 61 AS col2, col1 FROM tab0
----
61
1
61
21
61
81

query II rowsort
SELECT - col1 AS col0, col1 AS col2 FROM tab2 cor0
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT - MAX( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-7768
SELECT - MAX ( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT ALL - col1 + col2 + - 50 * + 99 * - col1 + - + col1 AS col2 FROM tab0
----
103918
400835
5047

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT - 37 + + ( + COUNT( * ) ) FROM tab2
----
-34

skipif mysql # not compatible
query I rowsort label-7770
SELECT - 37 + + ( + COUNT ( * ) ) FROM tab2
----
-34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7771
SELECT ALL 25 + - - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7771
SELECT ALL 25 + - - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( - - col0 ) + col2 AS col2 FROM tab1
----
144
147
159

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE + col0 IS NOT NULL
----
1
21
81

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + + ( - col2 ) * + + ( - col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT 9 + - - 44 * + col0 AS col0 FROM tab1
----
2253
3749
4013

query II rowsort
SELECT ALL + 15, + col1 FROM tab1 AS cor0
----
15
14
15
47
15
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7777
SELECT ALL - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7777
SELECT ALL - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7778
SELECT + + col1 DIV + - col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7778
SELECT + + col1 / + - col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - - 14 FROM tab2 WHERE NULL < NULL
----

query I rowsort
SELECT 58 - + - col0 AS col2 FROM tab1
----
109
143
149

query I rowsort
SELECT DISTINCT col1 - + col1 * col0 FROM tab2
----
-2295
-4851
-4958

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT ALL + - SUM( DISTINCT - ( + + col1 ) ) col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7782
SELECT ALL + - SUM ( DISTINCT - ( + + col1 ) ) col1 FROM tab2 AS cor0
----
195

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 33 - - 78 IS NOT NULL
----

query I rowsort
SELECT + ( - 46 ) FROM tab1 AS cor0
----
-46
-46
-46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> - col1 + 85 * 30
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7786
SELECT - + 74 DIV COUNT( * ) * - COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-7786
SELECT - + 74 / COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
216

query I rowsort
SELECT DISTINCT - col0 * 27 FROM tab0 AS cor0
----
-2349
-2619
-405

query I rowsort
SELECT + col2 * 49 AS col0 FROM tab2 AS cor0
----
1127
1960
2842

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE NOT col0 * 37 * + col1 <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7790
SELECT ALL - col0 AS col2, + col2 DIV + ( - col0 ) AS col2 FROM tab2
----
-46
0
-64
0
-75
0

skipif mysql # not compatible
query II rowsort label-7790
SELECT ALL - col0 AS col2, + col2 / + ( - col0 ) AS col2 FROM tab2
----
-46
0
-64
0
-75
0

query II rowsort
SELECT col2, + 33 + col1 AS col0 FROM tab2
----
23
84
40
110
58
100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col0 col0 FROM tab2
----
2116
4096
5625

onlyif mysql # DIV for integer division: 
query I rowsort label-7793
SELECT 12 DIV - 45 + 67 AS col2 FROM tab1
----
67
67
67

skipif mysql # not compatible
query I rowsort label-7793
SELECT 12 / - 45 + 67 AS col2 FROM tab1
----
67
67
67

query I rowsort
SELECT - + 23 + - + 93 AS col1 FROM tab0 AS cor0
----
-116
-116
-116

onlyif mysql # DIV for integer division: 
query I rowsort label-7795
SELECT + + 48 DIV + - col2 + - + col2 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7795
SELECT + + 48 / + - col2 + - + col2 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT + + 54 / 88 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 + + col2 + col1 AS col0 FROM tab2 AS cor0
----
120
181
200

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT DISTINCT - COUNT( * ) + - + 14 AS col1 FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-7798
SELECT DISTINCT - COUNT ( * ) + - + 14 AS col1 FROM tab1 AS cor0
----
-17

query I rowsort
SELECT ALL - col2 + col0 + + col2 FROM tab2 cor0
----
46
64
75

query II rowsort
SELECT 26 AS col2, col2 FROM tab2
----
26
23
26
40
26
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7801
SELECT col0 + + - col1 - - CAST( NULL AS DECIMAL ) + + 69 FROM tab0 WHERE + - 2 BETWEEN + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-7801
SELECT col0 + + - col1 - - CAST ( NULL AS REAL ) + + 69 FROM tab0 WHERE + - 2 BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7802
SELECT ALL + COUNT( + + 92 ) + + - 0 AS col2, - 28 AS col1 FROM tab0
----
3
-28

skipif mysql # not compatible
query II rowsort label-7802
SELECT ALL + COUNT ( + + 92 ) + + - 0 AS col2, - 28 AS col1 FROM tab0
----
3
-28

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT 56 + - - col0 IS NOT NULL
----

query I rowsort
SELECT - ( ( - + col2 ) ) FROM tab0
----
10
47
99

query I rowsort
SELECT - col1 * - 46 + + 71 * 8 AS col0 FROM tab2 AS cor0
----
2914
3650
4110

query I rowsort
SELECT DISTINCT + col1 + 8 FROM tab0 cor0
----
29
89
9

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL <= - 36
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7808
SELECT ALL + COUNT( ALL + + 82 ) * + CAST( NULL AS SIGNED ) / - 16 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL + COUNT ( ALL + + 82 ) * + CAST ( NULL AS INTEGER ) / - 16 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + col1, - col0 + - 17 FROM tab1 cor0
----
14
-68
47
-108
5
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT - + COUNT( * ) * - 64 + + + 10 AS col2 FROM tab1 AS cor0
----
202

skipif mysql # not compatible
query I rowsort label-7810
SELECT - + COUNT ( * ) * - 64 + + + 10 AS col2 FROM tab1 AS cor0
----
202

query II rowsort
SELECT + col1, + col2 * + 72 AS col0 FROM tab2 cor0
----
51
1656
67
4176
77
2880

query I rowsort
SELECT ALL + + ( - - col0 ) - + - col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT 74 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
74
74
74

onlyif mysql # DIV for integer division: 
query I rowsort label-7814
SELECT - + 97 DIV - + col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7814
SELECT - + 97 / - + col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT ALL COUNT( * ) * + MAX( + ( - col1 ) ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL COUNT ( * ) * + MAX ( + ( - col1 ) ) FROM tab1
----
-15

query I rowsort
SELECT ( + col2 ) * 91 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7817
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < CAST( - - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7817
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < CAST ( - - col1 AS INTEGER )
----

query I rowsort
SELECT DISTINCT col1 * 60 AS col2 FROM tab2
----
3060
4020
4620

query II rowsort
SELECT - 83 AS col1, - col1 AS col0 FROM tab2 AS cor0 WHERE NOT 45 > + col2 + + col0
----
-83
-51
-83
-67
-83
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7820
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7820
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7821
SELECT DISTINCT - col2 AS col1, CAST( NULL AS SIGNED ) col1 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7821
SELECT DISTINCT - col2 AS col1, CAST ( NULL AS INTEGER ) col1 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT - SUM( ALL - 91 ) FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-7822
SELECT - SUM ( ALL - 91 ) FROM tab0
----
273

query I rowsort
SELECT - ( - - col0 ) FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN NULL AND + 68
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT DISTINCT - MAX( ALL + col0 ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7824
SELECT DISTINCT - MAX ( ALL + col0 ) FROM tab2 cor0
----
-75

query I rowsort
SELECT ALL 16 FROM tab1 AS cor0 WHERE + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT DISTINCT COUNT( * ) + - ( + COUNT( * ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7826
SELECT DISTINCT COUNT ( * ) + - ( + COUNT ( * ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col0 + + 91 AS col0 FROM tab0 cor0
----
106
178
188

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * + + col0 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7829
SELECT 4 + - COUNT( * ) DIV + 49 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-7829
SELECT 4 + - COUNT ( * ) / + 49 FROM tab1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7830
SELECT + col1 AS col2, + 52 + - 90 FROM tab2 WHERE + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-7830
SELECT + col1 AS col2, + 52 + - 90 FROM tab2 WHERE + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7831
SELECT ALL - 44 * COUNT( CAST( NULL AS SIGNED ) ) col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7831
SELECT ALL - 44 * COUNT ( CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT ALL + MIN( - + 21 ) AS col0 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL + MIN ( - + 21 ) AS col0 FROM tab2
----
-21

query II rowsort
SELECT DISTINCT + - 51 AS col1, 19 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-51
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7834
SELECT CAST( 9 AS SIGNED ) FROM tab0 AS cor0
----
9
9
9

skipif mysql # not compatible
query I rowsort label-7834
SELECT CAST ( 9 AS INTEGER ) FROM tab0 AS cor0
----
9
9
9

query I rowsort
SELECT ALL + ( + col1 ) * + col0 AS col2 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7836
SELECT * FROM tab2 AS cor0 WHERE NOT + 84 * col1 * - CAST( - col2 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7836
SELECT * FROM tab2 AS cor0 WHERE NOT + 84 * col1 * - CAST ( - col2 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + 77 * - col1 AS col1 FROM tab1 AS cor0
----
1078
3619
385

query I rowsort
SELECT ALL - 20 * - - col0 * + + col0 FROM tab0 AS cor0
----
-151380
-188180
-4500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7839
SELECT ALL CAST( + SUM( DISTINCT + - 97 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7839
SELECT ALL CAST ( + SUM ( DISTINCT + - 97 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-97

query I rowsort
SELECT DISTINCT + 97 FROM tab2 cor0 WHERE NOT ( NULL NOT BETWEEN + col1 * + + 58 AND - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT - ( + COUNT( * ) ) * + COUNT( * ) + + COUNT( * ) FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7841
SELECT - ( + COUNT ( * ) ) * + COUNT ( * ) + + COUNT ( * ) FROM tab2 cor0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-7842
SELECT + COUNT( * ), 67 * - + COUNT( * ) col0 FROM tab0
----
3
-201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7842
SELECT + COUNT ( * ), 67 * - + COUNT ( * ) col0 FROM tab0
----
3
-201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, col2 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT ALL - col1 * - 22 FROM tab1
----
1034
110
308

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col0, - col0 col2 FROM tab1
----
59
-85
68
-91
96
-51

query II rowsort
SELECT - 72 AS col0, - 31 + + + 8 FROM tab0 AS cor0
----
-72
-23
-72
-23
-72
-23

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 IN ( + col1 * + 45 - + col0, - 61 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7848
SELECT SUM( ALL - - col0 ) * + 63 * + + 77 / + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7848
SELECT SUM ( ALL - - col0 ) * + 63 * + + 77 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + 85 + col0 AS col0 FROM tab1 AS cor0
----
136
170
176

query II rowsort
SELECT DISTINCT 87 AS col1, + 74 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
87
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT + - COUNT( * ) * COUNT( * ) + ( 18 ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7851
SELECT + - COUNT ( * ) * COUNT ( * ) + ( 18 ) AS col0 FROM tab1 AS cor0
----
9

query I rowsort
SELECT + col2 + 56 AS col2 FROM tab1 AS cor0
----
115
124
152

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT DISTINCT MAX( DISTINCT col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7853
SELECT DISTINCT MAX ( DISTINCT col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <> - + col1
----

query I rowsort
SELECT - - col0 + + 19 FROM tab2 AS cor0
----
65
83
94

query I rowsort
SELECT - + 80 * + + col0 + + col1 FROM tab0 cor0
----
-1119
-6939
-7759

query II rowsort
SELECT ALL - + col2 AS col1, 91 AS col0 FROM tab0 AS cor0 WHERE NOT 38 * - col1 * + - 83 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7858
SELECT - - 11 * + + CAST( - 11 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-121
-121
-121

skipif mysql # not compatible
query I rowsort label-7858
SELECT - - 11 * + + CAST ( - 11 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-121
-121
-121

query I rowsort
SELECT ALL - 27 - - col0 FROM tab2
----
19
37
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 46 + - col0 col1 FROM tab2 WHERE NULL IS NULL
----
-18
-29
0

query I rowsort
SELECT - 24 AS col1 FROM tab2 WHERE ( NULL ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT ALL - COUNT( * ) + - 93 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-7862
SELECT ALL - COUNT ( * ) + - 93 FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT DISTINCT + SUM( DISTINCT - - col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-7863
SELECT DISTINCT + SUM ( DISTINCT - - col1 ) FROM tab0
----
103

query I rowsort
SELECT col1 - 99 + + + col2 AS col2 FROM tab1
----
-35
11
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT ALL COUNT( * ) - 91 AS col2 FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL COUNT ( * ) - 91 AS col2 FROM tab0
----
-88

query II rowsort
SELECT DISTINCT + ( 13 ) AS col2, - col1 AS col0 FROM tab0 AS cor0 WHERE NOT 87 * - col2 * col0 IS NULL
----
13
-1
13
-21
13
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) col2 FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT DISTINCT - ( - 58 ) AS col0 FROM tab1
----
58

query I rowsort
SELECT DISTINCT col0 * - - col1 + + 34 AS col1 FROM tab1 cor0 WHERE NULL <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT ALL COUNT( * ) * 71 + - COUNT( * ) FROM tab0 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-7870
SELECT ALL COUNT ( * ) * 71 + - COUNT ( * ) FROM tab0 AS cor0
----
210

query I rowsort
SELECT - col2 * - + col1 AS col1 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT + + COUNT( - col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7872
SELECT + + COUNT ( - col2 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT DISTINCT - COUNT( - + 41 ) * + + 75 AS col0 FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-7873
SELECT DISTINCT - COUNT ( - + 41 ) * + + 75 AS col0 FROM tab2 AS cor0
----
-225

query I rowsort
SELECT DISTINCT + - col0 * - + col1 FROM tab2 AS cor0
----
2346
4928
5025

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) = - + 33 + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 69 col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7877
SELECT DISTINCT * FROM tab2 WHERE NOT + 86 - - + 44 * + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7877
SELECT DISTINCT * FROM tab2 WHERE NOT + 86 - - + 44 * + CAST ( NULL AS REAL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 9, col2 * ( - - ( - 37 ) ) col2 FROM tab1
----
9
-2183
9
-2516
9
-3552

query I rowsort
SELECT + 78 * + col2 AS col0 FROM tab1
----
4602
5304
7488

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7880
SELECT COUNT( * ) * - + 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-7880
SELECT COUNT ( * ) * - + CAST ( NULL AS REAL ) col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7881
SELECT 3 DIV MAX( + col2 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7881
SELECT 3 / MAX ( + col2 ) AS col0 FROM tab0
----
0

query I rowsort
SELECT col0 * - + col0 * col1 AS col0 FROM tab1
----
-36125
-36414
-389207

onlyif mysql # DIV for integer division: 
query I rowsort label-7883
SELECT ALL col0 DIV + - col0 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL col0 / + - col0 AS col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT - col2 FROM tab1 cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT + col1 * + 38 FROM tab0 AS cor0
----
3078
38
798

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT ALL + COUNT( * ) * - + 0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL + COUNT ( * ) * - + 0 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 69 col1 FROM tab1
----
-3243
-345
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( ( NOT + col1 / - col1 < NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-7888
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( ( NOT + col1 / - col1 < NULL ) )
----
0

query II rowsort
SELECT - col2 - - + col0 AS col1, 1 AS col1 FROM tab0 AS cor0
----
-2
1
-32
1
77
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 74 col1 FROM tab0 AS cor0
----
-7
53
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT DISTINCT - MIN( DISTINCT + 9 ) + - - 88 col0 FROM tab1
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7891
SELECT DISTINCT - MIN ( DISTINCT + 9 ) + - - 88 col0 FROM tab1
----
79

query I rowsort
SELECT ALL col0 + + 50 AS col1 FROM tab2
----
114
125
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT ALL + COUNT( * ) * + 16 - - ( 98 ) AS col2 FROM tab0
----
146

skipif mysql # not compatible
query I rowsort label-7893
SELECT ALL + COUNT ( * ) * + 16 - - ( 98 ) AS col2 FROM tab0
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-7894
SELECT ALL - 98 + - COUNT( * ) AS col1, - 48 FROM tab0
----
-101
-48

skipif mysql # not compatible
query II rowsort label-7894
SELECT ALL - 98 + - COUNT ( * ) AS col1, - 48 FROM tab0
----
-101
-48

query I rowsort
SELECT ALL + col0 * col2 - - col0 AS col1 FROM tab2
----
1104
2624
4425

query I rowsort
SELECT DISTINCT col0 + col0 - + col0 AS col0 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL + 72 - col2 + - col0 * 43 + 37 FROM tab2
----
-1892
-2683
-3174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 col1 FROM tab2 AS cor0 WHERE NOT col1 * col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7899
SELECT * FROM tab0 AS cor0 WHERE NOT 95 * CAST( 89 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7899
SELECT * FROM tab0 AS cor0 WHERE NOT 95 * CAST ( 89 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - col2 * + - col0 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7901
SELECT ALL + + SUM( + - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL + + SUM ( + - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + + col1 AS col0, + col0 AS col2 FROM tab0 AS cor0
----
1
97
21
87
81
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + col2 ) col2 FROM tab0 cor0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - col2 * + - col2 col1 FROM tab1 AS cor0
----
-295885
-420784
-470016

query II rowsort
SELECT ALL + - col1, col2 * + col0 AS col0 FROM tab1 AS cor0
----
-14
4896
-47
6188
-5
5015

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT + COUNT( + - col1 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7906
SELECT + COUNT ( + - col1 ) col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT ALL + + MAX( ALL 9 ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7907
SELECT ALL + + MAX ( ALL 9 ) FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7908
SELECT 74 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 WHERE NOT NULL > - 85 / - col0
----

skipif mysql # not compatible
query I rowsort label-7908
SELECT 74 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 WHERE NOT NULL > - 85 / - col0
----

query I rowsort
SELECT DISTINCT - 65 * + col0 AS col1 FROM tab2
----
-2990
-4160
-4875

query I rowsort
SELECT DISTINCT 96 * - col0 FROM tab2
----
-4416
-6144
-7200

query I rowsort
SELECT ALL col0 * + ( + 7 ) FROM tab2
----
322
448
525

query I rowsort
SELECT ALL - col2 * - col0 + - col0 AS col1 FROM tab2 AS cor0
----
1012
2496
4275

query I rowsort
SELECT col2 + - 95 AS col2 FROM tab2
----
-37
-55
-72

query I rowsort
SELECT 51 + + col0 FROM tab0
----
138
148
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT SUM( ALL 43 ) + - COUNT( * ) FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-7915
SELECT SUM ( ALL 43 ) + - COUNT ( * ) FROM tab2
----
126

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) IN ( + 75, - 72, + col2 + - - 65 )
----

query I rowsort
SELECT DISTINCT ( - ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7918
SELECT MIN( 97 ) * 23 DIV - SUM( - - col2 ) col2 FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7918
SELECT MIN ( 97 ) * 23 / - SUM ( - - col2 ) col2 FROM tab0 AS cor0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-7919
SELECT 49 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7919
SELECT 49 / + col2 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT - 73 AS col1, - col1 FROM tab2 AS cor0
----
-73
-51
-73
-67
-73
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT - MAX( DISTINCT + - 77 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7921
SELECT - MAX ( DISTINCT + - 77 ) AS col2 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-7922
SELECT DISTINCT + - COUNT( * ) AS col0, + MIN( ALL - - col2 ) AS col1 FROM tab1 AS cor0
----
-3
59

skipif mysql # not compatible
query II rowsort label-7922
SELECT DISTINCT + - COUNT ( * ) AS col0, + MIN ( ALL - - col2 ) AS col1 FROM tab1 AS cor0
----
-3
59

query I rowsort
SELECT DISTINCT 11 + - col0 * - col1 FROM tab0 AS cor0
----
108
1226
1838

query I rowsort
SELECT ALL + 45 * + ( 6 ) + + 37 + - col2 * 93 + - col1 AS col0 FROM tab1 AS cor0
----
-5185
-6064
-8635

query I rowsort
SELECT ALL + ( col1 ) + + 6 FROM tab2
----
57
73
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT + SUM( + 37 ) FROM tab1
----
111

skipif mysql # not compatible
query I rowsort label-7926
SELECT + SUM ( + 37 ) FROM tab1
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7927
SELECT + CAST( NULL AS SIGNED ) col0, ( 92 ) + + col0 FROM tab0
----
NULL
107
NULL
179
NULL
189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7927
SELECT + CAST ( NULL AS INTEGER ) col0, ( 92 ) + + col0 FROM tab0
----
NULL
107
NULL
179
NULL
189

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7929
SELECT ALL 85 DIV col1 * - + CAST( col1 AS SIGNED ) FROM tab0
----
-81
-84
-85

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL 85 / col1 * - + CAST ( col1 AS INTEGER ) FROM tab0
----
-81
-84
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 6 col2 FROM tab1
----
6

query I rowsort
SELECT col2 * ( + - col0 ) AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query II rowsort
SELECT DISTINCT - col0 AS col0, col2 AS col2 FROM tab1 cor0 WHERE - 4 / + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + ( + col2 ) col2, - col2 col1 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > NULL OR NULL IS NOT NULL
----

query II rowsort
SELECT col2 * + 29, 46 - - + col2 AS col0 FROM tab2
----
1160
86
1682
104
667
69

onlyif mysql # DIV for integer division: 
query I rowsort label-7936
SELECT ALL 99 DIV - col1 + - + 11 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-110
-12
-15

skipif mysql # not compatible
query I rowsort label-7936
SELECT ALL 99 / - col1 + - + 11 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-110
-12
-15

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) < + col0
----

query I rowsort
SELECT ALL - - col0 + + 73 + - + col1 FROM tab0 AS cor0
----
139
169
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7940
SELECT ALL - COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL - COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT 53 AS col2, 35 AS col0 FROM tab0 WHERE NULL < NULL
----

query II rowsort
SELECT col0 * - col0 + - col1, col2 AS col1 FROM tab2
----
-2167
23
-4173
40
-5692
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 15 + - col0 col0 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 38 AS col1, col0 * col1 AS col0 FROM tab2
----
38
2346
38
4928
38
5025

query II rowsort
SELECT ALL col2, col2 * + ( + 57 ) * + col2 FROM tab2
----
23
30153
40
91200
58
191748

query I rowsort
SELECT DISTINCT ( 76 ) FROM tab0 AS cor0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT ALL MIN( ALL - 99 ) col0 FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7947
SELECT ALL MIN ( ALL - 99 ) col0 FROM tab2 AS cor0
----
-99

query I rowsort
SELECT - 10 * + + 92 FROM tab2
----
-920
-920
-920

query III rowsort
SELECT * FROM tab2 WHERE - + col0 / - - col1 NOT BETWEEN NULL AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7950
SELECT DISTINCT - col0 DIV + 75 + + + 93 AS col1 FROM tab1
----
92
93

skipif mysql # not compatible
query I rowsort label-7950
SELECT DISTINCT - col0 / + 75 + + + 93 AS col1 FROM tab1
----
92
93

query I rowsort
SELECT DISTINCT + + 0 - + - 2 FROM tab2 AS cor0
----
2

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 80 + - 20 + + + 6 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7953
SELECT + + MIN( DISTINCT + col1 ) - - CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NULL > 81 - + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7953
SELECT + + MIN ( DISTINCT + col1 ) - - CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NULL > 81 - + col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7954
SELECT ALL - ( + + 61 ) * MIN( + 89 ) AS col0, - COUNT( - col0 ) AS col0 FROM tab2 AS cor0
----
-5429
-3

skipif mysql # not compatible
query II rowsort label-7954
SELECT ALL - ( + + 61 ) * MIN ( + 89 ) AS col0, - COUNT ( - col0 ) AS col0 FROM tab2 AS cor0
----
-5429
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7956
SELECT col0 DIV + 81 AS col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7956
SELECT col0 / + 81 AS col0 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT MAX( + - col2 ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-7957
SELECT MAX ( + - col2 ) AS col1 FROM tab0
----
-10

query II rowsort
SELECT + 5, + 67 + + - ( + col1 ) AS col0 FROM tab1
----
5
20
5
53
5
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 78 col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT - ( + + MIN( ALL - 33 ) ) AS col2 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-7960
SELECT - ( + + MIN ( ALL - 33 ) ) AS col2 FROM tab1
----
33

onlyif mysql # DIV for integer division: 
query II rowsort label-7961
SELECT ALL + col2 AS col2, ( - + col2 ) DIV 20 AS col2 FROM tab2
----
23
-1
40
-2
58
-2

skipif mysql # not compatible
query II rowsort label-7961
SELECT ALL + col2 AS col2, ( - + col2 ) / 20 AS col2 FROM tab2
----
23
-1
40
-2
58
-2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - col0 * + col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7963
SELECT + CAST( - MAX( DISTINCT - + col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7963
SELECT + CAST ( - MAX ( DISTINCT - + col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT COUNT( ALL + 82 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7964
SELECT COUNT ( ALL + 82 ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 29 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, - 76 * + col1 + col1 AS col0 FROM tab1 cor0
----
51
-1050
85
-375
91
-3525

query I rowsort
SELECT 67 * + 44 FROM tab1 AS cor0
----
2948
2948
2948

onlyif mysql # DIV for integer division: 
query I rowsort label-7968
SELECT ALL 5 DIV col1 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-7968
SELECT ALL 5 / col1 col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT MIN( ALL - ( 56 ) ) * + 26 FROM tab1
----
-1456

skipif mysql # not compatible
query I rowsort label-7969
SELECT MIN ( ALL - ( 56 ) ) * + 26 FROM tab1
----
-1456

query I rowsort
SELECT 2 + 61 + - 12 + + col0 + - ( + col2 ) * col2 AS col2 FROM tab2 cor0
----
-1485
-3238
-432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7971
SELECT COUNT( * ) + + 60 + + 72 DIV 13 col0 FROM tab2 AS cor0
----
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7971
SELECT COUNT ( * ) + + 60 + + 72 / 13 col0 FROM tab2 AS cor0
----
68

query I rowsort
SELECT - 56 + - col0 AS col0 FROM tab1 AS cor0
----
-107
-141
-147

query I rowsort
SELECT - + 30 + + col0 AS col2 FROM tab2 AS cor0
----
16
34
45

query I rowsort
SELECT + + col0 * - - col2 + col2 - col1 AS col0 FROM tab0 AS cor0
----
671
859
9701

query I rowsort
SELECT ALL - col1 + - 66 AS col2 FROM tab2 AS cor0
----
-117
-133
-143

query I rowsort
SELECT + - 75 + - 94 FROM tab1 AS cor0
----
-169
-169
-169

query I rowsort
SELECT ALL - col2 * - col0 + - - 42 AS col1 FROM tab1 AS cor0
----
4938
5057
6230

query II rowsort
SELECT + col1, - 16 AS col2 FROM tab0 cor0
----
1
-16
21
-16
81
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-7979
SELECT + SUM( ALL + ( + - 7 ) ), - 84 AS col2 FROM tab0
----
-21
-84

skipif mysql # not compatible
query II rowsort label-7979
SELECT + SUM ( ALL + ( + - 7 ) ), - 84 AS col2 FROM tab0
----
-21
-84

query III rowsort
SELECT * FROM tab0 WHERE + col2 / - + ( - col0 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * + col0 * - - 93 + 89 NOT IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT DISTINCT + MAX( - 68 ) FROM tab0, tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-7982
SELECT DISTINCT + MAX ( - 68 ) FROM tab0, tab0 AS cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT DISTINCT - COUNT( ALL - 57 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7983
SELECT DISTINCT - COUNT ( ALL - 57 ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT 56 * + + ( col0 ) AS col0 FROM tab2
----
2576
3584
4200

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT - 99 * col1 + - + col2 IS NULL OR NULL IS NULL
----
51
67
77

query II rowsort
SELECT - col1 - - col2, 87 AS col0 FROM tab0 cor0
----
-11
87
-34
87
98
87

query I rowsort
SELECT col0 * - col0 + - col0 + + - col1 AS col1 FROM tab2 AS cor0
----
-2213
-4237
-5767

query I rowsort
SELECT DISTINCT - 50 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT COUNT( * ) * - 90 FROM tab1
----
-270

skipif mysql # not compatible
query I rowsort label-7989
SELECT COUNT ( * ) * - 90 FROM tab1
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT DISTINCT - - 78 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-7990
SELECT DISTINCT - - 78 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
234

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * 75 * col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7992
SELECT ALL + 61 DIV + 74 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL + 61 / + 74 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 94 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * - + col0 * + + 16 * + col0 AS col2 FROM tab0
----
10536048
14602768
54000

query I rowsort
SELECT col2 / + col1 + - col0 - + col2 + - + 97 + + col2 AS col0 FROM tab2 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT ALL + 60 * - - SUM( DISTINCT - - col0 ) FROM tab1
----
13620

skipif mysql # not compatible
query I rowsort label-7996
SELECT ALL + 60 * - - SUM ( DISTINCT - - col0 ) FROM tab1
----
13620

query I rowsort
SELECT DISTINCT + + 79 * + col2 FROM tab0 AS cor0
----
3713
7821
790

onlyif mysql # DIV for integer division: 
query I rowsort label-7998
SELECT ALL + + ( - - col2 ) DIV ( 28 ) col0 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7998
SELECT ALL + + ( - - col2 ) / ( 28 ) col0 FROM tab2 AS cor0
----
0
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7999
SELECT - 6 * - 40 + CAST( NULL AS SIGNED ) + - MIN( ALL - - 0 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7999
SELECT - 6 * - 40 + CAST ( NULL AS INTEGER ) + - MIN ( ALL - - 0 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8000
SELECT col2 DIV 36 col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8000
SELECT col2 / 36 col0 FROM tab2
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( - 33 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8002
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE 20 * 42 BETWEEN CAST( + - col0 AS SIGNED ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8002
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE 20 * 42 BETWEEN CAST ( + - col0 AS INTEGER ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT DISTINCT + MAX( + 98 ) * - 24 col2 FROM tab2 AS cor0
----
-2352

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8003
SELECT DISTINCT + MAX ( + 98 ) * - 24 col2 FROM tab2 AS cor0
----
-2352

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT ALL - - COUNT( * ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8004
SELECT ALL - - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8005
SELECT DISTINCT + ( + 25 ) DIV - + 60, + 54 AS col2 FROM tab1 AS cor0
----
0
54

skipif mysql # not compatible
query II rowsort label-8005
SELECT DISTINCT + ( + 25 ) / - + 60, + 54 AS col2 FROM tab1 AS cor0
----
0
54

query I rowsort
SELECT - 67 AS col0 FROM tab0 AS cor0 WHERE NULL > col0 + - + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8007
SELECT + + ( - + COUNT( * ) ) AS col1 FROM tab2 cor0 WHERE - col1 * - CAST( NULL AS SIGNED ) IN ( - 72, + col1 / + 36 + CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-8007
SELECT + + ( - + COUNT ( * ) ) AS col1 FROM tab2 cor0 WHERE - col1 * - CAST ( NULL AS INTEGER ) IN ( - 72, + col1 / + 36 + CAST ( NULL AS REAL ) )
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * - ( - + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 53 + - col0 * 79 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT ALL - 99 + - COUNT( * ) col1 FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8010
SELECT ALL - 99 + - COUNT ( * ) col1 FROM tab2 AS cor0
----
-102

query I rowsort
SELECT DISTINCT - ( - ( + 36 ) ) + - + col0 + + 43 * + + col0 FROM tab1
----
2178
3606
3858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 * col1 + - col2 col0 FROM tab0
----
-51
3841
998

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT ALL - 60 + - COUNT( * ) FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-8013
SELECT ALL - 60 + - COUNT ( * ) FROM tab0
----
-63

query I rowsort
SELECT ALL - 54 * - - col1 AS col0 FROM tab2
----
-2754
-3618
-4158

query I rowsort
SELECT col0 + + 65 + col2 AS col2 FROM tab2
----
134
169
198

query I rowsort
SELECT ALL + 33 - - col0 * - 3 FROM tab1
----
-120
-222
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT DISTINCT + COUNT( * ) + + - 65 FROM tab0 cor0
----
-62

skipif mysql # not compatible
query I rowsort label-8017
SELECT DISTINCT + COUNT ( * ) + + - 65 FROM tab0 cor0
----
-62

onlyif mysql # DIV for integer division: 
query II rowsort label-8018
SELECT + - col1 AS col2, + col1 + - - col0 DIV 91 AS col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

skipif mysql # not compatible
query II rowsort label-8018
SELECT + - col1 AS col2, + col1 + - - col0 / 91 AS col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8019
SELECT ALL 14 * + + col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8019
SELECT ALL 14 * + + col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 7 * + 21 - - col0 AS col2 FROM tab0 AS cor0
----
-132
-50
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT ALL + SUM( - col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8021
SELECT ALL + SUM ( - col1 ) AS col2 FROM tab1 AS cor0
----
-66

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 39 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT - 38 * - MAX( + - col1 ) FROM tab2 AS cor0
----
-1938

skipif mysql # not compatible
query I rowsort label-8023
SELECT - 38 * - MAX ( + - col1 ) FROM tab2 AS cor0
----
-1938

query I rowsort
SELECT col0 * + ( 17 ) FROM tab2 AS cor0
----
1088
1275
782

query II rowsort
SELECT DISTINCT col1 AS col0, - 54 AS col2 FROM tab0
----
1
-54
21
-54
81
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-8026
SELECT 8 AS col1, 31 * - COUNT( * ) FROM tab0
----
8
-93

skipif mysql # not compatible
query II rowsort label-8026
SELECT 8 AS col1, 31 * - COUNT ( * ) FROM tab0
----
8
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT ALL - MAX( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL - MAX ( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT + col0 * - col2 * - - col0 * - col0 + + col1 * col0 FROM tab0 AS cor0
----
159840
6586857
90354724

query I rowsort
SELECT + + col1 - - 8 FROM tab1 AS cor0 WHERE NOT + 5 - - + col2 IS NULL
----
13
22
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT ALL ( SUM( ALL col1 ) ) + 0 * + 6 * + + ( + 72 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8030
SELECT ALL ( SUM ( ALL col1 ) ) + 0 * + 6 * + + ( + 72 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL - + col2 * - 28 * col0 AS col0 FROM tab1 AS cor0
----
137088
140420
173264

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT ALL - COUNT( * ) * 39 AS col0 FROM tab1
----
-117

skipif mysql # not compatible
query I rowsort label-8032
SELECT ALL - COUNT ( * ) * 39 AS col0 FROM tab1
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT ALL COUNT( DISTINCT 58 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL COUNT ( DISTINCT 58 ) AS col1 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8034
SELECT + col2 DIV ( - col0 * col0 ) + + ( + col1 ) FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8034
SELECT + col2 / ( - col0 * col0 ) + + ( + col1 ) FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT DISTINCT - COUNT( * ) + + 10 AS col1 FROM tab0 WHERE NOT ( NULL ) NOT IN ( + col1 )
----
10

skipif mysql # not compatible
query I rowsort label-8035
SELECT DISTINCT - COUNT ( * ) + + 10 AS col1 FROM tab0 WHERE NOT ( NULL ) NOT IN ( + col1 )
----
10

query III rowsort
SELECT * FROM tab1 WHERE ( 19 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE - col1 * col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8037
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE - col1 * col2 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT ( + 46 ) - 23 FROM tab2
----
23

query I rowsort
SELECT ALL 65 FROM tab2 WHERE ( - 49 * col1 ) IS NOT NULL
----
65
65
65

query I rowsort
SELECT DISTINCT col1 * 59 + - 74 AS col2 FROM tab1
----
221
2699
752

query I rowsort
SELECT 60 * + 35 FROM tab0
----
2100
2100
2100

query I rowsort
SELECT - col1 * 47 FROM tab0
----
-3807
-47
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT COUNT( * ) * COUNT( ALL - col1 ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8043
SELECT COUNT ( * ) * COUNT ( ALL - col1 ) AS col0 FROM tab0
----
9

query I rowsort
SELECT DISTINCT col2 / - 87 AS col1 FROM tab1 WHERE NOT NULL >= + col0 + + 55
----

query III rowsort
SELECT * FROM tab1 WHERE ( - 63 * - 50 ) NOT BETWEEN 9 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8046
SELECT CAST( + COUNT( - 20 ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8046
SELECT CAST ( + COUNT ( - 20 ) AS INTEGER ) FROM tab2
----
3

query I rowsort
SELECT 89 + col1 FROM tab0
----
110
170
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT DISTINCT COUNT( * ) * - 42 FROM tab2
----
-126

skipif mysql # not compatible
query I rowsort label-8048
SELECT DISTINCT COUNT ( * ) * - 42 FROM tab2
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-8049
SELECT ALL 42 * 48 + - ( col1 + 78 ) DIV col0 FROM tab0
----
2006
2015
2016

skipif mysql # not compatible
query I rowsort label-8049
SELECT ALL 42 * 48 + - ( col1 + 78 ) / col0 FROM tab0
----
2006
2015
2016

onlyif mysql # DIV for integer division: 
query I rowsort label-8050
SELECT 93 DIV + col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8050
SELECT 93 / + col0 FROM tab1
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 - col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 * col2 + - 17 * col1 FROM tab0
----
-147
2430
82

query I rowsort
SELECT ALL - 98 - - col2 FROM tab1 AS cor0
----
-2
-30
-39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8054
SELECT * FROM tab0 AS cor0 WHERE ( ( CAST( NULL AS SIGNED ) ) * + 52 - 52 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8054
SELECT * FROM tab0 AS cor0 WHERE ( ( CAST ( NULL AS INTEGER ) ) * + 52 - 52 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT - COUNT( * ) + + 57 * 49 FROM tab0 AS cor0
----
2790

skipif mysql # not compatible
query I rowsort label-8055
SELECT - COUNT ( * ) + + 57 * 49 FROM tab0 AS cor0
----
2790

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8056
SELECT ALL - CAST( NULL AS SIGNED ) * 41 + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8056
SELECT ALL - CAST ( NULL AS INTEGER ) * 41 + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 / col1 < - 50
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8058
SELECT ALL + 15 DIV 17 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8058
SELECT ALL + 15 / 17 FROM tab1
----
0
0
0

query I rowsort
SELECT ( + ( + 61 ) ) AS col2 FROM tab1
----
61
61
61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8060
SELECT DISTINCT - CAST( col1 AS SIGNED ) DIV + col2 col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8060
SELECT DISTINCT - CAST ( col1 AS INTEGER ) / + col2 col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT - MIN( DISTINCT - 1 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8061
SELECT - MIN ( DISTINCT - 1 ) AS col0 FROM tab2
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8062
SELECT DISTINCT - 47 FROM tab1 cor0 WHERE 77 > 47 * col1 + - col2 * CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-8062
SELECT DISTINCT - 47 FROM tab1 cor0 WHERE 77 > 47 * col1 + - col2 * CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT + MIN( ALL 65 ) AS col2 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-8063
SELECT + MIN ( ALL 65 ) AS col2 FROM tab1 AS cor0
----
65

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < + ( 71 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 87 BETWEEN col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 col0 FROM tab2 AS cor0
----
-76

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 > + col2 + 94
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 NOT IN ( + col0 )
----

query I rowsort
SELECT DISTINCT - ( - 19 ) FROM tab1
----
19

query I rowsort
SELECT 86 * - - 15 AS col2 FROM tab1
----
1290
1290
1290

query I rowsort
SELECT ALL 86 * - 55 * - col1 AS col0 FROM tab2
----
241230
316910
364210

query I rowsort
SELECT DISTINCT - 90 * + col1 * + col1 AS col0 FROM tab2
----
-234090
-404010
-533610

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT SUM( DISTINCT + - 30 ) AS col1 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-8073
SELECT SUM ( DISTINCT + - 30 ) AS col1 FROM tab0
----
-30

query I rowsort
SELECT + 2 FROM tab2 WHERE - col1 IS NOT NULL OR NULL IS NULL
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT DISTINCT + COUNT( - - col1 ) + - COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8075
SELECT DISTINCT + COUNT ( - - col1 ) + - COUNT ( * ) AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8076
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE NOT + CAST( col0 AS SIGNED ) NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE NOT + CAST ( col0 AS INTEGER ) NOT BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT DISTINCT 76 AS col2, col0 FROM tab0 AS cor0
----
76
15
76
87
76
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT DISTINCT - + MAX( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE - col0 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8078
SELECT DISTINCT - + MAX ( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE - col0 = NULL
----
NULL

query I rowsort
SELECT ALL - + ( - - 12 ) FROM tab0 AS cor0
----
-12
-12
-12

query I rowsort
SELECT + - col2 AS col1 FROM tab0 AS cor0 WHERE col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8081
SELECT + - col1 + - - col0 * + + CAST( - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-4910
-5020
-6235

skipif mysql # not compatible
query I rowsort label-8081
SELECT + - col1 + - - col0 * + + CAST ( - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-4910
-5020
-6235

query I rowsort
SELECT DISTINCT 54 - - + 84 FROM tab0 AS cor0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT ALL + SUM( - col1 ) * 96 + + COUNT( * ) * 55 FROM tab1 AS cor0
----
-6171

skipif mysql # not compatible
query I rowsort label-8083
SELECT ALL + SUM ( - col1 ) * 96 + + COUNT ( * ) * 55 FROM tab1 AS cor0
----
-6171

query I rowsort
SELECT + col0 + + 95 FROM tab2
----
141
159
170

query I rowsort
SELECT DISTINCT 10 * - col0 FROM tab2 WHERE ( + - col1 * + col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8086
SELECT DISTINCT col0 - + CAST( col0 AS SIGNED ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8086
SELECT DISTINCT col0 - + CAST ( col0 AS INTEGER ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE + ( 30 ) IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT DISTINCT - MIN( ALL + - col0 ) - - COUNT( * ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-8088
SELECT DISTINCT - MIN ( ALL + - col0 ) - - COUNT ( * ) FROM tab1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8089
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - 78 - + - col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8089
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - 78 - + - col2 FROM tab1
----
NULL

query I rowsort
SELECT col1 * - 1 + - col2 FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT + col2 > - col2 + col2
----

query II rowsort
SELECT col0 AS col0, + col1 + + col2 * - col1 AS col0 FROM tab0
----
15
-3726
87
-189
97
-98

query I rowsort
SELECT 15 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT ALL + + 86 AS col2 FROM tab0 AS cor0
----
86
86
86

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 84 * + col1 + + - 81 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT 45 * - COUNT( * ) AS col1 FROM tab0 cor0
----
-135

skipif mysql # not compatible
query I rowsort label-8096
SELECT 45 * - COUNT ( * ) AS col1 FROM tab0 cor0
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT DISTINCT + MAX( ALL + + col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8097
SELECT DISTINCT + MAX ( ALL + + col2 ) AS col0 FROM tab2 AS cor0
----
58

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 86 = - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + - col1 AS col0, - col0 FROM tab1 AS cor0
----
-14
-51
-47
-91
-5
-85

query I rowsort
SELECT + col2 FROM tab1 cor0 WHERE NOT col2 / col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 79 * - col1 + + col0 + col0 AS col1 FROM tab2 AS cor0
----
4121
5443
6211

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - col1 / - 88 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT 96 * + - 39 + - MAX( ALL col0 ) AS col0 FROM tab1 AS cor0
----
-3835

skipif mysql # not compatible
query I rowsort label-8103
SELECT 96 * + - 39 + - MAX ( ALL col0 ) AS col0 FROM tab1 AS cor0
----
-3835

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + 31 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8105
SELECT ALL - col0, CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-8105
SELECT ALL - col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8106
SELECT * FROM tab2 WHERE NOT col1 / + col0 * + col1 NOT BETWEEN + 66 * - 98 + + col2 AND col0 + col0 / - ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8106
SELECT * FROM tab2 WHERE NOT col1 / + col0 * + col1 NOT BETWEEN + 66 * - 98 + + col2 AND col0 + col0 / - ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col1 * + 51 * col2 AS col0 FROM tab1
----
15045
162996
68544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 36 col1, + 81 - + col2 + + + 53 FROM tab0
----
36
124
36
35
36
87

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8109
SELECT DISTINCT + - col0 + + CAST( - - col0 AS SIGNED ) DIV - + col1 AS col2 FROM tab1 AS cor0
----
-102
-54
-92

skipif mysql # not compatible
query I rowsort label-8109
SELECT DISTINCT + - col0 + + CAST ( - - col0 AS INTEGER ) / - + col1 AS col2 FROM tab1 AS cor0
----
-102
-54
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-8110
SELECT col2 DIV col1 + + col1 FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8110
SELECT col2 / col1 + + col1 FROM tab2 cor0
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8111
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - COUNT( * ) - 55 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8111
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - COUNT ( * ) - 55 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) > ( col2 * + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE - 6 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8114
SELECT ALL + col0 DIV + col2 - - 36 + + 18 AS col2 FROM tab1
----
54
55
55

skipif mysql # not compatible
query I rowsort label-8114
SELECT ALL + col0 / + col2 - - 36 + + 18 AS col2 FROM tab1
----
54
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT DISTINCT 29 * + COUNT( * ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-8115
SELECT DISTINCT 29 * + COUNT ( * ) FROM tab2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT ALL + COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8116
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 35 AND 96
----

query I rowsort
SELECT + col1 * - col2 - - 3 * - + col1 FROM tab0 cor0
----
-102
-273
-4050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8119
SELECT DISTINCT 38 * - - col1 / CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab0 AS cor0 WHERE ( NOT NULL <> + + CAST( NULL AS SIGNED ) / col0 )
----

skipif mysql # not compatible
query I rowsort label-8119
SELECT DISTINCT 38 * - - col1 / CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab0 AS cor0 WHERE ( NOT NULL <> + + CAST ( NULL AS INTEGER ) / col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8120
SELECT * FROM tab1 AS cor0 WHERE col1 BETWEEN ( col0 * - 27 * col0 / col2 + - - col2 + - CAST( NULL AS DECIMAL ) * + 17 ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-8120
SELECT * FROM tab1 AS cor0 WHERE col1 BETWEEN ( col0 * - 27 * col0 / col2 + - - col2 + - CAST ( NULL AS REAL ) * + 17 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT NULL IN ( + 84 + col2 ) )
----

query I rowsort
SELECT DISTINCT 14 + col2 FROM tab1
----
110
73
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8123
SELECT DISTINCT col2 - - col0 DIV + col1 FROM tab0
----
14
196
47

skipif mysql # not compatible
query I rowsort label-8123
SELECT DISTINCT col2 - - col0 / + col1 FROM tab0
----
14
196
47

query I rowsort
SELECT DISTINCT col0 + - 42 AS col0 FROM tab2
----
22
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 71 ) col1 FROM tab1
----
71

query I rowsort
SELECT col2 * + 40 AS col1 FROM tab2
----
1600
2320
920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8127
SELECT ALL - - col1 * + + col2 * + - 8 * - 17 * + + 57 + col1 / - col2 * - + 97 + + ( - col2 ) / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL - - col1 * + + col2 * + - 8 * - 17 * + + 57 + col1 / - col2 * - + 97 + + ( - col2 ) / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8128
SELECT + col1, + col0 + CAST( 90 AS SIGNED ) * col1 AS col0 FROM tab2 cor0 WHERE NOT col2 NOT BETWEEN - col2 * + 70 AND ( + + col2 )
----
51
4636
67
6105
77
6994

skipif mysql # not compatible
query II rowsort label-8128
SELECT + col1, + col0 + CAST ( 90 AS INTEGER ) * col1 AS col0 FROM tab2 cor0 WHERE NOT col2 NOT BETWEEN - col2 * + 70 AND ( + + col2 )
----
51
4636
67
6105
77
6994

query I rowsort
SELECT ALL - - 3 FROM tab2 cor0
----
3
3
3

query I rowsort
SELECT 63 + + + col2 + - col1 FROM tab1 WHERE NOT ( NOT col1 IS NULL )
----

query I rowsort
SELECT + 41 * + ( + + col0 ) FROM tab2
----
1886
2624
3075

query I rowsort
SELECT DISTINCT - + 24 * - 92 FROM tab0 AS cor0
----
2208

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT 14 / col0 + - + col1 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8134
SELECT ALL COUNT( * ) DIV - + 88 + + 74 AS col0 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-8134
SELECT ALL COUNT ( * ) / - + 88 + + 74 AS col0 FROM tab0 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) AS col0 FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8135
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1 cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 97 ) < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col1 * - 2 AND 99 * + 72 - + 48 + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8138
SELECT DISTINCT 46 DIV - col0 + col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8138
SELECT DISTINCT 46 / - col0 + col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + 40 * col0 AS col2 FROM tab2
----
1840
2560
3000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8140
SELECT - 7 * - CAST( + - col0 AS SIGNED ) FROM tab2
----
-322
-448
-525

skipif mysql # not compatible
query I rowsort label-8140
SELECT - 7 * - CAST ( + - col0 AS INTEGER ) FROM tab2
----
-322
-448
-525

query I rowsort
SELECT DISTINCT + 82 * - + 25 FROM tab1
----
-2050

query I rowsort
SELECT ( + col1 ) * + col1 + - col0 + + col0 + + col1 * + 14 * col2 FROM tab2
----
19023
49049
58893

onlyif mysql # DIV for integer division: 
query I rowsort label-8143
SELECT col0 DIV - 38 + + + col1 + + ( - + 49 ) DIV 39 AS col1 FROM tab0
----
-2
18
80

skipif mysql # not compatible
query I rowsort label-8143
SELECT col0 / - 38 + + + col1 + + ( - + 49 ) / 39 AS col1 FROM tab0
----
-2
18
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT - COUNT( * ) + - + 81 AS col2 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-8144
SELECT - COUNT ( * ) + - + 81 AS col2 FROM tab1
----
-84

query I rowsort
SELECT ALL - 37 FROM tab0 WHERE NOT + 81 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT - + MAX( 83 ) + - ( - 91 ) AS col1 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-8146
SELECT - + MAX ( 83 ) + - ( - 91 ) AS col1 FROM tab2 AS cor0
----
8

query I rowsort
SELECT DISTINCT - + ( 85 ) FROM tab2 AS cor0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT DISTINCT - SUM( - - 30 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8148
SELECT DISTINCT - SUM ( - - 30 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT DISTINCT MIN( ALL + 4 ) + + 62 col0 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8149
SELECT DISTINCT MIN ( ALL + 4 ) + + 62 col0 FROM tab0 AS cor0
----
66

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 31 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 26 * - ( + + 6 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8152
SELECT DISTINCT + col1 / - CAST( NULL AS SIGNED ) * + - col1 + - 73 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8152
SELECT DISTINCT + col1 / - CAST ( NULL AS INTEGER ) * + - col1 + - 73 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8153
SELECT DISTINCT CAST( NULL AS DECIMAL ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8153
SELECT DISTINCT CAST ( NULL AS REAL ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8154
SELECT ALL 70 * - col0 + - col1 + col0 + + CAST( + col0 AS SIGNED ) * + - ( col1 ) FROM tab1
----
-10603
-4247
-6295

skipif mysql # not compatible
query I rowsort label-8154
SELECT ALL 70 * - col0 + - col1 + col0 + + CAST ( + col0 AS INTEGER ) * + - ( col1 ) FROM tab1
----
-10603
-4247
-6295

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 WHERE + + 94 * - ( - - col0 ) NOT BETWEEN NULL AND + 0 + + ( + - ( + col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8155
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 WHERE + + 94 * - ( - - col0 ) NOT BETWEEN NULL AND + 0 + + ( + - ( + col1 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8156
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT DISTINCT 13 - 98 * + COUNT( 15 ) * COUNT( * ) + 95 + - COUNT( * ) AS col1 FROM tab1
----
-777

skipif mysql # not compatible
query I rowsort label-8157
SELECT DISTINCT 13 - 98 * + COUNT ( 15 ) * COUNT ( * ) + 95 + - COUNT ( * ) AS col1 FROM tab1
----
-777

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8158
SELECT + + CAST( col1 AS SIGNED ) + - ( + col0 ) AS col2, + col0 AS col1 FROM tab1 AS cor0
----
-37
51
-44
91
-80
85

skipif mysql # not compatible
query II rowsort label-8158
SELECT + + CAST ( col1 AS INTEGER ) + - ( + col0 ) AS col2, + col0 AS col1 FROM tab1 AS cor0
----
-37
51
-44
91
-80
85

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < - 11 + + col2 AND - ( + + 93 ) <> NULL
----

query I rowsort
SELECT DISTINCT - 5 + + 2 + + + col1 FROM tab0 AS cor0
----
-2
18
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT DISTINCT COUNT( * ) * COUNT( * ) + - COUNT( + + ( + + col0 ) ) + + 20 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-8161
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + - COUNT ( + + ( + + col0 ) ) + + 20 FROM tab0 AS cor0
----
26

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT DISTINCT + COUNT( DISTINCT + - 99 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8163
SELECT DISTINCT + COUNT ( DISTINCT + - 99 ) FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8164
SELECT ALL + + col2 + + CAST( 51 AS SIGNED ) AS col2, - col1 * - col0 + + col1 FROM tab1 WHERE - CAST( NULL AS SIGNED ) + - + col1 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-8164
SELECT ALL + + col2 + + CAST ( 51 AS INTEGER ) AS col2, - col1 * - col0 + + col1 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) + - + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8165
SELECT * FROM tab1 AS cor0 WHERE NOT + 72 * + - col2 * - + ( - + 4 ) <> ( + CAST( + + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8165
SELECT * FROM tab1 AS cor0 WHERE NOT + 72 * + - col2 * - + ( - + 4 ) <> ( + CAST ( + + col1 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT MAX( - col2 ) * + ( + 31 ) AS col2 FROM tab0 AS cor0
----
-310

skipif mysql # not compatible
query I rowsort label-8166
SELECT MAX ( - col2 ) * + ( + 31 ) AS col2 FROM tab0 AS cor0
----
-310

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 * 92 col0 FROM tab0 AS cor0
----
7452
7452
7452

query I rowsort
SELECT DISTINCT + + 56 * col1 AS col2 FROM tab2 AS cor0
----
2856
3752
4312

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT DISTINCT - COUNT( DISTINCT 50 ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8169
SELECT DISTINCT - COUNT ( DISTINCT 50 ) AS col0 FROM tab1
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8170
SELECT ALL * FROM tab1 WHERE NOT + + col1 NOT IN ( - 31 * CAST( - col0 AS DECIMAL ) + + - col1 )
----

skipif mysql # not compatible
query III rowsort label-8170
SELECT ALL * FROM tab1 WHERE NOT + + col1 NOT IN ( - 31 * CAST ( - col0 AS REAL ) + + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT DISTINCT - 40 * COUNT( * ) FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-8171
SELECT DISTINCT - 40 * COUNT ( * ) FROM tab2 AS cor0
----
-120

onlyif mysql # DIV for integer division: 
query I rowsort label-8172
SELECT ALL - + 50 DIV - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL - + 50 / - col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 + - 11 FROM tab1 AS cor0
----
-16
-25
-58

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col2 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8175
SELECT ALL 30 DIV + - col1 FROM tab1 AS cor0
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL 30 / + - col1 FROM tab1 AS cor0
----
-2
-6
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8176
SELECT MAX( + col1 ), - 29 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
77
-29

skipif mysql # not compatible
query II rowsort label-8176
SELECT MAX ( + col1 ), - 29 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
77
-29

query I rowsort
SELECT + col2 + + 39 * + - col2 * ( - - 53 ) FROM tab0 AS cor0
----
-204534
-20660
-97102

query I rowsort
SELECT DISTINCT + - col1 + - 95 AS col0 FROM tab0 AS cor0
----
-116
-176
-96

query I rowsort
SELECT - col0 * col1 FROM tab1 AS cor0 WHERE NOT col2 * + - 72 * + 48 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT ALL 21 * + + MIN( - 51 ) + 31 FROM tab2 AS cor0
----
-1040

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL 21 * + + MIN ( - 51 ) + 31 FROM tab2 AS cor0
----
-1040

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE + 41 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( 71 ) <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT DISTINCT + COUNT( * ) * - 93 FROM tab2
----
-279

skipif mysql # not compatible
query I rowsort label-8184
SELECT DISTINCT + COUNT ( * ) * - 93 FROM tab2
----
-279

query II rowsort
SELECT + col2 * + col2 AS col0, ( - + col1 ) FROM tab2
----
1600
-77
3364
-67
529
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8186
SELECT CAST( - + COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8186
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT - col1 - + ( + 93 ) + - - col0 FROM tab1 AS cor0
----
-13
-49
-56

query I rowsort
SELECT + 80 + - col2 FROM tab2 AS cor0
----
22
40
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT + SUM( ALL col0 ) + 27 AS col2 FROM tab2 AS cor0
----
212

skipif mysql # not compatible
query I rowsort label-8189
SELECT + SUM ( ALL col0 ) + 27 AS col2 FROM tab2 AS cor0
----
212

onlyif mysql # aggregate syntax: 
query II rowsort label-8190
SELECT ALL COUNT( * ) + + COUNT( * ), + MAX( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
6
-51

skipif mysql # not compatible
query II rowsort label-8190
SELECT ALL COUNT ( * ) + + COUNT ( * ), + MAX ( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
6
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT DISTINCT - MAX( + + col2 ) + MIN( - + col2 ) FROM tab0 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-8191
SELECT DISTINCT - MAX ( + + col2 ) + MIN ( - + col2 ) FROM tab0 AS cor0
----
-198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8192
SELECT DISTINCT - - CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8192
SELECT DISTINCT - - CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 <= - + 19
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT + COUNT( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8195
SELECT + COUNT ( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 22 * + col1 FROM tab1 AS cor0
----
-1034
-110
-308

query I rowsort
SELECT + - col1 * + - col0 AS col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT DISTINCT + 38 * - COUNT( * ) + - + 12 * + COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-8198
SELECT DISTINCT + 38 * - COUNT ( * ) + - + 12 * + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-147

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE NOT 0 NOT IN ( 2 )
----

query II rowsort
SELECT ALL col2 AS col2, + col1 AS col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT - ( - - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8202
SELECT MIN( 35 ) DIV - - COUNT( * ) FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-8202
SELECT MIN ( 35 ) / - - COUNT ( * ) FROM tab2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8203
SELECT ALL CAST( - + MIN( + 56 ) AS SIGNED ) AS col2 FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-8203
SELECT ALL CAST ( - + MIN ( + 56 ) AS INTEGER ) AS col2 FROM tab2
----
-56

query I rowsort
SELECT DISTINCT + - 96 - + col2 AS col0 FROM tab1 WHERE col1 IS NOT NULL
----
-155
-164
-192

query I rowsort
SELECT ( ( - - col1 ) ) FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8206
SELECT ALL CAST( + - 68 AS SIGNED ) col0 FROM tab0
----
-68
-68
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8206
SELECT ALL CAST ( + - 68 AS INTEGER ) col0 FROM tab0
----
-68
-68
-68

query I rowsort
SELECT 40 AS col1 FROM tab0 cor0
----
40
40
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8208
SELECT ALL - + CAST( - + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 WHERE 28 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL - + CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 WHERE 28 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8209
SELECT ALL - COUNT( * ) * + 41 AS col2, 41 * MIN( - col0 ) FROM tab1
----
-123
-3731

skipif mysql # not compatible
query II rowsort label-8209
SELECT ALL - COUNT ( * ) * + 41 AS col2, 41 * MIN ( - col0 ) FROM tab1
----
-123
-3731

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT DISTINCT COUNT( + - 91 ) * + SUM( DISTINCT + + col1 ) FROM tab0
----
309

skipif mysql # not compatible
query I rowsort label-8210
SELECT DISTINCT COUNT ( + - 91 ) * + SUM ( DISTINCT + + col1 ) FROM tab0
----
309

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + - 14 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8212
SELECT - - CAST( NULL AS DECIMAL ) * - + SUM( ALL + 87 ) + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8212
SELECT - - CAST ( NULL AS REAL ) * - + SUM ( ALL + 87 ) + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT DISTINCT COUNT( * ) * - COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-8213
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8214
SELECT - + 3 DIV - col1 AS col1 FROM tab0 cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-8214
SELECT - + 3 / - col1 AS col1 FROM tab0 cor0
----
0
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8215
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 98 > ( - 78 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT DISTINCT + SUM( DISTINCT + col1 ) * - - 4 FROM tab2
----
780

skipif mysql # not compatible
query I rowsort label-8217
SELECT DISTINCT + SUM ( DISTINCT + col1 ) * - - 4 FROM tab2
----
780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 78 * + col1 * - 52 + + col1 + + - 44 + 30 col1 FROM tab0
----
-328469
-4069
-85169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8219
SELECT DISTINCT - 35 DIV + COUNT( * ) + - CAST( 80 AS SIGNED ) FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-8219
SELECT DISTINCT - 35 / + COUNT ( * ) + - CAST ( 80 AS INTEGER ) FROM tab2
----
-91

query III rowsort
SELECT * FROM tab2 WHERE ( 27 * + 64 ) > - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8221
SELECT ALL + col1 DIV 72 * - - col0 FROM tab0
----
0
0
15

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL + col1 / 72 * - - col0 FROM tab0
----
0
0
15

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 + - 30 + + col2 IS NULL
----

query I rowsort
SELECT col2 + - 90 FROM tab1
----
-22
-31
6

query I rowsort
SELECT col1 + 32 AS col2 FROM tab0
----
113
33
53

query I rowsort
SELECT ALL - col0 + ( - col1 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-108
-96
-98

query I rowsort
SELECT ALL + 48 * + - ( + + col1 ) + - 16 * + - col2 AS col0 FROM tab1 AS cor0
----
-1168
704
864

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT + + 66 * + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-8228
SELECT + + 66 * + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
198

onlyif mysql # DIV for integer division: 
query II rowsort label-8229
SELECT - col0 DIV + + 6 AS col1, col2 * - + 69 * - col2 col0 FROM tab2 AS cor0
----
-10
110400
-12
232116
-7
36501

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8229
SELECT - col0 / + + 6 AS col1, col2 * - + 69 * - col2 col0 FROM tab2 AS cor0
----
-10
110400
-12
232116
-7
36501

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8230
SELECT DISTINCT col2 * 18 + + + col0 * + CAST( - + col2 AS SIGNED ) FROM tab0 AS cor0
----
-690
-7821
141

skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT col2 * 18 + + + col0 * + CAST ( - + col2 AS INTEGER ) FROM tab0 AS cor0
----
-690
-7821
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8231
SELECT - COUNT( ALL + col1 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8231
SELECT - COUNT ( ALL + col1 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col0 + + - col2 * col2 + - - col2 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 45 ) col1 FROM tab2
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-8234
SELECT ALL - col2 DIV 43 * - 57 FROM tab2
----
0
0
57

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL - col2 / 43 * - 57 FROM tab2
----
0
0
57

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT - - 34 / - 5 NOT IN ( col2, col2 + + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT COUNT( * ) AS col2 FROM tab2 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8236
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE NOT col2 IS NOT NULL
----
0

query II rowsort
SELECT + 30 AS col1, - 74 FROM tab1 AS cor0
----
30
-74
30
-74
30
-74

query I rowsort
SELECT 74 * + col0 AS col1 FROM tab2 AS cor0
----
3404
4736
5550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - col1 ) col2 FROM tab2 AS cor0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col1, - col2 col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

query I rowsort
SELECT 15 FROM tab1 AS cor0 WHERE col2 BETWEEN + 0 AND 14
----

query I rowsort
SELECT DISTINCT - - ( col1 ) + - + ( 64 ) * col0 FROM tab1 AS cor0
----
-3250
-5435
-5777

query I rowsort
SELECT col0 * col0 - 74 AS col1 FROM tab2
----
2042
4022
5551

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8244
SELECT - 76 DIV + 12 - + + MIN( - col2 ) col1 FROM tab1
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8244
SELECT - 76 / + 12 - + + MIN ( - col2 ) col1 FROM tab1
----
90

query I rowsort
SELECT + 4 * - + col2 + + 87 + col1 + col2 FROM tab1 AS cor0
----
-187
-70
-85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8246
SELECT - col1 + CAST( NULL AS SIGNED ) AS col2, - 62 * - + col2 * - 43 * - 12 AS col0 FROM tab2 AS cor0
----
NULL
1279680
NULL
1855536
NULL
735816

skipif mysql # not compatible
query II rowsort label-8246
SELECT - col1 + CAST ( NULL AS INTEGER ) AS col2, - 62 * - + col2 * - 43 * - 12 AS col0 FROM tab2 AS cor0
----
NULL
1279680
NULL
1855536
NULL
735816

query I rowsort
SELECT + + col1 + + - col1 * + ( - + 37 ) AS col1 FROM tab1 AS cor0
----
1786
190
532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8248
SELECT + ( 57 ) * + CAST( - col1 AS SIGNED ) + + CAST( + 16 AS SIGNED ) FROM tab2 AS cor0
----
-2891
-3803
-4373

skipif mysql # not compatible
query I rowsort label-8248
SELECT + ( 57 ) * + CAST ( - col1 AS INTEGER ) + + CAST ( + 16 AS INTEGER ) FROM tab2 AS cor0
----
-2891
-3803
-4373

query I rowsort
SELECT + - 13 + - + col1 FROM tab2 AS cor0
----
-64
-80
-90

query I rowsort
SELECT ALL + + col1 * - col2 * col0 + col2 FROM tab2 AS cor0
----
-197080
-291392
-53935

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT ALL - SUM( ALL - ( - col1 ) ) + ( + + 98 ) AS col1 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL - SUM ( ALL - ( - col1 ) ) + ( + + 98 ) AS col1 FROM tab1
----
32

query II rowsort
SELECT ALL 64 AS col2, col0 AS col1 FROM tab2
----
64
46
64
64
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 col1 FROM tab1 AS cor0
----
97

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT DISTINCT - MAX( col0 ) * + 54 AS col1 FROM tab2 AS cor0
----
-4050

skipif mysql # not compatible
query I rowsort label-8255
SELECT DISTINCT - MAX ( col0 ) * + 54 AS col1 FROM tab2 AS cor0
----
-4050

onlyif mysql # DIV for integer division: 
query I rowsort label-8256
SELECT ALL 43 DIV - 58 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL 43 / - 58 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8257
SELECT ALL COUNT( DISTINCT ( + + 26 ) ) AS col1, 56 AS col0 FROM tab1 AS cor0
----
1
56

skipif mysql # not compatible
query II rowsort label-8257
SELECT ALL COUNT ( DISTINCT ( + + 26 ) ) AS col1, 56 AS col0 FROM tab1 AS cor0
----
1
56

query I rowsort
SELECT + + col1 FROM tab2 WHERE NOT - ( - 41 ) / - + col1 NOT BETWEEN + + col1 AND + col1 * - ( - 12 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8259
SELECT DISTINCT + col0 DIV - 14 AS col0 FROM tab1
----
-3
-6

skipif mysql # not compatible
query I rowsort label-8259
SELECT DISTINCT + col0 / - 14 AS col0 FROM tab1
----
-3
-6

query I rowsort
SELECT + ( + ( 73 ) ) FROM tab0
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT ALL + - ( + MIN( ALL + 27 ) ) FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN 19 * - 37 AND 69
----
NULL

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL + - ( + MIN ( ALL + 27 ) ) FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN 19 * - 37 AND 69
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8262
SELECT ALL CAST( + + 42 AS SIGNED ) AS col1 FROM tab0
----
42
42
42

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL CAST ( + + 42 AS INTEGER ) AS col1 FROM tab0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT DISTINCT + COUNT( ALL + col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8263
SELECT DISTINCT + COUNT ( ALL + col2 ) FROM tab0
----
3

query I rowsort
SELECT 78 * col2 + - col2 AS col1 FROM tab1 AS cor0
----
4543
5236
7392

query I rowsort
SELECT - ( + + 62 ) FROM tab0
----
-62
-62
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8266
SELECT COUNT( * ) DIV + + 35 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8266
SELECT COUNT ( * ) / + + 35 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8267
SELECT ALL + col1 * - 96 AS col1 FROM tab2 AS cor0 WHERE 6 NOT BETWEEN - - ( - 72 ) AND + 56 * - col2 + - col1 - + - CAST( NULL AS SIGNED ) + - 26
----

skipif mysql # not compatible
query I rowsort label-8267
SELECT ALL + col1 * - 96 AS col1 FROM tab2 AS cor0 WHERE 6 NOT BETWEEN - - ( - 72 ) AND + 56 * - col2 + - col1 - + - CAST ( NULL AS INTEGER ) + - 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT ALL - COUNT( DISTINCT 73 ) AS col2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8268
SELECT ALL - COUNT ( DISTINCT 73 ) AS col2 FROM tab0 cor0
----
-1

query I rowsort
SELECT DISTINCT 53 + - + col0 AS col2 FROM tab2 AS cor0
----
-11
-22
7

query II rowsort
SELECT ALL - + col2 AS col0, 14 FROM tab2 AS cor0
----
-23
14
-40
14
-58
14

query I rowsort
SELECT DISTINCT + 45 + - + 44 + - col0 * - - col0 AS col0 FROM tab1 AS cor0
----
-2600
-7224
-8280

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 33 NOT IN ( + col0, col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8273
SELECT * FROM tab0 AS cor0 WHERE ( - CAST( NULL AS DECIMAL ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-8273
SELECT * FROM tab0 AS cor0 WHERE ( - CAST ( NULL AS REAL ) IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 44 BETWEEN 22 + + col0 AND - ( col2 )
----

query I rowsort
SELECT DISTINCT + 52 + - 84 + - 59 * - 10 - + - 30 FROM tab1
----
588

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - + col2 col0 FROM tab1
----
-45
23
26

query III rowsort
SELECT * FROM tab2 WHERE + col2 * + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8278
SELECT DISTINCT - col2 * + 18 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8278
SELECT DISTINCT - col2 * + 18 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + col0 + - ( 76 ) FROM tab1
----
-25
15
9

query II rowsort
SELECT DISTINCT col0, - col2 AS col2 FROM tab1
----
51
-96
85
-59
91
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8281
SELECT + col2 * - CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8281
SELECT + col2 * - CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT + 96 - - COUNT( ALL - - col1 ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8282
SELECT + 96 - - COUNT ( ALL - - col1 ) FROM tab1 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8283
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( + col1, 12 * - col1, CAST( - + 74 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8283
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( + col1, 12 * - col1, CAST ( - + 74 AS INTEGER ) )
----

query I rowsort
SELECT ( + 80 ) FROM tab0 AS cor0
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT DISTINCT - 61 * 34 + - - COUNT( * ) FROM tab1 AS cor0
----
-2071

skipif mysql # not compatible
query I rowsort label-8285
SELECT DISTINCT - 61 * 34 + - - COUNT ( * ) FROM tab1 AS cor0
----
-2071

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8286
SELECT ALL + CAST( - + 91 AS SIGNED ) * + col2 FROM tab1 cor0
----
-5369
-6188
-8736

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL + CAST ( - + 91 AS INTEGER ) * + col2 FROM tab1 cor0
----
-5369
-6188
-8736

onlyif mysql # DIV for integer division: 
query I rowsort label-8287
SELECT ALL + + col1 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8287
SELECT ALL + + col1 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT - ( - ( 59 ) ) * - 41 * 75 + + + col2 FROM tab0 AS cor0
----
-181326
-181378
-181415

query I rowsort
SELECT 55 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 17 col1 FROM tab1 AS cor0
----
-17
-17
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 col1 FROM tab0 AS cor0
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT DISTINCT - MIN( ( col0 ) ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8292
SELECT DISTINCT - MIN ( ( col0 ) ) FROM tab2 AS cor0
----
-46

query II rowsort
SELECT DISTINCT - 0, 73 + - 36 AS col0 FROM tab0
----
0
37

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8295
SELECT - 12 * - - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL <> + 12
----

skipif mysql # not compatible
query I rowsort label-8295
SELECT - 12 * - - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL <> + 12
----

query I rowsort
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 AND - - 56
----

query I rowsort
SELECT - + 48 * + 86 FROM tab0 cor0
----
-4128
-4128
-4128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8298
SELECT ALL + CAST( + col1 AS SIGNED ) + - - 0 * + + col1 - - + 12 AS col0 FROM tab0 AS cor0
----
13
33
93

skipif mysql # not compatible
query I rowsort label-8298
SELECT ALL + CAST ( + col1 AS INTEGER ) + - - 0 * + + col1 - - + 12 AS col0 FROM tab0 AS cor0
----
13
33
93

query I rowsort
SELECT - col2 * - ( col1 ) * + col1 AS col1 FROM tab1 AS cor0
----
1475
150212
18816

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 78 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 12 * - 14 * + col1 FROM tab1 AS cor0
----
-2352
-7896
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT + + MIN( + ( - 75 ) ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8302
SELECT + + MIN ( + ( - 75 ) ) FROM tab2 AS cor0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8303
SELECT - - SUM( col2 ) AS col2 FROM tab2 WHERE + - CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8303
SELECT - - SUM ( col2 ) AS col2 FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

query I rowsort
SELECT col2 - 3 FROM tab0
----
44
7
96

query I rowsort
SELECT ALL - ( - col0 ) - + col2 AS col0 FROM tab0
----
-2
-32
77

query I rowsort
SELECT ALL + 8 - - 7 AS col1 FROM tab2 AS cor0
----
15
15
15

query I rowsort
SELECT ALL - - 50 AS col1 FROM tab0 cor0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT ALL + COUNT( * ) + + ( - + COUNT( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8308
SELECT ALL + COUNT ( * ) + + ( - + COUNT ( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8309
SELECT + 57 DIV 3 FROM tab1
----
19
19
19

skipif mysql # not compatible
query I rowsort label-8309
SELECT + 57 / 3 FROM tab1
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT SUM( 24 ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-8310
SELECT SUM ( 24 ) FROM tab2
----
72

query I rowsort
SELECT ALL - 83 * - col2 * - col1 FROM tab0 AS cor0
----
-17430
-315981
-8217

query I rowsort
SELECT + ( col2 ) * 48 AS col0 FROM tab1 AS cor0
----
2832
3264
4608

query I rowsort
SELECT DISTINCT + + ( 91 ) * col1 FROM tab2 AS cor0
----
4641
6097
7007

onlyif mysql # DIV for integer division: 
query I rowsort label-8314
SELECT ALL - 75 DIV - - col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8314
SELECT ALL - 75 / - - col0 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT DISTINCT + - MIN( ALL + 56 ) FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-8315
SELECT DISTINCT + - MIN ( ALL + 56 ) FROM tab1 AS cor0
----
-56

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 95 NOT BETWEEN + col0 AND + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8317
SELECT DISTINCT + 35 AS col0, 74 * COUNT( * ) FROM tab2 AS cor0
----
35
222

skipif mysql # not compatible
query II rowsort label-8317
SELECT DISTINCT + 35 AS col0, 74 * COUNT ( * ) FROM tab2 AS cor0
----
35
222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 + + + ( + - col1 ) col0 FROM tab2
----
-30
-46
-56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8319
SELECT ALL * FROM tab1 WHERE NOT + CAST( + 9 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-8319
SELECT ALL * FROM tab1 WHERE NOT + CAST ( + 9 AS INTEGER ) < NULL
----

query I rowsort
SELECT DISTINCT col0 * - + col2 * - 47 * - - col2 AS col2 FROM tab0
----
1557345
408900
44682759

query I rowsort
SELECT DISTINCT 76 * 21 * - + col0 AS col2 FROM tab0
----
-138852
-154812
-23940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8322
SELECT DISTINCT + 63 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8322
SELECT DISTINCT + 63 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8323
SELECT ALL 21 DIV 90 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL 21 / 90 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - col2 + - ( - + col1 ) FROM tab1
----
-21
-54
-82

query II rowsort
SELECT ALL - col0 * + - col1 AS col2, col1 AS col2 FROM tab2
----
2346
51
4928
77
5025
67

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( - 32 ) IS NOT NULL
----

query I rowsort
SELECT - 22 + - 50 AS col0 FROM tab0
----
-72
-72
-72

query I rowsort
SELECT ALL ( - col0 ) * + + 30 FROM tab0 cor0
----
-2610
-2910
-450

query I rowsort
SELECT ALL + col1 + col0 - + + 82 FROM tab1 AS cor0
----
-17
56
8

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT ( + 63 IS NOT NULL ) )
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 NOT IN ( - 91 + + + col0 / - 1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - 47 AS col1, - 90 FROM tab2
----
-47
-90
-47
-90
-47
-90

query I rowsort
SELECT DISTINCT 19 - 52 FROM tab2 cor0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8334
SELECT - CAST( - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 + - 40, col0 )
----

skipif mysql # not compatible
query I rowsort label-8334
SELECT - CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 + - 40, col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8335
SELECT ALL - 16 + - 43 DIV + 73 FROM tab0 AS cor0
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-8335
SELECT ALL - 16 + - 43 / + 73 FROM tab0 AS cor0
----
-16
-16
-16

query I rowsort
SELECT ALL ( - col2 ) + - + 56 FROM tab2 AS cor0
----
-114
-79
-96

query I rowsort
SELECT ALL 21 * + 30 - - col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
676
694
705

query II rowsort
SELECT ALL - - 80, 87 * col2 AS col2 FROM tab0 AS cor0
----
80
4089
80
8613
80
870

query II rowsort
SELECT DISTINCT + 60 AS col1, col1 AS col2 FROM tab2 AS cor0
----
60
51
60
67
60
77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8340
SELECT - col0 + col1 DIV - - CAST( col1 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
-103
-132
-68

skipif mysql # not compatible
query I rowsort label-8340
SELECT - col0 + col1 / - - CAST ( col1 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
-103
-132
-68

query I rowsort
SELECT DISTINCT + col0 + - + 56 FROM tab0
----
-41
31
41

query I rowsort
SELECT ALL col2 + - col2 * - col1 AS col2 FROM tab0
----
198
220
3854

query I rowsort
SELECT DISTINCT col0 + - 47 + 98 AS col0 FROM tab0
----
138
148
66

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 WHERE NOT - + col1 + - col2 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT + ( - 75 ) * - - COUNT( * ) + COUNT( * ) FROM tab2
----
-222

skipif mysql # not compatible
query I rowsort label-8345
SELECT + ( - 75 ) * - - COUNT ( * ) + COUNT ( * ) FROM tab2
----
-222

query I rowsort
SELECT DISTINCT - - ( + - col2 ) AS col2 FROM tab1 cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 51 - - + 8 IN ( - + col1 * - ( + col0 ), col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT - - ( + - ( COUNT( * ) ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8348
SELECT - - ( + - ( COUNT ( * ) ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8349
SELECT ALL + - CAST( - AVG ( ALL + col1 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL + - CAST ( - AVG ( ALL + col1 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT - COUNT( * ) * - 9 AS col0 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-8350
SELECT - COUNT ( * ) * - 9 AS col0 FROM tab1 AS cor0
----
27

query I rowsort
SELECT ALL - + col0 FROM tab1 AS cor0 WHERE NULL > - col0 * - col0 * - - col2
----

query I rowsort
SELECT col2 * + + col1 + + col1 FROM tab0 AS cor0
----
100
231
3888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 57 * - 31 col2 FROM tab0 AS cor0
----
1767
1767
1767

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 / - + 97 IS NULL
----

query I rowsort
SELECT + ( - + col2 ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8356
SELECT ALL - CAST( - + 76 AS SIGNED ) FROM tab0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL - CAST ( - + 76 AS INTEGER ) FROM tab0
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT + ( COUNT( * ) ) FROM tab1, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8357
SELECT + ( COUNT ( * ) ) FROM tab1, tab1 cor0
----
9

query I rowsort
SELECT DISTINCT - + ( col1 ) * - col2 / - col2 + - + col1 AS col2 FROM tab2 WHERE NOT - 96 + 78 * - col0 * + 54 * + - 12 + - col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8359
SELECT ( SUM( ALL - 92 ) ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8359
SELECT ( SUM ( ALL - 92 ) ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - 9 * col0 * col2 * - 50 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND 10
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8361
SELECT ALL CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8362
SELECT ALL + + col1 FROM tab2 WHERE NOT NULL IS NULL AND - - CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL + + col1 FROM tab2 WHERE NOT NULL IS NULL AND - - CAST ( NULL AS INTEGER ) <> NULL
----

query II rowsort
SELECT ALL + ( col1 ) + col1 AS col1, col1 FROM tab2
----
102
51
134
67
154
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8364
SELECT ALL 99 * MAX( CAST( NULL AS SIGNED ) ) - 67 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8364
SELECT ALL 99 * MAX ( CAST ( NULL AS INTEGER ) ) - 67 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT ALL - + MIN( - + ( + + col0 ) ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL - + MIN ( - + ( + + col0 ) ) AS col2 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT - COUNT( * ) * - - COUNT( * ) col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8366
SELECT - COUNT ( * ) * - - COUNT ( * ) col1 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT + - col1 * + 16 AS col1 FROM tab1 AS cor0
----
-224
-752
-80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8368
SELECT + COUNT( * ) / + CAST( NULL AS DECIMAL ) AS col1, COUNT( * ) + 31 * + SUM( 32 ) AS col2 FROM tab1 cor0
----
NULL
2979

skipif mysql # not compatible
query II rowsort label-8368
SELECT + COUNT ( * ) / + CAST ( NULL AS REAL ) AS col1, COUNT ( * ) + 31 * + SUM ( 32 ) AS col2 FROM tab1 cor0
----
NULL
2979

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 BETWEEN NULL AND - col1 * col0 + - col1 - - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 + 83 AS col2 FROM tab1 WHERE - 75 IS NOT NULL
----
142
151
179

query II rowsort
SELECT DISTINCT + col2, + 41 + + + col0 FROM tab0
----
10
128
47
56
99
138

query I rowsort
SELECT ALL 77 * - - col0 AS col0 FROM tab0
----
1155
6699
7469

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8373
SELECT DISTINCT col2 DIV CAST( - + col0 AS SIGNED ) FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-8373
SELECT DISTINCT col2 / CAST ( - + col0 AS INTEGER ) FROM tab0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NOT + 36 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8374
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT + 36 IS NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8375
SELECT + 44 * + CAST( + - 71 AS SIGNED ) AS col0, CAST( NULL AS SIGNED ) * - 33 * COUNT( * ) FROM tab0
----
-3124
NULL

skipif mysql # not compatible
query II rowsort label-8375
SELECT + 44 * + CAST ( + - 71 AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) * - 33 * COUNT ( * ) FROM tab0
----
-3124
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 53 col1, col2 * + col0 FROM tab0 AS cor0
----
53
705
53
870
53
9603

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 cor0 WHERE col2 IN ( col2, col1, + col1, + 94 )
----
14
47
5

query I rowsort
SELECT - col0 * - 84 AS col2 FROM tab1
----
4284
7140
7644

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT + MAX( DISTINCT + 72 ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-8379
SELECT + MAX ( DISTINCT + 72 ) FROM tab2 AS cor0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8380
SELECT ALL COUNT( * ) + - 45 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL COUNT ( * ) + - 45 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 * + - 41 + - 64 FROM tab2 cor0
----
2027
2683
3093

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + + 46 ) col1, col0 FROM tab1 AS cor0
----
-46
51
-46
85
-46
91

query I rowsort
SELECT col2 + + 37 - col0 AS col0 FROM tab0
----
-40
39
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8384
SELECT ALL - col2 * + CAST( NULL AS SIGNED ) / - 9 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8384
SELECT ALL - col2 * + CAST ( NULL AS INTEGER ) / - 9 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8385
SELECT COUNT( ALL + + col1 ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8385
SELECT COUNT ( ALL + + col1 ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT 33 * - 37 + + COUNT( * ) * + + COUNT( * ) AS col1 FROM tab0
----
-1212

skipif mysql # not compatible
query I rowsort label-8386
SELECT 33 * - 37 + + COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab0
----
-1212

query I rowsort
SELECT ALL - + col2 + 25 * + col2 AS col0 FROM tab2 cor0
----
1392
552
960

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 73 < col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col1 = col2 * - col2 * - col1 + + 89
----

query II rowsort
SELECT DISTINCT - col0, col2 AS col0 FROM tab0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT + col1 - + + 30 FROM tab0
----
-29
-9
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT + SUM( DISTINCT - 62 ) * + 48 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-2976

skipif mysql # not compatible
query I rowsort label-8392
SELECT + SUM ( DISTINCT - 62 ) * + 48 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-2976

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8393
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2, 61 FROM tab2 WHERE NOT - + col0 IS NULL
----
NULL
61

skipif mysql # not compatible
query II rowsort label-8393
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2, 61 FROM tab2 WHERE NOT - + col0 IS NULL
----
NULL
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8394
SELECT ALL CAST( NULL AS SIGNED ) AS col0, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-8394
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT ALL + + 29 - - ( - COUNT( * ) ) FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-8395
SELECT ALL + + 29 - - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
26

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT col1 < - col2
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 * - + col0, col2 col2 FROM tab2 AS cor0
----
-2346
23
-4928
40
-5025
58

query I rowsort
SELECT DISTINCT col2 * - col0 + - ( - col2 ) FROM tab2 cor0
----
-1035
-2520
-4292

query I rowsort
SELECT col0 * 99 FROM tab0 AS cor0
----
1485
8613
9603

onlyif mysql # DIV for integer division: 
query II rowsort label-8400
SELECT + - col1 DIV 27, + col1 col0 FROM tab1 AS cor0
----
-1
47
0
14
0
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8400
SELECT + - col1 / 27, + col1 col0 FROM tab1 AS cor0
----
-1
47
0
14
0
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8401
SELECT - - 3 DIV + col2 + + 33 FROM tab2 AS cor0
----
33
33
33

skipif mysql # not compatible
query I rowsort label-8401
SELECT - - 3 / + col2 + + 33 FROM tab2 AS cor0
----
33
33
33

query II rowsort
SELECT ALL - 61 * + - 60 AS col0, + ( - - col0 ) FROM tab0
----
3660
15
3660
87
3660
97

query II rowsort
SELECT 34 * col0 * - col2 AS col2, 46 FROM tab1
----
-166464
46
-170510
46
-210392
46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8404
SELECT ALL CAST( NULL AS DECIMAL ) * - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8404
SELECT ALL CAST ( NULL AS REAL ) * - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 * - col0 + - - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + col0 ) col2 FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT + 83 * + - 90 FROM tab2 AS cor0
----
-7470
-7470
-7470

query I rowsort
SELECT 20 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT DISTINCT + COUNT( * ) * + 0 + - MAX( ALL + 49 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-49

skipif mysql # not compatible
query I rowsort label-8409
SELECT DISTINCT + COUNT ( * ) * + 0 + - MAX ( ALL + 49 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-49

query I rowsort
SELECT col0 + - 91 FROM tab1
----
-40
-6
0

query I rowsort
SELECT 18 + - 1 AS col0 FROM tab2
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT ALL SUM( DISTINCT + - col1 ) AS col0 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL SUM ( DISTINCT + - col1 ) AS col0 FROM tab0
----
-103

query I rowsort
SELECT - col2 + col0 * + col1 - - col0 - + col1 FROM tab1 AS cor0
----
4253
446
655

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 94 + - 99 * + col2 * - col1 col1 FROM tab1 AS cor0
----
132962
29111
316310

query II rowsort
SELECT col0, 63 AS col0 FROM tab2 AS cor0
----
46
63
64
63
75
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT + ( - COUNT( * ) ) FROM tab2 AS cor0 WHERE col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8416
SELECT + ( - COUNT ( * ) ) FROM tab2 AS cor0 WHERE col2 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT ALL + SUM( ALL - col0 ) col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8417
SELECT ALL + SUM ( ALL - col0 ) col1 FROM tab1 AS cor0
----
-227

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 65 / col1 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 79 + + - col2 AS col1 FROM tab0 AS cor0
----
-126
-178
-89

query I rowsort
SELECT DISTINCT col0 + - - ( - 78 ) AS col0 FROM tab1
----
-27
13
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT ALL - MIN( DISTINCT + + col2 ) AS col0 FROM tab2 WHERE NOT NULL BETWEEN + ( - 97 ) AND + + 64 / + ( - col2 ) OR NULL IS NULL
----
-23

skipif mysql # not compatible
query I rowsort label-8421
SELECT ALL - MIN ( DISTINCT + + col2 ) AS col0 FROM tab2 WHERE NOT NULL BETWEEN + ( - 97 ) AND + + 64 / + ( - col2 ) OR NULL IS NULL
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8422
SELECT DISTINCT + MIN( ALL + CAST( - col2 AS SIGNED ) ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-8422
SELECT DISTINCT + MIN ( ALL + CAST ( - col2 AS INTEGER ) ) AS col1 FROM tab2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-8423
SELECT - + col1 * col1 DIV + col1 + + col1 - col1 AS col1 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8423
SELECT - + col1 * col1 / + col1 + + col1 - col1 AS col1 FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8424
SELECT ALL - COUNT( * ) * COUNT( * ) + 62 + - 27 DIV - - 94 AS col1 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL - COUNT ( * ) * COUNT ( * ) + 62 + - 27 / - - 94 AS col1 FROM tab0 AS cor0
----
53

query I rowsort
SELECT ALL - + ( + 97 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query III rowsort
SELECT * FROM tab0 WHERE - ( + 39 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8427
SELECT 34 * ( + CAST( col2 AS SIGNED ) ) FROM tab1
----
2006
2312
3264

skipif mysql # not compatible
query I rowsort label-8427
SELECT 34 * ( + CAST ( col2 AS INTEGER ) ) FROM tab1
----
2006
2312
3264

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT + SUM( + - ( - - col1 ) ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8428
SELECT + SUM ( + - ( - - col1 ) ) AS col0 FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT DISTINCT + MIN( - ( - + col0 ) ) * 53 + - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
2435

skipif mysql # not compatible
query I rowsort label-8429
SELECT DISTINCT + MIN ( - ( - + col0 ) ) * 53 + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
2435

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8430
SELECT - CAST( NULL AS SIGNED ) AS col0, col1 col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8430
SELECT - CAST ( NULL AS INTEGER ) AS col0, col1 col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT ALL + MIN( + 62 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL + MIN ( + 62 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8432
SELECT ALL 37 * + + 56 + - 38, - COUNT( * ) col1 FROM tab1 AS cor0
----
2034
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8432
SELECT ALL 37 * + + 56 + - 38, - COUNT ( * ) col1 FROM tab1 AS cor0
----
2034
-3

query I rowsort
SELECT DISTINCT + - 60 * col0 - + col2 FROM tab0 cor0
----
-5230
-5919
-947

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 22 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8435
SELECT * FROM tab1 AS cor0 WHERE NOT 17 * + - ( col2 ) * + CAST( NULL AS SIGNED ) NOT IN ( col1 + col1, - col2, + - 57 + + 94, - col0 )
----

skipif mysql # not compatible
query III rowsort label-8435
SELECT * FROM tab1 AS cor0 WHERE NOT 17 * + - ( col2 ) * + CAST ( NULL AS INTEGER ) NOT IN ( col1 + col1, - col2, + - 57 + + 94, - col0 )
----

query I rowsort
SELECT ALL + 21 * 41 FROM tab2 AS cor0
----
861
861
861

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + + 62 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT + COUNT( * ) col0 FROM tab1 WHERE NOT ( - + ( - + col1 ) ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8438
SELECT + COUNT ( * ) col0 FROM tab1 WHERE NOT ( - + ( - + col1 ) ) IS NOT NULL
----
0

query I rowsort
SELECT 62 * + 19 FROM tab1
----
1178
1178
1178

query I rowsort
SELECT DISTINCT + 51 * col2 FROM tab1
----
3009
3468
4896

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT ALL + COUNT( + 25 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL + COUNT ( + 25 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT ALL + + COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL + + COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL <= NULL
----
0

query II rowsort
SELECT ALL 9, - col0 AS col0 FROM tab2
----
9
-46
9
-64
9
-75

query I rowsort
SELECT ALL - 85 * - 71 FROM tab1
----
6035
6035
6035

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8445
SELECT ALL - COUNT( * ) DIV - + MIN( DISTINCT + ( + ( - col0 ) ) ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL - COUNT ( * ) / - + MIN ( DISTINCT + ( + ( - col0 ) ) ) AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8446
SELECT ALL - ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8447
SELECT ALL + + col0 * - col1 DIV + col1 AS col1 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL + + col0 * - col1 / + col1 AS col1 FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT DISTINCT + SUM( DISTINCT - 95 ) AS col0 FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-8448
SELECT DISTINCT + SUM ( DISTINCT - 95 ) AS col0 FROM tab0
----
-95

query I rowsort
SELECT ALL 17 * - 43 AS col0 FROM tab2
----
-731
-731
-731

query I rowsort
SELECT - 19 * + 28 AS col2 FROM tab0 AS cor0
----
-532
-532
-532

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + - col0 * + col2 IN ( + col1 * + col0, col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * - col2 * + + 1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8453
SELECT COUNT( * ), SUM( 65 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8453
SELECT COUNT ( * ), SUM ( 65 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8454
SELECT DISTINCT + - col0 + - + 29 AS col2, CAST( 73 AS SIGNED ) - 68 - 43 * col0 FROM tab2 AS cor0
----
-104
-3220
-75
-1973
-93
-2747

skipif mysql # not compatible
query II rowsort label-8454
SELECT DISTINCT + - col0 + - + 29 AS col2, CAST ( 73 AS INTEGER ) - 68 - 43 * col0 FROM tab2 AS cor0
----
-104
-3220
-75
-1973
-93
-2747

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8455
SELECT ( + + col1 ) + - CAST( + + 71 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-50
-70
10

skipif mysql # not compatible
query I rowsort label-8455
SELECT ( + + col1 ) + - CAST ( + + 71 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-50
-70
10

query I rowsort
SELECT ALL - 7 + col2 + + - col1 AS col0 FROM tab1 AS cor0
----
14
47
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8457
SELECT ALL ( + ( - col1 ) ) * - 55 + - col2 + col1 AS col1, CAST( + col0 AS SIGNED ) AS col0 FROM tab0
----
-43
97
1166
87
4489
15

skipif mysql # not compatible
query II rowsort label-8457
SELECT ALL ( + ( - col1 ) ) * - 55 + - col2 + col1 AS col1, CAST ( + col0 AS INTEGER ) AS col0 FROM tab0
----
-43
97
1166
87
4489
15

query I rowsort
SELECT ALL ( - col2 ) + + col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 72 AS col0, - 32 col1 FROM tab0
----
72
-32
72
-32
72
-32

query I rowsort
SELECT - 51 * 1 AS col2 FROM tab0 AS cor0
----
-51
-51
-51

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) BETWEEN + col2 AND col0
----

query II rowsort
SELECT - + col0, - col1 AS col1 FROM tab0 AS cor0
----
-15
-81
-87
-21
-97
-1

query II rowsort
SELECT ALL 57 AS col2, + 37 - + col1 AS col0 FROM tab2 cor0
----
57
-14
57
-30
57
-40

query III rowsort
SELECT * FROM tab0 WHERE 40 * + ( col2 ) <> + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8465
SELECT ALL * FROM tab0 WHERE - CAST( col1 AS SIGNED ) + - 23 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8465
SELECT ALL * FROM tab0 WHERE - CAST ( col1 AS INTEGER ) + - 23 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 22 ) < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col2 * + 87 + col1 * + col1 <= - 3
----

query III rowsort
SELECT * FROM tab0 WHERE ( col1 * ( 85 / - col1 ) + + col2 ) <> ( 52 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 * 29 + - col2 BETWEEN ( col0 ) AND + 11
----

query I rowsort
SELECT ( 27 ) AS col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
27
27
27

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + 41 )
----

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT col2 NOT IN ( - 36 / col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 18 * + col1 + - col1 IS NOT NULL
----

query I rowsort
SELECT ( col0 ) AS col1 FROM tab1 WHERE - col0 + col0 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col1 * col0 + 39 * col1 AS col2 FROM tab0
----
-1008
-58
1944

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT DISTINCT SUM( DISTINCT col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-8476
SELECT DISTINCT SUM ( DISTINCT col2 ) AS col1 FROM tab1
----
223

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 99 * - 67 NOT BETWEEN ( + col2 ) AND ( col2 )
----

query I rowsort
SELECT - ( 84 ) AS col1 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col2 col0 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT + 38 + + col0 FROM tab0
----
125
135
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8481
SELECT DISTINCT * FROM tab1 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN ( CAST( NULL AS SIGNED ) * col1 ) AND + 92
----

skipif mysql # not compatible
query III rowsort label-8481
SELECT DISTINCT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN ( CAST ( NULL AS INTEGER ) * col1 ) AND + 92
----

query I rowsort
SELECT + 61 FROM tab0 WHERE NOT + col0 = col2
----
61
61
61

query I rowsort
SELECT ALL - col1 + col0 * col1 AS col2 FROM tab0
----
1134
1806
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + 2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8485
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE ( 15 ) IN ( 11 )
----

skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE ( 15 ) IN ( 11 )
----

query I rowsort
SELECT ALL 47 * + 99 AS col2 FROM tab2 AS cor0 WHERE - col2 BETWEEN col0 AND col0
----

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - col0 ) AS col0 FROM tab0 AS cor0 WHERE ( + 32 ) NOT BETWEEN ( col2 ) AND ( NULL )
----
-15
-97

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( - col2 ) * col0 NOT BETWEEN 82 + ( 48 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 39 FROM tab2 cor0 CROSS JOIN tab1
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8491
SELECT * FROM tab2 WHERE 78 IN ( - col1 + CAST( + col1 AS SIGNED ) * - 68 )
----

skipif mysql # not compatible
query III rowsort label-8491
SELECT * FROM tab2 WHERE 78 IN ( - col1 + CAST ( + col1 AS INTEGER ) * - 68 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 / col2 IS NULL
----

query I rowsort
SELECT ( + col2 ) * ( + 97 ) FROM tab0 AS cor0
----
4559
9603
970

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT ALL - 9 + - COUNT( * ) * + 17 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL - 9 + - COUNT ( * ) * + 17 FROM tab0 AS cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT - + MIN( ALL col2 ) FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8495
SELECT - + MIN ( ALL col2 ) FROM tab2 cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8496
SELECT + CAST( - AVG ( DISTINCT + col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-8496
SELECT + CAST ( - AVG ( DISTINCT + col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8497
SELECT DISTINCT - COUNT( * ) + MAX( - 90 + - col2 DIV + col2 ) FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-8497
SELECT DISTINCT - COUNT ( * ) + MAX ( - 90 + - col2 / + col2 ) FROM tab2 AS cor0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8498
SELECT ALL * FROM tab2 AS cor0 WHERE ( CAST( NULL AS SIGNED ) + - 94 ) = col2 * 73
----

skipif mysql # not compatible
query III rowsort label-8498
SELECT ALL * FROM tab2 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) + - 94 ) = col2 * 73
----

query I rowsort
SELECT - 79 AS col1 FROM tab2 AS cor0 WHERE NULL < ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + + 46 * + col0 col1 FROM tab2 cor0
----
2162
3008
3525

query I rowsort
SELECT DISTINCT 84 + + ( col2 ) FROM tab2
----
107
124
142

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 96 BETWEEN NULL AND ( + ( + col0 ) ) + col2
----

query I rowsort
SELECT ALL col1 FROM tab1 WHERE 33 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT ALL - MIN( DISTINCT - col2 ) AS col2 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL - MIN ( DISTINCT - col2 ) AS col2 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND ( NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8505
SELECT - 35 DIV + 30 AS col1 FROM tab1 WHERE col2 * col2 <> 41 * + col2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8505
SELECT - 35 / + 30 AS col1 FROM tab1 WHERE col2 * col2 <> 41 * + col2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8506
SELECT ALL * FROM tab0 WHERE - col2 NOT BETWEEN col2 AND + CAST( col1 AS SIGNED ) - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8506
SELECT ALL * FROM tab0 WHERE - col2 NOT BETWEEN col2 AND + CAST ( col1 AS INTEGER ) - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 + col1 AS col1 FROM tab2 WHERE NOT + col0 IN ( - 50 + 30 )
----
141
142
97

query I rowsort
SELECT ALL + col2 * - col2 AS col2 FROM tab1 WHERE - 30 / 49 + + col1 / 67 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8509
SELECT DISTINCT col0 + - 29 DIV col2 AS col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT col0 + - 29 / col2 AS col1 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col1 ) > + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8511
SELECT DISTINCT - - col2 / + + 52 + CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8511
SELECT DISTINCT - - col2 / + + 52 + CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col2 * col0 - + col2 ) BETWEEN + 25 AND col0
----

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 96 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query II rowsort
SELECT DISTINCT + col2 AS col1, + col1 AS col2 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8516
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( + - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8516
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( + - col1 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8517
SELECT CAST( - col2 AS SIGNED ) * + col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8517
SELECT CAST ( - col2 AS INTEGER ) * + col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8518
SELECT - + CAST( NULL AS SIGNED ), col2 AS col1 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-8518
SELECT - + CAST ( NULL AS INTEGER ), col2 AS col1 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 57 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + + col2, col2 AS col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT - 24 * + + MAX( ALL + - col1 ) AS col2 FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-8521
SELECT - 24 * + + MAX ( ALL + - col1 ) AS col2 FROM tab1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT + COUNT( * ) * 2 AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-8522
SELECT + COUNT ( * ) * 2 AS col0 FROM tab1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8523
SELECT ALL ( CAST( - col1 AS SIGNED ) ) * - - col1 FROM tab2
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-8523
SELECT ALL ( CAST ( - col1 AS INTEGER ) ) * - - col1 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT DISTINCT - SUM( ALL - col2 ) col0 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8524
SELECT DISTINCT - SUM ( ALL - col2 ) col0 FROM tab0
----
156

query I rowsort
SELECT ALL 39 * - - 56 AS col1 FROM tab2
----
2184
2184
2184

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NOT - 71 IN ( - col2 * col0 + - col0 )
----
-23
-40
-58

query I rowsort
SELECT ALL col1 * 21 FROM tab0
----
1701
21
441

query I rowsort
SELECT 3 + + - 95 FROM tab2
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT ALL SUM( col0 ) * - 3 FROM tab1
----
-681

skipif mysql # not compatible
query I rowsort label-8529
SELECT ALL SUM ( col0 ) * - 3 FROM tab1
----
-681

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT 30 * + - COUNT( * ) + 87 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8531
SELECT 30 * + - COUNT ( * ) + 87 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8532
SELECT col1 + CAST( NULL AS SIGNED ) * + + 18 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8532
SELECT col1 + CAST ( NULL AS INTEGER ) * + + 18 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT + 47 + - + COUNT( * ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-8533
SELECT + 47 + - + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
38

query I rowsort
SELECT DISTINCT 15 AS col1 FROM tab0 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT DISTINCT - 17 + - 85 + + 66 * + + COUNT( * ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8535
SELECT DISTINCT - 17 + - 85 + + 66 * + + COUNT ( * ) FROM tab0 AS cor0
----
96

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 ) WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8537
SELECT col2 * 5 DIV - 51 FROM tab2
----
-2
-3
-5

skipif mysql # not compatible
query I rowsort label-8537
SELECT col2 * 5 / - 51 FROM tab2
----
-2
-3
-5

query I rowsort
SELECT ALL - 92 - + 66 AS col0 FROM tab2
----
-158
-158
-158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - 77 col0 FROM tab0 cor0
----
-56
-76
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT ALL + 72 + - COUNT( * ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-8540
SELECT ALL + 72 + - COUNT ( * ) FROM tab2 AS cor0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8541
SELECT DISTINCT SUM( + CAST( + - 76 AS SIGNED ) ) col2 FROM tab2 cor0
----
-228

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8541
SELECT DISTINCT SUM ( + CAST ( + - 76 AS INTEGER ) ) col2 FROM tab2 cor0
----
-228

query I rowsort
SELECT - 60 + col1 AS col2 FROM tab1 AS cor0 WHERE + col0 + - 68 <= ( + col2 + - 71 )
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8543
SELECT - CAST( - 91 AS SIGNED ) + + + col1 FROM tab1 cor0
----
105
138
96

skipif mysql # not compatible
query I rowsort label-8543
SELECT - CAST ( - 91 AS INTEGER ) + + + col1 FROM tab1 cor0
----
105
138
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 NOT IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT DISTINCT + - COUNT( * ) + + COUNT( DISTINCT - col2 ) + + + MIN( + 56 ) FROM tab0 cor0
----
56

skipif mysql # not compatible
query I rowsort label-8545
SELECT DISTINCT + - COUNT ( * ) + + COUNT ( DISTINCT - col2 ) + + + MIN ( + 56 ) FROM tab0 cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT + 63 + + MAX( + 13 ) AS col2 FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-8546
SELECT + 63 + + MAX ( + 13 ) AS col2 FROM tab1
----
76

query I rowsort
SELECT ALL col0 * - col0 * - col2 * - - col0 - 28 * col1 * col2 + col0 AS col0 FROM tab1
----
12696915
36225200
51153431

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8548
SELECT CAST( + 0 AS SIGNED ) AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8548
SELECT CAST ( + 0 AS INTEGER ) AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT DISTINCT COUNT( * ) * - 17 - + + ( 3 ) AS col2 FROM tab0 WHERE ( col1 ) IS NOT NULL
----
-54

skipif mysql # not compatible
query I rowsort label-8549
SELECT DISTINCT COUNT ( * ) * - 17 - + + ( 3 ) AS col2 FROM tab0 WHERE ( col1 ) IS NOT NULL
----
-54

query I rowsort
SELECT ALL 10 - - col0 AS col2 FROM tab0
----
107
25
97

query I rowsort
SELECT + col1 * col1 AS col2 FROM tab2 WHERE 10 IN ( - - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 BETWEEN col1 AND - col1 * - col2
----
46
51
23
64
77
40

query I rowsort
SELECT - 62 FROM tab1 WHERE - col2 IS NULL
----

query I rowsort
SELECT - col1 * - 82 FROM tab1 WHERE ( + + col2 ) IS NOT NULL
----
1148
3854
410

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT DISTINCT - COUNT( * ) * MAX( ALL - + col1 ) AS col0 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-8555
SELECT DISTINCT - COUNT ( * ) * MAX ( ALL - + col1 ) AS col0 FROM tab1
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8556
SELECT ALL - + 20 AS col1, + CAST( NULL AS SIGNED ) + MIN( - - col0 ) AS col0 FROM tab0 AS cor0
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-8556
SELECT ALL - + 20 AS col1, + CAST ( NULL AS INTEGER ) + MIN ( - - col0 ) AS col0 FROM tab0 AS cor0
----
-20
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * - + 84 + + 14 col0 FROM tab1 AS cor0
----
4970
5726
8078

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT DISTINCT COUNT( - + col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8558
SELECT DISTINCT COUNT ( - + col1 ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8559
SELECT DISTINCT + MIN( ALL + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8559
SELECT DISTINCT + MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT DISTINCT + + SUM( DISTINCT - - 20 ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
20

skipif mysql # not compatible
query I rowsort label-8560
SELECT DISTINCT + + SUM ( DISTINCT - - 20 ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 35 col2 FROM tab2 AS cor0
----
-35
-35
-35

query I rowsort
SELECT + - 94 * col1 AS col2 FROM tab2 AS cor0
----
-4794
-6298
-7238

onlyif mysql # DIV for integer division: 
query I rowsort label-8563
SELECT + 68 DIV - col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8563
SELECT + 68 / - col0 FROM tab2
----
-1
-1
0

query I rowsort
SELECT + 0 * - 23 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 / + ( + 2 ) AS col1 FROM tab0 WHERE NOT + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8566
SELECT DISTINCT + col2 FROM tab2 WHERE NOT + - CAST( - 17 AS DECIMAL ) IN ( + col2, + 83 )
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8566
SELECT DISTINCT + col2 FROM tab2 WHERE NOT + - CAST ( - 17 AS REAL ) IN ( + col2, + 83 )
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 WHERE - 76 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT ALL + SUM( - - col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL + SUM ( - - col2 ) FROM tab2
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-8569
SELECT col2 + + + col0 DIV + col0 FROM tab1 AS cor0
----
60
69
97

skipif mysql # not compatible
query I rowsort label-8569
SELECT col2 + + + col0 / + col0 FROM tab1 AS cor0
----
60
69
97

query I rowsort
SELECT DISTINCT 41 * 35 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1435

query I rowsort
SELECT ALL - + 79 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 55 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8573
SELECT - ( CAST( NULL AS SIGNED ) ) + ( + col2 ) + - col1 * - - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8573
SELECT - ( CAST ( NULL AS INTEGER ) ) + ( + col2 ) + - col1 * - - col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 + 59 BETWEEN - + 9 AND - 4
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + 53 AS col1 FROM tab2 AS cor0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT DISTINCT COUNT( * ) + - COUNT( * ) + - + MIN( DISTINCT - - col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8576
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) + - + MIN ( DISTINCT - - col2 ) AS col2 FROM tab0 AS cor0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-8577
SELECT - ( 76 ) * - col1 - + col2 DIV + - col2 FROM tab1 AS cor0
----
1065
3573
381

skipif mysql # not compatible
query I rowsort label-8577
SELECT - ( 76 ) * - col1 - + col2 / + - col2 FROM tab1 AS cor0
----
1065
3573
381

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8578
SELECT DISTINCT - COUNT( * ) * MIN( 37 ) * - ( CAST( + + COUNT( * ) AS SIGNED ) ) / + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8578
SELECT DISTINCT - COUNT ( * ) * MIN ( 37 ) * - ( CAST ( + + COUNT ( * ) AS INTEGER ) ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT + COUNT( * ) * - 58 col2 FROM tab1 AS cor0
----
-174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8579
SELECT + COUNT ( * ) * - 58 col2 FROM tab1 AS cor0
----
-174

query I rowsort
SELECT DISTINCT - - col0 + + + 17 * + 90 - - col0 FROM tab2 AS cor0 WHERE - 16 * - 94 IS NOT NULL
----
1622
1658
1680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8581
SELECT DISTINCT col2 + - CAST( + - 35 AS SIGNED ) * 16 FROM tab2 AS cor0
----
583
600
618

skipif mysql # not compatible
query I rowsort label-8581
SELECT DISTINCT col2 + - CAST ( + - 35 AS INTEGER ) * 16 FROM tab2 AS cor0
----
583
600
618

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT ALL - + COUNT( ALL - col2 ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL - + COUNT ( ALL - col2 ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8583
SELECT ALL - 18 AS col0 FROM tab1 WHERE + CAST( + + col0 AS SIGNED ) IS NULL AND NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8583
SELECT ALL - 18 AS col0 FROM tab1 WHERE + CAST ( + + col0 AS INTEGER ) IS NULL AND NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8584
SELECT ALL 17 DIV - - col1 + + + col2 DIV 97 DIV + col1 FROM tab0
----
0
0
18

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL 17 / - - col1 + + + col2 / 97 / + col1 FROM tab0
----
0
0
18

query I rowsort
SELECT DISTINCT 92 - col0 FROM tab1
----
1
41
7

query I rowsort
SELECT 37 - + 35 FROM tab0
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( col2 ) + 10, + col1 * - 68 col0 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - col1 AS col1, - col2 * - col0 * + col0 AS col1 FROM tab1
----
-14
249696
-47
563108
-5
426275

query I rowsort
SELECT - ( + + 98 ) AS col2 FROM tab0
----
-98
-98
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8590
SELECT + 73 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8590
SELECT + 73 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 FROM tab1 cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT DISTINCT - - 3 * + + col0 FROM tab1 cor0
----
153
255
273

query I rowsort
SELECT - ( + ( - col2 ) ) FROM tab1
----
59
68
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - col1 > ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 * + + col2 + + col2 AS col0 FROM tab1 AS cor0
----
-4800
-4956
-6120

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8596
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8597
SELECT + 52 AS col1, - COUNT( * ) FROM tab0 AS cor0
----
52
-3

skipif mysql # not compatible
query II rowsort label-8597
SELECT + 52 AS col1, - COUNT ( * ) FROM tab0 AS cor0
----
52
-3

onlyif mysql # DIV for integer division: 
query III rowsort label-8598
SELECT DISTINCT + col1 AS col1, col0 DIV 19 * + 2, + col1 FROM tab2 AS cor0
----
9 values hashing to 73b8194ab5cdb4dd00496a7d5b618c2d

skipif mysql # not compatible
query III rowsort label-8598
SELECT DISTINCT + col1 AS col1, col0 / 19 * + 2, + col1 FROM tab2 AS cor0
----
9 values hashing to 73b8194ab5cdb4dd00496a7d5b618c2d

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT DISTINCT - 72 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-8599
SELECT DISTINCT - 72 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT COUNT( * ) * 65 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8600
SELECT COUNT ( * ) * 65 FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL + 59 AS col0 FROM tab0 cor0
----
59
59
59

query II rowsort
SELECT ALL - - col0 AS col2, col1 FROM tab0 WHERE ( ( NULL BETWEEN - - col1 AND NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8603
SELECT col2 + + 98 + - CAST( + - 63 AS SIGNED ) col0 FROM tab2
----
184
201
219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8603
SELECT col2 + + 98 + - CAST ( + - 63 AS INTEGER ) col0 FROM tab2
----
184
201
219

query I rowsort
SELECT + col0 * 11 + col2 FROM tab2
----
529
744
883

query I rowsort
SELECT col2 + - col1 - 68 + 48 * + + 21 AS col1 FROM tab2
----
903
912
931

query I rowsort
SELECT - 66 FROM tab1 cor0 WHERE 0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8607
SELECT DISTINCT * FROM tab0 WHERE NOT + - CAST( + 76 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-8607
SELECT DISTINCT * FROM tab0 WHERE NOT + - CAST ( + 76 AS INTEGER ) = NULL
----

query II rowsort
SELECT 8, col1 AS col0 FROM tab1 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + + 63 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
63

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = 52
----

query I rowsort
SELECT ALL 30 * + col1 AS col1 FROM tab2 AS cor0
----
1530
2010
2310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8612
SELECT - + CAST( + col0 AS SIGNED ) col2 FROM tab2 cor0 WHERE col2 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8612
SELECT - + CAST ( + col0 AS INTEGER ) col2 FROM tab2 cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT - - 69 + - col0 AS col2 FROM tab1 AS cor0
----
-16
-22
18

query I rowsort
SELECT + col2 AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab0 AS cor0 WHERE ( - 31 IN ( 54, 12 / - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT ALL + - SUM( + - 68 ) FROM tab0 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-8616
SELECT ALL + - SUM ( + - 68 ) FROM tab0 AS cor0
----
204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8617
SELECT 45 / + + MAX( + + CAST( NULL AS SIGNED ) ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8617
SELECT 45 / + + MAX ( + + CAST ( NULL AS INTEGER ) ) col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 > 79
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8619
SELECT ALL * FROM tab2 WHERE + CAST( - - col2 AS SIGNED ) IN ( - 9, - col2, - col2, - col0 + + 24 - - col1 )
----

skipif mysql # not compatible
query III rowsort label-8619
SELECT ALL * FROM tab2 WHERE + CAST ( - - col2 AS INTEGER ) IN ( - 9, - col2, - col2, - col0 + + 24 - - col1 )
----

query I rowsort
SELECT + + AVG ( - col2 ) AS col0 FROM tab1 WHERE NOT - col2 >= NULL
----
NULL

query I rowsort
SELECT - 52 * col2 AS col2 FROM tab2 AS cor0
----
-1196
-2080
-3016

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8622
SELECT ALL + + col0 * + 34 AS col0, - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
1564
NULL
2176
NULL
2550
NULL

skipif mysql # not compatible
query II rowsort label-8622
SELECT ALL + + col0 * + 34 AS col0, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
1564
NULL
2176
NULL
2550
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8623
SELECT ALL - - COUNT( * ) * CAST( - 26 AS SIGNED ) FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-8623
SELECT ALL - - COUNT ( * ) * CAST ( - 26 AS INTEGER ) FROM tab2 AS cor0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8624
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8624
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT - 23 + + - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-32

skipif mysql # not compatible
query I rowsort label-8625
SELECT - 23 + + - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-32

query I rowsort
SELECT ALL - col1 * col0 + - + 0 AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query II rowsort label-8627
SELECT DISTINCT - 47 AS col1, MIN( - - 21 ) AS col0 FROM tab1 AS cor0
----
-47
21

skipif mysql # not compatible
query II rowsort label-8627
SELECT DISTINCT - 47 AS col1, MIN ( - - 21 ) AS col0 FROM tab1 AS cor0
----
-47
21

query I rowsort
SELECT ALL 57 FROM tab2 AS cor0 WHERE NULL IS NULL
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT DISTINCT COUNT( * ) + 87 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT COUNT ( * ) + 87 FROM tab2 AS cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8630
SELECT ALL + 0 + - col2 - - col1, - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
-21
NULL
-54
NULL
-82
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8630
SELECT ALL + 0 + - col2 - - col1, - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
-21
NULL
-54
NULL
-82
NULL

query I rowsort
SELECT DISTINCT - col2 + + 49 FROM tab2
----
-9
26
9

query I rowsort
SELECT ALL - 85 * 54 * + - col2 FROM tab1
----
270810
312120
440640

onlyif mysql # DIV for integer division: 
query I rowsort label-8633
SELECT + col0 + - 4 DIV + 91 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8633
SELECT + col0 + - 4 / + 91 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8634
SELECT ALL col2 DIV ( + 99 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL col2 / ( + 99 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8635
SELECT - col0 * col2 * - col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND CAST( NULL AS SIGNED ) + - 77 * + 53
----

skipif mysql # not compatible
query I rowsort label-8635
SELECT - col0 * col2 * - col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND CAST ( NULL AS INTEGER ) + - 77 * + 53
----

query I rowsort
SELECT ALL + col2 + 1 + + 13 - - col0 * 42 * - col2 * + ( + col1 ) AS col2 FROM tab1 AS cor0
----
-1053077
-12215030
-2878738

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT DISTINCT - COUNT( + col1 ) + + 66 * + - COUNT( * ) FROM tab1 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-8637
SELECT DISTINCT - COUNT ( + col1 ) + + 66 * + - COUNT ( * ) FROM tab1 AS cor0
----
-201

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 68 / + + col2 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL < NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 32 - col0 IS NULL
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT - + col1 BETWEEN - col1 AND - + col1
----

query I rowsort
SELECT ALL - + 51 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT - MAX( DISTINCT col0 ) FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8643
SELECT - MAX ( DISTINCT col0 ) FROM tab1 cor0
----
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL AND NOT col0 = + ( ( - + col2 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 > NULL )
----

query II rowsort
SELECT DISTINCT 20, + col1 FROM tab0
----
20
1
20
21
20
81

query II rowsort
SELECT + col2 AS col2, + 52 FROM tab1
----
59
52
68
52
96
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT DISTINCT MAX( DISTINCT + 76 ) FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-8648
SELECT DISTINCT MAX ( DISTINCT + 76 ) FROM tab0 AS cor0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-8649
SELECT ALL - 17 DIV + + col1 FROM tab0 cor0
----
-17
0
0

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL - 17 / + + col1 FROM tab0 cor0
----
-17
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8650
SELECT ALL + 15, CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
15
NULL
15
NULL
15
NULL

skipif mysql # not compatible
query II rowsort label-8650
SELECT ALL + 15, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
15
NULL
15
NULL
15
NULL

query I rowsort
SELECT ALL + col1 * - + col0 + + - 27 FROM tab1 AS cor0 WHERE NOT - ( 45 ) + col1 * ( + 78 ) * - col0 * 44 IS NULL
----
-4304
-452
-741

query I rowsort
SELECT + col1 * - 54 AS col0 FROM tab1
----
-2538
-270
-756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 5 * - col1 col0, col2 + col1 FROM tab1
----
235
115
25
64
70
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8654
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 33 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8654
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 33 FROM tab1
----
NULL

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE + ( - 68 ) IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL - col1 + + + 44 AS col2 FROM tab0 AS cor0
----
-37
23
43

query I rowsort
SELECT 95 + + - 66 * + - 71 FROM tab0
----
4781
4781
4781

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT DISTINCT COUNT( * ) * 35 AS col0 FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-8658
SELECT DISTINCT COUNT ( * ) * 35 AS col0 FROM tab1
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-8659
SELECT ALL - 3 DIV - + 87 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8659
SELECT ALL - 3 / - + 87 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NULL = - + col0
----

query I rowsort
SELECT - col1 + + + 6 FROM tab2
----
-45
-61
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT 36 + MAX( ALL - col2 ) FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-8662
SELECT 36 + MAX ( ALL - col2 ) FROM tab0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8663
SELECT - CAST( + col2 AS SIGNED ) * + col2 + + + 93 + - col1 + + 13 - - - col1 AS col2 FROM tab0
----
-2265
-36
-9697

skipif mysql # not compatible
query I rowsort label-8663
SELECT - CAST ( + col2 AS INTEGER ) * + col2 + + + 93 + - col1 + + 13 - - - col1 AS col2 FROM tab0
----
-2265
-36
-9697

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT DISTINCT 24 * - - COUNT( * ) AS col0 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-8664
SELECT DISTINCT 24 * - - COUNT ( * ) AS col0 FROM tab0
----
72

query I rowsort
SELECT - ( - col2 ) + - - col1 FROM tab2
----
117
125
74

query III rowsort
SELECT * FROM tab0 WHERE - + 91 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8667
SELECT DISTINCT + col1 AS col2, - col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-8667
SELECT DISTINCT + col1 AS col2, - col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8668
SELECT DISTINCT - col1 DIV + 13 FROM tab2
----
-3
-5

skipif mysql # not compatible
query I rowsort label-8668
SELECT DISTINCT - col1 / + 13 FROM tab2
----
-3
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8669
SELECT ALL col1 DIV - col0 * - + ( - + 67 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8669
SELECT ALL col1 / - col0 * - + ( - + 67 ) FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 < - col2 + col1
----
87
21
10
97
1
99

query II rowsort
SELECT DISTINCT - col0 + - 47 * + col0 * + col0 + + 16, + col0 FROM tab0 AS cor0
----
-10574
15
-355814
87
-442304
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT + COUNT( ALL - - 85 ) + - 79 * + - 39 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 / 93 IS NULL
----
3084

skipif mysql # not compatible
query I rowsort label-8673
SELECT + COUNT ( ALL - - 85 ) + - 79 * + - 39 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 / 93 IS NULL
----
3084

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT ALL - MAX( + - col2 ) col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8674
SELECT ALL - MAX ( + - col2 ) col0 FROM tab1 AS cor0
----
59

query I rowsort
SELECT - ( - 22 ) FROM tab0 AS cor0
----
22
22
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8676
SELECT - CAST( NULL AS SIGNED ) AS col2, - MIN( + 53 ) FROM tab0 AS cor0
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-8676
SELECT - CAST ( NULL AS INTEGER ) AS col2, - MIN ( + 53 ) FROM tab0 AS cor0
----
NULL
-53

query II rowsort
SELECT 39 AS col2, + 70 * + col2 FROM tab2 AS cor0
----
39
1610
39
2800
39
4060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8678
SELECT + - CAST( NULL AS SIGNED ) AS col1, SUM( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
NULL
199

skipif mysql # not compatible
query II rowsort label-8678
SELECT + - CAST ( NULL AS INTEGER ) AS col1, SUM ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
NULL
199

query II rowsort
SELECT ALL - 1, + 28 - + col2 AS col0 FROM tab2 AS cor0
----
-1
-12
-1
-30
-1
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8680
SELECT - 9 DIV - col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8680
SELECT - 9 / - col1 FROM tab1
----
0
0
1

query I rowsort
SELECT - col1 + - - col2 AS col1 FROM tab0 WHERE NULL = - col0 - + 93 * + col1 AND - 7 + col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 72 + 53 * + col2, 33 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT DISTINCT - ( - + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8683
SELECT DISTINCT - ( - + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - - col2 ) <> NULL
----

query I rowsort
SELECT DISTINCT - col0 + + 21 AS col2 FROM tab1 AS cor0
----
-30
-64
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT ALL + COUNT( DISTINCT col0 ) FROM tab2 WHERE NOT - 18 <> + - 54
----
0

skipif mysql # not compatible
query I rowsort label-8686
SELECT ALL + COUNT ( DISTINCT col0 ) FROM tab2 WHERE NOT - 18 <> + - 54
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 74 col2, col2 AS col0 FROM tab1 AS cor0
----
74
59
74
68
74
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8688
SELECT COUNT( * ), - SUM( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
3
-185

skipif mysql # not compatible
query II rowsort label-8688
SELECT COUNT ( * ), - SUM ( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
3
-185

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8689
SELECT CAST( NULL AS SIGNED ) AS col0, - col1 AS col0 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-8689
SELECT CAST ( NULL AS INTEGER ) AS col0, - col1 AS col0 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

query I rowsort
SELECT DISTINCT ( - - ( - col1 ) ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT ALL - - COUNT( * ) + - 62 col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8691
SELECT ALL - - COUNT ( * ) + - 62 col2 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT DISTINCT 52 + + 92 + + COUNT( * ) * COUNT( * ) * + COUNT( * ) + - ( - - COUNT( * ) ) FROM tab0 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-8692
SELECT DISTINCT 52 + + 92 + + COUNT ( * ) * COUNT ( * ) * + COUNT ( * ) + - ( - - COUNT ( * ) ) FROM tab0 AS cor0
----
168

query I rowsort
SELECT DISTINCT - col1 + 69 - col2 - + col0 FROM tab0
----
-128
-49
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - + - col2 col0 FROM tab0
----
-11
-34
98

query I rowsort
SELECT 24 * + col0 + + - col1 AS col2 FROM tab2 AS cor0
----
1053
1459
1733

query I rowsort
SELECT - col1 + + 56 + + + 55 FROM tab0 AS cor0
----
110
30
90

query I rowsort
SELECT col1 + + + 55 AS col2 FROM tab0 AS cor0
----
136
56
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - - col0 col1 FROM tab0
----
-77
2
32

query I rowsort
SELECT ALL - 94 * - + col0 * - col2 * - 10 AS col0 FROM tab2 WHERE ( + col2 ) IS NOT NULL
----
2406400
4089000
994520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8700
SELECT + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8700
SELECT + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL > col0 * - 90 AND NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col2 * + - col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT - - 76 * COUNT( * ) FROM tab1 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-8703
SELECT - - 76 * COUNT ( * ) FROM tab1 AS cor0
----
228

query II rowsort
SELECT DISTINCT - col2, - col0 + col0 AS col0 FROM tab0
----
-10
0
-47
0
-99
0

query I rowsort
SELECT 10 FROM tab1 WHERE NOT ( col1 + - + col1 / + 86 ) IS NULL
----
10
10
10

query II rowsort
SELECT DISTINCT - col1, + col2 AS col2 FROM tab0
----
-1
99
-21
10
-81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, col2 + - col0 FROM tab1 AS cor0
----
-59
-26
-68
-23
-96
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 20 + col0 + - col2 col0 FROM tab0
----
115
184
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8709
SELECT DISTINCT + COUNT( ALL 97 ), COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-8709
SELECT DISTINCT + COUNT ( ALL 97 ), COUNT ( * ) FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT ALL + 50 * + + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
450

skipif mysql # not compatible
query I rowsort label-8710
SELECT ALL + 50 * + + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
450

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 77 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8712
SELECT ALL + CAST( - - col0 AS SIGNED ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8712
SELECT ALL + CAST ( - - col0 AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 17 col1 FROM tab1 AS cor0 WHERE - col2 / 84 IS NOT NULL
----
-17
-17
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8714
SELECT 72 * + + CAST( 15 AS SIGNED ) * + col0 * - 34 + + 99 + col0 AS col1 FROM tab1 AS cor0
----
-1872570
-3121016
-3341330

skipif mysql # not compatible
query I rowsort label-8714
SELECT 72 * + + CAST ( 15 AS INTEGER ) * + col0 * - 34 + + 99 + col0 AS col1 FROM tab1 AS cor0
----
-1872570
-3121016
-3341330

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8715
SELECT ALL - - col1 + 53 col0, - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
134
NULL
54
NULL
74
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8715
SELECT ALL - - col1 + 53 col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
134
NULL
54
NULL
74
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( ( - + col1 ), 52 * - - 3 )
----

query I rowsort
SELECT ALL col0 + 51 FROM tab1 cor0
----
102
136
142

query I rowsort
SELECT - - col0 + - col0 + + col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT DISTINCT + COUNT( * ) - 17 AS col0 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-8719
SELECT DISTINCT + COUNT ( * ) - 17 AS col0 FROM tab1
----
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 31 + - col2 * - 53 AS col1, + col0 col2 FROM tab2
----
1250
46
2151
64
3105
75

query I rowsort
SELECT DISTINCT ( - col2 ) + + - col1 AS col1 FROM tab0
----
-100
-128
-31

query I rowsort
SELECT - col2 + - 37 AS col2 FROM tab2
----
-60
-77
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT DISTINCT - SUM( ALL col2 ) + - + 16 FROM tab0
----
-172

skipif mysql # not compatible
query I rowsort label-8723
SELECT DISTINCT - SUM ( ALL col2 ) + - + 16 FROM tab0
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT DISTINCT + COUNT( - 90 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8724
SELECT DISTINCT + COUNT ( - 90 ) col0 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE + 90 + + 77 >= + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 81 - + col1 FROM tab1
----
-128
-86
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT ALL - SUM( ( col0 ) ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-8727
SELECT ALL - SUM ( ( col0 ) ) FROM tab1
----
-227

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * col2 NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT + 57 - - 32 AS col2 FROM tab1 AS cor0
----
89
89
89

query I rowsort
SELECT ALL - + 14 * - + 48 + + col0 AS col2 FROM tab1 AS cor0
----
723
757
763

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 * 94 * - 91 * 77 col0 FROM tab0 AS cor0
----
-16466450
-16466450
-16466450

query I rowsort
SELECT DISTINCT 60 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
60

query I rowsort
SELECT + col2 * + ( - 63 ) AS col2 FROM tab1 cor0
----
-3717
-4284
-6048

query I rowsort
SELECT - 3 * + + col0 FROM tab1 AS cor0
----
-153
-255
-273

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2, + col2 * + + col0 - - - 1 )
----

query I rowsort
SELECT DISTINCT + - col2 * + + col2 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8737
SELECT ALL - 0 DIV - - MIN( DISTINCT - col1 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL - 0 / - - MIN ( DISTINCT - col1 ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT + + COUNT( * ) * + 92 FROM tab2 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-8738
SELECT + + COUNT ( * ) * + 92 FROM tab2 AS cor0
----
276

onlyif mysql # DIV for integer division: 
query I rowsort label-8739
SELECT col1 DIV - col0 * + + 33 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8739
SELECT col1 / - col0 * + + 33 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8740
SELECT - ( - col1 ) * 87 col0 FROM tab2 WHERE NOT + col2 - + CAST( - + col2 AS SIGNED ) IS NULL
----
4437
5829
6699

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8740
SELECT - ( - col1 ) * 87 col0 FROM tab2 WHERE NOT + col2 - + CAST ( - + col2 AS INTEGER ) IS NULL
----
4437
5829
6699

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT ALL + 2 * - COUNT( * ) FROM tab1, tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL + 2 * - COUNT ( * ) FROM tab1, tab1 AS cor0
----
-18

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 89 + - col1 NOT BETWEEN NULL AND col0 * + col1 + 81
----

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT DISTINCT COUNT( * ) * MIN( col0 ) AS col1 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT COUNT ( * ) * MIN ( col0 ) AS col1 FROM tab0
----
45

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 2 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8746
SELECT + col1 DIV - CAST( - + 60 AS SIGNED ) FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8746
SELECT + col1 / - CAST ( - + 60 AS INTEGER ) FROM tab2 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8747
SELECT ALL 71 * - CAST( + 50 AS SIGNED ) + + COUNT( * ) FROM tab2 AS cor0
----
-3547

skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL 71 * - CAST ( + 50 AS INTEGER ) + + COUNT ( * ) FROM tab2 AS cor0
----
-3547

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8748
SELECT col2 * - 50 + CAST( 23 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-2927
-3377
-4777

skipif mysql # not compatible
query I rowsort label-8748
SELECT col2 * - 50 + CAST ( 23 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-2927
-3377
-4777

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT DISTINCT - 60 + - COUNT( * ) FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-8749
SELECT DISTINCT - 60 + - COUNT ( * ) FROM tab1 AS cor0
----
-63

query I rowsort
SELECT + 3 * + + col0 FROM tab1 AS cor0
----
153
255
273

query III rowsort
SELECT * FROM tab0 cor0 WHERE 87 + - col1 + - + col0 * + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8752
SELECT - col1 * + + col0 DIV + col0 FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8752
SELECT - col1 * + + col0 / + col0 FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8753
SELECT ALL CAST( NULL AS DECIMAL ) - - ( - col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8753
SELECT ALL CAST ( NULL AS REAL ) - - ( - col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 WHERE - - 30 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8754
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 WHERE - - 30 IS NULL
----
0

query I rowsort
SELECT DISTINCT - 42 - + - col2 + - - 48 - col1 FROM tab1
----
27
60
88

onlyif mysql # DIV for integer division: 
query I rowsort label-8756
SELECT + + 62 * - - 87 * - + col2 + - - 75 DIV + 90 FROM tab2 WHERE - + col2 IS NOT NULL
----
-124062
-215760
-312852

skipif mysql # not compatible
query I rowsort label-8756
SELECT + + 62 * - - 87 * - + col2 + - - 75 / + 90 FROM tab2 WHERE - + col2 IS NOT NULL
----
-124062
-215760
-312852

query I rowsort
SELECT DISTINCT 94 - + - col1 FROM tab1
----
108
141
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT DISTINCT COUNT( DISTINCT + col0 ) - - + COUNT( * ) col1 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8758
SELECT DISTINCT COUNT ( DISTINCT + col0 ) - - + COUNT ( * ) col1 FROM tab0
----
6

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > - - ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NULL <= + col0
----
0

skipif mysql # not compatible
query I rowsort label-8760
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NULL <= + col0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < 68
----

query I rowsort
SELECT DISTINCT - col0 * - col1 * + - col1 * col1 + - col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-7971696
-805728
-98

query I rowsort
SELECT - col0 * + 55 + - - 67 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT DISTINCT - MAX( - col1 ) * + 59 * - 3 FROM tab2 AS cor0
----
-9027

skipif mysql # not compatible
query I rowsort label-8764
SELECT DISTINCT - MAX ( - col1 ) * + 59 * - 3 FROM tab2 AS cor0
----
-9027

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8765
SELECT DISTINCT + + col1 * + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8765
SELECT DISTINCT + + col1 * + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8766
SELECT + 48 DIV ( + col2 ) DIV 84 + + - col2 + + - 90 * + + col2 FROM tab2
----
-2093
-3640
-5278

skipif mysql # not compatible
query I rowsort label-8766
SELECT + 48 / ( + col2 ) / 84 + + - col2 + + - 90 * + + col2 FROM tab2
----
-2093
-3640
-5278

query I rowsort
SELECT - ( 90 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT DISTINCT + - col0 * 77 AS col2 FROM tab0 AS cor0
----
-1155
-6699
-7469

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8769
SELECT DISTINCT - - COUNT( * ) DIV CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8769
SELECT DISTINCT - - COUNT ( * ) / CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT - col1 * - col0 * - col0 FROM tab0 AS cor0
----
-158949
-18225
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8771
SELECT ALL CAST( NULL AS SIGNED ) / 28 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8771
SELECT ALL CAST ( NULL AS INTEGER ) / 28 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( col2 ) NOT IN ( 29 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8773
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( - 95 AS SIGNED ) * 37 * + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8773
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( - 95 AS INTEGER ) * 37 * + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8774
SELECT DISTINCT - - ( - col0 ) * col1, col2 DIV col1 AS col0 FROM tab0 cor0
----
-1215
0
-1827
0
-97
99

skipif mysql # not compatible
query II rowsort label-8774
SELECT DISTINCT - - ( - col0 ) * col1, col2 / col1 AS col0 FROM tab0 cor0
----
-1215
0
-1827
0
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT DISTINCT - MIN( + 30 ) AS col0 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-8775
SELECT DISTINCT - MIN ( + 30 ) AS col0 FROM tab2 AS cor0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8776
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col2 - - - ( col2 ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8776
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col2 - - - ( col2 ) FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 * - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8778
SELECT COUNT( * ) DIV + - COUNT( * ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8778
SELECT COUNT ( * ) / + - COUNT ( * ) FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT - 46 * + COUNT( * ) col2 FROM tab0
----
-138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8779
SELECT - 46 * + COUNT ( * ) col2 FROM tab0
----
-138

query II rowsort
SELECT ALL ( + 57 ), col1 * + col0 AS col0 FROM tab0
----
57
1215
57
1827
57
97

query I rowsort
SELECT + col2 + col2 + - + 10 FROM tab1
----
108
126
182

query I rowsort
SELECT col1 + 31 FROM tab2
----
108
82
98

query II rowsort
SELECT DISTINCT col2 * - col1 * - col1 * - - col0 AS col1, col0 - - 43 FROM tab2
----
15178240
107
19527150
118
2751858
89

query I rowsort
SELECT + + col1 + - col1 + + col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8785
SELECT ALL * FROM tab1 AS cor0 WHERE + 12 + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8785
SELECT ALL * FROM tab1 AS cor0 WHERE + 12 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 84 + + 89 + - 21 col2 FROM tab0 AS cor0
----
152
152
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8787
SELECT - CAST( + AVG ( ALL + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-8787
SELECT - CAST ( + AVG ( ALL + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-40

query I rowsort
SELECT ALL 47 + + 19 AS col1 FROM tab2
----
66
66
66

query I rowsort
SELECT - 86 * + - col0 AS col0 FROM tab2
----
3956
5504
6450

query I rowsort
SELECT + col1 * - + col0 * 1 AS col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT DISTINCT 32 + COUNT( * ) * + + 11 + + MIN( + col2 ) AS col1 FROM tab1
----
124

skipif mysql # not compatible
query I rowsort label-8791
SELECT DISTINCT 32 + COUNT ( * ) * + + 11 + + MIN ( + col2 ) AS col1 FROM tab1
----
124

query I rowsort
SELECT - 24 * col1 - + ( - col1 ) AS col0 FROM tab2
----
-1173
-1541
-1771

onlyif mysql # aggregate syntax: 
query II rowsort label-8793
SELECT DISTINCT - + 87 AS col1, MAX( + col2 ) FROM tab1 AS cor0
----
-87
96

skipif mysql # not compatible
query II rowsort label-8793
SELECT DISTINCT - + 87 AS col1, MAX ( + col2 ) FROM tab1 AS cor0
----
-87
96

query I rowsort
SELECT ( 67 ) + - - col2 + - 90 AS col2 FROM tab0 AS cor0
----
-13
24
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8795
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 41 * - col0 IN ( + 55 - + + col1, + CAST( + col2 AS SIGNED ), - + 38 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8795
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 41 * - col0 IN ( + 55 - + + col1, + CAST ( + col2 AS INTEGER ), - + 38 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 68 + 79 AS col0 FROM tab1 AS cor0
----
147
147
147

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8797
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * col2 * - col0 BETWEEN - col2 * + + CAST( NULL AS SIGNED ) / - col1 * + col0 * - 47 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8797
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * col2 * - col0 BETWEEN - col2 * + + CAST ( NULL AS INTEGER ) / - col1 * + col0 * - 47 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN NULL AND ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * + col2 AS col1 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT col0 + col0 + - col1 * + col1 * + col0 * - - col0 * - + col1 FROM tab2 AS cor0
----
1691792025
1869959296
280689608

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT DISTINCT - COUNT( * ) + - 47 * + 40 FROM tab1 AS cor0
----
-1883

skipif mysql # not compatible
query I rowsort label-8801
SELECT DISTINCT - COUNT ( * ) + - 47 * + 40 FROM tab1 AS cor0
----
-1883

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT ( + MAX( ALL - 17 ) ) FROM tab2 cor0
----
-17

skipif mysql # not compatible
query I rowsort label-8802
SELECT ( + MAX ( ALL - 17 ) ) FROM tab2 cor0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8803
SELECT DISTINCT + CAST( - 77 AS SIGNED ) - col1 FROM tab2
----
-128
-144
-154

skipif mysql # not compatible
query I rowsort label-8803
SELECT DISTINCT + CAST ( - 77 AS INTEGER ) - col1 FROM tab2
----
-128
-144
-154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab0 WHERE ( 40 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT DISTINCT MIN( ALL - ( - - ( + - 68 ) ) ) FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-8805
SELECT DISTINCT MIN ( ALL - ( - - ( + - 68 ) ) ) FROM tab1
----
68

query II rowsort
SELECT DISTINCT - col1, + col1 AS col1 FROM tab0
----
-1
1
-21
21
-81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab1 AS cor0 WHERE NOT 15 / col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8808
SELECT + CAST( NULL AS SIGNED ) AS col1, col1 AS col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-8808
SELECT + CAST ( NULL AS INTEGER ) AS col1, col1 AS col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8809
SELECT ALL col1, + CAST( NULL AS SIGNED ) / - col2 col1 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8809
SELECT ALL col1, + CAST ( NULL AS INTEGER ) / - col2 col1 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8810
SELECT - - CAST( + col2 AS SIGNED ) AS col0 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8810
SELECT - - CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8811
SELECT - + col2 AS col0, - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-8811
SELECT - + col2 AS col0, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8812
SELECT + col2 AS col0, + ( - 43 ) + ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-8812
SELECT + col2 AS col0, + ( - 43 ) + ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < ( + 71 )
----

query II rowsort
SELECT DISTINCT + col2 * + 64 AS col0, col2 AS col1 FROM tab2
----
1472
23
2560
40
3712
58

query III rowsort
SELECT * FROM tab0 WHERE NOT + 93 NOT BETWEEN - col2 AND - - col1
----

query I rowsort
SELECT 27 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT DISTINCT - 82 * 73 AS col1 FROM tab1
----
-5986

query II rowsort
SELECT DISTINCT col2 * col2 AS col1, - col1 AS col1 FROM tab0 AS cor0
----
100
-21
2209
-81
9801
-1

query II rowsort
SELECT ALL col0 + + 11 AS col1, 41 AS col0 FROM tab2 AS cor0
----
57
41
75
41
86
41

onlyif mysql # DIV for integer division: 
query I rowsort label-8820
SELECT DISTINCT - 82 DIV + 83 + + 91 * - 70 * 33 + col2 FROM tab1 AS cor0
----
-210114
-210142
-210151

skipif mysql # not compatible
query I rowsort label-8820
SELECT DISTINCT - 82 / + 83 + + 91 * - 70 * 33 + col2 FROM tab1 AS cor0
----
-210114
-210142
-210151

query I rowsort
SELECT - 49 * col2 * - col0 * - col0 AS col1 FROM tab1 AS cor0
----
-12235104
-20887475
-27592292

query I rowsort
SELECT ALL + col0 * + 3 + col1 AS col1 FROM tab0
----
126
282
292

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 21 col2, col2 * - 25 FROM tab0
----
-21
-1175
-21
-2475
-21
-250

query I rowsort
SELECT + ( - 66 ) FROM tab2
----
-66
-66
-66

query III rowsort
SELECT * FROM tab0 WHERE + ( - col0 ) NOT BETWEEN NULL AND + 7
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8826
SELECT ALL + COUNT( * ) + - + 14 DIV + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL + COUNT ( * ) + - + 14 / + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT col2 + + 33 * ( col0 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1779
2864
3071

query I rowsort
SELECT - 89 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT + col0 BETWEEN 13 + col1 AND col0 )
----

query I rowsort
SELECT ALL + + ( + 95 ) FROM tab2 AS cor0 WHERE NOT ( - 1 ) >= ( NULL )
----

query I rowsort
SELECT ALL - - 60 AS col1 FROM tab2 AS cor0
----
60
60
60

query I rowsort
SELECT - + col0 * - + ( - col2 ) FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-8833
SELECT + col2 DIV ( col2 ) + 78 * col1 AS col2 FROM tab2 AS cor0
----
3979
5227
6007

skipif mysql # not compatible
query I rowsort label-8833
SELECT + col2 / ( col2 ) + 78 * col1 AS col2 FROM tab2 AS cor0
----
3979
5227
6007

query I rowsort
SELECT 73 - + col2 AS col0 FROM tab0 AS cor0
----
-26
26
63

onlyif mysql # DIV for integer division: 
query I rowsort label-8835
SELECT ALL - - col2 + - col0 - - col1 DIV + 10 FROM tab2 AS cor0
----
-11
-17
-18

skipif mysql # not compatible
query I rowsort label-8835
SELECT ALL - - col2 + - col0 - - col1 / + 10 FROM tab2 AS cor0
----
-11
-17
-18

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT + col0 + 26 > - 83
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8837
SELECT ALL - COUNT( * ) AS col0 FROM tab0 WHERE NULL BETWEEN - - col1 + - + CAST( NULL AS SIGNED ) * - col1 * 63 AND 76 * - ( + col2 ) + - col1 * - - 70
----
0

skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 WHERE NULL BETWEEN - - col1 + - + CAST ( NULL AS INTEGER ) * - col1 * 63 AND 76 * - ( + col2 ) + - col1 * - - 70
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 NOT IN ( - col0, - col0, col2, + col0 )
----

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT - + 85 IS NULL
----
46
64
75

query II rowsort
SELECT ALL col0, 24 AS col1 FROM tab2
----
46
24
64
24
75
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT - COUNT( + 50 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8842
SELECT - COUNT ( + 50 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT - - COUNT( col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8843
SELECT - - COUNT ( col1 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > - - 11 * + + col0 + 21
----

query I rowsort
SELECT ALL - + 31 * - col2 * + 46 - + col0 FROM tab2 AS cor0
----
32752
56976
82633

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 = - 86 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT ALL 30 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL 30 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
33

query II rowsort
SELECT ALL + col2 AS col0, col0 AS col2 FROM tab1 cor0
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT DISTINCT - - COUNT( * ) + + COUNT( * ) + + 76 * - 86 AS col1 FROM tab2 cor0
----
-6530

skipif mysql # not compatible
query I rowsort label-8849
SELECT DISTINCT - - COUNT ( * ) + + COUNT ( * ) + + 76 * - 86 AS col1 FROM tab2 cor0
----
-6530

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 = + col1 + - col1 + col0 - - 8 * col0
----

query I rowsort
SELECT DISTINCT - col1 * - + ( + + col2 ) + + 25 AS col2 FROM tab1
----
1369
320
3221

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT + 72 + - ( MIN( DISTINCT - col1 ) ) + MAX( - col2 ) AS col2 FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-8852
SELECT + 72 + - ( MIN ( DISTINCT - col1 ) ) + MAX ( - col2 ) AS col2 FROM tab2
----
126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + + + col1, col0 col1 FROM tab0
----
-66
87
-96
97
66
15

query I rowsort
SELECT ALL - 69 * + - col1 FROM tab2
----
3519
4623
5313

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + + col1 + + col0 col0 FROM tab0
----
-354
-6546
96

query I rowsort
SELECT col0 + - - col1 * - col0 * - col1 FROM tab1
----
10047
201110
2210

query I rowsort
SELECT ALL + 43 * + + ( col2 ) FROM tab1
----
2537
2924
4128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 18 col0 FROM tab0 AS cor0
----
105
115
33

query I rowsort
SELECT DISTINCT ( col0 ) * - col2 FROM tab0 AS cor0
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 30 * - col0 <> - 17
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8861
SELECT + - 84 DIV - - CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-4
-84

skipif mysql # not compatible
query I rowsort label-8861
SELECT + - 84 / - - CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-4
-84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8862
SELECT - ( - + 78 ) / + ( CAST( NULL AS DECIMAL ) ) * COUNT( * ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8862
SELECT - ( - + 78 ) / + ( CAST ( NULL AS REAL ) ) * COUNT ( * ) col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8863
SELECT + col0 * + 37 / - CAST( NULL AS SIGNED ) + - + col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8863
SELECT + col0 * + 37 / - CAST ( NULL AS INTEGER ) + - + col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 12 * - col0 * 63 * col0 FROM tab1
----
1966356
5462100
6260436

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8865
SELECT DISTINCT - 36 DIV + + COUNT( + 19 ) AS col2 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-8865
SELECT DISTINCT - 36 / + + COUNT ( + 19 ) AS col2 FROM tab2
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-8866
SELECT DISTINCT col0 DIV + - 76 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-8866
SELECT DISTINCT col0 / + - 76 AS col1 FROM tab1
----
-1
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 73 + + + col0 >= 80
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8868
SELECT ALL * FROM tab2 WHERE - CAST( NULL AS DECIMAL ) * - 83 * col0 / 66 * - + 52 * 94 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8868
SELECT ALL * FROM tab2 WHERE - CAST ( NULL AS REAL ) * - 83 * col0 / 66 * - + 52 * 94 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 + - + col2 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8870
SELECT col1, + col1 * col2 DIV - col1 FROM tab1
----
14
-96
47
-68
5
-59

skipif mysql # not compatible
query II rowsort label-8870
SELECT col1, + col1 * col2 / - col1 FROM tab1
----
14
-96
47
-68
5
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8871
SELECT - COUNT( * ) - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT ( NOT ( NULL ) IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8871
SELECT - COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT ( NOT ( NULL ) IS NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT - 23 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-8872
SELECT - 23 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT COUNT( * ) + - - COUNT( + 30 ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8873
SELECT COUNT ( * ) + - - COUNT ( + 30 ) FROM tab2 AS cor0
----
6

query I rowsort
SELECT DISTINCT + + 96 * + col2 + - 91 AS col0 FROM tab1 AS cor0
----
5573
6437
9125

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 NOT IN ( - col1 * ( - - col2 ) * - col1 - - ( + - 8 ) + - 88 + + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( + 72 ) FROM tab1 cor0
----
72
72
72

query I rowsort
SELECT DISTINCT - ( - - 74 ) FROM tab1 AS cor0
----
-74

query I rowsort
SELECT DISTINCT - col0 + - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-528
-6576
-98

query I rowsort
SELECT ALL + + col2 * col2 + col1 * col2 + + ( + ( col1 ) ) FROM tab0 AS cor0
----
331
6097
9901

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT ( SUM( ALL col2 ) ) col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8880
SELECT ( SUM ( ALL col2 ) ) col0 FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8881
SELECT DISTINCT + col0 * + col1 + + ( + - 63 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8881
SELECT DISTINCT + col0 * + col1 + + ( + - 63 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT + MAX( ( + col0 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8882
SELECT + MAX ( ( + col0 ) ) FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT ALL - COUNT( * ) * - COUNT( * ) + 53 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-8883
SELECT ALL - COUNT ( * ) * - COUNT ( * ) + 53 FROM tab1
----
62

query II rowsort
SELECT ALL - col0 AS col1, col0 * 52 AS col0 FROM tab0
----
-15
780
-87
4524
-97
5044

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT - COUNT( * ) * + ( + MIN( - - 62 ) ) - - 67 FROM tab1
----
-119

skipif mysql # not compatible
query I rowsort label-8885
SELECT - COUNT ( * ) * + ( + MIN ( - - 62 ) ) - - 67 FROM tab1
----
-119

onlyif mysql # aggregate syntax: 
query II rowsort label-8886
SELECT ALL SUM( + col0 ), ( - 71 ) AS col2 FROM tab1 AS cor0
----
227
-71

skipif mysql # not compatible
query II rowsort label-8886
SELECT ALL SUM ( + col0 ), ( - 71 ) AS col2 FROM tab1 AS cor0
----
227
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8887
SELECT 34 + + COUNT( * ) DIV + 90 AS col0 FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-8887
SELECT 34 + + COUNT ( * ) / + 90 AS col0 FROM tab1 AS cor0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8888
SELECT DISTINCT - + ( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8888
SELECT DISTINCT - + ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8889
SELECT DISTINCT + 56 * col1 DIV + col1 + - col1 AS col1 FROM tab2 AS cor0
----
-11
-21
5

skipif mysql # not compatible
query I rowsort label-8889
SELECT DISTINCT + 56 * col1 / + col1 + - col1 AS col1 FROM tab2 AS cor0
----
-11
-21
5

query II rowsort
SELECT - ( + + col1 ) AS col0, - col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8891
SELECT ALL - + 17 * + - col0 * - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8891
SELECT ALL - + 17 * + - col0 * - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col0 * - col1, - col2 AS col2 FROM tab0 AS cor0
----
-1215
-47
-1827
-10
-97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT - + MAX( 1 ) * ( 51 ) FROM tab0 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8893
SELECT - + MAX ( 1 ) * ( 51 ) FROM tab0 cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT - + 83 * COUNT( * ) + 46 + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-200

skipif mysql # not compatible
query I rowsort label-8894
SELECT - + 83 * COUNT ( * ) + 46 + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-200

onlyif mysql # DIV for integer division: 
query I rowsort label-8895
SELECT DISTINCT - 76 DIV + col0 AS col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-8895
SELECT DISTINCT - 76 / + col0 AS col2 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT 64 * COUNT( * ) AS col2 FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-8896
SELECT 64 * COUNT ( * ) AS col2 FROM tab0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT DISTINCT - COUNT( - + col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8897
SELECT DISTINCT - COUNT ( - + col1 ) FROM tab0
----
-3

query I rowsort
SELECT + 60 * col0 AS col0 FROM tab2
----
2760
3840
4500

query I rowsort
SELECT + ( ( + + col1 ) ) FROM tab0
----
1
21
81

query I rowsort
SELECT - + col1 AS col1 FROM tab0 WHERE NOT - col1 + col0 IS NULL
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-8901
SELECT 79 DIV col0 AS col1 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-8901
SELECT 79 / col0 AS col1 FROM tab0
----
0
0
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col1 / ( + 38 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 80 * - 60 <> col0 + - col1
----

query I rowsort
SELECT - 73 FROM tab1 AS cor0 WHERE NOT col1 IN ( + col0, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT COUNT( * ) + MAX( - ( col1 ) - 9 ) AS col2 FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-8905
SELECT COUNT ( * ) + MAX ( - ( col1 ) - 9 ) AS col2 FROM tab1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT ALL COUNT( * ) + 44 AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL COUNT ( * ) + 44 AS col2 FROM tab1
----
47

query III rowsort
SELECT * FROM tab1 WHERE NOT 22 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( 56 * - 60 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 75 FROM tab2 WHERE NOT + 10 NOT IN ( - col1 / 18 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT ALL COUNT( * ) col1 FROM tab0 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8910
SELECT ALL COUNT ( * ) col1 FROM tab0 WHERE NOT col2 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8911
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 <= col2 * CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8911
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 <= col2 * CAST ( col1 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8912
SELECT - CAST( - col0 AS SIGNED ) AS col1 FROM tab1 WHERE NOT ( col0 ) - col1 * col1 IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8912
SELECT - CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 WHERE NOT ( col0 ) - col1 * col1 IS NULL
----
51
85
91

query I rowsort
SELECT - col2 * - col2 + col1 AS col2 FROM tab0
----
121
2290
9802

query III rowsort
SELECT * FROM tab2 WHERE NULL = ( + 61 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT ALL SUM( - ( - col1 ) ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-8916
SELECT ALL SUM ( - ( - col1 ) ) AS col2 FROM tab2
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8917
SELECT DISTINCT * FROM tab1 WHERE NOT col1 NOT BETWEEN 40 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8917
SELECT DISTINCT * FROM tab1 WHERE NOT col1 NOT BETWEEN 40 AND - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE 92 = col2 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT + 11 * + COUNT( * ) AS col1 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-8919
SELECT + 11 * + COUNT ( * ) AS col1 FROM tab1
----
33

query I rowsort
SELECT DISTINCT col0 - - 46 * 95 FROM tab2 WHERE ( ( col1 ) ) NOT IN ( col1 + - col1 )
----
4416
4434
4445

query I rowsort
SELECT col2 * + 99 AS col0 FROM tab2
----
2277
3960
5742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 * col1 col1 FROM tab1
----
1457
155
434

query I rowsort
SELECT ALL - 55 * - col2 AS col2 FROM tab0
----
2585
5445
550

query I rowsort
SELECT ALL col2 + col1 FROM tab1 WHERE ( + col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8925
SELECT 1 * col0 + + col1 DIV col0 FROM tab2
----
47
65
75

skipif mysql # not compatible
query I rowsort label-8925
SELECT 1 * col0 + + col1 / col0 FROM tab2
----
47
65
75

query III rowsort
SELECT * FROM tab2 WHERE 92 = 98
----

query I rowsort
SELECT + 35 * col2 AS col1 FROM tab0
----
1645
3465
350

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - col2 AND - col2 + - col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND ( - 87 * 34 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT + COUNT( * ) * + 20 col1 FROM tab2
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8930
SELECT + COUNT ( * ) * + 20 col1 FROM tab2
----
60

query I rowsort
SELECT ALL ( - 88 ) AS col0 FROM tab1 WHERE NOT ( - col1 ) IN ( - col2 + + col0 )
----
-88
-88
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-8932
SELECT ALL - col2 DIV - 17 AS col1 FROM tab1
----
3
4
5

skipif mysql # not compatible
query I rowsort label-8932
SELECT ALL - col2 / - 17 AS col1 FROM tab1
----
3
4
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8933
SELECT 21 FROM tab0 WHERE 26 - CAST( CAST( + col1 AS SIGNED ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8933
SELECT 21 FROM tab0 WHERE 26 - CAST ( CAST ( + col1 AS INTEGER ) AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8934
SELECT ALL + col1 DIV - 99 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8934
SELECT ALL + col1 / - 99 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT ALL ( COUNT( ALL + col2 ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8935
SELECT ALL ( COUNT ( ALL + col2 ) ) AS col0 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 59 * + ( - 73 ) - 67 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * 12 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab0 AS cor0 WHERE - col0 / - 29 IS NULL
----

query I rowsort
SELECT ALL 12 * 19 AS col2 FROM tab0 AS cor0
----
228
228
228

query I rowsort
SELECT + col1 * 70 - + ( + 62 ) AS col1 FROM tab1 AS cor0
----
288
3228
918

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE - col0 + - ( - col2 + - col2 ) BETWEEN ( + col1 * 1 ) AND NULL
----

query I rowsort
SELECT 93 FROM tab1 WHERE NOT NULL IS NOT NULL
----
93
93
93

query I rowsort
SELECT 84 * - 25 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 10218a2a4c99eb39ed03b5d70f638acf

query I rowsort
SELECT ALL 7 FROM tab2 cor0 CROSS JOIN tab0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 82 AND col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8946
SELECT + COUNT( * ) + AVG ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IN ( col2 * + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8946
SELECT + COUNT ( * ) + AVG ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IN ( col2 * + col0 )
----
NULL

query I rowsort
SELECT - 86 / col0 FROM tab0 AS cor0 WHERE NOT - ( - ( + 74 ) ) / 34 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8948
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * + 76 + col2 * CAST( NULL AS SIGNED ) BETWEEN NULL AND 24 + - col0
----

skipif mysql # not compatible
query III rowsort label-8948
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * + 76 + col2 * CAST ( NULL AS INTEGER ) BETWEEN NULL AND 24 + - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 67 / + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN 51 AND + 52
----

query I rowsort
SELECT + 58 * - 6 FROM tab2 AS cor0
----
-348
-348
-348

query I rowsort
SELECT 84 * + + col1 * + 88 FROM tab1
----
103488
347424
36960

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT ALL ( - MIN( col0 ) ) col2 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8954
SELECT ALL ( - MIN ( col0 ) ) col2 FROM tab0
----
-15

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN col2 AND ( ( + col0 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8956
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) * - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-8956
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) * - COUNT ( * ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8957
SELECT DISTINCT + + COUNT( * ) DIV COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8957
SELECT DISTINCT + + COUNT ( * ) / COUNT ( * ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - + col2 * col1 + 54 FROM tab2 AS cor0
----
-1119
-3026
-3832

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8959
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8959
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + + col1 + + col2 * + col0 col2 FROM tab1 cor0
----
4814
4961
6167

onlyif mysql # DIV for integer division: 
query I rowsort label-8961
SELECT + - col0 DIV + ( ( col0 ) ) + col0 FROM tab1 cor0
----
50
84
90

skipif mysql # not compatible
query I rowsort label-8961
SELECT + - col0 / + ( ( col0 ) ) + col0 FROM tab1 cor0
----
50
84
90

query I rowsort
SELECT + col2 / col1 + - col2 AS col2 FROM tab2 WHERE col0 * + 65 - + col0 / col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col1 * + 61 FROM tab1
----
2867
305
854

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> ( col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - ( - - col2 ) * + col1 + + col2 > NULL
----

query I rowsort
SELECT ALL ( - + col0 ) * - - ( - col2 ) FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT DISTINCT 88 + - - 98 + - col2 * col2 AS col1 FROM tab1 AS cor0
----
-3295
-4438
-9030

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT - SUM( DISTINCT + + col1 ) * 54 + 95 FROM tab1 AS cor0
----
-3469

skipif mysql # not compatible
query I rowsort label-8968
SELECT - SUM ( DISTINCT + + col1 ) * 54 + 95 FROM tab1 AS cor0
----
-3469

onlyif mysql # DIV for integer division: 
query I rowsort label-8969
SELECT DISTINCT - + 58 DIV + 73 - col0 col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8969
SELECT DISTINCT - + 58 / + 73 - col0 col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT + 98 * 49 AS col2 FROM tab2 AS cor0
----
4802
4802
4802

onlyif mysql # DIV for integer division: 
query I rowsort label-8971
SELECT - col0 DIV + 92 * col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8971
SELECT - col0 / + 92 * col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8972
SELECT + + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8972
SELECT + + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND 0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col2 + + col1 ) IS NULL
----

query I rowsort
SELECT ALL col0 - - - col2 FROM tab1
----
-45
23
26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8976
SELECT ALL col1 * - col1 / + col1 * + - CAST( NULL AS DECIMAL ) * col1 - + CAST( NULL AS DECIMAL ) 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-8976
SELECT ALL col1 * - col1 / + col1 * + - CAST ( NULL AS REAL ) * col1 - + CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 - col0 FROM tab1 AS cor0 WHERE ( NULL < NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab2 WHERE NOT NULL <> col2 * - - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col0 * - 94 - + col2 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - + col2 + + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 83 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT ( 85 + - + col0 - + - col1 ) IS NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8983
SELECT * FROM tab2 cor0 WHERE NULL IS NOT NULL AND CAST( + col1 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8983
SELECT * FROM tab2 cor0 WHERE NULL IS NOT NULL AND CAST ( + col1 AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT + + MAX( ALL + 44 ) FROM tab1 cor0
----
44

skipif mysql # not compatible
query I rowsort label-8984
SELECT + + MAX ( ALL + 44 ) FROM tab1 cor0
----
44

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE NULL <= col0
----

query II rowsort
SELECT - - 59 AS col1, col2 AS col1 FROM tab1 AS cor0
----
59
59
59
68
59
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8987
SELECT DISTINCT CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8987
SELECT DISTINCT CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + ( col2 ) * + + col2 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT SUM( DISTINCT - + col0 ) * + COUNT( * ) FROM tab0
----
-597

skipif mysql # not compatible
query I rowsort label-8989
SELECT SUM ( DISTINCT - + col0 ) * + COUNT ( * ) FROM tab0
----
-597

query I rowsort
SELECT - col2 * + col2 + + ( - col1 ) * col1 + - col0 AS col0 FROM tab2
----
-3176
-7593
-7928

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 IN ( + col0, + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8992
SELECT DISTINCT + 65 + - - 48 DIV col2 AS col2 FROM tab2
----
65
66
67

skipif mysql # not compatible
query I rowsort label-8992
SELECT DISTINCT + 65 + - - 48 / col2 AS col2 FROM tab2
----
65
66
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8993
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + + col0 <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8993
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + + col0 <> - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 49 * - - col2 + - + col1 FROM tab0 cor0
----
2222
469
4850

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT + - MIN( DISTINCT + 95 ) AS col2 FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-8995
SELECT + - MIN ( DISTINCT + 95 ) AS col2 FROM tab0 AS cor0
----
-95

query I rowsort
SELECT - - 28 AS col1 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - AVG ( - col0 ) ) col2 FROM tab2 AS cor0 WHERE + 25 >= NULL
----
NULL

query I rowsort
SELECT + - 58 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8999
SELECT DISTINCT CAST( ( + - col0 ) AS SIGNED ) AS col2 FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8999
SELECT DISTINCT CAST ( ( + - col0 ) AS INTEGER ) AS col2 FROM tab0 cor0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 - 67 col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( + col0 )
----

query I rowsort
SELECT - ( + 14 ) + + 81 FROM tab0 cor0
----
67
67
67

query I rowsort
SELECT DISTINCT - + 50 FROM tab1 cor0
----
-50

query I rowsort
SELECT 58 + - 22 * + + 32 FROM tab2 AS cor0
----
-646
-646
-646

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + + col2 * - col0 col0 FROM tab1
----
-4800
-4956
-6120

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > 12 + - + col2 * + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9006
SELECT - col1 DIV + 79 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9006
SELECT - col1 / + 79 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE - col2 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT ALL - - COUNT( * ) + MAX( + 50 ) AS col1 FROM tab1 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL - - COUNT ( * ) + MAX ( + 50 ) AS col1 FROM tab1 WHERE NULL >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT MIN( DISTINCT - col0 ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-9009
SELECT MIN ( DISTINCT - col0 ) AS col0 FROM tab2
----
-75

query III rowsort
SELECT * FROM tab0 WHERE - 23 NOT BETWEEN - col0 * + col2 * - 50 AND + + col1 + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, col2 AS col2 FROM tab0 cor0
----
15
47
87
10
97
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT + COUNT( + 7 ) * + 54 FROM tab0 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-9013
SELECT + COUNT ( + 7 ) * + 54 FROM tab0 AS cor0
----
162

query I rowsort
SELECT - - 41 FROM tab2 WHERE NOT NULL = + ( + col0 )
----

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT - - col0 * - col2 + - 98 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 34 IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-9016
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 34 IS NULL
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 * + 23 * + + col1 * - + col0 NOT IN ( - col2 + - col0 ) )
----

query I rowsort
SELECT 25 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT - COUNT( ALL col0 ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9019
SELECT - COUNT ( ALL col0 ) AS col1 FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9020
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE + CAST( 56 AS SIGNED ) + - col0 >= ( - col1 )
----
68
96

skipif mysql # not compatible
query I rowsort label-9020
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE + CAST ( 56 AS INTEGER ) + - col0 >= ( - col1 )
----
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9021
SELECT - - AVG ( ALL CAST( NULL AS SIGNED ) ) * + MIN( + 39 ), - SUM( - col2 ) DIV + CAST( + COUNT( * ) AS SIGNED ) + - 10 AS col1 FROM tab1 AS cor0
----
NULL
64

skipif mysql # not compatible
query II rowsort label-9021
SELECT - - AVG ( ALL CAST ( NULL AS INTEGER ) ) * + MIN ( + 39 ), - SUM ( - col2 ) / + CAST ( + COUNT ( * ) AS INTEGER ) + - 10 AS col1 FROM tab1 AS cor0
----
NULL
64

query I rowsort
SELECT ALL - col2 * col2 * - - 80 + + + col0 * - 24 AS col2 FROM tab2 AS cor0
----
-129536
-270920
-43424

onlyif mysql # DIV for integer division: 
query I rowsort label-9023
SELECT + col1 * col1 + + col1 DIV + 85 * - col2 FROM tab2 AS cor0
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-9023
SELECT + col1 * col1 + + col1 / + 85 * - col2 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT COUNT( + - 90 ) * + 92 AS col1 FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-9024
SELECT COUNT ( + - 90 ) * + 92 AS col1 FROM tab1
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT + COUNT( * ) * - 39 FROM tab1 WHERE NOT NULL NOT IN ( + 14 )
----
0

skipif mysql # not compatible
query I rowsort label-9025
SELECT + COUNT ( * ) * - 39 FROM tab1 WHERE NOT NULL NOT IN ( + 14 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9026
SELECT + CAST( - 59 AS SIGNED ) AS col0 FROM tab2
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-9026
SELECT + CAST ( - 59 AS INTEGER ) AS col0 FROM tab2
----
-59
-59
-59

query I rowsort
SELECT DISTINCT - col2 * + - 29 AS col0 FROM tab2
----
1160
1682
667

query I rowsort
SELECT ALL col0 * - 60 * - col2 * + - 11 + + - col1 + col2 FROM tab0
----
-465334
-574211
-6337882

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 77 + + + col1 + ( - 10 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 7 + - + col0 col2 FROM tab2 AS cor0
----
-53
-71
-82

query I rowsort
SELECT ALL col2 + 1 AS col2 FROM tab1 AS cor0
----
60
69
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT - + COUNT( * ) + 23 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-9032
SELECT - + COUNT ( * ) + 23 FROM tab0 AS cor0
----
20

query I rowsort
SELECT ALL - col2 + - + ( - col0 ) FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT DISTINCT + - 19 AS col1 FROM tab1 cor0
----
-19

query I rowsort
SELECT - col1 * col1 * - col0 * col2 AS col2 FROM tab1 AS cor0
----
125375
13669292
959616

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9036
SELECT * FROM tab2 AS cor0 WHERE NULL <= - CAST( - 4 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9036
SELECT * FROM tab2 AS cor0 WHERE NULL <= - CAST ( - 4 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT 12 * + SUM( + - 64 ) FROM tab2 cor0
----
-2304

skipif mysql # not compatible
query I rowsort label-9037
SELECT 12 * + SUM ( + - 64 ) FROM tab2 cor0
----
-2304

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-9038
SELECT + + col0 AS col0, ( - 94 ) + - col0, + 37 DIV - CAST( - - 50 AS SIGNED ) AS col1 FROM tab1 cor0
----
9 values hashing to 6b9418b5b57aea1855031e190cade1ec

skipif mysql # not compatible
query III rowsort label-9038
SELECT + + col0 AS col0, ( - 94 ) + - col0, + 37 / - CAST ( - - 50 AS INTEGER ) AS col1 FROM tab1 cor0
----
9 values hashing to 6b9418b5b57aea1855031e190cade1ec

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-1
-21
-81

query I rowsort
SELECT + ( col1 ) - 46 FROM tab2 AS cor0
----
21
31
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9041
SELECT ALL COUNT( * ) + + 71 AS col0, 3 AS col0 FROM tab0
----
74
3

skipif mysql # not compatible
query II rowsort label-9041
SELECT ALL COUNT ( * ) + + 71 AS col0, 3 AS col0 FROM tab0
----
74
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < col0 + col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT DISTINCT + SUM( + + 79 ) col2 FROM tab1
----
237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9043
SELECT DISTINCT + SUM ( + + 79 ) col2 FROM tab1
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9044
SELECT DISTINCT CAST( + 11 AS SIGNED ) col0 FROM tab1
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9044
SELECT DISTINCT CAST ( + 11 AS INTEGER ) col0 FROM tab1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9045
SELECT ALL 41 AS col2 FROM tab0 WHERE + + CAST( NULL AS SIGNED ) IN ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-9045
SELECT ALL 41 AS col2 FROM tab0 WHERE + + CAST ( NULL AS INTEGER ) IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9046
SELECT - + CAST( NULL AS SIGNED ) + + col0 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9046
SELECT - + CAST ( NULL AS INTEGER ) + + col0 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + + col2 col1 FROM tab1 AS cor0
----
-3481
-4624
-9216

query I rowsort
SELECT + + col0 * - ( + 84 ) AS col1 FROM tab2 AS cor0
----
-3864
-5376
-6300

query I rowsort
SELECT + + 33 * + - 97 - - - 54 + + col1 AS col1 FROM tab0 cor0
----
-3174
-3234
-3254

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT ALL + - MAX( ALL 82 ) * + - MIN( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-8118

skipif mysql # not compatible
query I rowsort label-9050
SELECT ALL + - MAX ( ALL 82 ) * + - MIN ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-8118

query I rowsort
SELECT 0 * + - 19 * - col2 * + + col2 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT + COUNT( ALL ( - - ( - - col0 ) ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9052
SELECT + COUNT ( ALL ( - - ( - - col0 ) ) ) AS col0 FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - - 95 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT + + MIN( col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9054
SELECT + + MIN ( col0 ) FROM tab0 AS cor0
----
15

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 53 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 92 * - 32 + 22 + 81 col2 FROM tab1 AS cor0
----
3047
3047
3047

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT + - COUNT( * ) + + 3 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9057
SELECT + - COUNT ( * ) + + 3 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col0 FROM tab1 WHERE NOT NULL BETWEEN - col2 + - col2 + + + col0 AND + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT - 75 + COUNT( * ) AS col2 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-9059
SELECT - 75 + COUNT ( * ) AS col2 FROM tab1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT 50 * - COUNT( * ) + - + 69 AS col2 FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-9060
SELECT 50 * - COUNT ( * ) + - + 69 AS col2 FROM tab1
----
-219

query I rowsort
SELECT + col1 + - ( + col2 ) AS col0 FROM tab0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT ALL MIN( 31 ) AS col1 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-9062
SELECT ALL MIN ( 31 ) AS col1 FROM tab0
----
31

query I rowsort
SELECT - col2 FROM tab0 WHERE + col1 * + - col2 - - + col1 IS NOT NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9064
SELECT - col0 + - CAST( 63 AS SIGNED ) * + col2 - + 93 FROM tab1
----
-3895
-4468
-6192

skipif mysql # not compatible
query I rowsort label-9064
SELECT - col0 + - CAST ( 63 AS INTEGER ) * + col2 - + 93 FROM tab1
----
-3895
-4468
-6192

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9065
SELECT + 88 + - 59 + + + 96 - CAST( NULL AS DECIMAL ) * + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9065
SELECT + 88 + - 59 + + + 96 - CAST ( NULL AS REAL ) * + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9066
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( - col0 * + - ( + col2 ), CAST( NULL AS SIGNED ), - col1 )
----

skipif mysql # not compatible
query III rowsort label-9066
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( - col0 * + - ( + col2 ), CAST ( NULL AS INTEGER ), - col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 16 * + col2 + col1 <= - col2 + col2 + 62 / + col0 / - + 17
----

query I rowsort
SELECT ALL + 71 + col0 - col0 AS col0 FROM tab1 cor0
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT COUNT( * ) * - SUM( + 49 ) FROM tab1 AS cor0
----
-441

skipif mysql # not compatible
query I rowsort label-9069
SELECT COUNT ( * ) * - SUM ( + 49 ) FROM tab1 AS cor0
----
-441

query IIIIII rowsort
SELECT * FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 ) WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 66 * - + col1 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 col0 FROM tab0 AS cor0 WHERE 23 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 col0 FROM tab2 cor0
----
24
24
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9074
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - ( - ( col1 ) ) * - - 6 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9074
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - ( - ( col1 ) ) * - - 6 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT + + COUNT( col0 ) + 60 - + 1 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-9075
SELECT + + COUNT ( col0 ) + 60 - + 1 FROM tab1 AS cor0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-9076
SELECT + 78 DIV 43 * 29 col2 FROM tab0 AS cor0
----
29
29
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9076
SELECT + 78 / 43 * 29 col2 FROM tab0 AS cor0
----
29
29
29

query I rowsort
SELECT + col0 * + + 27 - + - col0 + - - 50 FROM tab1 AS cor0
----
1478
2430
2598

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT MIN( + + col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9078
SELECT MIN ( + + col2 ) AS col2 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT - 35 * ( COUNT( * ) ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9079
SELECT - 35 * ( COUNT ( * ) ) FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT - MAX( DISTINCT col0 ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-9080
SELECT - MAX ( DISTINCT col0 ) AS col0 FROM tab1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9081
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - - col0, - col2 * + + ( + - col0 ) * - col1 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-9081
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - - col0, - col2 * + + ( + - col0 ) * - col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9082
SELECT + 59 DIV col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9082
SELECT + 59 / col2 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT - SUM( DISTINCT + ( - col2 ) ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9083
SELECT - SUM ( DISTINCT + ( - col2 ) ) FROM tab1
----
223

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE + - col1 - - col0 * + + ( + - col2 ) <= - 44
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT - COUNT( + - 33 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9085
SELECT - COUNT ( + - 33 ) FROM tab2
----
-3

query II rowsort
SELECT 22, + col1 AS col1 FROM tab2 AS cor0
----
22
51
22
67
22
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT - 58 * + MIN( + col2 ) FROM tab0 cor0
----
-580

skipif mysql # not compatible
query I rowsort label-9087
SELECT - 58 * + MIN ( + col2 ) FROM tab0 cor0
----
-580

query I rowsort
SELECT DISTINCT 2 * - - col0 AS col0 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT + 10 FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( + + col2, col0 )
----

query I rowsort
SELECT + - col2 * - - col0 AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT ALL + col2 * col2 + col0 + - - 4 FROM tab2 AS cor0
----
1668
3443
579

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT ALL - COUNT( * ) + - 88 * + 19 AS col1 FROM tab1 AS cor0
----
-1675

skipif mysql # not compatible
query I rowsort label-9092
SELECT ALL - COUNT ( * ) + - 88 * + 19 AS col1 FROM tab1 AS cor0
----
-1675

query I rowsort
SELECT DISTINCT + ( 96 ) FROM tab2
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * ( col2 ) col1 FROM tab1
----
-3481
-4624
-9216

query II rowsort
SELECT - - col2 + + 27 AS col0, col0 FROM tab0 WHERE ( NOT + col1 <= NULL )
----

query I rowsort
SELECT DISTINCT col2 * - 73 FROM tab0
----
-3431
-7227
-730

query I rowsort
SELECT + + col0 + - 52 AS col1 FROM tab2 AS cor0
----
-6
12
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9098
SELECT - col0 * - - col2 AS col2, + CAST( NULL AS SIGNED ) / ( col2 ) * + col2 + - + 28 * - + 24 + - col0 / + - col1 AS col0 FROM tab0
----
-705
NULL
-870
NULL
-9603
NULL

skipif mysql # not compatible
query II rowsort label-9098
SELECT - col0 * - - col2 AS col2, + CAST ( NULL AS INTEGER ) / ( col2 ) * + col2 + - + 28 * - + 24 + - col0 / + - col1 AS col0 FROM tab0
----
-705
NULL
-870
NULL
-9603
NULL

query I rowsort
SELECT + - ( + col2 ) - - col0 + - + col2 AS col0 FROM tab0 cor0
----
-101
-79
67

query I rowsort
SELECT + col2 - + - ( col0 ) FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT ALL + + 0 - + 22 + + 55 AS col2 FROM tab0 AS cor0
----
33
33
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9102
SELECT CAST( NULL AS SIGNED ) / + + 89 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9102
SELECT CAST ( NULL AS INTEGER ) / + + 89 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 col2 FROM tab0
----
62
62
62

query II rowsort
SELECT 40, 61 AS col1 FROM tab1
----
40
61
40
61
40
61

onlyif mysql # DIV for integer division: 
query I rowsort label-9105
SELECT col2 DIV + 90 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9105
SELECT col2 / + 90 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9106
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST( NULL AS SIGNED ) * - - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9106
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) * - - col1 AND NULL
----

query I rowsort
SELECT + 46 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 45 * 4 col0 FROM tab1
----
-180

query I rowsort
SELECT DISTINCT - col2 * + - ( + 89 ) FROM tab2 cor0
----
2047
3560
5162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9110
SELECT - + CAST( NULL AS SIGNED ) / + 83 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9110
SELECT - + CAST ( NULL AS INTEGER ) / + 83 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT ALL COUNT( * ) + - 15 FROM tab1 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-9111
SELECT ALL COUNT ( * ) + - 15 FROM tab1 cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9112
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + - col1 NOT IN ( CAST( - 47 AS SIGNED ), col0 * - + col2 ) OR NULL > - + col2
----

skipif mysql # not compatible
query III rowsort label-9112
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + - col1 NOT IN ( CAST ( - 47 AS INTEGER ), col0 * - + col2 ) OR NULL > - + col2
----

query I rowsort
SELECT DISTINCT + col2 + + 31 * + 84 AS col2 FROM tab2
----
2627
2644
2662

query I rowsort
SELECT DISTINCT ( 7 ) + + + 50 + - + col0 * - col0 * + col0 * + col2 + col2 FROM tab1
----
12734649
36233491
51242953

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT COUNT( * ) + COUNT( * ) col0 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9115
SELECT COUNT ( * ) + COUNT ( * ) col0 FROM tab0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 + col1 * + col2 col0 FROM tab1
----
1360
311
3212

query II rowsort
SELECT col1 + + col1 AS col2, + col1 FROM tab2
----
102
51
134
67
154
77

query II rowsort
SELECT ALL 43 * - + col1, ( + - col2 ) AS col2 FROM tab0
----
-3483
-47
-43
-99
-903
-10

query II rowsort
SELECT col1 + - + 25 AS col2, 44 AS col1 FROM tab0
----
-24
44
-4
44
56
44

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 NOT IN ( col1 * - col1 + - 6 * - 1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9121
SELECT + + 81 DIV 84 + col2 + 25 FROM tab0 AS cor0
----
124
35
72

skipif mysql # not compatible
query I rowsort label-9121
SELECT + + 81 / 84 + col2 + 25 FROM tab0 AS cor0
----
124
35
72

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9123
SELECT - + 27 - MIN( DISTINCT + - 85 ) DIV 75 AS col2 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-9123
SELECT - + 27 - MIN ( DISTINCT + - 85 ) / 75 AS col2 FROM tab1 AS cor0
----
-26

query I rowsort
SELECT ( - 74 ) AS col1 FROM tab2
----
-74
-74
-74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9125
SELECT * FROM tab2 WHERE NOT - 99 NOT BETWEEN - 69 * - 65 / - col2 * - col1 * - col1 / - - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9125
SELECT * FROM tab2 WHERE NOT - 99 NOT BETWEEN - 69 * - 65 / - col2 * - col1 * - col1 / - - CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT + + 35 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT + 27 * - COUNT( * ) + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-234

skipif mysql # not compatible
query I rowsort label-9127
SELECT + 27 * - COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT DISTINCT - MAX( ALL 75 ) AS col2 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9128
SELECT DISTINCT - MAX ( ALL 75 ) AS col2 FROM tab1 AS cor0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-9129
SELECT + + col0 * 76 + - 13 DIV - col2 col1 FROM tab2 AS cor0 WHERE NOT - ( + + 11 ) IS NULL
----
3496
4864
5700

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9129
SELECT + + col0 * 76 + - 13 / - col2 col1 FROM tab2 AS cor0 WHERE NOT - ( + + 11 ) IS NULL
----
3496
4864
5700

onlyif mysql # aggregate syntax: 
query II rowsort label-9130
SELECT + 81 AS col1, COUNT( * ) FROM tab1 AS cor0
----
81
3

skipif mysql # not compatible
query II rowsort label-9130
SELECT + 81 AS col1, COUNT ( * ) FROM tab1 AS cor0
----
81
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
9
9
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 38, - 51 * 24 col1 FROM tab0 AS cor0
----
38
-1224

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9134
SELECT 83 DIV - + col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9134
SELECT 83 / - + col2 FROM tab1
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9135
SELECT col0 AS col0 FROM tab0 WHERE NOT + 13 IN ( - col1, - col2, CAST( NULL AS SIGNED ), - col0 )
----

skipif mysql # not compatible
query I rowsort label-9135
SELECT col0 AS col0 FROM tab0 WHERE NOT + 13 IN ( - col1, - col2, CAST ( NULL AS INTEGER ), - col0 )
----

query I rowsort
SELECT ALL + ( col2 ) * 84 * + 41 AS col1 FROM tab1
----
203196
234192
330624

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col1 * col0 + col1 >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT ALL + 11 + COUNT( * ) FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-9138
SELECT ALL + 11 + COUNT ( * ) FROM tab2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9139
SELECT DISTINCT 18 * + col2 * CAST( - 59 AS SIGNED ) * + col2 * col1 AS col2, + col1 + col1 AS col2, col1 FROM tab0
----
9 values hashing to 5f6a776aaf3263fac809214868c3842a

skipif mysql # not compatible
query III rowsort label-9139
SELECT DISTINCT 18 * + col2 * CAST ( - 59 AS INTEGER ) * + col2 * col1 AS col2, + col1 + col1 AS col2, col1 FROM tab0
----
9 values hashing to 5f6a776aaf3263fac809214868c3842a

query I rowsort
SELECT DISTINCT - col2 * + ( - col0 ) AS col1 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT DISTINCT + + 49 * + col2 * col2 * + - col2 + + col2 AS col0 FROM tab0 cor0
----
-47544552
-48990
-5087280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9142
SELECT - CAST( ( - col2 ) AS SIGNED ) * - - col2 AS col2 FROM tab2 AS cor0
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-9142
SELECT - CAST ( ( - col2 ) AS INTEGER ) * - - col2 AS col2 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT - + MAX( DISTINCT + 82 ) AS col2 FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-9143
SELECT - + MAX ( DISTINCT + 82 ) AS col2 FROM tab0 AS cor0
----
-82

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL IN ( + 20, - 99 * - - col1, col2, col1 * + + col0 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9145
SELECT ALL + COUNT( * ), 67 AS col1 FROM tab0 AS cor0
----
3
67

skipif mysql # not compatible
query II rowsort label-9145
SELECT ALL + COUNT ( * ), 67 AS col1 FROM tab0 AS cor0
----
3
67

query II rowsort
SELECT + - col1 AS col1, - ( + col1 ) FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * ( 86 ) + - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT DISTINCT - - MIN( col1 ) + + COUNT( * ) FROM tab0 cor0
----
4

skipif mysql # not compatible
query I rowsort label-9148
SELECT DISTINCT - - MIN ( col1 ) + + COUNT ( * ) FROM tab0 cor0
----
4

query I rowsort
SELECT DISTINCT - col2 + + ( + col1 ) AS col2 FROM tab0
----
-98
11
34

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 + + + 78 + - - ( 95 ) * col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + 8 BETWEEN + col2 + - - col0 + + col0 * - col1 * - col2 + - + col1 AND + 94
----

query I rowsort
SELECT ALL col1 + + col1 * 49 AS col0 FROM tab1
----
2350
250
700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, + col1 * - 59 col2 FROM tab0
----
15
-4779
87
-1239
97
-59

query II rowsort
SELECT 53 + - ( - + col0 ) - - 87 AS col2, + col0 * + + 33 AS col2 FROM tab1
----
191
1683
225
2805
231
3003

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9155
SELECT ALL + ( + 46 ) - + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL + ( + 46 ) - + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + col0 + - - 22 FROM tab1
----
4299
447
736

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 + - col1 * col2 + + - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + ( - - col0 ), col0 AS col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9159
SELECT DISTINCT ( + CAST( 62 AS SIGNED ) ) + - COUNT( * ) AS col2 FROM tab0 WHERE + col0 IS NULL
----
62

skipif mysql # not compatible
query I rowsort label-9159
SELECT DISTINCT ( + CAST ( 62 AS INTEGER ) ) + - COUNT ( * ) AS col2 FROM tab0 WHERE + col0 IS NULL
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-9160
SELECT DISTINCT col2 DIV 38 AS col1 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-9160
SELECT DISTINCT col2 / 38 AS col1 FROM tab2
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9161
SELECT DISTINCT + col2 DIV col1 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9161
SELECT DISTINCT + col2 / col1 col2 FROM tab2
----
0

query I rowsort
SELECT - + 81 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9163
SELECT + + MAX( - col2 ) AS col2, + ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-9163
SELECT + + MAX ( - col2 ) AS col2, + ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
-10
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9165
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 + + col1 + 77 * - - ( + - col1 ) * CAST( NULL AS SIGNED ) + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9165
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 + + col1 + 77 * - - ( + - col1 ) * CAST ( NULL AS INTEGER ) + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - col2 FROM tab1 cor0 WHERE - col2 * - col2 <> + - 9 * - - 69
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT + SUM( DISTINCT ( - col1 ) ) FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9167
SELECT + SUM ( DISTINCT ( - col1 ) ) FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 = NULL
----

query II rowsort
SELECT col1 AS col0, 14 FROM tab0
----
1
14
21
14
81
14

query II rowsort
SELECT + + 50, AVG ( DISTINCT col2 ) AS col0 FROM tab0 WHERE NOT col2 <> NULL
----
50
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9171
SELECT + COUNT( * ) * - + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9171
SELECT + COUNT ( * ) * - + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9172
SELECT + col1 DIV + - col1 col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9172
SELECT + col1 / + - col1 col1 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9173
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT 12 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9173
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT 12 IS NOT NULL
----

query I rowsort
SELECT ALL + 72 * - - col0 AS col2 FROM tab0
----
1080
6264
6984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9175
SELECT - CAST( NULL AS SIGNED ) + - col0 + - + col0 * + - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9175
SELECT - CAST ( NULL AS INTEGER ) + - col0 + - + col0 * + - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 57 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
57
57
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 41 ) col1 FROM tab0 AS cor0
----
41
41
41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9178
SELECT * FROM tab1 AS cor0 WHERE 36 * + - CAST( - + col2 AS SIGNED ) * + ( - 64 ) * col0 NOT IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9178
SELECT * FROM tab1 AS cor0 WHERE 36 * + - CAST ( - + col2 AS INTEGER ) * + ( - 64 ) * col0 NOT IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col2 * - 53, col1 - + - 54 AS col2 FROM tab2
----
-1219
105
-2120
131
-3074
121

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( 1 ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab2 AS cor0 WHERE 86 * - col1 > - + col0
----

query I rowsort
SELECT DISTINCT - 40 + 35 FROM tab0 cor0
----
-5

query I rowsort
SELECT + col1 + + col1 + + col1 + 64 FROM tab2 cor0
----
217
265
295

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 36 * + + ( - - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 98 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9186
SELECT 35 + + - col2 + + col2 DIV 80 AS col2 FROM tab0
----
-12
-63
25

skipif mysql # not compatible
query I rowsort label-9186
SELECT 35 + + - col2 + + col2 / 80 AS col2 FROM tab0
----
-12
-63
25

query I rowsort
SELECT ALL - 66 - + 88 FROM tab0
----
-154
-154
-154

query I rowsort
SELECT DISTINCT + col1 * + + col2 + + + 5 FROM tab1
----
1349
300
3201

query II rowsort
SELECT DISTINCT 7 * + col2 - - - col1 AS col1, - col1 * 9 FROM tab0
----
248
-729
49
-189
692
-9

query I rowsort
SELECT DISTINCT - ( + 76 ) FROM tab0 WHERE + 73 * col2 IS NOT NULL
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9191
SELECT + CAST( - + col2 AS SIGNED ) AS col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9191
SELECT + CAST ( - + col2 AS INTEGER ) AS col1 FROM tab0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - 23 col2 FROM tab2
----
69
87
98

query I rowsort
SELECT ALL + 39 - + col2 FROM tab2
----
-1
-19
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9194
SELECT COUNT( - col2 ) + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9194
SELECT COUNT ( - col2 ) + CAST ( NULL AS REAL ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9195
SELECT - CAST( NULL AS DECIMAL ) * + CAST( + col0 AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9195
SELECT - CAST ( NULL AS REAL ) * + CAST ( + col0 AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT ALL COUNT( * ) - + + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL COUNT ( * ) - + + COUNT ( * ) FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9197
SELECT DISTINCT + 77 DIV + - 4 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-9197
SELECT DISTINCT + 77 / + - 4 FROM tab0 AS cor0
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9198
SELECT ALL COUNT( * ) DIV + 40 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9198
SELECT ALL COUNT ( * ) / + 40 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - + 92 / - 56 * + - ( + - col0 ) FROM tab2 WHERE NOT NULL <= + 42 * - + 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT SUM( ALL col1 ) * COUNT( * ) AS col0 FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-9200
SELECT SUM ( ALL col1 ) * COUNT ( * ) AS col0 FROM tab2
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT DISTINCT COUNT( ALL + col1 ) * - 83 FROM tab1
----
-249

skipif mysql # not compatible
query I rowsort label-9201
SELECT DISTINCT COUNT ( ALL + col1 ) * - 83 FROM tab1
----
-249

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9202
SELECT DISTINCT - col2, + 61 AS col2, + col0 + + CAST( col0 AS SIGNED ) + + col0 + + 69 AS col0 FROM tab0 cor0
----
9 values hashing to d3595dbe7ebfbaa966fb3781083df46c

skipif mysql # not compatible
query III rowsort label-9202
SELECT DISTINCT - col2, + 61 AS col2, + col0 + + CAST ( col0 AS INTEGER ) + + col0 + + 69 AS col0 FROM tab0 cor0
----
9 values hashing to d3595dbe7ebfbaa966fb3781083df46c

onlyif mysql # DIV for integer division: 
query II rowsort label-9203
SELECT + col2, + col2 DIV col0 FROM tab0 AS cor0
----
10
0
47
3
99
1

skipif mysql # not compatible
query II rowsort label-9203
SELECT + col2, + col2 / col0 FROM tab0 AS cor0
----
10
0
47
3
99
1

query I rowsort
SELECT DISTINCT - 49 FROM tab0 AS cor0 WHERE col2 * col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9205
SELECT 31 * CAST( NULL AS SIGNED ) * + + 68 FROM tab2 AS cor0 WHERE NOT - col1 >= NULL
----

skipif mysql # not compatible
query I rowsort label-9205
SELECT 31 * CAST ( NULL AS INTEGER ) * + + 68 FROM tab2 AS cor0 WHERE NOT - col1 >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + - ( - - 54 ) BETWEEN + col0 AND - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT - COUNT( 1 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9207
SELECT - COUNT ( 1 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT SUM( ALL - - 45 ) FROM tab0 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-9208
SELECT SUM ( ALL - - 45 ) FROM tab0 AS cor0
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-9209
SELECT - + col1 DIV + 57 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9209
SELECT - + col1 / + 57 AS col0 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT + MAX( col0 ) * 29 AS col2 FROM tab0 AS cor0
----
2813

skipif mysql # not compatible
query I rowsort label-9210
SELECT + MAX ( col0 ) * 29 AS col2 FROM tab0 AS cor0
----
2813

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9211
SELECT + - CAST( + + col0 AS SIGNED ) / + col2 + col1 * - col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----

skipif mysql # not compatible
query I rowsort label-9211
SELECT + - CAST ( + + col0 AS INTEGER ) / + col2 + col1 * - col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT + + MIN( - + col2 ) * 39 FROM tab0 AS cor0
----
-3861

skipif mysql # not compatible
query I rowsort label-9212
SELECT + + MIN ( - + col2 ) * 39 FROM tab0 AS cor0
----
-3861

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT ALL - 39 + COUNT( * ) AS col0 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL - 39 + COUNT ( * ) AS col0 FROM tab0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT + MIN( + 83 ) AS col2 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-9214
SELECT + MIN ( + 83 ) AS col2 FROM tab0
----
83

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 32 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9216
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) + col2 NOT BETWEEN NULL AND + 65
----

skipif mysql # not compatible
query III rowsort label-9216
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) + col2 NOT BETWEEN NULL AND + 65
----

query I rowsort
SELECT + col2 + + col1 + + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-577
-839
-9503

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * col1 - col2 / + col0 * col0 + ( + col0 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col0 + ( col1 ) IN ( + - col0, + 49 * col1, - ( + col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE - 82 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9221
SELECT 59 DIV + + col1 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9221
SELECT 59 / + + col1 AS col1 FROM tab2
----
0
0
1

query I rowsort
SELECT ( - 21 ) FROM tab0 AS cor0
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT + MAX( DISTINCT + col2 ) AS col1 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-9223
SELECT + MAX ( DISTINCT + col2 ) AS col1 FROM tab0 cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9224
SELECT ALL 84 + - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-13
-3
69

skipif mysql # not compatible
query I rowsort label-9224
SELECT ALL 84 + - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-13
-3
69

query I rowsort
SELECT - 59 - + - col0 AS col0 FROM tab0 AS cor0
----
-44
28
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) + + - col1 col1 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT DISTINCT - ( + 13 ) + + + col1 FROM tab0
----
-12
68
8

query I rowsort
SELECT DISTINCT col0 - - 37 + - - col2 AS col0 FROM tab2
----
106
141
170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9229
SELECT CAST( NULL AS SIGNED ) + col2 + - - col2 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9229
SELECT CAST ( NULL AS INTEGER ) + col2 + - - col2 col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT DISTINCT + SUM( ALL - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-9230
SELECT DISTINCT + SUM ( ALL - col2 ) FROM tab2
----
-121

onlyif mysql # aggregate syntax: 
query II rowsort label-9231
SELECT ALL + 68 * + + COUNT( * ), 73 AS col1 FROM tab0 AS cor0
----
204
73

skipif mysql # not compatible
query II rowsort label-9231
SELECT ALL + 68 * + + COUNT ( * ), 73 AS col1 FROM tab0 AS cor0
----
204
73

query I rowsort
SELECT ALL + 59 * + col1 FROM tab2 AS cor0
----
3009
3953
4543

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT ALL COUNT( * ) col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9233
SELECT ALL COUNT ( * ) col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9234
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + 41 * + 79 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9234
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + 41 * + 79 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL - 99 FROM tab2 WHERE - col2 <> - - col1 * + + col2 / col2 + + - col1 + - 28
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT - COUNT( * ) + - - 55 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND - 96
----
55

skipif mysql # not compatible
query I rowsort label-9236
SELECT - COUNT ( * ) + - - 55 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND - 96
----
55

query II rowsort
SELECT col1, - col1 + + ( + col2 ) AS col1 FROM tab0 AS cor0
----
1
98
21
-11
81
-34

query I rowsort
SELECT DISTINCT + col2 + - + col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT 56 AS col2 FROM tab0 cor0
----
56
56
56

query I rowsort
SELECT DISTINCT ( - 74 ) AS col2 FROM tab2 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - 41 + - 50 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - 41 + - 50 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT ALL ( + MAX( ALL col1 ) ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-9242
SELECT ALL ( + MAX ( ALL col1 ) ) AS col0 FROM tab1
----
47

query II rowsort
SELECT DISTINCT ( 2 ) AS col0, + col1 AS col2 FROM tab0
----
2
1
2
21
2
81

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT 0 + col1 IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT ALL MIN( - 87 ) AS col0 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL MIN ( - 87 ) AS col0 FROM tab2
----
-87

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 63 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT DISTINCT MAX( ALL + col1 ) + + 55 FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-9247
SELECT DISTINCT MAX ( ALL + col1 ) + + 55 FROM tab2 AS cor0
----
132

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 / + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 79 * + - col0 FROM tab1 AS cor0
----
-4029
-6715
-7189

query I rowsort
SELECT ALL + 92 + + + col1 FROM tab2 cor0
----
143
159
169

query I rowsort
SELECT DISTINCT + + ( - 75 ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-75

query II rowsort
SELECT ALL col0 + + col1 AS col2, col0 + + col1 FROM tab0
----
108
108
96
96
98
98

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 cor0 WHERE NULL < - 27
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9254
SELECT ( + - col0 ) + + col1 * CAST( - col2 AS DECIMAL ) - ( - + col0 ) FROM tab1 AS cor0 WHERE col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9254
SELECT ( + - col0 ) + + col1 * CAST ( - col2 AS REAL ) - ( - + col0 ) FROM tab1 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * col2 + + 86 - col1 AS col1 FROM tab1 AS cor0
----
-1272
-214
-3157

query I rowsort
SELECT - col0 - + ( - - col2 ) AS col2 FROM tab1 AS cor0 WHERE ( ( - 99 * + + col1 <> + col2 + col0 * - col2 + - col1 ) )
----
-144
-147
-159

query I rowsort
SELECT col1 * - 24 FROM tab1 cor0
----
-1128
-120
-336

query II rowsort
SELECT ALL - col1 + col0 * - col2 + - - col1, - col1 + - 93 * - 12 AS col2 FROM tab0
----
-705
1035
-870
1095
-9603
1115

query I rowsort
SELECT - 95 * col2 FROM tab1
----
-5605
-6460
-9120

query III rowsort
SELECT * FROM tab2 WHERE - - ( col1 ) < + 19 / - + col0
----

query I rowsort
SELECT ALL + + col0 AS col2 FROM tab1 WHERE + col2 IS NULL
----

query II rowsort
SELECT + col1 AS col2, - col0 + + col0 FROM tab2
----
51
0
67
0
77
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9263
SELECT CAST( - 13 AS SIGNED ) AS col0 FROM tab2
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-9263
SELECT CAST ( - 13 AS INTEGER ) AS col0 FROM tab2
----
-13
-13
-13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9264
SELECT DISTINCT col1 col2, - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9264
SELECT DISTINCT col1 col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
1
NULL
21
NULL
81
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 25 + - 63 + + - col2 NOT BETWEEN col0 AND + + 72
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT - 10 - - ( + + 29 ) + + 60 IN ( col0, - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9267
SELECT ALL + COUNT( * ) AS col0, - 59 * - 21 * COUNT( * ) FROM tab0 cor0
----
3
3717

skipif mysql # not compatible
query II rowsort label-9267
SELECT ALL + COUNT ( * ) AS col0, - 59 * - 21 * COUNT ( * ) FROM tab0 cor0
----
3
3717

query I rowsort
SELECT col1 * 76 AS col2 FROM tab0 AS cor0 WHERE NOT 80 IS NOT NULL
----

query I rowsort
SELECT ALL ( + 49 ) FROM tab2 AS cor0
----
49
49
49

query I rowsort
SELECT - - col2 * col0 - + 99 + + + 32 + - col0 FROM tab0 AS cor0
----
623
716
9439

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - ( + ( - - col0 ) ) col2, + col2 * col2 + + 58 AS col2 FROM tab1
----
2601
9274
7225
3539
8281
4682

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 18 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT 63 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9274
SELECT DISTINCT + 47 * + CAST( NULL AS SIGNED ) / - col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT + 47 * + CAST ( NULL AS INTEGER ) / - col0 FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9275
SELECT DISTINCT - + col2 DIV - - col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT - + col2 / - - col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + ( 84 ) * + - 11 AS col1 FROM tab0 AS cor0
----
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT ALL + MIN( DISTINCT - col2 ) AS col0 FROM tab2 WHERE - - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9277
SELECT ALL + MIN ( DISTINCT - col2 ) AS col0 FROM tab2 WHERE - - col2 IS NULL
----
NULL

query I rowsort
SELECT ALL + ( + - col0 ) + - - col2 AS col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT DISTINCT 88 + + + col0 + - ( + - col0 ) * + col2 AS col0 FROM tab1
----
5035
5188
6367

query I rowsort
SELECT DISTINCT 15 * 80 FROM tab0
----
1200

query I rowsort
SELECT 31 FROM tab0 WHERE NULL IN ( - ( + 32 ), col1 * + + ( - col0 ) * + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9282
SELECT 87 DIV + + 69 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9282
SELECT 87 / + + 69 FROM tab2
----
1
1
1

query I rowsort
SELECT col0 * - ( - col1 ) * col2 FROM tab0
----
18270
57105
9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9284
SELECT ALL MAX( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9284
SELECT ALL MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9285
SELECT + 5 + + + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9285
SELECT + 5 + + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 - + col0 - + col1 * - 97 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT + COUNT( * ) * + MAX( DISTINCT - + col2 ) - 18 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-195

skipif mysql # not compatible
query I rowsort label-9287
SELECT + COUNT ( * ) * + MAX ( DISTINCT - + col2 ) - 18 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-195

query I rowsort
SELECT - - col0 + + - 24 FROM tab0 AS cor0
----
-9
63
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT ALL - + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9289
SELECT ALL - + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9290
SELECT + col1 DIV - 12 + col1 * + col1 + - - 23 * col1 + col0 AS col2 FROM tab0 AS cor0
----
1010
121
8433

skipif mysql # not compatible
query I rowsort label-9290
SELECT + col1 / - 12 + col1 * + col1 + - - 23 * col1 + col0 AS col2 FROM tab0 AS cor0
----
1010
121
8433

query II rowsort
SELECT DISTINCT - col2, 95 AS col0 FROM tab2 AS cor0
----
-23
95
-40
95
-58
95

query I rowsort
SELECT - + 33 - - col1 AS col1 FROM tab2 AS cor0
----
18
34
44

query I rowsort
SELECT col1 * + - col0 - - 37 * + + col2 * - - col2 AS col2 FROM tab1 AS cor0
----
128372
166811
340278

query I rowsort
SELECT col0 * - col1 * + col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9295
SELECT - CAST( NULL AS SIGNED ) * + 59 - + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9295
SELECT - CAST ( NULL AS INTEGER ) * + 59 - + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + ( - + ( col1 ) ) * - 92 AS col2 FROM tab1
----
1288
4324
460

query I rowsort
SELECT 94 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 BETWEEN col0 AND 99 * + 86
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9299
SELECT ALL - col1 col2 FROM tab0 WHERE - - 40 + - col2 * - - col1 * + col1 * + CAST( col2 AS DECIMAL ) + - - col2 IS NOT NULL
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9299
SELECT ALL - col1 col2 FROM tab0 WHERE - - 40 + - col2 * - - col1 * + col1 * + CAST ( col2 AS REAL ) + - - col2 IS NOT NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9300
SELECT ALL - CAST( + col0 AS SIGNED ) col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9300
SELECT ALL - CAST ( + col0 AS INTEGER ) col0 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT COUNT( DISTINCT + 64 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9301
SELECT COUNT ( DISTINCT + 64 ) FROM tab2
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 = - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9303
SELECT - 80 DIV - - CAST( MAX( + + col0 ) AS SIGNED ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9303
SELECT - 80 / - - CAST ( MAX ( + + col0 ) AS INTEGER ) AS col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, + 13 col2 FROM tab2 AS cor0
----
-23
13
-40
13
-58
13

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) < 28
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9306
SELECT - col0 * + col1 + - 18, - col2 DIV - 65 - col2 AS col1 FROM tab1 AS cor0
----
-4295
-67
-443
-59
-732
-95

skipif mysql # not compatible
query II rowsort label-9306
SELECT - col0 * + col1 + - 18, - col2 / - 65 - col2 AS col1 FROM tab1 AS cor0
----
-4295
-67
-443
-59
-732
-95

query I rowsort
SELECT DISTINCT col2 + - + 61 AS col0 FROM tab2 AS cor0
----
-21
-3
-38

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 42 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 70 + - col1 * + col2 FROM tab2
----
-1103
-3010
-3816

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT ALL - 28 + + + SUM( DISTINCT + - col1 ) - + + 66 AS col0 FROM tab0
----
-197

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL - 28 + + + SUM ( DISTINCT + - col1 ) - + + 66 AS col0 FROM tab0
----
-197

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= - col1
----

query III rowsort
SELECT * FROM tab2 WHERE + 47 <= col2
----
75
67
58

query I rowsort
SELECT ALL 32 * col2 + + + col1 FROM tab0
----
1585
3169
341

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 * - - 8 col1 FROM tab2
----
776
776
776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9315
SELECT - ( col1 ) * - CAST( 58 AS SIGNED ) - - 92 FROM tab0
----
1310
150
4790

skipif mysql # not compatible
query I rowsort label-9315
SELECT - ( col1 ) * - CAST ( 58 AS INTEGER ) - - 92 FROM tab0
----
1310
150
4790

query I rowsort
SELECT + 78 * + 15 AS col2 FROM tab0
----
1170
1170
1170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9317
SELECT DISTINCT + COUNT( * ) DIV + 21 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9317
SELECT DISTINCT + COUNT ( * ) / + 21 AS col0 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9318
SELECT col0 DIV + - 25 AS col1 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-9318
SELECT col0 / + - 25 AS col1 FROM tab2
----
-1
-2
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9319
SELECT DISTINCT 31 + ( CAST( NULL AS SIGNED ) ) * 60 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND 40 + + - col2 + + - ( - - col2 ) * + + col1
----

skipif mysql # not compatible
query I rowsort label-9319
SELECT DISTINCT 31 + ( CAST ( NULL AS INTEGER ) ) * 60 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND 40 + + - col2 + + - ( - - col2 ) * + + col1
----

query I rowsort
SELECT ALL + col2 * col0 + + col1 + col0 + col2 - + 10 FROM tab2 AS cor0
----
1168
2731
4540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9321
SELECT - - COUNT( * ) - + MAX( + 40 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9321
SELECT - - COUNT ( * ) - + MAX ( + 40 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT + ( + COUNT( * ) ) - ( - - 38 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-29

skipif mysql # not compatible
query I rowsort label-9322
SELECT + ( + COUNT ( * ) ) - ( - - 38 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-29

query I rowsort
SELECT - col0 + + + col1 + 4 * - - ( + col0 ) FROM tab1
----
167
260
320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9324
SELECT ALL col1 * + CAST( - - col0 AS SIGNED ) * col0 FROM tab0
----
158949
18225
9409

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL col1 * + CAST ( - - col0 AS INTEGER ) * col0 FROM tab0
----
158949
18225
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 90 col0, - col2 AS col1 FROM tab2 AS cor0
----
-90
-23
-90
-40
-90
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-9326
SELECT DISTINCT + col1 DIV - col2 col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9326
SELECT DISTINCT + col1 / - col2 col0 FROM tab1
----
0

query II rowsort
SELECT ALL + 81 AS col2, - 87 AS col2 FROM tab1
----
81
-87
81
-87
81
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT COUNT( * ) * + ( COUNT( * ) ) col0 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9328
SELECT COUNT ( * ) * + ( COUNT ( * ) ) col0 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE - col0 * - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9329
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE - col0 * - col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT - MAX( DISTINCT 72 ) AS col1 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9330
SELECT - MAX ( DISTINCT 72 ) AS col1 FROM tab2 AS cor0
----
-72

query II rowsort
SELECT - col0 AS col2, col0 * - col2 AS col1 FROM tab0 AS cor0
----
-15
-705
-87
-870
-97
-9603

onlyif mysql # aggregate syntax: 
query II rowsort label-9332
SELECT + + COUNT( * ) AS col2, + COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9332
SELECT + + COUNT ( * ) AS col2, + COUNT ( * ) FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT + ( + 51 ) + - col1 AS col2 FROM tab1 AS cor0
----
37
4
46

query I rowsort
SELECT DISTINCT - ( + ( + col2 ) ) FROM tab2
----
-23
-40
-58

query I rowsort
SELECT - col1 * + col1 + 15 FROM tab1
----
-10
-181
-2194

query I rowsort
SELECT + 20 * + 72 * col1 * - col1 AS col0 FROM tab1 AS cor0
----
-282240
-3180960
-36000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9337
SELECT + 25 * COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-9337
SELECT + 25 * COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
25

query I rowsort
SELECT ALL - col1 + + col0 + - - col0 AS col2 FROM tab1 AS cor0
----
135
165
88

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + 76
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9341
SELECT ALL - col0 + + + 47 DIV col0 FROM tab2 AS cor0
----
-45
-64
-75

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL - col0 + + + 47 / col0 FROM tab2 AS cor0
----
-45
-64
-75

query I rowsort
SELECT - + col1 AS col2 FROM tab1 WHERE - - col0 IS NOT NULL
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + + col1 + + col2 ) > NULL
----

query I rowsort
SELECT - col0 + - - 48 AS col2 FROM tab0 AS cor0
----
-39
-49
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9345
SELECT MIN( ALL + col2 ) + + ( CAST( NULL AS SIGNED ) ) + - AVG ( - - col2 ) / - + COUNT( * ) + + + 97 - - 8 * - + 74 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9345
SELECT MIN ( ALL + col2 ) + + ( CAST ( NULL AS INTEGER ) ) + - AVG ( - - col2 ) / - + COUNT ( * ) + + + 97 - - 8 * - + 74 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col2 * + col0 + - col1 FROM tab2 AS cor0
----
1007
2483
4283

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 84 + 75 IS NOT NULL
----

query II rowsort
SELECT + 0 AS col1, - 69 AS col0 FROM tab2 cor0
----
0
-69
0
-69
0
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 78 ) col0 FROM tab2
----
78
78
78

onlyif mysql # DIV for integer division: 
query I rowsort label-9350
SELECT DISTINCT + ( + col1 ) DIV 81 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9350
SELECT DISTINCT + ( + col1 ) / 81 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9351
SELECT DISTINCT - 74 DIV COUNT( * ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-9351
SELECT DISTINCT - 74 / COUNT ( * ) FROM tab1
----
-24

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE NOT + 0 * col2 + + 42 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9353
SELECT DISTINCT 95 DIV MAX( + col0 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9353
SELECT DISTINCT 95 / MAX ( + col0 ) AS col1 FROM tab0
----
0

query I rowsort
SELECT col0 FROM tab0 WHERE 29 NOT BETWEEN col2 AND ( + 94 * + col0 )
----
15
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9355
SELECT ALL + col1 DIV 41 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL + col1 / 41 AS col2 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9356
SELECT ( - CAST( col1 AS SIGNED ) ) FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9356
SELECT ( - CAST ( col1 AS INTEGER ) ) FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT ALL - COUNT( * ) + + COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT MAX( ALL + 10 ) AS col0 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-9358
SELECT MAX ( ALL + 10 ) AS col0 FROM tab1
----
10

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) IN ( col1 + - col2 )
----

query I rowsort
SELECT col1 - - 79 AS col0 FROM tab1 WHERE 92 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( col1 ) ) < ( col0 * - 71 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 col1 FROM tab1 WHERE NOT - ( 35 ) * - 63 IS NULL
----
67
67
67

query I rowsort
SELECT ALL col0 * col1 FROM tab0 WHERE NULL IS NULL
----
1215
1827
97

query I rowsort
SELECT DISTINCT col0 * 45 + col1 FROM tab0
----
3936
4366
756

query I rowsort
SELECT col0 + - ( 73 ) FROM tab1
----
-22
12
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT DISTINCT 44 + COUNT( * ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-9366
SELECT DISTINCT 44 + COUNT ( * ) AS col1 FROM tab1
----
47

query I rowsort
SELECT col0 + 85 * - 71 FROM tab1
----
-5944
-5950
-5984

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 + - col2 ) NOT BETWEEN col1 + col2 AND 6
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * col2 + - col1 IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 68 < - 87
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 12 + col1 FROM tab1
----
-7
2
35

query I rowsort
SELECT + ( 95 ) + + 5 AS col2 FROM tab1 WHERE NOT NULL <= + ( + col1 ) * col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 * + col2 + col1 BETWEEN NULL AND - col1 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9374
SELECT ALL CAST( NULL AS SIGNED ) - + MAX( + 76 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9374
SELECT ALL CAST ( NULL AS INTEGER ) - + MAX ( + 76 ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9375
SELECT * FROM tab2 WHERE NOT + ( + CAST( + 61 AS SIGNED ) ) + - 61 > - 69 + + col0
----
75
67
58

skipif mysql # not compatible
query III rowsort label-9375
SELECT * FROM tab2 WHERE NOT + ( + CAST ( + 61 AS INTEGER ) ) + - 61 > - 69 + + col0
----
75
67
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col0 col1 FROM tab0 AS cor0 WHERE NOT + 68 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 col0 FROM tab0 cor0 WHERE NOT ( - col0 * 34 ) < + col1
----

query I rowsort
SELECT ALL + 5 + + col0 AS col1 FROM tab0 AS cor0
----
102
20
92

onlyif mysql # DIV for integer division: 
query I rowsort label-9380
SELECT col0 DIV 27 AS col0 FROM tab0 cor0
----
0
3
3

skipif mysql # not compatible
query I rowsort label-9380
SELECT col0 / 27 AS col0 FROM tab0 cor0
----
0
3
3

query I rowsort
SELECT DISTINCT - col2 * - col1 + - col2 AS col1 FROM tab2
----
1150
3040
3828

query I rowsort
SELECT ( - 80 ) + + 10 FROM tab1 AS cor0
----
-70
-70
-70

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 ) NOT BETWEEN ( - col2 ) AND col1
----

query I rowsort
SELECT + 80 + + col0 AS col2 FROM tab1 cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT 31 FROM tab2 AS cor0 WHERE col0 * 97 BETWEEN NULL AND col1 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9386
SELECT ALL + - CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9386
SELECT ALL + - CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * 51 + col1 FROM tab0 AS cor0
----
4458
4948
846

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = 63 * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9389
SELECT - col0 + - col2 DIV ( col0 ) col1 FROM tab1
----
-52
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9389
SELECT - col0 + - col2 / ( col0 ) col1 FROM tab1
----
-52
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + + col0 * + 49 col0 FROM tab2
----
2231
3096
3617

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT + COUNT( * ) + + + COUNT( DISTINCT - 5 ) AS col1 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-9391
SELECT + COUNT ( * ) + + + COUNT ( DISTINCT - 5 ) AS col1 FROM tab1
----
4

query I rowsort
SELECT ALL + col2 - - col2 + + col2 FROM tab1
----
177
204
288

query I rowsort
SELECT 91 + + col0 FROM tab2 WHERE ( col0 ) IS NOT NULL
----
137
155
166

query I rowsort
SELECT DISTINCT + 5 - + + 79 - 92 AS col0 FROM tab1
----
-166

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - ( + col0 ) * col1 + + ( 22 ) ) IS NOT NULL
----

query I rowsort
SELECT ALL + 99 + - col0 FROM tab0 WHERE NOT 53 * col2 + + col2 IS NULL
----
12
2
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9397
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT col2 BETWEEN - col1 AND ( col0 - 71 * + CAST( ( - ( col2 ) ) AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT col2 BETWEEN - col1 AND ( col0 - 71 * + CAST ( ( - ( col2 ) ) AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT ( - 73 ) + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-70

skipif mysql # not compatible
query I rowsort label-9398
SELECT ( - 73 ) + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-9399
SELECT DISTINCT 7 + - - col0 + ( 38 ) DIV - 59 FROM tab1 cor0
----
58
92
98

skipif mysql # not compatible
query I rowsort label-9399
SELECT DISTINCT 7 + - - col0 + ( 38 ) / - 59 FROM tab1 cor0
----
58
92
98

query II rowsort
SELECT DISTINCT - col0, - ( - col0 ) AS col2 FROM tab1
----
-51
51
-85
85
-91
91

query I rowsort
SELECT DISTINCT - + 61 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT - 32 - COUNT( * ) FROM tab1 WHERE NOT col1 IN ( ( + 34 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-9402
SELECT - 32 - COUNT ( * ) FROM tab1 WHERE NOT col1 IN ( ( + 34 ) )
----
-35

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND + col1 + 54
----

query I rowsort
SELECT ALL + 88 * - + col0 AS col1 FROM tab1 AS cor0
----
-4488
-7480
-8008

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - - col0 + + 79 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * - 77 AS col2 FROM tab2 AS cor0
----
-1771
-3080
-4466

query I rowsort
SELECT - + col2 * - 61 AS col2 FROM tab1 cor0
----
3599
4148
5856

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT - COUNT( * ) * + MAX( ALL - 28 ) * 86 FROM tab0 AS cor0
----
7224

skipif mysql # not compatible
query I rowsort label-9408
SELECT - COUNT ( * ) * + MAX ( ALL - 28 ) * 86 FROM tab0 AS cor0
----
7224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9409
SELECT DISTINCT CAST( 50 AS SIGNED ) DIV - - ( + MIN( - ( ( + col2 ) ) ) ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9409
SELECT DISTINCT CAST ( 50 AS INTEGER ) / - - ( + MIN ( - ( ( + col2 ) ) ) ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9410
SELECT + - col1 * + col2 * CAST( NULL AS SIGNED ) * + ( col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9410
SELECT + - col1 * + col2 * CAST ( NULL AS INTEGER ) * + ( col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - 86 ) FROM tab0
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT SUM( DISTINCT col1 ) * - 76 FROM tab2 WHERE NOT + - 96 NOT BETWEEN ( - col0 * - 37 ) AND ( 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9412
SELECT SUM ( DISTINCT col1 ) * - 76 FROM tab2 WHERE NOT + - 96 NOT BETWEEN ( - col0 * - 37 ) AND ( 31 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 * + col0 / col1 + + 69 + col0 IN ( + col1 )
----

query I rowsort
SELECT ALL + col2 * - col0 * + col0 AS col0 FROM tab2
----
-163840
-326250
-48668

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 60 ) BETWEEN col0 - col0 AND NULL
----

query I rowsort
SELECT ALL col2 + col0 - - col1 AS col1 FROM tab0 AS cor0
----
118
143
197

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 17 <= ( NULL )
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE - col1 NOT IN ( + ( - - 23 ) + ( col0 ) * col1 )
----
23
40
58

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE + 10 < - + col2 * + col2 - ( 20 ) * - 34
----
51

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL < + col1
----

query I rowsort
SELECT - + 41 * col2 + - 26 AS col1 FROM tab0 AS cor0
----
-1953
-4085
-436

query I rowsort
SELECT DISTINCT - col2 + - col1 - + col1 FROM tab1 AS cor0
----
-124
-162
-69

query I rowsort
SELECT col1 * - - col1 + - - ( 82 ) + - 39 + + col2 * + 74 FROM tab0
----
10082
1224
7370

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9424
SELECT ALL + 11 AS col0, CAST( NULL AS SIGNED ) col1 FROM tab1
----
11
NULL
11
NULL
11
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9424
SELECT ALL + 11 AS col0, CAST ( NULL AS INTEGER ) col1 FROM tab1
----
11
NULL
11
NULL
11
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT ALL COUNT( - 48 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9425
SELECT ALL COUNT ( - 48 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9426
SELECT DISTINCT + col2 - + col2 FROM tab0 WHERE NOT NULL NOT IN ( + CAST( - + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9426
SELECT DISTINCT + col2 - + col2 FROM tab0 WHERE NOT NULL NOT IN ( + CAST ( - + col2 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9427
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - + 38 )
----

skipif mysql # not compatible
query I rowsort label-9427
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - + 38 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9428
SELECT ALL - - CAST( NULL AS SIGNED ) / 32 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL - - CAST ( NULL AS INTEGER ) / 32 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9429
SELECT + 71 AS col0, + 26 DIV col0 AS col0 FROM tab2 cor0
----
71
0
71
0
71
0

skipif mysql # not compatible
query II rowsort label-9429
SELECT + 71 AS col0, + 26 / col0 AS col0 FROM tab2 cor0
----
71
0
71
0
71
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9430
SELECT DISTINCT col2 DIV - + col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9430
SELECT DISTINCT col2 / - + col0 FROM tab1 AS cor0
----
-1
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 42 IS NULL
----

query I rowsort
SELECT DISTINCT - - 36 AS col2 FROM tab0 AS cor0
----
36

query I rowsort
SELECT DISTINCT + ( + ( - col0 ) ) + 65 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT + + ( - - col2 ) + + col2 FROM tab1 AS cor0
----
118
136
192

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT NULL = NULL )
----

query I rowsort
SELECT DISTINCT 2 + + + 5 AS col1 FROM tab0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9437
SELECT DISTINCT 8 * - CAST( - COUNT( + col0 ) AS SIGNED ) + 94 FROM tab2
----
118

skipif mysql # not compatible
query I rowsort label-9437
SELECT DISTINCT 8 * - CAST ( - COUNT ( + col0 ) AS INTEGER ) + 94 FROM tab2
----
118

query I rowsort
SELECT - 86 + - 12 + + 43 AS col1 FROM tab1
----
-55
-55
-55

query III rowsort
SELECT * FROM tab2 WHERE + 23 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9440
SELECT ALL - 89 * + CAST( col2 AS SIGNED ) - + col1 + + - 42 FROM tab1
----
-5298
-6141
-8600

skipif mysql # not compatible
query I rowsort label-9440
SELECT ALL - 89 * + CAST ( col2 AS INTEGER ) - + col1 + + - 42 FROM tab1
----
-5298
-6141
-8600

query I rowsort
SELECT - 45 AS col1 FROM tab2, tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 6 + + col2 AS col1 FROM tab2 AS cor0
----
17
34
52

onlyif mysql # aggregate syntax: 
query II rowsort label-9443
SELECT COUNT( * ) AS col1, MIN( - 0 ) AS col1 FROM tab0 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-9443
SELECT COUNT ( * ) AS col1, MIN ( - 0 ) AS col1 FROM tab0 AS cor0
----
3
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 87 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + - col2 FROM tab1 WHERE + - col1 * - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT ALL - MIN( + + 91 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9446
SELECT ALL - MIN ( + + 91 ) AS col1 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NOT ( - col0 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL 20 * 36 * + - ( + col2 ) FROM tab1
----
-42480
-48960
-69120

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> + 46 + - + col0
----

query I rowsort
SELECT DISTINCT 38 * - - col0 AS col1 FROM tab1
----
1938
3230
3458

query I rowsort
SELECT - col0 + + 52 AS col0 FROM tab2
----
-12
-23
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9452
SELECT ALL + COUNT( 31 ) * - COUNT( * ) DIV - 71 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9452
SELECT ALL + COUNT ( 31 ) * - COUNT ( * ) / - 71 FROM tab1
----
0

query I rowsort
SELECT + 26 + - col0 * col1 AS col0 FROM tab1
----
-399
-4251
-688

query I rowsort
SELECT col0 + 60 * + - col0 + col2 + - col2 * - col2 AS col1 FROM tab1
----
-1475
-677
6303

query I rowsort
SELECT col2 + - 94 FROM tab0
----
-47
-84
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9456
SELECT - 44 * + + MIN( col1 ) + - + COUNT( * ) - 65 DIV 33 AS col1, 66 + + 99 FROM tab2
----
-2248
165

skipif mysql # not compatible
query II rowsort label-9456
SELECT - 44 * + + MIN ( col1 ) + - + COUNT ( * ) - 65 / 33 AS col1, 66 + + 99 FROM tab2
----
-2248
165

query I rowsort
SELECT DISTINCT + col0 * + col0 + - col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT ALL + COUNT( * ) * 47 * 43 FROM tab1 AS cor0 WHERE col1 >= col0
----
0

skipif mysql # not compatible
query I rowsort label-9458
SELECT ALL + COUNT ( * ) * 47 * 43 FROM tab1 AS cor0 WHERE col1 >= col0
----
0

query I rowsort
SELECT ALL col1 * col1 + + - 72 - + col2 + + col0 + + col1 + col1 + - ( col0 ) * col0 FROM tab2 AS cor0
----
-1057
1939
538

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 11 * 6 * + 83 ) IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9461
SELECT DISTINCT COUNT( * ) DIV SUM( + col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9461
SELECT DISTINCT COUNT ( * ) / SUM ( + col0 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9462
SELECT + MAX( DISTINCT + + 16 ) AS col0, + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
16
9

skipif mysql # not compatible
query II rowsort label-9462
SELECT + MAX ( DISTINCT + + 16 ) AS col0, + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
16
9

query I rowsort
SELECT DISTINCT 11 * + col0 AS col2 FROM tab1
----
1001
561
935

query I rowsort
SELECT + col2 + ( + col1 ) FROM tab0
----
100
128
31

onlyif mysql # DIV for integer division: 
query I rowsort label-9465
SELECT ALL - col1 DIV col0 col1 FROM tab0
----
-5
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9465
SELECT ALL - col1 / col0 col1 FROM tab0
----
-5
0
0

query I rowsort
SELECT - - col0 + + col1 * 23 FROM tab0 AS cor0
----
120
1878
570

query I rowsort
SELECT ( - - col1 ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9468
SELECT + CAST( NULL AS DECIMAL ) + + col1, + col0 AS col2 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-9468
SELECT + CAST ( NULL AS REAL ) + + col1, + col0 AS col2 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 cor0 WHERE NOT col1 IN ( 1, col2 )
----
10
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT COUNT( * ) + + 32 + COUNT( * ) FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-9470
SELECT COUNT ( * ) + + 32 + COUNT ( * ) FROM tab2 AS cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT DISTINCT COUNT( * ) - + 75 AS col2 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-9471
SELECT DISTINCT COUNT ( * ) - + 75 AS col2 FROM tab0
----
-72

query I rowsort
SELECT + 15 FROM tab1 WHERE NULL >= - col0 + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 IN ( - ( - col1 ), - col1 * col2, - col1 ) AND ( + col1 ) NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT + col0 + - col2 AS col0 FROM tab1 WHERE + ( + + col1 ) BETWEEN - col1 + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT - MAX( DISTINCT - - 86 ) FROM tab1 cor0
----
-86

skipif mysql # not compatible
query I rowsort label-9475
SELECT - MAX ( DISTINCT - - 86 ) FROM tab1 cor0
----
-86

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * + + col0 <= + 37
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 40 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 JOIN tab1 cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query II rowsort
SELECT DISTINCT 55 AS col0, 9 + - - col0 FROM tab2
----
55
55
55
73
55
84

query I rowsort
SELECT - + col2 AS col0 FROM tab0 WHERE NOT + col1 * - 42 + + + col0 + + ( - col0 ) NOT IN ( - + col0, col0 )
----

query I rowsort
SELECT ALL - - AVG ( ALL + + col2 ) AS col0 FROM tab1 AS cor0 WHERE - col1 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - - col0 AS col2 FROM tab0 cor0 WHERE NOT col2 <> + + 16
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9483
SELECT DISTINCT MAX( DISTINCT - CAST( + col0 AS SIGNED ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-9483
SELECT DISTINCT MAX ( DISTINCT - CAST ( + col0 AS INTEGER ) ) FROM tab0
----
-15

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = 54
----

query I rowsort
SELECT DISTINCT + col0 * - 82 AS col2 FROM tab0
----
-1230
-7134
-7954

onlyif mysql # DIV for integer division: 
query I rowsort label-9486
SELECT 22 * - col0 DIV col0 * - col0 AS col0 FROM tab0
----
1914
2134
330

skipif mysql # not compatible
query I rowsort label-9486
SELECT 22 * - col0 / col0 * - col0 AS col0 FROM tab0
----
1914
2134
330

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9487
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 71 / col1 * - 23 * 7 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9487
SELECT DISTINCT CAST ( NULL AS REAL ) * - 71 / col1 * - 23 * 7 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9488
SELECT ALL - + 69 * + + CAST( col2 AS SIGNED ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL - + 69 * + + CAST ( col2 AS INTEGER ) FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9489
SELECT - - CAST( NULL AS SIGNED ) col1 FROM tab0 WHERE ( NOT ( NOT + + 61 IS NOT NULL ) )
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9489
SELECT - - CAST ( NULL AS INTEGER ) col1 FROM tab0 WHERE ( NOT ( NOT + + 61 IS NOT NULL ) )
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * + 49 AS col0 FROM tab1
----
-2499
-4165
-4459

query I rowsort
SELECT DISTINCT - 98 AS col1 FROM tab0, tab0 AS cor0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT ALL - ( + + ( + COUNT( * ) ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9492
SELECT ALL - ( + + ( + COUNT ( * ) ) ) AS col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 13 + + + col0 IS NULL
----

query II rowsort
SELECT - col2 + - col2 AS col2, col0 FROM tab0 cor0
----
-198
97
-20
87
-94
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9495
SELECT - 81 DIV col1 + + 33 FROM tab1 AS cor0
----
17
28
32

skipif mysql # not compatible
query I rowsort label-9495
SELECT - 81 / col1 + + 33 FROM tab1 AS cor0
----
17
28
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9496
SELECT ALL * FROM tab1 cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9496
SELECT ALL * FROM tab1 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + col0 ) + + col0 * - 34 * + col2 FROM tab2
----
-147975
-36018
-87104

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT ALL 21 + + + MAX( DISTINCT - col0 ) AS col0 FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL 21 + + + MAX ( DISTINCT - col0 ) AS col0 FROM tab2
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9499
SELECT DISTINCT COUNT( * ) + + + CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9499
SELECT DISTINCT COUNT ( * ) + + + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9500
SELECT + CAST( + - col0 AS SIGNED ) * + col1 + + + col2 FROM tab0
----
-1168
-1817
2

skipif mysql # not compatible
query I rowsort label-9500
SELECT + CAST ( + - col0 AS INTEGER ) * + col1 + + + col2 FROM tab0
----
-1168
-1817
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9501
SELECT DISTINCT 19 - - + col1 DIV - - ( - CAST( + 7 AS SIGNED ) ) FROM tab1 AS cor0
----
13
17
19

skipif mysql # not compatible
query I rowsort label-9501
SELECT DISTINCT 19 - - + col1 / - - ( - CAST ( + 7 AS INTEGER ) ) FROM tab1 AS cor0
----
13
17
19

query II rowsort
SELECT DISTINCT - - col0 AS col2, + 76 AS col0 FROM tab0 AS cor0
----
15
76
87
76
97
76

query I rowsort
SELECT col2 - - col1 AS col1 FROM tab1 AS cor0
----
110
115
64

query III rowsort
SELECT * FROM tab0 WHERE + col2 NOT IN ( - col1 + 22 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col2 * 28 * + - col2 * + 73 AS col1, + col0 FROM tab2
----
-1081276
46
-3270400
64
-6876016
75

query I rowsort
SELECT - col2 * + + ( + + col1 ) FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT ALL + MAX( + col2 ) AS col1 FROM tab0 WHERE NOT ( NOT + col2 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9507
SELECT ALL + MAX ( + col2 ) AS col1 FROM tab0 WHERE NOT ( NOT + col2 IS NULL )
----
NULL

query I rowsort
SELECT DISTINCT - + ( + - 82 ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT DISTINCT MIN( DISTINCT 76 ) AS col2 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-9509
SELECT DISTINCT MIN ( DISTINCT 76 ) AS col2 FROM tab2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9510
SELECT DISTINCT + CAST( NULL AS SIGNED ) + SUM( ALL + - 22 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9510
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + SUM ( ALL + - 22 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9511
SELECT ALL - CAST( NULL AS SIGNED ) * ( + 70 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9511
SELECT ALL - CAST ( NULL AS INTEGER ) * ( + 70 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT + SUM( ALL - col1 ) col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9512
SELECT + SUM ( ALL - col1 ) col2 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT ALL + col0 * + + ( ( + + col2 ) ) + + 67 + + 42 AS col2 FROM tab1 AS cor0
----
5005
5124
6297

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 6 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT DISTINCT - - MIN( + + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9515
SELECT DISTINCT - - MIN ( + + col2 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT col2 * - 64 * + col1 * + - col2 + col1 FROM tab0
----
11451537
134421
627265

query II rowsort
SELECT ALL - ( col1 ), - col1 AS col1 FROM tab2
----
-51
-51
-67
-67
-77
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-9518
SELECT + COUNT( * ), 4 * 58 AS col0 FROM tab1
----
3
232

skipif mysql # not compatible
query II rowsort label-9518
SELECT + COUNT ( * ), 4 * 58 AS col0 FROM tab1
----
3
232

onlyif mysql # aggregate syntax: 
query II rowsort label-9519
SELECT MIN( DISTINCT + col1 ), 65 AS col2 FROM tab0
----
1
65

skipif mysql # not compatible
query II rowsort label-9519
SELECT MIN ( DISTINCT + col1 ), 65 AS col2 FROM tab0
----
1
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9520
SELECT DISTINCT + - CAST( 71 AS SIGNED ) FROM tab1 WHERE NOT - col2 IS NULL
----
-71

skipif mysql # not compatible
query I rowsort label-9520
SELECT DISTINCT + - CAST ( 71 AS INTEGER ) FROM tab1 WHERE NOT - col2 IS NULL
----
-71

query III rowsort
SELECT * FROM tab2 cor0 WHERE - ( col1 ) >= - ( + col0 )
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT - SUM( ALL - 86 ) FROM tab1 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-9522
SELECT - SUM ( ALL - 86 ) FROM tab1 AS cor0
----
258

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9523
SELECT col2, col0 * + + ( - CAST( NULL AS SIGNED ) ) + + col2 AS col1 FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-9523
SELECT col2, col0 * + + ( - CAST ( NULL AS INTEGER ) ) + + col2 AS col1 FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9524
SELECT ALL - - COUNT( * ) DIV 30, 25 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0
25

skipif mysql # not compatible
query II rowsort label-9524
SELECT ALL - - COUNT ( * ) / 30, 25 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9525
SELECT - 18 - + 80 DIV + + COUNT( * ) AS col2 FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-9525
SELECT - 18 - + 80 / + + COUNT ( * ) AS col2 FROM tab2
----
-44

query I rowsort
SELECT col0 * + col0 + + col2 AS col0 FROM tab0 AS cor0
----
272
7579
9508

query I rowsort
SELECT DISTINCT + col2 * + 65 AS col1 FROM tab0 AS cor0
----
3055
6435
650

query I rowsort
SELECT DISTINCT - col0 * - + 70 FROM tab2 AS cor0
----
3220
4480
5250

query I rowsort
SELECT + - col1 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT - ( - + COUNT( * ) ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9530
SELECT - ( - + COUNT ( * ) ) col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT DISTINCT - SUM( - col1 ) col1 FROM tab2
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9531
SELECT DISTINCT - SUM ( - col1 ) col1 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query II rowsort label-9532
SELECT - 64, COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL >= + col2
----
-64
0

skipif mysql # not compatible
query II rowsort label-9532
SELECT - 64, COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL >= + col2
----
-64
0

query I rowsort
SELECT DISTINCT + - 20 * col1 FROM tab0 AS cor0
----
-1620
-20
-420

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9534
SELECT + col1 * - CAST( NULL AS SIGNED ) AS col1, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-9534
SELECT + col1 * - CAST ( NULL AS INTEGER ) AS col1, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col2 * col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9536
SELECT ALL col0 * - - CAST( + 9 AS SIGNED ) * + col1 AS col0 FROM tab0
----
10935
16443
873

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL col0 * - - CAST ( + 9 AS INTEGER ) * + col1 AS col0 FROM tab0
----
10935
16443
873

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9537
SELECT ALL - col0 + + + CAST( NULL AS SIGNED ) + - - col0 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL - col0 + + + CAST ( NULL AS INTEGER ) + - - col0 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col0 AND - - 35
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 9 / - col0 * + + 2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( + 94 ) AS col0 FROM tab0 AS cor0
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT + 53 + - 98 * - COUNT( * ) FROM tab1 AS cor0 WHERE + 92 BETWEEN - col2 * + col0 AND + col1
----
53

skipif mysql # not compatible
query I rowsort label-9541
SELECT + 53 + - 98 * - COUNT ( * ) FROM tab1 AS cor0 WHERE + 92 BETWEEN - col2 * + col0 AND + col1
----
53

query I rowsort
SELECT + ( - - 92 ) AS col1 FROM tab0 AS cor0 WHERE + 53 IS NOT NULL
----
92
92
92

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * + col2 IS NULL
----

query I rowsort
SELECT ALL + col1 + 74 FROM tab2
----
125
141
151

query I rowsort
SELECT - col0 * - 42 * + ( 80 ) + + 7 / - - col2 - - col2 FROM tab1 WHERE ( - - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT DISTINCT + SUM( + - col2 ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-9546
SELECT DISTINCT + SUM ( + - col2 ) AS col2 FROM tab1
----
-223

onlyif mysql # DIV for integer division: 
query I rowsort label-9547
SELECT DISTINCT - 4 DIV + - 3 + - + col2 - + col1 AS col1 FROM tab0 WHERE NOT 94 >= col0
----
-99

skipif mysql # not compatible
query I rowsort label-9547
SELECT DISTINCT - 4 / + - 3 + - + col2 - + col1 AS col1 FROM tab0 WHERE NOT 94 >= col0
----
-99

query I rowsort
SELECT - col0 + + 28 FROM tab2 cor0
----
-18
-36
-47

query I rowsort
SELECT ALL + - 54 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query I rowsort
SELECT 67 * - 31 * - 35 FROM tab1
----
72695
72695
72695

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT ALL - SUM( DISTINCT + 21 ) col1 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9551
SELECT ALL - SUM ( DISTINCT + 21 ) col1 FROM tab0 AS cor0
----
-21

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + 43 = NULL
----

query I rowsort
SELECT ALL ( - 35 ) AS col2 FROM tab1 AS cor0
----
-35
-35
-35

query II rowsort
SELECT col2, - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 + - col2 FROM tab1 AS cor0 WHERE NOT - ( + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9556
SELECT CAST( NULL AS SIGNED ) * + 86 * - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9556
SELECT CAST ( NULL AS INTEGER ) * + 86 * - COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9557
SELECT + - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9557
SELECT + - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * + 30 * + 25 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9559
SELECT DISTINCT - + COUNT( * ), + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-9559
SELECT DISTINCT - + COUNT ( * ), + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3
NULL

query I rowsort
SELECT DISTINCT + ( 44 ) * - 24 FROM tab0
----
-1056

query III rowsort
SELECT ALL * FROM tab2 WHERE + 72 NOT BETWEEN NULL AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - - ( 13 ) ) FROM tab2
----
13
13
13

query I rowsort
SELECT ALL - ( - 76 ) * + + 45 - 47 AS col2 FROM tab1
----
3373
3373
3373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT 62 * - col0 + 47 - col1 AS col0, + 5 col0, - + col1 AS col0 FROM tab2 cor0 WHERE NOT + 31 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9565
SELECT ALL COUNT( 7 ) AS col0, MIN( + 20 ) AS col2 FROM tab2 AS cor0
----
3
20

skipif mysql # not compatible
query II rowsort label-9565
SELECT ALL COUNT ( 7 ) AS col0, MIN ( + 20 ) AS col2 FROM tab2 AS cor0
----
3
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT ALL + + COUNT( - 34 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9566
SELECT ALL + + COUNT ( - 34 ) AS col1 FROM tab2 cor0
----
3

query I rowsort
SELECT ALL ( + + 83 ) AS col2 FROM tab0 AS cor0
----
83
83
83

query I rowsort
SELECT DISTINCT 19 * + col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9569
SELECT - 33 DIV col0 DIV - + col2 AS col1, - col2 AS col2 FROM tab1
----
0
-59
0
-68
0
-96

skipif mysql # not compatible
query II rowsort label-9569
SELECT - 33 / col0 / - + col2 AS col1, - col2 AS col2 FROM tab1
----
0
-59
0
-68
0
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 62 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9571
SELECT ALL * FROM tab1 WHERE NOT + ( + col2 ) * 8 + - ( + - col2 ) NOT IN ( CAST( - col1 AS SIGNED ), col1 * - 31, col1, col2 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9571
SELECT ALL * FROM tab1 WHERE NOT + ( + col2 ) * 8 + - ( + - col2 ) NOT IN ( CAST ( - col1 AS INTEGER ), col1 * - 31, col1, col2 * CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9572
SELECT + 41 AS col0, - COUNT( * ) FROM tab1
----
41
-3

skipif mysql # not compatible
query II rowsort label-9572
SELECT + 41 AS col0, - COUNT ( * ) FROM tab1
----
41
-3

query II rowsort
SELECT ALL col2 + - ( + 12 ), col2 AS col1 FROM tab1 AS cor0
----
47
59
56
68
84
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9574
SELECT col2 * - + 99 * - - 50 + + + col0 * + - CAST( + col1 AS SIGNED ) + + col1 * + col0 * + col1 + + col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-139767
-290265
-465867

skipif mysql # not compatible
query I rowsort label-9574
SELECT col2 * - + 99 * - - 50 + + + col0 * + - CAST ( + col1 AS INTEGER ) + + col1 * + col0 * + col1 + + col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-139767
-290265
-465867

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9575
SELECT ALL - CAST( NULL AS SIGNED ) / - - ( - col0 ) FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL - CAST ( NULL AS INTEGER ) / - - ( - col0 ) FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9576
SELECT ALL + + CAST( NULL AS DECIMAL ) + - - 72 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9576
SELECT ALL + + CAST ( NULL AS REAL ) + - - 72 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) + + 19 + 76 col2 FROM tab0
----
105
142
194

query I rowsort
SELECT ALL col1 * + ( - 45 ) AS col0 FROM tab0
----
-3645
-45
-945

query I rowsort
SELECT col1 * - 43 + + col0 AS col0 FROM tab1
----
-130
-1930
-551

query I rowsort
SELECT ALL 74 + - ( ( col2 ) ) AS col2 FROM tab1
----
-22
15
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 - - col2 AS col0, 46 + col1 col0 FROM tab2
----
104
123
133
113
69
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9582
SELECT - 20 * CAST( NULL AS DECIMAL ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9582
SELECT - 20 * CAST ( NULL AS REAL ) col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9583
SELECT ALL col2 * + col1 - - - col2 + 4 * 0 * + col0 DIV + col0 FROM tab1
----
1248
236
3128

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL col2 * + col1 - - - col2 + 4 * 0 * + col0 / + col0 FROM tab1
----
1248
236
3128

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE 64 NOT BETWEEN NULL AND col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE 62 * - col0 * + col2 = col0 + + + col0 - + - col2 - - col0 / col1 / + col2
----
0

skipif mysql # not compatible
query I rowsort label-9585
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE 62 * - col0 * + col2 = col0 + + + col0 - + - col2 - - col0 / col1 / + col2
----
0

query I rowsort
SELECT 52 - - + col1 FROM tab1 AS cor0
----
57
66
99

query I rowsort
SELECT - col0 - + ( + - 99 ) FROM tab0 AS cor0
----
12
2
84

query II rowsort
SELECT 49, col0 + + col2 AS col2 FROM tab0
----
49
196
49
62
49
97

query I rowsort
SELECT DISTINCT - ( + col1 ) * - col2 + + col1 FROM tab0 WHERE NULL <> NULL
----

query I rowsort
SELECT + 15 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT DISTINCT MAX( ALL + 51 ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-9591
SELECT DISTINCT MAX ( ALL + 51 ) FROM tab0
----
51

query I rowsort
SELECT ALL 99 * + - col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9593
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-9593
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT - - MAX( - - 64 ) AS col2 FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-9594
SELECT - - MAX ( - - 64 ) AS col2 FROM tab2 AS cor0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9595
SELECT col0, col0 + + - CAST( + - col0 AS SIGNED ) * + col1 FROM tab1 AS cor0 WHERE NOT ( - col1 * - + col2 + col0 ) IS NULL
----
51
765
85
510
91
4368

skipif mysql # not compatible
query II rowsort label-9595
SELECT col0, col0 + + - CAST ( + - col0 AS INTEGER ) * + col1 FROM tab1 AS cor0 WHERE NOT ( - col1 * - + col2 + col0 ) IS NULL
----
51
765
85
510
91
4368

query I rowsort
SELECT DISTINCT 37 * - 61 AS col0 FROM tab0 cor0
----
-2257

query I rowsort
SELECT ALL + + col2 * - col2 FROM tab0 AS cor0 WHERE col2 + + 91 <= - 78
----

query I rowsort
SELECT ALL - + ( - 62 ) FROM tab0 AS cor0
----
62
62
62

query I rowsort
SELECT col2 * 59 * + 16 AS col1 FROM tab2 cor0
----
21712
37760
54752

query I rowsort
SELECT 56 * col0 AS col0 FROM tab0 AS cor0
----
4872
5432
840

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT - MIN( ALL - - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-9601
SELECT - MIN ( ALL - - col1 ) FROM tab1
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 35 col0 FROM tab0 WHERE NOT - 91 IS NOT NULL
----

query I rowsort
SELECT + ( + + 93 ) FROM tab1
----
93
93
93

query I rowsort
SELECT col2 * - + col1 * - 86 AS col0 FROM tab0
----
18060
327402
8514

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9605
SELECT DISTINCT - CAST( + col1 AS SIGNED ) * - col1 * - - col0 AS col2 FROM tab1
----
201019
2125
9996

skipif mysql # not compatible
query I rowsort label-9605
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) * - col1 * - - col0 AS col2 FROM tab1
----
201019
2125
9996

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT DISTINCT - 58 * - COUNT( * ) FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-9606
SELECT DISTINCT - 58 * - COUNT ( * ) FROM tab0
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9607
SELECT ALL + col0, - col1 - CAST( NULL AS SIGNED ) * - + 76 FROM tab1 cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-9607
SELECT ALL + col0, - col1 - CAST ( NULL AS INTEGER ) * - + 76 FROM tab1 cor0
----
51
NULL
85
NULL
91
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9608
SELECT ALL - ( CAST( NULL AS SIGNED ) ) * - - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) * - - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT - COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-9609
SELECT - COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 75 / + 55 > + + 62
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT + 40 AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9612
SELECT - 26 DIV + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9612
SELECT - 26 / + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 47 AS col2 FROM tab1 AS cor0 WHERE col0 * + col1 IS NOT NULL
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT ALL - + SUM( DISTINCT - - col2 ) FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL - + SUM ( DISTINCT - - col2 ) FROM tab0 cor0
----
-156

query II rowsort
SELECT DISTINCT col2 AS col2, col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
23
40
40
58
58

query I rowsort
SELECT 65 * + + col0 AS col1 FROM tab2 AS cor0
----
2990
4160
4875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9617
SELECT - - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9617
SELECT - - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col0 + 66 AS col1 FROM tab0 AS cor0
----
153
163
81

query I rowsort
SELECT ALL col0 - + - ( + col1 ) AS col1 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT - 30 - 95 FROM tab2
----
-125
-125
-125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9621
SELECT ALL CAST( NULL AS SIGNED ) + 8 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL CAST ( NULL AS INTEGER ) + 8 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 - + col2 AS col0 FROM tab0
----
-196
-62
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9623
SELECT - col1 * CAST( - col2 AS SIGNED ) + + - ( - - col0 ) FROM tab2
----
1127
3016
3811

skipif mysql # not compatible
query I rowsort label-9623
SELECT - col1 * CAST ( - col2 AS INTEGER ) + + - ( - - col0 ) FROM tab2
----
1127
3016
3811

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT MIN( ALL - 98 ) * + + COUNT( * ) + - - 46 AS col0 FROM tab1
----
-248

skipif mysql # not compatible
query I rowsort label-9624
SELECT MIN ( ALL - 98 ) * + + COUNT ( * ) + - - 46 AS col0 FROM tab1
----
-248

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + + col1 * 51 col1, col0 * + + 32 col1 FROM tab0
----
-48
3104
1061
2784
4084
480

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT - - COUNT( * ) * + COUNT( * ) - + 50 AS col0 FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-9626
SELECT - - COUNT ( * ) * + COUNT ( * ) - + 50 AS col0 FROM tab1 AS cor0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9627
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( - col2 / 99 - - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9627
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( - col2 / 99 - - - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9628
SELECT DISTINCT col2 DIV - - col2 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9628
SELECT DISTINCT col2 / - - col2 AS col2 FROM tab2
----
1

query I rowsort
SELECT - 57 AS col2 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT ALL COUNT( DISTINCT - 43 ) * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL COUNT ( DISTINCT - 43 ) * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9631
SELECT + CAST( NULL AS SIGNED ) * + 63 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9631
SELECT + CAST ( NULL AS INTEGER ) * + 63 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9632
SELECT DISTINCT + ( COUNT( * ) ), + ( + 76 ) * 9 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
-2052

skipif mysql # not compatible
query II rowsort label-9632
SELECT DISTINCT + ( COUNT ( * ) ), + ( + 76 ) * 9 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
-2052

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 36 > - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9634
SELECT ( + ( - col0 ) ) DIV + ( - + ( col0 ) ) + col2 col0 FROM tab0
----
100
11
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9634
SELECT ( + ( - col0 ) ) / + ( - + ( col0 ) ) + col2 col0 FROM tab0
----
100
11
48

query I rowsort
SELECT ALL - 97 * - 77 AS col2 FROM tab2
----
7469
7469
7469

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT ALL - SUM( + col0 ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL - SUM ( + col0 ) AS col0 FROM tab2
----
-185

onlyif mysql # aggregate syntax: 
query II rowsort label-9637
SELECT DISTINCT + 45, - COUNT( DISTINCT + 9 ) - - 45 AS col0 FROM tab0 AS cor0
----
45
44

skipif mysql # not compatible
query II rowsort label-9637
SELECT DISTINCT + 45, - COUNT ( DISTINCT + 9 ) - - 45 AS col0 FROM tab0 AS cor0
----
45
44

query II rowsort
SELECT DISTINCT - col0 AS col1, ( + - 17 ) AS col0 FROM tab2 cor0
----
-46
-17
-64
-17
-75
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9639
SELECT ALL + CAST( + 1 AS SIGNED ) FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL + CAST ( + 1 AS INTEGER ) FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - - col2 * - 74 AS col1 FROM tab0 AS cor0
----
-3478
-7326
-740

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col2 ) = - - 74 + - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9642
SELECT - + ( col2 ) DIV - + col2 + - col0 FROM tab2 AS cor0
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-9642
SELECT - + ( col2 ) / - + col2 + - col0 FROM tab2 AS cor0
----
-45
-63
-74

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - 0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 BETWEEN 99 AND NULL
----

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NULL >= 22
----

query II rowsort
SELECT DISTINCT - col2, - 97 AS col0 FROM tab2 AS cor0
----
-23
-97
-40
-97
-58
-97

query I rowsort
SELECT ALL - col1 + - - 23 AS col1 FROM tab1 AS cor0
----
-24
18
9

query I rowsort
SELECT 34 * - - col1 * - + col1 AS col0 FROM tab1
----
-6664
-75106
-850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 48 - - col2 col2 FROM tab2
----
-1081
-1880
-2726

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT - COUNT( ALL 11 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9650
SELECT - COUNT ( ALL 11 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9651
SELECT ( - col0 ) * - - 53 - CAST( - + col1 AS SIGNED ) AS col1, col2 FROM tab2
----
-2387
23
-3315
40
-3908
58

skipif mysql # not compatible
query II rowsort label-9651
SELECT ( - col0 ) * - - 53 - CAST ( - + col1 AS INTEGER ) AS col1, col2 FROM tab2
----
-2387
23
-3315
40
-3908
58

query I rowsort
SELECT - 0 * + col0 - - col1 * + col2 FROM tab0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9653
SELECT - + col0 * - 20 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9653
SELECT - + col0 * - 20 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9654
SELECT DISTINCT 11 * 12 DIV col2 * + col1 col2 FROM tab2 AS cor0
----
134
231
255

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9654
SELECT DISTINCT 11 * 12 / col2 * + col1 col2 FROM tab2 AS cor0
----
134
231
255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 93 col1 FROM tab1 AS cor0
----
1302
4371
465

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 <= 91
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - + 51 ) * col2 col1 FROM tab2 AS cor0
----
-1173
-2040
-2958

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT ALL 13 + - + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) <> - - 79 + - col2
----
13

skipif mysql # not compatible
query I rowsort label-9658
SELECT ALL 13 + - + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) <> - - 79 + - col2
----
13

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 * + col2 + - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT - COUNT( * ) * + - 4 col2 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9660
SELECT - COUNT ( * ) * + - 4 col2 FROM tab2 AS cor0
----
12

query I rowsort
SELECT col2 * - 7 * 23 FROM tab2
----
-3703
-6440
-9338

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( - - col2 ) NOT IN ( + col2, + 60, ( + 78 ) / + 68 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0 * 40 AS col1, + ( - + col1 ) - + - col0 AS col1 FROM tab2
----
1840
-5
2560
-13
3000
8

query I rowsort
SELECT DISTINCT - + col1 + + - col1 - + col0 AS col1 FROM tab2 AS cor0
----
-148
-209
-218

query I rowsort
SELECT DISTINCT - + ( col2 ) + col0 FROM tab1 AS cor0
----
-45
23
26

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 11 >= + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9667
SELECT col2 / - CAST( - col0 AS SIGNED ) * col0 / + CAST( NULL AS SIGNED ) * + + CAST( + - col0 AS SIGNED ) * + col0 + col2 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9667
SELECT col2 / - CAST ( - col0 AS INTEGER ) * col0 / + CAST ( NULL AS INTEGER ) * + + CAST ( + - col0 AS INTEGER ) * + col0 + col2 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9668
SELECT + + col2 DIV 49 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9668
SELECT + + col2 / 49 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9669
SELECT CAST( NULL AS DECIMAL ) - + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9669
SELECT CAST ( NULL AS REAL ) - + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9670
SELECT + CAST( NULL AS SIGNED ), - 88 AS col0 FROM tab0, tab2 AS cor0
----
18 values hashing to 02b51c86535c77424170aadd18912908

skipif mysql # not compatible
query II rowsort label-9670
SELECT + CAST ( NULL AS INTEGER ), - 88 AS col0 FROM tab0, tab2 AS cor0
----
18 values hashing to 02b51c86535c77424170aadd18912908

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT DISTINCT - COUNT( * ) - 71 FROM tab0
----
-74

skipif mysql # not compatible
query I rowsort label-9671
SELECT DISTINCT - COUNT ( * ) - 71 FROM tab0
----
-74

query III rowsort
SELECT * FROM tab2 WHERE - 53 * + col2 IS NULL
----

query I rowsort
SELECT DISTINCT 54 AS col0 FROM tab1 WHERE NOT - col1 IS NULL
----
54

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 10 / + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT - ( - - MAX( ALL + + 44 ) ) FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-9675
SELECT - ( - - MAX ( ALL + + 44 ) ) FROM tab1
----
-44

query I rowsort
SELECT col1 * + col1 + - 91 * + col0 AS col1 FROM tab2 AS cor0
----
-1585
-2336
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT ALL + COUNT( - ( - - col0 ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9677
SELECT ALL + COUNT ( - ( - - col0 ) ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL 30 * - + col1 + - 36 AS col0 FROM tab1 AS cor0
----
-1446
-186
-456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9679
SELECT DISTINCT + MAX( col1 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9679
SELECT DISTINCT + MAX ( col1 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 97 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( - 65 ) FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
-65

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 92 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9683
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE ( NOT - col2 <= - - col0 )
----

skipif mysql # not compatible
query I rowsort label-9683
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE ( NOT - col2 <= - - col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9684
SELECT 82 * - 37 col0, COUNT( * ) * + 5 FROM tab0 AS cor0
----
-3034
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9684
SELECT 82 * - 37 col0, COUNT ( * ) * + 5 FROM tab0 AS cor0
----
-3034
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT ALL - SUM( col1 ) FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL - SUM ( col1 ) FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
NULL

query I rowsort
SELECT + ( + + col2 ) * - col1 * + - col0 FROM tab0 WHERE NOT NULL NOT IN ( - col2 )
----

query II rowsort
SELECT DISTINCT col0 + col1 * - 7, col2 AS col2 FROM tab0
----
-552
47
-60
10
90
99

query I rowsort
SELECT col2 + - - 40 AS col2 FROM tab0
----
139
50
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9689
SELECT + 32 * + col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9689
SELECT + 32 * + col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 > - 72
----

query I rowsort
SELECT + col1 * + + col2 AS col1 FROM tab2
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9692
SELECT * FROM tab0 WHERE + CAST( + col0 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-9692
SELECT * FROM tab0 WHERE + CAST ( + col0 AS INTEGER ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT + COUNT( * ) * + + 44 AS col1 FROM tab1 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-9693
SELECT + COUNT ( * ) * + + 44 AS col1 FROM tab1 AS cor0
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9694
SELECT DISTINCT - CAST( col2 AS SIGNED ) / - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9694
SELECT DISTINCT - CAST ( col2 AS INTEGER ) / - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IN ( - 14 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 68 IS NULL
----

query II rowsort
SELECT - 40 AS col2, - col2 FROM tab0 AS cor0
----
-40
-10
-40
-47
-40
-99

query I rowsort
SELECT DISTINCT - - col2 + - 87 AS col0 FROM tab2 cor0
----
-29
-47
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 - - 82 col0 FROM tab1
----
116
116
116

query I rowsort
SELECT 64 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 26 + col2 * - - 55 + col0 AS col0 FROM tab0 AS cor0
----
2626
5568
663

query I rowsort
SELECT ALL + + 59 AS col0 FROM tab0 AS cor0
----
59
59
59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN col2 AND - 82
----

query I rowsort
SELECT + - col0 AS col0 FROM tab0 AS cor0 WHERE - 46 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT DISTINCT + + ( - + MIN( DISTINCT col0 ) ) * - - COUNT( * ) + - SUM( DISTINCT col0 ) AS col0 FROM tab0 cor0
----
-244

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT + + ( - + MIN ( DISTINCT col0 ) ) * - - COUNT ( * ) + - SUM ( DISTINCT col0 ) AS col0 FROM tab0 cor0
----
-244

query I rowsort
SELECT + - 82 AS col2 FROM tab0 AS cor0
----
-82
-82
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 25 + col2 col0, + col2 + + + col2 + - - col2 AS col0 FROM tab0 AS cor0
----
124
297
35
30
72
141

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9708
SELECT - 98 AS col2, + 10 + + - CAST( NULL AS SIGNED ) - col1 AS col2 FROM tab0
----
-98
NULL
-98
NULL
-98
NULL

skipif mysql # not compatible
query II rowsort label-9708
SELECT - 98 AS col2, + 10 + + - CAST ( NULL AS INTEGER ) - col1 AS col2 FROM tab0
----
-98
NULL
-98
NULL
-98
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9709
SELECT - COUNT( * ) AS col0, - COUNT( ALL + col0 ) FROM tab2
----
-3
-3

skipif mysql # not compatible
query II rowsort label-9709
SELECT - COUNT ( * ) AS col0, - COUNT ( ALL + col0 ) FROM tab2
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT DISTINCT - 19 * + COUNT( * ) AS col2 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-9710
SELECT DISTINCT - 19 * + COUNT ( * ) AS col2 FROM tab0
----
-57

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col1 AND - 79
----

query I rowsort
SELECT + 7 / - col1 + ( + col0 ) AS col1 FROM tab1 WHERE NOT ( col1 + + col2 - col2 ) NOT BETWEEN 64 * col0 * + 70 + + + col2 AND + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT ALL - + 85 * + + COUNT( * ) FROM tab2 cor0
----
-255

skipif mysql # not compatible
query I rowsort label-9713
SELECT ALL - + 85 * + + COUNT ( * ) FROM tab2 cor0
----
-255

query I rowsort
SELECT ALL ( 73 ) FROM tab1 AS cor0
----
73
73
73

query I rowsort
SELECT ALL + 97 * - col0 FROM tab0
----
-1455
-8439
-9409

query I rowsort
SELECT 25 * - col1 + - col1 AS col1 FROM tab1 AS cor0
----
-1222
-130
-364

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 95 col2 FROM tab0 AS cor0 WHERE NOT 81 + + - col0 - - - col1 - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT - 15 * + + 19 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-855

skipif mysql # not compatible
query I rowsort label-9718
SELECT - 15 * + + 19 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-855

query I rowsort
SELECT col0 + col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
141
142
97

query II rowsort
SELECT + + 41 AS col1, + 4 AS col1 FROM tab0 AS cor0
----
41
4
41
4
41
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9721
SELECT ALL CAST( NULL AS SIGNED ) * + COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9721
SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL col0 * + 68 AS col1 FROM tab1
----
3468
5780
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT ALL - COUNT( * ) + - 66 * + 36 AS col1 FROM tab0
----
-2379

skipif mysql # not compatible
query I rowsort label-9723
SELECT ALL - COUNT ( * ) + - 66 * + 36 AS col1 FROM tab0
----
-2379

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9724
SELECT DISTINCT - COUNT( * ) DIV 48 col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9724
SELECT DISTINCT - COUNT ( * ) / 48 col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9725
SELECT ALL * FROM tab1 WHERE NOT ( NOT + col0 * + col1 * col0 * + col2 + + ( - col2 ) / + + col0 * + + CAST( + ( - 89 ) AS SIGNED ) < + col0 )
----

skipif mysql # not compatible
query III rowsort label-9725
SELECT ALL * FROM tab1 WHERE NOT ( NOT + col0 * + col1 * col0 * + col2 + + ( - col2 ) / + + col0 * + + CAST ( + ( - 89 ) AS INTEGER ) < + col0 )
----

query I rowsort
SELECT DISTINCT + 11 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-29
-29
-29

query I rowsort
SELECT ALL 98 - + - col0 FROM tab0
----
113
185
195

onlyif mysql # aggregate syntax: 
query II rowsort label-9729
SELECT DISTINCT COUNT( * ) AS col0, - COUNT( * ) * - ( + 24 ) FROM tab2 AS cor0
----
3
72

skipif mysql # not compatible
query II rowsort label-9729
SELECT DISTINCT COUNT ( * ) AS col0, - COUNT ( * ) * - ( + 24 ) FROM tab2 AS cor0
----
3
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) - + col0 * + 14 + 8 col2 FROM tab1 cor0
----
-1097
-1175
-655

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9731
SELECT + MAX( ALL - - col0 ) - + + COUNT( * ) * - SUM( + ( + + CAST( NULL AS DECIMAL ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9731
SELECT + MAX ( ALL - - col0 ) - + + COUNT ( * ) * - SUM ( + ( + + CAST ( NULL AS REAL ) ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col2 - + 61 FROM tab1 AS cor0
----
-2
35
7

query I rowsort
SELECT ALL + + 69 * + - col2 FROM tab2 AS cor0
----
-1587
-2760
-4002

onlyif mysql # DIV for integer division: 
query II rowsort label-9734
SELECT 86 DIV ( + + 45 ) + - 91, col0 FROM tab2 AS cor0
----
-90
46
-90
64
-90
75

skipif mysql # not compatible
query II rowsort label-9734
SELECT 86 / ( + + 45 ) + - 91, col0 FROM tab2 AS cor0
----
-90
46
-90
64
-90
75

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT - ( - col1 ) - - - col2 NOT BETWEEN col0 AND 75
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9736
SELECT DISTINCT + col1 DIV + col2 AS col1 FROM tab1 cor0 WHERE ( - col0 * - col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9736
SELECT DISTINCT + col1 / + col2 AS col1 FROM tab1 cor0 WHERE ( - col0 * - col2 ) IS NOT NULL
----
0

query II rowsort
SELECT ALL - col2 AS col2, col2 - + 26 FROM tab1 AS cor0
----
-59
33
-68
42
-96
70

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - col2 <= + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * + - col0 * col1 + - col0 - - 82 * col1 / + col2 - ( + ( col0 ) ) BETWEEN ( + 51 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT DISTINCT COUNT( * ) * 62 AS col2 FROM tab1
----
186

skipif mysql # not compatible
query I rowsort label-9740
SELECT DISTINCT COUNT ( * ) * 62 AS col2 FROM tab1
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT + 24 + COUNT( * ) * + - 0 AS col1 FROM tab1 AS cor0 WHERE NOT 61 IS NOT NULL
----
24

skipif mysql # not compatible
query I rowsort label-9741
SELECT + 24 + COUNT ( * ) * + - 0 AS col1 FROM tab1 AS cor0 WHERE NOT 61 IS NOT NULL
----
24

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 + - col0 + - + col0 + + + col0 IS NULL
----

query I rowsort
SELECT ALL 15 FROM tab1 AS cor0 WHERE NOT NULL > + 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT ALL + 36 * + MAX( DISTINCT - - 25 ) FROM tab2
----
900

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL + 36 * + MAX ( DISTINCT - - 25 ) FROM tab2
----
900

onlyif mysql # aggregate syntax: 
query II rowsort label-9745
SELECT DISTINCT COUNT( * ), 90 AS col2 FROM tab1 AS cor0
----
3
90

skipif mysql # not compatible
query II rowsort label-9745
SELECT DISTINCT COUNT ( * ), 90 AS col2 FROM tab1 AS cor0
----
3
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT + + SUM( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-9746
SELECT + + SUM ( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-103

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9747
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9747
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < + CAST ( NULL AS REAL )
----

query I rowsort
SELECT DISTINCT - 49 + - col1 + + - col0 * 44 FROM tab2 AS cor0
----
-2124
-2942
-3416

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 + - + col1 * - - 55 * + - 36 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 col1, col1 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT - COUNT( + col0 ) + - - SUM( ALL 97 ) FROM tab0 cor0
----
288

skipif mysql # not compatible
query I rowsort label-9751
SELECT - COUNT ( + col0 ) + - - SUM ( ALL 97 ) FROM tab0 cor0
----
288

query I rowsort
SELECT + col0 + - col2 * + 77 AS col2 FROM tab1
----
-4458
-5145
-7341

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9753
SELECT ALL + 26 DIV - MAX( ALL + col0 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL + 26 / - MAX ( ALL + col0 ) AS col0 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE + 37 BETWEEN + - 78 AND + + 0
----

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE + col0 * + - col1 BETWEEN + ( - 58 ) AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9756
SELECT - 21 DIV + - ( col0 ) col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9756
SELECT - 21 / + - ( col0 ) col1 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9757
SELECT + 24 AS col0 FROM tab2 WHERE + CAST( + + 69 AS SIGNED ) + - + col2 + col2 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-9757
SELECT + 24 AS col0 FROM tab2 WHERE + CAST ( + + 69 AS INTEGER ) + - + col2 + col2 BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL col2 AS col1, - col0 AS col0 FROM tab2
----
23
-46
40
-64
58
-75

query I rowsort
SELECT 74 * - 14 AS col2 FROM tab2
----
-1036
-1036
-1036

query II rowsort
SELECT DISTINCT - col1 * 66 * + - 77 * - 68 AS col1, + col1 - - col1 * - col0 AS col0 FROM tab0
----
-27991656
-1134
-345576
-96
-7257096
-1806

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE 56 / - 23 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9761
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE 56 / - 23 IS NULL
----
0

query I rowsort
SELECT ALL - 39 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) < - + col0 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9763
SELECT DISTINCT ( col2 ) * - + CAST( - col2 AS SIGNED ) - + col1 FROM tab0
----
2128
79
9800

skipif mysql # not compatible
query I rowsort label-9763
SELECT DISTINCT ( col2 ) * - + CAST ( - col2 AS INTEGER ) - + col1 FROM tab0
----
2128
79
9800

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT ALL COUNT( * ) + + 80 AS col0 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-9764
SELECT ALL COUNT ( * ) + + 80 AS col0 FROM tab1
----
83

query I rowsort
SELECT 81 + - col0 - - 69 AS col1 FROM tab0
----
135
53
63

query I rowsort
SELECT DISTINCT col0 + 34 * - col1 * + + col0 AS col1 FROM tab0
----
-3201
-41295
-62031

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT + 45 * + - 19 + - COUNT( DISTINCT + 88 ) col0 FROM tab1
----
-856

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9767
SELECT + 45 * + - 19 + - COUNT ( DISTINCT + 88 ) col0 FROM tab1
----
-856

query II rowsort
SELECT ALL - 68, + 10 * + 19 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 4d70c6ce4774b88e707ee0afea16ca55

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE NOT + 29 IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT + 35 FROM tab1 AS cor0 WHERE NOT col1 < - col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9771
SELECT DISTINCT col0 * + 56 + - + col0 DIV - 37 FROM tab0 AS cor0
----
4874
5434
840

skipif mysql # not compatible
query I rowsort label-9771
SELECT DISTINCT col0 * + 56 + - + col0 / - 37 FROM tab0 AS cor0
----
4874
5434
840

query I rowsort
SELECT - 81 * - 39 + + col0 FROM tab1 cor0
----
3210
3244
3250

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT ALL + + 98 * + + COUNT( * ) AS col2 FROM tab0 cor0
----
294

skipif mysql # not compatible
query I rowsort label-9773
SELECT ALL + + 98 * + + COUNT ( * ) AS col2 FROM tab0 cor0
----
294

query I rowsort
SELECT - + 81 * + col0 + + 77 AS col0 FROM tab2 AS cor0
----
-3649
-5107
-5998

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9775
SELECT + 94 * + + col2, - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
5546
NULL
6392
NULL
9024
NULL

skipif mysql # not compatible
query II rowsort label-9775
SELECT + 94 * + + col2, - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
5546
NULL
6392
NULL
9024
NULL

query II rowsort
SELECT col2, - col2 * + col2 AS col2 FROM tab0
----
10
-100
47
-2209
99
-9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 61 col0, - 52 FROM tab1
----
61
-52
61
-52
61
-52

query II rowsort
SELECT ALL - 75 AS col0, 28 AS col2 FROM tab0
----
-75
28
-75
28
-75
28

query I rowsort
SELECT - col1 / + ( - + 85 ) * col0 * - + 61 + col2 FROM tab0 WHERE NOT - col1 + + + col1 IS NOT NULL
----

query I rowsort
SELECT - ( + 20 ) * col0 * + + 35 * col2 * - 25 FROM tab0
----
12337500
15225000
168052500

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT DISTINCT - COUNT( DISTINCT 60 ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT - COUNT ( DISTINCT 60 ) AS col0 FROM tab1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 18 col0, col2 FROM tab2 AS cor0
----
18
23
18
40
18
58

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 62 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT - 3 * COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9784
SELECT - 3 * COUNT ( * ) FROM tab0
----
-9

query I rowsort
SELECT ALL col0 + - 67 * + col1 FROM tab2
----
-3371
-4414
-5095

query I rowsort
SELECT ALL + 44 + - col0 FROM tab1
----
-41
-47
-7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN ( - ( 42 ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT 68 * ( COUNT( * ) * - MAX( 88 ) ) FROM tab0
----
-17952

skipif mysql # not compatible
query I rowsort label-9788
SELECT 68 * ( COUNT ( * ) * - MAX ( 88 ) ) FROM tab0
----
-17952

query I rowsort
SELECT DISTINCT - ( 4 ) FROM tab0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9790
SELECT ALL * FROM tab0 WHERE 2 * col0 IN ( CAST( NULL AS SIGNED ) + col1 )
----

skipif mysql # not compatible
query III rowsort label-9790
SELECT ALL * FROM tab0 WHERE 2 * col0 IN ( CAST ( NULL AS INTEGER ) + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT - 61 + 69 * COUNT( * ) FROM tab0
----
146

skipif mysql # not compatible
query I rowsort label-9791
SELECT - 61 + 69 * COUNT ( * ) FROM tab0
----
146

query I rowsort
SELECT ALL 72 + - col1 * + 46 FROM tab2
----
-2274
-3010
-3470

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 WHERE + 36 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9793
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 WHERE + 36 > NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 89 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT - MIN( - col0 ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-9795
SELECT - MIN ( - col0 ) AS col2 FROM tab2
----
75

query III rowsort
SELECT * FROM tab2 WHERE col1 * - col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9797
SELECT ALL * FROM tab1 WHERE NOT 50 / col2 NOT BETWEEN NULL AND ( - CAST( + 95 AS SIGNED ) * col2 )
----

skipif mysql # not compatible
query III rowsort label-9797
SELECT ALL * FROM tab1 WHERE NOT 50 / col2 NOT BETWEEN NULL AND ( - CAST ( + 95 AS INTEGER ) * col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9798
SELECT ALL COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL COUNT ( * ) * + CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9799
SELECT - 18 * CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9799
SELECT - 18 * CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9800
SELECT ( + CAST( + col1 AS SIGNED ) ) + 26 AS col1 FROM tab2
----
103
77
93

skipif mysql # not compatible
query I rowsort label-9800
SELECT ( + CAST ( + col1 AS INTEGER ) ) + 26 AS col1 FROM tab2
----
103
77
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 23 * - 47 col0 FROM tab1
----
-1081
-1081
-1081

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 BETWEEN NULL AND ( col0 * 71 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9803
SELECT - ( col0 ) DIV 77 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9803
SELECT - ( col0 ) / 77 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - 90 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9805
SELECT DISTINCT + col0 DIV - 99 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9805
SELECT DISTINCT + col0 / - 99 FROM tab2
----
0

query I rowsort
SELECT 43 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - 63 + - col1 FROM tab1
----
-110
-68
-77

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 WHERE - col1 IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 NOT BETWEEN NULL AND ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 * - col1 col0 FROM tab1 AS cor0
----
110
2300
247

query I rowsort
SELECT + 66 + 67 FROM tab1 AS cor0
----
133
133
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9812
SELECT ALL CAST( + COUNT( col1 ) AS SIGNED ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL CAST ( + COUNT ( col1 ) AS INTEGER ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT ALL + MAX( col0 ) * COUNT( * ) col0 FROM tab2
----
225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9813
SELECT ALL + MAX ( col0 ) * COUNT ( * ) col0 FROM tab2
----
225

onlyif mysql # DIV for integer division: 
query I rowsort label-9814
SELECT ALL 95 DIV 7 FROM tab1 WHERE NOT - col2 IS NULL
----
13
13
13

skipif mysql # not compatible
query I rowsort label-9814
SELECT ALL 95 / 7 FROM tab1 WHERE NOT - col2 IS NULL
----
13
13
13

query I rowsort
SELECT DISTINCT 49 AS col2 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT col0 / 39 >= ( + col1 )
----
23
40
58

query I rowsort
SELECT ALL 16 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT + ( col1 ) * - col2 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT - ( col2 ) * ( col2 ) AS col1 FROM tab2 AS cor0
----
-1600
-3364
-529

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 6 * - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9821
SELECT ALL - - 21 DIV col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9821
SELECT ALL - - 21 / col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT DISTINCT COUNT( * ) * - 27 AS col2 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9822
SELECT DISTINCT COUNT ( * ) * - 27 AS col2 FROM tab2 AS cor0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-9823
SELECT DISTINCT col2 DIV 70 FROM tab0 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9823
SELECT DISTINCT col2 / 70 FROM tab0 cor0
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col1 ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( 90 ) AND NULL
----

query I rowsort
SELECT col0 * col2 FROM tab0 WHERE NOT - col0 * col0 BETWEEN + col0 AND ( NULL )
----
705
870
9603

query I rowsort
SELECT DISTINCT 6 * - 36 AS col1 FROM tab2 WHERE NOT NULL <= + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9828
SELECT ALL - COUNT( + col1 ) DIV + COUNT( * ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL - COUNT ( + col1 ) / + COUNT ( * ) FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT ALL + MAX( DISTINCT - 90 ) AS col1 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-9829
SELECT ALL + MAX ( DISTINCT - 90 ) AS col1 FROM tab1
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9830
SELECT DISTINCT - CAST( 48 AS SIGNED ) AS col1 FROM tab0 WHERE 33 IN ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-9830
SELECT DISTINCT - CAST ( 48 AS INTEGER ) AS col1 FROM tab0 WHERE 33 IN ( - col2 )
----

query I rowsort
SELECT 67 * + 91 AS col1 FROM tab1
----
6097
6097
6097

query I rowsort
SELECT ( + 73 ) FROM tab0 AS cor0
----
73
73
73

query I rowsort
SELECT DISTINCT + - col0 + - 84 * + col2 AS col2 FROM tab0 AS cor0
----
-3963
-8413
-927

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT - COUNT( - 77 ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9834
SELECT - COUNT ( - 77 ) col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + + 90 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT + 43 + - COUNT( * ) * + COUNT( * ) AS col1 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-9836
SELECT + 43 + - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT DISTINCT + COUNT( * ) + - COUNT( - 22 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9837
SELECT DISTINCT + COUNT ( * ) + - COUNT ( - 22 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 63 + - 13 FROM tab2 AS cor0
----
-76
-76
-76

query I rowsort
SELECT ( + col2 ) + + col2 + 46 AS col2 FROM tab0 AS cor0
----
140
244
66

query I rowsort
SELECT DISTINCT ( col0 ) + + col1 * 69 FROM tab1 AS cor0
----
1017
3334
430

query I rowsort
SELECT ALL col2 * - + col2 + 41 + 45 * + col0 FROM tab0 AS cor0
----
-1493
-5395
3856

query II rowsort
SELECT ALL 81 - + - col0 AS col2, col2 FROM tab1
----
132
96
166
59
172
68

query I rowsort
SELECT col2 + col1 FROM tab2 WHERE + - 87 + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9844
SELECT ALL - ( + + col1 ) DIV col0 + col1 + - 40 + col1 AS col1 FROM tab1
----
-12
-30
54

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL - ( + + col1 ) / col0 + col1 + - 40 + col1 AS col1 FROM tab1
----
-12
-30
54

query I rowsort
SELECT DISTINCT - 30 - + col0 * - col0 * - 65 * ( + col0 ) FROM tab0
----
-219405
-42802725
-59323775

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col1 > + col1 * - col2
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 14 NOT BETWEEN ( NULL ) AND + col0 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 52 AS col1 FROM tab2 AS cor0 WHERE NOT ( ( - 76 ) IS NOT NULL )
----

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9850
SELECT DISTINCT + + SUM( ( + + CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9850
SELECT DISTINCT + + SUM ( ( + + CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT DISTINCT ( COUNT( DISTINCT 66 ) ) AS col2 FROM tab2 WHERE - - col1 < - 75 * col1 + 19
----
0

skipif mysql # not compatible
query I rowsort label-9851
SELECT DISTINCT ( COUNT ( DISTINCT 66 ) ) AS col2 FROM tab2 WHERE - - col1 < - 75 * col1 + 19
----
0

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 66 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * + ( + col2 ) FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9854
SELECT ALL + CAST( AVG ( ALL + 55 ) AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
55

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL + CAST ( AVG ( ALL + 55 ) AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9855
SELECT ALL * FROM tab0 WHERE - ( - + CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9855
SELECT ALL * FROM tab0 WHERE - ( - + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT 1 FROM tab2 AS cor0 WHERE NOT ( 27 ) NOT BETWEEN col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 21 <> col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9858
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * col1 * - col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9858
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * col1 * - col2 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9860
SELECT col1 * + col1 / - CAST( NULL AS DECIMAL ) / - 47 / - col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9860
SELECT col1 * + col1 / - CAST ( NULL AS REAL ) / - 47 / - col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 11 * - 91 * - col2 + col1 + - + col0 * col2 col1 FROM tab0 AS cor0
----
46423
89497
9161

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT - ( - COUNT( * ) ) * - 20 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-9862
SELECT - ( - COUNT ( * ) ) * - 20 FROM tab0 AS cor0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9863
SELECT CAST( NULL AS SIGNED ) * 60 / 90 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9863
SELECT CAST ( NULL AS INTEGER ) * 60 / 90 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9864
SELECT + - 41 DIV - col0 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9864
SELECT + - 41 / - col0 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT + col2 * + col0 * ( - col0 ) * + col1 - - 11 FROM tab2 AS cor0
----
-12615669
-21858739
-2482057

query I rowsort
SELECT - + col0 FROM tab2 AS cor0 WHERE NOT 51 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-9867
SELECT - COUNT( * ), - COUNT( ALL + 20 ) AS col2 FROM tab0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-9867
SELECT - COUNT ( * ), - COUNT ( ALL + 20 ) AS col2 FROM tab0
----
-3
-3

query I rowsort
SELECT 57 * + 9 FROM tab2
----
513
513
513

query II rowsort
SELECT - col2 AS col0, 93 AS col1 FROM tab0
----
-10
93
-47
93
-99
93

onlyif mysql # DIV for integer division: 
query I rowsort label-9870
SELECT ALL 20 DIV + ( + - col1 ) FROM tab0
----
-20
0
0

skipif mysql # not compatible
query I rowsort label-9870
SELECT ALL 20 / + ( + - col1 ) FROM tab0
----
-20
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + - col1 col2 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT ALL 81 + + ( + col2 ) * + ( + + col0 ) FROM tab2 AS cor0
----
1139
2641
4431

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 31 >= ( + + col2 - - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9874
SELECT CAST( NULL AS DECIMAL ) + + + COUNT( * ) + - - SUM( - - 99 ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9874
SELECT CAST ( NULL AS REAL ) + + + COUNT ( * ) + - - SUM ( - - 99 ) col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * - col1 + + col0 col1 FROM tab1 AS cor0
----
-340
-4186
-663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9876
SELECT DISTINCT + - ( COUNT( ALL CAST( NULL AS SIGNED ) ) ) + + 72 AS col1 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-9876
SELECT DISTINCT + - ( COUNT ( ALL CAST ( NULL AS INTEGER ) ) ) + + 72 AS col1 FROM tab0 AS cor0
----
72

query I rowsort
SELECT ALL + + 1 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT COUNT( * ) + - - 59 FROM tab0 WHERE NULL IS NOT NULL
----
59

skipif mysql # not compatible
query I rowsort label-9878
SELECT COUNT ( * ) + - - 59 FROM tab0 WHERE NULL IS NOT NULL
----
59

query I rowsort
SELECT DISTINCT + 19 * + + col1 * + col2 FROM tab0
----
1881
3990
72333

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9880
SELECT DISTINCT 35 FROM tab2 WHERE NOT NULL >= + + 39 * + - CAST( NULL AS SIGNED ) * - col1
----

skipif mysql # not compatible
query I rowsort label-9880
SELECT DISTINCT 35 FROM tab2 WHERE NOT NULL >= + + 39 * + - CAST ( NULL AS INTEGER ) * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9881
SELECT DISTINCT - col1 * + + col2, - CAST( NULL AS SIGNED ) * col0 * - col0 AS col2 FROM tab2
----
-1173
NULL
-3080
NULL
-3886
NULL

skipif mysql # not compatible
query II rowsort label-9881
SELECT DISTINCT - col1 * + + col2, - CAST ( NULL AS INTEGER ) * col0 * - col0 AS col2 FROM tab2
----
-1173
NULL
-3080
NULL
-3886
NULL

query I rowsort
SELECT 51 * 84 * + + col2 FROM tab0
----
201348
424116
42840

query I rowsort
SELECT ALL - - ( - col2 ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL - - 92 + - + col2 FROM tab0 cor0
----
-7
45
82

query I rowsort
SELECT ALL - - col0 + - + col2 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # DIV for integer division: 
query I rowsort label-9886
SELECT + - 72 DIV - - 43 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9886
SELECT + - 72 / - - 43 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT + SUM( 29 ) * + + 41 AS col1 FROM tab0 AS cor0
----
3567

skipif mysql # not compatible
query I rowsort label-9887
SELECT + SUM ( 29 ) * + + 41 AS col1 FROM tab0 AS cor0
----
3567

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9888
SELECT DISTINCT + - col1 + CAST( NULL AS SIGNED ) + col1 * - + ( - - col0 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9888
SELECT DISTINCT + - col1 + CAST ( NULL AS INTEGER ) + col1 * - + ( - - col0 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9889
SELECT DISTINCT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) * + - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9889
SELECT DISTINCT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) * + - col1 IS NOT NULL
----

query I rowsort
SELECT col2 + - 91 AS col1 FROM tab0
----
-44
-81
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9891
SELECT - CAST( NULL AS SIGNED ) / - col1 + - 6 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9891
SELECT - CAST ( NULL AS INTEGER ) / - col1 + - 6 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - col2 - + col2 + 15 AS col0 FROM tab0
----
-32
-84
5

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - col0 + ( - col1 ) + col1 + + + col0 * + col0 - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT + COUNT( * ) + - 7 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-9894
SELECT + COUNT ( * ) + - 7 FROM tab1
----
-4

query I rowsort
SELECT DISTINCT + 82 - - 58 AS col0 FROM tab2 AS cor0
----
140

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - col0 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9897
SELECT - SUM( + CAST( NULL AS SIGNED ) ) * + + COUNT( + + 83 ) AS col1, + SUM( + - col0 ) * ( + 26 ) DIV 57 + COUNT( DISTINCT - 64 ) FROM tab0 AS cor0
----
NULL
-89

skipif mysql # not compatible
query II rowsort label-9897
SELECT - SUM ( + CAST ( NULL AS INTEGER ) ) * + + COUNT ( + + 83 ) AS col1, + SUM ( + - col0 ) * ( + 26 ) / 57 + COUNT ( DISTINCT - 64 ) FROM tab0 AS cor0
----
NULL
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9898
SELECT DISTINCT col2 + 49 FROM tab0 AS cor0 WHERE NOT - CAST( - col1 AS SIGNED ) + + col0 * + 77 = - 78
----
148
59
96

skipif mysql # not compatible
query I rowsort label-9898
SELECT DISTINCT col2 + 49 FROM tab0 AS cor0 WHERE NOT - CAST ( - col1 AS INTEGER ) + + col0 * + 77 = - 78
----
148
59
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT DISTINCT COUNT( DISTINCT + + col2 ) AS col0 FROM tab2 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9899
SELECT DISTINCT COUNT ( DISTINCT + + col2 ) AS col0 FROM tab2 WHERE NOT - col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT ALL + MIN( DISTINCT + - 14 ) * + COUNT( * ) FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-9900
SELECT ALL + MIN ( DISTINCT + - 14 ) * + COUNT ( * ) FROM tab0 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT - + COUNT( ALL - - 46 ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9901
SELECT - + COUNT ( ALL - - 46 ) col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT ALL - SUM( DISTINCT + col0 ) col2 FROM tab2
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9902
SELECT ALL - SUM ( DISTINCT + col0 ) col2 FROM tab2
----
-185

query III rowsort
SELECT * FROM tab2 WHERE 1 IS NOT NULL AND + col2 NOT IN ( + 42 + + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + 2 AS col0 FROM tab2
----
53
69
79

onlyif mysql # DIV for integer division: 
query I rowsort label-9905
SELECT ALL - 21 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9905
SELECT ALL - 21 / + col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9906
SELECT - 29 / - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9906
SELECT - 29 / - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT ALL ( - COUNT( * ) ) * - + ( MAX( + ( + 58 ) ) ) * + + 17 FROM tab2
----
2958

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL ( - COUNT ( * ) ) * - + ( MAX ( + ( + 58 ) ) ) * + + 17 FROM tab2
----
2958

query I rowsort
SELECT col0 * + - col0 AS col1 FROM tab1
----
-2601
-7225
-8281

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL < + col0
----

query I rowsort
SELECT DISTINCT + - ( col0 ) * - ( + col0 ) FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT - - MAX( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9911
SELECT - - MAX ( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9912
SELECT ALL + 53 DIV - col0 + col2 AS col1 FROM tab1 AS cor0
----
59
68
95

skipif mysql # not compatible
query I rowsort label-9912
SELECT ALL + 53 / - col0 + col2 AS col1 FROM tab1 AS cor0
----
59
68
95

query II rowsort
SELECT 25 AS col1, + col1 AS col1 FROM tab2
----
25
51
25
67
25
77

query I rowsort
SELECT 47 + - 45 * + col0 FROM tab2 AS cor0
----
-2023
-2833
-3328

query I rowsort
SELECT DISTINCT + - 71 + ( + col2 ) AS col2 FROM tab1 AS cor0
----
-12
-3
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9916
SELECT - 20 / + + CAST( + 51 AS SIGNED ) + - col1 AS col1 FROM tab1 cor0 WHERE - 20 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9916
SELECT - 20 / + + CAST ( + 51 AS INTEGER ) + - col1 AS col1 FROM tab1 cor0 WHERE - 20 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT + MAX( - + col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9917
SELECT + MAX ( - + col0 ) AS col1 FROM tab2 AS cor0
----
-46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + - col2 >= ( + col1 + - 60 )
----

query II rowsort
SELECT ALL - - col0, - col1 AS col0 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

query I rowsort
SELECT ALL 94 - 30 - + 35 FROM tab1 AS cor0
----
29
29
29

query III rowsort
SELECT * FROM tab0 WHERE + col2 <> ( + + 77 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 * - 47 * + col2 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT SUM( DISTINCT + - col0 ) col1 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9923
SELECT SUM ( DISTINCT + - col0 ) col1 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT ALL + COUNT( * ) * 43 * - 8 FROM tab2
----
-1032

skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL + COUNT ( * ) * 43 * - 8 FROM tab2
----
-1032

onlyif mysql # DIV for integer division: 
query I rowsort label-9925
SELECT ALL - 85 DIV - + col1 AS col0 FROM tab1
----
1
17
6

skipif mysql # not compatible
query I rowsort label-9925
SELECT ALL - 85 / - + col1 AS col0 FROM tab1
----
1
17
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT ALL + ( - + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9926
SELECT ALL + ( - + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT - col0, + 67 AS col2 FROM tab0 AS cor0
----
-15
67
-87
67
-97
67

query I rowsort
SELECT + ( 32 ) AS col2 FROM tab2 AS cor0
----
32
32
32

query I rowsort
SELECT ALL col2 - + col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9930
SELECT - CAST( NULL AS SIGNED ) + + - col0 * - col1 AS col1 FROM tab0 AS cor0 WHERE NOT col1 <> - + col0
----

skipif mysql # not compatible
query I rowsort label-9930
SELECT - CAST ( NULL AS INTEGER ) + + - col0 * - col1 AS col1 FROM tab0 AS cor0 WHERE NOT col1 <> - + col0
----

query II rowsort
SELECT DISTINCT - col0 AS col1, 58 AS col2 FROM tab1 AS cor0
----
-51
58
-85
58
-91
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT ALL - SUM( col0 ) * 6 + SUM( ALL + ( + + ( col1 ) ) ) AS col2 FROM tab0
----
-1091

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL - SUM ( col0 ) * 6 + SUM ( ALL + ( + + ( col1 ) ) ) AS col2 FROM tab0
----
-1091

query I rowsort
SELECT ( 45 ) AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col0 * 77 - col1
----

query I rowsort
SELECT ALL 27 * + + ( - col2 ) FROM tab2
----
-1080
-1566
-621

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT DISTINCT - MIN( ALL + + 30 ) AS col0 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-9935
SELECT DISTINCT - MIN ( ALL + + 30 ) AS col0 FROM tab1
----
-30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + ( 65 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9937
SELECT ALL - col2 * + CAST( 95 AS SIGNED ) AS col2 FROM tab0
----
-4465
-9405
-950

skipif mysql # not compatible
query I rowsort label-9937
SELECT ALL - col2 * + CAST ( 95 AS INTEGER ) AS col2 FROM tab0
----
-4465
-9405
-950

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT + COUNT( * ) + + 57 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-9938
SELECT + COUNT ( * ) + + 57 FROM tab2 AS cor0
----
60

query II rowsort
SELECT - col1 * - col1 * + 15 - + col2 + + - 51 + - + col0, + ( - col2 ) AS col2 FROM tab1 AS cor0
----
180
-59
2742
-96
32925
-68

query I rowsort
SELECT - col0 - 22 AS col0 FROM tab1 AS cor0
----
-107
-113
-73

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9941
SELECT CAST( - + 75 AS SIGNED ) - + 78 + - col2 * - + col2 DIV + col2 FROM tab1 AS cor0
----
-57
-85
-94

skipif mysql # not compatible
query I rowsort label-9941
SELECT CAST ( - + 75 AS INTEGER ) - + 78 + - col2 * - + col2 / + col2 FROM tab1 AS cor0
----
-57
-85
-94

query I rowsort
SELECT ALL - 29 * - - col2 + + + ( + col2 ) FROM tab2 AS cor0
----
-1120
-1624
-644

query I rowsort
SELECT + 76 - col2 FROM tab0 AS cor0
----
-23
29
66

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) < col2
----

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 - 68 BETWEEN - ( - 40 ) AND - - ( col1 )
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 = + 95 * col1 - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT ALL - COUNT( * ) + + - 44 FROM tab0 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9947
SELECT ALL - COUNT ( * ) + + - 44 FROM tab0 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT - + SUM( - - col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( - ( - + col1 ) * + col2, + 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9948
SELECT - + SUM ( - - col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( - ( - + col1 ) * + col2, + 81 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT ALL - - COUNT( * ) + + 75 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-9949
SELECT ALL - - COUNT ( * ) + + 75 FROM tab2 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT ALL 31 * + - MIN( + col1 ) AS col0 FROM tab1
----
-155

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL 31 * + - MIN ( + col1 ) AS col0 FROM tab1
----
-155

query III rowsort
SELECT ALL * FROM tab0 WHERE - 51 * - 46 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 27 FROM tab2 WHERE NOT - 81 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 64 * ( - col0 ) + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL 79, 81 AS col0 FROM tab2
----
79
81
79
81
79
81

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( - 10 / - 37, - col2 * - - col0 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT COUNT( * ) * - 62 AS col0 FROM tab1
----
-186

skipif mysql # not compatible
query I rowsort label-9956
SELECT COUNT ( * ) * - 62 AS col0 FROM tab1
----
-186

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * - + 42 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 91, - col1 - - + col2 - 29 + - col0 AS col1 FROM tab0 AS cor0
----
91
-127
91
-28
91
-78

query II rowsort
SELECT ALL - 59 AS col2, ( + + 27 ) FROM tab0 AS cor0
----
-59
27
-59
27
-59
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT - 51 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-9960
SELECT - 51 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-9961
SELECT DISTINCT - 65 DIV - + col2 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-9961
SELECT DISTINCT - 65 / - + col2 FROM tab0 AS cor0
----
0
1
6

query I rowsort
SELECT ALL + 25 * + + col1 AS col1 FROM tab1 cor0
----
1175
125
350

query I rowsort
SELECT 66 - - 89 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 37e6fe86ed7b54e43b7c859d6f5347fc

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT DISTINCT + SUM( - - 95 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
855

skipif mysql # not compatible
query I rowsort label-9964
SELECT DISTINCT + SUM ( - - 95 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
855

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT DISTINCT - MIN( col0 ) col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9965
SELECT DISTINCT - MIN ( col0 ) col1 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT - + 29 * col2 + + - 21 AS col1 FROM tab2 AS cor0
----
-1181
-1703
-688

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT - col1 * + + 75 * + col2 + col2 + - + col0 + - col2 / + col0 * 94 NOT IN ( + col2 ) AND NOT + - 58 < 78 + + 46 + col2
----

query I rowsort
SELECT ALL - - col2 + - + col0 FROM tab0 AS cor0
----
-77
2
32

query III rowsort
SELECT * FROM tab2 WHERE + col1 + + - col1 / - + col1 > NULL
----

query I rowsort
SELECT ALL 91 + - + col1 + - 79 + - - col1 + + 76 FROM tab1
----
88
88
88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9971
SELECT * FROM tab1 WHERE ( + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) ) BETWEEN col2 AND ( + - col1 )
----

skipif mysql # not compatible
query III rowsort label-9971
SELECT * FROM tab1 WHERE ( + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) ) BETWEEN col2 AND ( + - col1 )
----

query I rowsort
SELECT - col2 + + 12 * 54 AS col2 FROM tab2
----
590
608
625

query I rowsort
SELECT ALL - 53 AS col2 FROM tab2 WHERE NOT + - col1 IS NULL
----
-53
-53
-53

query II rowsort
SELECT ALL 63 AS col1, col2 FROM tab2
----
63
23
63
40
63
58

query I rowsort
SELECT - 90 * + col2 * + ( - 52 ) FROM tab0
----
219960
463320
46800

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col1 + - col2 AND - 98
----

query II rowsort
SELECT DISTINCT - 83 AS col0, 87 AS col2 FROM tab0 AS cor0
----
-83
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9978
SELECT ALL - CAST( CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL - CAST ( CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT DISTINCT + - col0 + - col1 * - 28 FROM tab1 AS cor0
----
1225
341
55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9980
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( + ( - col0 ) AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9980
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( + ( - col0 ) AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 <> ( - col2 - - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 82 NOT IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9983
SELECT ALL col0 DIV - 82 + + col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL col0 / - 82 + + col0 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT MIN( - 70 ) - COUNT( ALL col2 ) + COUNT( * ) FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-9984
SELECT MIN ( - 70 ) - COUNT ( ALL col2 ) + COUNT ( * ) FROM tab1
----
-70

query I rowsort
SELECT DISTINCT + 44 * + - col2 + + col1 - + - 17 + - col0 AS col0 FROM tab1
----
-2659
-3019
-4244

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT - 87 + COUNT( * ) - - 96 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-9986
SELECT - 87 + COUNT ( * ) - - 96 FROM tab2 AS cor0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9987
SELECT DISTINCT - + ( CAST( + + col2 AS SIGNED ) ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9987
SELECT DISTINCT - + ( CAST ( + + col2 AS INTEGER ) ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT ALL ( + COUNT( * ) ) * + 42 FROM tab0 cor0
----
126

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL ( + COUNT ( * ) ) * + 42 FROM tab0 cor0
----
126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 * + col1 col0 FROM tab2 AS cor0
----
-237160
-260362
-59823

onlyif mysql # DIV for integer division: 
query I rowsort label-9990
SELECT ALL - + col1 DIV + + col1 AS col0 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9990
SELECT ALL - + col1 / + + col1 AS col0 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 37 * - + col1 + 81 FROM tab1 AS cor0
----
1820
266
599

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9992
SELECT + + CAST( col1 AS SIGNED ) * + 45 AS col1 FROM tab1 AS cor0
----
2115
225
630

skipif mysql # not compatible
query I rowsort label-9992
SELECT + + CAST ( col1 AS INTEGER ) * + 45 AS col1 FROM tab1 AS cor0
----
2115
225
630

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT ALL COUNT( * ) * + 70 * + 33 FROM tab1
----
6930

skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL COUNT ( * ) * + 70 * + 33 FROM tab1
----
6930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9994
SELECT SUM( + - CAST( - 65 AS SIGNED ) ) * + 32 col2 FROM tab2
----
6240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9994
SELECT SUM ( + - CAST ( - 65 AS INTEGER ) ) * + 32 col2 FROM tab2
----
6240

query I rowsort
SELECT DISTINCT + col0 * - 40 * - 86 FROM tab0
----
299280
333680
51600

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NOT + col1 / + 52 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9996
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NOT + col1 / + 52 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab2 WHERE - 88 + col0 + + col2 IS NULL
----

query II rowsort
SELECT 87 AS col0, - 54 AS col0 FROM tab0
----
87
-54
87
-54
87
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT - MAX( - 42 ) col0 FROM tab0 WHERE NOT + + 65 IS NULL
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9999
SELECT - MAX ( - 42 ) col0 FROM tab0 WHERE NOT + + 65 IS NULL
----
42

