sqllogictest
Artifact Content
Not logged in

Artifact 471dbd2d3495625cc52cc8b55662d872370fadc8:


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