sqllogictest
Artifact Content
Not logged in

Artifact 7822ae5ed00aae7c1d9e91054a3864e96b181d8e:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + + ( - 81 ) AS col0 FROM tab2 cor0
----
-81
-81
-81

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE 4 + + + col2 / + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT ALL + 59 * + COUNT( * ) col0 FROM tab1 AS cor0
----
177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2
SELECT ALL + 59 * + COUNT ( * ) col0 FROM tab1 AS cor0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT ALL - MIN( + - 2 ) AS col2 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3
SELECT ALL - MIN ( + - 2 ) AS col2 FROM tab0 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT - COUNT( * ) * - 76 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
684

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4
SELECT - COUNT ( * ) * - 76 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
684

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT ALL 63 * - + COUNT( * ) AS col0 FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-5
SELECT ALL 63 * - + COUNT ( * ) AS col0 FROM tab1
----
-189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6
SELECT DISTINCT 48 DIV + - COUNT( * ) FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-6
SELECT DISTINCT 48 / + - COUNT ( * ) FROM tab0
----
-16

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-10
SELECT ALL CAST( 99 AS SIGNED ) + COUNT( * ) FROM tab2 AS cor0 WHERE + col2 + - - col2 IN ( 76 - col0 + col2 * col1 )
----
99

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL CAST ( 99 AS INTEGER ) + COUNT ( * ) FROM tab2 AS cor0 WHERE + col2 + - - col2 IN ( 76 - col0 + col2 * col1 )
----
99

query I rowsort
SELECT ALL 37 + + + col0 FROM tab1 AS cor0
----
122
128
88

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

query I rowsort
SELECT DISTINCT + 55 * col0 + 79 FROM tab2 AS cor0
----
2609
3599
4204

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT 10 + + 19 + + COUNT( * ) AS col0 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-14
SELECT 10 + + 19 + + COUNT ( * ) AS col0 FROM tab2
----
32

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-16
SELECT + CAST( - - 8 AS SIGNED ) + + + col2 AS col2 FROM tab2
----
31
48
66

skipif mysql # not compatible
query I rowsort label-16
SELECT + CAST ( - - 8 AS INTEGER ) + + + col2 AS col2 FROM tab2
----
31
48
66

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE NOT ( NOT - col1 IN ( + - 72 ) )
----

query I rowsort
SELECT col0 + + 31 FROM tab0
----
118
128
46

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

onlyif mysql # DIV for integer division: 
query I rowsort label-20
SELECT - 67 + + - col0 DIV col2 AS col1 FROM tab2
----
-68
-68
-69

skipif mysql # not compatible
query I rowsort label-20
SELECT - 67 + + - col0 / col2 AS col1 FROM tab2
----
-68
-68
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT ALL SUM( ALL - col2 ) AS col0 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-21
SELECT ALL SUM ( ALL - col2 ) AS col0 FROM tab0 cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT DISTINCT + + SUM( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL > col2
----
NULL

skipif mysql # not compatible
query I rowsort label-22
SELECT DISTINCT + + SUM ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL > col2
----
NULL

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

query I rowsort
SELECT ALL - + 96 * col1 FROM tab0 AS cor0
----
-2016
-7776
-96

query I rowsort
SELECT DISTINCT col0 + - + col0 * + - col1 * - col1 FROM tab2 AS cor0
----
-119600
-336600
-379392

query I rowsort
SELECT ALL + col0 + 23 AS col1 FROM tab0
----
110
120
38

query I rowsort
SELECT DISTINCT - + 78 * + - col0 - - - ( - + 50 ) FROM tab1 cor0
----
4028
6680
7148

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

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

query I rowsort
SELECT + - 47 * col2 + ( col0 ) AS col1 FROM tab0 AS cor0
----
-2194
-383
-4556

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 41 / + ( 98 ) ) IS NOT NULL
----

query I rowsort
SELECT + - col2 AS col2 FROM tab0 AS cor0 WHERE ( NOT + col0 IS NULL )
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 13 + - 59 AS col2, + col0 col2 FROM tab2 AS cor0
----
-46
46
-46
64
-46
75

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT + MIN( DISTINCT - - 87 ) * + - 48 col2 FROM tab1
----
-4176

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-35
SELECT + MIN ( DISTINCT - - 87 ) * + - 48 col2 FROM tab1
----
-4176

query I rowsort
SELECT - + col2 AS col1 FROM tab2 WHERE 83 IS NULL
----

query I rowsort
SELECT ALL - col0 + + - 4 FROM tab2
----
-50
-68
-79

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

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

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

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

query I rowsort
SELECT ALL col0 + - + col2 - + + col0 + col0 AS col1 FROM tab1
----
-45
23
26

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE + 31 > ( - ( + + col0 ) )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT ALL MAX( ALL + + col2 ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-42
SELECT ALL MAX ( ALL + + col2 ) AS col2 FROM tab2
----
58

query II rowsort
SELECT col2, + col1 + + + 19 FROM tab1 AS cor0
----
59
24
68
66
96
33

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

query I rowsort
SELECT + col0 * 43 * - col2 AS col0 FROM tab1 AS cor0
----
-210528
-215645
-266084

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT - MIN( - - col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-46
SELECT - MIN ( - - col2 ) AS col1 FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-47
SELECT + 59 + - + CAST( NULL AS SIGNED ) + + col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col2 * - 68 AND - 7 * - 11 / col2
----

skipif mysql # not compatible
query I rowsort label-47
SELECT + 59 + - + CAST ( NULL AS INTEGER ) + + col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col2 * - 68 AND - 7 * - 11 / col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-48
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col0 * + col2 * - + col1 * + 3 AS col1, + 53 + + col2 + - col1 * - ( col1 ) AS col1 FROM tab1 AS cor0
----
NULL
137
NULL
2330
NULL
345

skipif mysql # not compatible
query II rowsort label-48
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col0 * + col2 * - + col1 * + 3 AS col1, + 53 + + col2 + - col1 * - ( col1 ) AS col1 FROM tab1 AS cor0
----
NULL
137
NULL
2330
NULL
345

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-50
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col0 * + col0 / 46, CAST( - 55 AS SIGNED ) / 8 * 68 )
----

skipif mysql # not compatible
query I rowsort label-50
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col0 * + col0 / 46, CAST ( - 55 AS INTEGER ) / 8 * 68 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 - 73 BETWEEN ( - - 21 ) AND col1
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-55
SELECT + 51 DIV - 85 * col1 * 43 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-55
SELECT + 51 / - 85 * col1 * 43 col1 FROM tab2
----
0
0
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-58
SELECT DISTINCT + CAST( col0 AS SIGNED ) col2 FROM tab2 cor0
----
46
64
75

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 62 * + 17 ) BETWEEN NULL AND col2 - + col1
----

query I rowsort
SELECT 86 + - ( - col1 ) AS col2 FROM tab0
----
107
167
87

query II rowsort
SELECT col0 AS col0, 98 * + col1 AS col1 FROM tab1
----
51
1372
85
490
91
4606

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-62
SELECT COUNT( * ) + + CAST( + 14 AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
23

skipif mysql # not compatible
query I rowsort label-62
SELECT COUNT ( * ) + + CAST ( + 14 AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
23

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

skipif mysql # not compatible
query I rowsort label-63
SELECT DISTINCT - COUNT ( * ) - + MAX ( DISTINCT col1 ) FROM tab2 AS cor0
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-64
SELECT ALL + col0 DIV 57 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-64
SELECT ALL + col0 / 57 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT ALL - 49 * ( + + col1 ) - - col0 FROM tab1 AS cor0 WHERE col1 / + col1 <= - + 76
----

query I rowsort
SELECT + 19 - + + col0 + + 83 + 83 * + col0 AS col0 FROM tab1 AS cor0
----
4284
7072
7564

query I rowsort
SELECT ALL + + ( - + 5 ) FROM tab0 cor0
----
-5
-5
-5

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

onlyif mysql # DIV for integer division: 
query II rowsort label-69
SELECT ALL col1 AS col0, 42 DIV + - col1 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-69
SELECT ALL col1 AS col0, 42 / + - col1 FROM tab2 AS cor0
----
51
0
67
0
77
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 / - 19 + 69 - + 82 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-71
SELECT - - col1 - + + col0 FROM tab0 AS cor0 WHERE col1 + + - CAST( + ( - col2 ) AS SIGNED ) IS NOT NULL
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-71
SELECT - - col1 - + + col0 FROM tab0 AS cor0 WHERE col1 + + - CAST ( + ( - col2 ) AS INTEGER ) IS NOT NULL
----
-66
-96
66

query I rowsort
SELECT DISTINCT + col1 * col0 + + - 66 FROM tab1 cor0
----
359
4211
648

query I rowsort
SELECT - 0 * + + 64 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col1 * - 23, + col1 FROM tab1
----
-1081
47
-115
5
-322
14

onlyif mysql # aggregate syntax: 
query I rowsort label-75
SELECT ALL SUM( 76 ) AS col0 FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-75
SELECT ALL SUM ( 76 ) AS col0 FROM tab0
----
228

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

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 IN ( + + 94, - 7 + - 3, + 57 + ( - 94 ) - + col2 + + col2 * - 84 * + 91 * 28 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT - SUM( + 38 ) AS col1 FROM tab2 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-80
SELECT - SUM ( + 38 ) AS col1 FROM tab2 AS cor0
----
-114

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

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

query I rowsort
SELECT - 47 FROM tab2 cor0 WHERE NOT - 90 NOT BETWEEN ( + col2 - - 94 ) AND ( NULL )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-84
SELECT ALL col0 + - - 65 DIV + + ( 48 ) FROM tab1 cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-84
SELECT ALL col0 + - - 65 / + + ( 48 ) FROM tab1 cor0
----
52
86
92

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT ALL + COUNT( * ) - - MIN( DISTINCT + ( - col1 ) ) FROM tab2 AS cor0 WHERE ( ( NOT NULL = NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL + COUNT ( * ) - - MIN ( DISTINCT + ( - col1 ) ) FROM tab2 AS cor0 WHERE ( ( NOT NULL = NULL ) )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 81 col0 FROM tab0 AS cor0 WHERE + col2 + + - col0 + - + col0 / + - 87 - + col2 IS NOT NULL
----
81
81
81

query I rowsort
SELECT + ( + col0 ) + + col1 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT ALL col1 + + col0 + col1 AS col1 FROM tab2
----
148
209
218

query I rowsort
SELECT ALL 95 + col1 FROM tab0
----
116
176
96

query I rowsort
SELECT ALL col0 + col1 * - - col0 AS col1 FROM tab0
----
1230
1914
194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-91
SELECT col0 + - + col2 + + 4 * - col0 * CAST( ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) + + 99 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-91
SELECT col0 + - + col2 + + 4 * - col0 * CAST ( ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + 99 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT ALL COUNT( * ) + + 5 - + + 16 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-92
SELECT ALL COUNT ( * ) + + 5 - + + 16 FROM tab1
----
-8

query II rowsort
SELECT col2 * + col1 AS col2, 0 FROM tab1 AS cor0
----
1344
0
295
0
3196
0

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

skipif mysql # not compatible
query I rowsort label-94
SELECT + col0 FROM tab0 AS cor0 WHERE + 10 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

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

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

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

query I rowsort
SELECT col1 + 74 * + + 51 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3779
3788
3821

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

query III rowsort
SELECT * FROM tab0 WHERE NULL <= 89
----

query I rowsort
SELECT ALL 47 + - 74 AS col0 FROM tab2
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT DISTINCT COUNT( * ) + + 19 AS col0 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-101
SELECT DISTINCT COUNT ( * ) + + 19 AS col0 FROM tab1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT ALL + COUNT( * ) - + COUNT( - + col2 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-102
SELECT ALL + COUNT ( * ) - + COUNT ( - + col2 ) AS col1 FROM tab1
----
0

query I rowsort
SELECT - + col1 + + 82 AS col0 FROM tab0 AS cor0
----
1
61
81

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 + - 84 col1 FROM tab1 AS cor0
----
-19
54
6

query I rowsort
SELECT DISTINCT - 95 AS col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-95

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 = ( NULL )
----

query I rowsort
SELECT + 97 * + 1 + 3 AS col1 FROM tab0 AS cor0
----
100
100
100

query I rowsort
SELECT + - col2 * col0 + + - col1 FROM tab2 AS cor0
----
-1109
-2637
-4417

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-111
SELECT DISTINCT col1 * + CAST( - 52 AS SIGNED ) FROM tab2
----
-2652
-3484
-4004

skipif mysql # not compatible
query I rowsort label-111
SELECT DISTINCT col1 * + CAST ( - 52 AS INTEGER ) FROM tab2
----
-2652
-3484
-4004

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

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT - COUNT( * ) * 60 AS col0 FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-113
SELECT - COUNT ( * ) * 60 AS col0 FROM tab0
----
-180

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 WHERE - col2 / - 33 IS NOT NULL
----
10
47
99

query II rowsort
SELECT 71 AS col0, col2 - col2 FROM tab1
----
71
0
71
0
71
0

onlyif mysql # aggregate syntax: 
query II rowsort label-116
SELECT + + 60 + - + SUM( + - col2 ), COUNT( * ) * - + MIN( 12 ) col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col1 / + col1
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-116
SELECT + + 60 + - + SUM ( + - col2 ), COUNT ( * ) * - + MIN ( 12 ) col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col1 / + col1
----
NULL
NULL

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

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

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

query I rowsort
SELECT + col2 + - 53 * 85 * + col1 FROM tab0
----
-364858
-4406
-94595

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT + 71 + - COUNT( * ) + - SUM( - col2 ) AS col2 FROM tab0
----
224

skipif mysql # not compatible
query I rowsort label-120
SELECT + 71 + - COUNT ( * ) + - SUM ( - col2 ) AS col2 FROM tab0
----
224

query II rowsort
SELECT 77 + + + col1 AS col2, col0 + 6 AS col1 FROM tab2
----
128
52
144
81
154
70

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 78 IS NULL
----

query I rowsort
SELECT + 9 * + + 56 FROM tab0 AS cor0
----
504
504
504

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-127
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-128
SELECT ALL + 58 DIV col2 * - + 3 + col0 * + 99 FROM tab1
----
5049
8415
9009

skipif mysql # not compatible
query I rowsort label-128
SELECT ALL + 58 / col2 * - + 3 + col0 * + 99 FROM tab1
----
5049
8415
9009

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT ALL - 94 + + + COUNT( DISTINCT - - col2 ) AS col2 FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL - 94 + + + COUNT ( DISTINCT - - col2 ) AS col2 FROM tab0
----
-91

query I rowsort
SELECT DISTINCT + + 4 + + - col2 + ( - col0 ) / + col0 * + - col0 * + col0 FROM tab2 WHERE - + col2 BETWEEN NULL AND + - 44 * + + col2
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + + ( 67 ) col1, + col0 + col1 col1 FROM tab0
----
114
96
166
98
77
108

query I rowsort
SELECT ALL 25 * + col2 FROM tab1
----
1475
1700
2400

query I rowsort
SELECT + 3 + - + col0 FROM tab1
----
-48
-82
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-136
SELECT DISTINCT + col0 + - col1 + - - 91 + + + col0 + col2 * + 29 * + col2 * + col1 * 0 DIV - 24 * + col1 FROM tab1
----
179
226
256

skipif mysql # not compatible
query I rowsort label-136
SELECT DISTINCT + col0 + - col1 + - - 91 + + + col0 + col2 * + 29 * + col2 * + col1 * 0 / - 24 * + col1 FROM tab1
----
179
226
256

query II rowsort
SELECT DISTINCT 67 AS col2, + col2 AS col0 FROM tab0
----
67
10
67
47
67
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-138
SELECT + CAST( NULL AS SIGNED ) + - + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-138
SELECT + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query II rowsort
SELECT ALL col0 + - col0, col0 * - 63 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-141
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-144
SELECT - 75 * CAST( - 93 AS SIGNED ) FROM tab0 AS cor0
----
6975
6975
6975

skipif mysql # not compatible
query I rowsort label-144
SELECT - 75 * CAST ( - 93 AS INTEGER ) FROM tab0 AS cor0
----
6975
6975
6975

query I rowsort
SELECT DISTINCT + 58 FROM tab0 WHERE NOT - + 66 < NULL
----

query I rowsort
SELECT + col0 * + 85 AS col0 FROM tab0
----
1275
7395
8245

query I rowsort
SELECT ALL + 93 * 70 FROM tab0
----
6510
6510
6510

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-150
SELECT ALL - 94 * COUNT( * ) FROM tab1 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-150
SELECT ALL - 94 * COUNT ( * ) FROM tab1 AS cor0
----
-282

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 / - - col0 <= - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 + + col2 AS col1 FROM tab1 AS cor0 WHERE NOT col2 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-153
SELECT + 63 * CAST( - MAX( - col0 ) AS SIGNED ) * 69 FROM tab1
----
221697

skipif mysql # not compatible
query I rowsort label-153
SELECT + 63 * CAST ( - MAX ( - col0 ) AS INTEGER ) * 69 FROM tab1
----
221697

query I rowsort
SELECT - 29 * col1 AS col2 FROM tab1
----
-1363
-145
-406

query I rowsort
SELECT + 84 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-158
SELECT - MIN( 15 ) DIV + + 69 + + COUNT( * ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-158
SELECT - MIN ( 15 ) / + + 69 + + COUNT ( * ) FROM tab2 cor0
----
3

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE + 99 * - col2 + col0 <> - col2 + + col2
----
1
21
81

query I rowsort
SELECT - 41 + + 67 * + 75 FROM tab0 AS cor0
----
4984
4984
4984

query II rowsort
SELECT ALL - 76 + - 19, - col0 - - 57 FROM tab0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-162
SELECT + MAX( DISTINCT - + col2 ) AS col0, COUNT( * ) DIV + COUNT( + + col1 ) FROM tab1
----
-59
1

skipif mysql # not compatible
query II rowsort label-162
SELECT + MAX ( DISTINCT - + col2 ) AS col0, COUNT ( * ) / + COUNT ( + + col1 ) FROM tab1
----
-59
1

query I rowsort
SELECT DISTINCT ( - + col2 ) + + - col0 FROM tab0
----
-196
-62
-97

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

skipif mysql # not compatible
query I rowsort label-164
SELECT ALL - 59 - + ( + + MIN ( ALL - col0 ) ) FROM tab2
----
16

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 NOT BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT - ( - 63 ) * - COUNT( - col2 ) AS col1 FROM tab1 cor0
----
-189

skipif mysql # not compatible
query I rowsort label-166
SELECT - ( - 63 ) * - COUNT ( - col2 ) AS col1 FROM tab1 cor0
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT - MAX( - col1 ) - - 77 + - 86 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-167
SELECT - MAX ( - col1 ) - - 77 + - 86 FROM tab0 AS cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT DISTINCT - SUM( ALL + col2 ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-168
SELECT DISTINCT - SUM ( ALL + col2 ) AS col0 FROM tab0
----
-156

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

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

skipif mysql # not compatible
query I rowsort label-170
SELECT - - CAST ( 20 AS INTEGER ) FROM tab2 AS cor0
----
20
20
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col1 col0 FROM tab2 AS cor0
----
46
51
64
77
75
67

query I rowsort
SELECT ALL 55 AS col1 FROM tab0 AS cor0
----
55
55
55

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

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

query I rowsort
SELECT ALL - - 62 AS col0 FROM tab0 AS cor0
----
62
62
62

query I rowsort
SELECT 1 * - col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL - 26 FROM tab2 cor0 WHERE NOT - col0 <= NULL
----

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

query II rowsort
SELECT DISTINCT 92 * + 56, col2 AS col2 FROM tab1
----
5152
59
5152
68
5152
96

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT ALL - SUM( ALL - 43 ) FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-179
SELECT ALL - SUM ( ALL - 43 ) FROM tab0
----
129

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 <> - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 = + - 60 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT DISTINCT ( - - COUNT( * ) ) * - COUNT( ALL col2 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-182
SELECT DISTINCT ( - - COUNT ( * ) ) * - COUNT ( ALL col2 ) FROM tab2
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col2 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-184
SELECT - SUM( + + 28 ) DIV + + 1 AS col1 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-184
SELECT - SUM ( + + 28 ) / + + 1 AS col1 FROM tab2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-185
SELECT - MIN( ALL + ( - col2 ) ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-185
SELECT - MIN ( ALL + ( - col2 ) ) FROM tab0 AS cor0
----
99

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

query I rowsort
SELECT + 46 AS col2 FROM tab1 cor0 WHERE - 70 / 45 + + 19 IS NULL OR NOT - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 2 * 90 FROM tab1 cor0
----
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 col0 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE + 29 IS NULL
----

query I rowsort
SELECT 48 * col2 AS col1 FROM tab0
----
2256
4752
480

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE NULL NOT BETWEEN col2 AND - col1
----

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

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

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

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

query I rowsort
SELECT DISTINCT 35 + ( - + 25 ) AS col2 FROM tab1 AS cor0
----
10

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

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

query I rowsort
SELECT - ( col1 ) - col2 AS col0 FROM tab0
----
-100
-128
-31

query I rowsort
SELECT - - col0 FROM tab2 WHERE - 65 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 * 17 + col0 col0 FROM tab2
----
794
812
823

onlyif mysql # DIV for integer division: 
query I rowsort label-201
SELECT - col0 + + 52 + ( - 75 ) DIV + - col0 FROM tab2
----
-11
-22
7

skipif mysql # not compatible
query I rowsort label-201
SELECT - col0 + + 52 + ( - 75 ) / + - col0 FROM tab2
----
-11
-22
7

query I rowsort
SELECT DISTINCT - 99 + - col2 AS col0 FROM tab2
----
-122
-139
-157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-203
SELECT ALL CAST( + col0 AS SIGNED ) + + col2 FROM tab1
----
144
147
159

skipif mysql # not compatible
query I rowsort label-203
SELECT ALL CAST ( + col0 AS INTEGER ) + + col2 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT DISTINCT 17 - MIN( DISTINCT + 8 ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-204
SELECT DISTINCT 17 - MIN ( DISTINCT + 8 ) AS col2 FROM tab0
----
9

query I rowsort
SELECT + col0 * + 71 + + - col2 AS col2 FROM tab1
----
3525
5976
6393

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) + - col1 col0 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-207
SELECT ALL 99 - + + CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
145
163
174

skipif mysql # not compatible
query I rowsort label-207
SELECT ALL 99 - + + CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
145
163
174

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

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

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

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 AS cor0 WHERE + col0 IN ( + col0 * - col1 * - 46 - - - col1, col0, col1 )
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( + 19 ) IN ( - + col1 * + col1, col2, - 3 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 26 col1 FROM tab2 cor0
----
26
26
26

query I rowsort
SELECT ALL - 80 * - - col0 AS col1 FROM tab1 AS cor0
----
-4080
-6800
-7280

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE NOT 61 * col1 IS NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-216
SELECT DISTINCT 31 * + col1 DIV col1 + 0 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-216
SELECT DISTINCT 31 * + col1 / col1 + 0 FROM tab1 AS cor0
----
31

query I rowsort
SELECT ALL - + col2 * col2 * + col0 FROM tab1 AS cor0
----
-295885
-420784
-470016

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT - MIN( - + ( - col0 ) ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-218
SELECT - MIN ( - + ( - col0 ) ) FROM tab1 cor0
----
-51

query I rowsort
SELECT 3 * + col2 * - col2 * + - col0 AS col1 FROM tab2
----
307200
73002
756900

query I rowsort
SELECT + col1 * + 28 FROM tab0
----
2268
28
588

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT ALL - MIN( DISTINCT + - col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-221
SELECT ALL - MIN ( DISTINCT + - col1 ) AS col1 FROM tab2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-222
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - + col0 * + col1 * + col2 AND + - CAST( - - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-222
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - + col0 * + col1 * + col2 AND + - CAST ( - - col0 AS INTEGER )
----

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - + 30 + - + col2 + 52 >= NULL )
----

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

query I rowsort
SELECT 11 * - - col2 * + col2 FROM tab1 AS cor0
----
101376
38291
50864

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT DISTINCT COUNT( * ) + + 50 AS col0 FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-228
SELECT DISTINCT COUNT ( * ) + + 50 AS col0 FROM tab1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT DISTINCT + MAX( + - col1 ) - + 90 col0 FROM tab0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-229
SELECT DISTINCT + MAX ( + - col1 ) - + 90 col0 FROM tab0
----
-91

query I rowsort
SELECT ALL 42 * - 90 AS col0 FROM tab2 AS cor0
----
-3780
-3780
-3780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-231
SELECT - - col2 + + CAST( + + 74 AS SIGNED ) + + 98 col1 FROM tab0 cor0
----
182
219
271

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-231
SELECT - - col2 + + CAST ( + + 74 AS INTEGER ) + + 98 col1 FROM tab0 cor0
----
182
219
271

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-232
SELECT - CAST( NULL AS SIGNED ) + 64 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-232
SELECT - CAST ( NULL AS INTEGER ) + 64 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-233
SELECT ALL + 2 * + CAST( NULL AS SIGNED ), col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-233
SELECT ALL + 2 * + CAST ( NULL AS INTEGER ), col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT - COUNT( * ) AS col0 FROM tab0, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-234
SELECT - COUNT ( * ) AS col0 FROM tab0, tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-235
SELECT DISTINCT 78 DIV - + COUNT( * ) + - 75 AS col2 FROM tab0
----
-101

skipif mysql # not compatible
query I rowsort label-235
SELECT DISTINCT 78 / - + COUNT ( * ) + - 75 AS col2 FROM tab0
----
-101

query I rowsort
SELECT DISTINCT + col1 + - col1 FROM tab1 WHERE + + col1 <= + + col1
----
0

query I rowsort
SELECT - col2 - + - 7 + + col2 FROM tab2
----
7
7
7

query I rowsort
SELECT DISTINCT - ( + col2 ) - + col2 - + 17 FROM tab1
----
-135
-153
-209

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT + + 31 * + COUNT( * ) FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-239
SELECT + + 31 * + COUNT ( * ) FROM tab0 AS cor0
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-240
SELECT DISTINCT + 6 AS col2, 45 + - 45 DIV + COUNT( * ) FROM tab2 AS cor0
----
6
30

skipif mysql # not compatible
query II rowsort label-240
SELECT DISTINCT + 6 AS col2, 45 + - 45 / + COUNT ( * ) FROM tab2 AS cor0
----
6
30

query II rowsort
SELECT 59, 81 AS col2 FROM tab2
----
59
81
59
81
59
81

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-244
SELECT + CAST( NULL AS DECIMAL ) col0, 96 * col0 AS col0 FROM tab0 AS cor0
----
NULL
1440
NULL
8352
NULL
9312

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-244
SELECT + CAST ( NULL AS REAL ) col0, 96 * col0 AS col0 FROM tab0 AS cor0
----
NULL
1440
NULL
8352
NULL
9312

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT SUM( - + 38 ) AS col2 FROM tab0 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-248
SELECT SUM ( - + 38 ) AS col2 FROM tab0 AS cor0
----
-114

query II rowsort
SELECT col2 AS col2, - 37 FROM tab2 AS cor0
----
23
-37
40
-37
58
-37

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

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

query I rowsort
SELECT DISTINCT + - col1 + + + ( - col1 ) * + + col1 + col2 AS col2 FROM tab1 AS cor0
----
-114
-2188
29

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

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

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

query I rowsort
SELECT ALL - - col2 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN + 51 AND + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-257
SELECT ALL - col1 + 19 DIV - 86 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-257
SELECT ALL - col1 + 19 / - 86 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT + 51 * + 30 AS col1 FROM tab2
----
1530
1530
1530

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + - ( + - 0 ) ) * + col2 - + - col0 col2 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT MIN( DISTINCT + 38 ) AS col2 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-260
SELECT MIN ( DISTINCT + 38 ) AS col2 FROM tab0 AS cor0
----
38

query I rowsort
SELECT + ( 32 ) * - col0 + - col0 FROM tab0 cor0
----
-2871
-3201
-495

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT - 74 * - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
666

skipif mysql # not compatible
query I rowsort label-263
SELECT - 74 * - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-264
SELECT CAST( - SUM( 76 ) AS SIGNED ) AS col0 FROM tab1
----
-228

skipif mysql # not compatible
query I rowsort label-264
SELECT CAST ( - SUM ( 76 ) AS INTEGER ) AS col0 FROM tab1
----
-228

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-265
SELECT col0 * + CAST( NULL AS SIGNED ) * - - 73, 39 + + - col2 + + col0 AS col2 FROM tab2 AS cor0
----
NULL
56
NULL
62
NULL
63

skipif mysql # not compatible
query II rowsort label-265
SELECT col0 * + CAST ( NULL AS INTEGER ) * - - 73, 39 + + - col2 + + col0 AS col2 FROM tab2 AS cor0
----
NULL
56
NULL
62
NULL
63

query I rowsort
SELECT ALL + - col1 - - - col0 + - + ( col1 ) AS col0 FROM tab1 AS cor0
----
-185
-79
-95

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

query II rowsort
SELECT col0, + 78 - - col0 FROM tab1 AS cor0
----
51
129
85
163
91
169

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

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

query I rowsort
SELECT ALL + col0 + ( + 0 ) AS col2 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-271
SELECT DISTINCT ( 72 ) * 7 * + + CAST( NULL AS SIGNED ) + - 89 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-271
SELECT DISTINCT ( 72 ) * 7 * + + CAST ( NULL AS INTEGER ) + - 89 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col1 * - - col0 * - col1 FROM tab0
----
38367
97
98415

query I rowsort
SELECT - 80 * col2 * + col2 * - - ( + - 87 ) FROM tab0 WHERE NOT NULL NOT BETWEEN + 74 * col2 AND - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-274
SELECT - COUNT( * ) DIV - + 27 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-274
SELECT - COUNT ( * ) / - + 27 FROM tab0
----
0

query I rowsort
SELECT 23 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT DISTINCT - ( 98 ) FROM tab0
----
-98

query I rowsort
SELECT + 19 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # DIV for integer division: 
query I rowsort label-278
SELECT + col1 DIV + 64 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-278
SELECT + col1 / + 64 FROM tab1 cor0
----
0
0
0

query II rowsort
SELECT + - col0 AS col1, - col1 + - col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-15
-162
-87
-42
-97
-2

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

query II rowsort
SELECT DISTINCT + col1, - col2 * + 47 FROM tab0 cor0
----
1
-4653
21
-470
81
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT ALL + + 71 + + - ( COUNT( * ) ) FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-282
SELECT ALL + + 71 + + - ( COUNT ( * ) ) FROM tab0 AS cor0
----
68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT DISTINCT MAX( DISTINCT + - 23 ) col0 FROM tab0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-284
SELECT DISTINCT MAX ( DISTINCT + - 23 ) col0 FROM tab0
----
-23

query I rowsort
SELECT ALL col0 * + + col2 AS col0 FROM tab0
----
705
870
9603

query I rowsort
SELECT col2 + + 11 AS col2 FROM tab2
----
34
51
69

query I rowsort
SELECT + 9 + + + col2 AS col1 FROM tab1
----
105
68
77

onlyif mysql # DIV for integer division: 
query II rowsort label-288
SELECT 31 col1, + ( - + 1 ) DIV - col1 FROM tab2
----
31
0
31
0
31
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-288
SELECT 31 col1, + ( - + 1 ) / - col1 FROM tab2
----
31
0
31
0
31
0

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

skipif mysql # not compatible
query I rowsort label-289
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE 14 IS NULL
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-290
SELECT - - CAST ( NULL AS INTEGER ) col0, col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

onlyif mysql # DIV for integer division: 
query I rowsort label-291
SELECT ( + col0 ) DIV + col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-291
SELECT ( + col0 ) / + col1 FROM tab0 AS cor0
----
0
4
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col1 ) col2 FROM tab0 AS cor0
----
-1
-21
-81

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-296
SELECT DISTINCT - ( - 64 ) - 14, 14 DIV + col2 * + col1 AS col0 FROM tab1 AS cor0
----
50
0

skipif mysql # not compatible
query II rowsort label-296
SELECT DISTINCT - ( - 64 ) - 14, 14 / + col2 * + col1 AS col0 FROM tab1 AS cor0
----
50
0

query I rowsort
SELECT ALL + - col0 * - + 52 + + col2 + col2 + col2 AS col1 FROM tab2 AS cor0
----
2461
3448
4074

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

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

query II rowsort
SELECT + col2 * col1 * col2 AS col1, 68 AS col1 FROM tab2 AS cor0
----
123200
68
225388
68
26979
68

query I rowsort
SELECT DISTINCT col1 * col1 * col1 * 42 FROM tab1 AS cor0
----
115248
4360566
5250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-301
SELECT CAST( SUM( - col1 ) AS SIGNED ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-301
SELECT CAST ( SUM ( - col1 ) AS INTEGER ) FROM tab1
----
-66

query III rowsort
SELECT * FROM tab1 WHERE NOT 31 < - - 50
----

onlyif mysql # DIV for integer division: 
query I rowsort label-303
SELECT 66 DIV col1 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-303
SELECT 66 / col1 AS col2 FROM tab2
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-304
SELECT DISTINCT + col0 / + col1 * + - col2 * CAST( NULL AS SIGNED ), col0 * + col2 col0 FROM tab2
----
NULL
1058
NULL
2560
NULL
4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-304
SELECT DISTINCT + col0 / + col1 * + - col2 * CAST ( NULL AS INTEGER ), col0 * + col2 col0 FROM tab2
----
NULL
1058
NULL
2560
NULL
4350

query I rowsort
SELECT DISTINCT - 96 * - col2 AS col2 FROM tab2
----
2208
3840
5568

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-307
SELECT DISTINCT - MIN( DISTINCT - - col0 ) DIV 76 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-307
SELECT DISTINCT - MIN ( DISTINCT - - col0 ) / 76 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-308
SELECT DISTINCT + COUNT( * ) * + SUM( - col2 ) * - 52 AS col1 FROM tab1 AS cor0
----
34788

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

query I rowsort
SELECT DISTINCT + 7 FROM tab0 AS cor0 WHERE ( NULL ) IN ( col0 )
----

query I rowsort
SELECT col2 * 54 AS col2 FROM tab1 AS cor0
----
3186
3672
5184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 72 col1 FROM tab0 AS cor0
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-312
SELECT ALL 54 + - col2 DIV - col0 FROM tab2 AS cor0
----
54
54
54

skipif mysql # not compatible
query I rowsort label-312
SELECT ALL 54 + - col2 / - col0 FROM tab2 AS cor0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT + + ( + + 4 ) * + COUNT( * ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-313
SELECT + + ( + + 4 ) * + COUNT ( * ) FROM tab1 AS cor0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + - 61 col1 FROM tab0 AS cor0
----
-14
-51
38

query I rowsort
SELECT DISTINCT + + 44 FROM tab0 AS cor0
----
44

query II rowsort
SELECT DISTINCT - col1 + - 38 + col2 * - ( + 20 ), + col0 FROM tab2
----
-1265
75
-549
46
-915
64

query I rowsort
SELECT ALL - 89 FROM tab2 WHERE + + col1 * + + col1 IN ( - - col2, - 26, col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-318
SELECT ALL 7 + + + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL 7 + + + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT col0 * 66 + - col0 FROM tab1
----
3315
5525
5915

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 54 col1, 7 * - col0 * + col1 * - col1 + - col1 AS col1 FROM tab0
----
-54
268548
-54
678
-54
688824

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT DISTINCT 41 + COUNT( * ) FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-322
SELECT DISTINCT 41 + COUNT ( * ) FROM tab0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-323
SELECT + col0 + + - 87 - 46 * - CAST( - col2 AS SIGNED ) * 81 - - 90 FROM tab2
----
-148973
-216030
-85649

skipif mysql # not compatible
query I rowsort label-323
SELECT + col0 + + - 87 - 46 * - CAST ( - col2 AS INTEGER ) * 81 - - 90 FROM tab2
----
-148973
-216030
-85649

query II rowsort
SELECT + col1 + 74, col2 * + + 63 FROM tab2 AS cor0 WHERE ( NOT + col2 IS NOT NULL )
----

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

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

skipif mysql # not compatible
query I rowsort label-326
SELECT ALL - + CAST ( NULL AS INTEGER ) * - 92 - + ( + COUNT ( - + col1 ) ) * - COUNT ( col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
NULL

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

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

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

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

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

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

query I rowsort
SELECT - ( + 10 ) - + col1 FROM tab1 AS cor0
----
-15
-24
-57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-332
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST( - ( col2 ) AS SIGNED ) / - + col1 + 48 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-332
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST ( - ( col2 ) AS INTEGER ) / - + col1 + 48 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL 98 * - + col1 AS col2 FROM tab2
----
-4998
-6566
-7546

onlyif mysql # aggregate syntax: 
query II rowsort label-335
SELECT MAX( ALL + + col0 ) / + + COUNT( ALL + col0 ) * + - 58, ( 71 ) col2 FROM tab0 WHERE NOT col0 > NULL
----
NULL
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-335
SELECT MAX ( ALL + + col0 ) / + + COUNT ( ALL + col0 ) * + - 58, ( 71 ) col2 FROM tab0 WHERE NOT col0 > NULL
----
NULL
71

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

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

skipif mysql # not compatible
query I rowsort label-337
SELECT ALL - SUM ( DISTINCT - col1 ) AS col1 FROM tab1
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 * + col0 * - 52 * 41 col1 FROM tab1
----
2935764
4892940
5238324

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

query II rowsort
SELECT col0 + + col2 * col0 * + 34, col1 FROM tab1 AS cor0
----
166515
14
170595
5
210483
47

query I rowsort
SELECT DISTINCT col1 * - + 61 AS col0 FROM tab0 AS cor0
----
-1281
-4941
-61

query I rowsort
SELECT ALL - 7 + - col1 FROM tab2 cor0
----
-58
-74
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-343
SELECT ALL + - col0 * - + 21 + + 60 DIV + 21 + - col0 + + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1424
-3523
-3646

skipif mysql # not compatible
query I rowsort label-343
SELECT ALL + - col0 * - + 21 + + 60 / + 21 + - col0 + + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1424
-3523
-3646

onlyif mysql # DIV for integer division: 
query II rowsort label-344
SELECT ALL + col2 DIV - col1 + - col2 AS col2, 41 FROM tab1 AS cor0
----
-102
41
-69
41
-70
41

skipif mysql # not compatible
query II rowsort label-344
SELECT ALL + col2 / - col1 + - col2 AS col2, 41 FROM tab1 AS cor0
----
-102
41
-69
41
-70
41

query I rowsort
SELECT - col0 * 75 + - col1 FROM tab1 cor0
----
-3839
-6380
-6872

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

query I rowsort
SELECT - - 53 + - - col1 FROM tab2 AS cor0
----
104
120
130

query I rowsort
SELECT DISTINCT col1 + 18 FROM tab1
----
23
32
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 33 + - + 28 col2, col0 FROM tab1
----
5
51
5
85
5
91

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT ALL - COUNT( * ) + - 84 * + - 47 + + - SUM( DISTINCT + - 88 ) FROM tab0
----
4033

skipif mysql # not compatible
query I rowsort label-350
SELECT ALL - COUNT ( * ) + - 84 * + - 47 + + - SUM ( DISTINCT + - 88 ) FROM tab0
----
4033

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-351
SELECT ALL CAST( NULL AS SIGNED ) / + 24 + - - 5 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-351
SELECT ALL CAST ( NULL AS INTEGER ) / + 24 + - - 5 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + - col2 * - + col2 FROM tab2
----
1664
3439
575

query I rowsort
SELECT DISTINCT - col1 - - 91 AS col0 FROM tab2
----
14
24
40

query I rowsort
SELECT - ( col1 ) FROM tab1 AS cor0 WHERE ( col1 ) BETWEEN col0 / + + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-355
SELECT - + SUM( DISTINCT + 42 ) * + 8 FROM tab1 AS cor0
----
-336

skipif mysql # not compatible
query I rowsort label-355
SELECT - + SUM ( DISTINCT + 42 ) * + 8 FROM tab1 AS cor0
----
-336

query I rowsort
SELECT + + col0 - + col1 AS col0 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query II rowsort label-357
SELECT + + 8 - + COUNT( DISTINCT + col0 ) + + + COUNT( * ), 13 + + SUM( - 27 ) AS col1 FROM tab1 AS cor0
----
8
-68

skipif mysql # not compatible
query II rowsort label-357
SELECT + + 8 - + COUNT ( DISTINCT + col0 ) + + + COUNT ( * ), 13 + + SUM ( - 27 ) AS col1 FROM tab1 AS cor0
----
8
-68

query I rowsort
SELECT + 25 AS col0 FROM tab0 cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 15 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT SUM( DISTINCT - col0 ) * + ( + 29 ) FROM tab1 AS cor0
----
-6583

skipif mysql # not compatible
query I rowsort label-364
SELECT SUM ( DISTINCT - col0 ) * + ( + 29 ) FROM tab1 AS cor0
----
-6583

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT ALL 31 * - MIN( - - 19 ) FROM tab1 AS cor0
----
-589

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL 31 * - MIN ( - - 19 ) FROM tab1 AS cor0
----
-589

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, col2 * col0 col0 FROM tab1 AS cor0
----
-59
5015
-68
6188
-96
4896

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

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT MAX( ALL - + 15 ) FROM tab1 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-368
SELECT MAX ( ALL - + 15 ) FROM tab1 cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT - SUM( ALL + col2 ) * - 19 AS col1 FROM tab2
----
2299

skipif mysql # not compatible
query I rowsort label-369
SELECT - SUM ( ALL + col2 ) * - 19 AS col1 FROM tab2
----
2299

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 24 col0 FROM tab2 WHERE NOT NULL < 9 * + + col0
----

query II rowsort
SELECT DISTINCT col2 AS col0, - col1 FROM tab0
----
10
-21
47
-81
99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT ALL COUNT( * ) * + - COUNT( * ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-372
SELECT ALL COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab2
----
-9

query I rowsort
SELECT + ( + col1 ) * - + col1 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT DISTINCT MAX( DISTINCT col2 ) * - 85 col2 FROM tab2 AS cor0
----
-4930

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-374
SELECT DISTINCT MAX ( DISTINCT col2 ) * - 85 col2 FROM tab2 AS cor0
----
-4930

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

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

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

query I rowsort
SELECT ALL - col2 + + - col2 AS col1 FROM tab2 AS cor0
----
-116
-46
-80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-379
SELECT ALL col0 + + 2 AS col1, - col1 + + col2 / - - col1 * - - CAST( NULL AS SIGNED ) FROM tab0
----
17
NULL
89
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-379
SELECT ALL col0 + + 2 AS col1, - col1 + + col2 / - - col1 * - - CAST ( NULL AS INTEGER ) FROM tab0
----
17
NULL
89
NULL
99
NULL

query I rowsort
SELECT col2 + + 12 * - + 31 * + col2 AS col0 FROM tab1
----
-21889
-25228
-35616

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

skipif mysql # not compatible
query I rowsort label-381
SELECT - col0 / + 83 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 30 * - col0 FROM tab0 AS cor0
----
-2610
-2910
-450

query I rowsort
SELECT DISTINCT - + col1 * - 4 AS col0 FROM tab2 AS cor0
----
204
268
308

query I rowsort
SELECT ALL 96 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
96
96
96

query I rowsort
SELECT DISTINCT + col1 + col1 - - + col0 FROM tab2 AS cor0
----
148
209
218

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

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT ALL MIN( ALL - 88 ) * COUNT( * ) col2 FROM tab2, tab1 AS cor0
----
-792

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-387
SELECT ALL MIN ( ALL - 88 ) * COUNT ( * ) col2 FROM tab2, tab1 AS cor0
----
-792

query I rowsort
SELECT ALL col2 + - col2 * - col2 FROM tab2 WHERE col0 + - - col0 + - + col1 BETWEEN + col2 AND - 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-389
SELECT ALL COUNT( * ) * - 54 + + + 68 FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-389
SELECT ALL COUNT ( * ) * - 54 + + + 68 FROM tab2
----
-94

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

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

query II rowsort
SELECT ALL col0 + + - col2 * + + col0 + col0 AS col0, col2 FROM tab1
----
-4794
96
-4845
59
-6006
68

query I rowsort
SELECT ALL + ( col0 ) - + 31 + + col2 * - col0 FROM tab0
----
-721
-814
-9537

onlyif mysql # DIV for integer division: 
query I rowsort label-393
SELECT 12 DIV + 76 + + 30 + - col1 FROM tab2
----
-21
-37
-47

skipif mysql # not compatible
query I rowsort label-393
SELECT 12 / + 76 + + 30 + - col1 FROM tab2
----
-21
-37
-47

query I rowsort
SELECT DISTINCT + col2 - - col1 AS col1 FROM tab2
----
117
125
74

query I rowsort
SELECT + + col2 + - 93 AS col2 FROM tab1 cor0
----
-25
-34
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-396
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 18 >= - + ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-396
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 18 >= - + ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - - 29 + - col0 AS col2 FROM tab2 AS cor0
----
-17
-35
-46

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

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

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

query I rowsort
SELECT DISTINCT + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT col1 <= - col1 * + col1 + + col1 * - col1
----
-15
-87
-97

query I rowsort
SELECT ALL col1 FROM tab1 WHERE ( + 23 ) IN ( col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 54 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT - COUNT( * ) FROM tab0 WHERE NOT 85 * col0 + col1 <= + col2 + - col2
----
-3

skipif mysql # not compatible
query I rowsort label-403
SELECT - COUNT ( * ) FROM tab0 WHERE NOT 85 * col0 + col1 <= + col2 + - col2
----
-3

query I rowsort
SELECT DISTINCT - 48 + + 39 FROM tab0
----
-9

query I rowsort
SELECT ALL - 47 * col1 AS col1 FROM tab0 WHERE 29 IS NULL
----

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

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

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

query I rowsort
SELECT col1 + - 10 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-410
SELECT CAST( col2 AS SIGNED ) * + 12 + col2 AS col2 FROM tab2
----
299
520
754

skipif mysql # not compatible
query I rowsort label-410
SELECT CAST ( col2 AS INTEGER ) * + 12 + col2 AS col2 FROM tab2
----
299
520
754

query I rowsort
SELECT + 88 + + 75 AS col0 FROM tab1
----
163
163
163

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

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

skipif mysql # not compatible
query I rowsort label-413
SELECT ALL COUNT ( 70 ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + col2 + 78 * col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-415
SELECT - col1 DIV + col2 + col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-415
SELECT - col1 / + col2 + col0 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-416
SELECT ( + ( + CAST( NULL AS DECIMAL ) ) ) + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-416
SELECT ( + ( + CAST ( NULL AS REAL ) ) ) + COUNT ( * ) FROM tab1
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-417
SELECT DISTINCT COUNT ( + CAST ( - col2 AS INTEGER ) ) col1 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-418
SELECT + col0 DIV col2 + col2 FROM tab1
----
60
69
96

skipif mysql # not compatible
query I rowsort label-418
SELECT + col0 / col2 + col2 FROM tab1
----
60
69
96

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 * - col1 ) = col2 + - 64 * col2
----

query I rowsort
SELECT ALL col2 + - col1 FROM tab0 WHERE ( + 42 ) > NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 81 IN ( + 64 + + col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( 6 ) ) NOT IN ( ( - 24 ) )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-425
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= ( + 32 / CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-425
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= ( + 32 / CAST ( NULL AS INTEGER ) )
----

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE 6 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT DISTINCT 24 + + COUNT( * ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-428
SELECT DISTINCT 24 + + COUNT ( * ) FROM tab1
----
27

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

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

query I rowsort
SELECT ALL 69 * 19 AS col1 FROM tab2
----
1311
1311
1311

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 78 <> NULL
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 + + col0 IN ( + 52 )
----
14
47
5

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

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

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 67 + + col1 IS NOT NULL
----

query I rowsort
SELECT - col0 * + col1 + col0 * - col1 FROM tab1 AS cor0
----
-1428
-850
-8554

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT + ( + MIN( ALL + col1 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-443
SELECT + ( + MIN ( ALL + col1 ) ) FROM tab0
----
1

query I rowsort
SELECT ALL 57 + - col2 * + ( 71 + col1 ) AS col0 FROM tab0
----
-7071
-7087
-863

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( 53 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 WHERE 56 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-446
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 WHERE 56 IS NULL
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-448
SELECT DISTINCT CAST( NULL AS SIGNED ) - + 65 - + COUNT( * ) * AVG ( ALL col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-448
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 65 - + COUNT ( * ) * AVG ( ALL col2 ) FROM tab0
----
NULL

query I rowsort
SELECT - 42 * col0 FROM tab2 WHERE NULL IS NULL
----
-1932
-2688
-3150

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

query I rowsort
SELECT ALL - 77 - - + ( + col0 ) FROM tab2 AS cor0
----
-13
-2
-31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 99 / + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 < - col1 * - ( - col2 * col2 ) AND NOT NULL IN ( 1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-454
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-454
SELECT DISTINCT + CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-455
SELECT DISTINCT ( - CAST( NULL AS DECIMAL ) ) / 67 FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT ( - CAST ( NULL AS REAL ) ) / 67 FROM tab1, tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 * - col0 * col1 * ( + 4 ) FROM tab2
----
-1346700
-1517824
-478584

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

query I rowsort
SELECT DISTINCT - ( + 96 ) FROM tab1
----
-96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT - SUM( + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-460
SELECT - SUM ( + col2 ) FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-461
SELECT col0 AS col1 FROM tab2 cor0 WHERE NOT NULL > ( - CAST( + + 47 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-461
SELECT col0 AS col1 FROM tab2 cor0 WHERE NOT NULL > ( - CAST ( + + 47 AS INTEGER ) )
----

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT ALL - SUM( DISTINCT - col2 ) col1 FROM tab2 AS cor0
----
121

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

query I rowsort
SELECT ALL 48 + + + ( + col0 ) FROM tab2
----
112
123
94

query I rowsort
SELECT - + 21 * - col1 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT ALL 40 AS col1 FROM tab0 WHERE NOT col2 IS NULL
----
40
40
40

onlyif mysql # DIV for integer division: 
query I rowsort label-467
SELECT - col1 DIV col2 FROM tab0 WHERE NOT + col2 * + col0 >= + col2 + col2 * col1
----
-1

skipif mysql # not compatible
query I rowsort label-467
SELECT - col1 / col2 FROM tab0 WHERE NOT + col2 * + col0 >= + col2 + col2 * col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT 88 * - + COUNT( * ) col1 FROM tab1
----
-264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-468
SELECT 88 * - + COUNT ( * ) col1 FROM tab1
----
-264

onlyif mysql # DIV for integer division: 
query I rowsort label-469
SELECT ALL col0 DIV - + col2 col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-469
SELECT ALL col0 / - + col2 col0 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT 96 * - col2 FROM tab2
----
-2208
-3840
-5568

query I rowsort
SELECT ( - 71 ) * + + col1 FROM tab0
----
-1491
-5751
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT + SUM( ALL - 71 ) FROM tab1 cor0
----
-213

skipif mysql # not compatible
query I rowsort label-472
SELECT + SUM ( ALL - 71 ) FROM tab1 cor0
----
-213

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col0 IN ( - col2 ) )
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-476
SELECT - COUNT ( * ) * + + COUNT ( * ) col1 FROM tab2
----
-9

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

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

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

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

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

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

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

query I rowsort
SELECT - 50 * + col0 FROM tab2 AS cor0
----
-2300
-3200
-3750

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 / - 94 * - col1 * - + 61 <> NULL
----

query II rowsort
SELECT + 10 AS col1, col1 * + - col2 FROM tab1 AS cor0 WHERE 90 < NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-486
SELECT col2 * + 16 * - - CAST( - col0 AS SIGNED ) - - 17 * - + col2 FROM tab1
----
-100164
-79968
-81243

skipif mysql # not compatible
query I rowsort label-486
SELECT col2 * + 16 * - - CAST ( - col0 AS INTEGER ) - - 17 * - + col2 FROM tab1
----
-100164
-79968
-81243

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

query I rowsort
SELECT ALL + col0 * - 37 + - 4 * - - col2 + - + col2 * + - col1 AS col0 FROM tab0
----
-3049
-3886
3064

query I rowsort
SELECT col0 + - - 0 + + ( + - 5 ) FROM tab0
----
10
82
92

onlyif mysql # aggregate syntax: 
query I rowsort label-490
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 WHERE ( NOT ( + col1 ) IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-490
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 WHERE ( NOT ( + col1 ) IS NULL )
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT ALL COUNT( * ) + + 5 AS col2 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-492
SELECT ALL COUNT ( * ) + + 5 AS col2 FROM tab0
----
8

query I rowsort
SELECT ALL 7 - - col2 FROM tab1
----
103
66
75

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT 95 + - - COUNT( * ) col1 FROM tab0
----
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-494
SELECT 95 + - - COUNT ( * ) col1 FROM tab0
----
98

query I rowsort
SELECT DISTINCT - 22 + - col2 * - col1 FROM tab2
----
1151
3058
3864

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-498
SELECT - col2 DIV col0 + + - col2 AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-498
SELECT - col2 / col0 + + - col2 AS col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT 10 * - - col0 AS col0 FROM tab1 AS cor0
----
510
850
910

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT - - COUNT( + 14 ) FROM tab2 AS cor0 WHERE NOT + 19 < col1
----
0

skipif mysql # not compatible
query I rowsort label-500
SELECT - - COUNT ( + 14 ) FROM tab2 AS cor0 WHERE NOT + 19 < col1
----
0

query I rowsort
SELECT + 58 * + col1 * col2 AS col0 FROM tab2
----
178640
225388
68034

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-502
SELECT MAX( DISTINCT + col2 ) AS col1, MAX( ALL CAST( NULL AS SIGNED ) ) + + COUNT( DISTINCT + col0 ) AS col1 FROM tab1
----
96
NULL

skipif mysql # not compatible
query II rowsort label-502
SELECT MAX ( DISTINCT + col2 ) AS col1, MAX ( ALL CAST ( NULL AS INTEGER ) ) + + COUNT ( DISTINCT + col0 ) AS col1 FROM tab1
----
96
NULL

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

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

query I rowsort
SELECT ALL 37 AS col1 FROM tab0 AS cor0 WHERE 45 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 > - 26 + - - col0 * - 97 / col1 + + col1
----

query I rowsort
SELECT ALL col2 * - col2 * - 84 * - 61 FROM tab2 AS cor0
----
-17237136
-2710596
-8198400

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT DISTINCT - COUNT( * ) * COUNT( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-507
SELECT DISTINCT - COUNT ( * ) * COUNT ( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT 13 * + + 9 - - - col1 + - col0 * col0 FROM tab2 AS cor0 WHERE NOT col0 <= ( + - 73 )
----
-2050
-4056
-5575

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE NULL IN ( - col1, - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-510
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE NULL IN ( - col1, - col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT 86 + - + COUNT( * ) FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-511
SELECT 86 + - + COUNT ( * ) FROM tab0
----
83

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

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

query I rowsort
SELECT - 45 * - 28 + + col0 FROM tab0
----
1275
1347
1357

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-514
SELECT ALL COUNT( * ) DIV ( + 91 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-514
SELECT ALL COUNT ( * ) / ( + 91 ) FROM tab2
----
0

query I rowsort
SELECT 75 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
75
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-516
SELECT 9 + - col2 + + + col1 DIV col2 * 90 AS col0 FROM tab2
----
166
41
59

skipif mysql # not compatible
query I rowsort label-516
SELECT 9 + - col2 + + + col1 / col2 * 90 AS col0 FROM tab2
----
166
41
59

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT - 83 * - ( - + COUNT( * ) ) * 50 * - COUNT( * ) + - - 78 AS col2 FROM tab1 AS cor0
----
37428

skipif mysql # not compatible
query I rowsort label-520
SELECT - 83 * - ( - + COUNT ( * ) ) * 50 * - COUNT ( * ) + - - 78 AS col2 FROM tab1 AS cor0
----
37428

query I rowsort
SELECT + 41 + + - 73 * 20 FROM tab0 WHERE - - ( col0 ) + col0 IS NOT NULL
----
-1419
-1419
-1419

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

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

query I rowsort
SELECT DISTINCT col2 - + 80 * col1 + col2 FROM tab0 AS cor0
----
-1660
-6386
118

onlyif mysql # aggregate syntax: 
query II rowsort label-525
SELECT ALL - + MIN( DISTINCT 75 ) col1, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-75
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-525
SELECT ALL - + MIN ( DISTINCT 75 ) col1, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-75
-3

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

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

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

query I rowsort
SELECT + col2 * - col1 * - 17 AS col0 FROM tab1 AS cor0
----
22848
5015
54332

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT MIN( DISTINCT - col0 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-530
SELECT MIN ( DISTINCT - col0 ) AS col2 FROM tab0
----
-97

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

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

query I rowsort
SELECT col1 FROM tab2 WHERE + - 15 IS NULL
----

query I rowsort
SELECT ALL col2 * + col0 * - - 40 + + 14 FROM tab1
----
195854
200614
247534

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

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

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

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

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

query I rowsort
SELECT ALL - - 67 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

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

onlyif mysql # DIV for integer division: 
query III rowsort label-540
SELECT + col1, 12 AS col0, - + col0 DIV + 99 + + 93 + - col1 * col1 - 73 FROM tab2
----
9 values hashing to 6185bb7b5ffadd7307ef75c79c8c69f3

skipif mysql # not compatible
query III rowsort label-540
SELECT + col1, 12 AS col0, - + col0 / + 99 + + 93 + - col1 * col1 - 73 FROM tab2
----
9 values hashing to 6185bb7b5ffadd7307ef75c79c8c69f3

onlyif mysql # DIV for integer division: 
query II rowsort label-541
SELECT DISTINCT + + col0 * col0 DIV + 25 + 18 AS col0, - 99 + - - col0 + + col2 + col2 DIV - 64 * col2 * + col2 FROM tab2 AS cor0
----
102
-30
181
5
243
34

skipif mysql # not compatible
query II rowsort label-541
SELECT DISTINCT + + col0 * col0 / + 25 + 18 AS col0, - 99 + - - col0 + + col2 + col2 / - 64 * col2 * + col2 FROM tab2 AS cor0
----
102
-30
181
5
243
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-542
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 39, 23, + + 73 + + col1, + CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-542
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 39, 23, + + 73 + + col1, + CAST ( col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-543
SELECT ALL - ( 23 ), MIN( ALL + col1 ) col0 FROM tab2 AS cor0
----
-23
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-543
SELECT ALL - ( 23 ), MIN ( ALL + col1 ) col0 FROM tab2 AS cor0
----
-23
51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 ) NOT BETWEEN NULL AND col0 + + col1 + - col2 + - 49
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 / col0 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( ( - + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT MIN( DISTINCT + 25 ) FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-546
SELECT MIN ( DISTINCT + 25 ) FROM tab1 AS cor0
----
25

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-549
SELECT DISTINCT - col1 + - CAST( - 86 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
19
35
9

skipif mysql # not compatible
query I rowsort label-549
SELECT DISTINCT - col1 + - CAST ( - 86 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
19
35
9

query I rowsort
SELECT DISTINCT col0 * - 91 FROM tab0 cor0
----
-1365
-7917
-8827

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

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

skipif mysql # not compatible
query I rowsort label-552
SELECT ALL - 29 + + - MAX ( - col2 ) FROM tab0
----
-19

query II rowsort
SELECT + ( + col0 ) AS col2, - col2 * - - col0 FROM tab2
----
46
-1058
64
-2560
75
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT + MIN( ALL + - col0 ) * + ( - COUNT( * ) ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-554
SELECT + MIN ( ALL + - col0 ) * + ( - COUNT ( * ) ) FROM tab1
----
273

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT ALL - COUNT( - col1 ) + - 83 + 35 AS col2 FROM tab0 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-557
SELECT ALL - COUNT ( - col1 ) + - 83 + 35 AS col2 FROM tab0 cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT DISTINCT + MAX( DISTINCT + 18 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-558
SELECT DISTINCT + MAX ( DISTINCT + 18 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <> 54
----
0

skipif mysql # not compatible
query I rowsort label-559
SELECT + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <> 54
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT ALL - ( 90 ) - MIN( - 2 ) AS col2 FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-560
SELECT ALL - ( 90 ) - MIN ( - 2 ) AS col2 FROM tab0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT COUNT( * ) * + 45 AS col2 FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-561
SELECT COUNT ( * ) * + 45 AS col2 FROM tab2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT ALL + COUNT( DISTINCT 75 ) + MAX( DISTINCT col1 ) + 24 FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-562
SELECT ALL + COUNT ( DISTINCT 75 ) + MAX ( DISTINCT col1 ) + 24 FROM tab0
----
106

query I rowsort
SELECT DISTINCT 41 * - col1 - - + col1 AS col0 FROM tab2
----
-2040
-2680
-3080

query II rowsort
SELECT DISTINCT - 62, col2 FROM tab0 AS cor0
----
-62
10
-62
47
-62
99

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

skipif mysql # not compatible
query I rowsort label-565
SELECT ALL - col1 / + col1 FROM tab2 cor0
----
-1
-1
-1

query II rowsort
SELECT DISTINCT - col1 AS col1, col2 AS col1 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

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

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

query I rowsort
SELECT 79 * + col2 AS col1 FROM tab2
----
1817
3160
4582

onlyif mysql # DIV for integer division: 
query I rowsort label-570
SELECT - 60 DIV - col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-570
SELECT - 60 / - col1 FROM tab2
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-571
SELECT COUNT( CAST( + col2 AS SIGNED ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-571
SELECT COUNT ( CAST ( + col2 AS INTEGER ) ) FROM tab1
----
3

query I rowsort
SELECT ALL col0 * ( - 6 ) FROM tab2
----
-276
-384
-450

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-573
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) <= col0
----

skipif mysql # not compatible
query III rowsort label-573
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) <= col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 51 = NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT DISTINCT + 76 + - COUNT( + 22 ) AS col2 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
73

skipif mysql # not compatible
query I rowsort label-576
SELECT DISTINCT + 76 + - COUNT ( + 22 ) AS col2 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-577
SELECT col2 * - CAST( - col1 AS SIGNED ) * + ( + 64 ) FROM tab1
----
18880
204544
86016

skipif mysql # not compatible
query I rowsort label-577
SELECT col2 * - CAST ( - col1 AS INTEGER ) * + ( + 64 ) FROM tab1
----
18880
204544
86016

query I rowsort
SELECT - 94 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-579
SELECT ALL - col1 * - 86 - + col1 DIV 47 AS col0 FROM tab0 AS cor0
----
1806
6965
86

skipif mysql # not compatible
query I rowsort label-579
SELECT ALL - col1 * - 86 - + col1 / 47 AS col0 FROM tab0 AS cor0
----
1806
6965
86

query I rowsort
SELECT DISTINCT - - 41 * - col2 AS col0 FROM tab0 AS cor0
----
-1927
-4059
-410

query I rowsort
SELECT DISTINCT - - col1 * + 59 FROM tab0 AS cor0
----
1239
4779
59

query I rowsort
SELECT ALL - col0 + - - 75 FROM tab1 AS cor0
----
-10
-16
24

query I rowsort
SELECT + col0 + + 72 AS col1 FROM tab1 cor0
----
123
157
163

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

query I rowsort
SELECT - col0 * - + 18 + - - col2 AS col1 FROM tab1 AS cor0
----
1014
1589
1706

query I rowsort
SELECT ALL - col1 * + 46 * + 69 FROM tab1 AS cor0
----
-149178
-15870
-44436

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT DISTINCT - + 13 + + COUNT( * ) FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-587
SELECT DISTINCT - + 13 + + COUNT ( * ) FROM tab2 AS cor0
----
-10

query I rowsort
SELECT ALL - col2 * - col2 + - + col0 - - + col0 FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-589
SELECT 68 + 68 DIV COUNT( * ) AS col1 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-589
SELECT 68 + 68 / COUNT ( * ) AS col1 FROM tab1
----
90

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

query I rowsort
SELECT ALL - col2 * - col2 + - col0 FROM tab1
----
3396
4533
9165

query I rowsort
SELECT ALL + 80 * 53 FROM tab0
----
4240
4240
4240

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

query I rowsort
SELECT - 31 * + col0 AS col1 FROM tab1
----
-1581
-2635
-2821

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN col1 AND + - 58 * - 71 - + col1
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT ALL - ( 31 ) - + 68 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-599
SELECT ALL - ( 31 ) - + 68 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-96

query I rowsort
SELECT - 8 + + ( - 19 ) AS col1 FROM tab2 AS cor0
----
-27
-27
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 * - 18 - col0 col1 FROM tab2 AS cor0
----
-100
-118
-129

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 80 col1, + 78 FROM tab2 AS cor0 WHERE - col1 NOT IN ( - - col2, col0 )
----
80
78
80
78
80
78

query I rowsort
SELECT 15 * col2 AS col1 FROM tab2 AS cor0
----
345
600
870

onlyif mysql # DIV for integer division: 
query II rowsort label-605
SELECT DISTINCT - + col2 DIV + 64 AS col2, - col2 AS col2 FROM tab0 AS cor0
----
-1
-99
0
-10
0
-47

skipif mysql # not compatible
query II rowsort label-605
SELECT DISTINCT - + col2 / + 64 AS col2, - col2 AS col2 FROM tab0 AS cor0
----
-1
-99
0
-10
0
-47

query II rowsort
SELECT DISTINCT + 93 - col0 AS col1, 20 * + 9 * - - col0 / - - col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL < ( + col2 * - - 59 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-607
SELECT - 73 * - col2 AS col0, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
4307
NULL
4964
NULL
7008
NULL

skipif mysql # not compatible
query II rowsort label-607
SELECT - 73 * - col2 AS col0, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
4307
NULL
4964
NULL
7008
NULL

query I rowsort
SELECT ALL + col0 + + - col0 * - col0 * - - 12 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT MAX( - col2 ) col0 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-610
SELECT MAX ( - col2 ) col0 FROM tab2
----
-23

query I rowsort
SELECT ( - 83 ) FROM tab2
----
-83
-83
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-612
SELECT - col0 DIV 55 AS col2 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-612
SELECT - col0 / 55 AS col2 FROM tab0
----
-1
-1
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 < - - 90 / + col1 + col1
----
15
81
47
87
21
10

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

query II rowsort
SELECT col2 AS col1, - 71 FROM tab0 cor0
----
10
-71
47
-71
99
-71

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 15 col1 FROM tab1 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * - col1 * - col1, 59 col0 FROM tab1 AS cor0
----
103823
59
125
59
2744
59

query II rowsort
SELECT ALL + col1 + - col1 + 36, 10 AS col2 FROM tab0 AS cor0
----
36
10
36
10
36
10

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT 97 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

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

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

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

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

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

query I rowsort
SELECT ALL + - 85 FROM tab1 AS cor0
----
-85
-85
-85

query II rowsort
SELECT - 66 AS col1, + 38 AS col2 FROM tab1 cor0 WHERE - col1 + + 76 IS NOT NULL
----
-66
38
-66
38
-66
38

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-629
SELECT ALL + ( - - col0 ) + - ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-629
SELECT ALL + ( - - col0 ) + - ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT ALL - MAX( col1 ) + - - 74 AS col0 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-630
SELECT ALL - MAX ( col1 ) + - - 74 AS col0 FROM tab1 AS cor0
----
27

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 52 * + ( - 83 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT ALL + SUM( - col1 ) + + - 58 FROM tab0
----
-161

skipif mysql # not compatible
query I rowsort label-632
SELECT ALL + SUM ( - col1 ) + + - 58 FROM tab0
----
-161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-633
SELECT ALL AVG ( ALL + col2 ) + + + MIN( ALL + - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

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

query I rowsort
SELECT DISTINCT - 84 + - 7 FROM tab2
----
-91

query I rowsort
SELECT col0 * - - col0 + - col1 AS col1 FROM tab2
----
2065
4019
5558

query II rowsort
SELECT + col1, col2 FROM tab1 WHERE NULL IS NULL
----
14
96
47
68
5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + - col2 col1 FROM tab2
----
28
37
9

query II rowsort
SELECT ALL - 70 * + col1 - - 63, + col1 AS col2 FROM tab0 AS cor0
----
-1407
21
-5607
81
-7
1

onlyif mysql # DIV for integer division: 
query II rowsort label-639
SELECT DISTINCT + ( 79 ) DIV - - 22 col0, col1 FROM tab2 AS cor0
----
3
51
3
67
3
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-639
SELECT DISTINCT + ( 79 ) / - - 22 col0, col1 FROM tab2 AS cor0
----
3
51
3
67
3
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= 66
----
0

skipif mysql # not compatible
query I rowsort label-641
SELECT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= 66
----
0

query III rowsort
SELECT * FROM tab2 WHERE - 36 = NULL
----

query I rowsort
SELECT DISTINCT + - 68 * - 47 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
3196

query I rowsort
SELECT + ( + 9 ) - + 42 * + col1 FROM tab0
----
-33
-3393
-873

onlyif mysql # DIV for integer division: 
query II rowsort label-645
SELECT - 11 col2, + col0 DIV ( - col0 ) AS col2 FROM tab0 AS cor0
----
-11
-1
-11
-1
-11
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-645
SELECT - 11 col2, + col0 / ( - col0 ) AS col2 FROM tab0 AS cor0
----
-11
-1
-11
-1
-11
-1

query I rowsort
SELECT ALL + + col2 * + + col1 - col1 + + col0 + col1 FROM tab1 AS cor0
----
1395
3287
380

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

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

query I rowsort
SELECT DISTINCT col1 * + 18 FROM tab1 AS cor0
----
252
846
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-649
SELECT - col1, - CAST( - 86 AS SIGNED ) AS col0 FROM tab1 cor0
----
-14
86
-47
86
-5
86

skipif mysql # not compatible
query II rowsort label-649
SELECT - col1, - CAST ( - 86 AS INTEGER ) AS col0 FROM tab1 cor0
----
-14
86
-47
86
-5
86

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > col2 - + col1
----

query II rowsort
SELECT DISTINCT col2 AS col2, 1 FROM tab1 cor0
----
59
1
68
1
96
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 7 * + 85 col2 FROM tab2
----
-13685
-23800
-34510

query II rowsort
SELECT DISTINCT 33 * 10 AS col2, + col1 AS col2 FROM tab2
----
330
51
330
67
330
77

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-656
SELECT ALL 21 DIV + + 25 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-656
SELECT ALL 21 / + + 25 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT DISTINCT - MIN( DISTINCT 49 ) * - 50 AS col1 FROM tab1
----
2450

skipif mysql # not compatible
query I rowsort label-657
SELECT DISTINCT - MIN ( DISTINCT 49 ) * - 50 AS col1 FROM tab1
----
2450

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

query I rowsort
SELECT - + col0 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-46
-64
-75

query I rowsort
SELECT 13 * 71 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-661
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * col2 * CAST( - 89 AS SIGNED ) * + - col1 + - col0 * + col2 + + col1 > + 11
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-661
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * col2 * CAST ( - 89 AS INTEGER ) * + - col1 + - col0 * + col2 + + col1 > + 11
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT DISTINCT + + SUM( + - col1 ) * + 20 AS col1 FROM tab1 cor0
----
-1320

skipif mysql # not compatible
query I rowsort label-662
SELECT DISTINCT + + SUM ( + - col1 ) * + 20 AS col1 FROM tab1 cor0
----
-1320

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT DISTINCT MAX( ALL + - ( + + col1 ) ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT MAX ( ALL + - ( + + col1 ) ) AS col1 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-664
SELECT DISTINCT 38, - COUNT( * ) AS col0 FROM tab2 cor0
----
38
-3

skipif mysql # not compatible
query II rowsort label-664
SELECT DISTINCT 38, - COUNT ( * ) AS col0 FROM tab2 cor0
----
38
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-665
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 + - - col2 + - 53 * + + CAST( NULL AS SIGNED ) * - + col1 * + + 91 <> NULL
----

skipif mysql # not compatible
query III rowsort label-665
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 + - - col2 + - 53 * + + CAST ( NULL AS INTEGER ) * - + col1 * + + 91 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-666
SELECT ALL + COUNT( * ) AS col2, + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-666
SELECT ALL + COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT DISTINCT SUM( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-667
SELECT DISTINCT SUM ( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
103

query I rowsort
SELECT - 34 + + 41 AS col1 FROM tab1 AS cor0
----
7
7
7

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

onlyif mysql # DIV for integer division: 
query I rowsort label-670
SELECT DISTINCT + col2 + - - col1 + + col2 DIV 13 AS col2 FROM tab0 AS cor0
----
107
131
31

skipif mysql # not compatible
query I rowsort label-670
SELECT DISTINCT + col2 + - - col1 + + col2 / 13 AS col2 FROM tab0 AS cor0
----
107
131
31

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col1 >= NULL
----

query I rowsort
SELECT DISTINCT col0 * + col1 + + + 1 AS col0 FROM tab1
----
426
4278
715

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-673
SELECT DISTINCT 24 + + 59 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-673
SELECT DISTINCT 24 + + 59 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-676
SELECT + 9, COUNT( * ) AS col2 FROM tab0 WHERE ( NOT + col2 IS NOT NULL )
----
9
0

skipif mysql # not compatible
query II rowsort label-676
SELECT + 9, COUNT ( * ) AS col2 FROM tab0 WHERE ( NOT + col2 IS NOT NULL )
----
9
0

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-678
SELECT ALL + MIN( + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL + MIN ( + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

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

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

query I rowsort
SELECT ALL + 60 + col0 AS col2 FROM tab0 AS cor0
----
147
157
75

query I rowsort
SELECT + - col2 + - - 61 * - col1 FROM tab0 AS cor0
----
-1291
-160
-4988

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE - 69 = NULL
----

query I rowsort
SELECT ALL - col0 * 26 AS col2 FROM tab0
----
-2262
-2522
-390

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <= 38
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-687
SELECT + col1 * - - CAST( NULL AS DECIMAL ) * - CAST( + - col2 AS DECIMAL ) * - 21 / + + col2 * col2 * + - col2 * 87 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-687
SELECT + col1 * - - CAST ( NULL AS REAL ) * - CAST ( + - col2 AS REAL ) * - 21 / + + col2 * col2 * + - col2 * 87 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( + col1 ) * col0 + + + 3 AS col2 FROM tab0 AS cor0
----
-1212
-1824
-94

query I rowsort
SELECT ALL - 60 * ( + + col0 ) + - col2 FROM tab2 cor0
----
-2783
-3880
-4558

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT - COUNT( * ) * - + 19 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-690
SELECT - COUNT ( * ) * - + 19 FROM tab2
----
57

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-693
SELECT ALL + CAST( COUNT( DISTINCT + col1 ) AS SIGNED ) + + MAX( - + 92 ) * 88 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL + CAST ( COUNT ( DISTINCT + col1 ) AS INTEGER ) + + MAX ( - + 92 ) * 88 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-694
SELECT ( - 57 ) DIV - + 38 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-694
SELECT ( - 57 ) / - + 38 FROM tab0
----
1
1
1

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-697
SELECT DISTINCT - - 88 * + col2 + - col1 - CAST( NULL AS SIGNED ) * 73 / col0 col2, 92 FROM tab1 AS cor0
----
NULL
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-697
SELECT DISTINCT - - 88 * + col2 + - col1 - CAST ( NULL AS INTEGER ) * 73 / col0 col2, 92 FROM tab1 AS cor0
----
NULL
92

query I rowsort
SELECT ALL - 95 + + col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT - 70 * 70 AS col2 FROM tab2 AS cor0
----
-4900
-4900
-4900

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT ALL + + ( - SUM( ALL + 48 ) ) AS col1 FROM tab1 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-700
SELECT ALL + + ( - SUM ( ALL + 48 ) ) AS col1 FROM tab1 AS cor0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT MIN( + + 94 ) + - 78 FROM tab1 cor0 WHERE NULL = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-701
SELECT MIN ( + + 94 ) + - 78 FROM tab1 cor0 WHERE NULL = ( NULL )
----
NULL

query I rowsort
SELECT DISTINCT + ( - col1 ) + + 48 * - 58 AS col0 FROM tab1 AS cor0
----
-2789
-2798
-2831

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 19 * - 84 <> + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col2, col2 * + + col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 + - 8 IN ( - + 31 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-706
SELECT col2 + - CAST( NULL AS SIGNED ), + col2 * - col0 FROM tab0 WHERE NULL IN ( + col2 * + + col2 )
----

skipif mysql # not compatible
query II rowsort label-706
SELECT col2 + - CAST ( NULL AS INTEGER ), + col2 * - col0 FROM tab0 WHERE NULL IN ( + col2 * + + col2 )
----

query II rowsort
SELECT col0 + + col1 * + 52, col0 AS col0 FROM tab2
----
2698
46
3559
75
4068
64

onlyif mysql # aggregate syntax: 
query II rowsort label-708
SELECT 1 + - ( COUNT( * ) ), SUM( DISTINCT + - 15 ) AS col2 FROM tab0
----
-2
-15

skipif mysql # not compatible
query II rowsort label-708
SELECT 1 + - ( COUNT ( * ) ), SUM ( DISTINCT + - 15 ) AS col2 FROM tab0
----
-2
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-709
SELECT ALL + col2 - + + col0 + - 45 * - + col1 + 63 * + + 87 + + 86 + - 64 / - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-709
SELECT ALL + col2 - + + col0 + - 45 * - + col1 + 63 * + + 87 + + 86 + - 64 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col0 BETWEEN col2 + - + col1 AND ( - 17 ) + col1
----
87
21
10
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 59 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT DISTINCT - 83 * col0 AS col0 FROM tab1 AS cor0
----
-4233
-7055
-7553

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-716
SELECT + 5 AS col0 FROM tab0 AS cor0 WHERE NOT + CAST( + - 64 AS SIGNED ) + - col1 IS NULL
----
5
5
5

skipif mysql # not compatible
query I rowsort label-716
SELECT + 5 AS col0 FROM tab0 AS cor0 WHERE NOT + CAST ( + - 64 AS INTEGER ) + - col1 IS NULL
----
5
5
5

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 * - col1 + - 69 col2 FROM tab2
----
33
65
85

query I rowsort
SELECT 58 + + col2 FROM tab1
----
117
126
154

query I rowsort
SELECT + 73 * - col1 * col2 + + col1 FROM tab2
----
-224763
-283611
-85578

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-721
SELECT 95 DIV - 68 + - 21 AS col0, MAX( - - col2 ) FROM tab1 WHERE NOT ( NOT - col0 > + col0 )
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-721
SELECT 95 / - 68 + - 21 AS col0, MAX ( - - col2 ) FROM tab1 WHERE NOT ( NOT - col0 > + col0 )
----
-22
NULL

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

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

query I rowsort
SELECT ALL 29 + + col2 AS col2 FROM tab0 AS cor0
----
128
39
76

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

query I rowsort
SELECT col0 FROM tab2 WHERE + col0 IS NULL AND col0 - ( - 16 ) = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-726
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 29 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-726
SELECT DISTINCT CAST ( NULL AS REAL ) * 29 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT NULL >= - col1
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - 53 * - - col2 + + col2 AS col0 FROM tab0 AS cor0
----
2538
5346
540

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT DISTINCT + COUNT( + + 84 ) FROM tab2 cor0 WHERE NOT ( NOT + - col2 BETWEEN col2 AND + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-732
SELECT DISTINCT + COUNT ( + + 84 ) FROM tab2 cor0 WHERE NOT ( NOT + - col2 BETWEEN col2 AND + col0 )
----
0

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE 78 * - col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 46 * + col2 * + col0 NOT IN ( + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 46 + + col0 AS col0, + 72 AS col1 FROM tab1
----
131
72
137
72
97
72

query I rowsort
SELECT col0 * + 33 FROM tab1
----
1683
2805
3003

query I rowsort
SELECT - 20 - + col0 * - col2 * - col2 AS col0 FROM tab2
----
-102420
-24354
-252320

query I rowsort
SELECT DISTINCT ( + - 39 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-39

query I rowsort
SELECT - 76 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, - 66 FROM tab0 AS cor0
----
15
-66
87
-66
97
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT DISTINCT COUNT( * ) + + 44 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-743
SELECT DISTINCT COUNT ( * ) + + 44 FROM tab1 AS cor0
----
47

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

query I rowsort
SELECT DISTINCT + + 67 AS col0 FROM tab2 AS cor0
----
67

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-747
SELECT CAST( NULL AS SIGNED ) * 17 * - 72 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-747
SELECT CAST ( NULL AS INTEGER ) * 17 * - 72 AS col2 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT - MIN( 73 ) * MIN( - col2 ) + 46 AS col2 FROM tab1
----
7054

skipif mysql # not compatible
query I rowsort label-749
SELECT - MIN ( 73 ) * MIN ( - col2 ) + 46 AS col2 FROM tab1
----
7054

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 * - col1 * - + 69 + - + col1 col0 FROM tab1 AS cor0
----
113458
12070
33796

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT + + COUNT( * ) + + 14 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-751
SELECT + + COUNT ( * ) + + 14 FROM tab1 AS cor0
----
17

query I rowsort
SELECT ALL + 61 * - col0 FROM tab1 AS cor0
----
-3111
-5185
-5551

query III rowsort
SELECT * FROM tab0 cor0 WHERE 17 IS NULL
----

query I rowsort
SELECT DISTINCT ( - + col0 ) + + + col1 + - col2 + + col1 FROM tab1 cor0
----
-119
-134
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT DISTINCT - 84 + ( + MIN( - col1 ) ) FROM tab1
----
-131

skipif mysql # not compatible
query I rowsort label-755
SELECT DISTINCT - 84 + ( + MIN ( - col1 ) ) FROM tab1
----
-131

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

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

query I rowsort
SELECT 58 * + col0 FROM tab0
----
5046
5626
870

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT DISTINCT 95 + 8 + + COUNT( * ) AS col1 FROM tab2
----
106

skipif mysql # not compatible
query I rowsort label-758
SELECT DISTINCT 95 + 8 + + COUNT ( * ) AS col1 FROM tab2
----
106

query I rowsort
SELECT DISTINCT + col0 - + + col2 FROM tab1
----
-45
23
26

query I rowsort
SELECT - + 71 * ( + 80 ) FROM tab1 AS cor0
----
-5680
-5680
-5680

query II rowsort
SELECT 77 AS col1, 2 * + col0 FROM tab2 AS cor0
----
77
128
77
150
77
92

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

query I rowsort
SELECT DISTINCT - col1 * + - col1 + col0 AS col0 FROM tab2 AS cor0
----
2647
4564
5993

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-764
SELECT DISTINCT + CAST( - - 13 AS SIGNED ) FROM tab2
----
13

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT COUNT( * ) * + COUNT( * ) + - MAX( DISTINCT 62 ) FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-766
SELECT COUNT ( * ) * + COUNT ( * ) + - MAX ( DISTINCT 62 ) FROM tab2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT ALL MAX( - col2 ) FROM tab1 WHERE NOT - 3 IS NULL
----
-59

skipif mysql # not compatible
query I rowsort label-767
SELECT ALL MAX ( - col2 ) FROM tab1 WHERE NOT - 3 IS NULL
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-768
SELECT COUNT( * ) DIV + + 60 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-768
SELECT COUNT ( * ) / + + 60 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col1, + col0 col1 FROM tab0 WHERE NOT ( NOT ( NOT ( NOT NULL >= - col2 + - col0 ) ) )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 col1, 74 FROM tab2 AS cor0
----
-46
74
-64
74
-75
74

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT DISTINCT - MIN( + 76 ) FROM tab1 cor0
----
-76

skipif mysql # not compatible
query I rowsort label-772
SELECT DISTINCT - MIN ( + 76 ) FROM tab1 cor0
----
-76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT + 69 * - - COUNT( * ) + + - COUNT( * ) * + - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
702

skipif mysql # not compatible
query I rowsort label-774
SELECT + 69 * - - COUNT ( * ) + + - COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
702

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

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

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

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

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

skipif mysql # not compatible
query I rowsort label-779
SELECT DISTINCT - COUNT ( * ) / MAX ( + col2 ) FROM tab2 cor0
----
0

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

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

query I rowsort
SELECT + col1 * - 82 + + - col2 + + 25 AS col2 FROM tab0 AS cor0
----
-156
-1707
-6664

query I rowsort
SELECT DISTINCT col1 + + col0 - - 80 FROM tab1
----
145
170
218

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 BETWEEN 89 AND ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE 26 IS NULL
----

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT - - COUNT( * ) - + 34 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-790
SELECT - - COUNT ( * ) - + 34 FROM tab0 AS cor0
----
-31

query III rowsort
SELECT * FROM tab1 WHERE - 64 < NULL
----

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

query I rowsort
SELECT - col2 + + col0 * + + col1 FROM tab0 cor0
----
-2
1168
1817

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 93 col1, - col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-795
SELECT - + ( MIN ( ALL - 49 ) ) FROM tab2 AS cor0
----
49

query I rowsort
SELECT col0 * + 90 FROM tab0 AS cor0
----
1350
7830
8730

query I rowsort
SELECT ALL col0 * - 28 AS col2 FROM tab0
----
-2436
-2716
-420

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-799
SELECT DISTINCT + 98 * 8 AS col0 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) <= - - col2
----

skipif mysql # not compatible
query I rowsort label-799
SELECT DISTINCT + 98 * 8 AS col0 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) <= - - col2
----

query I rowsort
SELECT ALL col1 * - + 17 FROM tab1
----
-238
-799
-85

query III rowsort
SELECT * FROM tab2 WHERE NOT + 17 IN ( 58 * + 33, - col0, col2 * + + 92 * + col1, - 69 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-802
SELECT ALL + COUNT ( * ) / + 65 AS col0 FROM tab0
----
0

query II rowsort
SELECT DISTINCT 20, - ( + col1 ) * col0 AS col1 FROM tab2
----
20
-2346
20
-4928
20
-5025

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < 1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col1 * + col2 >= NULL
----

query II rowsort
SELECT - - 80 AS col2, - 23 * col1 FROM tab1 AS cor0
----
80
-1081
80
-115
80
-322

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

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

query I rowsort
SELECT ALL col1 + - 14 AS col1 FROM tab1 AS cor0
----
-9
0
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT DISTINCT COUNT( * ) + + 32 col0 FROM tab1
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-811
SELECT DISTINCT COUNT ( * ) + + 32 col0 FROM tab1
----
35

query I rowsort
SELECT DISTINCT - 26 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-26

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

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

query I rowsort
SELECT col1 + - col0 + + col0 AS col0 FROM tab2
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 88 col0 FROM tab0
----
-1
-73
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + - col0 col2, 11 * 17 AS col2 FROM tab2
----
-8
187
13
187
5
187

query I rowsort
SELECT ALL + 25 - + - col2 * - + 38 * - col0 * + col1 - + 16 FROM tab2
----
11075109
2050413
7490569

onlyif mysql # DIV for integer division: 
query I rowsort label-819
SELECT + ( - col1 ) * 6 + + ( - - col0 ) DIV - 69 AS col0 FROM tab1 cor0
----
-283
-31
-84

skipif mysql # not compatible
query I rowsort label-819
SELECT + ( - col1 ) * 6 + + ( - - col0 ) / - 69 AS col0 FROM tab1 cor0
----
-283
-31
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - 75 ) col2, - 69 FROM tab0 AS cor0
----
-75
-69
-75
-69
-75
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-821
SELECT DISTINCT 47 + + CAST( - ( - COUNT( * ) ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-821
SELECT DISTINCT 47 + + CAST ( - ( - COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
50

query I rowsort
SELECT ALL - 42 + - - col1 AS col0 FROM tab2
----
25
35
9

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

skipif mysql # not compatible
query I rowsort label-823
SELECT DISTINCT - COUNT ( * ) - + + CAST ( + 28 AS INTEGER ) AS col1 FROM tab2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT + - MIN( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-824
SELECT + - MIN ( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 94 * + col0 <= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-826
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN - - CAST( + - col1 AS SIGNED ) AND col0 * + + 14 * - col0
----

skipif mysql # not compatible
query III rowsort label-826
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN - - CAST ( + - col1 AS INTEGER ) AND col0 * + + 14 * - col0
----

query I rowsort
SELECT + 19 FROM tab1 cor0 WHERE NOT - 77 * 77 >= 29
----
19
19
19

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 78 IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-832
SELECT + col0 DIV 92 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-832
SELECT + col0 / 92 col1 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT 3 * - COUNT( * ) * MAX( ALL + ( ( + col0 ) ) ) * - - 23 FROM tab2
----
-15525

skipif mysql # not compatible
query I rowsort label-833
SELECT 3 * - COUNT ( * ) * MAX ( ALL + ( ( + col0 ) ) ) * - - 23 FROM tab2
----
-15525

query I rowsort
SELECT - + col2 * - col0 FROM tab0 WHERE NOT col1 * - + 77 * - col2 * - col0 + - 41 > ( + - 14 ) + + ( - col1 )
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT ( + + SUM( - col2 ) ) * SUM( DISTINCT - + 76 ) col0 FROM tab0
----
11856

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-835
SELECT ( + + SUM ( - col2 ) ) * SUM ( DISTINCT - + 76 ) col0 FROM tab0
----
11856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-836
SELECT - CAST( + ( 94 ) AS SIGNED ) FROM tab1
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-836
SELECT - CAST ( + ( 94 ) AS INTEGER ) FROM tab1
----
-94
-94
-94

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

skipif mysql # not compatible
query I rowsort label-837
SELECT - COUNT ( DISTINCT - col0 ) AS col2 FROM tab1
----
-3

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

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

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

query I rowsort
SELECT ALL - - 93 AS col0 FROM tab0 cor0
----
93
93
93

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

onlyif mysql # DIV for integer division: 
query I rowsort label-842
SELECT ALL + ( + + 67 ) DIV col2 AS col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-842
SELECT ALL + ( + + 67 ) / col2 AS col2 FROM tab2
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT + MIN( - 35 ) + - + 35 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-70

skipif mysql # not compatible
query I rowsort label-843
SELECT + MIN ( - 35 ) + - + 35 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT DISTINCT - MAX( ALL - 31 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
31

skipif mysql # not compatible
query I rowsort label-844
SELECT DISTINCT - MAX ( ALL - 31 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-845
SELECT DISTINCT - CAST( col0 AS SIGNED ) * + 25 * col2 col0 FROM tab1 cor0
----
-122400
-125375
-154700

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-845
SELECT DISTINCT - CAST ( col0 AS INTEGER ) * + 25 * col2 col0 FROM tab1 cor0
----
-122400
-125375
-154700

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-846
SELECT ALL MIN ( + col2 ) col1 FROM tab1 AS cor0
----
59

query I rowsort
SELECT + - col1 + + + 62 AS col2 FROM tab2 AS cor0
----
-15
-5
11

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT - + COUNT( * ) + + - 40 FROM tab0 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-848
SELECT - + COUNT ( * ) + + - 40 FROM tab0 AS cor0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT DISTINCT - 45 + - SUM( DISTINCT - col0 ) + - 21 AS col2 FROM tab2 AS cor0
----
119

skipif mysql # not compatible
query I rowsort label-849
SELECT DISTINCT - 45 + - SUM ( DISTINCT - col0 ) + - 21 AS col2 FROM tab2 AS cor0
----
119

query I rowsort
SELECT col1 + - 17 + + col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col2 * - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 * - col0 + col2 AS col2 FROM tab0 AS cor0
----
272
7579
9508

query III rowsort
SELECT * FROM tab1 WHERE - col1 = col0 + + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-853
SELECT DISTINCT + col0 + - col2 DIV + - col2 AS col1 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-853
SELECT DISTINCT + col0 + - col2 / + - col2 AS col1 FROM tab2
----
47
65
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, + 97 * + - ( - + col2 ) AS col0 FROM tab2
----
23
2231
40
3880
58
5626

query I rowsort
SELECT ALL col0 - + col1 + - + col1 + - - col0 AS col1 FROM tab1
----
160
74
88

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

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

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

query I rowsort
SELECT ALL + ( - + 53 ) - - col0 FROM tab0 AS cor0
----
-38
34
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-859
SELECT DISTINCT - 77 + + + 19 / + col1 FROM tab1 AS cor0 WHERE NOT - 63 NOT BETWEEN + + 57 / - CAST( NULL AS SIGNED ) + + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-859
SELECT DISTINCT - 77 + + + 19 / + col1 FROM tab1 AS cor0 WHERE NOT - 63 NOT BETWEEN + + 57 / - CAST ( NULL AS INTEGER ) + + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT + 45 - + MAX( ALL + - 23 ) AS col2 FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-860
SELECT + 45 - + MAX ( ALL + - 23 ) AS col2 FROM tab2 AS cor0
----
68

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-862
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col1 AS col2, ( + - col2 ) FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-862
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col1 AS col2, ( + - col2 ) FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

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

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

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

query I rowsort
SELECT ( 73 ) AS col0 FROM tab1 cor0
----
73
73
73

query I rowsort
SELECT + 88 FROM tab0 WHERE NOT + + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * col2 >= - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT - COUNT( * ) * - COUNT( * ) * ( + MAX( DISTINCT + col2 ) ) FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN - col2 + - 33 - + col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-868
SELECT - COUNT ( * ) * - COUNT ( * ) * ( + MAX ( DISTINCT + col2 ) ) FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN - col2 + - 33 - + col1 AND NULL
----
NULL

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

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

query I rowsort
SELECT ALL col2 * - 41 FROM tab1
----
-2419
-2788
-3936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - col0 col1 FROM tab0
----
174
194
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-872
SELECT * FROM tab2 WHERE 0 NOT IN ( 89 - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-872
SELECT * FROM tab2 WHERE 0 NOT IN ( 89 - CAST ( NULL AS INTEGER ) )
----

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

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE ( - col2 ) IN ( col0 - - col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE - 24 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 + - col0 * + col2 AS col1 FROM tab0
----
-786
-891
-9604

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( + 93 ) col0 FROM tab2
----
-2139
-3720
-5394

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

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

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

query I rowsort
SELECT - 37 * - col1 FROM tab1
----
1739
185
518

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-881
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE col0 IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 / col0 col2 FROM tab0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT ALL 6 * - SUM( DISTINCT col1 ) FROM tab1
----
-396

skipif mysql # not compatible
query I rowsort label-883
SELECT ALL 6 * - SUM ( DISTINCT col1 ) FROM tab1
----
-396

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 <= 34
----
87
21
10
97
1
99

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-887
SELECT + COUNT( * ) DIV - COUNT( * ) col2 FROM tab0
----
-1

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

query I rowsort
SELECT DISTINCT col2 - + 52 AS col2 FROM tab1
----
16
44
7

query I rowsort
SELECT col2 * - 84 FROM tab2
----
-1932
-3360
-4872

query I rowsort
SELECT DISTINCT ( - 34 ) * + col2 AS col2 FROM tab0
----
-1598
-3366
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT MIN( ALL ( + col0 ) ) * 37 AS col2 FROM tab2
----
1702

skipif mysql # not compatible
query I rowsort label-891
SELECT MIN ( ALL ( + col0 ) ) * 37 AS col2 FROM tab2
----
1702

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-892
SELECT ALL * FROM tab1 WHERE - CAST( - ( + col2 ) AS SIGNED ) / + col1 NOT BETWEEN ( - col2 * + 57 + CAST( NULL AS DECIMAL ) ) AND col0
----

skipif mysql # not compatible
query III rowsort label-892
SELECT ALL * FROM tab1 WHERE - CAST ( - ( + col2 ) AS INTEGER ) / + col1 NOT BETWEEN ( - col2 * + 57 + CAST ( NULL AS REAL ) ) AND col0
----

query I rowsort
SELECT 66 * + 21 FROM tab0
----
1386
1386
1386

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 * 54 col1 FROM tab0
----
-3888
-3888
-3888

query I rowsort
SELECT - col2 * 96 AS col2 FROM tab2 WHERE NULL IS NULL
----
-2208
-3840
-5568

query I rowsort
SELECT 42 + 56 AS col0 FROM tab1 AS cor0
----
98
98
98

query I rowsort
SELECT ALL 37 - 57 AS col2 FROM tab1 AS cor0
----
-20
-20
-20

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT - COUNT( * ) * + 7 col2 FROM tab2
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-901
SELECT - COUNT ( * ) * + 7 col2 FROM tab2
----
-21

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

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

query I rowsort
SELECT DISTINCT 67 FROM tab0 AS cor0 CROSS JOIN tab0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-904
SELECT ALL 37 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * col2 + 93 < NULL
----

skipif mysql # not compatible
query I rowsort label-904
SELECT ALL 37 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * col2 + 93 < NULL
----

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

skipif mysql # not compatible
query I rowsort label-905
SELECT DISTINCT + MIN ( ALL + col0 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT 53 * + col2 + + 1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - col2 * - col2
----

query I rowsort
SELECT - col2 * col1 AS col1 FROM tab0 AS cor0 WHERE NOT - 76 IN ( col0 + - col2 )
----
-210
-3807
-99

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

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

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

skipif mysql # not compatible
query I rowsort label-910
SELECT 85 / - + col2 FROM tab0
----
-1
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT DISTINCT COUNT( * ) + + COUNT( col1 ) FROM tab1 WHERE NOT NULL NOT IN ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-911
SELECT DISTINCT COUNT ( * ) + + COUNT ( col1 ) FROM tab1 WHERE NOT NULL NOT IN ( - col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT DISTINCT MAX( + 53 ) FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-912
SELECT DISTINCT MAX ( + 53 ) FROM tab2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT - 28 * ( - COUNT( * ) * + 63 ) FROM tab0 WHERE NOT + 11 + col2 <> col1
----
1764

skipif mysql # not compatible
query I rowsort label-913
SELECT - 28 * ( - COUNT ( * ) * + 63 ) FROM tab0 WHERE NOT + 11 + col2 <> col1
----
1764

query I rowsort
SELECT + 90 * - + col2 FROM tab0
----
-4230
-8910
-900

query I rowsort
SELECT ( - - col0 ) * 0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT + 8 * MIN( DISTINCT - 87 ) * + 51 FROM tab0
----
-35496

skipif mysql # not compatible
query I rowsort label-916
SELECT + 8 * MIN ( DISTINCT - 87 ) * + 51 FROM tab0
----
-35496

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - col1 / - 38 )
----

query I rowsort
SELECT DISTINCT col0 * col0 FROM tab1 WHERE NOT col0 * + 91 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT - 54 * 5 * + col2 - col0 FROM tab1 AS cor0
----
-16015
-18451
-25971

query I rowsort
SELECT DISTINCT - - ( - col0 ) * 63 FROM tab1 AS cor0
----
-3213
-5355
-5733

query I rowsort
SELECT DISTINCT - - col0 * col0 + col2 * col1 + - col2 * 88 FROM tab2 AS cor0
----
1265
3656
4407

query I rowsort
SELECT col0 + - 65 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-14
20
26

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-926
SELECT ALL * FROM tab1 WHERE NOT col2 >= CAST( col1 AS SIGNED ) + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-926
SELECT ALL * FROM tab1 WHERE NOT col2 >= CAST ( col1 AS INTEGER ) + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL > NULL
----

query I rowsort
SELECT 11 AS col1 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 21 * - col2 - col0 IS NULL
----

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

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

query I rowsort
SELECT ALL 58 * + ( - + 83 ) FROM tab2 AS cor0
----
-4814
-4814
-4814

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - ( + + 33 ) / col0 ) NOT IN ( + col0 / + 18 )
----

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

query I rowsort
SELECT ALL + 90 + - col1 * - - 46 AS col0 FROM tab1 AS cor0
----
-140
-2072
-554

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

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

query I rowsort
SELECT col2 + - 96 FROM tab0 AS cor0
----
-49
-86
3

query I rowsort
SELECT ALL + 21 + - col2 * - - 28 AS col0 FROM tab0 AS cor0
----
-1295
-259
-2751

onlyif mysql # DIV for integer division: 
query I rowsort label-938
SELECT + + col1 * + + 82 + + 80 DIV col0 AS col2 FROM tab2 AS cor0
----
4183
5495
6315

skipif mysql # not compatible
query I rowsort label-938
SELECT + + col1 * + + 82 + + 80 / col0 AS col2 FROM tab2 AS cor0
----
4183
5495
6315

query II rowsort
SELECT 42 AS col2, 82 FROM tab2 AS cor0
----
42
82
42
82
42
82

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

query I rowsort
SELECT ALL col0 + + col0 - 1 * + - 26 + + 68 * + col1 FROM tab2
----
3586
4732
5390

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-943
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) FROM tab2 WHERE - 67 NOT BETWEEN ( - - col2 ) AND - col2 + + 27
----
1

skipif mysql # not compatible
query I rowsort label-943
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) FROM tab2 WHERE - 67 NOT BETWEEN ( - - col2 ) AND - col2 + + 27
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT DISTINCT + COUNT( * ) + - - ( + 59 ) + - - ( + 64 ) FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-944
SELECT DISTINCT + COUNT ( * ) + - - ( + 59 ) + - - ( + 64 ) FROM tab1
----
126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 14 col1 FROM tab1
----
19
28
61

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT ALL 34 - COUNT( col1 ) col0 FROM tab0
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-946
SELECT ALL 34 - COUNT ( col1 ) col0 FROM tab0
----
31

query III rowsort
SELECT * FROM tab2 WHERE + + ( - col2 ) / + 9 <= - ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-948
SELECT ALL - col0 DIV ( + col0 ) - - - col0 * col1 AS col2 FROM tab0
----
-1216
-1828
-98

skipif mysql # not compatible
query I rowsort label-948
SELECT ALL - col0 / ( + col0 ) - - - col0 * col1 AS col2 FROM tab0
----
-1216
-1828
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT ALL + SUM( ALL + + col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-949
SELECT ALL + SUM ( ALL + + col2 ) AS col0 FROM tab2
----
121

query III rowsort
SELECT * FROM tab2 WHERE - - 22 IN ( + 84 - ( + col0 + - col2 / col2 ) )
----

query I rowsort
SELECT DISTINCT col0 - + - 30 + - col0 * 28 FROM tab2
----
-1212
-1698
-1995

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT - MIN( DISTINCT - col0 ) - - + 72 FROM tab2 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-952
SELECT - MIN ( DISTINCT - col0 ) - - + 72 FROM tab2 AS cor0
----
147

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-953
SELECT ALL CAST( NULL AS DECIMAL ) - + + col0 + 58 + + col2 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL CAST ( NULL AS REAL ) - + + col0 + 58 + + col2 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT 66 * + - SUM( ALL ( + 67 ) ) FROM tab0 AS cor0
----
-13266

skipif mysql # not compatible
query I rowsort label-954
SELECT 66 * + - SUM ( ALL ( + 67 ) ) FROM tab0 AS cor0
----
-13266

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

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT ALL + - COUNT( * ) * 2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-956
SELECT ALL + - COUNT ( * ) * 2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= ( - col2 - - + 7 * - + 72 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-958
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, + 44 - + col2 - + 85 * - 34 FROM tab1
----
NULL
2838
NULL
2866
NULL
2875

skipif mysql # not compatible
query II rowsort label-958
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, + 44 - + col2 - + 85 * - 34 FROM tab1
----
NULL
2838
NULL
2866
NULL
2875

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

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT DISTINCT MIN( + 74 ) FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-960
SELECT DISTINCT MIN ( + 74 ) FROM tab1 AS cor0
----
74

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT ( NOT col2 IN ( + 8 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-966
SELECT - col1 / - ( - 86 ) FROM tab2 WHERE NOT + + col2 + - + col1 + col0 + col1 NOT BETWEEN col0 AND - CAST( col1 AS DECIMAL ) * col2
----

skipif mysql # not compatible
query I rowsort label-966
SELECT - col1 / - ( - 86 ) FROM tab2 WHERE NOT + + col2 + - + col1 + col0 + col1 NOT BETWEEN col0 AND - CAST ( col1 AS REAL ) * col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT DISTINCT - + MIN( + - 54 ) AS col2 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-968
SELECT DISTINCT - + MIN ( + - 54 ) AS col2 FROM tab1 AS cor0
----
54

query I rowsort
SELECT - col1 * col1 + col2 FROM tab1 AS cor0
----
-100
-2141
34

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

query I rowsort
SELECT ALL - 3 + - 12 * - + col2 FROM tab2
----
273
477
693

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

query I rowsort
SELECT + col2 * + 28 * + col0 * + col0 * 22 AS col2 FROM tab1
----
153812736
262585400
346874528

onlyif mysql # DIV for integer division: 
query I rowsort label-974
SELECT DISTINCT 25 DIV + - 90 + - 79 FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-974
SELECT DISTINCT 25 / + - 90 + - 79 FROM tab0
----
-79

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-976
SELECT 67 DIV - col2 + - - col1 AS col2 FROM tab0 AS cor0
----
1
15
80

skipif mysql # not compatible
query I rowsort label-976
SELECT 67 / - col2 + - - col1 AS col2 FROM tab0 AS cor0
----
1
15
80

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-978
SELECT DISTINCT 19 * - 86 + + - COUNT( * ) + + + CAST( 48 AS SIGNED ) AS col0, + SUM( DISTINCT + + col0 ) FROM tab1 cor0
----
-1589
227

skipif mysql # not compatible
query II rowsort label-978
SELECT DISTINCT 19 * - 86 + + - COUNT ( * ) + + + CAST ( 48 AS INTEGER ) AS col0, + SUM ( DISTINCT + + col0 ) FROM tab1 cor0
----
-1589
227

onlyif mysql # aggregate syntax: 
query I rowsort label-979
SELECT 63 + - - MIN( ALL 86 ) AS col2 FROM tab1
----
149

skipif mysql # not compatible
query I rowsort label-979
SELECT 63 + - - MIN ( ALL 86 ) AS col2 FROM tab1
----
149

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 82 / + col1 + + col1 <> - col1
----

query I rowsort
SELECT ALL 98 - - col0 AS col0 FROM tab2
----
144
162
173

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

skipif mysql # not compatible
query I rowsort label-982
SELECT + col1 FROM tab1 WHERE NULL NOT BETWEEN + CAST ( col0 AS INTEGER ) + - col2 + + + 42 * - col2 AND NULL
----

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

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

query I rowsort
SELECT DISTINCT + col2 - 5 FROM tab1
----
54
63
91

query I rowsort
SELECT ALL 86 * - 51 * + 87 + + col2 FROM tab1
----
-381486
-381514
-381523

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 19 col0 FROM tab2 WHERE NOT + + 87 + + col2 + ( - col0 ) IS NULL
----
1102
437
760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-987
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT ( NOT ( - 86 / + col1 + + ( - CAST( NULL AS SIGNED ) ) + + col2 ) >= ( + 48 ) )
----
0

skipif mysql # not compatible
query I rowsort label-987
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT ( NOT ( - 86 / + col1 + + ( - CAST ( NULL AS INTEGER ) ) + + col2 ) >= ( + 48 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT + 49 + SUM( - - col1 ) FROM tab1 WHERE NOT + col2 + - 10 + + 85 * col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-988
SELECT + 49 + SUM ( - - col1 ) FROM tab1 WHERE NOT + col2 + - 10 + + 85 * col0 IS NOT NULL
----
NULL

query II rowsort
SELECT 80 * - col0 AS col2, col1 FROM tab2
----
-3680
51
-5120
77
-6000
67

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-992
SELECT ALL ( - col2 ) * + col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 WHERE 28 + + col1 NOT BETWEEN + 24 + + col0 - 18 * - + col1 AND + col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL ( - col2 ) * + col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 WHERE 28 + + col1 NOT BETWEEN + 24 + + col0 - 18 * - + col1 AND + col1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT ALL + COUNT( DISTINCT + 58 ) col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-993
SELECT ALL + COUNT ( DISTINCT + 58 ) col0 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT ALL + 9 + - + MAX( DISTINCT col0 ) FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-994
SELECT ALL + 9 + - + MAX ( DISTINCT col0 ) FROM tab1 AS cor0
----
-82

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-997
SELECT + col1 + col2 DIV - + col2 + - col2 AS col2, col2 FROM tab2 AS cor0
----
27
23
36
40
8
58

skipif mysql # not compatible
query II rowsort label-997
SELECT + col1 + col2 / - + col2 + - col2 AS col2, col2 FROM tab2 AS cor0
----
27
23
36
40
8
58

query I rowsort
SELECT + - col1 + - col1 FROM tab0 cor0
----
-162
-2
-42

query I rowsort
SELECT ALL + 42 * col2 + - ( - - col0 ) AS col2 FROM tab0 AS cor0
----
1959
333
4061

onlyif mysql # DIV for integer division: 
query I rowsort label-1000
SELECT ALL - 41 DIV - 3 AS col1 FROM tab2
----
13
13
13

skipif mysql # not compatible
query I rowsort label-1000
SELECT ALL - 41 / - 3 AS col1 FROM tab2
----
13
13
13

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 <> 9
----

query I rowsort
SELECT - col0 + - - col1 AS col0 FROM tab1
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT DISTINCT COUNT( * ) + 48 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-1003
SELECT DISTINCT COUNT ( * ) + 48 FROM tab0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 87 ) + + col1 col2 FROM tab2
----
138
154
164

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

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

query I rowsort
SELECT DISTINCT col0 + col0 * - col1 AS col1 FROM tab1
----
-340
-4186
-663

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 36 BETWEEN NULL AND + 8 * - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT - ( + 8 ) IS NULL
----
51
67
77

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1010
SELECT CAST( NULL AS SIGNED ) FROM tab2 WHERE col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1010
SELECT CAST ( NULL AS INTEGER ) FROM tab2 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT 38 - + + MAX( - - col0 ) FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-1011
SELECT 38 - + + MAX ( - - col0 ) FROM tab0
----
-59

query III rowsort
SELECT * FROM tab2 WHERE + 17 * col1 IS NULL
----

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

query II rowsort
SELECT DISTINCT col1, + 94 FROM tab2 AS cor0
----
51
94
67
94
77
94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * col1 * col0 * - 44 = + col0 + + - col2
----

query I rowsort
SELECT ALL + + col1 * + - 65 FROM tab1 cor0
----
-3055
-325
-910

query I rowsort
SELECT - - 36 * - 93 * + col1 FROM tab0 cor0
----
-271188
-3348
-70308

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col0 NOT IN ( - col2, + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1019
SELECT ALL CAST( + 47 AS SIGNED ) FROM tab1 AS cor0
----
47
47
47

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

query I rowsort
SELECT - col0 FROM tab0 cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1021
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1021
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1022
SELECT ALL - ( - + CAST( + 40 AS SIGNED ) ) FROM tab0 AS cor0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-1022
SELECT ALL - ( - + CAST ( + 40 AS INTEGER ) ) FROM tab0 AS cor0
----
40
40
40

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

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

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

query I rowsort
SELECT + col2 * col2 * - col2 AS col1 FROM tab1
----
-205379
-314432
-884736

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1027
SELECT DISTINCT - COUNT( ALL CAST( - 40 AS SIGNED ) ) * 8 AS col1 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-1027
SELECT DISTINCT - COUNT ( ALL CAST ( - 40 AS INTEGER ) ) * 8 AS col1 FROM tab1 AS cor0
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 45 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

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

skipif mysql # not compatible
query I rowsort label-1029
SELECT + MAX ( col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1030
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, + 55 + + - ( - CAST( + + 41 AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
96

skipif mysql # not compatible
query II rowsort label-1030
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, + 55 + + - ( - CAST ( + + 41 AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
96

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

query I rowsort
SELECT ALL - col0 * + - col1 * + col0 AS col2 FROM tab1 AS cor0
----
36125
36414
389207

query I rowsort
SELECT ( + + col0 ) AS col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT + MAX( ALL 20 ) FROM tab2 cor0
----
20

skipif mysql # not compatible
query I rowsort label-1034
SELECT + MAX ( ALL 20 ) FROM tab2 cor0
----
20

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 * - 14 / col0 <> 75
----

query II rowsort
SELECT DISTINCT col2 AS col1, 12 * + + 51 FROM tab0 AS cor0
----
10
612
47
612
99
612

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

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

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

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

query II rowsort
SELECT 18 AS col0, - col2 FROM tab1 AS cor0
----
18
-59
18
-68
18
-96

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

query I rowsort
SELECT DISTINCT col0 + - 59 AS col2 FROM tab1
----
-8
26
32

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

query I rowsort
SELECT DISTINCT ( + 10 ) + + col2 + + - 97 + col1 AS col0 FROM tab2
----
-13
30
38

query I rowsort
SELECT DISTINCT 45 * - - 81 * + 80 FROM tab0
----
291600

query II rowsort
SELECT col0 + col0 AS col0, 14 * col2 FROM tab0
----
174
140
194
1386
30
658

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1048
SELECT - + col1 DIV - col1 + + 9 AS col1 FROM tab2 AS cor0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-1048
SELECT - + col1 / - col1 + + 9 AS col1 FROM tab2 AS cor0
----
10
10
10

onlyif mysql # DIV for integer division: 
query I rowsort label-1049
SELECT ALL col1 DIV 17 + - - 21 + + - col1 col0 FROM tab1 AS cor0
----
-24
16
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1049
SELECT ALL col1 / 17 + - - 21 + + - col1 col0 FROM tab1 AS cor0
----
-24
16
7

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1051
SELECT DISTINCT 61 DIV + COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
15

skipif mysql # not compatible
query I rowsort label-1051
SELECT DISTINCT 61 / + COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
15

query I rowsort
SELECT + col1 * - 78 - - + 42 FROM tab2
----
-3936
-5184
-5964

query I rowsort
SELECT ALL - + 46 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT DISTINCT col2 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

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

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

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

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1060
SELECT + col1 * - CAST( NULL AS DECIMAL ) FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1060
SELECT + col1 * - CAST ( NULL AS REAL ) FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 76 * - + 68 AS col2 FROM tab2
----
5168

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT + SUM( + col1 ) * - - 27 FROM tab1
----
1782

skipif mysql # not compatible
query I rowsort label-1062
SELECT + SUM ( + col1 ) * - - 27 FROM tab1
----
1782

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

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

query II rowsort
SELECT DISTINCT - col1 AS col0, - col2 * col2 AS col0 FROM tab0
----
-1
-9801
-21
-100
-81
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT MAX( col2 ) AS col1 FROM tab2 WHERE NOT + col2 <= col2 + - col2 + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-1065
SELECT MAX ( col2 ) AS col1 FROM tab2 WHERE NOT + col2 <= col2 + - col2 + 92
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1066
SELECT DISTINCT + col1 AS col1 FROM tab0 WHERE NULL <= CAST( + - 61 AS DECIMAL ) - - col1
----

skipif mysql # not compatible
query I rowsort label-1066
SELECT DISTINCT + col1 AS col1 FROM tab0 WHERE NULL <= CAST ( + - 61 AS REAL ) - - col1
----

query I rowsort
SELECT 42 * + col2 AS col1 FROM tab2
----
1680
2436
966

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

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

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

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

query II rowsort
SELECT ALL 9 * col2 AS col1, 13 AS col1 FROM tab0 AS cor0
----
423
13
891
13
90
13

query I rowsort
SELECT DISTINCT - 45 * 38 FROM tab2 AS cor0
----
-1710

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 19 - 77 ) NOT BETWEEN NULL AND + 70 - + 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT + 94 * - COUNT( col1 ) FROM tab1 cor0
----
-282

skipif mysql # not compatible
query I rowsort label-1074
SELECT + 94 * - COUNT ( col1 ) FROM tab1 cor0
----
-282

query I rowsort
SELECT DISTINCT - 19 AS col0 FROM tab0 cor0
----
-19

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 74 + - col2 * - - 24 IS NULL
----

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

query I rowsort
SELECT ALL + col2 * + + 56 + ( - col1 ) FROM tab2 AS cor0
----
1237
2163
3181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 2 - - col0 col1 FROM tab2 cor0
----
106
135
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + - + ( - col2 ) col2 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT - ( - + col1 ) + + col1 AS col1 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT + 74 + + 92 * - 34 FROM tab1 AS cor0
----
-3054
-3054
-3054

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

skipif mysql # not compatible
query I rowsort label-1084
SELECT ALL - COUNT ( * ) * + - COUNT ( * ) * + COUNT ( * ) FROM tab0
----
27

query I rowsort
SELECT col0 * - + 71 FROM tab1
----
-3621
-6035
-6461

onlyif mysql # DIV for integer division: 
query I rowsort label-1086
SELECT ALL - col2 DIV + - ( - col0 ) + col1 * 3 * + + col1 FROM tab1
----
587
6627
75

skipif mysql # not compatible
query I rowsort label-1086
SELECT ALL - col2 / + - ( - col0 ) + col1 * 3 * + + col1 FROM tab1
----
587
6627
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 68 col2 FROM tab0
----
149
69
89

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 - + col0 col1 FROM tab0 WHERE NOT col2 IS NULL
----
-196
-62
-97

query I rowsort
SELECT DISTINCT + 50 * + col1 FROM tab1 AS cor0
----
2350
250
700

query I rowsort
SELECT + 25 * + 24 AS col2 FROM tab2 AS cor0
----
600
600
600

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT 76 * COUNT( * ) + - - 51 - + 24 * - 48 - ( - 28 ) + - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
1456

skipif mysql # not compatible
query I rowsort label-1092
SELECT 76 * COUNT ( * ) + - - 51 - + 24 * - 48 - ( - 28 ) + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
1456

query I rowsort
SELECT ALL - 87 + - col0 FROM tab1 AS cor0
----
-138
-172
-178

query I rowsort
SELECT + + 7 + col1 FROM tab0 cor0
----
28
8
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1095
SELECT DISTINCT CAST( - 76 AS SIGNED ) + + ( + 50 ) col2 FROM tab0
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1095
SELECT DISTINCT CAST ( - 76 AS INTEGER ) + + ( + 50 ) col2 FROM tab0
----
-26

query I rowsort
SELECT ALL 15 + + 49 FROM tab2
----
64
64
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1097
SELECT DISTINCT col0 DIV - col0 - + 98 FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-1097
SELECT DISTINCT col0 / - col0 - + 98 FROM tab1
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0 * col1, 19 col1 FROM tab2 AS cor0
----
2346
19
4928
19
5025
19

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

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

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

query I rowsort
SELECT + ( + - col1 ) FROM tab1 AS cor0 WHERE NOT - 21 NOT BETWEEN - ( + + ( + ( 18 ) ) ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * col1, + col2 col1 FROM tab2 AS cor0
----
-2346
23
-4928
40
-5025
58

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1104
SELECT ALL + 17 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
17

skipif mysql # not compatible
query I rowsort label-1104
SELECT ALL + 17 / col1 AS col1 FROM tab0 AS cor0
----
0
0
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 * + 72 + + 70 col2 FROM tab2 AS cor0
----
6910
6910
6910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 + col1 col1 FROM tab0 AS cor0
----
100
231
3888

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col0 col0 FROM tab0
----
-1215
-1827
-97

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

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

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

skipif mysql # not compatible
query I rowsort label-1110
SELECT - MIN ( ALL + 31 ) FROM tab2 AS cor0
----
-31

query II rowsort
SELECT ALL - col2 AS col1, col0 * - + col1 AS col0 FROM tab0 AS cor0 WHERE NOT + 58 + col0 / + 1 * - col1 + + col0 + + col1 <> + 71 + + - 74
----

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

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

skipif mysql # not compatible
query I rowsort label-1113
SELECT + 14 + + + COUNT ( * ) FROM tab0
----
17

query I rowsort
SELECT ( + col2 ) FROM tab0 WHERE NOT 72 <> NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT ALL - MIN( - - col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-1118
SELECT ALL - MIN ( - - col2 ) AS col0 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT ALL + - col2 + 22 AS col0 FROM tab0 AS cor0
----
-25
-77
12

query I rowsort
SELECT DISTINCT col1 * + col2 + + - col2 + - col2 FROM tab0 AS cor0
----
-99
190
3713

onlyif mysql # DIV for integer division: 
query I rowsort label-1121
SELECT + 27 DIV - + col0 col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1121
SELECT + 27 / - + col0 col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + - col1 FROM tab1 cor0 WHERE - 22 IS NOT NULL
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1123
SELECT DISTINCT + col2 * + col1 + 42 DIV col2 FROM tab0 AS cor0
----
214
3807
99

skipif mysql # not compatible
query I rowsort label-1123
SELECT DISTINCT + col2 * + col1 + 42 / col2 FROM tab0 AS cor0
----
214
3807
99

query I rowsort
SELECT ALL col2 + + 69 * + + 30 FROM tab0
----
2080
2117
2169

query I rowsort
SELECT DISTINCT 52 + + - col2 * + 7 FROM tab0
----
-18
-277
-641

query I rowsort
SELECT DISTINCT col0 - - 85 AS col0 FROM tab1
----
136
170
176

query I rowsort
SELECT 77 + + + 13 * - + 13 FROM tab0
----
-92
-92
-92

query I rowsort
SELECT col2 + - - col1 AS col2 FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1129
SELECT - CAST( + - col0 AS SIGNED ) + col1 FROM tab0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-1129
SELECT - CAST ( + - col0 AS INTEGER ) + col1 FROM tab0
----
108
96
98

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

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

query II rowsort
SELECT DISTINCT col2 - - col2 * col1 AS col0, - col1 * - - col2 AS col1 FROM tab0
----
198
-99
220
-210
3854
-3807

query I rowsort
SELECT + 5 + + col2 * col1 FROM tab2 cor0
----
1178
3085
3891

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1133
SELECT CAST( NULL AS DECIMAL ), col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-1133
SELECT CAST ( NULL AS REAL ), col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN - - 1 + - col2 + 27 AND NULL
----

query I rowsort
SELECT 52 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT DISTINCT - 36 * COUNT( * ) AS col2 FROM tab1
----
-108

skipif mysql # not compatible
query I rowsort label-1136
SELECT DISTINCT - 36 * COUNT ( * ) AS col2 FROM tab1
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT - + COUNT( * ) FROM tab0 cor0 WHERE NOT 43 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1137
SELECT - + COUNT ( * ) FROM tab0 cor0 WHERE NOT 43 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1138
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( + + 85, + CAST( NULL AS DECIMAL ), - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1138
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( + + 85, + CAST ( NULL AS REAL ), - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT DISTINCT - SUM( + + 62 ) AS col1 FROM tab0 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-1140
SELECT DISTINCT - SUM ( + + 62 ) AS col1 FROM tab0 AS cor0
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT MAX( DISTINCT + - col2 ) col0 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1141
SELECT MAX ( DISTINCT + - col2 ) col0 FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT DISTINCT + COUNT( * ) * MAX( - col2 ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-1142
SELECT DISTINCT + COUNT ( * ) * MAX ( - col2 ) FROM tab1
----
-177

onlyif mysql # DIV for integer division: 
query I rowsort label-1143
SELECT ALL - 76 DIV + 98 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1143
SELECT ALL - 76 / + 98 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1144
SELECT SUM( DISTINCT - - col1 ) col0, - 7 AS col2 FROM tab0
----
103
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1144
SELECT SUM ( DISTINCT - - col1 ) col0, - 7 AS col2 FROM tab0
----
103
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT DISTINCT - SUM( ALL - + 75 ) col0 FROM tab0
----
225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1145
SELECT DISTINCT - SUM ( ALL - + 75 ) col0 FROM tab0
----
225

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

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

skipif mysql # not compatible
query I rowsort label-1147
SELECT ALL + COUNT ( 2 ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1148
SELECT 11 + CAST( + + 7 AS SIGNED ), col1 col0 FROM tab0
----
18
1
18
21
18
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1148
SELECT 11 + CAST ( + + 7 AS INTEGER ), col1 col0 FROM tab0
----
18
1
18
21
18
81

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

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

query I rowsort
SELECT - 9 * - - 73 + - - col2 * + col2 FROM tab2 AS cor0
----
-128
2707
943

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - + col2 * + + 46
----

query I rowsort
SELECT col2 * 63 + - col2 FROM tab2 AS cor0
----
1426
2480
3596

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

query I rowsort
SELECT DISTINCT col0 + ( + 68 ) FROM tab0
----
155
165
83

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 90 * + + 73 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT - - col2 - - col2 AS col1 FROM tab2 AS cor0
----
116
46
80

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 29 col1, 55 + + 94 AS col0 FROM tab2 AS cor0
----
29
149
29
149
29
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1161
SELECT DISTINCT + CAST( + col0 AS SIGNED ) + - col0 + 38 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + 42
----

skipif mysql # not compatible
query I rowsort label-1161
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) + - col0 + 38 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT DISTINCT 3 * + COUNT( ALL + 21 ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-1162
SELECT DISTINCT 3 * + COUNT ( ALL + 21 ) AS col1 FROM tab1
----
9

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + col0 ) col1 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 46 * - - col0 <= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN ( - - col0 + + + col0 - + col0 * - - col1 ) AND + 89 + - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * + 23, + 96 + col2 col0 FROM tab1 AS cor0
----
-1081
164
-115
155
-322
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1168
SELECT ALL - - col1 * + 69 * col1 * + 10 * CAST( - 51 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-6897240
-77734710
-879750

skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL - - col1 * + 69 * col1 * + 10 * CAST ( - 51 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-6897240
-77734710
-879750

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 NOT IN ( - col0, - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col1 * + + col2 / 33 IS NULL
----

query I rowsort
SELECT col2 * + - col1 AS col2 FROM tab0
----
-210
-3807
-99

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

query I rowsort
SELECT + 0 FROM tab0 cor0 WHERE NOT NULL <> + col1 + - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1174
SELECT - ( - col1 ) + 56 DIV col2 col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1174
SELECT - ( - col1 ) + 56 / col2 col1 FROM tab1 AS cor0
----
14
47
5

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1176
SELECT DISTINCT COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1177
SELECT ALL - - COUNT ( - col2 ) col1, + 80 FROM tab0 AS cor0
----
3
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1178
SELECT - CAST( NULL AS SIGNED ) / - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1178
SELECT - CAST ( NULL AS INTEGER ) / - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

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

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

query I rowsort
SELECT + col1 + + - col1 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT - COUNT( * ) + ( - + MIN( - + col2 ) ) - SUM( + col0 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-1183
SELECT - COUNT ( * ) + ( - + MIN ( - + col2 ) ) - SUM ( + col0 ) FROM tab0
----
-103

query I rowsort
SELECT DISTINCT - col0 + - col2 + - 90 AS col0 FROM tab1
----
-234
-237
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT 94 * + 83 + - COUNT( * ) FROM tab1
----
7799

skipif mysql # not compatible
query I rowsort label-1185
SELECT 94 * + 83 + - COUNT ( * ) FROM tab1
----
7799

query I rowsort
SELECT 69 + + + 10 FROM tab0
----
79
79
79

query I rowsort
SELECT col2 + ( + col0 ) FROM tab0
----
196
62
97

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - 15 col1 FROM tab2
----
61
79
90

query I rowsort
SELECT DISTINCT 26 - + - 49 AS col0 FROM tab2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1192
SELECT + col2 + + + col1 - - col0 DIV - - 33 - col1 + - col1 AS col2 FROM tab2
----
-27
-36
-7

skipif mysql # not compatible
query I rowsort label-1192
SELECT + col2 + + + col1 - - col0 / - - 33 - col1 + - col1 AS col2 FROM tab2
----
-27
-36
-7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT DISTINCT 23 * + MIN( DISTINCT - 75 ) FROM tab2 AS cor0
----
-1725

skipif mysql # not compatible
query I rowsort label-1195
SELECT DISTINCT 23 * + MIN ( DISTINCT - 75 ) FROM tab2 AS cor0
----
-1725

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1196
SELECT DISTINCT col2 * + - col2 * 12 + - - 3 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1196
SELECT DISTINCT col2 * + - col2 * 12 + - - 3 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT col2 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - - col2 col1, - col0 FROM tab2
----
-1173
-46
-3080
-64
-3886
-75

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

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL - ( MAX ( ALL 14 ) ) AS col0 FROM tab0
----
-14

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

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

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

query I rowsort
SELECT DISTINCT - + 99 * col1 * 80 AS col1 FROM tab2 AS cor0
----
-403920
-530640
-609840

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col2 * 81 NOT BETWEEN - - col2 * - - 94 * col1 AND ( - 73 ) / + - col0
----

query I rowsort
SELECT + - 6 FROM tab2 cor0 WHERE NOT ( NULL ) >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN - col1 AND + 24
----

query I rowsort
SELECT ALL 3 * 61 FROM tab0 AS cor0
----
183
183
183

query I rowsort
SELECT DISTINCT + + col1 * + col0 * 12 AS col2 FROM tab2 AS cor0
----
28152
59136
60300

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

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

query I rowsort
SELECT DISTINCT col0 + - col2 + + col0 AS col1 FROM tab1
----
111
114
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1209
SELECT 76 + - AVG ( - CAST( NULL AS SIGNED ) ) - - - 60 / + 63 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1209
SELECT 76 + - AVG ( - CAST ( NULL AS INTEGER ) ) - - - 60 / + 63 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col2 + - ( + col0 ) + + col2 AS col0 FROM tab0 WHERE NOT - + col1 >= + col1
----
-67
101
79

query I rowsort
SELECT DISTINCT - 41 * - + col1 * 23 FROM tab2 AS cor0
----
48093
63181
72611

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT ALL SUM( + - col0 ) + COUNT( * ) FROM tab0 AS cor0
----
-196

skipif mysql # not compatible
query I rowsort label-1212
SELECT ALL SUM ( + - col0 ) + COUNT ( * ) FROM tab0 AS cor0
----
-196

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 > - - col2 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT COUNT( * ) * - SUM( - + col2 ) AS col0 FROM tab1 cor0 WHERE NULL >= + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1216
SELECT COUNT ( * ) * - SUM ( - + col2 ) AS col0 FROM tab1 cor0 WHERE NULL >= + col0
----
NULL

query I rowsort
SELECT ALL 61 * 76 AS col1 FROM tab0 AS cor0
----
4636
4636
4636

onlyif mysql # aggregate syntax: 
query II rowsort label-1218
SELECT DISTINCT - - 69 AS col2, COUNT( * ) AS col1 FROM tab2 AS cor0
----
69
3

skipif mysql # not compatible
query II rowsort label-1218
SELECT DISTINCT - - 69 AS col2, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
69
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1221
SELECT + ( + - col2 ) DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1221
SELECT + ( + - col2 ) / - col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1222
SELECT ALL col1 * - col2 + col0 + + - col2 * col2 - 75 * + col2 AS col0, - col0 DIV col2 AS col2 FROM tab2
----
-11525
-1
-3381
-2
-7616
-1

skipif mysql # not compatible
query II rowsort label-1222
SELECT ALL col1 * - col2 + col0 + + - col2 * col2 - 75 * + col2 AS col0, - col0 / col2 AS col2 FROM tab2
----
-11525
-1
-3381
-2
-7616
-1

query I rowsort
SELECT - col1 * - col0 FROM tab2 WHERE - 8 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT COUNT( * ) - 24 + - 20 * 88 AS col2 FROM tab1
----
-1781

skipif mysql # not compatible
query I rowsort label-1224
SELECT COUNT ( * ) - 24 + - 20 * 88 AS col2 FROM tab1
----
-1781

query I rowsort
SELECT ( + + 82 ) FROM tab0
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1226
SELECT - col0 + - + col0 FROM tab1 WHERE NOT + - ( CAST( NULL AS SIGNED ) ) / - col0 + + + col1 * 59 BETWEEN - col2 - + ( - col1 ) + - col2 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1226
SELECT - col0 + - + col0 FROM tab1 WHERE NOT + - ( CAST ( NULL AS INTEGER ) ) / - col0 + + + col1 * 59 BETWEEN - col2 - + ( - col1 ) + - col2 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( ( + col2 ) ) col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT + - 43 * + - col0 AS col0 FROM tab0 cor0
----
3741
4171
645

query I rowsort
SELECT col0 * - 68 * - + 6 FROM tab2 AS cor0
----
18768
26112
30600

query I rowsort
SELECT + col0 * - 31 FROM tab2 AS cor0
----
-1426
-1984
-2325

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

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 LEFT JOIN tab0 AS cor1 ON NOT ( NULL ) IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1234
SELECT + CAST( - 76 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-76
-76
-76

skipif mysql # not compatible
query I rowsort label-1234
SELECT + CAST ( - 76 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-76
-76
-76

query I rowsort
SELECT DISTINCT - - col1 * - col1 AS col1 FROM tab1 AS cor0 WHERE col2 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 1 BETWEEN 57 + + + 8 + + col2 AND - col0 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1237
SELECT + CAST( + 2 AS SIGNED ) FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1237
SELECT + CAST ( + 2 AS INTEGER ) FROM tab2
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT - COUNT( * ) + + - MAX( - ( + col1 ) ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-1238
SELECT - COUNT ( * ) + + - MAX ( - ( + col1 ) ) FROM tab0
----
-2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 94 IN ( col1, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1240
SELECT - + 63 + + - col2 + 34 + col2 * 30 DIV + + 13 AS col1 FROM tab0 AS cor0
----
-16
100
32

skipif mysql # not compatible
query I rowsort label-1240
SELECT - + 63 + + - col2 + 34 + col2 * 30 / + + 13 AS col1 FROM tab0 AS cor0
----
-16
100
32

query II rowsort
SELECT + col1 + + 97 AS col1, col2 * + - 29 FROM tab2 AS cor0
----
148
-667
164
-1682
174
-1160

query I rowsort
SELECT DISTINCT AVG ( DISTINCT + col1 ) AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - 69 * 95 AS col1 FROM tab0 AS cor0
----
-6555
-6555
-6555

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE 38 - + + col0 + 12 IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + col2 + + - col2 - + - col1 + col0 * - + 34 FROM tab1 cor0
----
-1720
-2885
-3047

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT DISTINCT - COUNT( * ) * - 63 FROM tab2 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-1246
SELECT DISTINCT - COUNT ( * ) * - 63 FROM tab2 AS cor0
----
189

query I rowsort
SELECT + 52 - col1 + - + ( + 37 ) * col2 + + + col0 FROM tab2 AS cor0
----
-1441
-2086
-804

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

query I rowsort
SELECT - 57 - - col1 * - col0 + + col2 AS col1 FROM tab2 AS cor0
----
-2380
-4945
-5024

onlyif mysql # DIV for integer division: 
query I rowsort label-1250
SELECT DISTINCT 33 DIV 51 * - - 45 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1250
SELECT DISTINCT 33 / 51 * - - 45 AS col2 FROM tab0 AS cor0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1252
SELECT DISTINCT + col1 * + + CAST( col1 AS SIGNED ) FROM tab0
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-1252
SELECT DISTINCT + col1 * + + CAST ( col1 AS INTEGER ) FROM tab0
----
1
441
6561

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1254
SELECT DISTINCT + COUNT( * ) AS col1, ( + MIN( DISTINCT - col0 ) ) AS col0 FROM tab2 AS cor0
----
3
-75

skipif mysql # not compatible
query II rowsort label-1254
SELECT DISTINCT + COUNT ( * ) AS col1, ( + MIN ( DISTINCT - col0 ) ) AS col0 FROM tab2 AS cor0
----
3
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT 97 * COUNT( * ) AS col2 FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-1256
SELECT 97 * COUNT ( * ) AS col2 FROM tab1
----
291

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

query I rowsort
SELECT ALL + - 44 FROM tab1 cor0
----
-44
-44
-44

query I rowsort
SELECT DISTINCT col1 + - 58 AS col0 FROM tab2 AS cor0
----
-7
19
9

query I rowsort
SELECT 55 + + - 17 FROM tab2 AS cor0
----
38
38
38

query I rowsort
SELECT 91 + - col1 AS col0 FROM tab1 AS cor0
----
44
77
86

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 29 / + 59 = 37 * col1
----

query II rowsort
SELECT DISTINCT - col2 + + - col2 * ( 21 ) AS col1, + 54 FROM tab1 AS cor0
----
-1298
54
-1496
54
-2112
54

onlyif mysql # aggregate syntax: 
query II rowsort label-1265
SELECT DISTINCT - 91, ( + SUM( ALL + - col1 ) ) AS col2 FROM tab0
----
-91
-103

skipif mysql # not compatible
query II rowsort label-1265
SELECT DISTINCT - 91, ( + SUM ( ALL + - col1 ) ) AS col2 FROM tab0
----
-91
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 0 AS col2, - col0 col0 FROM tab2
----
0
-46
0
-64
0
-75

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

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

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

skipif mysql # not compatible
query I rowsort label-1269
SELECT ALL MAX ( ALL - col1 ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT + + col0 * + col0 * + col0 - - + col0 FROM tab0 AS cor0
----
3390
658590
912770

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

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

query I rowsort
SELECT ALL col1 - - - ( 15 ) AS col1 FROM tab1 cor0
----
-1
-10
32

query II rowsort
SELECT col2 AS col2, col2 - - - 56 FROM tab1 AS cor0
----
59
3
68
12
96
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT DISTINCT SUM( DISTINCT - col2 ) FROM tab1 AS cor0 WHERE + ( + 14 ) + - col0 + - 2 IS NOT NULL
----
-223

skipif mysql # not compatible
query I rowsort label-1274
SELECT DISTINCT SUM ( DISTINCT - col2 ) FROM tab1 AS cor0 WHERE + ( + 14 ) + - col0 + - 2 IS NOT NULL
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT 78 < - col2
----
3

skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT 78 < - col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1276
SELECT 35 DIV - - col0 + - 68 DIV col1 FROM tab1 AS cor0
----
-1
-13
-4

skipif mysql # not compatible
query I rowsort label-1276
SELECT 35 / - - col0 + - 68 / col1 FROM tab1 AS cor0
----
-1
-13
-4

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

query I rowsort
SELECT ALL + 74 * - 29 + - + col1 - 57 FROM tab2 AS cor0 WHERE col0 * + - 16 IS NULL
----

query I rowsort
SELECT DISTINCT + + 70 * - + ( + - col2 ) * col1 + col2 * - ( - col1 ) AS col0 FROM tab1 AS cor0
----
20945
226916
95424

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT - - 48 * COUNT( * ) FROM tab2 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-1280
SELECT - - 48 * COUNT ( * ) FROM tab2 AS cor0
----
144

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col2 = - col0 / - 63
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0 AS col0, col1 AS col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

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

query II rowsort
SELECT col1 * - col1, 57 AS col1 FROM tab2
----
-2601
57
-4489
57
-5929
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT DISTINCT COUNT( * ) * 71 * + COUNT( + 15 ) FROM tab2
----
639

skipif mysql # not compatible
query I rowsort label-1285
SELECT DISTINCT COUNT ( * ) * 71 * + COUNT ( + 15 ) FROM tab2
----
639

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT - MIN( ALL col0 ) AS col2 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1286
SELECT - MIN ( ALL col0 ) AS col2 FROM tab1 cor0
----
-51

query II rowsort
SELECT DISTINCT - col2, - col1 AS col0 FROM tab0 cor0 WHERE col0 NOT BETWEEN + col2 AND + col0
----
-47
-81
-99
-1

query I rowsort
SELECT DISTINCT - + 76 AS col1 FROM tab0 AS cor0
----
-76

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

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

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

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

query I rowsort
SELECT 24 * + col2 + - + 50 AS col1 FROM tab0 AS cor0
----
1078
190
2326

query I rowsort
SELECT + + col1 / + col2 + - + col0 * + 19 + - ( + 72 ) - - 45 + + col0 / + 4 FROM tab0 AS cor0 WHERE + 12 IS NULL
----

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 IN ( - + col0, col1 )
----

query I rowsort
SELECT ALL 30 + + - 62 AS col1 FROM tab0 AS cor0
----
-32
-32
-32

query I rowsort
SELECT DISTINCT col1 + - 99 AS col1 FROM tab2 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1297
SELECT DISTINCT - ( SUM( + col1 ) ) FROM tab1 WHERE + - 39 * + CAST( + 43 AS SIGNED ) * col0 > - 34 * - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1297
SELECT DISTINCT - ( SUM ( + col1 ) ) FROM tab1 WHERE + - 39 * + CAST ( + 43 AS INTEGER ) * col0 > - 34 * - col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT + COUNT( DISTINCT + 94 ) + - + COUNT( * ) AS col1 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-1299
SELECT + COUNT ( DISTINCT + 94 ) + - + COUNT ( * ) AS col1 FROM tab0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1300
SELECT ALL * FROM tab0 WHERE NOT - 57 * CAST( - 95 AS SIGNED ) - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1300
SELECT ALL * FROM tab0 WHERE NOT - 57 * CAST ( - 95 AS INTEGER ) - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 + - + col0 AS col0 FROM tab0
----
0

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

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

query I rowsort
SELECT 37 + - + col0 * + col2 FROM tab0
----
-668
-833
-9566

onlyif mysql # DIV for integer division: 
query I rowsort label-1305
SELECT + col0 + + col0 + + - 42 DIV + col0 AS col1 FROM tab0
----
174
194
28

skipif mysql # not compatible
query I rowsort label-1305
SELECT + col0 + + col0 + + - 42 / + col0 AS col1 FROM tab0
----
174
194
28

query I rowsort
SELECT + 89 + - col1 * - col0 AS col1 FROM tab1
----
4366
514
803

query II rowsort
SELECT col0 * + 31 + + col0 + - 29 AS col0, col0 FROM tab0 AS cor0
----
2755
87
3075
97
451
15

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1312
SELECT COUNT ( * ) AS col0 FROM tab0, tab0 cor0
----
9

query I rowsort
SELECT DISTINCT col0 * + + 50 FROM tab2 AS cor0
----
2300
3200
3750

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

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> col2 + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1316
SELECT col2 DIV - ( 27 ) AS col2 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1316
SELECT col2 / - ( 27 ) AS col2 FROM tab2
----
-1
-2
0

query I rowsort
SELECT + col0 * + 52 FROM tab1
----
2652
4420
4732

query II rowsort
SELECT ALL - col0 AS col0, 58 AS col2 FROM tab1
----
-51
58
-85
58
-91
58

query II rowsort
SELECT - 70 AS col2, 10 + + - col0 AS col0 FROM tab0 AS cor0
----
-70
-5
-70
-77
-70
-87

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT - + COUNT( * ) * COUNT( * ) + 80 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-1323
SELECT - + COUNT ( * ) * COUNT ( * ) + 80 FROM tab0 AS cor0
----
71

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT DISTINCT COUNT( * ) * - MAX( - col1 ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-1326
SELECT DISTINCT COUNT ( * ) * - MAX ( - col1 ) FROM tab2 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT + + 38 + COUNT( * ) FROM tab0 cor0
----
41

skipif mysql # not compatible
query I rowsort label-1327
SELECT + + 38 + COUNT ( * ) FROM tab0 cor0
----
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT + MAX( ALL - + col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-1330
SELECT + MAX ( ALL - + col1 ) AS col1 FROM tab1
----
-5

query I rowsort
SELECT ALL - 81 * 21 - 16 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
-1717
-1717
-1717

query I rowsort
SELECT + ( - 24 ) AS col0 FROM tab0
----
-24
-24
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1333
SELECT col1 * + col2 + - + CAST( - - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE col0 * col0 * + col2 = - + col0 + - col1
----

skipif mysql # not compatible
query I rowsort label-1333
SELECT col1 * + col2 + - + CAST ( - - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE col0 * col0 * + col2 = - + col0 + - col1
----

query I rowsort
SELECT + 45 - - col1 FROM tab0 AS cor0
----
126
46
66

query I rowsort
SELECT - col1 + - 98 + + + col0 FROM tab1 AS cor0
----
-18
-54
-61

query I rowsort
SELECT DISTINCT + col2 * - col1 FROM tab0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL + 69 + + 28 * - 46 FROM tab0
----
-1219
-1219
-1219

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT MIN( 1 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1338
SELECT MIN ( 1 ) FROM tab2
----
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 > - col0 + + col2
----

query I rowsort
SELECT ( - col0 ) + - col0 * + col0 FROM tab2
----
-2162
-4160
-5700

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT ( MAX( DISTINCT col0 ) ) + + 58 * + 52 FROM tab0
----
3113

skipif mysql # not compatible
query I rowsort label-1341
SELECT ( MAX ( DISTINCT col0 ) ) + + 58 * + 52 FROM tab0
----
3113

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT DISTINCT - MIN( + 56 ) + COUNT( * ) AS col2 FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-1342
SELECT DISTINCT - MIN ( + 56 ) + COUNT ( * ) AS col2 FROM tab1
----
-53

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT ALL MIN( + 6 ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-1344
SELECT ALL MIN ( + 6 ) FROM tab1
----
6

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

query I rowsort
SELECT 45 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
45
45
45

onlyif mysql # DIV for integer division: 
query I rowsort label-1347
SELECT ALL + 61 * col0 + col2 DIV ( + 55 ) AS col2 FROM tab2
----
2806
3904
4576

skipif mysql # not compatible
query I rowsort label-1347
SELECT ALL + 61 * col0 + col2 / ( + 55 ) AS col2 FROM tab2
----
2806
3904
4576

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1348
SELECT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) * 57 + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1348
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) * 57 + col1 IS NULL
----

query I rowsort
SELECT DISTINCT 67 + + 82 AS col0 FROM tab0 WHERE ( NULL ) IS NULL
----
149

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 * 16 - + col0 * + 97 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + ( + col0 ) col2 FROM tab2
----
141
142
97

query I rowsort
SELECT ALL + col1 + 55 FROM tab2
----
106
122
132

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 NOT IN ( col0 * + col2 - + 22 * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1354
SELECT col1 DIV - col2 + 78 FROM tab0
----
76
77
78

skipif mysql # not compatible
query I rowsort label-1354
SELECT col1 / - col2 + 78 FROM tab0
----
76
77
78

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

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

query I rowsort
SELECT ALL 5 FROM tab1 WHERE NOT NULL <= - col2
----

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

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

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN ( - 13 / col2 ) AND col2
----

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

query I rowsort
SELECT + col0 * + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN ( NULL ) AND - col2
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 col2 FROM tab0 WHERE - col1 + - col2 * + 82 IS NOT NULL
----
31
31
31

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

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

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

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

query I rowsort
SELECT + + 29 * col2 AS col1 FROM tab0 AS cor0
----
1363
2871
290

query I rowsort
SELECT DISTINCT - 54 * 58 + + 66 * + col1 AS col0 FROM tab1 AS cor0
----
-2208
-2802
-30

query I rowsort
SELECT - 82 * col2 AS col1 FROM tab2 cor0
----
-1886
-3280
-4756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 21 * + col0 col0 FROM tab1 cor0
----
1071
1785
1911

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT - COUNT( DISTINCT + 80 ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1368
SELECT - COUNT ( DISTINCT + 80 ) AS col0 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT ( 74 ) AS col1 FROM tab2 AS cor0 WHERE ( col1 * 43 + 37 ) IS NOT NULL
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT + COUNT( * ) * 42 AS col0 FROM tab1 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-1370
SELECT + COUNT ( * ) * 42 AS col0 FROM tab1 AS cor0
----
126

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT DISTINCT COUNT( * ) + + - MIN( 91 ) FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-1373
SELECT DISTINCT COUNT ( * ) + + - MIN ( 91 ) FROM tab0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT ALL + ( MIN( ( - 99 ) ) ) - COUNT( * ) FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-1374
SELECT ALL + ( MIN ( ( - 99 ) ) ) - COUNT ( * ) FROM tab2
----
-102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 + 2 - - col1 * col2 col2 FROM tab2
----
1222
3129
3935

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 46 ) * + 35 + + col2 col1 FROM tab1
----
1669
1678
1706

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + + ( col1 ) col0 FROM tab1
----
-21
-54
-82

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

query I rowsort
SELECT + col2 + + 50 AS col0 FROM tab0
----
149
60
97

query I rowsort
SELECT col0 + + + col2 AS col2 FROM tab1
----
144
147
159

onlyif mysql # DIV for integer division: 
query I rowsort label-1382
SELECT DISTINCT col0 + col1 DIV 25 FROM tab1
----
51
85
92

skipif mysql # not compatible
query I rowsort label-1382
SELECT DISTINCT col0 + col1 / 25 FROM tab1
----
51
85
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col0 - - col2 col0 FROM tab0 AS cor0
----
-1168
-1817
2

query I rowsort
SELECT + 96 AS col2 FROM tab0 AS cor0 WHERE + 61 NOT BETWEEN + col1 AND - 42 * ( - 90 )
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 55 col1 FROM tab1 AS cor0 WHERE + 64 / col0 NOT IN ( col1 )
----
-2585
-275
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT DISTINCT - COUNT( * ) + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( col2 ) <= 55
----
0

skipif mysql # not compatible
query I rowsort label-1386
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( col2 ) <= 55
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1387
SELECT DISTINCT - ( - COUNT( + col0 ) ) - 35 / - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1387
SELECT DISTINCT - ( - COUNT ( + col0 ) ) - 35 / - CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL - COUNT ( ALL - col1 ) / CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1390
SELECT col1, + col1 DIV - - ( + col0 ) AS col2 FROM tab0
----
1
0
21
0
81
5

skipif mysql # not compatible
query II rowsort label-1390
SELECT col1, + col1 / - - ( + col0 ) AS col2 FROM tab0
----
1
0
21
0
81
5

query II rowsort
SELECT ALL + col1, + 91 FROM tab0 AS cor0
----
1
91
21
91
81
91

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

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

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

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

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

query I rowsort
SELECT + 52 * - col0 AS col1 FROM tab0
----
-4524
-5044
-780

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

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

skipif mysql # not compatible
query I rowsort label-1398
SELECT - COUNT ( * ) * - ( - COUNT ( DISTINCT col0 ) ) FROM tab0
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-1399
SELECT - col1 DIV col0, col2 + - ( - col0 ) AS col0 FROM tab0
----
-5
62
0
196
0
97

skipif mysql # not compatible
query II rowsort label-1399
SELECT - col1 / col0, col2 + - ( - col0 ) AS col0 FROM tab0
----
-5
62
0
196
0
97

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

query I rowsort
SELECT DISTINCT - 89 AS col2 FROM tab2 WHERE NOT + 57 NOT BETWEEN - 98 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 41 + col2 - 0 - 80 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL >= NULL )
----

query I rowsort
SELECT col1 + - 12 FROM tab1 AS cor0 WHERE ( + 41 ) IS NULL
----

query I rowsort
SELECT DISTINCT - ( 49 ) FROM tab0 AS cor0 WHERE ( col2 * - + 44 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( col0 ) * + 66 FROM tab1 AS cor0 WHERE col0 + 64 IS NOT NULL
----
3366
5610
6006

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT + MAX( DISTINCT - - 87 ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-1407
SELECT + MAX ( DISTINCT - - 87 ) FROM tab1
----
87

query I rowsort
SELECT ALL col2 + col1 + - col1 AS col0 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT DISTINCT + 1 + SUM( ALL + + col1 ) col2 FROM tab2
----
196

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 83 BETWEEN - col2 AND 53
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col1 * - - col2 * col1, col2 AS col0 FROM tab1
----
1475
59
150212
68
18816
96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1412
SELECT * FROM tab1 AS cor0 WHERE ( - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) + - 31 ) NOT BETWEEN col0 AND col2 + col0
----

skipif mysql # not compatible
query III rowsort label-1412
SELECT * FROM tab1 AS cor0 WHERE ( - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) + - 31 ) NOT BETWEEN col0 AND col2 + col0
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1414
SELECT + - MIN ( ALL col1 ) + - - 72 AS col0 FROM tab0 AS cor0
----
71

query I rowsort
SELECT ALL 71 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT col2 * col1 AS col1 FROM tab1 AS cor0 WHERE ( - + col2 ) * + col1 NOT BETWEEN + col1 - col2 AND ( NULL )
----
1344
295
3196

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

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

query I rowsort
SELECT ALL + col0 + 63 * + + 4 FROM tab0 AS cor0
----
267
339
349

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1419
SELECT DISTINCT + SUM ( DISTINCT - col0 ) col2 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT DISTINCT + ( + col2 ) + - + col1 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT + - col0 / + + 35 < NULL
----

query I rowsort
SELECT ALL + 66 - - col0 AS col0 FROM tab0
----
153
163
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT - ( + 57 ) - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-1424
SELECT - ( + 57 ) - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT DISTINCT COUNT( ALL col1 ) FROM tab0 AS cor0 WHERE NOT col1 < ( + col1 * - - 46 )
----
0

skipif mysql # not compatible
query I rowsort label-1426
SELECT DISTINCT COUNT ( ALL col1 ) FROM tab0 AS cor0 WHERE NOT col1 < ( + col1 * - - 46 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1427
SELECT DISTINCT + 14 DIV - 27 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-1427
SELECT DISTINCT + 14 / - 27 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= 93 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT - MIN( 94 ) FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-1430
SELECT - MIN ( 94 ) FROM tab1 AS cor0
----
-94

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT col2 - + col2 * + col2 > ( + 35 / col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT + MAX( DISTINCT col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-1433
SELECT + MAX ( DISTINCT col2 ) FROM tab0 AS cor0
----
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 NOT IN ( + col2 * 6 )
----

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

query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

query II rowsort
SELECT DISTINCT ( - + col1 ), 30 * - + col1 AS col2 FROM tab2 AS cor0
----
-51
-1530
-67
-2010
-77
-2310

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 54 / + - col0 * - col1 <= + - ( 71 ) - col0 + + 12
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1440
SELECT DISTINCT 12 col0, - COUNT( * ) + - + 2 FROM tab0
----
12
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1440
SELECT DISTINCT 12 col0, - COUNT ( * ) + - + 2 FROM tab0
----
12
-5

query II rowsort
SELECT ALL - col0, - 10 AS col0 FROM tab2
----
-46
-10
-64
-10
-75
-10

query II rowsort
SELECT DISTINCT - 30 AS col0, col1 AS col0 FROM tab0
----
-30
1
-30
21
-30
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1443
SELECT - 2 - ( + COUNT( * ) ) FROM tab0 WHERE NOT NULL BETWEEN + - CAST( NULL AS SIGNED ) * + 72 + + col2 AND + col0 * - CAST( NULL AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-1443
SELECT - 2 - ( + COUNT ( * ) ) FROM tab0 WHERE NOT NULL BETWEEN + - CAST ( NULL AS INTEGER ) * + 72 + + col2 AND + col0 * - CAST ( NULL AS INTEGER )
----
-2

query III rowsort
SELECT * FROM tab1 WHERE NOT + 86 IN ( + + 20, + ( + + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NOT + + ( 45 ) BETWEEN ( NULL ) AND ( - col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-1445
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT + + ( 45 ) BETWEEN ( NULL ) AND ( - col0 )
----
-3

query II rowsort
SELECT ALL - 71 AS col1, + col0 AS col0 FROM tab2
----
-71
46
-71
64
-71
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT DISTINCT + 79 * COUNT( + + col1 ) AS col2 FROM tab0 WHERE ( 62 ) NOT IN ( - col2 )
----
237

skipif mysql # not compatible
query I rowsort label-1447
SELECT DISTINCT + 79 * COUNT ( + + col1 ) AS col2 FROM tab0 WHERE ( 62 ) NOT IN ( - col2 )
----
237

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 * col0 + 76 + + + col1 IN ( - - ( - 1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 - - + 86 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 < col2
----

query II rowsort
SELECT DISTINCT + - col1, 22 + - + col0 AS col2 FROM tab0 AS cor0
----
-1
-75
-21
-65
-81
7

query I rowsort
SELECT ALL - 56 + - 16 * + col2 AS col1 FROM tab2 AS cor0
----
-424
-696
-984

onlyif mysql # aggregate syntax: 
query II rowsort label-1452
SELECT DISTINCT + 28 + - COUNT( * ), 80 AS col1 FROM tab2
----
25
80

skipif mysql # not compatible
query II rowsort label-1452
SELECT DISTINCT + 28 + - COUNT ( * ), 80 AS col1 FROM tab2
----
25
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

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

query I rowsort
SELECT ALL 30 + 14 FROM tab1
----
44
44
44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1456
SELECT * FROM tab1 WHERE - + col2 NOT BETWEEN - - col1 AND ( - col1 * - CAST( NULL AS SIGNED ) + + col2 + CAST( NULL AS SIGNED ) + col2 * - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1456
SELECT * FROM tab1 WHERE - + col2 NOT BETWEEN - - col1 AND ( - col1 * - CAST ( NULL AS INTEGER ) + + col2 + CAST ( NULL AS INTEGER ) + col2 * - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * + + col2 AS col1 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT + 12 - - col2 FROM tab1 AS cor0
----
108
71
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT ALL + SUM( - col0 ) - + + 58 col0 FROM tab1 AS cor0
----
-285

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

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

query I rowsort
SELECT col0 - - + col2 AS col1 FROM tab0 cor0
----
196
62
97

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

skipif mysql # not compatible
query I rowsort label-1462
SELECT col2 * + ( + col0 ) + - col0 - + col0 - + col2 * + - ( + CAST ( - 54 AS INTEGER ) ) FROM tab2 AS cor0
----
-276
1068
272

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

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

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

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

query I rowsort
SELECT ALL - col0 + - col0 - 94 AS col1 FROM tab0 AS cor0
----
-124
-268
-288

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 44 col2 FROM tab2
----
108
119
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT DISTINCT - 5 + + COUNT( * ) AS col1 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-1469
SELECT DISTINCT - 5 + + COUNT ( * ) AS col1 FROM tab2
----
-2

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

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

query I rowsort
SELECT + col0 - - + col1 - col0 AS col0 FROM tab1 WHERE 50 BETWEEN + 76 AND + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1472
SELECT 60 DIV + ( - ( - col0 ) ) FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-1472
SELECT 60 / + ( - ( - col0 ) ) FROM tab0
----
0
0
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1473
SELECT ALL + + CAST( NULL AS SIGNED ) * COUNT( DISTINCT + - col0 ) * + 13 col1 FROM tab0 WHERE + - col2 + + col0 + 46 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1473
SELECT ALL + + CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT + - col0 ) * + 13 col1 FROM tab0 WHERE + - col2 + + col0 + 46 IS NOT NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT - MIN( + col0 ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-15

skipif mysql # not compatible
query I rowsort label-1475
SELECT - MIN ( + col0 ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-15

query I rowsort
SELECT - col1 * 73 FROM tab1 AS cor0
----
-1022
-3431
-365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 47 * - col1 col0 FROM tab2 AS cor0
----
2397
3149
3619

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT - COUNT( * ) * - 23 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-1479
SELECT - COUNT ( * ) * - 23 FROM tab0
----
69

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1481
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL NOT IN ( + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL NOT IN ( + - CAST ( NULL AS INTEGER ) )
----

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

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

query I rowsort
SELECT ALL - - 21 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

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

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

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

query I rowsort
SELECT ALL - col0 + + 66 - col0 FROM tab0 AS cor0
----
-108
-128
36

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

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

query I rowsort
SELECT DISTINCT col0 + - + col2 + - col0 * ( - 22 ) * + + col2 AS col2 FROM tab2 AS cor0
----
23299
56344
95717

query I rowsort
SELECT DISTINCT - col2 + + col2 + 96 FROM tab2
----
96

query I rowsort
SELECT + col0 + - 75 AS col1 FROM tab1
----
-24
10
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1492
SELECT - 40 * - + 21 DIV - + COUNT( * ) FROM tab1
----
-280

skipif mysql # not compatible
query I rowsort label-1492
SELECT - 40 * - + 21 / - + COUNT ( * ) FROM tab1
----
-280

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT ALL + MAX( ALL - + col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-1494
SELECT ALL + MAX ( ALL - + col1 ) FROM tab1
----
-5

query I rowsort
SELECT + 6 * ( - col0 ) AS col0 FROM tab1
----
-306
-510
-546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1496
SELECT - CAST( NULL AS SIGNED ) FROM tab0 WHERE ( - 28 IN ( + + col2 + - col0 + - - col1 + col0 + + col1 * ( 59 ) * - - col2 - col2 ) )
----

skipif mysql # not compatible
query I rowsort label-1496
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE ( - 28 IN ( + + col2 + - col0 + - - col1 + col0 + + col1 * ( 59 ) * - - col2 - col2 ) )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 45 + + 34 col2, col0 FROM tab2 AS cor0
----
79
46
79
64
79
75

query I rowsort
SELECT ALL col0 - 81 AS col0 FROM tab0
----
-66
16
6

query I rowsort
SELECT DISTINCT col0 - - 82 FROM tab0
----
169
179
97

query I rowsort
SELECT - col2 * col0 * - col1 * - + col2 FROM tab0 AS cor0
----
-182700
-2683935
-950697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 45 * - 44 col0, col1 FROM tab1
----
1980
14
1980
47
1980
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1503
SELECT * FROM tab2 WHERE NOT - 88 * + CAST( + 82 AS SIGNED ) / + + 77 + - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1503
SELECT * FROM tab2 WHERE NOT - 88 * + CAST ( + 82 AS INTEGER ) / + + 77 + - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT MIN( + col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-1505
SELECT MIN ( + col2 ) AS col2 FROM tab2 AS cor0
----
23

query I rowsort
SELECT DISTINCT - 50 AS col1 FROM tab1 AS cor0 WHERE col2 = 65 * - 90 * + 53
----

query II rowsort
SELECT col1, col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + - col0 BETWEEN col0 - + 36 AND + 94 * + col0 * 60
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 31 * + col1 AS col2, + col0 + + col2 FROM tab0 AS cor0
----
2511
62
31
196
651
97

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( 82 ) IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1512
SELECT - 37 DIV COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-4

skipif mysql # not compatible
query I rowsort label-1512
SELECT - 37 / COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-4

query II rowsort
SELECT - 44 AS col1, - col2 FROM tab0 AS cor0
----
-44
-10
-44
-47
-44
-99

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + col0 * ( + col0 ) + col2 AS col2 FROM tab0 AS cor0
----
272
7579
9508

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT DISTINCT COUNT( * ) + + + 42 AS col1 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-1518
SELECT DISTINCT COUNT ( * ) + + + 42 AS col1 FROM tab2 AS cor0
----
45

query I rowsort
SELECT DISTINCT 68 * + 60 FROM tab2 cor0
----
4080

query I rowsort
SELECT + col1 - - - col0 + - 73 * - ( - 2 ) + - col2 * col0 * + - 5 * + + 39 * + 17 * - col1 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1521
SELECT + col1 FROM tab0 cor0 WHERE - col1 + + - 50 / - + CAST( NULL AS SIGNED ) * + 37 NOT IN ( + col0, + col0 )
----

skipif mysql # not compatible
query I rowsort label-1521
SELECT + col1 FROM tab0 cor0 WHERE - col1 + + - 50 / - + CAST ( NULL AS INTEGER ) * + 37 NOT IN ( + col0, + col0 )
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 30 * col1 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 42 * col2 + col1 BETWEEN + 89 * - col0 * - 98 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 * - - col0 / - 93 * - col0 - col0 * + col0 NOT BETWEEN ( + col1 * + + col1 ) AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT COUNT( * ) * + + SUM( col2 ) + COUNT( * ) * + 92 + - 82 FROM tab0
----
662

skipif mysql # not compatible
query I rowsort label-1527
SELECT COUNT ( * ) * + + SUM ( col2 ) + COUNT ( * ) * + 92 + - 82 FROM tab0
----
662

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col2 AND + ( - 17 )
----

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

query I rowsort
SELECT ALL ( - 55 ) * - + col2 AS col1 FROM tab0 AS cor0
----
2585
5445
550

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1533
SELECT ALL + COUNT( * ) - - 79 AS col1 FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-1533
SELECT ALL + COUNT ( * ) - - 79 AS col1 FROM tab1 AS cor0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-1534
SELECT - - col1 * col1 * + col1 - - col0 DIV - 26 col2 FROM tab2 AS cor0
----
132650
300761
456531

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1534
SELECT - - col1 * col1 * + col1 - - col0 / - 26 col2 FROM tab2 AS cor0
----
132650
300761
456531

query I rowsort
SELECT - - col0 FROM tab0 AS cor0 WHERE ( 72 ) + + col0 / - col1 * + + col0 NOT BETWEEN NULL AND NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1536
SELECT - + ( CAST ( NULL AS REAL ) ) / + 55 + - col0 + + + col0 / - col0 col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - + 58 ) * - col0 * 55 AS col1 FROM tab0 AS cor0
----
277530
309430
47850

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT DISTINCT COUNT( * ) * MAX( DISTINCT + 36 ) col0 FROM tab2
----
108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1539
SELECT DISTINCT COUNT ( * ) * MAX ( DISTINCT + 36 ) col0 FROM tab2
----
108

query I rowsort
SELECT DISTINCT 7 AS col0 FROM tab2, tab0 AS cor0
----
7

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

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

query I rowsort
SELECT DISTINCT - 27 FROM tab2 WHERE - col0 * + - col0 + - col2 <> - 20
----
-27

query I rowsort
SELECT ALL + ( + - col2 ) * - + col0 AS col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-1544
SELECT + 95 * 49 DIV col0 AS col0 FROM tab2 AS cor0
----
101
62
72

skipif mysql # not compatible
query I rowsort label-1544
SELECT + 95 * 49 / col0 AS col0 FROM tab2 AS cor0
----
101
62
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT DISTINCT 40 * MAX( ALL - - ( + 33 ) ) / - + 47 AS col2 FROM tab2 WHERE NOT NULL >= + col2 + + col0 * - col1 / col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1545
SELECT DISTINCT 40 * MAX ( ALL - - ( + 33 ) ) / - + 47 AS col2 FROM tab2 WHERE NOT NULL >= + col2 + + col0 * - col1 / col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT col0 * + - 93 AS col2 FROM tab0
----
-1395
-8091
-9021

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NOT - col0 + - - col0 = + - col0
----
10
47
99

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1550
SELECT - COUNT( * ) + COUNT( * ), 99 AS col0 FROM tab2 cor0
----
0
99

skipif mysql # not compatible
query II rowsort label-1550
SELECT - COUNT ( * ) + COUNT ( * ), 99 AS col0 FROM tab2 cor0
----
0
99

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 69 col2 FROM tab2
----
-23
-5
6

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + + + 88 * col1 AS col1, + 67 * col2 col1 FROM tab1
----
1283
6432
4227
4556
525
3953

query II rowsort
SELECT + + col1, col1 + - - 68 FROM tab2 WHERE NULL IS NULL
----
51
119
67
135
77
145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) * - 99 + + col0 col0 FROM tab0
----
-1470
-8526
-9506

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1557
SELECT ALL MAX( - col1 ) DIV + + MIN( ALL 60 ) + COUNT( * ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1557
SELECT ALL MAX ( - col1 ) / + + MIN ( ALL 60 ) + COUNT ( * ) col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT DISTINCT ( 86 ) + - COUNT( * ) + - 40 col1 FROM tab0
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1558
SELECT DISTINCT ( 86 ) + - COUNT ( * ) + - 40 col1 FROM tab0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT - COUNT( * ) * 39 * + MIN( DISTINCT - + 97 ) FROM tab1
----
11349

skipif mysql # not compatible
query I rowsort label-1559
SELECT - COUNT ( * ) * 39 * + MIN ( DISTINCT - + 97 ) FROM tab1
----
11349

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT ALL + COUNT( * ) * + 97 AS col0 FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-1560
SELECT ALL + COUNT ( * ) * + 97 AS col0 FROM tab1
----
291

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

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

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

query I rowsort
SELECT - col0 + + + 68 + - - col2 FROM tab2
----
44
45
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT COUNT( * ) + 67 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-1564
SELECT COUNT ( * ) + 67 FROM tab0
----
70

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1567
SELECT ALL - + 45, + col0 DIV + - col1 AS col2 FROM tab2 cor0
----
-45
-1
-45
0
-45
0

skipif mysql # not compatible
query II rowsort label-1567
SELECT ALL - + 45, + col0 / + - col1 AS col2 FROM tab2 cor0
----
-45
-1
-45
0
-45
0

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

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1571
SELECT DISTINCT SUM ( DISTINCT - - col2 ) col1 FROM tab0
----
156

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1573
SELECT COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1573
SELECT COUNT ( * ) * - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1574
SELECT - MIN ( DISTINCT - col1 ) AS col1 FROM tab0
----
81

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1576
SELECT + COUNT( * ) DIV 10 AS col1 FROM tab0 AS cor0 WHERE + col1 * col2 - + col1 = + + col0
----
0

skipif mysql # not compatible
query I rowsort label-1576
SELECT + COUNT ( * ) / 10 AS col1 FROM tab0 AS cor0 WHERE + col1 * col2 - + col1 = + + col0
----
0

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

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

query I rowsort
SELECT ALL - 35 * - - col2 AS col2 FROM tab0 AS cor0
----
-1645
-3465
-350

query I rowsort
SELECT ALL col1 * + col2 + + 51 AS col1 FROM tab0 AS cor0
----
150
261
3858

query I rowsort
SELECT ALL - 45 + + 49 FROM tab2 AS cor0
----
4
4
4

query I rowsort
SELECT DISTINCT + col2 * - 84 AS col0 FROM tab2 AS cor0
----
-1932
-3360
-4872

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * ( + col2 ) >= - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - - 54 AS col1, 82 FROM tab1 AS cor0
----
54
82
54
82
54
82

onlyif mysql # DIV for integer division: 
query I rowsort label-1585
SELECT - + col2 DIV - - 67 + col0 FROM tab0 AS cor0
----
15
87
96

skipif mysql # not compatible
query I rowsort label-1585
SELECT - + col2 / - - 67 + col0 FROM tab0 AS cor0
----
15
87
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1586
SELECT + + 0, - col2 AS col0 FROM tab2 WHERE CAST( - 71 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query II rowsort label-1586
SELECT + + 0, - col2 AS col0 FROM tab2 WHERE CAST ( - 71 AS INTEGER ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT ALL + MIN( ALL - - col2 ) * + COUNT( * ) * + 53 + 74 + + - COUNT( * ) FROM tab1
----
9452

skipif mysql # not compatible
query I rowsort label-1587
SELECT ALL + MIN ( ALL - - col2 ) * + COUNT ( * ) * + 53 + 74 + + - COUNT ( * ) FROM tab1
----
9452

query I rowsort
SELECT col0 + - - col0 AS col0 FROM tab2
----
128
150
92

onlyif mysql # DIV for integer division: 
query I rowsort label-1589
SELECT DISTINCT + col2 DIV col1 DIV + ( + ( + 1 ) ) * col1 col2 FROM tab2
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 17 ) + - 15 * + col1 + - 89 col2 FROM tab2
----
-1077
-1227
-837

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT + 49 + MAX( DISTINCT col0 ) FROM tab0
----
146

skipif mysql # not compatible
query I rowsort label-1591
SELECT + 49 + MAX ( DISTINCT col0 ) FROM tab0
----
146

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1592
SELECT ALL + + CAST( - + CAST( col2 AS DECIMAL ) AS SIGNED ) col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1592
SELECT ALL + + CAST ( - + CAST ( col2 AS REAL ) AS INTEGER ) col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT + ( + col2 ) - + col0 * 55 * + col1 AS col0 FROM tab2
----
-129007
-271000
-276317

query I rowsort
SELECT col1 FROM tab1 WHERE NOT - col0 + 58 <> 90
----

query I rowsort
SELECT - + 83 * - col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1596
SELECT DISTINCT col0 DIV col2 * - 42 FROM tab0
----
-336
0

skipif mysql # not compatible
query I rowsort label-1596
SELECT DISTINCT col0 / col2 * - 42 FROM tab0
----
-336
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1597
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE + ( + col1 ) <> ( ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-1597
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE + ( + col1 ) <> ( ( CAST ( NULL AS INTEGER ) ) )
----

query II rowsort
SELECT - col0 AS col1, - col1 FROM tab0
----
-15
-81
-87
-21
-97
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, col2 * + + 45 col1 FROM tab1
----
59
2655
68
3060
96
4320

query I rowsort
SELECT + 81 * + 82 FROM tab0
----
6642
6642
6642

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1601
SELECT COUNT( DISTINCT - + col1 ) DIV - COUNT( * ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1601
SELECT COUNT ( DISTINCT - + col1 ) / - COUNT ( * ) FROM tab0
----
-1

query I rowsort
SELECT ( 20 ) AS col1 FROM tab0
----
20
20
20

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1604
SELECT ALL COUNT( * ) col2, MAX( DISTINCT - + 44 ) FROM tab2
----
3
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1604
SELECT ALL COUNT ( * ) col2, MAX ( DISTINCT - + 44 ) FROM tab2
----
3
-44

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1606
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 WHERE NOT col2 + - 83 + - col2 NOT BETWEEN NULL AND col1 / col2 + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1606
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT col2 + - 83 + - col2 NOT BETWEEN NULL AND col1 / col2 + CAST ( NULL AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1607
SELECT 34 DIV + + col0 AS col1 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1607
SELECT 34 / + + col0 AS col1 FROM tab0
----
0
0
2

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

skipif mysql # not compatible
query I rowsort label-1608
SELECT ALL - - CAST ( + + col1 AS INTEGER ) / col0 FROM tab1 AS cor0
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1611
SELECT DISTINCT + COUNT( * ), 91 AS col2 FROM tab2 cor0
----
3
91

skipif mysql # not compatible
query II rowsort label-1611
SELECT DISTINCT + COUNT ( * ), 91 AS col2 FROM tab2 cor0
----
3
91

query II rowsort
SELECT ALL + - 54, - col0 * 99 AS col1 FROM tab1 AS cor0
----
-54
-5049
-54
-8415
-54
-9009

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT DISTINCT MAX( col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-1613
SELECT DISTINCT MAX ( col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 32 * - col1 * + + col2 + 63 IS NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 + - col1 <> - col2 AND NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT ALL - COUNT( * ) - + 72 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-1617
SELECT ALL - COUNT ( * ) - + 72 FROM tab1
----
-75

query I rowsort
SELECT + 47 + - col1 * - - 89 * + + col2 AS col1 FROM tab0 AS cor0
----
-18643
-338776
-8764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1619
SELECT DISTINCT - COUNT( * ) - + 93 / - + CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE NOT - 1 NOT IN ( - - 73, 98, + + 47, CAST( col2 AS SIGNED ), + 72 + - 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT - COUNT ( * ) - + 93 / - + CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE NOT - 1 NOT IN ( - - 73, 98, + + 47, CAST ( col2 AS INTEGER ), + 72 + - 97 )
----
NULL

query I rowsort
SELECT - 73 * + - col1 AS col0 FROM tab1
----
1022
3431
365

query I rowsort
SELECT col1 * col1 * - 77 AS col2 FROM tab1 AS cor0
----
-15092
-170093
-1925

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT - + 31 * COUNT( * ) FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-1622
SELECT - + 31 * COUNT ( * ) FROM tab0 AS cor0
----
-93

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 < col2
----
15
81
47
87
21
10

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col2 = NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT DISTINCT + SUM( + - col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-1627
SELECT DISTINCT + SUM ( + - col2 ) FROM tab0
----
-156

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1629
SELECT ALL CAST( + - col2 AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL CAST ( + - col2 AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

query II rowsort
SELECT + - col2 * + 58 + + + 48, 6 AS col0 FROM tab2 cor0
----
-1286
6
-2272
6
-3316
6

query I rowsort
SELECT ALL - 31 + - col0 - col1 * - col0 * + 73 AS col0 FROM tab2 cor0
----
171181
359649
366719

query I rowsort
SELECT - 69 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col0 ) + - + col1 col0 FROM tab0
----
-66
66
96

query I rowsort
SELECT DISTINCT - - 60 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1635
SELECT + 79 * - - col0 + CAST( - 84 AS SIGNED ) FROM tab2 AS cor0
----
3550
4972
5841

skipif mysql # not compatible
query I rowsort label-1635
SELECT + 79 * - - col0 + CAST ( - 84 AS INTEGER ) FROM tab2 AS cor0
----
3550
4972
5841

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1637
SELECT + 62 DIV COUNT( * ) - + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-1637
SELECT + 62 / COUNT ( * ) - + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT DISTINCT COUNT( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1638
SELECT DISTINCT COUNT ( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL + col1, - col1 - col1 AS col0 FROM tab0 AS cor0
----
1
-2
21
-42
81
-162

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + ( ( 85 ) ) + 19 <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1642
SELECT DISTINCT 50 + - + ( - CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1642
SELECT DISTINCT 50 + - + ( - CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

query I rowsort
SELECT ALL 38 - + ( - - col0 ) FROM tab0
----
-49
-59
23

query I rowsort
SELECT 53 + + col2 FROM tab0
----
100
152
63

query I rowsort
SELECT 76 + col1 * 1 FROM tab2
----
127
143
153

query III rowsort
SELECT * FROM tab2 WHERE - col1 + + - 5 IS NULL
----

query I rowsort
SELECT ALL + 92 * col0 - - col2 FROM tab2
----
4255
5928
6958

query II rowsort
SELECT ( col1 ) * - col0, + col0 FROM tab1 cor0
----
-425
85
-4277
91
-714
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1649
SELECT CAST( + col0 AS SIGNED ) * - + col0, col0 AS col2 FROM tab2 AS cor0
----
-2116
46
-4096
64
-5625
75

skipif mysql # not compatible
query II rowsort label-1649
SELECT CAST ( + col0 AS INTEGER ) * - + col0, col0 AS col2 FROM tab2 AS cor0
----
-2116
46
-4096
64
-5625
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT + SUM( - 52 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-1650
SELECT + SUM ( - 52 ) AS col2 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT ALL + + COUNT( - 67 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL + + COUNT ( - 67 ) FROM tab2 cor0
----
3

query II rowsort
SELECT DISTINCT - col0 AS col2, 94 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL + 2 * - col2 AS col2 FROM tab0 AS cor0
----
-198
-20
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1654
SELECT + COUNT( * ) DIV - - 44 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1654
SELECT + COUNT ( * ) / - - 44 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 + col2 col0 FROM tab1 cor0
----
116
79
88

query I rowsort
SELECT ALL - + col1 * - 80 * - col1 * + col0 FROM tab2 AS cor0
----
-26934000
-30356480
-9571680

onlyif mysql # DIV for integer division: 
query I rowsort label-1657
SELECT ALL - ( col1 ) DIV 11 + + - col1 AS col1 FROM tab1 cor0
----
-15
-5
-51

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL - ( col1 ) / 11 + + - col1 AS col1 FROM tab1 cor0
----
-15
-5
-51

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

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

query I rowsort
SELECT - ( + col1 ) + + col1 + - + ( - col0 ) FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT + COUNT( - col0 ) * + - ( - + 31 ) * - - 0 + - MAX( ALL - + 11 ) FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-1660
SELECT + COUNT ( - col0 ) * + - ( - + 31 ) * - - 0 + - MAX ( ALL - + 11 ) FROM tab1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT ALL COUNT( * ) + + 80 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-1661
SELECT ALL COUNT ( * ) + + 80 FROM tab1
----
83

query II rowsort
SELECT 67 * - col1 AS col2, 83 FROM tab2
----
-3417
83
-4489
83
-5159
83

onlyif mysql # DIV for integer division: 
query I rowsort label-1663
SELECT DISTINCT - col0 * - col2 DIV + col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1663
SELECT DISTINCT - col0 * - col2 / + col2 FROM tab0 AS cor0
----
15
87
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT DISTINCT + 60 + - 38 * - COUNT( * ) FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-1665
SELECT DISTINCT + 60 + - 38 * - COUNT ( * ) FROM tab2 AS cor0
----
174

query I rowsort
SELECT + col2 * - col0 + - - col1 * + col0 AS col0 FROM tab2
----
1288
2368
675

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1668
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( 31 + + + col2, CAST( NULL AS SIGNED ) + + - col0 * 47 * + + col1 ) OR - col0 + - + col1 <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1668
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( 31 + + + col2, CAST ( NULL AS INTEGER ) + + - col0 * 47 * + + col1 ) OR - col0 + - + col1 <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 94 + - - col2 FROM tab0
----
104
141
193

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

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

query I rowsort
SELECT - col0 * - col2 + + col0 - + 94 FROM tab0 AS cor0
----
626
863
9606

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1673
SELECT 14 DIV - + 41 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1673
SELECT 14 / - + 41 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1674
SELECT ALL - col1 + - CAST( - - col1 AS SIGNED ) + col0 * - - col1 col2 FROM tab2
----
2244
4774
4891

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1674
SELECT ALL - col1 + - CAST ( - - col1 AS INTEGER ) + col0 * - - col1 col2 FROM tab2
----
2244
4774
4891

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

query II rowsort
SELECT DISTINCT col1 AS col0, col2 + 55 + + + 29 * + + col1 AS col0 FROM tab0
----
1
183
21
674
81
2451

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT ALL + + MAX( ALL + col1 ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL + + MAX ( ALL + col1 ) FROM tab2 cor0
----
77

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

query I rowsort
SELECT ( 64 ) FROM tab0 cor0
----
64
64
64

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL 66 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # DIV for integer division: 
query I rowsort label-1683
SELECT + 44 DIV - col1 FROM tab0 cor0
----
-2
-44
0

skipif mysql # not compatible
query I rowsort label-1683
SELECT + 44 / - col1 FROM tab0 cor0
----
-2
-44
0

query I rowsort
SELECT + 47 * col2 * + - col2 + - col2 AS col0 FROM tab2 cor0
----
-158166
-24886
-75240

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT 10 * MAX( DISTINCT - - 27 ) AS col0 FROM tab2 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-1685
SELECT 10 * MAX ( DISTINCT - - 27 ) AS col0 FROM tab2 AS cor0
----
270

query I rowsort
SELECT ALL - 37 + + 9 * - + 80 AS col1 FROM tab0 AS cor0
----
-757
-757
-757

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

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

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

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

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

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE - col2 IS NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1693
SELECT MIN( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

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

query I rowsort
SELECT + col2 + - col0 - + col0 FROM tab1
----
-111
-114
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT DISTINCT + 35 * + - 35 * - ( - - COUNT( * ) ) FROM tab1
----
3675

skipif mysql # not compatible
query I rowsort label-1695
SELECT DISTINCT + 35 * + - 35 * - ( - - COUNT ( * ) ) FROM tab1
----
3675

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT + 93 + SUM( col0 ) AS col0 FROM tab0 cor0
----
292

skipif mysql # not compatible
query I rowsort label-1696
SELECT + 93 + SUM ( col0 ) AS col0 FROM tab0 cor0
----
292

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

query I rowsort
SELECT DISTINCT + + col0 + - - 8 FROM tab1 AS cor0
----
59
93
99

query I rowsort
SELECT ( - 59 ) * - col2 AS col1 FROM tab2
----
1357
2360
3422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1700
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - 32 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1700
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - 32 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

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

query I rowsort
SELECT - col0 - - 34 * - col1 FROM tab0 AS cor0
----
-131
-2769
-801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 89 - + + 66 col0, - 99 AS col2 FROM tab2 AS cor0
----
23
-99
23
-99
23
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT + COUNT( * ) - - + 98 AS col2 FROM tab0 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-1704
SELECT + COUNT ( * ) - - + 98 AS col2 FROM tab0 AS cor0
----
101

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN 13 AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT DISTINCT - - MIN( - - 46 ) AS col2 FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-1707
SELECT DISTINCT - - MIN ( - - 46 ) AS col2 FROM tab1 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT ALL + ( + - 51 ) + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
-51

skipif mysql # not compatible
query I rowsort label-1708
SELECT ALL + ( + - 51 ) + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1709
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 IN ( + CAST( NULL AS SIGNED ) * col1 * - 14 * col2, 13 * - 52, col1 )
----

skipif mysql # not compatible
query III rowsort label-1709
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 IN ( + CAST ( NULL AS INTEGER ) * col1 * - 14 * col2, 13 * - 52, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT ALL + 55 * + COUNT( * ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL + 55 * + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT + SUM( 82 ) * + 81 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
19926

skipif mysql # not compatible
query I rowsort label-1711
SELECT + SUM ( 82 ) * + 81 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
19926

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 > 49 + - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * - 32 * - 59 FROM tab0
----
164256
183136
28320

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

skipif mysql # not compatible
query I rowsort label-1715
SELECT ALL COUNT ( ALL - 75 ) AS col0 FROM tab0
----
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1718
SELECT - 38 * + + col2 + - + CAST( col1 AS SIGNED ) col2 FROM tab0 WHERE NOT NULL IN ( - 97 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1718
SELECT - 38 * + + col2 + - + CAST ( col1 AS INTEGER ) col2 FROM tab0 WHERE NOT NULL IN ( - 97 )
----

query I rowsort
SELECT + 77 * + col1 FROM tab1
----
1078
3619
385

onlyif mysql # DIV for integer division: 
query II rowsort label-1720
SELECT + + 76 AS col2, - 68 DIV + col1 FROM tab2 AS cor0
----
76
-1
76
-1
76
0

skipif mysql # not compatible
query II rowsort label-1720
SELECT + + 76 AS col2, - 68 / + col1 FROM tab2 AS cor0
----
76
-1
76
-1
76
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1721
SELECT 80 DIV - 99 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1721
SELECT 80 / - 99 AS col2 FROM tab1
----
0
0
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1722
SELECT ALL - + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT DISTINCT MIN( ALL - 93 ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT MIN ( ALL - 93 ) FROM tab0
----
-93

query I rowsort
SELECT ( + - 59 ) * + 10 + col0 * - col2 FROM tab0
----
-10193
-1295
-1460

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) > + + 23 / + + 88
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1726
SELECT - COUNT ( ALL col2 ) + - COUNT ( * ) col1 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT ALL 49 * + 94 * 54 + + col1 AS col2 FROM tab1 AS cor0
----
248729
248738
248771

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT DISTINCT + COUNT( * ) * - + 71 FROM tab0 cor0
----
-213

skipif mysql # not compatible
query I rowsort label-1729
SELECT DISTINCT + COUNT ( * ) * - + 71 FROM tab0 cor0
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT ALL + 69 + + - MIN( ALL - + 78 ) * - 19 FROM tab2 AS cor0
----
-1413

skipif mysql # not compatible
query I rowsort label-1730
SELECT ALL + 69 + + - MIN ( ALL - + 78 ) * - 19 FROM tab2 AS cor0
----
-1413

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

query I rowsort
SELECT col2 * + + col2 + 87 AS col1 FROM tab2 AS cor0
----
1687
3451
616

onlyif mysql # DIV for integer division: 
query I rowsort label-1733
SELECT + 38 DIV col1 + col0 + - + col1 + - col2 + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-2322
-43
-9766

skipif mysql # not compatible
query I rowsort label-1733
SELECT + 38 / col1 + col0 + - + col1 + - col2 + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-2322
-43
-9766

onlyif mysql # DIV for integer division: 
query I rowsort label-1734
SELECT ALL + 86 DIV - 47 + + 14 AS col1 FROM tab0 AS cor0
----
13
13
13

skipif mysql # not compatible
query I rowsort label-1734
SELECT ALL + 86 / - 47 + + 14 AS col1 FROM tab0 AS cor0
----
13
13
13

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT - 25 / + col1 IS NULL )
----

query I rowsort
SELECT DISTINCT + ( + + col1 ) + + col1 + + - 80 * + + col0 FROM tab2
----
-3578
-4966
-5866

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 >= NULL
----

query I rowsort
SELECT ALL + col0 + + - 71 FROM tab2 AS cor0
----
-25
-7
4

query II rowsort
SELECT ALL + 36 + + col1, col0 AS col0 FROM tab1 AS cor0
----
41
85
50
51
83
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT ALL MIN( DISTINCT - + col1 ) * - COUNT( * ) AS col0 FROM tab2 WHERE NOT col0 <= + + 91 AND NOT NULL <> col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1742
SELECT ALL MIN ( DISTINCT - + col1 ) * - COUNT ( * ) AS col0 FROM tab2 WHERE NOT col0 <= + + 91 AND NOT NULL <> col1
----
NULL

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

query I rowsort
SELECT ALL 34 + - col0 AS col0 FROM tab2
----
-12
-30
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT + COUNT( * ) FROM tab2 WHERE col0 BETWEEN 77 AND col1 * + + 16
----
0

skipif mysql # not compatible
query I rowsort label-1745
SELECT + COUNT ( * ) FROM tab2 WHERE col0 BETWEEN 77 AND col1 * + + 16
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT MAX( 95 ) FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-1746
SELECT MAX ( 95 ) FROM tab0 AS cor0
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1747
SELECT DISTINCT 12 DIV - - col0 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1747
SELECT DISTINCT 12 / - - col0 AS col1 FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT ALL ( col1 ) AS col2 FROM tab2 cor0 WHERE NOT 10 IS NULL
----
51
67
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT ALL + + COUNT( DISTINCT 27 ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL + + COUNT ( DISTINCT 27 ) AS col0 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT COUNT( * ) * - 85 AS col2 FROM tab0 cor0
----
-255

skipif mysql # not compatible
query I rowsort label-1752
SELECT COUNT ( * ) * - 85 AS col2 FROM tab0 cor0
----
-255

query I rowsort
SELECT + - col0 * - 43 + - + 56 AS col2 FROM tab0 AS cor0
----
3685
4115
589

query I rowsort
SELECT DISTINCT - ( 97 ) * - col2 - col0 AS col2 FROM tab2 AS cor0
----
2185
3816
5551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 77 col2 FROM tab2 AS cor0 WHERE NOT ( NOT 52 IS NULL )
----

query I rowsort
SELECT ALL - 68 * + 98 AS col0 FROM tab1
----
-6664
-6664
-6664

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

query I rowsort
SELECT - 19 AS col0 FROM tab2 WHERE NOT - col0 * + 49 * 11 + 98 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 6 col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
6

query I rowsort
SELECT + + 47 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

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

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

query I rowsort
SELECT + - col1 * + - col2 + + col1 AS col0 FROM tab2 AS cor0
----
1224
3157
3953

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

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

skipif mysql # not compatible
query I rowsort label-1764
SELECT + - MIN ( col0 ) AS col0 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT - - col2 * + + col2 * + col0 FROM tab0 AS cor0
----
33135
8700
950697

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

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

query I rowsort
SELECT DISTINCT col0 + + 65 AS col2 FROM tab0 AS cor0
----
152
162
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT ALL 79 + - - COUNT( col2 ) FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL 79 + - - COUNT ( col2 ) FROM tab2 AS cor0
----
82

query I rowsort
SELECT DISTINCT col0 + - + col2 * col2 FROM tab1
----
-3396
-4533
-9165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1771
SELECT CAST( + 27 AS SIGNED ) + col2 AS col0 FROM tab1
----
123
86
95

skipif mysql # not compatible
query I rowsort label-1771
SELECT CAST ( + 27 AS INTEGER ) + col2 AS col0 FROM tab1
----
123
86
95

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1776
SELECT DISTINCT + COUNT( * ) * - 3 + - - AVG ( DISTINCT col1 ) * CAST( 40 AS SIGNED ) FROM tab2 WHERE - 20 * + CAST( NULL AS SIGNED ) > 50
----
NULL

skipif mysql # not compatible
query I rowsort label-1776
SELECT DISTINCT + COUNT ( * ) * - 3 + - - AVG ( DISTINCT col1 ) * CAST ( 40 AS INTEGER ) FROM tab2 WHERE - 20 * + CAST ( NULL AS INTEGER ) > 50
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1777
SELECT DISTINCT - COUNT( * ) * - + MIN( + 77 ) - - COUNT( * ) * - 7 AS col1, COUNT( * ) col1 FROM tab0
----
210
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1777
SELECT DISTINCT - COUNT ( * ) * - + MIN ( + 77 ) - - COUNT ( * ) * - 7 AS col1, COUNT ( * ) col1 FROM tab0
----
210
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1778
SELECT DISTINCT MAX( ALL + 50 ) AS col2, ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
50
3

skipif mysql # not compatible
query II rowsort label-1778
SELECT DISTINCT MAX ( ALL + 50 ) AS col2, ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
50
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT - - ( MAX( DISTINCT 62 ) ) AS col0 FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-1779
SELECT - - ( MAX ( DISTINCT 62 ) ) AS col0 FROM tab2 AS cor0
----
62

query II rowsort
SELECT ALL - - ( - + col1 ) * col1 - - col0 + + col2 AS col0, col2 AS col1 FROM tab2 AS cor0
----
-2532
23
-4356
58
-5825
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN NULL AND col0
----
51
14
96

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1784
SELECT ALL + 58 * 70 / CAST( NULL AS DECIMAL ) * - 21 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL + 58 * 70 / CAST ( NULL AS REAL ) * - 21 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1785
SELECT ALL + col0 / + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL + col0 / + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1787
SELECT 76 * - + col1 * + + CAST( + col1 AS SIGNED ) AS col2 FROM tab0
----
-33516
-498636
-76

skipif mysql # not compatible
query I rowsort label-1787
SELECT 76 * - + col1 * + + CAST ( + col1 AS INTEGER ) AS col2 FROM tab0
----
-33516
-498636
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - col2 - + col0 + 92 col1 FROM tab1
----
14
-55
47
-67
5
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT ALL SUM( DISTINCT - + col2 ) * SUM( ALL col2 ) col1 FROM tab1
----
-49729

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1789
SELECT ALL SUM ( DISTINCT - + col2 ) * SUM ( ALL col2 ) col1 FROM tab1
----
-49729

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1790
SELECT ALL - CAST( - - col1 AS SIGNED ) * - + 66 - col2 + - col0 FROM tab1
----
186
2943
777

skipif mysql # not compatible
query I rowsort label-1790
SELECT ALL - CAST ( - - col1 AS INTEGER ) * - + 66 - col2 + - col0 FROM tab1
----
186
2943
777

query II rowsort
SELECT + - col2, 73 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
-59
73
-68
73
-96
73

query I rowsort
SELECT ALL 57 AS col0 FROM tab2 cor0
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1793
SELECT - - col2 AS col0, - col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - col0 + - - col1 <> NULL
----

skipif mysql # not compatible
query II rowsort label-1793
SELECT - - col2 AS col0, - col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - col0 + - - col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1794
SELECT ALL col0 * - ( - 38 ) / - - col0 + + 9 + + 96 + + col0 + + CAST( NULL AS SIGNED ) * + col0 * + - 0 + - col2 * col2 * + col2 - - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1794
SELECT ALL col0 * - ( - 38 ) / - - col0 + + 9 + + 96 + + col0 + + CAST ( NULL AS INTEGER ) * + col0 * + - 0 + - col2 * col2 * + col2 - - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 20 * + col1 col1 FROM tab2
----
1020
1340
1540

query I rowsort
SELECT ALL + ( + ( col2 ) ) * - col0 AS col1 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT 59 + COUNT( * ) AS col0 FROM tab1 WHERE + col0 IS NULL
----
59

skipif mysql # not compatible
query I rowsort label-1797
SELECT 59 + COUNT ( * ) AS col0 FROM tab1 WHERE + col0 IS NULL
----
59

query I rowsort
SELECT ALL - 37 AS col2 FROM tab2
----
-37
-37
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1799
SELECT DISTINCT col0 col2 FROM tab2 WHERE NOT CAST( 19 AS SIGNED ) IS NULL
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1799
SELECT DISTINCT col0 col2 FROM tab2 WHERE NOT CAST ( 19 AS INTEGER ) IS NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + 7 AS col2 FROM tab1 WHERE + col1 + 83 = col1
----

query I rowsort
SELECT - 83 * 5 FROM tab1
----
-415
-415
-415

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT DISTINCT MIN( 23 ) + COUNT( * ) FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-1803
SELECT DISTINCT MIN ( 23 ) + COUNT ( * ) FROM tab1
----
26

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

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

query I rowsort
SELECT + 24 * 0 AS col2 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( col0 / + 84 )
----

query I rowsort
SELECT ALL + col0 * + 26 FROM tab1
----
1326
2210
2366

query I rowsort
SELECT + 14 * 58 AS col2 FROM tab0
----
812
812
812

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

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

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

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE 55 * + col1 + 77 / + col1 BETWEEN ( ( - ( col2 ) ) ) AND 87 * col2
----
-97

query I rowsort
SELECT ALL col2 * - 44 AS col1 FROM tab2
----
-1012
-1760
-2552

query I rowsort
SELECT col0 + - ( 55 ) AS col0 FROM tab1
----
-4
30
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1814
SELECT ALL COUNT( * ) col0 FROM tab0 WHERE NOT ( + CAST( NULL AS SIGNED ) + + col2 * + col2 ) BETWEEN - ( + col0 ) AND ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1814
SELECT ALL COUNT ( * ) col0 FROM tab0 WHERE NOT ( + CAST ( NULL AS INTEGER ) + + col2 * + col2 ) BETWEEN - ( + col0 ) AND ( NULL )
----
0

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

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

query I rowsort
SELECT DISTINCT 93 * 49 AS col1 FROM tab2
----
4557

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT DISTINCT + COUNT( DISTINCT 61 ) * + MIN( 81 * 69 ) AS col2 FROM tab1
----
5589

skipif mysql # not compatible
query I rowsort label-1817
SELECT DISTINCT + COUNT ( DISTINCT 61 ) * + MIN ( 81 * 69 ) AS col2 FROM tab1
----
5589

query I rowsort
SELECT DISTINCT + 64 * + col0 FROM tab1
----
3264
5440
5824

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( col1 - - 2 * col0 )
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1821
SELECT ALL * FROM tab0 WHERE NOT col1 * ( - CAST( NULL AS DECIMAL ) ) + - 25 / + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1821
SELECT ALL * FROM tab0 WHERE NOT col1 * ( - CAST ( NULL AS REAL ) ) + - 25 / + col1 IS NULL
----

query I rowsort
SELECT - col1 * 42 + col1 AS col2 FROM tab0
----
-3321
-41
-861

query I rowsort
SELECT DISTINCT col1 - 39 * + 35 FROM tab2
----
-1288
-1298
-1314

query I rowsort
SELECT ALL + 30 - 67 AS col0 FROM tab2 AS cor0
----
-37
-37
-37

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 84 ) BETWEEN col0 AND col0 * col2
----

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

query I rowsort
SELECT - col1 + 51 AS col0 FROM tab0 AS cor0
----
-30
30
50

query I rowsort
SELECT col1 + 39 * col2 FROM tab2 AS cor0
----
1637
2329
948

query I rowsort
SELECT 76 * col1 + - 73 AS col1 FROM tab2 AS cor0
----
3803
5019
5779

query I rowsort
SELECT + col1 * col2 + col1 FROM tab1
----
1358
300
3243

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-1831
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1832
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NULL <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NULL <= CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 / col1 + - col1 NOT IN ( col0 / - 30 )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1836
SELECT * FROM tab0 AS cor0 WHERE NOT 44 + 43 * + 9 BETWEEN ( col2 ) AND + CAST( + col2 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1836
SELECT * FROM tab0 AS cor0 WHERE NOT 44 + 43 * + 9 BETWEEN ( col2 ) AND + CAST ( + col2 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT DISTINCT - SUM( - 50 ) AS col0 FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-1839
SELECT DISTINCT - SUM ( - 50 ) AS col0 FROM tab1
----
150

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

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 WHERE NOT ( NULL ) <= ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT DISTINCT ( MAX( ALL 47 ) ) AS col0 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-1842
SELECT DISTINCT ( MAX ( ALL 47 ) ) AS col0 FROM tab2
----
47

query I rowsort
SELECT col1 * + + col0 * 51 AS col2 FROM tab1
----
21675
218127
36414

query I rowsort
SELECT 1 AS col2 FROM tab0 WHERE NOT - col0 <= + 27
----

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

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

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( 79 ) > + col0 / col0
----

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

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

query I rowsort
SELECT + ( - col2 ) + - 35 FROM tab0 AS cor0
----
-134
-45
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT ALL - SUM( ALL + 85 ) FROM tab1, tab2 AS cor0
----
-765

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL - SUM ( ALL + 85 ) FROM tab1, tab2 AS cor0
----
-765

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

query I rowsort
SELECT DISTINCT - col0 * - 50 + - - 43 + 26 FROM tab0
----
4419
4919
819

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

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

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

query I rowsort
SELECT - - col1 * + col1 - + + col1 FROM tab0 AS cor0
----
0
420
6480

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT + COUNT( * ) - - 23 col2 FROM tab2 AS cor0 WHERE col0 IN ( + 67 / - col0 )
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1857
SELECT + COUNT ( * ) - - 23 col2 FROM tab2 AS cor0 WHERE col0 IN ( + 67 / - col0 )
----
23

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN ( 51 ) AND col0 + 9 AND NOT 7 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT 37 * - - 65 + MAX( DISTINCT 68 ) FROM tab1
----
2473

skipif mysql # not compatible
query I rowsort label-1859
SELECT 37 * - - 65 + MAX ( DISTINCT 68 ) FROM tab1
----
2473

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT DISTINCT 20 + + + COUNT( * ) + - 77 - + COUNT( * ) FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-1861
SELECT DISTINCT 20 + + + COUNT ( * ) + - 77 - + COUNT ( * ) FROM tab2
----
-57

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1863
SELECT - COUNT( * ) * - COUNT( * ) AS col2, 33 AS col2 FROM tab1 AS cor0
----
9
33

skipif mysql # not compatible
query II rowsort label-1863
SELECT - COUNT ( * ) * - COUNT ( * ) AS col2, 33 AS col2 FROM tab1 AS cor0
----
9
33

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + ( + 81 ) = col0 + - col1 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT ALL SUM( - 80 ) col0 FROM tab1 cor0
----
-240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1866
SELECT ALL SUM ( - 80 ) col0 FROM tab1 cor0
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT ALL - COUNT( * ) + 27 FROM tab0 cor0 WHERE + 74 * - - col0 = col1
----
27

skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL - COUNT ( * ) + 27 FROM tab0 cor0 WHERE + 74 * - - col0 = col1
----
27

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 46 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1869
SELECT DISTINCT + 69 * - + CAST( NULL AS SIGNED ) + - MAX( DISTINCT col0 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1869
SELECT DISTINCT + 69 * - + CAST ( NULL AS INTEGER ) + - MAX ( DISTINCT col0 ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL ( - - ( col2 ) ), 71 AS col0 FROM tab1 cor0
----
59
71
68
71
96
71

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

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT ( NOT + 82 - + col1 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, ( + 83 ) * + - col0 FROM tab2
----
-51
-3818
-67
-6225
-77
-5312

query II rowsort
SELECT DISTINCT - 68, col0 FROM tab1
----
-68
51
-68
85
-68
91

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

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

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

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

query I rowsort
SELECT + 48 * + + AVG ( DISTINCT - col0 ) AS col1 FROM tab0 WHERE NOT NULL <> + 11
----
NULL

query I rowsort
SELECT + 90 * - 43 FROM tab0
----
-3870
-3870
-3870

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

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE + 11 = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1881
SELECT DISTINCT 6 * 90 + + COUNT( + - 89 ) DIV - 6 FROM tab1 AS cor0
----
540

skipif mysql # not compatible
query I rowsort label-1881
SELECT DISTINCT 6 * 90 + + COUNT ( + - 89 ) / - 6 FROM tab1 AS cor0
----
540

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1883
SELECT col0 DIV col1 + + 15 FROM tab2 AS cor0 WHERE NULL IS NULL
----
15
15
16

skipif mysql # not compatible
query I rowsort label-1883
SELECT col0 / col1 + + 15 FROM tab2 AS cor0 WHERE NULL IS NULL
----
15
15
16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1884
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) <= 6 / 51 OR ( col2 * col1 ) NOT IN ( - 54 / + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1884
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) <= 6 / 51 OR ( col2 * col1 ) NOT IN ( - 54 / + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + col0 * - 16 FROM tab1
----
-1360
-1456
-816

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1886
SELECT + CAST( - CAST( ( + 40 ) AS SIGNED ) AS SIGNED ) DIV col2 + col1 AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1886
SELECT + CAST ( - CAST ( ( + 40 ) AS INTEGER ) AS INTEGER ) / col2 + col1 AS col2 FROM tab1
----
14
47
5

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1890
SELECT ALL col0 DIV - + CAST( + 41 AS SIGNED ) FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1890
SELECT ALL col0 / - + CAST ( + 41 AS INTEGER ) FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 col0 FROM tab0 AS cor0 WHERE - ( + 89 ) IS NULL
----

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

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

query I rowsort
SELECT 86 * - - col1 FROM tab2 cor0
----
4386
5762
6622

query I rowsort
SELECT ALL 35 * + - col2 AS col0 FROM tab0 cor0
----
-1645
-3465
-350

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT + 2 * + + SUM( ALL + col1 ) FROM tab0 cor0
----
206

skipif mysql # not compatible
query I rowsort label-1895
SELECT + 2 * + + SUM ( ALL + col1 ) FROM tab0 cor0
----
206

query I rowsort
SELECT - + 20 AS col2 FROM tab2 AS cor0
----
-20
-20
-20

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1900
SELECT DISTINCT col0 + + - col0 + - - col1 DIV - + 56 AS col0, ( col1 ) + col1 AS col1 FROM tab1
----
0
10
0
28
0
94

skipif mysql # not compatible
query II rowsort label-1900
SELECT DISTINCT col0 + + - col0 + - - col1 / - + 56 AS col0, ( col1 ) + col1 AS col1 FROM tab1
----
0
10
0
28
0
94

query I rowsort
SELECT DISTINCT + col2 + + - 16 FROM tab0
----
-6
31
83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1902
SELECT ALL * FROM tab2 WHERE - + col1 + col1 * CAST( - + col1 AS SIGNED ) + + ( + 72 ) BETWEEN - ( - col0 ) - - col2 AND - col0
----

skipif mysql # not compatible
query III rowsort label-1902
SELECT ALL * FROM tab2 WHERE - + col1 + col1 * CAST ( - + col1 AS INTEGER ) + + ( + 72 ) BETWEEN - ( - col0 ) - - col2 AND - col0
----

query I rowsort
SELECT DISTINCT - col2 * - col2 - + 18 * + 64 AS col2 FROM tab2
----
-623
2212
448

query I rowsort
SELECT - + 51 FROM tab2 WHERE + + col1 >= - - col2 * - col2
----
-51
-51
-51

query I rowsort
SELECT col0 + + col0 * col1 FROM tab0 WHERE - col2 NOT BETWEEN + col2 * - - ( 17 ) AND ( + col1 )
----
1230
1914
194

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1908
SELECT 3 col1, + COUNT( ALL + + ( 88 ) ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1908
SELECT 3 col1, + COUNT ( ALL + + ( 88 ) ) FROM tab2 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1909
SELECT - + 78 col0, COUNT( * ) * - - 42 FROM tab1 AS cor0
----
-78
126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1909
SELECT - + 78 col0, COUNT ( * ) * - - 42 FROM tab1 AS cor0
----
-78
126

query I rowsort
SELECT DISTINCT - 65 AS col1 FROM tab1 cor0 WHERE NOT col2 >= 32 * - col0
----

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

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

query I rowsort
SELECT + 57 * - col0 + - ( + 33 ) FROM tab2 AS cor0
----
-2655
-3681
-4308

query I rowsort
SELECT - 34 * - - ( - ( + col0 ) ) AS col0 FROM tab0
----
2958
3298
510

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT COUNT( * ) + + - 2 FROM tab1, tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-1914
SELECT COUNT ( * ) + + - 2 FROM tab1, tab1 AS cor0
----
7

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( col0 ) col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT + MAX( - col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1917
SELECT + MAX ( - col1 ) AS col0 FROM tab1 AS cor0
----
-5

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1919
SELECT ALL + 37 DIV - 74, col0 AS col2 FROM tab0 AS cor0
----
0
15
0
87
0
97

skipif mysql # not compatible
query II rowsort label-1919
SELECT ALL + 37 / - 74, col0 AS col2 FROM tab0 AS cor0
----
0
15
0
87
0
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + - col1 ) / + + 19 col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( 77 * col0, col1 + - col0 )
----

query I rowsort
SELECT DISTINCT - - 8 AS col1 FROM tab1 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT - SUM( 14 ) col2 FROM tab0
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1922
SELECT - SUM ( 14 ) col2 FROM tab0
----
-42

query III rowsort
SELECT * FROM tab1 WHERE NOT + 23 NOT BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT - 12 * - ( - col2 ) * - 52 / - + 18 FROM tab2 WHERE NOT + col0 NOT BETWEEN - col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 29 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1927
SELECT + 70 DIV + ( col1 ) AS col2 FROM tab0 WHERE NOT ( - - col2 + ( + col1 ) + col2 * + - 59 + - col2 ) = 70
----
0
3
70

skipif mysql # not compatible
query I rowsort label-1927
SELECT + 70 / + ( col1 ) AS col2 FROM tab0 WHERE NOT ( - - col2 + ( + col1 ) + col2 * + - 59 + - col2 ) = 70
----
0
3
70

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > - - ( 65 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1930
SELECT + + col1 * col2 DIV + col2 + - + 41 - + - 80 + - col2 FROM tab2 AS cor0
----
48
67
76

skipif mysql # not compatible
query I rowsort label-1930
SELECT + + col1 * col2 / + col2 + - + 41 - + - 80 + - col2 FROM tab2 AS cor0
----
48
67
76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT 34 + + COUNT( * ) col0 FROM tab1 AS cor0
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1932
SELECT 34 + + COUNT ( * ) col0 FROM tab1 AS cor0
----
37

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 23 = - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1934
SELECT DISTINCT - 91 - - 46 DIV + MIN( DISTINCT - col1 ) AS col1, + COUNT( * ) AS col2 FROM tab2
----
-91
3

skipif mysql # not compatible
query II rowsort label-1934
SELECT DISTINCT - 91 - - 46 / + MIN ( DISTINCT - col1 ) AS col1, + COUNT ( * ) AS col2 FROM tab2
----
-91
3

query I rowsort
SELECT ALL - 47 - col1 AS col1 FROM tab1 AS cor0
----
-52
-61
-94

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

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

query I rowsort
SELECT ALL col0 + 3 FROM tab0 AS cor0
----
100
18
90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + - 60, col2 )
----

query II rowsort
SELECT - col1 + col1 + col0 AS col2, col1 + + - col0 AS col0 FROM tab0
----
15
66
87
-66
97
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT SUM( DISTINCT - 63 ) col0 FROM tab0
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1941
SELECT SUM ( DISTINCT - 63 ) col0 FROM tab0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT + COUNT( * ) + + 77 FROM tab0 WHERE NOT ( 4 * col2 IS NOT NULL )
----
77

skipif mysql # not compatible
query I rowsort label-1942
SELECT + COUNT ( * ) + + 77 FROM tab0 WHERE NOT ( 4 * col2 IS NOT NULL )
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1943
SELECT DISTINCT 31 * + col1 AS col1, + col2 / - col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
2511
NULL
31
NULL
651
NULL

skipif mysql # not compatible
query II rowsort label-1943
SELECT DISTINCT 31 * + col1 AS col1, + col2 / - col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
2511
NULL
31
NULL
651
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT ALL + 68 * - MIN( ALL 51 ) FROM tab2
----
-3468

skipif mysql # not compatible
query I rowsort label-1944
SELECT ALL + 68 * - MIN ( ALL 51 ) FROM tab2
----
-3468

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 ) > ( + 86 )
----
15
81
47
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 13 * - - 10 ) >= + 42
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1948
SELECT CAST( - 66 AS SIGNED ) * + 73 FROM tab0
----
-4818
-4818
-4818

skipif mysql # not compatible
query I rowsort label-1948
SELECT CAST ( - 66 AS INTEGER ) * + 73 FROM tab0
----
-4818
-4818
-4818

query I rowsort
SELECT DISTINCT 13 * + - col0 FROM tab0
----
-1131
-1261
-195

query I rowsort
SELECT ALL - col1 * col2 * - 91 FROM tab2
----
106743
280280
353626

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT ALL - - COUNT( DISTINCT 38 ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL - - COUNT ( DISTINCT 38 ) FROM tab2 cor0
----
1

query I rowsort
SELECT ALL - 27 * - 18 + + + col2 AS col2 FROM tab1 AS cor0
----
545
554
582

query I rowsort
SELECT - + col0 + - 40 FROM tab1 AS cor0
----
-125
-131
-91

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1955
SELECT - CAST ( + 43 AS INTEGER ) col1 FROM tab1
----
-43
-43
-43

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1957
SELECT + col2 / + col0 * ( + CAST( NULL AS DECIMAL ) ) AS col2, + col1 + - + 12 * + 60 FROM tab1
----
NULL
-673
NULL
-706
NULL
-715

skipif mysql # not compatible
query II rowsort label-1957
SELECT + col2 / + col0 * ( + CAST ( NULL AS REAL ) ) AS col2, + col1 + - + 12 * + 60 FROM tab1
----
NULL
-673
NULL
-706
NULL
-715

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT - COUNT( * ) * 50 FROM tab2
----
-150

skipif mysql # not compatible
query I rowsort label-1958
SELECT - COUNT ( * ) * 50 FROM tab2
----
-150

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

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

query II rowsort
SELECT - col1 * - 23, col2 AS col0 FROM tab1
----
1081
68
115
59
322
96

query I rowsort
SELECT 50 * + col0 * 88 FROM tab0
----
382800
426800
66000

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE + + col0 BETWEEN NULL AND + col1 + + 7 + - col1 / col2 * + col0 * 94
----

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

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

query I rowsort
SELECT DISTINCT + col1 + - 68 AS col1 FROM tab1 AS cor0
----
-21
-54
-63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT + COUNT( * ) * - 6 + + COUNT( * ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-1966
SELECT + COUNT ( * ) * - 6 + + COUNT ( * ) FROM tab1
----
-15

query I rowsort
SELECT 3 + col2 * - 78 FROM tab0
----
-3663
-7719
-777

query I rowsort
SELECT col1 + - 32 AS col0 FROM tab1
----
-18
-27
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1969
SELECT - - col0 + CAST( + 57 AS SIGNED ) + col2 FROM tab0 WHERE + 99 * col1 - + - col1 IS NOT NULL
----
119
154
253

skipif mysql # not compatible
query I rowsort label-1969
SELECT - - col0 + CAST ( + 57 AS INTEGER ) + col2 FROM tab0 WHERE + 99 * col1 - + - col1 IS NOT NULL
----
119
154
253

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN - 88 AND NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1972
SELECT - CAST( - 0 AS SIGNED ) * - + 83 AS col1, col0 FROM tab2 AS cor0
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-1972
SELECT - CAST ( - 0 AS INTEGER ) * - + 83 AS col1, col0 FROM tab2 AS cor0
----
0
46
0
64
0
75

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

query I rowsort
SELECT DISTINCT + - 68 AS col0 FROM tab0 AS cor0
----
-68

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

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

query II rowsort
SELECT col0 AS col0, + col1 AS col0 FROM tab2
----
46
51
64
77
75
67

query II rowsort
SELECT col2 AS col1, col0 + - 45 + + col1 AS col2 FROM tab0
----
10
63
47
51
99
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT - 92 * + COUNT( * ) AS col1 FROM tab0 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1978
SELECT - 92 * + COUNT ( * ) AS col1 FROM tab0 WHERE NOT - col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT + MAX( col1 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
47

skipif mysql # not compatible
query I rowsort label-1979
SELECT + MAX ( col1 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT ALL SUM( DISTINCT col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL SUM ( DISTINCT col2 ) AS col1 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-1981
SELECT + COUNT( * ), + ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-1981
SELECT + COUNT ( * ), + ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
3
3

onlyif mysql # DIV for integer division: 
query II rowsort label-1982
SELECT col1 * + ( col0 ) + + col2 + + col1 + + col2 + col0 * + col2 * + ( - col0 ) + 40 DIV - - 41 AS col0, col2 AS col0 FROM tab0 AS cor0
----
-73822
10
-9185
47
-931195
99

skipif mysql # not compatible
query II rowsort label-1982
SELECT col1 * + ( col0 ) + + col2 + + col1 + + col2 + col0 * + col2 * + ( - col0 ) + 40 / - - 41 AS col0, col2 AS col0 FROM tab0 AS cor0
----
-73822
10
-9185
47
-931195
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1983
SELECT + + CAST( - 81 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - 49 + col2 + col2 < NULL
----

skipif mysql # not compatible
query I rowsort label-1983
SELECT + + CAST ( - 81 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - 49 + col2 + col2 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1984
SELECT ALL - 82 + - 87 DIV ( - col0 ) FROM tab2 AS cor0
----
-81
-81
-81

skipif mysql # not compatible
query I rowsort label-1984
SELECT ALL - 82 + - 87 / ( - col0 ) FROM tab2 AS cor0
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT + COUNT( - + col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1985
SELECT + COUNT ( - + col1 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT DISTINCT COUNT( DISTINCT + 69 ) + COUNT( * ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-1986
SELECT DISTINCT COUNT ( DISTINCT + 69 ) + COUNT ( * ) FROM tab2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT MIN( ALL - col2 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-99

skipif mysql # not compatible
query I rowsort label-1987
SELECT MIN ( ALL - col2 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-99

query II rowsort
SELECT ALL col1, col0 AS col1 FROM tab2
----
51
46
67
75
77
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - + 85 col2 FROM tab0 AS cor0
----
-4
-64
-84

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT DISTINCT - COUNT( * ) - + + COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1991
SELECT DISTINCT - COUNT ( * ) - + + COUNT ( * ) FROM tab0 AS cor0
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1992
SELECT DISTINCT - + 59 + col0 FROM tab2 AS cor0 WHERE NOT 94 + - CAST( NULL AS DECIMAL ) + 43 + + + 88 - - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1992
SELECT DISTINCT - + 59 + col0 FROM tab2 AS cor0 WHERE NOT 94 + - CAST ( NULL AS REAL ) + 43 + + + 88 - - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1993
SELECT ALL - - CAST( col2 AS SIGNED ) col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1993
SELECT ALL - - CAST ( col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL + 92 + col2 FROM tab1 AS cor0 WHERE NOT + 6 IS NULL
----
151
160
188

query I rowsort
SELECT DISTINCT + 29 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 / + col2 / - 82 AND col0
----

query I rowsort
SELECT ( + 88 ) * ( + col0 ) FROM tab1 cor0
----
4488
7480
8008

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT - COUNT( ALL + col1 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1997
SELECT - COUNT ( ALL + col1 ) AS col1 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * col1 * 46, col2 + + - 6 col1 FROM tab2
----
-107916
17
-226688
34
-231150
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT DISTINCT - SUM( ALL + 51 ) AS col0 FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-1999
SELECT DISTINCT - SUM ( ALL + 51 ) AS col0 FROM tab2
----
-153

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2000
SELECT + - CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2000
SELECT + - CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT ALL + MAX( - col1 ) col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2001
SELECT ALL + MAX ( - col1 ) col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - 36 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col1 AND NULL
----

query I rowsort
SELECT DISTINCT - + 11 * col1 AS col1 FROM tab1 AS cor0
----
-154
-517
-55

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
1
21
81

query I rowsort
SELECT ALL + + 36 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2006
SELECT CAST( NULL AS SIGNED ) + + 44 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2006
SELECT CAST ( NULL AS INTEGER ) + + 44 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2007
SELECT ALL + CAST( - + 82 AS SIGNED ) * + col1 - + - col2 + + 35 AS col2 FROM tab1 AS cor0
----
-1017
-316
-3751

skipif mysql # not compatible
query I rowsort label-2007
SELECT ALL + CAST ( - + 82 AS INTEGER ) * + col1 - + - col2 + + 35 AS col2 FROM tab1 AS cor0
----
-1017
-316
-3751

query II rowsort
SELECT + col2 AS col0, + col0 AS col1 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT ALL - COUNT( * ) + + 46 col1 FROM tab1
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2009
SELECT ALL - COUNT ( * ) + + 46 col1 FROM tab1
----
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + - + col0 AS col1, + col2 * - 55 col2 FROM tab0
----
-66
-550
-96
-5445
66
-2585

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT DISTINCT + 52 * + + 59 * + - COUNT( * ) col1 FROM tab2
----
-9204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2011
SELECT DISTINCT + 52 * + + 59 * + - COUNT ( * ) col1 FROM tab2
----
-9204

query I rowsort
SELECT ALL 26 + col0 AS col0 FROM tab2
----
101
72
90

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col1 = + - 78 + - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 10 + 95 AS col2 FROM tab2
----
105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * + col1 col1, 29 FROM tab0 cor0
----
210
29
3807
29
99
29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2016
SELECT DISTINCT + ( + - col1 ) / col0 * - col0 / CAST( NULL AS DECIMAL ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2016
SELECT DISTINCT + ( + - col1 ) / col0 * - col0 / CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 58 + + + 28 AS col0 FROM tab2 AS cor0
----
86
86
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2018
SELECT + 77 / + - MIN( + col0 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2018
SELECT + 77 / + - MIN ( + col0 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col0 + 43 + - 90 AS col2 FROM tab2
----
-111
-122
-93

query I rowsort
SELECT DISTINCT + 51 AS col1 FROM tab0 WHERE + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT ALL SUM( + col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-2021
SELECT ALL SUM ( + col1 ) FROM tab2
----
195

query II rowsort
SELECT col2, + 99 AS col0 FROM tab0
----
10
99
47
99
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 col1 FROM tab1 AS cor0
----
98
98
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2024
SELECT ALL CAST( - col2 AS SIGNED ) FROM tab0 cor0 WHERE - col0 IN ( - col1, col1 * + col0 * + col0 )
----

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL CAST ( - col2 AS INTEGER ) FROM tab0 cor0 WHERE - col0 IN ( - col1, col1 * + col0 * + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 38 col0 FROM tab0 AS cor0
----
-38
-38
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-2026
SELECT ALL - 97 DIV - col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL - 97 / - col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2027
SELECT - col1 * + ( + + col1 ) AS col2, - ( + + col2 ) + - col2 * - 80 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-2601
NULL
-4489
NULL
-5929
NULL

skipif mysql # not compatible
query II rowsort label-2027
SELECT - col1 * + ( + + col1 ) AS col2, - ( + + col2 ) + - col2 * - 80 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-2601
NULL
-4489
NULL
-5929
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 col2 FROM tab1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2029
SELECT DISTINCT CAST( + + col0 AS SIGNED ) AS col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT CAST ( + + col0 AS INTEGER ) AS col2 FROM tab2
----
46
64
75

query I rowsort
SELECT + 29 + + + AVG ( ALL - col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 <> NULL
----
NULL

query I rowsort
SELECT ALL + 88 * col1 FROM tab0 AS cor0
----
1848
7128
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 AS cor0 WHERE NOT 37 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2033
SELECT DISTINCT CAST( AVG ( 56 ) AS SIGNED ) AS col0 FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-2033
SELECT DISTINCT CAST ( AVG ( 56 ) AS INTEGER ) AS col0 FROM tab0
----
56

query I rowsort
SELECT ALL - + ( + - col2 ) * - - col0 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query II rowsort label-2035
SELECT ALL COUNT( * ) AS col2, COUNT( * ) * - COUNT( * ) * - COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( 77 ) IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-2035
SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) * - COUNT ( * ) * - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( 77 ) IS NOT NULL
----
0
0

query I rowsort
SELECT DISTINCT + 57 + - 32 FROM tab2 AS cor0
----
25

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * - col2 NOT IN ( col1 * - - 87 + - ( 40 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 28 * - col2 - col0 col2 FROM tab1 AS cor0
----
-1737
-1995
-2739

query II rowsort
SELECT - col1 AS col2, - col0 AS col1 FROM tab2 AS cor0
----
-51
-46
-67
-75
-77
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-2040
SELECT 63 DIV - 38 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2040
SELECT 63 / - 38 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - ( + col1 ) * 7 * - + col1 * col2 FROM tab1 AS cor0
----
10325
1051484
131712

query I rowsort
SELECT DISTINCT + + col2 + + + col1 FROM tab0 AS cor0
----
100
128
31

query II rowsort
SELECT - col2 * + 87 + - col0, + col1 AS col1 FROM tab1 AS cor0
----
-5218
5
-6007
47
-8403
14

query I rowsort
SELECT ALL - col2 * 54 + - col1 - - - 61 * col0 * 18 FROM tab2 cor0
----
-51801
-72509
-85549

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2045
SELECT ALL 50 DIV + + ( - COUNT( - col1 ) ) + - 87 FROM tab2
----
-103

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL 50 / + + ( - COUNT ( - col1 ) ) + - 87 FROM tab2
----
-103

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 77 < + + col0
----

query I rowsort
SELECT DISTINCT + col1 - - 22 - - + col2 AS col1 FROM tab0
----
122
150
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT DISTINCT + COUNT( * ) + MIN( ALL - 97 ) FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT + COUNT ( * ) + MIN ( ALL - 97 ) FROM tab1
----
-94

query I rowsort
SELECT - col0 + + + 33 FROM tab0
----
-54
-64
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2050
SELECT - CAST( NULL AS SIGNED ) + + - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2050
SELECT - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE 9 * + + col1 - 56 < - col2
----

query I rowsort
SELECT ALL - col1 - + col2 * - col2 + - col2 + + 39 FROM tab2
----
1522
3278
494

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT + MIN( ALL col0 ) + + + COUNT( * ) AS col0 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-2053
SELECT + MIN ( ALL col0 ) + + + COUNT ( * ) AS col0 FROM tab0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT DISTINCT + COUNT( * ) - + + 46 AS col0 FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-2054
SELECT DISTINCT + COUNT ( * ) - + + 46 AS col0 FROM tab2
----
-43

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE - + 59 IS NOT NULL
----
46
64
75

query I rowsort
SELECT - col2 + - 95 AS col1 FROM tab1 AS cor0 WHERE 82 IS NULL
----

query I rowsort
SELECT + - ( + 52 ) * - 55 AS col2 FROM tab1 cor0
----
2860
2860
2860

query I rowsort
SELECT ALL ( - col1 ) + col2 AS col1 FROM tab0
----
-11
-34
98

query II rowsort
SELECT ( - 97 ), ( ( - - col2 ) ) + - + col2 AS col1 FROM tab0
----
-97
0
-97
0
-97
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2060
SELECT ALL + ( - CAST( COUNT( ALL 21 ) AS SIGNED ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL + ( - CAST ( COUNT ( ALL 21 ) AS INTEGER ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 56 AS col0 FROM tab0 cor0
----
56

query I rowsort
SELECT ALL col1 + - - col0 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT - MAX( - ( - + col2 ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2063
SELECT - MAX ( - ( - + col2 ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - 77 * - - col2 * + col0 - - col2 * col1 FROM tab0 AS cor0
----
-50478
-66780
-739332

query I rowsort
SELECT ALL + - 32 AS col0 FROM tab2 AS cor0 WHERE NOT col1 >= + col0
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2066
SELECT MIN( CAST( NULL AS SIGNED ) ) * + 38 * - COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2066
SELECT MIN ( CAST ( NULL AS INTEGER ) ) * + 38 * - COUNT ( * ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT + ( + COUNT( * ) ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2067
SELECT + ( + COUNT ( * ) ) col2 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab1 WHERE NOT - col0 < NULL
----

query I rowsort
SELECT 41 * - col0 AS col0 FROM tab1
----
-2091
-3485
-3731

query II rowsort
SELECT 48 AS col2, col2 AS col2 FROM tab0
----
48
10
48
47
48
99

query I rowsort
SELECT ALL 27 * - col1 AS col0 FROM tab0
----
-2187
-27
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT DISTINCT - COUNT( * ) * + + COUNT( * ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT - COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2073
SELECT ALL 2 AS col2 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL 2 AS col2 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT - + 75 * - + col0 FROM tab2 AS cor0
----
3450
4800
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT ALL - 11 + + COUNT( * ) FROM tab0 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-2075
SELECT ALL - 11 + + COUNT ( * ) FROM tab0 cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT + - COUNT( + + col1 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2076
SELECT + - COUNT ( + + col1 ) FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT SUM( ALL - + ( + ( + ( - + 42 ) ) ) ) AS col1 FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-2077
SELECT SUM ( ALL - + ( + ( + ( - + 42 ) ) ) ) AS col1 FROM tab2
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2078
SELECT col0 + - CAST( + col2 AS SIGNED ) FROM tab2
----
17
23
24

skipif mysql # not compatible
query I rowsort label-2078
SELECT col0 + - CAST ( + col2 AS INTEGER ) FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT 86 + - COUNT( * ) AS col1 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-2079
SELECT 86 + - COUNT ( * ) AS col1 FROM tab2
----
83

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 - col0 * col2 col1 FROM tab1 cor0 WHERE - 95 + - col1 * + + 17 + + 83 * + col1 IS NOT NULL
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT - col2 + + ( + - 25 ) AS col1 FROM tab2 AS cor0
----
-48
-65
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - - col2 ) col2 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( col0 + + - col1 + - - col2 * - - 4 * + 44 * + 3 * - 37 + + col1 ) AND - col1 * - + col1 * + + 15 * - + col2 + + col0
----

query I rowsort
SELECT DISTINCT ( + col0 ) + - + col0 + + 75 FROM tab2
----
75

query I rowsort
SELECT DISTINCT + 57 - + - col1 FROM tab1
----
104
62
71

query I rowsort
SELECT ALL 18 + + 29 AS col1 FROM tab2
----
47
47
47

query III rowsort
SELECT * FROM tab0 WHERE 79 BETWEEN - 11 + + - col2 AND - + col1
----

query III rowsort
SELECT * FROM tab1 WHERE + - col1 * 67 + - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT ALL - MAX( ALL - - 50 ) col2 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2091
SELECT ALL - MAX ( ALL - - 50 ) col2 FROM tab1 AS cor0
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2092
SELECT + - col1 * + col2 * + 55 * + - 91 - - CAST( + col1 AS SIGNED ) FROM tab0 AS cor0 WHERE col2 + 92 IS NOT NULL
----
1051071
19054116
495496

skipif mysql # not compatible
query I rowsort label-2092
SELECT + - col1 * + col2 * + 55 * + - 91 - - CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0 WHERE col2 + 92 IS NOT NULL
----
1051071
19054116
495496

query II rowsort
SELECT col1 AS col1, + 24 FROM tab2 AS cor0
----
51
24
67
24
77
24

query I rowsort
SELECT ALL + + 21 FROM tab0 cor0
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2095
SELECT ALL - 9 AS col2, + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-9
NULL
-9
NULL
-9
NULL

skipif mysql # not compatible
query II rowsort label-2095
SELECT ALL - 9 AS col2, + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-9
NULL
-9
NULL
-9
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2096
SELECT DISTINCT + - MIN( + ( - 89 ) ) * CAST( - 1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-2096
SELECT DISTINCT + - MIN ( + ( - 89 ) ) * CAST ( - 1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2097
SELECT + - CAST( NULL AS SIGNED ) * + 94 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2097
SELECT + - CAST ( NULL AS INTEGER ) * + 94 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2098
SELECT ALL COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 40 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2100
SELECT DISTINCT COUNT( * ) * ( + COUNT( * ) ) DIV - ( COUNT( * ) ) + - COUNT( * ) * - COUNT( * ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2100
SELECT DISTINCT COUNT ( * ) * ( + COUNT ( * ) ) / - ( COUNT ( * ) ) + - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2
----
6

query III rowsort
SELECT * FROM tab2 WHERE NOT + 7 > + ( + col1 ) + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 34, col1 FROM tab2
----
34
51
34
67
34
77

query II rowsort
SELECT 91 AS col2, + 14 * + col0 FROM tab2
----
91
1050
91
644
91
896

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + 77 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2105
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 - - 28 - + 45 / - CAST( NULL AS SIGNED ) * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2105
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 - - 28 - + 45 / - CAST ( NULL AS INTEGER ) * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col1 * + + col0 * + 75 AS col2 FROM tab2 AS cor0
----
175950
369600
376875

query I rowsort
SELECT - 92 * + 31 AS col0 FROM tab1 AS cor0
----
-2852
-2852
-2852

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT - - MAX( DISTINCT - 40 ) FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-2109
SELECT - - MAX ( DISTINCT - 40 ) FROM tab2 AS cor0
----
-40

query I rowsort
SELECT + col1 * + + 91 FROM tab2 cor0
----
4641
6097
7007

query II rowsort
SELECT DISTINCT - - col0, col1 AS col2 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT ( ( + COUNT( * ) ) ) * + - 56 FROM tab1 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-2112
SELECT ( ( + COUNT ( * ) ) ) * + - 56 FROM tab1 AS cor0
----
-168

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= + 97 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT - 49 * COUNT( * ) FROM tab2 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-2114
SELECT - 49 * COUNT ( * ) FROM tab2 AS cor0
----
-147

query I rowsort
SELECT DISTINCT 9 * - col1 AS col1 FROM tab1
----
-126
-423
-45

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = - col2 / - col0 + col2
----

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE NOT + 34 * - col0 NOT BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2118
SELECT - MIN( ALL + col1 ), COUNT( * ) AS col1 FROM tab1
----
-5
3

skipif mysql # not compatible
query II rowsort label-2118
SELECT - MIN ( ALL + col1 ), COUNT ( * ) AS col1 FROM tab1
----
-5
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col0 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 34 + + 69 AS col2, col2 AS col0 FROM tab0 WHERE NOT ( col2 * - 43 - - col0 ) IS NULL
----
103
10
103
47
103
99

query I rowsort
SELECT col2 * 63 + + - ( + col0 ) + 87 AS col0 FROM tab0 cor0
----
3033
6227
630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2122
SELECT ALL CAST( NULL AS SIGNED ) + - + AVG ( DISTINCT + ( - col1 ) ) + CAST( NULL AS SIGNED ) * 30 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2122
SELECT ALL CAST ( NULL AS INTEGER ) + - + AVG ( DISTINCT + ( - col1 ) ) + CAST ( NULL AS INTEGER ) * 30 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2123
SELECT * FROM tab1 cor0 WHERE col1 NOT BETWEEN + col2 AND + col1 * - CAST( NULL AS SIGNED ) + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2123
SELECT * FROM tab1 cor0 WHERE col1 NOT BETWEEN + col2 AND + col1 * - CAST ( NULL AS INTEGER ) + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT + - SUM( DISTINCT - + ( + col0 ) ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-2124
SELECT + - SUM ( DISTINCT - + ( + col0 ) ) FROM tab1 AS cor0
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 * - - 37 col2 FROM tab0
----
3589
44955
67599

query II rowsort
SELECT DISTINCT 83 AS col0, - col0 FROM tab2 AS cor0
----
83
-46
83
-64
83
-75

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2127
SELECT + CAST( NULL AS DECIMAL ) * - col0 + + + 94 - - CAST( - + col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2127
SELECT + CAST ( NULL AS REAL ) * - col0 + + + 94 - - CAST ( - + col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + 57 AS col2, + 75 FROM tab1 AS cor0
----
57
75

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL > col0 * + + col0
----

query I rowsort
SELECT + - col0 + col0 * - col0 + + - col1 AS col1 FROM tab2 AS cor0
----
-2213
-4237
-5767

query II rowsort
SELECT + col2, + col2 * col2 * 2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT DISTINCT - + col2 FROM tab2 WHERE NOT 60 * - + col0 - + col1 * col1 * + col0 <> NULL
----

query I rowsort
SELECT DISTINCT + 46 * - col2 + col0 AS col2 FROM tab1
----
-2629
-3037
-4365

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT - COUNT( * ) FROM tab0 WHERE col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2134
SELECT - COUNT ( * ) FROM tab0 WHERE col0 IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col2 * col0 col0 FROM tab1
----
4845
4930
6097

query I rowsort
SELECT DISTINCT col2 * - col0 + + col1 - - col1 AS col1 FROM tab0
----
-543
-828
-9601

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 27 - 9, - col2 * - col1 col2 FROM tab2
----
18
1173
18
3080
18
3886

query I rowsort
SELECT ALL ( + col0 ) AS col2 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT + 79 * + + 3 AS col0 FROM tab2
----
237
237
237

query II rowsort
SELECT DISTINCT - 99, + col2 FROM tab2 AS cor0
----
-99
23
-99
40
-99
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= - 42 + - 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT + 86 * + COUNT( * ) FROM tab1
----
258

skipif mysql # not compatible
query I rowsort label-2142
SELECT + 86 * + COUNT ( * ) FROM tab1
----
258

query I rowsort
SELECT + col0 - - col0 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + + col1 AND + 55
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2144
SELECT DISTINCT 92 AS col2, 93 + + col2 + + + 63 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
92
NULL

skipif mysql # not compatible
query II rowsort label-2144
SELECT DISTINCT 92 AS col2, 93 + + col2 + + + 63 * - CAST ( NULL AS REAL ) AS col2 FROM tab2
----
92
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 * + - 17 col2 FROM tab1
----
-3332
-37553
-425

onlyif mysql # DIV for integer division: 
query I rowsort label-2146
SELECT DISTINCT col1 DIV + - col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-2146
SELECT DISTINCT col1 / + - col0 FROM tab2
----
-1
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2147
SELECT DISTINCT + col2, - col1 DIV col0 FROM tab1
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-2147
SELECT DISTINCT + col2, - col1 / col0 FROM tab1
----
59
0
68
0
96
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT DISTINCT + COUNT( + - ( col0 ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT + COUNT ( + - ( col0 ) ) AS col2 FROM tab1
----
3

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-2151
SELECT DISTINCT + 73, COUNT( * ) AS col0 FROM tab2 AS cor0
----
73
3

skipif mysql # not compatible
query II rowsort label-2151
SELECT DISTINCT + 73, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
73
3

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE - - 85 + + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT ALL ( - ( - MAX( + col0 ) ) ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL ( - ( - MAX ( + col0 ) ) ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL + + 86 - + + col2 * col1 FROM tab2 AS cor0 WHERE NOT - col1 * 26 IS NULL
----
-1087
-2994
-3800

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE ( NOT NULL >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT ALL - MAX( - - 77 ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL - MAX ( - - 77 ) AS col2 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT ALL + + col1 + + + 96 * - col0 + + 1 + + col2 * col1 AS col1 FROM tab1 AS cor0
----
-3537
-5492
-7859

onlyif mysql # DIV for integer division: 
query II rowsort label-2159
SELECT + 46 * - col2 AS col1, col2 DIV - ( + - col0 ) FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-1058
0
-1840
0
-2668
0

skipif mysql # not compatible
query II rowsort label-2159
SELECT + 46 * - col2 AS col1, col2 / - ( + - col0 ) FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-1058
0
-1840
0
-2668
0

query I rowsort
SELECT - 47 * + col1 * + col2 - + 67 AS col0 FROM tab2
----
-144827
-182709
-55198

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT ALL - SUM( ALL - + col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL - SUM ( ALL - + col2 ) AS col1 FROM tab0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, - ( + ( col0 ) ) col1 FROM tab0
----
10
-87
47
-15
99
-97

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 WHERE + col2 + - - col0 < - + col2 * - - col2 - + 53 * + col1
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) < - col0 - + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2165
SELECT COUNT( * ), - MIN( ALL 59 ) AS col0 FROM tab1 AS cor0
----
3
-59

skipif mysql # not compatible
query II rowsort label-2165
SELECT COUNT ( * ), - MIN ( ALL 59 ) AS col0 FROM tab1 AS cor0
----
3
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2166
SELECT + 46 FROM tab1 AS cor0 WHERE NOT 18 NOT IN ( - - 52, + CAST( + - col1 AS SIGNED ) + - + col1 + - 11 - + col0, + 92 - col1 )
----

skipif mysql # not compatible
query I rowsort label-2166
SELECT + 46 FROM tab1 AS cor0 WHERE NOT 18 NOT IN ( - - 52, + CAST ( + - col1 AS INTEGER ) + - + col1 + - 11 - + col0, + 92 - col1 )
----

query I rowsort
SELECT DISTINCT + 58 * + col1 FROM tab2 AS cor0
----
2958
3886
4466

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 45 * col0 * + col1 - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 33 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2170
SELECT + - col0 * CAST( col1 AS SIGNED ) DIV + ( - col1 ) FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2170
SELECT + - col0 * CAST ( col1 AS INTEGER ) / + ( - col1 ) FROM tab0 cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2171
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2171
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + - col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( - + col1 ) IS NULL
----

query I rowsort
SELECT ALL + ( col2 ) + 46 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 97 + + col2 AS col0 FROM tab0
----
107
144
196

query I rowsort
SELECT ALL - ( + - col0 ) * + col2 + - col2 FROM tab2
----
1035
2520
4292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2176
SELECT col2 + - col1 + col2 * - - 84 * + ( + 48 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2176
SELECT col2 + - col1 + col2 * - - 84 * + ( + 48 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 93 * col0 AS col1 FROM tab2
----
4278
5952
6975

query I rowsort
SELECT col2 + + col1 * + col0 FROM tab1
----
4345
484
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 81 col2, + 26 AS col1 FROM tab1
----
81
26

onlyif mysql # DIV for integer division: 
query I rowsort label-2180
SELECT col2 DIV 80 * + + col0 * - col1 + - col0 col0 FROM tab1 AS cor0
----
-765
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2180
SELECT col2 / 80 * + + col0 * - col1 + - col0 col0 FROM tab1 AS cor0
----
-765
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT + 56 * + 86 + + MAX( DISTINCT ( - col1 ) ) * - MIN( DISTINCT + 6 ) FROM tab2 AS cor0 WHERE NULL IN ( col1, - col0 * - 77 / - ( - - 75 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2181
SELECT + 56 * + 86 + + MAX ( DISTINCT ( - col1 ) ) * - MIN ( DISTINCT + 6 ) FROM tab2 AS cor0 WHERE NULL IN ( col1, - col0 * - 77 / - ( - - 75 ) )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 71 NOT BETWEEN - col2 + + col1 AND 11
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2183
SELECT DISTINCT + col1 * CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-2183
SELECT DISTINCT + col1 * CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT - 90 + - col0 FROM tab2 cor0
----
-136
-154
-165

query I rowsort
SELECT ALL - col2 * - 87 + - col1 + + 23 FROM tab0 WHERE NULL IS NULL
----
4031
8635
872

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT - COUNT( * ) * - 28 col0 FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN ( - 28 ) - - 25 AND NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2186
SELECT - COUNT ( * ) * - 28 col0 FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN ( - 28 ) - - 25 AND NULL )
----
0

query I rowsort
SELECT 93 * + col1 AS col1 FROM tab1
----
1302
4371
465

onlyif mysql # DIV for integer division: 
query I rowsort label-2188
SELECT - col2 DIV - 10 AS col1 FROM tab0
----
1
4
9

skipif mysql # not compatible
query I rowsort label-2188
SELECT - col2 / - 10 AS col1 FROM tab0
----
1
4
9

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 <= - + 58
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT - ( - + col0 ) * + - 76 + 56 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2191
SELECT + 75 AS col1, CAST( + + col2 AS SIGNED ) col1 FROM tab0
----
75
10
75
47
75
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2191
SELECT + 75 AS col1, CAST ( + + col2 AS INTEGER ) col1 FROM tab0
----
75
10
75
47
75
99

query II rowsort
SELECT - 21 * 36 * + col1 AS col2, col1 FROM tab0
----
-15876
21
-61236
81
-756
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 * + - 55 col0 FROM tab1
----
-4840
-4840
-4840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 91 col1 FROM tab2
----
-142
-158
-168

query I rowsort
SELECT ALL 7 * 38 FROM tab1
----
266
266
266

query I rowsort
SELECT DISTINCT 12 * - 30 * - - col2 FROM tab0 AS cor0
----
-16920
-35640
-3600

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= 84 + + col0
----

query II rowsort
SELECT DISTINCT + - col1, col0 AS col2 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT ALL + ( - - 15 ) AS col2 FROM tab2 cor0
----
15
15
15

query II rowsort
SELECT DISTINCT col0 * 30 * col1 * + 0, col2 AS col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

query I rowsort
SELECT DISTINCT + 59 + + col2 AS col1 FROM tab0
----
106
158
69

query I rowsort
SELECT col1 * - 36 AS col0 FROM tab0
----
-2916
-36
-756

query I rowsort
SELECT DISTINCT - col1 * - + col1 AS col1 FROM tab0
----
1
441
6561

query I rowsort
SELECT 15 * - col0 AS col1 FROM tab1
----
-1275
-1365
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT COUNT( DISTINCT 52 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2205
SELECT COUNT ( DISTINCT 52 ) FROM tab0
----
1

query I rowsort
SELECT ALL ( - 29 ) AS col0 FROM tab0
----
-29
-29
-29

query I rowsort
SELECT - 23 + - 86 * - + col1 FROM tab0 AS cor0
----
1783
63
6943

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT DISTINCT + + 60 + + + MAX( + col2 ) FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT + + 60 + + + MAX ( + col2 ) FROM tab1 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT DISTINCT - + COUNT( ALL + 8 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2209
SELECT DISTINCT - + COUNT ( ALL + 8 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - 54 - - col2 FROM tab1
----
14
42
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT ALL - + ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL - + ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + + 3 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 15 FROM tab1 AS cor0 WHERE + col1 <= - 71
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2214
SELECT + CAST( NULL AS SIGNED ) * - 95 * col1 + + 54 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2214
SELECT + CAST ( NULL AS INTEGER ) * - 95 * col1 + + 54 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 FROM tab0 cor0 WHERE NOT NULL = 12 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * + col2 col0 FROM tab2 AS cor0
----
-1600
-3364
-529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - col2 + - col0 col0 FROM tab2
----
23
-69
40
-104
58
-133

query I rowsort
SELECT - ( + col2 ) * + 75 FROM tab0
----
-3525
-7425
-750

query I rowsort
SELECT DISTINCT - col2 - + col0 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2220
SELECT COUNT( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND CAST( + col1 AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-2220
SELECT COUNT ( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND CAST ( + col1 AS REAL )
----
0

query I rowsort
SELECT ALL + col0 * - - col0 AS col2 FROM tab0
----
225
7569
9409

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 * + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 31 * col2 AS col1 FROM tab2
----
1240
1798
713

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2224
SELECT CAST( + + COUNT( * ) AS SIGNED ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2224
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) col2 FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2225
SELECT ALL + col0 AS col1, CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-2225
SELECT ALL + col0 AS col1, CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2226
SELECT DISTINCT - CAST( - - col0 AS SIGNED ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-2226
SELECT DISTINCT - CAST ( - - col0 AS INTEGER ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT + - SUM( ALL - + 93 ) AS col1 FROM tab2 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-2227
SELECT + - SUM ( ALL - + 93 ) AS col1 FROM tab2 AS cor0
----
279

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 82 / + + ( - 59 ) = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2229
SELECT + - COUNT( * ), + COUNT( * ) + - 29 + ( - MAX( ALL col1 ) ) AS col2 FROM tab1 AS cor0
----
-3
-73

skipif mysql # not compatible
query II rowsort label-2229
SELECT + - COUNT ( * ), + COUNT ( * ) + - 29 + ( - MAX ( ALL col1 ) ) AS col2 FROM tab1 AS cor0
----
-3
-73

query I rowsort
SELECT - 66 FROM tab1 WHERE - - col1 NOT IN ( + + col1, 8, col2 + - ( - + 88 ) + 92, col0 * - + ( + - 66 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT - COUNT( * ) * COUNT( * ) col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2231
SELECT - COUNT ( * ) * COUNT ( * ) col0 FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT + COUNT( + - ( col1 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2232
SELECT + COUNT ( + - ( col1 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2233
SELECT ALL CAST( + 18 AS SIGNED ) + + - 8 AS col1 FROM tab2 AS cor0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-2233
SELECT ALL CAST ( + 18 AS INTEGER ) + + - 8 AS col1 FROM tab2 AS cor0
----
10
10
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2234
SELECT DISTINCT + CAST( + AVG ( DISTINCT - col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-2234
SELECT DISTINCT + CAST ( + AVG ( DISTINCT - col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2235
SELECT DISTINCT + 85 AS col0 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) + - - ( col0 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2235
SELECT DISTINCT + 85 AS col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - - ( col0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2236
SELECT col1 * 16 DIV col2, + col0 * - 85 + col2 + + - col2 * + col1 col0 FROM tab1 AS cor0
----
1
-7461
11
-10863
2
-5583

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2236
SELECT col1 * 16 / col2, + col0 * - 85 + col2 + + - col2 * + col1 col0 FROM tab1 AS cor0
----
1
-7461
11
-10863
2
-5583

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT + COUNT( * ) + + COUNT( - 17 ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2237
SELECT + COUNT ( * ) + + COUNT ( - 17 ) AS col1 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT DISTINCT + 41 * - + COUNT( * ) + + - 71 FROM tab2
----
-194

skipif mysql # not compatible
query I rowsort label-2238
SELECT DISTINCT + 41 * - + COUNT ( * ) + + - 71 FROM tab2
----
-194

query I rowsort
SELECT + 56 + - 20 + + col0 * + 16 AS col1 FROM tab0
----
1428
1588
276

query II rowsort
SELECT - col1 AS col0, + col1 + - - col2 + + 60 FROM tab0 AS cor0
----
-1
160
-21
91
-81
188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2241
SELECT DISTINCT col0 / col2 + - CAST( NULL AS SIGNED ) - 0 + - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2241
SELECT DISTINCT col0 / col2 + - CAST ( NULL AS INTEGER ) - 0 + - col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2242
SELECT + col1 DIV 33 AS col2 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2242
SELECT + col1 / 33 AS col2 FROM tab0 AS cor0
----
0
0
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2243
SELECT ( + col2 ) DIV + col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2243
SELECT ( + col2 ) / + col2 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2244
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE ( - col2 + + CAST( 31 + - 85 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2244
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE ( - col2 + + CAST ( 31 + - 85 AS INTEGER ) ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col1 / - col2 + col1 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 57 / - col1 <= col0 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2247
SELECT DISTINCT + 93 * + 18 - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2247
SELECT DISTINCT + 93 * + 18 - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL col0 + - col1 * col2 AS col0 FROM tab2
----
-1127
-3016
-3811

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * + 98 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2250
SELECT ALL * FROM tab1 WHERE + 65 IN ( col1 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2250
SELECT ALL * FROM tab1 WHERE + 65 IN ( col1 * - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col0 + col2 AS col1 FROM tab2 WHERE ( 73 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( + col2 ) - ( ( col0 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 11 + col2 FROM tab1
----
107
70
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT + MIN( DISTINCT ( col1 ) ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2254
SELECT + MIN ( DISTINCT ( col1 ) ) AS col0 FROM tab0
----
1

query I rowsort
SELECT + 10 - 59 FROM tab1 WHERE ( col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT + MIN( ALL - 91 ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2256
SELECT + MIN ( ALL - 91 ) AS col2 FROM tab1
----
-91

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 * col2 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + 33 * - col2 FROM tab1
----
-1862
-2153
-3117

query I rowsort
SELECT DISTINCT + col2 + + ( + 16 ) AS col2 FROM tab1
----
112
75
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2260
SELECT - COUNT( * ) + AVG ( + ( 8 ) ) * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2260
SELECT - COUNT ( * ) + AVG ( + ( 8 ) ) * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - col2 * 26 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1040
-1508
-598

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + + 91 * + col1 <> ( col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 ) IN ( 46 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT ALL MIN( ALL - col0 ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL MIN ( ALL - col0 ) AS col0 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT 25 + - COUNT( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
25

skipif mysql # not compatible
query I rowsort label-2265
SELECT 25 + - COUNT ( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2266
SELECT ALL - col0 * + col2 FROM tab1 WHERE NULL BETWEEN 9 * - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL - col0 * + col2 FROM tab1 WHERE NULL BETWEEN 9 * - CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 41 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT DISTINCT COUNT( ALL + col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2268
SELECT DISTINCT COUNT ( ALL + col0 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT ALL COUNT( * ) + 31 col1 FROM tab2 WHERE NOT + col2 - col2 IS NOT NULL
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2269
SELECT ALL COUNT ( * ) + 31 col1 FROM tab2 WHERE NOT + col2 - col2 IS NOT NULL
----
31

query I rowsort
SELECT DISTINCT - ( col1 ) * col1 FROM tab1 WHERE NOT + col2 * - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + - 49 FROM tab0 cor0
----
-49
-49
-49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 16 NOT BETWEEN - col1 * - col1 AND + col2 + - col2
----

query I rowsort
SELECT + col2 + + 97 AS col0 FROM tab1 AS cor0
----
156
165
193

query I rowsort
SELECT ALL + 72 FROM tab1 AS cor0 WHERE + 22 BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 97 * 60 + + col0 AND NULL
----

query I rowsort
SELECT - col2 * + col0 FROM tab2 AS cor0 WHERE - 18 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col2 * 35 FROM tab2 cor0
----
-1400
-2030
-805

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + ( col2 ) * 63 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2279
SELECT col2 * 41 DIV - col1 FROM tab2
----
-18
-21
-35

skipif mysql # not compatible
query I rowsort label-2279
SELECT col2 * 41 / - col1 FROM tab2
----
-18
-21
-35

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 94 ) NOT IN ( - 42 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 < ( - col2 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 + + col2 + col0 col0 FROM tab2
----
114
149
178

query I rowsort
SELECT ALL col0 - - 96 FROM tab1
----
147
181
187

query I rowsort
SELECT ( + 92 ) AS col1 FROM tab2
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) * col2 + col2 col2 FROM tab2
----
1196
3120
3944

query I rowsort
SELECT DISTINCT - col1 - 87 AS col2 FROM tab2
----
-138
-154
-164

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NOT NULL AND NULL BETWEEN ( col1 * + col0 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IS NULL AND NOT col0 + + col0 * col1 <> col1 + 2
----

query I rowsort
SELECT ALL + 18 - col0 * col1 FROM tab0 AS cor0
----
-1197
-1809
-79

query I rowsort
SELECT - + col2 + + 13 * col0 AS col2 FROM tab2 AS cor0
----
575
792
917

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2291
SELECT CAST( NULL AS SIGNED ) + col2 + + 10 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2291
SELECT CAST ( NULL AS INTEGER ) + col2 + + 10 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT DISTINCT MAX( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2292
SELECT DISTINCT MAX ( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 49 * - col2 col2 FROM tab0 AS cor0 WHERE NOT + col0 / - col2 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col0 * 68 col2 FROM tab0 AS cor0
----
-15300
-514692
-639812

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IN ( 92 )
----

query I rowsort
SELECT ( - 85 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT - MAX( + col2 ) FROM tab1 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2297
SELECT - MAX ( + col2 ) FROM tab1 WHERE NOT ( NULL ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 + + ( col2 ) <> + col2
----

query I rowsort
SELECT ALL + col1 + - col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 39 * - + col1 AND - 97 * col2
----

query I rowsort
SELECT DISTINCT + 18 * ( col0 ) AS col2 FROM tab0 AS cor0
----
1566
1746
270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col1 FROM tab1 cor0
----
90
90
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2302
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT col1 + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2302
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT col1 + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT ALL + - COUNT( * ) * + COUNT( 36 ) + - COUNT( * ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2303
SELECT ALL + - COUNT ( * ) * + COUNT ( 36 ) + - COUNT ( * ) FROM tab0 AS cor0
----
-12

query I rowsort
SELECT 95 * - 41 AS col1 FROM tab1 AS cor0
----
-3895
-3895
-3895

query I rowsort
SELECT - - ( - 81 ) AS col2 FROM tab2 AS cor0
----
-81
-81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2306
SELECT ALL + ( col1 ) * CAST( NULL AS SIGNED ) - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2306
SELECT ALL + ( col1 ) * CAST ( NULL AS INTEGER ) - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query II rowsort
SELECT ALL + 66, col2 FROM tab2 AS cor0
----
66
23
66
40
66
58

query I rowsort
SELECT DISTINCT - 95 * - + col1 * + col1 AS col0 FROM tab1 AS cor0
----
18620
209855
2375

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2311
SELECT - col1 DIV - 5 AS col1 FROM tab1
----
1
2
9

skipif mysql # not compatible
query I rowsort label-2311
SELECT - col1 / - 5 AS col1 FROM tab1
----
1
2
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT 83 + - ( - ( COUNT( * ) ) ) AS col2 FROM tab2 WHERE NOT NULL IN ( + 28 )
----
83

skipif mysql # not compatible
query I rowsort label-2312
SELECT 83 + - ( - ( COUNT ( * ) ) ) AS col2 FROM tab2 WHERE NOT NULL IN ( + 28 )
----
83

query I rowsort
SELECT ( + ( - + 88 ) ) FROM tab2
----
-88
-88
-88

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - + col0 + - + col2 * 87 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT ALL ( 55 ) * - COUNT( * ) + COUNT( * ) + + 48 FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL ( 55 ) * - COUNT ( * ) + COUNT ( * ) + + 48 FROM tab0
----
-114

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= + 50 + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 7 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + - 56 + - col2 * - 8 * col2 FROM tab1 AS cor0
----
27797
36983
73686

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2319
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + CAST( NULL AS SIGNED ) * + 73 - 59
----

skipif mysql # not compatible
query III rowsort label-2319
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + CAST ( NULL AS INTEGER ) * + 73 - 59
----

query I rowsort
SELECT - 49 FROM tab1 AS cor0 WHERE NOT 13 / - 63 <> ( + ( col1 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= - col2 * col1 + + - col1 * - 42
----

query I rowsort
SELECT - col1 * - col0 * + + 62 + + - col1 * - 55 AS col0 FROM tab0 AS cor0
----
114429
6069
79785

query I rowsort
SELECT ALL col1 * + 71 + + 94 AS col1 FROM tab1 AS cor0
----
1088
3431
449

query I rowsort
SELECT 54 AS col1 FROM tab2 AS cor0 WHERE NOT col0 = - - 54 / + col0
----
54
54
54

query I rowsort
SELECT col2 + + 88 FROM tab2 AS cor0
----
111
128
146

query I rowsort
SELECT ALL - + ( + col0 ) * - col1 AS col2 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT DISTINCT + 85 + - 91 * - 21 AS col0 FROM tab2 AS cor0
----
1996

query I rowsort
SELECT 29 AS col1 FROM tab0 WHERE ( + 63 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL > + 7
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2330
SELECT + col1 * - col0 DIV + col0 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2330
SELECT + col1 * - col0 / + col0 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT - - 9 - - col0 FROM tab2 AS cor0
----
55
73
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) col1 FROM tab0 AS cor0 WHERE NOT - - 66 * - 54 > ( NULL ) AND - col1 + 71 NOT BETWEEN 78 - + 76 AND ( 7 / - 24 + + col2 )
----

query I rowsort
SELECT - - 95 - + + 3 + - 79 * + - col2 FROM tab1 AS cor0
----
4753
5464
7676

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2334
SELECT - CAST( - COUNT( ALL + - col2 ) AS SIGNED ) - + 22 AS col1 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-2334
SELECT - CAST ( - COUNT ( ALL + - col2 ) AS INTEGER ) - + 22 AS col1 FROM tab2 AS cor0
----
-19

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( + col1 * - - col2 ) AND col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2336
SELECT CAST( MIN( ALL + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0 FROM tab2 WHERE ( NOT ( - col1 * + col0 BETWEEN col2 AND NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2336
SELECT CAST ( MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab2 WHERE ( NOT ( - col1 * + col0 BETWEEN col2 AND NULL ) )
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + 38 NOT BETWEEN + col1 AND NULL
----
15
81
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + ( - - 64 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT DISTINCT + 15 - + COUNT( * ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-2339
SELECT DISTINCT + 15 - + COUNT ( * ) FROM tab2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-2340
SELECT + col2 DIV 48 * - - col0 * + col2 + - + col1 AS col2 FROM tab2
----
-51
-77
4283

skipif mysql # not compatible
query I rowsort label-2340
SELECT + col2 / 48 * - - col0 * + col2 + - + col1 AS col2 FROM tab2
----
-51
-77
4283

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2341
SELECT DISTINCT - 49 DIV - ( COUNT( * ) ) - + ( COUNT( * ) ) + + 79 col0 FROM tab1
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2341
SELECT DISTINCT - 49 / - ( COUNT ( * ) ) - + ( COUNT ( * ) ) + + 79 col0 FROM tab1
----
92

query III rowsort
SELECT * FROM tab2 WHERE + - 69 > NULL
----

query III rowsort
SELECT col1, - col0, - col1 + + - col2 AS col0 FROM tab0
----
9 values hashing to f4351ff251d3edb2697cd33a791e784c

query II rowsort
SELECT ALL - 88 - 3 AS col0, - col1 FROM tab0
----
-91
-1
-91
-21
-91
-81

query III rowsort
SELECT * FROM tab1 WHERE + col2 <> + 44
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 * + 38 + - col2 * + col1 AS col2 FROM tab0
----
-3516
-3785
-4377

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT DISTINCT + - COUNT( * ) FROM tab2 WHERE NOT + + ( - + 28 ) + + col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT + - COUNT ( * ) FROM tab2 WHERE NOT + + ( - + 28 ) + + col2 IS NULL
----
-3

query I rowsort
SELECT ALL col0 - col1 - 7 + - 65 + - - col1 * - + col2 AS col0 FROM tab0
----
-216
-3945
-75

query I rowsort
SELECT DISTINCT 98 * - col2 * + col2 AS col0 FROM tab2
----
-156800
-329672
-51842

query II rowsort
SELECT + col2 AS col0, + 38 FROM tab2 AS cor0
----
23
38
40
38
58
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT ALL + MIN( + - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL + MIN ( + - col0 ) FROM tab1 AS cor0
----
-91

query II rowsort
SELECT DISTINCT + col0 AS col0, col0 * - + col1 FROM tab0 cor0
----
15
-1215
87
-1827
97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT DISTINCT COUNT( * ) + + 85 AS col2 FROM tab2 AS cor0 WHERE NOT ( + col1 ) * + 91 BETWEEN col0 AND + 53 * + 50
----
88

skipif mysql # not compatible
query I rowsort label-2353
SELECT DISTINCT COUNT ( * ) + + 85 AS col2 FROM tab2 AS cor0 WHERE NOT ( + col1 ) * + 91 BETWEEN col0 AND + 53 * + 50
----
88

query II rowsort
SELECT DISTINCT col1, - 51 AS col2 FROM tab1 AS cor0
----
14
-51
47
-51
5
-51

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - + 22 + + 82 + - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-2356
SELECT + 45 DIV + col2 AS col1, + 51 AS col2 FROM tab0 cor0
----
0
51
0
51
4
51

skipif mysql # not compatible
query II rowsort label-2356
SELECT + 45 / + col2 AS col1, + 51 AS col2 FROM tab0 cor0
----
0
51
0
51
4
51

query I rowsort
SELECT DISTINCT + ( col2 ) FROM tab0 cor0 WHERE - col1 <> col0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2358
SELECT ALL + col0 * 70 DIV + col2 AS col2 FROM tab2 AS cor0
----
112
140
90

skipif mysql # not compatible
query I rowsort label-2358
SELECT ALL + col0 * 70 / + col2 AS col2 FROM tab2 AS cor0
----
112
140
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT ALL SUM( - + col1 ) * MIN( + col1 ) FROM tab1 AS cor0
----
-330

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL SUM ( - + col1 ) * MIN ( + col1 ) FROM tab1 AS cor0
----
-330

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( col1 * + + 11, - col2 )
----

query I rowsort
SELECT + + col1 * 44 FROM tab0 AS cor0 WHERE NOT ( + 57 + + ( + col1 ) ) NOT IN ( + col0, + col1 )
----

query I rowsort
SELECT DISTINCT - + ( - + 55 ) AS col0 FROM tab0 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT ALL + COUNT( * ) * + 21 AS col0 FROM tab0 cor0
----
63

skipif mysql # not compatible
query I rowsort label-2363
SELECT ALL + COUNT ( * ) * + 21 AS col0 FROM tab0 cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT ALL + MIN( ALL - - ( + + 96 ) ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2364
SELECT ALL + MIN ( ALL - - ( + + 96 ) ) AS col2 FROM tab1
----
96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 * + col2 * + + ( - 36 ) + - col1 + - col1 * + 63 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2366
SELECT + 69 DIV - col0 AS col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2366
SELECT + 69 / - col0 AS col0 FROM tab2
----
-1
-1
0

query I rowsort
SELECT ALL 48 * + col2 FROM tab2
----
1104
1920
2784

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < - - 24
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2369
SELECT col0, col1 DIV col0 AS col2 FROM tab2
----
46
1
64
1
75
0

skipif mysql # not compatible
query II rowsort label-2369
SELECT col0, col1 / col0 AS col2 FROM tab2
----
46
1
64
1
75
0

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE NOT - + col2 >= NULL
----

query II rowsort
SELECT - col0 AS col1, col1 FROM tab2 cor0
----
-46
51
-64
77
-75
67

onlyif mysql # aggregate syntax: 
query II rowsort label-2372
SELECT - 38 AS col2, - MIN( col0 ) FROM tab2 AS cor0
----
-38
-46

skipif mysql # not compatible
query II rowsort label-2372
SELECT - 38 AS col2, - MIN ( col0 ) FROM tab2 AS cor0
----
-38
-46

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2373
SELECT ALL 60 / + + ( + + CAST( - - CAST( NULL AS DECIMAL ) AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL 60 / + + ( + + CAST ( - - CAST ( NULL AS REAL ) AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2374
SELECT ALL + - 81 - - + col2 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL + - 81 - - + col2 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT DISTINCT + + ( - + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2375
SELECT DISTINCT + + ( - + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + + col1 + + - 96 * + + col2 AS col0 FROM tab0 AS cor0
----
-4431
-939
-9503

query I rowsort
SELECT 95 * - + 16 FROM tab1 AS cor0
----
-1520
-1520
-1520

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2378
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) + col1 + col1 / + 25 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2378
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) + col1 + col1 / + 25 IS NOT NULL
----

query I rowsort
SELECT col1 - - - ( 28 ) AS col0 FROM tab1
----
-14
-23
19

query I rowsort
SELECT col1 * + - 25 * - 17 * + col1 - - - col0 AS col2 FROM tab0
----
187338
2788410
328

query I rowsort
SELECT DISTINCT col2 + + - 19 AS col2 FROM tab0
----
-9
28
80

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * - 51 * - ( + col0 ) > NULL AND NOT NULL <> ( - col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2383
SELECT ALL CAST( NULL AS DECIMAL ) * - - 78 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL CAST ( NULL AS REAL ) * - - 78 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2384
SELECT - col1 DIV 64 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2384
SELECT - col1 / 64 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT COUNT( ALL - + 56 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2385
SELECT COUNT ( ALL - + 56 ) col1 FROM tab0
----
3

query II rowsort
SELECT ALL + col0, + col1 AS col2 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query II rowsort label-2387
SELECT COUNT( * ) AS col0, - MIN( ALL - + 92 ) + + MAX( ( 34 ) ) AS col1 FROM tab0
----
3
126

skipif mysql # not compatible
query II rowsort label-2387
SELECT COUNT ( * ) AS col0, - MIN ( ALL - + 92 ) + + MAX ( ( 34 ) ) AS col1 FROM tab0
----
3
126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, 29 - 43 col1 FROM tab2 AS cor0
----
51
-14
67
-14
77
-14

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2389
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - 81 IN ( col0 * - col1 + - + CAST( + 84 AS DECIMAL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2389
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - 81 IN ( col0 * - col1 + - + CAST ( + 84 AS REAL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT - SUM( - col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2390
SELECT - SUM ( - col2 ) AS col1 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT + + MIN( ALL + col0 ) AS col0 FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-2391
SELECT + + MIN ( ALL + col0 ) AS col0 FROM tab0 cor0
----
15

query II rowsort
SELECT - 74, - col1 AS col1 FROM tab1 AS cor0
----
-74
-14
-74
-47
-74
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT DISTINCT - ( + MAX( - 81 ) ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2393
SELECT DISTINCT - ( + MAX ( - 81 ) ) AS col0 FROM tab0
----
81

query I rowsort
SELECT DISTINCT + col1 + col2 * - ( + - ( + - 34 ) ) FROM tab0
----
-1517
-319
-3365

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN ( + col0 ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT + 98 + - col2 AS col1 FROM tab0
----
-1
51
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2398
SELECT 95 + 79 DIV - SUM( col0 ) FROM tab1 cor0
----
95

skipif mysql # not compatible
query I rowsort label-2398
SELECT 95 + 79 / - SUM ( col0 ) FROM tab1 cor0
----
95

query II rowsort
SELECT + - col1 * - + col1 + col0 + - + ( - 59 ), + ( - col0 ) AS col1 FROM tab2 AS cor0
----
2706
-46
4623
-75
6052
-64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2400
SELECT + col1 * + CAST( NULL AS DECIMAL ) + - col1 col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2400
SELECT + col1 * + CAST ( NULL AS REAL ) + - col1 col2 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - col0 * + - col0 + col0 * - 56 + col1 * + - col2 AND + col1
----

query I rowsort
SELECT ( - col2 ) - 44 FROM tab2
----
-102
-67
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT - COUNT( * ) - COUNT( * ) AS col2 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-2403
SELECT - COUNT ( * ) - COUNT ( * ) AS col2 FROM tab1
----
-6

query I rowsort
SELECT 30 - 32 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT + 84 + + col0 AS col1 FROM tab1 AS cor0
----
135
169
175

query I rowsort
SELECT DISTINCT + 55 - col2 * + col1 FROM tab0 AS cor0
----
-155
-3752
-44

query I rowsort
SELECT + + col2 * - 22 + - - 48 FROM tab0 AS cor0
----
-172
-2130
-986

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - 59 ) IS NULL
----

query II rowsort
SELECT ALL 59, col1 FROM tab1 AS cor0
----
59
14
59
47
59
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2410
SELECT * FROM tab2 AS cor0 WHERE 31 + 67 * - 39 * col2 + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2410
SELECT * FROM tab2 AS cor0 WHERE 31 + 67 * - 39 * col2 + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( col0 ) + + 44 AS col0 FROM tab0 AS cor0
----
-43
-53
29

query I rowsort
SELECT DISTINCT - ( - - col2 ) + col0 AS col0 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT ALL + 20 * 96 FROM tab1
----
1920
1920
1920

query I rowsort
SELECT ALL + 70 * - 89 AS col0 FROM tab0
----
-6230
-6230
-6230

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 <> + 16
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2416
SELECT DISTINCT + MAX( DISTINCT + + 45 ) DIV + + 5 AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT + MAX ( DISTINCT + + 45 ) / + + 5 AS col2 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT MIN( + 29 ) AS col1 FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-2417
SELECT MIN ( + 29 ) AS col1 FROM tab1 AS cor0
----
29

query II rowsort
SELECT - + col1 * - col1 AS col0, - col2 AS col2 FROM tab2 AS cor0
----
2601
-23
4489
-58
5929
-40

query I rowsort
SELECT DISTINCT - 64 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-2420
SELECT ALL col0 DIV - 16 FROM tab0 AS cor0
----
-5
-6
0

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL col0 / - 16 FROM tab0 AS cor0
----
-5
-6
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2421
SELECT DISTINCT - col0 DIV 67 AS col0 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2421
SELECT DISTINCT - col0 / 67 AS col0 FROM tab2 AS cor0
----
-1
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2422
SELECT ALL + - 22 + SUM( + 76 ) + - CAST( NULL AS DECIMAL ) * - 44 + AVG ( - - col0 ) / + - MIN( ALL - ( - col1 ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL + - 22 + SUM ( + 76 ) + - CAST ( NULL AS REAL ) * - 44 + AVG ( - - col0 ) / + - MIN ( ALL - ( - col1 ) ) AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 / - col0 + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2424
SELECT CAST( NULL AS SIGNED ) / - ( + col1 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2424
SELECT CAST ( NULL AS INTEGER ) / - ( + col1 ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + - - 45 FROM tab1
----
104
113
141

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - - col1 AND - 4 / + - col1 + + 90
----

query I rowsort
SELECT ALL + col2 * + col2 + - 39 + + col1 * + - col2 FROM tab0
----
-149
-1637
9663

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT 32 IS NULL
----
-23
-40
-58

query I rowsort
SELECT ALL col2 * + col0 + 41 AS col2 FROM tab0
----
746
911
9644

onlyif mysql # aggregate syntax: 
query II rowsort label-2430
SELECT 97 AS col0, + COUNT( * ) FROM tab1
----
97
3

skipif mysql # not compatible
query II rowsort label-2430
SELECT 97 AS col0, + COUNT ( * ) FROM tab1
----
97
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT + COUNT( * ) * MIN( DISTINCT ( - col1 ) ) AS col1 FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-2431
SELECT + COUNT ( * ) * MIN ( DISTINCT ( - col1 ) ) AS col1 FROM tab1
----
-141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2432
SELECT CAST( + col2 AS SIGNED ) * col2 FROM tab0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-2432
SELECT CAST ( + col2 AS INTEGER ) * col2 FROM tab0
----
100
2209
9801

query I rowsort
SELECT - col0 * + - 68 AS col2 FROM tab1
----
3468
5780
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2434
SELECT - CAST( NULL AS SIGNED ) * - 8 FROM tab1 WHERE - 36 * 42 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2434
SELECT - CAST ( NULL AS INTEGER ) * - 8 FROM tab1 WHERE - 36 * 42 IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col0 * col1 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col1 - + + col0 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2437
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * - col0 * CAST( + col2 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2437
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * - col0 * CAST ( + col2 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT ALL COUNT( * ) - + SUM( col0 ) FROM tab0
----
-196

skipif mysql # not compatible
query I rowsort label-2438
SELECT ALL COUNT ( * ) - + SUM ( col0 ) FROM tab0
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT DISTINCT COUNT( * ) + 14 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
23

skipif mysql # not compatible
query I rowsort label-2439
SELECT DISTINCT COUNT ( * ) + 14 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
23

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 38 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2441
SELECT DISTINCT COUNT( * ) - - CAST( NULL AS DECIMAL ) - - MAX( ALL + col0 ) / - 83 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2441
SELECT DISTINCT COUNT ( * ) - - CAST ( NULL AS REAL ) - - MAX ( ALL + col0 ) / - 83 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT + SUM( - - 63 ) AS col1 FROM tab2 cor0
----
189

skipif mysql # not compatible
query I rowsort label-2442
SELECT + SUM ( - - 63 ) AS col1 FROM tab2 cor0
----
189

query I rowsort
SELECT DISTINCT - 10 * 42 * - col1 + - col2 + - col0 FROM tab1 AS cor0
----
1956
19581
5733

onlyif mysql # aggregate syntax: 
query II rowsort label-2444
SELECT COUNT( * ) * - 15 AS col1, 51 AS col1 FROM tab1 AS cor0
----
-45
51

skipif mysql # not compatible
query II rowsort label-2444
SELECT COUNT ( * ) * - 15 AS col1, 51 AS col1 FROM tab1 AS cor0
----
-45
51

query I rowsort
SELECT ALL + ( + - 60 ) AS col2 FROM tab1
----
-60
-60
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + + 41 col1 FROM tab2
----
1886
2624
3075

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT ALL + COUNT( * ) * + 86 FROM tab0
----
258

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL + COUNT ( * ) * + 86 FROM tab0
----
258

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( - + 14, + 21 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2449
SELECT + CAST( + 23 AS SIGNED ) FROM tab1
----
23
23
23

skipif mysql # not compatible
query I rowsort label-2449
SELECT + CAST ( + 23 AS INTEGER ) FROM tab1
----
23
23
23

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT - col2 - + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 99 col2 FROM tab0 AS cor0
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT - MAX( DISTINCT - 50 ) col2 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2452
SELECT - MAX ( DISTINCT - 50 ) col2 FROM tab1 AS cor0
----
50

query I rowsort
SELECT DISTINCT - 87 * 11 FROM tab2
----
-957

onlyif mysql # DIV for integer division: 
query I rowsort label-2454
SELECT + 70 DIV col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2454
SELECT + 70 / col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND 77
----

query II rowsort
SELECT ( col2 ), - 18 AS col2 FROM tab1 AS cor0
----
59
-18
68
-18
96
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT + COUNT( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2457
SELECT + COUNT ( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + col1 + col2 + - 71 FROM tab0 AS cor0
----
-105
-82
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT ALL - ( - MIN( + 5 ) ) * - + 48 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-240

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL - ( - MIN ( + 5 ) ) * - + 48 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE col2 NOT IN ( + col0, col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-2460
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE col2 NOT IN ( + col0, col1 )
----
-3

query I rowsort
SELECT ALL col1 + 55 AS col0 FROM tab2
----
106
122
132

query I rowsort
SELECT 38 * 69 + + col0 FROM tab0
----
2637
2709
2719

onlyif mysql # aggregate syntax: 
query II rowsort label-2463
SELECT COUNT( * ) AS col2, 55 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0
55

skipif mysql # not compatible
query II rowsort label-2463
SELECT COUNT ( * ) AS col2, 55 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0
55

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 46 + + col0 + + + 2 IS NOT NULL
----

query I rowsort
SELECT col1 + - 23 FROM tab0
----
-2
-22
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2466
SELECT + 4 DIV + col1 + ( + col1 ) FROM tab0
----
21
5
81

skipif mysql # not compatible
query I rowsort label-2466
SELECT + 4 / + col1 + ( + col1 ) FROM tab0
----
21
5
81

query I rowsort
SELECT ( - col2 ) * - col2 + - col0 AS col2 FROM tab1
----
3396
4533
9165

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2468
SELECT - 48 DIV + col1 + + CAST( + - col0 AS SIGNED ) col1 FROM tab0 AS cor0
----
-145
-15
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2468
SELECT - 48 / + col1 + + CAST ( + - col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
-145
-15
-89

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col1 * + col1 / col1 <> NULL
----

query I rowsort
SELECT - - ( + + ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 > - ( - col0 )
----

query I rowsort
SELECT - ( - 53 ) FROM tab1 AS cor0
----
53
53
53

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 90 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query II rowsort
SELECT 64 - - - col2, 53 AS col0 FROM tab2
----
24
53
41
53
6
53

query I rowsort
SELECT DISTINCT col2 * + col1 * + - col1 - + - col1 + - col0 AS col2 FROM tab1
----
-150256
-1555
-18853

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2477
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT - - 31 * col0 * 51 * - col2 AS col0, col1 FROM tab0 AS cor0
----
-1114605
81
-1375470
21
-15182343
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT ALL + COUNT( col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL + COUNT ( col0 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col1 * - col1 * + col2 * col2 FROM tab0 AS cor0
----
14493249
44100
9801

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 NOT IN ( + - col2, col0, + col0, + + col0 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT DISTINCT ( - MAX( ALL - col1 ) ) * + - 34 * - MIN( ALL - col2 ) FROM tab1
----
-16320

skipif mysql # not compatible
query I rowsort label-2482
SELECT DISTINCT ( - MAX ( ALL - col1 ) ) * + - 34 * - MIN ( ALL - col2 ) FROM tab1
----
-16320

query II rowsort
SELECT col0, + 88 FROM tab2 WHERE NOT col0 NOT IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 col0 FROM tab0
----
-37
-37
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2485
SELECT ALL CAST( - col0 AS SIGNED ) AS col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2485
SELECT ALL CAST ( - col0 AS INTEGER ) AS col0 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ALL - 21 FROM tab1 AS cor0 WHERE ( - - col2 ) IN ( col0 - + col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN - - 25 / + - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab2 WHERE NOT ( - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT DISTINCT + MAX( + 94 ) FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-2489
SELECT DISTINCT + MAX ( + 94 ) FROM tab0
----
94

query I rowsort
SELECT - 28 + + 11 FROM tab2
----
-17
-17
-17

query I rowsort
SELECT DISTINCT 4 AS col1 FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( - 62 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2492
SELECT DISTINCT SUM( ALL + 81 ) AS col0, + 24 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
243
24

skipif mysql # not compatible
query II rowsort label-2492
SELECT DISTINCT SUM ( ALL + 81 ) AS col0, + 24 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
243
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2493
SELECT ALL - col2 * col0 + + + col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2493
SELECT ALL - col2 * col0 + + + col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + 58 FROM tab0
----
5046
5626
870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 + - col2 col0 FROM tab2
----
-23
-5
12

query I rowsort
SELECT ALL col1 * - - col2 + col1 + - - 53 FROM tab2
----
1277
3210
4006

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 90 col2 FROM tab1
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2498
SELECT ALL col0 + col2 col1 FROM tab1 WHERE + CAST( NULL AS SIGNED ) BETWEEN col0 AND - ( - + 55 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2498
SELECT ALL col0 + col2 col1 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) BETWEEN col0 AND - ( - + 55 )
----

query I rowsort
SELECT ALL col2 * 41 AS col2 FROM tab2 cor0
----
1640
2378
943

query II rowsort
SELECT 43 + - col2 AS col2, 1 + - col1 FROM tab1 AS cor0
----
-16
-4
-25
-46
-53
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2501
SELECT 24 + + col1 + - - col0 + - col1 + + + ( + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2501
SELECT 24 + + col1 + - - col0 + - col1 + + + ( + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2502
SELECT - col1 + + col2 / CAST( + col2 AS SIGNED ) + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2502
SELECT - col1 + + col2 / CAST ( + col2 AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * col2 * col2 AS col2 FROM tab2 WHERE + col2 IS NOT NULL
----
-12167
-195112
-64000

query I rowsort
SELECT 13 * + col1 * - - 29 * - col1 AS col1 FROM tab2 AS cor0 WHERE NOT 99 + - col1 > + col0
----
-1692353
-2235233

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT DISTINCT MAX( + col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2505
SELECT DISTINCT MAX ( + col0 ) AS col0 FROM tab1 AS cor0
----
91

query I rowsort
SELECT + + col0 * - - col2 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT col2 + col1 + + col2 - - + col1 + + col2 NOT BETWEEN - - 1 AND - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2509
SELECT + COUNT( * ) AS col1, - MAX( DISTINCT + 47 ) DIV + COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
-15

skipif mysql # not compatible
query II rowsort label-2509
SELECT + COUNT ( * ) AS col1, - MAX ( DISTINCT + 47 ) / + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
-15

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT col2 IS NULL )
----

query I rowsort
SELECT DISTINCT ( + - col1 ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT - COUNT( * ) * - MAX( ( - col1 ) ) FROM tab2 cor0
----
-153

skipif mysql # not compatible
query I rowsort label-2512
SELECT - COUNT ( * ) * - MAX ( ( - col1 ) ) FROM tab2 cor0
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2513
SELECT - CAST( NULL AS SIGNED ) * - + col0 * + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2513
SELECT - CAST ( NULL AS INTEGER ) * - + col0 * + col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2514
SELECT MIN( DISTINCT + + CAST( + + col2 AS SIGNED ) ) col0 FROM tab0 cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2514
SELECT MIN ( DISTINCT + + CAST ( + + col2 AS INTEGER ) ) col0 FROM tab0 cor0
----
10

query I rowsort
SELECT + - 16 * + col0 FROM tab1 AS cor0
----
-1360
-1456
-816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 11 col2, col2 AS col0 FROM tab2
----
11
23
11
40
11
58

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * + col0 + + 87 > + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < - + 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT ALL MIN( ALL + + col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL MIN ( ALL + + col1 ) FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2520
SELECT DISTINCT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-2520
SELECT DISTINCT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2521
SELECT DISTINCT - + ( + 90 ), ( - + col0 ) DIV - - CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-90
-1
-90
0

skipif mysql # not compatible
query II rowsort label-2521
SELECT DISTINCT - + ( + 90 ), ( - + col0 ) / - - CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-90
-1
-90
0

query II rowsort
SELECT ALL col1, - col1 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

query I rowsort
SELECT - col2 + 68 + - + col2 FROM tab0 AS cor0
----
-130
-26
48

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 84 <= + col0 * 54 + - + 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT - - COUNT( * ) * + + 27 + - COUNT( * ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-2525
SELECT - - COUNT ( * ) * + + 27 + - COUNT ( * ) FROM tab1 AS cor0
----
78

query I rowsort
SELECT ALL - + col2 + 11 * + - col2 FROM tab0 AS cor0
----
-1188
-120
-564

query I rowsort
SELECT ALL + 11 * + 55 FROM tab2 AS cor0
----
605
605
605

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT + MIN( DISTINCT + + 14 ) FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-2528
SELECT + MIN ( DISTINCT + + 14 ) FROM tab2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2529
SELECT DISTINCT col0 * CAST( - ( col0 ) AS SIGNED ) FROM tab1
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT col0 * CAST ( - ( col0 ) AS INTEGER ) FROM tab1
----
-2601
-7225
-8281

onlyif mysql # DIV for integer division: 
query I rowsort label-2530
SELECT - ( + col1 ) DIV - + col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2530
SELECT - ( + col1 ) / - + col1 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2531
SELECT COUNT( DISTINCT + - 50 ) DIV - 23 + 79 AS col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
79

skipif mysql # not compatible
query I rowsort label-2531
SELECT COUNT ( DISTINCT + - 50 ) / - 23 + 79 AS col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
79

query II rowsort
SELECT DISTINCT col0 * - col1 * - + 94, col2 FROM tab1 AS cor0
----
39950
59
402038
68
67116
96

query I rowsort
SELECT DISTINCT + col2 + + 25 + + + col0 * 91 * + col0 - - + 81 FROM tab0 AS cor0
----
20628
688895
856424

query I rowsort
SELECT + col2 + col2 AS col2 FROM tab2 cor0 WHERE col1 IN ( 98, + 8 )
----

query I rowsort
SELECT + col1 * + col2 * - col0 + + - ( - ( - 31 ) ) AS col0 FROM tab0 AS cor0
----
-18301
-57136
-9634

onlyif mysql # DIV for integer division: 
query II rowsort label-2536
SELECT DISTINCT col2 DIV + col0 AS col2, - col0 * + col2 AS col0 FROM tab0 AS cor0
----
0
-870
1
-9603
3
-705

skipif mysql # not compatible
query II rowsort label-2536
SELECT DISTINCT col2 / + col0 AS col2, - col0 * + col2 AS col0 FROM tab0 AS cor0
----
0
-870
1
-9603
3
-705

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2537
SELECT DISTINCT - col2 + + CAST( NULL AS SIGNED ) + + col1 AS col0, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-2537
SELECT DISTINCT - col2 + + CAST ( NULL AS INTEGER ) + + col1 AS col0, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT ALL - + col0 AS col0 FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

query I rowsort
SELECT col0 + + 20 FROM tab0
----
107
117
35

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 76 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 - + col0 col0 FROM tab0
----
0
10
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT ALL COUNT( * ) * - 97 AS col2 FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL COUNT ( * ) * - 97 AS col2 FROM tab1
----
-291

query I rowsort
SELECT col2 * + 45 FROM tab2
----
1035
1800
2610

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2544
SELECT ALL COUNT( * ) * 23 - + CAST( NULL AS DECIMAL ) AS col1, 25 DIV COUNT( * ) FROM tab2
----
NULL
8

skipif mysql # not compatible
query II rowsort label-2544
SELECT ALL COUNT ( * ) * 23 - + CAST ( NULL AS REAL ) AS col1, 25 / COUNT ( * ) FROM tab2
----
NULL
8

query I rowsort
SELECT ALL - col0 * + 63 * + col2 FROM tab1
----
-308448
-315945
-389844

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT MAX( DISTINCT col2 ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2546
SELECT MAX ( DISTINCT col2 ) AS col1 FROM tab2
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2547
SELECT DISTINCT + ( - col2 ) DIV 94 + - col2 AS col2 FROM tab0 AS cor0
----
-10
-100
-47

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT + ( - col2 ) / 94 + - col2 AS col2 FROM tab0 AS cor0
----
-10
-100
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-2548
SELECT DISTINCT - + col1 DIV 98 * 41 DIV 70 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2548
SELECT DISTINCT - + col1 / 98 * 41 / 70 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2549
SELECT ALL col1 / - + ( + ( - CAST( NULL AS SIGNED ) ) ) * col0 + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL col1 / - + ( + ( - CAST ( NULL AS INTEGER ) ) ) * col0 + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2550
SELECT + col2 DIV + 60 AS col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2550
SELECT + col2 / + 60 AS col2 FROM tab1
----
0
1
1

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2552
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col1 + col2 * + ( - col0 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2552
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col1 + col2 * + ( - col0 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2553
SELECT ALL + - CAST( NULL AS SIGNED ) / + + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2553
SELECT ALL + - CAST ( NULL AS INTEGER ) / + + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2554
SELECT DISTINCT 91 DIV - 21 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-2554
SELECT DISTINCT 91 / - 21 FROM tab1 AS cor0
----
-4

query I rowsort
SELECT - 4 * + 10 AS col2 FROM tab2
----
-40
-40
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2556
SELECT 99 DIV + COUNT( * ) AS col0 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-2556
SELECT 99 / + COUNT ( * ) AS col0 FROM tab1
----
33

query II rowsort
SELECT DISTINCT col0 AS col2, - 13 AS col0 FROM tab0
----
15
-13
87
-13
97
-13

query II rowsort
SELECT - col2 AS col1, + ( + + 88 ) - - - col2 AS col0 FROM tab2
----
-23
65
-40
48
-58
30

query I rowsort
SELECT col1 * - + 89 AS col2 FROM tab0
----
-1869
-7209
-89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2560
SELECT DISTINCT - col1 / + 66 + + col1 + col1 + - CAST( NULL AS DECIMAL ) * - 12 AS col1 FROM tab0 WHERE - ( + col1 ) <= + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-2560
SELECT DISTINCT - col1 / + 66 + + col1 + col1 + - CAST ( NULL AS REAL ) * - 12 AS col1 FROM tab0 WHERE - ( + col1 ) <= + 95
----
NULL

query II rowsort
SELECT ALL + ( col2 ) * col2 * - 63 + - + 14 AS col2, col1 + - - ( col0 ) FROM tab0 cor0
----
-139181
96
-617477
98
-6314
108

query I rowsort
SELECT + ( - 8 ) FROM tab1 AS cor0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT ALL - 19 + COUNT( * ) FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL - 19 + COUNT ( * ) FROM tab2 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT - - COUNT( 52 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2564
SELECT - - COUNT ( 52 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 23 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-23

query I rowsort
SELECT DISTINCT - 84 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-84

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NOT col0 - col2 = + col0
----
51
85
91

query II rowsort
SELECT + + 38 + 78 AS col2, col1 FROM tab2 cor0
----
116
51
116
67
116
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2569
SELECT + ( 2 ) * + - 16 + + COUNT( ALL + CAST( NULL AS DECIMAL ) ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2569
SELECT + ( 2 ) * + - 16 + + COUNT ( ALL + CAST ( NULL AS REAL ) ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + - 69 * + 95 * col2 + - 3 + - col2 FROM tab0 AS cor0
----
-308135
-649047
-65563

query I rowsort
SELECT DISTINCT col1 + + + col2 + col2 - 38 AS col2 FROM tab2 AS cor0
----
119
145
59

query I rowsort
SELECT ALL - + 10 * - col2 + 86 FROM tab1 AS cor0
----
1046
676
766

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT - ( + COUNT( * ) ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2573
SELECT - ( + COUNT ( * ) ) col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2574
SELECT + COUNT( * ) AS col1, MIN( ALL - 73 ) AS col1 FROM tab1 AS cor0
----
3
-73

skipif mysql # not compatible
query II rowsort label-2574
SELECT + COUNT ( * ) AS col1, MIN ( ALL - 73 ) AS col1 FROM tab1 AS cor0
----
3
-73

query II rowsort
SELECT 73 AS col1, - col1 FROM tab2 AS cor0
----
73
-51
73
-67
73
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2576
SELECT DISTINCT 35 / CAST( NULL AS SIGNED ) + + - col1 AS col0, + 91 FROM tab0
----
NULL
91

skipif mysql # not compatible
query II rowsort label-2576
SELECT DISTINCT 35 / CAST ( NULL AS INTEGER ) + + - col1 AS col0, + 91 FROM tab0
----
NULL
91

query I rowsort
SELECT DISTINCT + col1 + + 76 + + ( - + col0 ) FROM tab1
----
-4
32
39

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col0 * 48 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-2579
SELECT ALL COUNT( * ) - - 64, + 95 * - 66 AS col2 FROM tab0
----
67
-6270

skipif mysql # not compatible
query II rowsort label-2579
SELECT ALL COUNT ( * ) - - 64, + 95 * - 66 AS col2 FROM tab0
----
67
-6270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2580
SELECT MAX( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2580
SELECT MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 * - col1 / + + 3 * - 47 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE ( + 55 ) BETWEEN NULL AND - col2
----

query II rowsort
SELECT + + col1 AS col1, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + 86 ) col1 FROM tab1 AS cor0
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT - + ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2585
SELECT - + ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL - 46 AS col1, + 26 + col0 * - 82 AS col1 FROM tab2 AS cor0
----
-46
-3746
-46
-5222
-46
-6124

query I rowsort
SELECT col1 * col1 * - - col1 FROM tab1 AS cor0
----
103823
125
2744

onlyif mysql # aggregate syntax: 
query II rowsort label-2588
SELECT ALL + 84, + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
84
3

skipif mysql # not compatible
query II rowsort label-2588
SELECT ALL + 84, + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
84
3

query I rowsort
SELECT DISTINCT - col1 * - - 7 FROM tab1
----
-329
-35
-98

query I rowsort
SELECT + 72 * - col2 * - col1 * col2 + 85 * - col2 AS col1 FROM tab0
----
12878893
150350
697257

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT DISTINCT ( - MAX( ALL - col0 ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2591
SELECT DISTINCT ( - MAX ( ALL - col0 ) ) FROM tab1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2592
SELECT + + col0 * - + CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2592
SELECT + + col0 * - + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2593
SELECT DISTINCT CAST( + ( - col2 ) AS SIGNED ) DIV col0 AS col0 FROM tab1 AS cor0 WHERE - col1 > ( - 51 )
----
-1
0

skipif mysql # not compatible
query I rowsort label-2593
SELECT DISTINCT CAST ( + ( - col2 ) AS INTEGER ) / col0 AS col0 FROM tab1 AS cor0 WHERE - col1 > ( - 51 )
----
-1
0

query I rowsort
SELECT - 24 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT DISTINCT + + 94 + 8 AS col0 FROM tab1 AS cor0
----
102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col0, ( + col2 ) FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2597
SELECT + col0 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2597
SELECT + col0 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( NOT + col2 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT ALL COUNT( * ) + - 40 col2 FROM tab0
----
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2599
SELECT ALL COUNT ( * ) + - 40 col2 FROM tab0
----
-37

query II rowsort
SELECT 45, + ( - col0 ) AS col1 FROM tab2
----
45
-46
45
-64
45
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 57 col2, + 44 FROM tab2
----
57
44
57
44
57
44

query I rowsort
SELECT DISTINCT - col0 * - 75 FROM tab1
----
3825
6375
6825

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT + MAX( + col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2603
SELECT + MAX ( + col0 ) FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT DISTINCT - COUNT( ALL + - 37 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2604
SELECT DISTINCT - COUNT ( ALL + - 37 ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT ALL col0 * 4 FROM tab2
----
184
256
300

query I rowsort
SELECT DISTINCT + 90 * - + col0 AS col0 FROM tab2
----
-4140
-5760
-6750

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2607
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + CAST( - col0 AS SIGNED ) + + 24 AND - + 27
----

skipif mysql # not compatible
query III rowsort label-2607
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + CAST ( - col0 AS INTEGER ) + + 24 AND - + 27
----

query I rowsort
SELECT col2 * - col1 * + - 8 FROM tab0
----
1680
30456
792

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 46 = + col0 - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - ( - 19 ) FROM tab2 AS cor0 WHERE NOT NULL = - col2
----

query I rowsort
SELECT ALL ( - 76 ) FROM tab2 AS cor0
----
-76
-76
-76

query II rowsort
SELECT ALL + ( 60 ), + 0 * col1 AS col1 FROM tab1 AS cor0
----
60
0
60
0
60
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT - 18 * + MAX( + col1 ) FROM tab2 cor0
----
-1386

skipif mysql # not compatible
query I rowsort label-2613
SELECT - 18 * + MAX ( + col1 ) FROM tab2 cor0
----
-1386

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2614
SELECT ALL - 11 DIV - - MIN( 11 ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2614
SELECT ALL - 11 / - - MIN ( 11 ) AS col0 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT ALL - COUNT( - col2 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL - COUNT ( - col2 ) AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT ALL + SUM( + 66 ) AS col1 FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL + SUM ( + 66 ) AS col1 FROM tab0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT ALL 64 * - COUNT( * ) FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL 64 * - COUNT ( * ) FROM tab1 AS cor0
----
-192

query I rowsort
SELECT - 88 + ( - 7 ) FROM tab0 cor0
----
-95
-95
-95

query I rowsort
SELECT ALL col0 + - col1 + ( + col2 ) * + + col1 AS col0 FROM tab2 cor0
----
1168
3067
3894

onlyif mysql # DIV for integer division: 
query I rowsort label-2620
SELECT DISTINCT + col1 DIV col0 + - + col1 AS col0 FROM tab2 AS cor0
----
-50
-67
-76

skipif mysql # not compatible
query I rowsort label-2620
SELECT DISTINCT + col1 / col0 + - + col1 AS col0 FROM tab2 AS cor0
----
-50
-67
-76

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT ALL + 5 * + col1 - col2 + col2 * 30 FROM tab0
----
1768
2876
395

query I rowsort
SELECT + col1 + + 22 * col1 * - + 94 AS col0 FROM tab2
----
-105417
-138489
-159159

query I rowsort
SELECT ALL col0 + 91 * 45 FROM tab2
----
4141
4159
4170

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT SUM( - col2 ) + COUNT( * ) FROM tab1
----
-220

skipif mysql # not compatible
query I rowsort label-2625
SELECT SUM ( - col2 ) + COUNT ( * ) FROM tab1
----
-220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2626
SELECT ALL - CAST( NULL AS SIGNED ) - + + ( - + col2 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL - CAST ( NULL AS INTEGER ) - + + ( - + col2 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT MAX( + - col2 ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2627
SELECT MAX ( + - col2 ) FROM tab1 cor0
----
-59

query II rowsort
SELECT 89 - + - col2 + + - 37 + - 77 * + - 37 + + + 96 * + 10 AS col1, - col1 AS col1 FROM tab2 cor0
----
3884
-51
3901
-77
3919
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT - COUNT( - 80 ) - + 17 FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-2629
SELECT - COUNT ( - 80 ) - + 17 FROM tab1 AS cor0
----
-20

query I rowsort
SELECT + - col0 - 39 AS col0 FROM tab1 AS cor0
----
-124
-130
-90

query I rowsort
SELECT + col1 FROM tab0 WHERE + - col2 IS NULL
----

query I rowsort
SELECT - col0 * + 29 FROM tab2
----
-1334
-1856
-2175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 58 * - col2 col2 FROM tab1 WHERE NOT 93 / + + 14 BETWEEN - 80 + + col2 AND NULL
----
5568

query I rowsort
SELECT ALL col0 * - 57 FROM tab1
----
-2907
-4845
-5187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2635
SELECT - CAST( ( - 65 ) AS SIGNED ) + + col1 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
116
132
142

skipif mysql # not compatible
query I rowsort label-2635
SELECT - CAST ( ( - 65 ) AS INTEGER ) + + col1 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
116
132
142

query I rowsort
SELECT ALL ( - ( - ( - col2 ) ) ) AS col0 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT ALL - SUM( ALL + col2 ) AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL - SUM ( ALL + col2 ) AS col1 FROM tab2
----
-121

query I rowsort
SELECT col0 FROM tab2 WHERE NOT + col2 * + 66 > 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT - SUM( - col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2639
SELECT - SUM ( - col2 ) AS col2 FROM tab0 AS cor0
----
156

query I rowsort
SELECT ALL + - 94 * - col2 * - 89 AS col0 FROM tab1 AS cor0
----
-493594
-568888
-803136

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT MAX( + 25 ) AS col0 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-2641
SELECT MAX ( + 25 ) AS col0 FROM tab1 AS cor0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2642
SELECT CAST( - - col0 AS SIGNED ) * + ( col1 ) AS col2 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-2642
SELECT CAST ( - - col0 AS INTEGER ) * + ( col1 ) AS col2 FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2643
SELECT - - CAST( NULL AS DECIMAL ) * - col0 * - col2 * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2643
SELECT - - CAST ( NULL AS REAL ) * - col0 * - col2 * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2644
SELECT + COUNT( * ) AS col1, 78 AS col0 FROM tab1 AS cor0
----
3
78

skipif mysql # not compatible
query II rowsort label-2644
SELECT + COUNT ( * ) AS col1, 78 AS col0 FROM tab1 AS cor0
----
3
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2645
SELECT ALL - col0 + - ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL - col0 + - ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * 63 AS col0 FROM tab0 AS cor0
----
2961
6237
630

query I rowsort
SELECT ALL - + col1 + + col1 * col2 * + + col1 FROM tab2 AS cor0
----
237083
260295
59772

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 + - col2 col2 FROM tab1 cor0
----
-45
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2649
SELECT CAST( - - col2 AS SIGNED ) col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2649
SELECT CAST ( - - col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 * col0 + + - 28 * + - col1 col2 FROM tab1
----
-35985
-36022
-387891

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2651
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( CAST( + + col0 AS SIGNED ), - col2 )
----

skipif mysql # not compatible
query III rowsort label-2651
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( CAST ( + + col0 AS INTEGER ), - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT ALL MAX( - 45 ) FROM tab1, tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL MAX ( - 45 ) FROM tab1, tab1 AS cor0
----
-45

query II rowsort
SELECT + 61 + - 24, + col1 FROM tab1 AS cor0
----
37
14
37
47
37
5

query II rowsort
SELECT - col1 * - col0 AS col2, col1 * + - col0 FROM tab2 AS cor0
----
2346
-2346
4928
-4928
5025
-5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2655
SELECT ALL - CAST( ( + 20 ) AS SIGNED ) + COUNT( - 99 ) FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-2655
SELECT ALL - CAST ( ( + 20 ) AS INTEGER ) + COUNT ( - 99 ) FROM tab2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT ALL - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT ALL COUNT( 92 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL COUNT ( 92 ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 99 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT MAX( - 2 ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-2659
SELECT MAX ( - 2 ) FROM tab0
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 32 col2 FROM tab2 AS cor0
----
32
32
32

query I rowsort
SELECT + 11 * 63 * + 51 FROM tab0
----
35343
35343
35343

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT + COUNT( * ) + - ( + COUNT( * ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2662
SELECT + COUNT ( * ) + - ( + COUNT ( * ) ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( - - 93 ) * + + 84 * - col0 IN ( col1 + 11, 37, + + col0 )
----

query I rowsort
SELECT ALL + + 64 + + col2 FROM tab1 AS cor0
----
123
132
160

query I rowsort
SELECT ALL + 39 * + - 22 AS col2 FROM tab1 AS cor0
----
-858
-858
-858

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT ALL 73 * + MAX( - col2 ) AS col1 FROM tab1 AS cor0
----
-4307

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL 73 * + MAX ( - col2 ) AS col1 FROM tab1 AS cor0
----
-4307

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2667
SELECT DISTINCT - CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE col1 + - + col1 + + ( col0 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2667
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE col1 + - + col1 + + ( col0 ) IS NULL
----

query II rowsort
SELECT ALL - col1 + - - col0 * + 83 * + + col0 - - + col2 AS col1, col0 FROM tab2 cor0
----
175600
46
339931
64
466866
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 35 + + 28 + + - col0 * - ( 5 ) col2 FROM tab1
----
248
418
448

query I rowsort
SELECT ALL col0 + 48 FROM tab2
----
112
123
94

query II rowsort
SELECT + col2, + col1 AS col1 FROM tab1
----
59
5
68
47
96
14

query II rowsort
SELECT ALL - - col0 * - col2 AS col1, - col2 * col2 + 78 + col1 AS col0 FROM tab0 WHERE NOT - - col1 + col2 IS NULL
----
-705
-2050
-870
-1
-9603
-9722

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2673
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2673
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT DISTINCT - 89 - + COUNT( * ) + - 67 AS col1 FROM tab0
----
-159

skipif mysql # not compatible
query I rowsort label-2674
SELECT DISTINCT - 89 - + COUNT ( * ) + - 67 AS col1 FROM tab0
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE - 0 * - - col1 * - 33 * col2 * + - 98 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2675
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE - 0 * - - col1 * - 33 * col2 * + - 98 IS NOT NULL
----
-3

query I rowsort
SELECT ALL col2 - + + 14 AS col0 FROM tab1
----
45
54
82

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( 51 ) * - col0 * 31 + 73 + + - col1 + + + col2 * - col2 / + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 - - col2 * + col1 * col0 FROM tab0
----
18291
57186
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2679
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT + 64 * - - MIN( col2 ) FROM tab2 AS cor0
----
1472

skipif mysql # not compatible
query I rowsort label-2680
SELECT + 64 * - - MIN ( col2 ) FROM tab2 AS cor0
----
1472

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2681
SELECT DISTINCT + 96 / + col1 + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2681
SELECT DISTINCT + 96 / + col1 + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2682
SELECT ( + - col0 ) * + + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-2682
SELECT ( + - col0 ) * + + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT - + ( - - 90 ) AS col2 FROM tab1 AS cor0
----
-90
-90
-90

query I rowsort
SELECT col0 * - - 32 FROM tab0 AS cor0
----
2784
3104
480

query I rowsort
SELECT DISTINCT col1 + + col0 FROM tab1 AS cor0 WHERE NOT + col2 - - col0 <= 63 + - + col2
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT + COUNT( * ) * + 92 AS col0 FROM tab1 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-2686
SELECT + COUNT ( * ) * + 92 AS col0 FROM tab1 AS cor0
----
276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2687
SELECT - 55 DIV COUNT( * ) AS col0 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-2687
SELECT - 55 / COUNT ( * ) AS col0 FROM tab0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT DISTINCT 9 * - COUNT( * ) AS col0 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-2688
SELECT DISTINCT 9 * - COUNT ( * ) AS col0 FROM tab0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab2 WHERE + col2 * - - 59 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab2 WHERE + col2 * - - 59 IS NOT NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2690
SELECT - CAST( NULL AS DECIMAL ) + + - 26 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2690
SELECT - CAST ( NULL AS REAL ) + + - 26 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2691
SELECT ALL 9 DIV + + col2 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2691
SELECT ALL 9 / + + col2 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( + - 21 ) - 59 * + ( + - col0 ) AS col1 FROM tab1 AS cor0 WHERE 78 <= NULL
----

query I rowsort
SELECT - ( col0 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT 24 * - COUNT( ALL - 26 / 44 ) FROM tab1 WHERE NOT col2 * - ( + col0 ) + 33 IS NULL
----
-72

skipif mysql # not compatible
query I rowsort label-2694
SELECT 24 * - COUNT ( ALL - 26 / 44 ) FROM tab1 WHERE NOT col2 * - ( + col0 ) + 33 IS NULL
----
-72

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 NOT IN ( col2 )
----

query I rowsort
SELECT col2 + 71 AS col2 FROM tab2 WHERE col2 * - col1 + - ( + col2 + col2 * 30 ) IS NOT NULL
----
111
129
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT COUNT( ALL col0 ) + + COUNT( * ) FROM tab0 WHERE NOT ( 76 ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2697
SELECT COUNT ( ALL col0 ) + + COUNT ( * ) FROM tab0 WHERE NOT ( 76 ) <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT + SUM( col0 ) col1 FROM tab1
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2698
SELECT + SUM ( col0 ) col1 FROM tab1
----
227

query I rowsort
SELECT - 61 FROM tab1 WHERE ( col0 ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2700
SELECT + COUNT( * ) + CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2700
SELECT + COUNT ( * ) + CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT ALL - COUNT( * ) * - 28 AS col1 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL - COUNT ( * ) * - 28 AS col1 FROM tab2
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2702
SELECT - CAST( COUNT( * ) AS SIGNED ) * 66 FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-2702
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * 66 FROM tab1
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT + 99 * COUNT( * ) FROM tab2
----
297

skipif mysql # not compatible
query I rowsort label-2703
SELECT + 99 * COUNT ( * ) FROM tab2
----
297

query I rowsort
SELECT DISTINCT - ( + 88 ) FROM tab2 WHERE NULL < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2705
SELECT DISTINCT 16 FROM tab1 WHERE col2 * 39 > ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT 16 FROM tab1 WHERE col2 * 39 > ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + col2 * + 23 AS col1 FROM tab1
----
1357
1564
2208

query I rowsort
SELECT - 88 * + 87 AS col2 FROM tab1
----
-7656
-7656
-7656

onlyif mysql # DIV for integer division: 
query I rowsort label-2708
SELECT DISTINCT col2 DIV - col1 FROM tab1 WHERE NULL IS NULL
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT col2 / - col1 FROM tab1 WHERE NULL IS NULL
----
-1
-11
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2709
SELECT DISTINCT 53 + + 8 * + AVG ( + 60 ) FROM tab0 WHERE ( CAST( NULL AS SIGNED ) + col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2709
SELECT DISTINCT 53 + + 8 * + AVG ( + 60 ) FROM tab0 WHERE ( CAST ( NULL AS INTEGER ) + col1 ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 + 44 FROM tab1
----
103
112
140

onlyif mysql # DIV for integer division: 
query I rowsort label-2711
SELECT 79 + col2 DIV - col1 AS col2 FROM tab2 WHERE col2 NOT BETWEEN ( NULL ) AND + 73 * - col0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-2711
SELECT 79 + col2 / - col1 AS col2 FROM tab2 WHERE col2 NOT BETWEEN ( NULL ) AND + 73 * - col0
----
79
79
79

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - ( 77 ) * + 55 + + col2 / - 40 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT COUNT( * ) * MIN( + col0 ) AS col0 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-2713
SELECT COUNT ( * ) * MIN ( + col0 ) AS col0 FROM tab0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2714
SELECT - 59 * CAST( + 36 AS SIGNED ) + col1 AS col1 FROM tab1
----
-2077
-2110
-2119

skipif mysql # not compatible
query I rowsort label-2714
SELECT - 59 * CAST ( + 36 AS INTEGER ) + col1 AS col1 FROM tab1
----
-2077
-2110
-2119

query I rowsort
SELECT - 68 * + col2 + - 92 FROM tab2
----
-1656
-2812
-4036

query III rowsort
SELECT * FROM tab2 WHERE col0 BETWEEN NULL AND 66
----

query I rowsort
SELECT col0 + 29 AS col0 FROM tab0
----
116
126
44

query I rowsort
SELECT 43 + + col2 * col2 FROM tab1
----
3524
4667
9259

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT 12 * + COUNT( * ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-2719
SELECT 12 * + COUNT ( * ) FROM tab2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT 49 * - COUNT( * ) AS col2 FROM tab0
----
-147

skipif mysql # not compatible
query I rowsort label-2720
SELECT 49 * - COUNT ( * ) AS col2 FROM tab0
----
-147

query I rowsort
SELECT ALL + 24 + col2 FROM tab0
----
123
34
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT 49 * + COUNT( * ) AS col0 FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-2722
SELECT 49 * + COUNT ( * ) AS col0 FROM tab2
----
147

query I rowsort
SELECT col0 + ( col2 - - 14 ) AS col2 FROM tab0
----
111
210
76

query I rowsort
SELECT + 37 FROM tab1 WHERE NOT - col2 * + 35 IS NOT NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE col2 NOT IN ( + ( + col1 ) * col1 )
----
59
68
96

query I rowsort
SELECT DISTINCT AVG ( - col2 ) FROM tab0 WHERE NOT ( 6 ) <> NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 NOT BETWEEN ( 54 ) AND ( col2 + - 37 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 ) / + 29 + + 93 IS NULL
----

query I rowsort
SELECT DISTINCT col0 - col2 AS col0 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT + COUNT( - col0 ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2730
SELECT + COUNT ( - col0 ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( + col2 * col1 )
----

query I rowsort
SELECT - 53 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT - COUNT( * ) * 39 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
-351

skipif mysql # not compatible
query I rowsort label-2733
SELECT - COUNT ( * ) * 39 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
-351

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-2734
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
9

query I rowsort
SELECT 89 FROM tab2 WHERE NOT 87 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2736
SELECT - - CAST( ( col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2736
SELECT - - CAST ( ( col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 74 col1 FROM tab1 AS cor0
----
4366
5032
7104

query I rowsort
SELECT - col0 * + 4 AS col1 FROM tab2 AS cor0 WHERE NOT - 13 IS NULL
----
-184
-256
-300

query I rowsort
SELECT ALL + + 61 AS col1 FROM tab2 AS cor0
----
61
61
61

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 * - col1 + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2741
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col2 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 43 * + col1 + - 63 * + col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2741
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col2 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 43 * + col1 + - 63 * + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 * - - col2 col1 FROM tab2
----
1886
3280
4756

query I rowsort
SELECT ALL - 22 * ( - col1 ) FROM tab0
----
1782
22
462

query I rowsort
SELECT ALL ( col1 ) AS col1 FROM tab1 WHERE NOT ( col1 ) = NULL
----

query I rowsort
SELECT ALL - 72 * - col2 FROM tab2
----
1656
2880
4176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2746
SELECT DISTINCT CAST( + 41 AS SIGNED ) + + 3 / CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL NOT IN ( + col1 * ( 73 * col0 ) )
----

skipif mysql # not compatible
query I rowsort label-2746
SELECT DISTINCT CAST ( + 41 AS INTEGER ) + + 3 / CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL NOT IN ( + col1 * ( 73 * col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT + MIN( + col2 ) * + COUNT( col2 + + col0 ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-2747
SELECT + MIN ( + col2 ) * + COUNT ( col2 + + col0 ) FROM tab0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2748
SELECT - ( 89 ) DIV col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2748
SELECT - ( 89 ) / col2 FROM tab1
----
-1
-1
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 34 ) NOT IN ( col2 )
----

query I rowsort
SELECT ( + - 8 ) FROM tab2
----
-8
-8
-8

query I rowsort
SELECT 92 * - ( - 14 ) FROM tab2
----
1288
1288
1288

query I rowsort
SELECT + col2 + col1 AS col1 FROM tab0 WHERE NOT 38 IS NOT NULL
----

query I rowsort
SELECT - ( 11 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-11
-11
-11

query III rowsort
SELECT * FROM tab0 WHERE col1 < ( NULL )
----

query I rowsort
SELECT 20 + + 15 FROM tab2
----
35
35
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2756
SELECT ALL + COUNT( * ) DIV + COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL + COUNT ( * ) / + COUNT ( * ) FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2757
SELECT DISTINCT col0 DIV + - 18 FROM tab2
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT col0 / + - 18 FROM tab2
----
-2
-3
-4

query I rowsort
SELECT ( - 30 ) + - - col0 * + 56 AS col1 FROM tab2
----
2546
3554
4170

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT ALL + MAX( 27 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
27

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL + MAX ( 27 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
27

query II rowsort
SELECT ALL - col2 AS col0, + col2 AS col2 FROM tab0
----
-10
10
-47
47
-99
99

query IIIIII rowsort
SELECT * FROM tab2 cor0 JOIN tab1 AS cor1 ON NOT ( 12 ) NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( - 25 ) IS NOT NULL )
----

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NOT 63 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT + col1 * + 34 * col1 NOT BETWEEN - col1 AND + col2 + + ( 44 )
----

query I rowsort
SELECT - col2 + 88 AS col2 FROM tab0 AS cor0
----
-11
41
78

query I rowsort
SELECT ALL + 43 + + 84 AS col1 FROM tab1 AS cor0 WHERE col0 BETWEEN - col2 AND col0
----
127
127
127

query I rowsort
SELECT DISTINCT - 85 + + + col1 AS col2 FROM tab0 AS cor0
----
-4
-64
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2768
SELECT + 34 * CAST( + + AVG ( DISTINCT - col0 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2244

skipif mysql # not compatible
query I rowsort label-2768
SELECT + 34 * CAST ( + + AVG ( DISTINCT - col0 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2244

query I rowsort
SELECT DISTINCT + 16 - + ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2770
SELECT ALL - SUM( + col0 ) FROM tab2 WHERE ( + - CAST( + - col0 AS SIGNED ) + col2 ) <> col0 / 97
----
-185

skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL - SUM ( + col0 ) FROM tab2 WHERE ( + - CAST ( + - col0 AS INTEGER ) + col2 ) <> col0 / 97
----
-185

query I rowsort
SELECT ( - + ( col0 ) ) AS col2 FROM tab1
----
-51
-85
-91

query III rowsort
SELECT * FROM tab2 WHERE ( - 8 ) IS NULL
----

query I rowsort
SELECT ALL col1 + + 41 - - + col1 + col0 + 18 * + col1 FROM tab0
----
158
1676
548

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT DISTINCT - COUNT( * ) + ( - 18 ) + + COUNT( * ) + COUNT( * ) * + COUNT( * ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2774
SELECT DISTINCT - COUNT ( * ) + ( - 18 ) + + COUNT ( * ) + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2775
SELECT - col1 - + 42 + + + CAST( - + 5 AS SIGNED ) * + col1 AS col0 FROM tab2
----
-348
-444
-504

skipif mysql # not compatible
query I rowsort label-2775
SELECT - col1 - + 42 + + + CAST ( - + 5 AS INTEGER ) * + col1 AS col0 FROM tab2
----
-348
-444
-504

query I rowsort
SELECT + - col1 + - 42 FROM tab2 AS cor0
----
-109
-119
-93

query I rowsort
SELECT + col1 AS col2 FROM tab0 cor0 WHERE NOT NULL >= ( - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2778
SELECT DISTINCT + col1 * - col1 / + col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2778
SELECT DISTINCT + col1 * - col1 / + col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT - ( + - COUNT( * ) ) + - - ( + 86 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
95

skipif mysql # not compatible
query I rowsort label-2779
SELECT - ( + - COUNT ( * ) ) + - - ( + 86 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab1 WHERE ( + col0 ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT - - ( + - 55 ) FROM tab0 AS cor0
----
-55
-55
-55

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 - + col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND ( col1 )
----
75
67
58

query I rowsort
SELECT ALL ( - - col1 ) AS col1 FROM tab0 cor0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( ( - - col2 ) ) col1 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT + + 66 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = 46
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > - 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT ALL - SUM( ALL + - 45 ) FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL - SUM ( ALL + - 45 ) FROM tab2 AS cor0
----
135

query I rowsort
SELECT ALL + + col0 * - - col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2791
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 86 * + + col1 BETWEEN ( - CAST( 46 AS SIGNED ) ) AND ( col1 )
----

skipif mysql # not compatible
query III rowsort label-2791
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 86 * + + col1 BETWEEN ( - CAST ( 46 AS INTEGER ) ) AND ( col1 )
----

query I rowsort
SELECT ALL + + 80 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
80
80
80

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT + col2 * + ( + col1 ) IS NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT col1 * + col1 IS NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col0 AND ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2796
SELECT + col2 col1 FROM tab1 AS cor0 WHERE - col0 + col1 + CAST( NULL AS SIGNED ) + + col1 + + 62 + + col0 IS NULL
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2796
SELECT + col2 col1 FROM tab1 AS cor0 WHERE - col0 + col1 + CAST ( NULL AS INTEGER ) + + col1 + + 62 + + col0 IS NULL
----
59
68
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - + 79 * col0 - - - ( + + col1 ) * + col2 )
----

query II rowsort
SELECT col2 AS col0, + 38 * - - 93 * col2 AS col1 FROM tab2 AS cor0
----
23
81282
40
141360
58
204972

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2799
SELECT - 83 * + CAST( NULL AS SIGNED ) - + col2 FROM tab1 WHERE - col2 / col1 IN ( + col2 / + - 64 + - - CAST( + col0 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-2799
SELECT - 83 * + CAST ( NULL AS INTEGER ) - + col2 FROM tab1 WHERE - col2 / col1 IN ( + col2 / + - 64 + - - CAST ( + col0 AS REAL ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 <= ( - col2 )
----

query II rowsort
SELECT - ( - 29 ) + + col1 AS col2, - 82 + col1 * 25 FROM tab1 AS cor0
----
34
43
43
268
76
1093

query I rowsort
SELECT col2 * - 48 - + ( - col2 ) + col1 AS col0 FROM tab0 AS cor0
----
-2128
-449
-4652

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 42 <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( - col0 ) * - col2 + col1 + col1 FROM tab0
----
867
912
9605

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT DISTINCT - COUNT( DISTINCT - col1 ) - MAX( - + col0 ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-2805
SELECT DISTINCT - COUNT ( DISTINCT - col1 ) - MAX ( - + col0 ) FROM tab2
----
43

query I rowsort
SELECT ALL ( 99 ) FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col2 - - - col2 AS col0 FROM tab1
----
-118
-136
-192

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2808
SELECT DISTINCT * FROM tab2 WHERE NOT 48 - CAST( NULL AS DECIMAL ) + + col1 * col1 * + col0 + + 94 NOT IN ( col0 )
----

skipif mysql # not compatible
query III rowsort label-2808
SELECT DISTINCT * FROM tab2 WHERE NOT 48 - CAST ( NULL AS REAL ) + + col1 * col1 * + col0 + + 94 NOT IN ( col0 )
----

query II rowsort
SELECT - 14 AS col0, col2 AS col1 FROM tab2
----
-14
23
-14
40
-14
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2810
SELECT ALL + + CAST( - 78 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL + + CAST ( - 78 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT ALL 54 * - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 * - + col1 * - 66 * + col0 NOT BETWEEN ( col0 * + col1 ) AND col1 + + col2
----
0

skipif mysql # not compatible
query I rowsort label-2811
SELECT ALL 54 * - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 * - + col1 * - 66 * + col0 NOT BETWEEN ( col0 * + col1 ) AND col1 + + col2
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) < ( - col1 * + col1 + - ( + - 77 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT DISTINCT + MIN( DISTINCT col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2813
SELECT DISTINCT + MIN ( DISTINCT col1 ) FROM tab0
----
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> - col0 * 13
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + ( col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT ALL - COUNT( + col1 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL - COUNT ( + col1 ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT - col1 * - + 76 FROM tab1
----
1064
3572
380

query I rowsort
SELECT + 91 * + + 21 FROM tab2
----
1911
1911
1911

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT - COUNT( * ) * COUNT( * ) col0 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2819
SELECT - COUNT ( * ) * COUNT ( * ) col0 FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2820
SELECT + CAST( NULL AS SIGNED ) * + AVG ( DISTINCT + 26 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2820
SELECT + CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT + 26 ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT DISTINCT - COUNT( - 21 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT - COUNT ( - 21 ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + 49 + + - 38 FROM tab2 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT - COUNT( * ) col0 FROM tab0 AS cor0 WHERE col0 > + col2
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2823
SELECT - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE col0 > + col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2824
SELECT ALL CAST( - - 19 AS SIGNED ) col0 FROM tab0 AS cor0 WHERE ( ( - 57 ) * - + 84 ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2824
SELECT ALL CAST ( - - 19 AS INTEGER ) col0 FROM tab0 AS cor0 WHERE ( ( - 57 ) * - + 84 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT - + COUNT( * ) + 98 FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-2825
SELECT - + COUNT ( * ) + 98 FROM tab2 AS cor0
----
95

query I rowsort
SELECT - 63 * + col0 + - 73 FROM tab2
----
-2971
-4105
-4798

query I rowsort
SELECT ALL + + 31 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT ALL - COUNT( * ) * + SUM( - 5 ) col2 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2828
SELECT ALL - COUNT ( * ) * + SUM ( - 5 ) col2 FROM tab1 AS cor0
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2829
SELECT ALL - - 10 DIV + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL - - 10 / + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 > - 80
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2831
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= - CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2831
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= - CAST ( + col0 AS INTEGER )
----

query I rowsort
SELECT ALL + col0 + - + 7 + + col0 AS col2 FROM tab1 AS cor0
----
163
175
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT + + MIN( - - col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2833
SELECT + + MIN ( - - col0 ) FROM tab2 AS cor0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-2834
SELECT DISTINCT - col1 DIV + col2 AS col1 FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-2834
SELECT DISTINCT - col1 / + col2 AS col1 FROM tab2 AS cor0
----
-1
-2

query I rowsort
SELECT ALL - + col0 + - + 25 FROM tab1 AS cor0
----
-110
-116
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT - - MAX( - col2 ) - + SUM( col2 ) col0 FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2836
SELECT - - MAX ( - col2 ) - + SUM ( col2 ) col0 FROM tab2 AS cor0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT COUNT( * ) - + - MAX( ALL - - col1 ) AS col2 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-2837
SELECT COUNT ( * ) - + - MAX ( ALL - - col1 ) AS col2 FROM tab1
----
50

query I rowsort
SELECT DISTINCT 53 FROM tab0 WHERE NULL NOT BETWEEN + + col0 * 57 AND col0 * - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT DISTINCT COUNT( * ) * - 7 * + - 5 col1 FROM tab1
----
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2839
SELECT DISTINCT COUNT ( * ) * - 7 * + - 5 col1 FROM tab1
----
105

query I rowsort
SELECT + ( 46 ) FROM tab0 WHERE NOT + + 30 * + - ( col0 ) BETWEEN - col2 AND - - col2
----
46
46
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2841
SELECT DISTINCT CAST( + - col2 AS SIGNED ) col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2841
SELECT DISTINCT CAST ( + - col2 AS INTEGER ) col0 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - col2 IN ( + col2 * + col1, + col1, - col2 - + col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT + - ( - SUM( ALL - - ( + col2 ) ) ) col1 FROM tab0 cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2843
SELECT + - ( - SUM ( ALL - - ( + col2 ) ) ) col1 FROM tab0 cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) FROM tab1 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) FROM tab1 cor0
----
-6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 7 * 33 * 73 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2846
SELECT - MIN( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2846
SELECT - MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT - + MIN( ALL 30 ) FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2847
SELECT - + MIN ( ALL 30 ) FROM tab0 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT MIN( DISTINCT - col0 ) FROM tab1 WHERE NULL > + - 91 * - col0 / + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-2848
SELECT MIN ( DISTINCT - col0 ) FROM tab1 WHERE NULL > + - 91 * - col0 / + 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT - COUNT( * ) + 43 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-2849
SELECT - COUNT ( * ) + 43 FROM tab0
----
40

query I rowsort
SELECT ALL + col0 * - 33 AS col2 FROM tab2
----
-1518
-2112
-2475

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT DISTINCT 30 * + + COUNT( * ) AS col0 FROM tab2 cor0
----
90

skipif mysql # not compatible
query I rowsort label-2851
SELECT DISTINCT 30 * + + COUNT ( * ) AS col0 FROM tab2 cor0
----
90

query II rowsort
SELECT ALL - 8 + - col2 - + 33 - + col2, + 84 + + col0 AS col0 FROM tab0 AS cor0
----
-135
99
-239
181
-61
171

query I rowsort
SELECT + + col1 * + 22 FROM tab2 AS cor0
----
1122
1474
1694

query I rowsort
SELECT + 38 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT ALL + COUNT( * ) AS col1 FROM tab2 WHERE + col1 * + - ( - ( + col0 ) ) + - col0 * + 22 + + + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 WHERE + col1 * + - ( - ( + col0 ) ) + - col0 * + 22 + + + col0 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 IN ( 19, - col2 + + + col2 + col1, 45 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 17 + + col0 col2 FROM tab1 AS cor0
----
102
108
68

query II rowsort
SELECT DISTINCT - + col0 * ( - col0 ) AS col1, + 72 * + col0 + - + col1 AS col2 FROM tab2 AS cor0
----
2116
3261
4096
4531
5625
5333

query I rowsort
SELECT DISTINCT - - 45 FROM tab2 AS cor0 WHERE NOT - 73 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2860
SELECT ALL - + 39 DIV col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2860
SELECT ALL - + 39 / col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT DISTINCT - COUNT( * ) + - 21 + - + 87 + MIN( - + col0 ) AS col1 FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT - COUNT ( * ) + - 21 + - + 87 + MIN ( - + col0 ) AS col1 FROM tab2 AS cor0
----
-186

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > col1
----

query I rowsort
SELECT ALL ( - + 88 ) * - col1 AS col2 FROM tab1
----
1232
4136
440

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT ALL 14 * - COUNT( * ) FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL 14 * - COUNT ( * ) FROM tab1
----
-42

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT ALL + 1 * - MAX( ALL - - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2866
SELECT ALL + 1 * - MAX ( ALL - - col0 ) FROM tab1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2867
SELECT CAST( + 98 AS SIGNED ) AS col0 FROM tab0
----
98
98
98

skipif mysql # not compatible
query I rowsort label-2867
SELECT CAST ( + 98 AS INTEGER ) AS col0 FROM tab0
----
98
98
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2868
SELECT DISTINCT 41 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2868
SELECT DISTINCT 41 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2869
SELECT 75 DIV col1 FROM tab1
----
1
15
5

skipif mysql # not compatible
query I rowsort label-2869
SELECT 75 / col1 FROM tab1
----
1
15
5

query I rowsort
SELECT ALL + 90 AS col2 FROM tab0 WHERE NULL NOT BETWEEN + col1 * - col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2871
SELECT ALL 59 DIV col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL 59 / col0 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2872
SELECT ALL + COUNT( * ) DIV 28 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL + COUNT ( * ) / 28 FROM tab2
----
0

query II rowsort
SELECT 1, col0 FROM tab1
----
1
51
1
85
1
91

query I rowsort
SELECT ALL - 10 FROM tab1 cor0 WHERE - 16 IS NOT NULL
----
-10
-10
-10

query III rowsort
SELECT 38 AS col1, 29, + + col1 AS col2 FROM tab2 AS cor0
----
9 values hashing to b4da40705ca3176481d17f72a6c79409

query I rowsort
SELECT - 98 * - ( - - col1 ) * + - 2 - - - col2 FROM tab1 cor0
----
-1039
-2840
-9280

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT DISTINCT + 7 * - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-63

skipif mysql # not compatible
query I rowsort label-2877
SELECT DISTINCT + 7 * - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2878
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2878
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2879
SELECT - col1 DIV + - col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2879
SELECT - col1 / + - col0 AS col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 91 col2 FROM tab1 cor0
----
91

query II rowsort
SELECT ALL 21 AS col2, - 85 FROM tab0 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT DISTINCT + - MIN( - 4 ) FROM tab0 AS cor0 WHERE NULL <= col0 * + ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2882
SELECT DISTINCT + - MIN ( - 4 ) FROM tab0 AS cor0 WHERE NULL <= col0 * + ( col1 )
----
NULL

query II rowsort
SELECT ALL col1 + + 91, + 8 - - + col1 * + + col0 * 57 AS col0 FROM tab2 AS cor0
----
142
133730
158
286433
168
280904

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 23 col1 FROM tab2 AS cor0
----
23

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 > - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2886
SELECT + 16 * + 69 AS col1 FROM tab1 WHERE - - col0 NOT BETWEEN NULL AND + CAST( + 10 AS SIGNED ) + - - 41
----
1104
1104

skipif mysql # not compatible
query I rowsort label-2886
SELECT + 16 * + 69 AS col1 FROM tab1 WHERE - - col0 NOT BETWEEN NULL AND + CAST ( + 10 AS INTEGER ) + - - 41
----
1104
1104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2887
SELECT COUNT( DISTINCT + + col0 ) * - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2887
SELECT COUNT ( DISTINCT + + col0 ) * - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + 74 + - 0 FROM tab2
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT DISTINCT COUNT( * ) * 45 FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT COUNT ( * ) * 45 FROM tab1
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2890
SELECT * FROM tab2 WHERE - col1 BETWEEN ( NULL ) AND + CAST( - - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2890
SELECT * FROM tab2 WHERE - col1 BETWEEN ( NULL ) AND + CAST ( - - col1 AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 < NULL
----

query I rowsort
SELECT - - col2 FROM tab2 AS cor0 WHERE 10 / + 15 * col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2893
SELECT - col2 * + - ( + CAST( NULL AS SIGNED ) ) * + col1 + ( - col0 ) - - - 19 + - 77 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2893
SELECT - col2 * + - ( + CAST ( NULL AS INTEGER ) ) * + col1 + ( - col0 ) - - - 19 + - 77 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 78 + - 13 FROM tab2
----
65
65
65

query I rowsort
SELECT ALL col2 + - 87 + - col0 FROM tab1
----
-110
-113
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT + - 41 * + 65 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-2662

skipif mysql # not compatible
query I rowsort label-2896
SELECT + - 41 * + 65 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-2662

query I rowsort
SELECT + col1 * - col2 * - col1 - - - col2 FROM tab1 AS cor0
----
1416
150144
18720

query I rowsort
SELECT DISTINCT + 86 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT DISTINCT - COUNT( + col1 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2899
SELECT DISTINCT - COUNT ( + col1 ) FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2900
SELECT - - 87 * CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
4089
8613
870

skipif mysql # not compatible
query I rowsort label-2900
SELECT - - 87 * CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
4089
8613
870

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT DISTINCT MIN( + col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2901
SELECT DISTINCT MIN ( + col2 ) AS col0 FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2902
SELECT + CAST( + - col0 AS SIGNED ) AS col2 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2902
SELECT + CAST ( + - col0 AS INTEGER ) AS col2 FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT - col1 * + 95 AS col1 FROM tab1
----
-1330
-4465
-475

query I rowsort
SELECT + 57 * - col0 FROM tab0
----
-4959
-5529
-855

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 WHERE NOT ( NULL ) > ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2906
SELECT DISTINCT CAST( NULL AS SIGNED ) * MIN( DISTINCT - col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT CAST ( NULL AS INTEGER ) * MIN ( DISTINCT - col1 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT MIN( DISTINCT + 78 ) FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-2907
SELECT MIN ( DISTINCT + 78 ) FROM tab1
----
78

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT NULL > + 34
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2909
SELECT - 96 * - + ( - - CAST( NULL AS SIGNED ) ) - - 84 + - 72 AS col0, + 59 * - + MAX( - 75 ) FROM tab0 WHERE NOT + col2 / - + col2 * - - col1 IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2909
SELECT - 96 * - + ( - - CAST ( NULL AS INTEGER ) ) - - 84 + - 72 AS col0, + 59 * - + MAX ( - 75 ) FROM tab0 WHERE NOT + col2 / - + col2 * - - col1 IS NOT NULL
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2910
SELECT DISTINCT col0 DIV - col0 col1 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2910
SELECT DISTINCT col0 / - col0 col1 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT + - ( - col0 ) AS col0 FROM tab2 WHERE NULL IN ( + col1, + 29 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 8 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 72 * col0 * - col0 * + + 14 FROM tab0
----
226800
7629552
9484272

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT DISTINCT - MAX( ALL col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT - MAX ( ALL col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT DISTINCT MIN( ALL - col2 ) col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2915
SELECT DISTINCT MIN ( ALL - col2 ) col0 FROM tab1 AS cor0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + + 4 ) * - + col2 col0 FROM tab0 AS cor0
----
-188
-396
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2917
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - + col2 * + + 1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2917
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - + col2 * + + 1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2918
SELECT ALL - - COUNT( * ) DIV COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL - - COUNT ( * ) / COUNT ( * ) FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2919
SELECT DISTINCT + - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2919
SELECT DISTINCT + - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT ALL + - col0 FROM tab2 AS cor0 WHERE - col1 BETWEEN - - col0 * 5 AND + col1 * - - 64
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab1 cor0 WHERE - col2 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-2922
SELECT + COUNT( * ) AS col0, + COUNT( ALL + col1 ) + 39 FROM tab1 AS cor0
----
3
42

skipif mysql # not compatible
query II rowsort label-2922
SELECT + COUNT ( * ) AS col0, + COUNT ( ALL + col1 ) + 39 FROM tab1 AS cor0
----
3
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2923
SELECT + CAST( + MIN( - 30 ) AS SIGNED ) col0 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2923
SELECT + CAST ( + MIN ( - 30 ) AS INTEGER ) col0 FROM tab0 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT ALL + + MIN( DISTINCT 76 ) FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL + + MIN ( DISTINCT 76 ) FROM tab2 AS cor0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2925
SELECT DISTINCT * FROM tab0 cor0 WHERE + col2 BETWEEN - col0 * + CAST( + + 29 AS SIGNED ) AND + 82
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-2925
SELECT DISTINCT * FROM tab0 cor0 WHERE + col2 BETWEEN - col0 * + CAST ( + + 29 AS INTEGER ) AND + 82
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT + 63 + + - col1 - 46 FROM tab0 AS cor0
----
-4
-64
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 56, + 77 - + + 70 col2 FROM tab2 AS cor0
----
-56
7
-56
7
-56
7

query I rowsort
SELECT + - 59 + col1 + + + ( col1 ) FROM tab1 AS cor0
----
-31
-49
35

query I rowsort
SELECT col0 + + 69 FROM tab2 AS cor0
----
115
133
144

query I rowsort
SELECT DISTINCT - col1 + + - 57 AS col1 FROM tab0
----
-138
-58
-78

query I rowsort
SELECT ALL - ( + + col1 ) + - + 67 * + col2 FROM tab1
----
-3958
-4603
-6446

query II rowsort
SELECT col1 + + col2 AS col1, - col0 AS col1 FROM tab2
----
117
-64
125
-75
74
-46

query II rowsort
SELECT 43 + - + col1 AS col0, col0 FROM tab0
----
-38
15
22
87
42
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT DISTINCT MIN( 32 ) col0 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2934
SELECT DISTINCT MIN ( 32 ) col0 FROM tab0 AS cor0
----
32

query I rowsort
SELECT - + col2 * - 42 + - 63 AS col1 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
1911
357
4095

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2936
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE + CAST( + ( - 10 ) AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-2936
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE + CAST ( + ( - 10 ) AS INTEGER ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 <= NULL
----

query I rowsort
SELECT DISTINCT - 70 AS col0 FROM tab2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2939
SELECT ALL - COUNT( * ), CAST( NULL AS SIGNED ) / ( + - 59 ) AS col1 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-2939
SELECT ALL - COUNT ( * ), CAST ( NULL AS INTEGER ) / ( + - 59 ) AS col1 FROM tab2 AS cor0
----
-3
NULL

query I rowsort
SELECT DISTINCT - - col2 FROM tab2 AS cor0 WHERE NOT 22 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT DISTINCT COUNT( ALL 13 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT COUNT ( ALL 13 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2942
SELECT DISTINCT 20 AS col2, COUNT( * ) FROM tab1 AS cor0
----
20
3

skipif mysql # not compatible
query II rowsort label-2942
SELECT DISTINCT 20 AS col2, COUNT ( * ) FROM tab1 AS cor0
----
20
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT 72 * + COUNT( * ) FROM tab1 cor0
----
216

skipif mysql # not compatible
query I rowsort label-2943
SELECT 72 * + COUNT ( * ) FROM tab1 cor0
----
216

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - + 75 ) > + col1 + + - ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2945
SELECT DISTINCT + - col1 * col1 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2945
SELECT DISTINCT + - col1 * col1 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query II rowsort
SELECT DISTINCT - col0 AS col0, + col1 FROM tab1 cor0
----
-51
14
-85
5
-91
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2947
SELECT ALL 20 DIV ( - col2 ) DIV col0 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL 20 / ( - col2 ) / col0 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + + 59 AS col0 FROM tab2 cor0
----
59
59
59

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 24 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2950
SELECT DISTINCT 52 + SUM( DISTINCT - CAST( CAST( col2 AS SIGNED ) AS SIGNED ) ) + 20 AS col0 FROM tab1 AS cor0
----
-151

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT 52 + SUM ( DISTINCT - CAST ( CAST ( col2 AS INTEGER ) AS INTEGER ) ) + 20 AS col0 FROM tab1 AS cor0
----
-151

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 AS cor0 WHERE col1 - - ( + 91 ) IS NULL
----

query I rowsort
SELECT ALL + col0 * col0 + - col1 FROM tab0 cor0
----
144
7548
9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - + 87 col0 FROM tab2 AS cor0
----
-12
-23
-41

query I rowsort
SELECT ( - col0 ) + + 19 AS col0 FROM tab1
----
-32
-66
-72

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 * - ( + col2 ) + - col2 > ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 35 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT ALL - 6 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL - 6 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2958
SELECT ALL + + col1 * + + col2 + - - col1 / CAST( NULL AS SIGNED ) + - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL + + col1 * + + col2 + - - col1 / CAST ( NULL AS INTEGER ) + - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2959
SELECT DISTINCT - + COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT - + COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT ALL + - COUNT( * ) + - - 18 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL + - COUNT ( * ) + - - 18 FROM tab1 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + 70 ) col0 FROM tab0 AS cor0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT + ( MIN( - ( + - col1 ) ) ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2962
SELECT + ( MIN ( - ( + - col1 ) ) ) FROM tab1 AS cor0
----
5

query II rowsort
SELECT col1, 51 + - col2 AS col1 FROM tab2
----
51
28
67
-7
77
11

query II rowsort
SELECT ( col1 ) AS col0, - col0 FROM tab1
----
14
-51
47
-91
5
-85

query I rowsort
SELECT DISTINCT + ( 25 ) + col2 * + col2 * col0 FROM tab0
----
33160
8725
950722

query II rowsort
SELECT DISTINCT col0 AS col2, col1 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT ALL 93 + - col2 * 62 * - col0 AS col0 FROM tab2
----
158813
269793
65689

onlyif mysql # aggregate syntax: 
query II rowsort label-2968
SELECT + 60 col2, + COUNT( * ) AS col0 FROM tab1
----
60
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2968
SELECT + 60 col2, + COUNT ( * ) AS col0 FROM tab1
----
60
3

query I rowsort
SELECT DISTINCT + 79 + col0 + col0 + + + col2 + col2 + - col0 + ( + 47 ) * - col2 * + col2 FROM tab1
----
-163325
-217022
-432830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2970
SELECT DISTINCT 87 AS col2 FROM tab0 WHERE NOT - + col0 NOT IN ( + col2 + + col0, col0 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT 87 AS col2 FROM tab0 WHERE NOT - + col0 NOT IN ( + col2 + + col0, col0 * - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2971
SELECT ALL COUNT( * ) - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL COUNT ( * ) - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT + - 74 * col2 - + col0 AS col2, + col2 AS col2 FROM tab2 WHERE NOT NULL >= - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2973
SELECT DISTINCT col1 DIV 86 DIV 72 - - col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2973
SELECT DISTINCT col1 / 86 / 72 - - col2 FROM tab0
----
10
47
99

query I rowsort
SELECT - 41 + - 49 AS col1 FROM tab2 AS cor0
----
-90
-90
-90

query II rowsort
SELECT DISTINCT 13 AS col0, col2 + + 91 AS col1 FROM tab1 AS cor0
----
13
150
13
159
13
187

query I rowsort
SELECT ALL + 42 * - 98 FROM tab0 AS cor0
----
-4116
-4116
-4116

query I rowsort
SELECT + 25 + + 86 AS col0 FROM tab0 AS cor0
----
111
111
111

query I rowsort
SELECT 39 + - 23 + + col1 AS col0 FROM tab2 AS cor0
----
67
83
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT 73 * + - 51 * - MIN( ALL 23 ) + - COUNT( * ) col0 FROM tab1 AS cor0
----
85626

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2979
SELECT 73 * + - 51 * - MIN ( ALL 23 ) + - COUNT ( * ) col0 FROM tab1 AS cor0
----
85626

query II rowsort
SELECT DISTINCT ( - - col0 ) AS col0, + 22 FROM tab2 AS cor0
----
46
22
64
22
75
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT ALL 25 + - COUNT( * ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-2981
SELECT ALL 25 + - COUNT ( * ) FROM tab1
----
22

query I rowsort
SELECT + 55 AS col0 FROM tab0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ( col2 ) * + col1 FROM tab2 AS cor0 WHERE NOT 55 >= NULL
----

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT 5 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2985
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) / + col2 / + col2 + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2985
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) / + col2 / + col2 + col0 IS NULL
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 + + col2, - 21 * + 46 * 53 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * - col0 col2, 52 AS col2 FROM tab2 AS cor0
----
1058
52
2560
52
4350
52

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 * 42 AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2989
SELECT DISTINCT col2 * CAST( col1 AS SIGNED ) * - - col1 FROM tab1 AS cor0
----
1475
150212
18816

skipif mysql # not compatible
query I rowsort label-2989
SELECT DISTINCT col2 * CAST ( col1 AS INTEGER ) * - - col1 FROM tab1 AS cor0
----
1475
150212
18816

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT ALL + - SUM( DISTINCT ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL + - SUM ( DISTINCT ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
195

query I rowsort
SELECT + col0 * + 55 * + col0 AS col0 FROM tab0 AS cor0
----
12375
416295
517495

query I rowsort
SELECT ALL - - 75 * - 38 FROM tab0 AS cor0
----
-2850
-2850
-2850

query II rowsort
SELECT DISTINCT + 3, col1 FROM tab1
----
3
14
3
47
3
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2994
SELECT DISTINCT + SUM( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2994
SELECT DISTINCT + SUM ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2995
SELECT + COUNT( * ) AS col1, 68 AS col2 FROM tab2
----
3
68

skipif mysql # not compatible
query II rowsort label-2995
SELECT + COUNT ( * ) AS col1, 68 AS col2 FROM tab2
----
3
68

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 5 >= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( - col2 ) > + + col2
----

query I rowsort
SELECT - 70 * + + col2 FROM tab2 cor0 WHERE NOT ( NULL ) <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT ( 31 BETWEEN 3 AND NULL ) )
----

query I rowsort
SELECT - ( + + col0 ) + col2 - + 70 FROM tab0 cor0
----
-147
-38
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-3001
SELECT DISTINCT + 69 * COUNT( * ), 2 AS col1 FROM tab0
----
207
2

skipif mysql # not compatible
query II rowsort label-3001
SELECT DISTINCT + 69 * COUNT ( * ), 2 AS col1 FROM tab0
----
207
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT - COUNT( * ) FROM tab0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3002
SELECT - COUNT ( * ) FROM tab0 WHERE NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT DISTINCT + + COUNT( * ) * + 6 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-3003
SELECT DISTINCT + + COUNT ( * ) * + 6 FROM tab1 AS cor0
----
18

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND 67
----

query I rowsort
SELECT ALL - - 15 * col2 FROM tab2 AS cor0
----
345
600
870

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT DISTINCT 91 * COUNT( ALL col0 ) FROM tab1 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-3006
SELECT DISTINCT 91 * COUNT ( ALL col0 ) FROM tab1 AS cor0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT + COUNT( * ) + - 42 FROM tab0 cor0
----
-39

skipif mysql # not compatible
query I rowsort label-3007
SELECT + COUNT ( * ) + - 42 FROM tab0 cor0
----
-39

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3008
SELECT ALL + CAST( - + 12 AS DECIMAL ) * - col1 * + CAST( NULL AS SIGNED ) * + 86 - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL + CAST ( - + 12 AS REAL ) * - col1 * + CAST ( NULL AS INTEGER ) * + 86 - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + - col2 ) AS col2 FROM tab1 AS cor0 WHERE 60 + + 35 * col1 * + col2 + - col1 * - + 63 IS NOT NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 9 + col1 col1, col1 col2 FROM tab1 AS cor0
----
14
5
23
14
56
47

query I rowsort
SELECT ALL + 19 * col1 AS col2 FROM tab0 AS cor0
----
1539
19
399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3012
SELECT col2 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE - col1 + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3012
SELECT col2 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE - col1 + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3013
SELECT - col0 + 79 - - col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3013
SELECT - col0 + 79 - - col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE 42 <= ( 8 )
----

query I rowsort
SELECT DISTINCT + col1 * - + 83 * - col0 + - col1 * + col0 AS col0 FROM tab0
----
149814
7954
99630

query I rowsort
SELECT - 22 * - + 79 * - + col0 * 0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT + ( MAX( ALL + col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3017
SELECT + ( MAX ( ALL + col0 ) ) FROM tab0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3018
SELECT + col1 * + CAST( NULL AS SIGNED ) * + col1 * + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3018
SELECT + col1 * + CAST ( NULL AS INTEGER ) * + col1 * + + col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > + + col0
----

query I rowsort
SELECT DISTINCT col2 - - 73 FROM tab1
----
132
141
169

query I rowsort
SELECT DISTINCT - + 77 + 71 + col0 * + 78 + 55 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3022
SELECT col0 DIV - col2, + ( + 56 ) * + col1 AS col0 FROM tab1
----
-1
2632
-1
280
0
784

skipif mysql # not compatible
query II rowsort label-3022
SELECT col0 / - col2, + ( + 56 ) * + col1 AS col0 FROM tab1
----
-1
2632
-1
280
0
784

query I rowsort
SELECT DISTINCT col1 * 27 AS col1 FROM tab0
----
2187
27
567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3024
SELECT MAX( - CAST( col1 AS SIGNED ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3024
SELECT MAX ( - CAST ( col1 AS INTEGER ) ) FROM tab0
----
-1

query I rowsort
SELECT ( - AVG ( ALL - col0 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> ( 59 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT + + 50 * 44 * + COUNT( * ) FROM tab2 AS cor0
----
6600

skipif mysql # not compatible
query I rowsort label-3026
SELECT + + 50 * 44 * + COUNT ( * ) FROM tab2 AS cor0
----
6600

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT DISTINCT + - ( + COUNT( * ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT + - ( + COUNT ( * ) ) FROM tab2 cor0
----
-3

query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 * - ( - + 56 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col1, 23 col1 FROM tab1 WHERE + col1 <= + + 48
----
14
23
47
23
5
23

query I rowsort
SELECT DISTINCT - 54 * - col0 + - - col0 FROM tab0
----
4785
5335
825

query I rowsort
SELECT ( - + 40 ) * - ( + 99 ) FROM tab1
----
3960
3960
3960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + col2 ) col1, 3 * col0 AS col0 FROM tab0
----
10
261
47
45
99
291

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3033
SELECT - 41 DIV - COUNT( * ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-3033
SELECT - 41 / - COUNT ( * ) FROM tab1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT + COUNT( * ) + + COUNT( * ) * - + COUNT( * ) FROM tab2 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3034
SELECT + COUNT ( * ) + + COUNT ( * ) * - + COUNT ( * ) FROM tab2 AS cor0 WHERE col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT - ( + 78 ) + - col0 AS col2 FROM tab2 AS cor0
----
-124
-142
-153

query II rowsort
SELECT - ( + col0 ) + - + col0 AS col1, + ( + - col1 ) AS col2 FROM tab2
----
-128
-77
-150
-67
-92
-51

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL BETWEEN NULL AND - ( + 96 ) - + 11 * - - 80
----

query I rowsort
SELECT - 26 + - col2 AS col0 FROM tab1
----
-122
-85
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-3039
SELECT col0 DIV + 86 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3039
SELECT col0 / + 86 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3040
SELECT ALL + MIN( - + col2 ) * - CAST( NULL AS SIGNED ) / 51 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL + MIN ( - + col2 ) * - CAST ( NULL AS INTEGER ) / 51 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3041
SELECT + 40 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3041
SELECT + 40 / + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3042
SELECT - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3042
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - col0 + - + col2 + - col1 AS col2 FROM tab0 AS cor0
----
-118
-143
-197

query I rowsort
SELECT DISTINCT + ( + + col0 ) - - col1 AS col1 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3045
SELECT + 42 DIV 25 - - col2 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-3045
SELECT + 42 / 25 - - col2 FROM tab2
----
24
41
59

query I rowsort
SELECT 28 * 17 FROM tab0 WHERE + + col2 NOT BETWEEN NULL AND ( - 93 ) + + - col2
----
476
476
476

query I rowsort
SELECT DISTINCT ( col2 ) + - + col1 * - + col0 FROM tab1
----
4345
484
810

query I rowsort
SELECT 79 - + - col2 FROM tab1
----
138
147
175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 5 col0 FROM tab0 AS cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col1 FROM tab0 AS cor0
----
-50
-50
-50

query I rowsort
SELECT ALL - 32 AS col2 FROM tab2 AS cor0
----
-32
-32
-32

query I rowsort
SELECT DISTINCT 65 * - 98 FROM tab0 AS cor0
----
-6370

onlyif mysql # DIV for integer division: 
query I rowsort label-3053
SELECT + col0 * col2 DIV + 2 AS col2 FROM tab0
----
352
435
4801

skipif mysql # not compatible
query I rowsort label-3053
SELECT + col0 * col2 / + 2 AS col2 FROM tab0
----
352
435
4801

onlyif mysql # DIV for integer division: 
query I rowsort label-3054
SELECT ALL + 7 DIV + col1 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL + 7 / + col1 AS col1 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT COUNT( DISTINCT col2 ) * MAX( + - 37 ) AS col0 FROM tab0 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-3055
SELECT COUNT ( DISTINCT col2 ) * MAX ( + - 37 ) AS col0 FROM tab0 AS cor0
----
-111

query I rowsort
SELECT + + ( 4 ) AS col2 FROM tab1 cor0
----
4
4
4

query II rowsort
SELECT - 12 * + col2 + col1, - 87 AS col0 FROM tab2 AS cor0
----
-225
-87
-403
-87
-629
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT + - MIN( + + col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3058
SELECT + - MIN ( + + col1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT - 9 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3060
SELECT DISTINCT + col0 DIV - + col0 AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3060
SELECT DISTINCT + col0 / - + col0 AS col0 FROM tab1
----
-1

query II rowsort
SELECT - - col0 AS col1, + 83 * 45 FROM tab1 AS cor0
----
51
3735
85
3735
91
3735

query II rowsort
SELECT ALL col0, + 25 * + col1 AS col1 FROM tab1 AS cor0
----
51
350
85
125
91
1175

query I rowsort
SELECT DISTINCT + + col1 AS col0 FROM tab0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3064
SELECT * FROM tab0 WHERE + ( + col1 ) > 83 - 21 * - CAST( - + 50 AS DECIMAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3064
SELECT * FROM tab0 WHERE + ( + col1 ) > 83 - 21 * - CAST ( - + 50 AS REAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT 20 - COUNT( * ) FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-3065
SELECT 20 - COUNT ( * ) FROM tab2
----
17

query I rowsort
SELECT + - col1 * 68 + - ( col1 ) FROM tab2 AS cor0
----
-3519
-4623
-5313

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT ALL 91 * + - COUNT( * ) * - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
819

skipif mysql # not compatible
query I rowsort label-3067
SELECT ALL 91 * + - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
819

query I rowsort
SELECT - - 69 + + + 28 FROM tab2 AS cor0
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT + COUNT( * ) * - + COUNT( * ) * + - 94 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
849

skipif mysql # not compatible
query I rowsort label-3069
SELECT + COUNT ( * ) * - + COUNT ( * ) * + - 94 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
849

query I rowsort
SELECT DISTINCT col1 + 68 + 9 AS col2 FROM tab2 AS cor0
----
128
144
154

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN col0 - + col0 AND + 44
----

query I rowsort
SELECT DISTINCT - 2 + + 55 + col2 + + col2 * + col1 FROM tab0
----
251
273
3907

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3073
SELECT ALL + CAST( + col1 AS SIGNED ) + col2 + 10 * col1 AS col2 FROM tab2
----
584
795
887

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL + CAST ( + col1 AS INTEGER ) + col2 + 10 * col1 AS col2 FROM tab2
----
584
795
887

query I rowsort
SELECT ALL col1 * + 14 AS col2 FROM tab2
----
1078
714
938

query I rowsort
SELECT DISTINCT + 75 * - 28 FROM tab2
----
-2100

query II rowsort
SELECT col2, col2 + 13 + - col2 + + col0 * - col2 * + col1 * + + col1 AS col0 FROM tab2
----
23
-2751845
40
-15178227
58
-19527137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3077
SELECT + 20 - - 47 FROM tab0 WHERE NOT + col1 + - + CAST( NULL AS SIGNED ) IN ( + CAST( 20 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3077
SELECT + 20 - - 47 FROM tab0 WHERE NOT + col1 + - + CAST ( NULL AS INTEGER ) IN ( + CAST ( 20 AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3078
SELECT MIN( CAST( col2 AS SIGNED ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3078
SELECT MIN ( CAST ( col2 AS INTEGER ) ) FROM tab1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3079
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 + - - CAST( - + col1 AS SIGNED ) + col2 + col2 - - - 50 * - col0 + ( 98 ) * + col1 NOT BETWEEN col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3079
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 + - - CAST ( - + col1 AS INTEGER ) + col2 + col2 - - - 50 * - col0 + ( 98 ) * + col1 NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT 82 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( + + AVG ( - + 27 ) ) FROM tab0 AS cor0 WHERE NOT NULL = + col1 / + col0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 18 ) NOT BETWEEN 22 * - 63 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT ALL - COUNT( * ) + + 81 + - + 45 * 52 FROM tab0 cor0
----
-2262

skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL - COUNT ( * ) + + 81 + - + 45 * 52 FROM tab0 cor0
----
-2262

query I rowsort
SELECT DISTINCT - 69 + ( col2 ) + 15 + 40 * + + 55 + + col2 AS col0 FROM tab2
----
2192
2226
2262

query I rowsort
SELECT - ( - - col0 ) * ( - col2 ) - - + 44 FROM tab0
----
749
914
9647

query I rowsort
SELECT DISTINCT col0 + - - col0 FROM tab2
----
128
150
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3087
SELECT + col2 * + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3087
SELECT + col2 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3088
SELECT COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3088
SELECT COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3089
SELECT + 59 + + col1 DIV - col2 FROM tab2 AS cor0
----
57
58
58

skipif mysql # not compatible
query I rowsort label-3089
SELECT + 59 + + col1 / - col2 FROM tab2 AS cor0
----
57
58
58

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NULL BETWEEN - 60 + - col2 AND - 80
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3091
SELECT DISTINCT * FROM tab0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3091
SELECT DISTINCT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT ALL - COUNT( * ) + + 51 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-3092
SELECT ALL - COUNT ( * ) + + 51 FROM tab1
----
48

query I rowsort
SELECT 0 * col0 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= + 27 / + - 94 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT DISTINCT - + COUNT( - col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3095
SELECT DISTINCT - + COUNT ( - col1 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3096
SELECT ALL SUM( + col2 ) + + + ( - - 67 ) DIV - - 38 AS col0 FROM tab0 AS cor0
----
157

skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL SUM ( + col2 ) + + + ( - - 67 ) / - - 38 AS col0 FROM tab0 AS cor0
----
157

query I rowsort
SELECT - ( - 18 ) - + + 50 AS col2 FROM tab0 cor0
----
-32
-32
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-3098
SELECT - ( - + col1 ) - col0 DIV ( + col1 ) col0 FROM tab1 AS cor0
----
-12
11
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3098
SELECT - ( - + col1 ) - col0 / ( + col1 ) col0 FROM tab1 AS cor0
----
-12
11
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3100
SELECT - col1 - + CAST( NULL AS DECIMAL ) + + 47 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3100
SELECT - col1 - + CAST ( NULL AS REAL ) + + 47 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT ( col0 ) AS col2, - col2 + 63 FROM tab2 AS cor0
----
46
40
64
23
75
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * col2 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - ( + col2 ) * + - 39 FROM tab1 AS cor0
----
2301
2652
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT ALL - MIN( + + ( - + col2 ) ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL - MIN ( + + ( - + col2 ) ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL - col1 * + - ( col2 ) * + col1 + col1 FROM tab1 AS cor0
----
1480
150259
18830

query I rowsort
SELECT 38 * + 33 AS col2 FROM tab0
----
1254
1254
1254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3107
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col1 * + col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3107
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col1 * + col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT 78 * ( + COUNT( * ) ) FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-3108
SELECT 78 * ( + COUNT ( * ) ) FROM tab0
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE NOT - - ( 55 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3109
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT - - ( 55 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3110
SELECT DISTINCT * FROM tab1 WHERE ( + 59 - CAST( NULL AS SIGNED ) + - + col2 + col2 ) = - ( col2 )
----

skipif mysql # not compatible
query III rowsort label-3110
SELECT DISTINCT * FROM tab1 WHERE ( + 59 - CAST ( NULL AS INTEGER ) + - + col2 + col2 ) = - ( col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 87 / col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 56 <> col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, col0 FROM tab2 cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT + MAX( DISTINCT + 90 ) AS col0 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-3114
SELECT + MAX ( DISTINCT + 90 ) AS col0 FROM tab2 AS cor0
----
90

query I rowsort
SELECT ALL - 89 * col2 AS col1 FROM tab0 AS cor0
----
-4183
-8811
-890

query I rowsort
SELECT - col0 * 59 AS col1 FROM tab0 cor0
----
-5133
-5723
-885

query I rowsort
SELECT - col2 + - 24 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = - 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT DISTINCT - + COUNT( * ) + + + 89 + - COUNT( * ) col0 FROM tab0 AS cor0
----
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3118
SELECT DISTINCT - + COUNT ( * ) + + + 89 + - COUNT ( * ) col0 FROM tab0 AS cor0
----
83

query I rowsort
SELECT ALL + + col0 + + + col2 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT ALL 99 + col0 FROM tab0
----
114
186
196

query I rowsort
SELECT ALL col2 * - col0 + + col0 FROM tab0
----
-690
-783
-9506

query I rowsort
SELECT 77 + 58 + - 10 * - 85 + + - col2 FROM tab1
----
889
917
926

onlyif mysql # DIV for integer division: 
query I rowsort label-3123
SELECT ALL + col1 * 16 DIV + 89 + - - ( - col1 ) AS col1 FROM tab0
----
-1
-18
-67

skipif mysql # not compatible
query I rowsort label-3123
SELECT ALL + col1 * 16 / + 89 + - - ( - col1 ) AS col1 FROM tab0
----
-1
-18
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT DISTINCT + SUM( ALL col0 ) + + MIN( + 96 ) FROM tab1 WHERE NOT - - 16 + - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3124
SELECT DISTINCT + SUM ( ALL col0 ) + + MIN ( + 96 ) FROM tab1 WHERE NOT - - 16 + - col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT MAX( + 76 ) * 77 + - + 22 * - - 41 col0 FROM tab0
----
4950

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3125
SELECT MAX ( + 76 ) * 77 + - + 22 * - - 41 col0 FROM tab0
----
4950

query I rowsort
SELECT + 63 + - + 17 AS col0 FROM tab2
----
46
46
46

query I rowsort
SELECT - col0 + - col1 + - col1 AS col0 FROM tab2
----
-148
-209
-218

query I rowsort
SELECT ALL + - 41 AS col1 FROM tab2 AS cor0
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT - COUNT( * ) * + - COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3129
SELECT - COUNT ( * ) * + - COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3130
SELECT ALL - CAST( - 89 AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

skipif mysql # not compatible
query I rowsort label-3130
SELECT ALL - CAST ( - 89 AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 * - + col0 - col1 * - ( + ( - 13 ) ) + col1 col1 FROM tab2
----
-103324
-24946
-253104

onlyif mysql # DIV for integer division: 
query I rowsort label-3132
SELECT DISTINCT - col2 DIV - 72 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-3132
SELECT DISTINCT - col2 / - 72 FROM tab0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + col1 col2 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 + - col0 * - + 75 > NULL
----

query I rowsort
SELECT col0 + + + 89 FROM tab2 AS cor0
----
135
153
164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3136
SELECT ALL - CAST( 1 AS SIGNED ) FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3136
SELECT ALL - CAST ( 1 AS INTEGER ) FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT 7 * + + col2 AS col2 FROM tab1
----
413
476
672

query I rowsort
SELECT DISTINCT - col0 / - col2 FROM tab2 WHERE NOT + + col0 + + col1 + + 23 + + col0 / - col0 * + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT DISTINCT COUNT( DISTINCT + ( - - col0 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3139
SELECT DISTINCT COUNT ( DISTINCT + ( - - col0 ) ) AS col1 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 78 <= NULL
----

query II rowsort
SELECT ALL + col2 AS col1, col1 * - col0 * - 54 * + col2 AS col0 FROM tab2
----
23
2913732
40
10644480
58
15738300

query II rowsort
SELECT - - 80 AS col1, col1 FROM tab1 AS cor0
----
80
14
80
47
80
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 32 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT - MIN( ALL - col0 ) AS col0 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-3144
SELECT - MIN ( ALL - col0 ) AS col0 FROM tab2 cor0
----
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 21 BETWEEN col1 + + 77 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col1 * - col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col2 / + + col1 AND - 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT DISTINCT - - SUM( - col0 ) AS col1 FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3147
SELECT DISTINCT - - SUM ( - col0 ) AS col1 FROM tab0 cor0
----
-199

query I rowsort
SELECT - col1 + + 31 AS col1 FROM tab0
----
-50
10
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT - COUNT( * ) + 84 AS col2 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-3149
SELECT - COUNT ( * ) + 84 AS col2 FROM tab1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3150
SELECT DISTINCT - col2 DIV 5 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-11
-13
-19

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT - col2 / 5 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-11
-13
-19

query I rowsort
SELECT DISTINCT 15 AS col0 FROM tab0 cor0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3152
SELECT + MIN( + - 48 ) + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3152
SELECT + MIN ( + - 48 ) + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 51 * + col1 AS col2 FROM tab2 cor0
----
2601
3417
3927

query I rowsort
SELECT DISTINCT - col0 * 18 FROM tab1 AS cor0
----
-1530
-1638
-918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3155
SELECT DISTINCT + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3156
SELECT - MIN( + col2 ) AS col2, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-23
-3

skipif mysql # not compatible
query II rowsort label-3156
SELECT - MIN ( + col2 ) AS col2, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-23
-3

query I rowsort
SELECT col1 * - col1 + 46 AS col1 FROM tab2 AS cor0
----
-2555
-4443
-5883

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT DISTINCT COUNT( * ) + + + MIN( DISTINCT 12 ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-3158
SELECT DISTINCT COUNT ( * ) + + + MIN ( DISTINCT 12 ) FROM tab2
----
15

query I rowsort
SELECT DISTINCT + col1 + + - 44 AS col0 FROM tab1
----
-30
-39
3

query I rowsort
SELECT ALL col2 + 17 FROM tab0
----
116
27
64

query I rowsort
SELECT 28 * col1 FROM tab1
----
1316
140
392

query III rowsort
SELECT * FROM tab2 WHERE NULL > - 34
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col0 * - col1 + + 54 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT DISTINCT 6 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT 6 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
18

query I rowsort
SELECT DISTINCT + col2 + + 8 FROM tab1 AS cor0
----
104
67
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT DISTINCT COUNT( * ) * + 34 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3166
SELECT DISTINCT COUNT ( * ) * + 34 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT - 5 AS col2, 27 + col1 FROM tab1 AS cor0
----
-5
32
-5
41
-5
74

query I rowsort
SELECT + 92 + col0 FROM tab2
----
138
156
167

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = + 4
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3170
SELECT ALL CAST( 64 AS SIGNED ) DIV ( col0 ) AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL CAST ( 64 AS INTEGER ) / ( col0 ) AS col1 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT ( + col0 ) AS col1 FROM tab2 WHERE NOT + 66 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT ( - MIN( 18 ) ) AS col2 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-3172
SELECT ( - MIN ( 18 ) ) AS col2 FROM tab0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT + 18 > col2
----
3

skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT + 18 > col2
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( + 57 )
----

query III rowsort
SELECT * FROM tab0 WHERE col0 * col2 NOT BETWEEN + col2 - 10 AND + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 - 43 AS col1 FROM tab2
----
24
34
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3177
SELECT ALL * FROM tab0 WHERE - 89 < + 27 * - col0 + + col2 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3177
SELECT ALL * FROM tab0 WHERE - 89 < + 27 * - col0 + + col2 * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 4 / - col2 AS col0 FROM tab1 WHERE - 59 * - col2 + col0 IS NULL
----

query I rowsort
SELECT ALL col2 * + col2 + + col0 AS col1 FROM tab1
----
3566
4715
9267

query I rowsort
SELECT DISTINCT + col2 - col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 53 * + 33 + 23 AS col2 FROM tab0
----
1772
1772
1772

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT COUNT( ALL + 83 ) * + COUNT( DISTINCT col1 ) AS col1 FROM tab1 WHERE ( NULL ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-3182
SELECT COUNT ( ALL + 83 ) * + COUNT ( DISTINCT col1 ) AS col1 FROM tab1 WHERE ( NULL ) IS NULL
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3183
SELECT DISTINCT col0 + - CAST( col2 AS SIGNED ) col2 FROM tab1
----
-45
23
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3183
SELECT DISTINCT col0 + - CAST ( col2 AS INTEGER ) col2 FROM tab1
----
-45
23
26

query I rowsort
SELECT DISTINCT - 59 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col0 - col0 <> col1 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 27 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT DISTINCT MIN( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3187
SELECT DISTINCT MIN ( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
23

query I rowsort
SELECT DISTINCT - 13 AS col0 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * + col1 FROM tab0 WHERE NOT - col1 IS NULL
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT ALL - MIN( DISTINCT col1 ) * - 81 col1 FROM tab1 AS cor0
----
405

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3190
SELECT ALL - MIN ( DISTINCT col1 ) * - 81 col1 FROM tab1 AS cor0
----
405

query I rowsort
SELECT - + col0 * 12 FROM tab1 cor0
----
-1020
-1092
-612

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT DISTINCT - - COUNT( * ) * 2 + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3192
SELECT DISTINCT - - COUNT ( * ) * 2 + COUNT ( * ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT - 56 * + 56 + col0 AS col0 FROM tab0 AS cor0
----
-3039
-3049
-3121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col1 + 67 col0 FROM tab1 AS cor0
----
2276
263
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3195
SELECT - + CAST( + col0 AS SIGNED ) + 91 FROM tab2 AS cor0
----
16
27
45

skipif mysql # not compatible
query I rowsort label-3195
SELECT - + CAST ( + col0 AS INTEGER ) + 91 FROM tab2 AS cor0
----
16
27
45

query I rowsort
SELECT + col1 + - 59 FROM tab1 AS cor0
----
-12
-45
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-3197
SELECT DISTINCT - col2 * - col0 + 45 DIV col1 FROM tab0 AS cor0
----
705
872
9648

skipif mysql # not compatible
query I rowsort label-3197
SELECT DISTINCT - col2 * - col0 + 45 / col1 FROM tab0 AS cor0
----
705
872
9648

query I rowsort
SELECT col1 * + col2 + col0 AS col1 FROM tab2 WHERE ( col2 ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 86 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT - MIN( col0 ) FROM tab1 WHERE NULL BETWEEN - col0 AND - col0 * - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3200
SELECT - MIN ( col0 ) FROM tab1 WHERE NULL BETWEEN - col0 AND - col0 * - col2
----
NULL

query I rowsort
SELECT ALL 40 FROM tab0 WHERE NOT + col1 IS NULL
----
40
40
40

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) >= 70 * col1
----

query I rowsort
SELECT DISTINCT + 37 + - col1 AS col0 FROM tab1
----
-10
23
32

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 = NULL OR NOT 28 * + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 + 10 AS col1 FROM tab1
----
-41
-75
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT ( - SUM( + col1 ) ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-3206
SELECT ( - SUM ( + col1 ) ) FROM tab0
----
-103

query I rowsort
SELECT col0 + col2 FROM tab0 WHERE 98 <> + 49
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT SUM( col2 ) * - 36 FROM tab2
----
-4356

skipif mysql # not compatible
query I rowsort label-3208
SELECT SUM ( col2 ) * - 36 FROM tab2
----
-4356

query I rowsort
SELECT ALL - ( - col1 ) - 35 FROM tab2 AS cor0
----
16
32
42

query I rowsort
SELECT DISTINCT - col2 * - col1 FROM tab1 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT SUM( + col2 ) FROM tab2 WHERE NULL <= - col1 - - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3211
SELECT SUM ( + col2 ) FROM tab2 WHERE NULL <= - col1 - - col1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + col2 AND col1
----

query II rowsort
SELECT - - 15, col0 FROM tab1 AS cor0
----
15
51
15
85
15
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT + ( + + COUNT( ALL + + col0 ) ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3214
SELECT + ( + + COUNT ( ALL + + col0 ) ) col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 55 <= 67
----

query I rowsort
SELECT - col1 * + col1 + + col2 + - col1 AS col0 FROM tab2 AS cor0
----
-2629
-4498
-5966

query I rowsort
SELECT ALL 98 FROM tab2 WHERE NOT - col2 NOT IN ( col1 )
----

query I rowsort
SELECT ALL col1 + ( col2 ) * 68 FROM tab1 WHERE NOT + + col1 + - + col1 >= ( col2 )
----
4017
4671
6542

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) <= + 61 / + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 14 BETWEEN NULL AND - col2
----

query I rowsort
SELECT 80 FROM tab0 WHERE NOT NULL IS NOT NULL
----
80
80
80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + + col1 ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3224
SELECT + CAST( + - SUM( - + col2 ) AS SIGNED ) * MIN( ALL + col1 ) FROM tab1
----
1115

skipif mysql # not compatible
query I rowsort label-3224
SELECT + CAST ( + - SUM ( - + col2 ) AS INTEGER ) * MIN ( ALL + col1 ) FROM tab1
----
1115

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 BETWEEN + + 25 AND - col0 + - col2 / + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE + col2 / - - col2 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT ALL - col2 + + 67 * + col1 FROM tab2 AS cor0
----
3394
4431
5119

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 <> col2
----

query I rowsort
SELECT ALL + - 63 FROM tab0 AS cor0
----
-63
-63
-63

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + - 93 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3231
SELECT DISTINCT col0 + 46 AS col1 FROM tab1 WHERE NOT ( - 58 * 14 - - 60 / col0 ) NOT BETWEEN ( + 92 ) AND CAST( 69 AS SIGNED ) + + col2
----

skipif mysql # not compatible
query I rowsort label-3231
SELECT DISTINCT col0 + 46 AS col1 FROM tab1 WHERE NOT ( - 58 * 14 - - 60 / col0 ) NOT BETWEEN ( + 92 ) AND CAST ( 69 AS INTEGER ) + + col2
----

query II rowsort
SELECT DISTINCT col0 AS col0, col1 * + - col2 + col0 AS col2 FROM tab1 AS cor0
----
51
-1293
85
-210
91
-3105

query I rowsort
SELECT - 88 AS col1 FROM tab1 cor0 WHERE NULL > 34 * + - 57
----

query I rowsort
SELECT DISTINCT - 43 + + col1 FROM tab2 cor0
----
24
34
8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 + - - 13 <> NULL
----

query I rowsort
SELECT - - 52 FROM tab0 WHERE col2 <> - + col1
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT ALL - - COUNT( * ) AS col1 FROM tab1 WHERE ( NULL ) >= 68 + - col1
----
0

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL - - COUNT ( * ) AS col1 FROM tab1 WHERE ( NULL ) >= 68 + - col1
----
0

query I rowsort
SELECT ( col0 ) - + col1 FROM tab2
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT - COUNT( * ) - + 74 AS col0 FROM tab1
----
-77

skipif mysql # not compatible
query I rowsort label-3239
SELECT - COUNT ( * ) - + 74 AS col0 FROM tab1
----
-77

query I rowsort
SELECT 31 - + + col1 AS col1 FROM tab0
----
-50
10
30

query I rowsort
SELECT col1 * - col1 * col0 - + col2 + + - col1 FROM tab1
----
-10106
-201134
-2189

query I rowsort
SELECT col1 FROM tab2 WHERE + ( - 75 ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT 22 FROM tab0 WHERE NULL IN ( 14, - ( - 0 ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL <= NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3245
SELECT ALL - COUNT( * ) AS col1, 13 AS col0 FROM tab2
----
-3
13

skipif mysql # not compatible
query II rowsort label-3245
SELECT ALL - COUNT ( * ) AS col1, 13 AS col0 FROM tab2
----
-3
13

onlyif mysql # DIV for integer division: 
query I rowsort label-3246
SELECT 46 + + + 32 DIV + col2 FROM tab0 AS cor0
----
46
46
49

skipif mysql # not compatible
query I rowsort label-3246
SELECT 46 + + + 32 / + col2 FROM tab0 AS cor0
----
46
46
49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 46 BETWEEN - col0 * + + col0 * + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, - col2 * col1 FROM tab0 AS cor0
----
1
-99
21
-210
81
-3807

onlyif mysql # aggregate syntax: 
query II rowsort label-3249
SELECT 80, 50 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
80
-150

skipif mysql # not compatible
query II rowsort label-3249
SELECT 80, 50 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
80
-150

query III rowsort
SELECT ALL * FROM tab1 WHERE + 68 < ( + col1 )
----

query I rowsort
SELECT col0 * col2 * - + 10 FROM tab0
----
-7050
-8700
-96030

query I rowsort
SELECT DISTINCT col0 * - + col1 * + - 76 AS col1 FROM tab1
----
32300
325052
54264

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT DISTINCT - ( ( ( COUNT( * ) ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3253
SELECT DISTINCT - ( ( ( COUNT ( * ) ) ) ) FROM tab1
----
-3

query I rowsort
SELECT ALL - 71 AS col2 FROM tab0 AS cor0 WHERE ( 48 * col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3255
SELECT ALL - MAX( - 95 ) AS col0, - COUNT( + + col1 ) - - 51 FROM tab1 AS cor0
----
95
48

skipif mysql # not compatible
query II rowsort label-3255
SELECT ALL - MAX ( - 95 ) AS col0, - COUNT ( + + col1 ) - - 51 FROM tab1 AS cor0
----
95
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3256
SELECT DISTINCT col1 DIV col0 + col1 * + - 22 * - col1 + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
130399
57200
98700

skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT col1 / col0 + col1 * + - 22 * - col1 + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
130399
57200
98700

query I rowsort
SELECT ALL + 91 + + - AVG ( DISTINCT + 84 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col1 * - - col2 + + col2 AS col2 FROM tab2 AS cor0
----
1196
3120
3944

query I rowsort
SELECT 1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 18 AND + col1
----

query I rowsort
SELECT - col0 * - + 69 * col0 * - col0 FROM tab0 AS cor0
----
-232875
-45436707
-62974437

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3261
SELECT DISTINCT + - COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3261
SELECT DISTINCT + - COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab1 WHERE NOT + 10 * + - 6 + - col2 / + - col0 - - 89 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3263
SELECT DISTINCT + col2 DIV + 32 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-3263
SELECT DISTINCT + col2 / + 32 FROM tab2
----
0
1

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 NOT IN ( - col0 + 33 * - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 IN ( + + col2, ( + col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 20 * - col0 * - ( - + col2 ) FROM tab2
----
-21160
-51200
-87000

query II rowsort
SELECT ALL - col1, - col2 AS col0 FROM tab0
----
-1
-99
-21
-10
-81
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 99 col2 FROM tab1
----
104
113
146

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT ALL COUNT( + col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3269
SELECT ALL COUNT ( + col1 ) AS col2 FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT - col0, + col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query I rowsort
SELECT ( + - 56 ) AS col0 FROM tab0 cor0
----
-56
-56
-56

query I rowsort
SELECT DISTINCT 11 + ( - 97 ) AS col1 FROM tab1
----
-86

query III rowsort
SELECT * FROM tab1 WHERE col1 IN ( col1 * col2 * + 42 )
----

query I rowsort
SELECT - + col2 FROM tab0 WHERE NULL IS NULL
----
-10
-47
-99

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 LEFT OUTER JOIN tab2 cor1 ON NOT NULL IS NULL
----
18 values hashing to 3bb2bca130a6dfa84e4c44460040062d

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3276
SELECT + CAST( NULL AS SIGNED ) + - + col2 - + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3276
SELECT + CAST ( NULL AS INTEGER ) + - + col2 - + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 95 + + col0 + + - col0 FROM tab2 AS cor0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3278
SELECT + col0 + - CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
144
147
159

skipif mysql # not compatible
query I rowsort label-3278
SELECT + col0 + - CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
144
147
159

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 * col0 * col1 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN - col1 AND + + 68
----

query I rowsort
SELECT DISTINCT - ( + - col1 ) AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3282
SELECT - COUNT( * ) + - - 64 + - - CAST( NULL AS SIGNED ) * - AVG ( DISTINCT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3282
SELECT - COUNT ( * ) + - - 64 + - - CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 55 col1 FROM tab1 AS cor0 WHERE col1 - - col2 = NULL
----

query I rowsort
SELECT + 77 + + 49 AS col0 FROM tab1 AS cor0
----
126
126
126

query I rowsort
SELECT DISTINCT ( + + col1 ) + + - 73 AS col2 FROM tab2 AS cor0
----
-22
-6
4

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 + - col0 + - + col2 * - col0 * + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + + 66, col2 FROM tab1 WHERE NULL IS NULL
----
66
59
66
68
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT DISTINCT COUNT( * ) * ( 83 ) + 64 col2 FROM tab2
----
313

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3288
SELECT DISTINCT COUNT ( * ) * ( 83 ) + 64 col2 FROM tab2
----
313

query I rowsort
SELECT DISTINCT 45 - - - col2 + + col2 FROM tab1
----
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3290
SELECT ALL + CAST( NULL AS DECIMAL ) + 15 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL + CAST ( NULL AS REAL ) + 15 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 30 - + col1 FROM tab0
----
-51
29
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT + - COUNT( * ) - 39 FROM tab0 WHERE NULL IS NOT NULL
----
-39

skipif mysql # not compatible
query I rowsort label-3292
SELECT + - COUNT ( * ) - 39 FROM tab0 WHERE NULL IS NOT NULL
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT ALL + COUNT( * ) - - 15 AS col0 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL + COUNT ( * ) - - 15 AS col0 FROM tab2
----
18

query II rowsort
SELECT col1, col0 AS col0 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT + - col0 * 27 AS col0 FROM tab0 AS cor0
----
-2349
-2619
-405

query I rowsort
SELECT DISTINCT - 2 AS col1 FROM tab1 AS cor0
----
-2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 45 * + col1 + col2 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3298
SELECT ALL - MAX( - + 5 ) * MAX( - + col0 ), + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-3298
SELECT ALL - MAX ( - + 5 ) * MAX ( - + col0 ), + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT DISTINCT - - SUM( ALL 4 ) + - + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
27

skipif mysql # not compatible
query I rowsort label-3299
SELECT DISTINCT - - SUM ( ALL 4 ) + - + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
27

query I rowsort
SELECT DISTINCT + 15 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3301
SELECT - CAST( NULL AS SIGNED ), - 15 col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-15
NULL
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3301
SELECT - CAST ( NULL AS INTEGER ), - 15 col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-15
NULL
-15

query I rowsort
SELECT + 6 * + col1 + - col1 - - col2 AS col0 FROM tab0 cor0 WHERE NOT - col2 + + + col2 * col2 IS NULL AND NULL IS NULL
----
104
115
452

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT + SUM( col2 ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-3303
SELECT + SUM ( col2 ) FROM tab1 cor0
----
223

onlyif mysql # aggregate syntax: 
query II rowsort label-3304
SELECT DISTINCT COUNT( * ) AS col0, - 31 col0 FROM tab1 cor0
----
3
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3304
SELECT DISTINCT COUNT ( * ) AS col0, - 31 col0 FROM tab1 cor0
----
3
-31

query I rowsort
SELECT ALL - - col0 * col0 * + - 87 * col2 - - col2 AS col0 FROM tab0 AS cor0
----
-6585020
-81039618
-919978

query I rowsort
SELECT - 27 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3307
SELECT COUNT( + 96 ) AS col0, + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 86 IS NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-3307
SELECT COUNT ( + 96 ) AS col0, + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 86 IS NULL
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT COUNT( * ) * - 94 AS col2 FROM tab2 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-3308
SELECT COUNT ( * ) * - 94 AS col2 FROM tab2 AS cor0
----
-282

onlyif mysql # DIV for integer division: 
query I rowsort label-3309
SELECT 73 DIV - col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3309
SELECT 73 / - col0 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3310
SELECT - 84 * CAST( NULL AS SIGNED ) FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3310
SELECT - 84 * CAST ( NULL AS INTEGER ) FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT + COUNT( ALL + 17 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3311
SELECT + COUNT ( ALL + 17 ) col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT COUNT( ALL + - col1 ) FROM tab0 AS cor0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3312
SELECT COUNT ( ALL + - col1 ) FROM tab0 AS cor0 WHERE NULL <> NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = + ( + + 48 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT ALL + COUNT( DISTINCT - col1 ) + - 44 + 85 FROM tab0 cor0
----
44

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL + COUNT ( DISTINCT - col1 ) + - 44 + 85 FROM tab0 cor0
----
44

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col2 + col2 + + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - 19 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3317
SELECT DISTINCT + - 95 - - 94 + - - CAST( - + 74 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-75

skipif mysql # not compatible
query I rowsort label-3317
SELECT DISTINCT + - 95 - - 94 + - - CAST ( - + 74 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3318
SELECT * FROM tab1 AS cor0 WHERE col1 + - CAST( + col1 AS SIGNED ) * col2 + - col0 IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-3318
SELECT * FROM tab1 AS cor0 WHERE col1 + - CAST ( + col1 AS INTEGER ) * col2 + - col0 IN ( col1 )
----

query I rowsort
SELECT DISTINCT - col0 - - col2 + 62 * - col0 FROM tab1 AS cor0
----
-3117
-5296
-5665

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( NOT ( NOT col1 NOT BETWEEN ( + col0 ) AND NULL ) ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3321
SELECT ALL + col1 + + col1 * - CAST( NULL AS DECIMAL ) * + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL + col1 + + col1 * - CAST ( NULL AS REAL ) * + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + - + ( col2 ) FROM tab2 AS cor0
----
-104
-133
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 23 col2, 87 - 41 + + + 15 FROM tab0 AS cor0
----
23
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT + COUNT( + 81 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3325
SELECT + COUNT ( + 81 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT + + 64 - + col1 + - col2 + + - ( - 87 ) * - col1 AS col0 FROM tab1 AS cor0
----
-1264
-4140
-435

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT DISTINCT - 95 + - 92 * - 73 + SUM( - col1 ) AS col0 FROM tab0 AS cor0
----
6518

skipif mysql # not compatible
query I rowsort label-3327
SELECT DISTINCT - 95 + - 92 * - 73 + SUM ( - col1 ) AS col0 FROM tab0 AS cor0
----
6518

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 69 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT ALL - COUNT( * ) + - - 95 FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-3329
SELECT ALL - COUNT ( * ) + - - 95 FROM tab0
----
92

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 7 >= 14 / - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3331
SELECT - SUM( + + col0 ), AVG ( ALL 69 ) AS col2 FROM tab1 WHERE NOT + col2 NOT BETWEEN - - 97 * + ( col2 ) AND - - col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3331
SELECT - SUM ( + + col0 ), AVG ( ALL 69 ) AS col2 FROM tab1 WHERE NOT + col2 NOT BETWEEN - - 97 * + ( col2 ) AND - - col1
----
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + - + 39 IS NOT NULL
----

query I rowsort
SELECT + + col0 * - 54 AS col0 FROM tab1 AS cor0
----
-2754
-4590
-4914

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE col2 * col2 * col2 + 10 + - - ( - 71 ) + + col2 * + col2 IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT col2 + - - 30 AS col0 FROM tab1 AS cor0
----
126
89
98

query I rowsort
SELECT col1 * col1 + + col1 - - - 54 AS col1 FROM tab1
----
-24
156
2202

query I rowsort
SELECT ALL - 60 * col2 AS col2 FROM tab2
----
-1380
-2400
-3480

query I rowsort
SELECT + 66 + + col1 FROM tab2
----
117
133
143

onlyif mysql # DIV for integer division: 
query I rowsort label-3339
SELECT ALL + col2 * col0 DIV + col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3339
SELECT ALL + col2 * col0 / + col2 FROM tab2
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col2 + + col0 + + col1 col1 FROM tab1 AS cor0
----
-127
-28
2

query II rowsort
SELECT ALL + col1 * col1 - 87 - + - 58 + - ( - + col1 ) * - 54 + + + col1 AS col0, - col1 AS col0 FROM tab2
----
-131
-51
1819
-77
909
-67

query III rowsort
SELECT ALL * FROM tab2 WHERE - - ( 11 ) * - 83 + + 68 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT ALL COUNT( * ) * + - 46 FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL COUNT ( * ) * + - 46 FROM tab0
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3344
SELECT ALL + COUNT( * ) * - + CAST( NULL AS SIGNED ) * + + MIN( ALL + + col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) * + + MIN ( ALL + + col2 ) FROM tab0
----
NULL

query I rowsort
SELECT + + col2 + + 83 AS col2 FROM tab1 AS cor0
----
142
151
179

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3346
SELECT ALL + COUNT( * ) DIV - 10 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL + COUNT ( * ) / - 10 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 53 + 65 * - col0 + col0 AS col0 FROM tab2 AS cor0
----
-2891
-4043
-4747

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 col0 FROM tab1 AS cor0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3349
SELECT ALL 27 DIV 64 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL 27 / 64 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col0 + 27 + + col1 * + 90 AS col0 FROM tab0 AS cor0
----
2004
214
7332

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 = + + col1 * - col0 + + + 94 - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT - COUNT( * ) * + ( COUNT( * ) ) + - COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-3352
SELECT - COUNT ( * ) * + ( COUNT ( * ) ) + - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-18

query I rowsort
SELECT ALL col1 * - + ( - - col1 ) AS col0 FROM tab0
----
-1
-441
-6561

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 / + col0 NOT BETWEEN col1 + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT DISTINCT 89 * + + MAX( ALL - 98 ) FROM tab0, tab1 AS cor0
----
-8722

skipif mysql # not compatible
query I rowsort label-3355
SELECT DISTINCT 89 * + + MAX ( ALL - 98 ) FROM tab0, tab1 AS cor0
----
-8722

query I rowsort
SELECT DISTINCT col0 - - col0 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 26 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3358
SELECT ALL * FROM tab2 WHERE - 89 * - 33 * - + col0 IN ( + col0 + + CAST( NULL AS SIGNED ), + col1 )
----

skipif mysql # not compatible
query III rowsort label-3358
SELECT ALL * FROM tab2 WHERE - 89 * - 33 * - + col0 IN ( + col0 + + CAST ( NULL AS INTEGER ), + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT - - ( - MIN( 18 ) ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-3359
SELECT - - ( - MIN ( 18 ) ) FROM tab0 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT ALL COUNT( + - 11 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL COUNT ( + - 11 ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 65 col1 FROM tab0 AS cor0
----
-65
-65
-65

query III rowsort
SELECT * FROM tab2 WHERE NOT + 84 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3363
SELECT DISTINCT ( - - 47 ) * - - ( - col1 ) / - + CAST( NULL AS SIGNED ) + 81 + 36 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3363
SELECT DISTINCT ( - - 47 ) * - - ( - col1 ) / - + CAST ( NULL AS INTEGER ) + 81 + 36 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 + - col2 BETWEEN + col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 49 + - 49 IS NOT NULL
----

query I rowsort
SELECT col0 + ( - + col0 ) FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 <= - ( + + col0 )
----

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 AS cor0 WHERE ( + col0 ) IS NULL
----

query I rowsort
SELECT - - 9 FROM tab0 cor0 WHERE 79 * + - 22 + - col2 / - col2 * col0 IS NOT NULL
----
9
9
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3370
SELECT ALL CAST( NULL AS SIGNED ) + col2 * - col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL CAST ( NULL AS INTEGER ) + col2 * - col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 14 FROM tab0 AS cor0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT DISTINCT 42 * - 71 * - MAX( ALL + + col0 ) FROM tab2
----
223650

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT 42 * - 71 * - MAX ( ALL + + col0 ) FROM tab2
----
223650

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT DISTINCT - COUNT( * ) + - + COUNT( * ) AS col0 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-3373
SELECT DISTINCT - COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab2
----
-6

query I rowsort
SELECT - ( col0 ) * + + col1 + - + col2 FROM tab1
----
-4345
-484
-810

query I rowsort
SELECT - 57 * + col0 * - col2 FROM tab1
----
279072
285855
352716

query I rowsort
SELECT - 65 + + col2 AS col2 FROM tab0 AS cor0
----
-18
-55
34

query I rowsort
SELECT 25 + + - ( + ( - col0 ) ) * - 54 + + col2 AS col0 FROM tab2 AS cor0
----
-2436
-3391
-3967

query I rowsort
SELECT ALL col1 + + + col0 AS col2 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT + 49 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT - COUNT( + + col1 ) * - COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-3380
SELECT - COUNT ( + + col1 ) * - COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
9

query II rowsort
SELECT ALL col2 AS col2, + col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 77 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + ( - col0 ) AS col1 FROM tab1 cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT ALL - COUNT( DISTINCT - 59 ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL - COUNT ( DISTINCT - 59 ) AS col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT 11 * + 99 * + 84 AS col2 FROM tab1 AS cor0
----
91476
91476
91476

query II rowsort
SELECT + col1 * + col2 AS col0, col1 FROM tab1 cor0
----
1344
14
295
5
3196
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT - SUM( ALL - + col1 ) * + + 94 col0 FROM tab2 AS cor0
----
18330

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3387
SELECT - SUM ( ALL - + col1 ) * + + 94 col0 FROM tab2 AS cor0
----
18330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3388
SELECT CAST( NULL AS SIGNED ) * + - 23 + + 33 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3388
SELECT CAST ( NULL AS INTEGER ) * + - 23 + + 33 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT DISTINCT - 91 * + MIN( + + col0 ) AS col2 FROM tab2 AS cor0
----
-4186

skipif mysql # not compatible
query I rowsort label-3389
SELECT DISTINCT - 91 * + MIN ( + + col0 ) AS col2 FROM tab2 AS cor0
----
-4186

query II rowsort
SELECT ALL col0 * + + 15 AS col2, + col1 + - col2 AS col2 FROM tab2
----
1125
9
690
28
960
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3391
SELECT DISTINCT COUNT( * ) DIV - 62 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3391
SELECT DISTINCT COUNT ( * ) / - 62 AS col1 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + + col2 col2 FROM tab2 WHERE NOT 64 NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * col0 AS col2 FROM tab2 WHERE NOT - col2 <> 55
----

query I rowsort
SELECT ALL col1 * - + 34 FROM tab1
----
-1598
-170
-476

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3395
SELECT DISTINCT - COUNT( - 19 ) DIV - - 87 + + COUNT( * ) + - + 72 AS col0 FROM tab1 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3395
SELECT DISTINCT - COUNT ( - 19 ) / - - 87 + + COUNT ( * ) + - + 72 AS col0 FROM tab1 cor0
----
-69

query I rowsort
SELECT DISTINCT - 26 + + + col2 + + 21 + - col1 FROM tab1 AS cor0
----
16
49
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3397
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, - ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-3397
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, - ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3398
SELECT DISTINCT + + COUNT( * ) DIV - SUM( - 51 ) FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3398
SELECT DISTINCT + + COUNT ( * ) / - SUM ( - 51 ) FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
0

query I rowsort
SELECT - 91 / - col0 + 6 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3400
SELECT + - 45 DIV + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3400
SELECT + - 45 / + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT ( col1 ) * + + ( + - col0 ) = + col1
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT + MIN( ALL - - ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3402
SELECT + MIN ( ALL - - ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT DISTINCT + - MAX( - 33 ) AS col1 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT + - MAX ( - 33 ) AS col1 FROM tab1 AS cor0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-3404
SELECT + col0 DIV - 36 - - 16 * ( + 87 ) - + 36 * col0 FROM tab2 AS cor0
----
-1310
-265
-913

skipif mysql # not compatible
query I rowsort label-3404
SELECT + col0 / - 36 - - 16 * ( + 87 ) - + 36 * col0 FROM tab2 AS cor0
----
-1310
-265
-913

query I rowsort
SELECT - 98 + col1 + - col2 * - 39 * + - 93 * - 58 FROM tab0 AS cor0
----
20826137
2103583
9887185

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 44 = + col1 AND 85 - - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 17 + 73 AS col0 FROM tab2 AS cor0
----
90

query I rowsort
SELECT ALL col0 + + col1 + + + col1 - - 45 * - col2 * 2 * + 1 * - + ( - + 35 ) FROM tab2 AS cor0
----
-125782
-182491
-72302

query I rowsort
SELECT + col0 + 80 - - + col1 AS col2 FROM tab2
----
177
221
222

query I rowsort
SELECT - col1 + - col1 - - col1 FROM tab1
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3411
SELECT DISTINCT 35 + + col2 * col2 DIV + - col1 + col0 AS col0 FROM tab0
----
-9669
118
23

skipif mysql # not compatible
query I rowsort label-3411
SELECT DISTINCT 35 + + col2 * col2 / + - col1 + col0 AS col0 FROM tab0
----
-9669
118
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT + 74 + ( - COUNT( * ) ) FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-3412
SELECT + 74 + ( - COUNT ( * ) ) FROM tab0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT MIN( - + ( ( + col1 ) ) ) AS col1 FROM tab1 WHERE ( NULL ) IS NULL
----
-47

skipif mysql # not compatible
query I rowsort label-3413
SELECT MIN ( - + ( ( + col1 ) ) ) AS col1 FROM tab1 WHERE ( NULL ) IS NULL
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3414
SELECT CAST( + ( - - COUNT( * ) ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3414
SELECT CAST ( + ( - - COUNT ( * ) ) AS INTEGER ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT DISTINCT 52 + - COUNT( * ) FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT 52 + - COUNT ( * ) FROM tab2
----
49

query II rowsort
SELECT + col2 AS col0, ( + col2 ) FROM tab2
----
23
23
40
40
58
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN col0 AND - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT COUNT( * ) + - 8 - - COUNT( * ) * - MAX( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-296

skipif mysql # not compatible
query I rowsort label-3418
SELECT COUNT ( * ) + - 8 - - COUNT ( * ) * - MAX ( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-296

query I rowsort
SELECT - + col2 * ( - 80 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( col1 < - + ( col0 ) + + 98 )
----
5440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + ( + col2 ) col2 FROM tab2 cor0
----
1600
3364
529

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - - col1 <= - 26 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT DISTINCT 84 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-3422
SELECT DISTINCT 84 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3423
SELECT ALL 26 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL 26 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col0, col0 * - 38 FROM tab2
----
46
-1748
64
-2432
75
-2850

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 20 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3426
SELECT DISTINCT + COUNT( * ), 2 * COUNT( * ) AS col2 FROM tab0
----
3
6

skipif mysql # not compatible
query II rowsort label-3426
SELECT DISTINCT + COUNT ( * ), 2 * COUNT ( * ) AS col2 FROM tab0
----
3
6

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NULL > - 75
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 74 col0 FROM tab2 AS cor0
----
-74
-74
-74

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 = 83 + + 20
----

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 40 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3431
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3432
SELECT DISTINCT - - ( - CAST( NULL AS DECIMAL ) ) * + 51, - 5 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 49 IS NULL
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-3432
SELECT DISTINCT - - ( - CAST ( NULL AS REAL ) ) * + 51, - 5 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 49 IS NULL
----
NULL
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT ALL - COUNT( - + 73 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL - COUNT ( - + 73 ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT + - col1 * - 53 + col2 FROM tab1 AS cor0 WHERE col0 + + col2 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * + col2 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT ALL + MAX( - col2 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3436
SELECT ALL + MAX ( - col2 ) AS col1 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT ALL + + 68 * - + col1 AS col2 FROM tab2 cor0
----
-3468
-4556
-5236

onlyif mysql # DIV for integer division: 
query I rowsort label-3438
SELECT + - col2 DIV - + 71 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3438
SELECT + - col2 / - + 71 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 col2 FROM tab1 AS cor0
----
19

onlyif mysql # DIV for integer division: 
query II rowsort label-3440
SELECT + col1 AS col1, 16 DIV - col2 AS col0 FROM tab0
----
1
0
21
-1
81
0

skipif mysql # not compatible
query II rowsort label-3440
SELECT + col1 AS col1, 16 / - col2 AS col0 FROM tab0
----
1
0
21
-1
81
0

query I rowsort
SELECT col0 * col0 * + - col2 * + 73 AS col2 FROM tab0
----
-5525370
-67998843
-771975

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3442
SELECT DISTINCT COUNT( * ) - MIN( DISTINCT - - col0 ) AS col2, COUNT( * ) DIV - COUNT( * ) FROM tab1
----
-48
-1

skipif mysql # not compatible
query II rowsort label-3442
SELECT DISTINCT COUNT ( * ) - MIN ( DISTINCT - - col0 ) AS col2, COUNT ( * ) / - COUNT ( * ) FROM tab1
----
-48
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT ALL - MIN( - 55 ) col1 FROM tab0
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3443
SELECT ALL - MIN ( - 55 ) col1 FROM tab0
----
55

query I rowsort
SELECT - col0 - - + 34 - - + ( - + col2 ) AS col1 FROM tab0
----
-162
-28
-63

query I rowsort
SELECT DISTINCT col0 + col2 + 4 AS col0 FROM tab1
----
148
151
163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 65 col0, col0 AS col1 FROM tab2
----
65
46
65
64
65
75

query I rowsort
SELECT ALL ( + + col2 ) - - ( + 10 ) + 18 * + - col1 AS col2 FROM tab0
----
-1401
-358
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3448
SELECT + 11 DIV - + col2 + - + 97 + + - col1 + + + 76 AS col2 FROM tab1 AS cor0
----
-26
-35
-68

skipif mysql # not compatible
query I rowsort label-3448
SELECT + 11 / - + col2 + - + 97 + + - col1 + + + 76 AS col2 FROM tab1 AS cor0
----
-26
-35
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT DISTINCT - 9 + - - SUM( - + ( + 58 ) ) + + SUM( DISTINCT - col2 ) FROM tab0 AS cor0
----
-339

skipif mysql # not compatible
query I rowsort label-3449
SELECT DISTINCT - 9 + - - SUM ( - + ( + 58 ) ) + + SUM ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-339

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - - col1 IS NULL )
----

query I rowsort
SELECT DISTINCT - + 88 FROM tab0 WHERE NULL >= 11 * col0 - - col1 * col2 + + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + col2 <= ( - - col2 + - col2 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 86 * - 50 FROM tab1 AS cor0
----
4300
4300
4300

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3455
SELECT + COUNT( * ) AS col1, - 32 AS col2 FROM tab2
----
3
-32

skipif mysql # not compatible
query II rowsort label-3455
SELECT + COUNT ( * ) AS col1, - 32 AS col2 FROM tab2
----
3
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 col0 FROM tab0
----
4
4
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3457
SELECT - CAST( + ( + COUNT( * ) ) AS SIGNED ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3457
SELECT - CAST ( + ( + COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT ALL + col1 * - - col2 AS col0 FROM tab1
----
1344
295
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3459
SELECT DISTINCT - SUM( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3459
SELECT DISTINCT - SUM ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT + + col1 * + col0 / + + col2 IS NULL
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, ( 16 ) AS col1 FROM tab2
----
51
16
67
16
77
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3462
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
0

query I rowsort
SELECT ALL - 54 * col2 + - + col1 AS col2 FROM tab1 cor0
----
-3191
-3719
-5198

query I rowsort
SELECT - + ( 0 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 40 + + - col2 AS col0 FROM tab0
----
-59
-7
30

query I rowsort
SELECT DISTINCT - 33 + + + col0 FROM tab2
----
13
31
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT ALL COUNT( * ) * - + 74 FROM tab2
----
-222

skipif mysql # not compatible
query I rowsort label-3467
SELECT ALL COUNT ( * ) * - + 74 FROM tab2
----
-222

query I rowsort
SELECT ALL col2 * - col0 * + + col0 AS col1 FROM tab1 AS cor0
----
-249696
-426275
-563108

query I rowsort
SELECT - 31 * ( - + col2 ) FROM tab0 cor0 WHERE ( col1 + + col1 IS NOT NULL )
----
1457
3069
310

onlyif mysql # DIV for integer division: 
query I rowsort label-3470
SELECT DISTINCT + ( + + col1 ) + + + col0 DIV + 42 + + + col1 AS col2 FROM tab2 AS cor0
----
103
135
155

skipif mysql # not compatible
query I rowsort label-3470
SELECT DISTINCT + ( + + col1 ) + + + col0 / + 42 + + + col1 AS col2 FROM tab2 AS cor0
----
103
135
155

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT - COUNT( * ) + + 15 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3471
SELECT - COUNT ( * ) + + 15 FROM tab0 AS cor0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3472
SELECT col1 + col1 DIV 10 * - col2 FROM tab0 AS cor0
----
-295
1
1

skipif mysql # not compatible
query I rowsort label-3472
SELECT col1 + col1 / 10 * - col2 FROM tab0 AS cor0
----
-295
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3473
SELECT - + CAST( + 80 AS SIGNED ) + + - 13 FROM tab0 AS cor0
----
-93
-93
-93

skipif mysql # not compatible
query I rowsort label-3473
SELECT - + CAST ( + 80 AS INTEGER ) + + - 13 FROM tab0 AS cor0
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT DISTINCT + ( COUNT( * ) ) + - - 65 AS col2 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT + ( COUNT ( * ) ) + - - 65 AS col2 FROM tab0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT + COUNT( * ) * + 65 + + - SUM( DISTINCT + 92 ) AS col0 FROM tab1
----
103

skipif mysql # not compatible
query I rowsort label-3475
SELECT + COUNT ( * ) * + 65 + + - SUM ( DISTINCT + 92 ) AS col0 FROM tab1
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3476
SELECT col2 * ( + 62 ), - CAST( NULL AS SIGNED ) / - - col0 AS col1 FROM tab0
----
2914
NULL
6138
NULL
620
NULL

skipif mysql # not compatible
query II rowsort label-3476
SELECT col2 * ( + 62 ), - CAST ( NULL AS INTEGER ) / - - col0 AS col1 FROM tab0
----
2914
NULL
6138
NULL
620
NULL

query I rowsort
SELECT DISTINCT + 10 + - 9 + + col2 AS col0 FROM tab2
----
24
41
59

query I rowsort
SELECT ALL col1 + - + 35 AS col2 FROM tab2
----
16
32
42

query I rowsort
SELECT ALL col2 * col1 - + + col2 * col1 * col1 * + - 29 * col1 AS col0 FROM tab1
----
204742152
214170
7640640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 col2 FROM tab1
----
23
23
23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3481
SELECT ALL CAST( NULL AS SIGNED ) * 7 AS col1, + col2 DIV + 39 + - ( - + 74 ) AS col1 FROM tab2 AS cor0
----
NULL
74
NULL
75
NULL
75

skipif mysql # not compatible
query II rowsort label-3481
SELECT ALL CAST ( NULL AS INTEGER ) * 7 AS col1, + col2 / + 39 + - ( - + 74 ) AS col1 FROM tab2 AS cor0
----
NULL
74
NULL
75
NULL
75

query I rowsort
SELECT - 4 - - - col1 AS col2 FROM tab2 AS cor0
----
-55
-71
-81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 63 * - 29 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3484
SELECT + CAST( - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ), + CAST( NULL AS SIGNED ), + COUNT( * ) AS col2 FROM tab0
----
NULL
NULL
3

skipif mysql # not compatible
query III rowsort label-3484
SELECT + CAST ( - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ), + CAST ( NULL AS INTEGER ), + COUNT ( * ) AS col2 FROM tab0
----
NULL
NULL
3

query II rowsort
SELECT + col1, col2 FROM tab1 cor0
----
14
96
47
68
5
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 43 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT DISTINCT + COUNT( ALL + - col0 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3487
SELECT DISTINCT + COUNT ( ALL + - col0 ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT 56 * + ( + SUM( + + col1 ) ) AS col0 FROM tab2
----
10920

skipif mysql # not compatible
query I rowsort label-3488
SELECT 56 * + ( + SUM ( + + col1 ) ) AS col0 FROM tab2
----
10920

onlyif mysql # aggregate syntax: 
query II rowsort label-3489
SELECT ALL + ( - + 36 ) col0, COUNT( * ) + - - 72 AS col2 FROM tab1
----
-36
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3489
SELECT ALL + ( - + 36 ) col0, COUNT ( * ) + - - 72 AS col2 FROM tab1
----
-36
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3490
SELECT ALL + CAST( + ( col1 ) AS SIGNED ) col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3490
SELECT ALL + CAST ( + ( col1 ) AS INTEGER ) col1 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE + 37 < NULL
----

query I rowsort
SELECT ALL + - ( - + col1 ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3493
SELECT DISTINCT - CAST( + col1 AS SIGNED ) * 38 FROM tab0 AS cor0
----
-3078
-38
-798

skipif mysql # not compatible
query I rowsort label-3493
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) * 38 FROM tab0 AS cor0
----
-3078
-38
-798

query I rowsort
SELECT - col1 + - + 65 - + 76 FROM tab0
----
-142
-162
-222

query I rowsort
SELECT ALL ( - - col0 ) + ( - col1 ) FROM tab2
----
-13
-5
8

onlyif mysql # DIV for integer division: 
query I rowsort label-3496
SELECT col1 DIV col1 + + ( col0 ) FROM tab0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-3496
SELECT col1 / col1 + + ( col0 ) FROM tab0
----
16
88
98

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 WHERE col2 * + 94 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3498
SELECT ALL - 53 DIV - col2 col0 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3498
SELECT ALL - 53 / - col2 col0 FROM tab2 AS cor0
----
0
1
2

query I rowsort
SELECT ALL col1 * + - 16 * - - 88 * col0 FROM tab2 cor0
----
-3303168
-6938624
-7075200

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT DISTINCT - 60 * - - 97 + COUNT( * ) FROM tab1 AS cor0
----
-5817

skipif mysql # not compatible
query I rowsort label-3500
SELECT DISTINCT - 60 * - - 97 + COUNT ( * ) FROM tab1 AS cor0
----
-5817

query I rowsort
SELECT 27 AS col2 FROM tab2 cor0 WHERE + col2 IS NOT NULL AND NOT col1 NOT BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT + - COUNT( * ) * + 31 - - MIN( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-184

skipif mysql # not compatible
query I rowsort label-3502
SELECT + - COUNT ( * ) * + 31 - - MIN ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-184

query I rowsort
SELECT + ( - col0 ) - - - col1 AS col2 FROM tab2
----
-141
-142
-97

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT + col0 + ( col2 ) AS col2 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT 11 + + COUNT( * ) AS col2 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-3506
SELECT 11 + + COUNT ( * ) AS col2 FROM tab0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3507
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + col0, col0, 54 * - CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3507
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + col0, col0, 54 * - CAST ( col2 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3508
SELECT ALL - col2 DIV - col1 - col2 * - - col0 * - - col1 FROM tab0 AS cor0
----
-18270
-57105
-9504

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL - col2 / - col1 - col2 * - - col0 * - - col1 FROM tab0 AS cor0
----
-18270
-57105
-9504

query I rowsort
SELECT ( - col2 ) * - + col1 + col2 * + - 41 FROM tab1 AS cor0
----
-2124
-2592
408

query II rowsort
SELECT DISTINCT + + col0, + 19 AS col2 FROM tab1 AS cor0
----
51
19
85
19
91
19

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE col0 * col0 IS NULL
----

query I rowsort
SELECT - + 28 AS col0 FROM tab1 cor0
----
-28
-28
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3513
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3513
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3514
SELECT DISTINCT + CAST( + col1 AS SIGNED ) * col2 AS col0 FROM tab0 cor0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-3514
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * col2 AS col0 FROM tab0 cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT DISTINCT + MAX( + - 53 ) FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-3515
SELECT DISTINCT + MAX ( + - 53 ) FROM tab0 AS cor0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

query I rowsort
SELECT ALL ( + 96 ) FROM tab0 AS cor0
----
96
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3518
SELECT DISTINCT + col1 + CAST( + + col1 AS SIGNED ) - + col1 AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT + col1 + CAST ( + + col1 AS INTEGER ) - + col1 AS col1 FROM tab1
----
14
47
5

query II rowsort
SELECT ALL - col2 AS col1, - col2 FROM tab0
----
-10
-10
-47
-47
-99
-99

query I rowsort
SELECT DISTINCT AVG ( ALL - - col0 ) AS col0 FROM tab0 WHERE NOT NULL = col0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 + - 95 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * + - col1 - + col1 BETWEEN - + col1 / - ( col2 ) AND NULL
----

query II rowsort
SELECT - - col0, - ( + 47 ) AS col2 FROM tab0 AS cor0
----
15
-47
87
-47
97
-47

query II rowsort
SELECT + + 21 AS col2, + col1 + - - col2 + + - ( - - col0 ) AS col1 FROM tab1 AS cor0
----
21
-21
21
24
21
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 2 col1 FROM tab1 cor0
----
2
2
2

query I rowsort
SELECT DISTINCT + col0 + - col0 * + + ( - col1 ) AS col0 FROM tab2 cor0
----
2392
4992
5100

query I rowsort
SELECT ALL 17 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 NOT BETWEEN - - 44 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT - COUNT( * ) AS col2 FROM tab2 cor0 WHERE - 34 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3529
SELECT - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE - 34 IS NOT NULL
----
-3

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT - col1 + + - 3 <= NULL
----

query I rowsort
SELECT 42 + + col2 AS col1 FROM tab0 AS cor0
----
141
52
89

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT + 27 + + - col2 FROM tab1 AS cor0
----
-32
-41
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT + COUNT( col1 ) + + ( - - ( COUNT( * ) ) ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3534
SELECT + COUNT ( col1 ) + + ( - - ( COUNT ( * ) ) ) AS col1 FROM tab2 AS cor0
----
6

query I rowsort
SELECT 78 + + 3 FROM tab1 AS cor0
----
81
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3536
SELECT + col2 / CAST( NULL AS SIGNED ) * - + col1 - - col1 * col1 AS col2 FROM tab1 AS cor0 WHERE + 69 <> - ( + col0 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3536
SELECT + col2 / CAST ( NULL AS INTEGER ) * - + col1 - - col1 * col1 AS col2 FROM tab1 AS cor0 WHERE + 69 <> - ( + col0 )
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + 75 ) FROM tab0 cor0 WHERE ( NULL ) BETWEEN + + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3538
SELECT DISTINCT - col1 + + col2 * - col0, col0 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + - col2 * + - col0 IN ( col2 * + col0 + 70 / - 57 + + col2 + 3, + 54 + + 33 )
----

skipif mysql # not compatible
query II rowsort label-3538
SELECT DISTINCT - col1 + + col2 * - col0, col0 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + - col2 * + - col0 IN ( col2 * + col0 + 70 / - 57 + + col2 + 3, + 54 + + 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT ALL 32 * + MAX( + 96 ) + + COUNT( * ) AS col0 FROM tab0
----
3075

skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL 32 * + MAX ( + 96 ) + + COUNT ( * ) AS col0 FROM tab0
----
3075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3540
SELECT ALL CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT - COUNT( - col2 ) FROM tab0 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3541
SELECT - COUNT ( - col2 ) FROM tab0 WHERE NOT - col2 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + ( 97 ) * 89 FROM tab1
----
8633

query I rowsort
SELECT DISTINCT col0 * - - 10 FROM tab0
----
150
870
970

query II rowsort
SELECT col1, col1 * - col0 - + ( + - col1 ) AS col0 FROM tab2
----
51
-2295
67
-4958
77
-4851

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT DISTINCT - MAX( - - 21 ) FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT - MAX ( - - 21 ) FROM tab2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT - SUM( col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3546
SELECT - SUM ( col0 ) AS col1 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT + - col0 * - + col1 AS col1 FROM tab1 cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT ALL - SUM( DISTINCT 42 ) AS col0 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-3548
SELECT ALL - SUM ( DISTINCT 42 ) AS col0 FROM tab1 AS cor0
----
-42

query II rowsort
SELECT DISTINCT - 13 * col2 - + + col2 + col2 + - + col2, 12 + col2 AS col2 FROM tab2 AS cor0
----
-322
35
-560
52
-812
70

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 76 IS NOT NULL
----

query I rowsort
SELECT - 76 * + - 58 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a72f3073185c2b9c3fc122777691b451

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT - col1 * - col2 + + 29 AS col1 FROM tab0 AS cor0
----
128
239
3836

query II rowsort
SELECT + - col2, 66 AS col0 FROM tab2 AS cor0
----
-23
66
-40
66
-58
66

query I rowsort
SELECT + + 52 AS col2 FROM tab2 cor0
----
52
52
52

query I rowsort
SELECT DISTINCT + col0 + + col0 * + col1 + col1 AS col2 FROM tab0 cor0
----
1311
1935
195

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NULL >= col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3558
SELECT + 6 DIV + col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3558
SELECT + 6 / + col1 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT ALL + SUM( DISTINCT + col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL + SUM ( DISTINCT + col0 ) FROM tab0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3560
SELECT DISTINCT - col0 * 61 + - - CAST( - 43 AS SIGNED ) FROM tab0
----
-5350
-5960
-958

skipif mysql # not compatible
query I rowsort label-3560
SELECT DISTINCT - col0 * 61 + - - CAST ( - 43 AS INTEGER ) FROM tab0
----
-5350
-5960
-958

query I rowsort
SELECT + col1 + - col0 FROM tab2 WHERE ( NOT NULL <> ( NULL ) )
----

query I rowsort
SELECT ALL + ( 37 ) * + col0 + col1 FROM tab2 cor0
----
1753
2445
2842

query I rowsort
SELECT + - col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) = + - col1 / 10 + + + col0 + - col2
----

query I rowsort
SELECT ALL + col0 + - + col0 + + + col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT - col0 - - + 48 AS col2 FROM tab2
----
-16
-27
2

query I rowsort
SELECT + col0 + - + col0 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 25 + 16 > NULL
----

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN - + 12 AND 43 + - + col1 + + + col2 * + 49 * - - col0
----
1

query I rowsort
SELECT DISTINCT + ( ( + 30 ) ) FROM tab0 AS cor0
----
30

query II rowsort
SELECT - col0 AS col0, + col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT ( NULL ) IS NULL ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= - 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT SUM( ALL + + col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-3572
SELECT SUM ( ALL + + col0 ) AS col1 FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT + 55 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
55

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > + 13
----

query I rowsort
SELECT + 78 * + col2 * + col2 FROM tab2
----
124800
262392
41262

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 52 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - col1 ), col0 col1 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT DISTINCT MAX( - col2 ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-3578
SELECT DISTINCT MAX ( - col2 ) AS col1 FROM tab0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3579
SELECT ALL * FROM tab1 WHERE NOT - col2 NOT BETWEEN + ( - - ( CAST( + col1 AS SIGNED ) ) ) AND col0
----

skipif mysql # not compatible
query III rowsort label-3579
SELECT ALL * FROM tab1 WHERE NOT - col2 NOT BETWEEN + ( - - ( CAST ( + col1 AS INTEGER ) ) ) AND col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( - + 30 ) <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT COUNT( * ) + ( COUNT( * ) ) + + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
27

skipif mysql # not compatible
query I rowsort label-3582
SELECT COUNT ( * ) + ( COUNT ( * ) ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
27

query I rowsort
SELECT + + 69 FROM tab2 WHERE NOT ( ( NULL ) IS NULL )
----

query I rowsort
SELECT DISTINCT 13 AS col2 FROM tab1 cor0
----
13

query I rowsort
SELECT + col2 * + col2 * 27 + col1 FROM tab1 AS cor0
----
124895
248846
93992

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT - MAX( DISTINCT - col0 ) col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3586
SELECT - MAX ( DISTINCT - col0 ) col1 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT SUM( col0 ) col2 FROM tab2 cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3587
SELECT SUM ( col0 ) col2 FROM tab2 cor0
----
185

query I rowsort
SELECT ALL + - ( - col2 ) * + col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT - - COUNT( * ) + + + 97 * + + 17 * - - 11 AS col1 FROM tab2 AS cor0
----
18142

skipif mysql # not compatible
query I rowsort label-3589
SELECT - - COUNT ( * ) + + + 97 * + + 17 * - - 11 AS col1 FROM tab2 AS cor0
----
18142

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT DISTINCT - COUNT( DISTINCT - col1 ) + + - 80 + - 63 AS col0 FROM tab1 AS cor0
----
-146

skipif mysql # not compatible
query I rowsort label-3590
SELECT DISTINCT - COUNT ( DISTINCT - col1 ) + + - 80 + - 63 AS col0 FROM tab1 AS cor0
----
-146

query I rowsort
SELECT ALL col2 + - ( + col0 ) AS col1 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT ALL - col1 + - col0 + + + col2 AS col0 FROM tab1
----
-31
-70
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT DISTINCT SUM( + 90 ) AS col0 FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-3593
SELECT DISTINCT SUM ( + 90 ) AS col0 FROM tab0
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT SUM( + - col1 ) * 74 FROM tab2 AS cor0
----
-14430

skipif mysql # not compatible
query I rowsort label-3594
SELECT SUM ( + - col1 ) * 74 FROM tab2 AS cor0
----
-14430

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT DISTINCT COUNT( * ) * - - 98 FROM tab1 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-3595
SELECT DISTINCT COUNT ( * ) * - - 98 FROM tab1 AS cor0
----
294

query I rowsort
SELECT DISTINCT col1 * - 67 FROM tab1 AS cor0
----
-3149
-335
-938

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3597
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3598
SELECT + MAX( ALL - - CAST( - col0 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3598
SELECT + MAX ( ALL - - CAST ( - col0 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT - ( 50 ) FROM tab1 AS cor0
----
-50
-50
-50

query I rowsort
SELECT DISTINCT + 91 FROM tab0 WHERE 39 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3601
SELECT DISTINCT col1 DIV col2 - + - col1 AS col1 FROM tab2
----
53
68
78

skipif mysql # not compatible
query I rowsort label-3601
SELECT DISTINCT col1 / col2 - + - col1 AS col1 FROM tab2
----
53
68
78

query I rowsort
SELECT col0 + - col1 + + + 20 * col1 FROM tab0
----
116
1554
486

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE 66 <= NULL
----

query I rowsort
SELECT - 55 * + 72 FROM tab2 AS cor0
----
-3960
-3960
-3960

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 75 * - col1 AND + + col2 + - - 33
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3606
SELECT - col0 * + 81 / - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3606
SELECT - col0 * + 81 / - CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 89 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN + + col2 AND NULL
----

query I rowsort
SELECT DISTINCT - + ( - 18 ) FROM tab0 cor0
----
18

query II rowsort
SELECT - ( col0 ) * - + col2 AS col0, 9 * col0 * + 36 + - 63 AS col2 FROM tab1
----
4896
16461
5015
27477
6188
29421

query I rowsort
SELECT + ( - 42 ) * col1 FROM tab2
----
-2142
-2814
-3234

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT DISTINCT + MIN( col2 ) col2 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3611
SELECT DISTINCT + MIN ( col2 ) col2 FROM tab1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3612
SELECT - col0 AS col1, - CAST( NULL AS SIGNED ) FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-3612
SELECT - col0 AS col1, - CAST ( NULL AS INTEGER ) FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

query I rowsort
SELECT 57 * + 6 FROM tab0
----
342
342
342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 20 ) col1 FROM tab2
----
-20
-20
-20

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col2, col2 col2 FROM tab1
----
51
96
85
59
91
68

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 NOT BETWEEN - col0 + - + 78 AND col0 * + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2 AS col1, col2 AS col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col2 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + - ( + col2 ) FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - 94 * 86 FROM tab0 WHERE NOT - col0 * col1 IS NULL
----
-8084

query I rowsort
SELECT + col2 * col2 + 53 AS col1 FROM tab2
----
1653
3417
582

query I rowsort
SELECT + col1 FROM tab0 WHERE ( col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 NOT BETWEEN ( - col0 ) AND NULL
----
15
81
47
97
1
99

query I rowsort
SELECT ALL + col1 + 72 FROM tab2 WHERE NULL BETWEEN ( + col0 - col0 ) AND 4 / - 66
----

query I rowsort
SELECT + 13 * col0 FROM tab0
----
1131
1261
195

query I rowsort
SELECT DISTINCT + 44 - + 21 AS col0 FROM tab2
----
23

query I rowsort
SELECT DISTINCT + col2 + col2 * 99 FROM tab2
----
2300
4000
5800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3629
SELECT DISTINCT MAX( ALL - CAST( - 95 AS SIGNED ) ) FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-3629
SELECT DISTINCT MAX ( ALL - CAST ( - 95 AS INTEGER ) ) FROM tab1
----
95

query I rowsort
SELECT - col2 * + 61 AS col0 FROM tab0
----
-2867
-6039
-610

query I rowsort
SELECT - col0 * + 26 AS col2 FROM tab1
----
-1326
-2210
-2366

query I rowsort
SELECT + ( + 28 ) * + col1 AS col1 FROM tab1
----
1316
140
392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 * col1 col0 FROM tab0
----
243
3
63

query I rowsort
SELECT col1 + 73 * 8 FROM tab2
----
635
651
661

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) = 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT DISTINCT + 66 + - COUNT( * ) FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-3636
SELECT DISTINCT + 66 + - COUNT ( * ) FROM tab2
----
63

query I rowsort
SELECT 37 + + ( col1 ) AS col0 FROM tab1
----
42
51
84

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( NULL ) AND col2 * + ( - col2 )
----

query I rowsort
SELECT ALL col2 * 67 FROM tab0
----
3149
6633
670

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT ALL 17 * MAX( ALL col1 ) col2 FROM tab0
----
1377

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3640
SELECT ALL 17 * MAX ( ALL col1 ) col2 FROM tab0
----
1377

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT + MIN( - 64 ) + SUM( DISTINCT 35 + col0 ) FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-3641
SELECT + MIN ( - 64 ) + SUM ( DISTINCT 35 + col0 ) FROM tab0
----
240

query I rowsort
SELECT DISTINCT 7 * - 65 FROM tab2
----
-455

query I rowsort
SELECT DISTINCT col1 * 12 AS col2 FROM tab1
----
168
564
60

query I rowsort
SELECT - 51 + - 22 FROM tab1
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT ALL COUNT( * ) + + COUNT( * ) FROM tab1 WHERE NOT + col1 * + col0 = + 84 * 84 - + col1
----
6

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL COUNT ( * ) + + COUNT ( * ) FROM tab1 WHERE NOT + col1 * + col0 = + 84 * 84 - + col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3646
SELECT 84 DIV 61 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3646
SELECT 84 / 61 FROM tab0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3647
SELECT + ( + ( + 60 ) ) DIV 22 AS col0 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-3647
SELECT + ( + ( + 60 ) ) / 22 AS col0 FROM tab2
----
2
2
2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col0 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3649
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3649
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3650
SELECT + col1 * 83 FROM tab1 WHERE CAST( NULL AS SIGNED ) * - 10 + + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3650
SELECT + col1 * 83 FROM tab1 WHERE CAST ( NULL AS INTEGER ) * - 10 + + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= - col1 * col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 - col2 NOT BETWEEN - ( col2 ) * + col2 AND NULL
----

query I rowsort
SELECT DISTINCT 99 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
99

query I rowsort
SELECT + 56 * col2 + + 12 FROM tab0 AS cor0
----
2644
5556
572

query I rowsort
SELECT ALL ( ( col0 ) ) AS col0 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3656
SELECT col0 + CAST( NULL AS SIGNED ) * - CAST( 85 AS SIGNED ) AS col1 FROM tab0 WHERE - col2 * - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3656
SELECT col0 + CAST ( NULL AS INTEGER ) * - CAST ( 85 AS INTEGER ) AS col1 FROM tab0 WHERE - col2 * - col2 IS NULL
----

query I rowsort
SELECT 14 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT DISTINCT SUM( 71 ) * - 27 AS col0 FROM tab2
----
-5751

skipif mysql # not compatible
query I rowsort label-3658
SELECT DISTINCT SUM ( 71 ) * - 27 AS col0 FROM tab2
----
-5751

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 WHERE ( - col2 ) * - col0 < - col2 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3660
SELECT * FROM tab1 cor0 WHERE NOT ( col2 + col0 ) BETWEEN ( NULL ) AND col1 * col1 - - CAST( + col1 + col2 AS SIGNED )
----
85
5
59

skipif mysql # not compatible
query III rowsort label-3660
SELECT * FROM tab1 cor0 WHERE NOT ( col2 + col0 ) BETWEEN ( NULL ) AND col1 * col1 - - CAST ( + col1 + col2 AS INTEGER )
----
85
5
59

query I rowsort
SELECT - 36 * - 80 AS col2 FROM tab0 AS cor0
----
2880
2880
2880

onlyif mysql # DIV for integer division: 
query I rowsort label-3662
SELECT ALL col0 DIV - 99 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL col0 / - 99 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + ( - 9 ) FROM tab1 AS cor0
----
9
9
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3664
SELECT ( MAX( ALL col2 ) ) * COUNT( ALL - col1 / 69 + + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3664
SELECT ( MAX ( ALL col2 ) ) * COUNT ( ALL - col1 / 69 + + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 * - col2 NOT BETWEEN NULL AND ( col0 + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3666
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) = CAST( NULL AS SIGNED ) + col2
----

skipif mysql # not compatible
query III rowsort label-3666
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) = CAST ( NULL AS INTEGER ) + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 + 19 col2 FROM tab1 WHERE NOT ( 98 * 2 + col0 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT COUNT( * ) * ( - COUNT( * ) ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3668
SELECT COUNT ( * ) * ( - COUNT ( * ) ) FROM tab1
----
-9

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) >= - 66 / + 90
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = ( 52 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 50 * 15 ) BETWEEN col0 * col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT 8 * SUM( ALL col1 ) AS col1 FROM tab1
----
528

skipif mysql # not compatible
query I rowsort label-3672
SELECT 8 * SUM ( ALL col1 ) AS col1 FROM tab1
----
528

query I rowsort
SELECT DISTINCT - ( - - 81 ) AS col1 FROM tab2
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3674
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + - MAX( ALL - col2 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + - MAX ( ALL - col2 ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 94 / + 29 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT ALL + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT DISTINCT MAX( - 39 ) FROM tab0 WHERE ( col0 ) NOT BETWEEN NULL AND - 93
----
-39

skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT MAX ( - 39 ) FROM tab0 WHERE ( col0 ) NOT BETWEEN NULL AND - 93
----
-39

query I rowsort
SELECT ALL + + 82 AS col0 FROM tab1 AS cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT - MAX( ALL + + col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3679
SELECT - MAX ( ALL + + col1 ) FROM tab2 AS cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - col0 ) col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3681
SELECT 42 * + 92 - 41 AS col2 FROM tab0 WHERE - CAST( NULL AS SIGNED ) >= + 61 + col2
----

skipif mysql # not compatible
query I rowsort label-3681
SELECT 42 * + 92 - 41 AS col2 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) >= + 61 + col2
----

query I rowsort
SELECT 50 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT DISTINCT + 26 * COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-3683
SELECT DISTINCT + 26 * COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
234

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 <> + + 45 * - col1 + col1
----

query I rowsort
SELECT ALL - - col0 * col0 + col1 * + col1 FROM tab1 cor0
----
10490
2797
7250

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT + SUM( + ( col2 ) ) + + 43 FROM tab1 AS cor0
----
266

skipif mysql # not compatible
query I rowsort label-3686
SELECT + SUM ( + ( col2 ) ) + + 43 FROM tab1 AS cor0
----
266

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN ( col2 / 34 ) AND - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3688
SELECT DISTINCT ( - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 AS cor0 WHERE NULL IN ( ( + col1 ) )
----

skipif mysql # not compatible
query I rowsort label-3688
SELECT DISTINCT ( - CAST ( NULL AS REAL ) ) AS col1 FROM tab2 AS cor0 WHERE NULL IN ( ( + col1 ) )
----

query I rowsort
SELECT 80 + + col1 + - col2 * col0 FROM tab0 AS cor0
----
-544
-769
-9522

onlyif mysql # DIV for integer division: 
query I rowsort label-3690
SELECT col1 * + col1 DIV col1 + + col0 FROM tab0 AS cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-3690
SELECT col1 * + col1 / col1 + + col0 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT - - 19 + - col0 * 24 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT ALL MIN( col2 ) - + 32 FROM tab2 cor0 WHERE NOT - 75 * ( + col0 ) IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-3692
SELECT ALL MIN ( col2 ) - + 32 FROM tab2 cor0 WHERE NOT - 75 * ( + col0 ) IS NULL
----
-9

query I rowsort
SELECT col1 + + col0 + - - col2 FROM tab0 AS cor0
----
118
143
197

query I rowsort
SELECT + 85 + col0 AS col0 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND ( + 30 ) OR NOT col0 * - 1 NOT BETWEEN ( col0 ) + + 48 AND + ( + 22 ) * ( - col1 ) + col1 * 36
----
149
160

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 + + 94 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - - 84 + - - col1 FROM tab0 AS cor0
----
105
165
85

query I rowsort
SELECT 31 + - col0 FROM tab1 cor0
----
-20
-54
-60

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col0 / col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3699
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE ( + 71 ) <> ( - col0 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE ( + 71 ) <> ( - col0 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT ALL - MIN( DISTINCT - + col2 ) + + COUNT( * ) FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL - MIN ( DISTINCT - + col2 ) + + COUNT ( * ) FROM tab2
----
61

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 29 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE - + col2 NOT BETWEEN + + col0 * col2 AND ( + 82 )
----
59
68
96

query I rowsort
SELECT DISTINCT - - col1 * + 20 * + col2 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
26880
5900
63920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3704
SELECT - + col2 - - col2 + col1 * col1 * CAST( NULL AS SIGNED ) - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3704
SELECT - + col2 - - col2 + col1 * col1 * CAST ( NULL AS INTEGER ) - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - + ( col2 ) )
----

query I rowsort
SELECT ( + col2 ) * - col1 - + col0 AS col0 FROM tab0 AS cor0
----
-196
-297
-3822

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3707
SELECT * FROM tab0 cor0 WHERE NOT ( - CAST( + + ( col1 ) AS SIGNED ) ) >= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3707
SELECT * FROM tab0 cor0 WHERE NOT ( - CAST ( + + ( col1 ) AS INTEGER ) ) >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3708
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3708
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + col1 FROM tab2
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL BETWEEN + 48 AND ( + + 23 )
----

query I rowsort
SELECT + 68 * ( + - col2 ) AS col0 FROM tab0
----
-3196
-6732
-680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 30 col1 FROM tab0 cor0
----
-30
-30
-30

query II rowsort
SELECT ALL - + col0 AS col0, - col0 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-3713
SELECT DISTINCT COUNT( * ) AS col1, - 53 col0 FROM tab1
----
3
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3713
SELECT DISTINCT COUNT ( * ) AS col1, - 53 col0 FROM tab1
----
3
-53

query I rowsort
SELECT ALL + col1 * - col1 FROM tab0 WHERE NOT - - col1 + - - 12 NOT IN ( - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( ( + col1 * + col2 + col0 IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3716
SELECT DISTINCT - col1 DIV - 7 AS col0 FROM tab2
----
11
7
9

skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT - col1 / - 7 AS col0 FROM tab2
----
11
7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 * + + 45 * + - col0 col1 FROM tab0 AS cor0
----
-238815
-266265
-41175

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT DISTINCT + COUNT( + col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - - col2
----
0

skipif mysql # not compatible
query I rowsort label-3718
SELECT DISTINCT + COUNT ( + col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - - col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3719
SELECT CAST( - - col2 AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3719
SELECT CAST ( - - col2 AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT - + MIN( DISTINCT col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3720
SELECT - + MIN ( DISTINCT col0 ) FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-3721
SELECT DISTINCT - 86, COUNT( * ) AS col2 FROM tab0 cor0
----
-86
3

skipif mysql # not compatible
query II rowsort label-3721
SELECT DISTINCT - 86, COUNT ( * ) AS col2 FROM tab0 cor0
----
-86
3

query I rowsort
SELECT ALL + col2 * - + col1 + - col2 + - col1 AS col1 FROM tab1 AS cor0
----
-1454
-3311
-359

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 73 + 35, + 80 + col0 col2 FROM tab2
----
108
126
108
144
108
155

query I rowsort
SELECT col0 + + + col0 AS col1 FROM tab0
----
174
194
30

query I rowsort
SELECT ALL + + 71 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 col1 FROM tab0
----
87

query II rowsort
SELECT - col0 * - col0, col1 AS col2 FROM tab0 AS cor0
----
225
81
7569
21
9409
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( - + col1 ) / - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * + - col2 + + 0 + + col1 FROM tab1 AS cor0
----
-4882
-5010
-6141

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3731
SELECT ALL * FROM tab1 AS cor0 WHERE col2 > + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3731
SELECT ALL * FROM tab1 AS cor0 WHERE col2 > + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 97 + + + 97 FROM tab1 AS cor0
----
194

query I rowsort
SELECT DISTINCT - col0 - + + 21 - + col1 * + col1 AS col2 FROM tab0 AS cor0
----
-119
-549
-6597

query I rowsort
SELECT + col2 - 81 FROM tab0
----
-34
-71
18

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 * col1 + - + col0 ) IN ( col0, - 19 * - col2 / 34 )
----

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT ALL - - COUNT( * ) AS col1 FROM tab0 WHERE NOT + 22 - + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL - - COUNT ( * ) AS col1 FROM tab0 WHERE NOT + 22 - + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT ALL + COUNT( * ) * + - COUNT( - col0 ) - 59 FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL + COUNT ( * ) * + - COUNT ( - col0 ) - 59 FROM tab0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3739
SELECT DISTINCT + col1, CAST( - col0 AS SIGNED ) + - + 78 + 87 FROM tab0
----
1
-88
21
-78
81
-6

skipif mysql # not compatible
query II rowsort label-3739
SELECT DISTINCT + col1, CAST ( - col0 AS INTEGER ) + - + 78 + 87 FROM tab0
----
1
-88
21
-78
81
-6

query I rowsort
SELECT + - 6 * - col1 AS col1 FROM tab0 cor0
----
126
486
6

query I rowsort
SELECT DISTINCT - 49 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-49

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( NOT NULL BETWEEN NULL AND + col1 - + col0 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - 50 * - + 34 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT DISTINCT + ( - + MAX( + - col0 ) ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-3744
SELECT DISTINCT + ( - + MAX ( + - col0 ) ) FROM tab0 cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT DISTINCT ( - SUM( DISTINCT 31 ) ) FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT ( - SUM ( DISTINCT 31 ) ) FROM tab2 AS cor0
----
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 82 col0 FROM tab0 AS cor0
----
-82
-82
-82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3747
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( CAST( NULL AS DECIMAL ) + + + col2 > - col2 + col2 + + - 28 ) OR col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3747
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( CAST ( NULL AS REAL ) + + + col2 > - col2 + col2 + + - 28 ) OR col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3748
SELECT - col1 * col0 DIV col1 + - 29 + + + col2 col2 FROM tab0 cor0
----
-106
-27
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3748
SELECT - col1 * col0 / col1 + - 29 + + + col2 col2 FROM tab0 cor0
----
-106
-27
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3749
SELECT ALL + 53 + col0 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL + 53 + col0 * - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 21 * + - col2 * - col0 FROM tab2
----
22218
53760
91350

onlyif mysql # aggregate syntax: 
query II rowsort label-3751
SELECT DISTINCT COUNT( * ), - 26 + - 42 AS col1 FROM tab1
----
3
-68

skipif mysql # not compatible
query II rowsort label-3751
SELECT DISTINCT COUNT ( * ), - 26 + - 42 AS col1 FROM tab1
----
3
-68

query I rowsort
SELECT ALL 30 * - col2 AS col2 FROM tab1
----
-1770
-2040
-2880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3753
SELECT DISTINCT + COUNT( * ) DIV - ( - MAX( col1 ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT + COUNT ( * ) / - ( - MAX ( col1 ) ) FROM tab1
----
0

query I rowsort
SELECT ALL 75 - col0 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( + 70 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 17 IS NOT NULL
----

query I rowsort
SELECT 98 FROM tab0 WHERE NOT + + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col2 * - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3758
SELECT - MAX( DISTINCT - col1 ), + 78 col2 FROM tab1 cor0 WHERE col2 BETWEEN NULL AND col1
----
NULL
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3758
SELECT - MAX ( DISTINCT - col1 ), + 78 col2 FROM tab1 cor0 WHERE col2 BETWEEN NULL AND col1
----
NULL
78

query I rowsort
SELECT ALL 51 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT + 79 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query III rowsort
SELECT * FROM tab0 WHERE + 34 * 89 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= + col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3763
SELECT - SUM( 50 ) * + + 83 * - CAST( NULL AS DECIMAL ) / + COUNT( * ) + - 60 * 51 + + 42 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3763
SELECT - SUM ( 50 ) * + + 83 * - CAST ( NULL AS REAL ) / + COUNT ( * ) + - 60 * 51 + + 42 AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT 27 + SUM( DISTINCT + col2 ) FROM tab0 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-3764
SELECT 27 + SUM ( DISTINCT + col2 ) FROM tab0 AS cor0
----
183

query I rowsort
SELECT 28 + - + col1 AS col2 FROM tab2 AS cor0
----
-23
-39
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3766
SELECT + 22 / + CAST( NULL AS SIGNED ) + 25 * + SUM( - - 34 ) + - COUNT( * ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3766
SELECT + 22 / + CAST ( NULL AS INTEGER ) + 25 * + SUM ( - - 34 ) + - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col2 * col0 + + 13 FROM tab1 AS cor0
----
4909
5028
6201

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT + COUNT( * ) + + - 77 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-3768
SELECT + COUNT ( * ) + + - 77 FROM tab0 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT + COUNT( * ) + + - COUNT( * ) AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3769
SELECT + COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab1 cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 17 ) IS NULL
----

query II rowsort
SELECT ALL - + ( + col2 ), col1 AS col0 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN + 96 - - + col0 AND NULL
----

query I rowsort
SELECT DISTINCT - - 79 FROM tab2 WHERE NOT - + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3774
SELECT DISTINCT col0 + - + col0 + 92 * CAST( - col1 AS SIGNED ) FROM tab1
----
-1288
-4324
-460

skipif mysql # not compatible
query I rowsort label-3774
SELECT DISTINCT col0 + - + col0 + 92 * CAST ( - col1 AS INTEGER ) FROM tab1
----
-1288
-4324
-460

query III rowsort
SELECT * FROM tab0 WHERE - ( + col1 ) IS NULL
----

query II rowsort
SELECT ALL - col2 + - - col0 AS col2, 94 AS col2 FROM tab0
----
-2
94
-32
94
77
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3777
SELECT CAST( - col0 AS SIGNED ) AS col2, + 36 AS col2 FROM tab0
----
-15
36
-87
36
-97
36

skipif mysql # not compatible
query II rowsort label-3777
SELECT CAST ( - col0 AS INTEGER ) AS col2, + 36 AS col2 FROM tab0
----
-15
36
-87
36
-97
36

query II rowsort
SELECT DISTINCT + 55 AS col1, 67 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
55
67

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 12 * + col0 < + col0
----

query I rowsort
SELECT ALL 60 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col0 * + col0 * + - col0 FROM tab2
----
-262144
-421875
-97336

query II rowsort
SELECT DISTINCT 91, - col0 AS col0 FROM tab2
----
91
-46
91
-64
91
-75

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 53 + - + col2 - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3784
SELECT + 75 AS col1, ( - MAX( - - 69 ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
75
-69

skipif mysql # not compatible
query II rowsort label-3784
SELECT + 75 AS col1, ( - MAX ( - - 69 ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
75
-69

query II rowsort
SELECT col2 AS col2, + 16 + - col0 AS col0 FROM tab2
----
23
-30
40
-48
58
-59

query II rowsort
SELECT 5, col2 AS col2 FROM tab2 AS cor0
----
5
23
5
40
5
58

query I rowsort
SELECT ALL + 39 - ( col0 ) FROM tab0 AS cor0 WHERE col2 * + col0 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT DISTINCT - 64 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-3788
SELECT DISTINCT - 64 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
192

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 41 NOT IN ( - ( + + col0 ) * + col1 - + col1 + - col0 + - 62 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - col2 * - 18 AS col0 FROM tab0 AS cor0
----
-1782
-180
-846

query I rowsort
SELECT ALL 87 FROM tab2 cor0 WHERE ( NOT NULL NOT IN ( - - col0 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( + col2 ) <= ( NULL ) )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 17 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * + + col2 FROM tab2
----
1600
3364
529

query I rowsort
SELECT DISTINCT col1 * + 40 AS col0 FROM tab1
----
1880
200
560

query I rowsort
SELECT - 27 * ( - 86 ) FROM tab1
----
2322
2322
2322

onlyif mysql # DIV for integer division: 
query I rowsort label-3797
SELECT 5 DIV col1 col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3797
SELECT 5 / col1 col1 FROM tab1
----
0
0
1

query I rowsort
SELECT + 7 * - 42 FROM tab1
----
-294
-294
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 + - col1 col0 FROM tab2
----
-1109
-2637
-4417

query I rowsort
SELECT DISTINCT 12 * - col1 * - col1 FROM tab2
----
31212
53868
71148

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3802
SELECT * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-3802
SELECT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * - col2 NOT BETWEEN + col1 AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3804
SELECT ALL + col0 * - col1 + - CAST( NULL AS SIGNED ) + - + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL + col0 * - col1 + - CAST ( NULL AS INTEGER ) + - + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3805
SELECT DISTINCT ( + 96 ) DIV - col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT ( + 96 ) / - col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT + + col0 - 39 FROM tab2 AS cor0
----
25
36
7

query I rowsort
SELECT ALL + 57 + 22 AS col0 FROM tab1 AS cor0
----
79
79
79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3808
SELECT - COUNT( * ) * + MAX( DISTINCT 47 ) - + - COUNT( ALL + ( + col2 ) ) + + - COUNT( - col0 ) * - + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3808
SELECT - COUNT ( * ) * + MAX ( DISTINCT 47 ) - + - COUNT ( ALL + ( + col2 ) ) + + - COUNT ( - col0 ) * - + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE col2 IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT + SUM( - col1 ) + - COUNT( * ) AS col1 FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-3810
SELECT + SUM ( - col1 ) + - COUNT ( * ) AS col1 FROM tab2
----
-198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3811
SELECT DISTINCT col1 + - - CAST( - + col1 AS SIGNED ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3811
SELECT DISTINCT col1 + - - CAST ( - + col1 AS INTEGER ) FROM tab0
----
0

query II rowsort
SELECT + 75 AS col1, - col0 AS col0 FROM tab2
----
75
-46
75
-64
75
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( 45 ) col1, col0 FROM tab2
----
-45
46
-45
64
-45
75

query II rowsort
SELECT - ( - - col0 ), col0 FROM tab0
----
-15
15
-87
87
-97
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3815
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, - 14 FROM tab0
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-3815
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, - 14 FROM tab0
----
NULL
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT SUM( 60 ) AS col0 FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-3816
SELECT SUM ( 60 ) AS col0 FROM tab1
----
180

query II rowsort
SELECT ALL col1, col0 + + 27 FROM tab2
----
51
73
67
102
77
91

query I rowsort
SELECT - 87 * - 11 AS col0 FROM tab2 AS cor0
----
957
957
957

query I rowsort
SELECT DISTINCT 18 * + col2 AS col2 FROM tab1
----
1062
1224
1728

query I rowsort
SELECT ( col1 ) * - 25 AS col0 FROM tab1
----
-1175
-125
-350

query I rowsort
SELECT DISTINCT - col2 * 54 / col0 FROM tab0 WHERE NOT 63 NOT BETWEEN NULL AND + 74 + 50 * - + 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT DISTINCT MIN( ALL - + col0 ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT MIN ( ALL - + col0 ) AS col1 FROM tab1
----
-91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 23 * - col1 * col0 - - + col1 = + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 8 * - col1 FROM tab2 AS cor0
----
-408
-536
-616

query I rowsort
SELECT ALL + col2 * - col0 + col1 + col1 FROM tab2 AS cor0
----
-2406
-4216
-956

query I rowsort
SELECT ALL + + 33 AS col2 FROM tab1 AS cor0
----
33
33
33

query I rowsort
SELECT DISTINCT + 50 FROM tab1 AS cor0 WHERE NULL = + col2 * + + 75
----

query I rowsort
SELECT + col2 FROM tab1 cor0 WHERE NOT + col1 IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3829
SELECT DISTINCT + - col2, + 27 + - + ( 98 ) AS col1 FROM tab2 AS cor0 WHERE NOT - 12 / + CAST( 7 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-3829
SELECT DISTINCT + - col2, + 27 + - + ( 98 ) AS col1 FROM tab2 AS cor0 WHERE NOT - 12 / + CAST ( 7 AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 * + col1 + - col2 col1 FROM tab0 AS cor0
----
-128
-2396
-619

query I rowsort
SELECT ALL - col2 * - col2 + - 19 * - - col0 AS col0 FROM tab2
----
-345
1939
384

query I rowsort
SELECT DISTINCT - 84 AS col0 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 5 AS col1 FROM tab0, tab2 cor0
----
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 NOT BETWEEN col2 AND - col1 + + col2
----

query I rowsort
SELECT ALL 94 FROM tab2 WHERE NOT - col1 <> + ( + ( + col0 ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL < + + col1 + - col2 + - col2 * + col1 * col1 / - 45
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL BETWEEN - 50 AND + + 6 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 2 col1 FROM tab1 cor0
----
-2
-2
-2

query I rowsort
SELECT ALL + - 40 * + + col0 FROM tab0 cor0 WHERE NOT col1 IS NULL
----
-3480
-3880
-600

onlyif mysql # aggregate syntax: 
query II rowsort label-3840
SELECT COUNT( * ), - 8 * 7 AS col0 FROM tab0 AS cor0
----
3
-56

skipif mysql # not compatible
query II rowsort label-3840
SELECT COUNT ( * ), - 8 * 7 AS col0 FROM tab0 AS cor0
----
3
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3841
SELECT + + CAST( NULL AS SIGNED ) / - - 0 * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3841
SELECT + + CAST ( NULL AS INTEGER ) / - - 0 * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 18 < - + 41 + - + 20
----
-9

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 18 < - + 41 + - + 20
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 89 = - + 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT - COUNT( * ) + + COUNT( ALL + + col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3844
SELECT - COUNT ( * ) + + COUNT ( ALL + + col1 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT col2 + - 26 AS col2 FROM tab1 cor0 WHERE col2 IN ( 30, + col1 )
----

query I rowsort
SELECT - 24 + 10 + + 4 FROM tab1 AS cor0
----
-10
-10
-10

query I rowsort
SELECT ALL + + 21 * + - 38 AS col0 FROM tab1 AS cor0
----
-798
-798
-798

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT DISTINCT - COUNT( ALL + + 4 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT - COUNT ( ALL + + 4 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3850
SELECT ALL - 40 * - - ( - col1 ) + - col1 - + col2 DIV - 54 FROM tab1 AS cor0
----
1834
196
547

skipif mysql # not compatible
query I rowsort label-3850
SELECT ALL - 40 * - - ( - col1 ) + - col1 - + col2 / - 54 FROM tab1 AS cor0
----
1834
196
547

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( col0 IS NOT NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3852
SELECT DISTINCT + 39 DIV - 71 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT + 39 / - 71 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT ALL 41 * - COUNT( * ) FROM tab2
----
-123

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL 41 * - COUNT ( * ) FROM tab2
----
-123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( col1 ) AS col1, - 61 / - col2 col0 FROM tab0 WHERE NOT + - 14 < col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3855
SELECT ALL + col2 DIV + + col1 AS col0 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL + col2 / + + col1 AS col0 FROM tab0
----
0
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT - - COUNT( * ) * + ( 32 ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3856
SELECT - - COUNT ( * ) * + ( 32 ) AS col0 FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3857
SELECT CAST( + ( - col0 ) AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT - 55 IS NULL
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3857
SELECT CAST ( + ( - col0 ) AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT - 55 IS NULL
----
-46
-64
-75

query I rowsort
SELECT ALL + - 80 AS col1 FROM tab1 AS cor0
----
-80
-80
-80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 15 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 col0, - 72 FROM tab1 cor0
----
14
-72
47
-72
5
-72

query II rowsort
SELECT DISTINCT - + col1, - 84 AS col2 FROM tab1 AS cor0
----
-14
-84
-47
-84
-5
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 27, - 67 col2 FROM tab0 AS cor0
----
-27
-67
-27
-67
-27
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT ALL - COUNT( - 33 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3863
SELECT ALL - COUNT ( - 33 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3864
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) > + 53 - - col1 + + 82
----

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) > + 53 - - col1 + + 82
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3865
SELECT ALL - col2 + - 23 DIV - - col0 AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL - col2 + - 23 / - - col0 AS col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL col2 * col0 + + - col1 FROM tab0 AS cor0
----
624
849
9602

query I rowsort
SELECT DISTINCT col0 + + - col2 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT - - 45 AS col1 FROM tab2 cor0
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3869
SELECT ALL - col0 + - col1 + CAST( NULL AS SIGNED ) AS col1, - col2 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-3869
SELECT ALL - col0 + - col1 + CAST ( NULL AS INTEGER ) AS col1, - col2 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 * col1 col1 FROM tab2
----
4437
5829
6699

query I rowsort
SELECT ALL 0 + - col0 * - + 32 AS col0 FROM tab2
----
1472
2048
2400

query I rowsort
SELECT DISTINCT - 88 - - col2 * - + 36 AS col2 FROM tab1
----
-2212
-2536
-3544

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3873
SELECT 36 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3873
SELECT 36 + - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + col0 + + col2 - - - 22 col1 FROM tab1 AS cor0
----
176
207
228

query II rowsort
SELECT DISTINCT ( - col1 ), + col0 AS col1 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT SUM( - + col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-3876
SELECT SUM ( - + col1 ) FROM tab0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3877
SELECT ALL col0 / + + col1 AS col2 FROM tab0 WHERE - 93 + - CAST( + col0 AS SIGNED ) BETWEEN + + col1 AND 81 * 96
----

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL col0 / + + col1 AS col2 FROM tab0 WHERE - 93 + - CAST ( + col0 AS INTEGER ) BETWEEN + + col1 AND 81 * 96
----

query I rowsort
SELECT - 54 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query I rowsort
SELECT ALL + ( - col1 ) AS col2 FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3880
SELECT ALL + COUNT( * ) * + CAST( NULL AS SIGNED ) * - COUNT( * ) * - + 82 + - 46 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3880
SELECT ALL + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - + 82 + - 46 AS col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT ALL - SUM( + - 29 ) AS col1 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-3882
SELECT ALL - SUM ( + - 29 ) AS col1 FROM tab1 AS cor0
----
87

query I rowsort
SELECT col1 * + col0 * - - col2 * + + col1 + + ( - + col0 ) * - 27 AS col0 FROM tab0 AS cor0
----
12222
386019
4625910

onlyif mysql # DIV for integer division: 
query II rowsort label-3884
SELECT ALL - + 11 AS col1, col2 * col0 DIV - col0 + ( - col0 ) + + col1 FROM tab1 AS cor0
----
-11
-112
-11
-133
-11
-139

skipif mysql # not compatible
query II rowsort label-3884
SELECT ALL - + 11 AS col1, col2 * col0 / - col0 + ( - col0 ) + + col1 FROM tab1 AS cor0
----
-11
-112
-11
-133
-11
-139

query I rowsort
SELECT ALL - - col1 * + col0 * - + 68 * col0 - - col1 AS col0 FROM tab0 AS cor0
----
-10808511
-1239219
-639811

query I rowsort
SELECT ALL - 76 + - + col1 - - - col1 FROM tab2 AS cor0 WHERE NOT + col1 IN ( + 81, 81, + - col1 )
----
-178
-210
-230

query I rowsort
SELECT - AVG ( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE NOT NULL < 68
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3888
SELECT - col1 DIV - 83 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3888
SELECT - col1 / - 83 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 79 * - col0 - col2 <> - col0 * + + col1 + + col2 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3890
SELECT - CAST( NULL AS SIGNED ) * - col0 * + 44 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3890
SELECT - CAST ( NULL AS INTEGER ) * - col0 * + 44 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - 27 AS col1 FROM tab1
----
-1377
-2295
-2457

query I rowsort
SELECT DISTINCT col1 * 18 AS col2 FROM tab1
----
252
846
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT DISTINCT COUNT( * ) * - 1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3893
SELECT DISTINCT COUNT ( * ) * - 1 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 IN ( + + col0, + 64 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3895
SELECT DISTINCT - 79 * - col2 FROM tab2 WHERE + CAST( col0 AS SIGNED ) IS NOT NULL
----
1817
3160
4582

skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT - 79 * - col2 FROM tab2 WHERE + CAST ( col0 AS INTEGER ) IS NOT NULL
----
1817
3160
4582

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3896
SELECT * FROM tab2 WHERE NOT CAST( - 12 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3896
SELECT * FROM tab2 WHERE NOT CAST ( - 12 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3897
SELECT DISTINCT CAST( NULL AS SIGNED ) / + col2 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3897
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + col2 AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 58 BETWEEN + col0 AND NULL )
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT ALL - MAX( ALL + 33 ) FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL - MAX ( ALL + 33 ) FROM tab1 AS cor0
----
-33

query I rowsort
SELECT + col0 * - - 78 + + 86 FROM tab2 cor0
----
3674
5078
5936

query I rowsort
SELECT ALL - + col0 + - 69 - 26 + col0 FROM tab1 AS cor0
----
-95
-95
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3902
SELECT - - 39 * + CAST( NULL AS SIGNED ) + - - col1 * + col1 AS col2, col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-3902
SELECT - - 39 * + CAST ( NULL AS INTEGER ) + - - col1 * + col1 AS col2, col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

query II rowsort
SELECT DISTINCT 33 AS col2, col2 AS col2 FROM tab0
----
33
10
33
47
33
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3904
SELECT + MIN( ALL - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT + MIN ( ALL - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3905
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 WHERE ( NOT NULL IS NULL )
----

skipif mysql # not compatible
query I rowsort label-3905
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3906
SELECT col0 DIV + - 91 + 93 AS col2 FROM tab0 cor0
----
92
93
93

skipif mysql # not compatible
query I rowsort label-3906
SELECT col0 / + - 91 + 93 AS col2 FROM tab0 cor0
----
92
93
93

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3908
SELECT DISTINCT + col2 * 19 * - CAST( - CAST( - + 35 AS SIGNED ) AS SIGNED ) + - 50 * col0 + + 15 + + ( CAST( + + col2 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-17557
-29745
-42247

skipif mysql # not compatible
query I rowsort label-3908
SELECT DISTINCT + col2 * 19 * - CAST ( - CAST ( - + 35 AS INTEGER ) AS INTEGER ) + - 50 * col0 + + 15 + + ( CAST ( + + col2 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-17557
-29745
-42247

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 < NULL
----

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE ( NULL ) < col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3911
SELECT - col0 + + CAST( + + col0 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3911
SELECT - col0 + + CAST ( + + col0 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3912
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 * + col1 + + 65 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3912
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 * + col1 + + 65 AS col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + - col0 * - 91 col1, col0 FROM tab0 cor0
----
1350
15
7830
87
8730
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3914
SELECT ALL 44 + col0 - col1 DIV - + col1 AS col0 FROM tab0
----
132
142
60

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL 44 + col0 - col1 / - + col1 AS col0 FROM tab0
----
132
142
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT COUNT( * ) * - 40 * - - COUNT( * ) FROM tab0 AS cor0
----
-360

skipif mysql # not compatible
query I rowsort label-3915
SELECT COUNT ( * ) * - 40 * - - COUNT ( * ) FROM tab0 AS cor0
----
-360

query I rowsort
SELECT ALL 19 + - col1 * col1 FROM tab0 AS cor0
----
-422
-6542
18

query I rowsort
SELECT + 59 AS col1 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT DISTINCT - + 48 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-48

query I rowsort
SELECT col0 / - col2 FROM tab0 AS cor0 WHERE NOT 64 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT + + MIN( - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3920
SELECT + + MIN ( - col2 ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT ALL + + 90 AS col0 FROM tab0 AS cor0
----
90
90
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3922
SELECT DISTINCT CAST( - ( + - 33 ) AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0
----
1683
2211
2541

skipif mysql # not compatible
query I rowsort label-3922
SELECT DISTINCT CAST ( - ( + - 33 ) AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0
----
1683
2211
2541

query I rowsort
SELECT DISTINCT 20 - - + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
66
84
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3924
SELECT + col0 * + CAST( NULL AS SIGNED ) * - col2 * - + col2 + + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3924
SELECT + col0 * + CAST ( NULL AS INTEGER ) * - col2 * - + col2 + + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 54 ) col1 FROM tab1 AS cor0
----
-54
-54
-54

query I rowsort
SELECT ALL + 98 + col1 FROM tab2 WHERE NULL <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT - ( SUM( DISTINCT + col2 ) ) AS col2 FROM tab1 WHERE NOT + col2 - - col1 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3927
SELECT - ( SUM ( DISTINCT + col2 ) ) AS col2 FROM tab1 WHERE NOT + col2 - - col1 = NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 * - + col0 * + ( - col0 ) AS col2 FROM tab0
----
3375
658503
912673

query I rowsort
SELECT DISTINCT - 99 AS col1 FROM tab2
----
-99

query I rowsort
SELECT ALL 2 * + - ( + 59 ) AS col1 FROM tab2
----
-118
-118
-118

onlyif mysql # DIV for integer division: 
query I rowsort label-3931
SELECT - 50 DIV + - col1 FROM tab1
----
1
10
3

skipif mysql # not compatible
query I rowsort label-3931
SELECT - 50 / + - col1 FROM tab1
----
1
10
3

query I rowsort
SELECT ALL ( - ( 88 ) ) FROM tab0
----
-88
-88
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-3933
SELECT - col0 DIV + ( + 63 ) FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3933
SELECT - col0 / + ( + 63 ) FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3934
SELECT + 80 AS col1, + CAST( + + MAX( ALL col2 ) AS SIGNED ) DIV + + 79 AS col1 FROM tab0
----
80
1

skipif mysql # not compatible
query II rowsort label-3934
SELECT + 80 AS col1, + CAST ( + + MAX ( ALL col2 ) AS INTEGER ) / + + 79 AS col1 FROM tab0
----
80
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, + col2 col0 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3936
SELECT - 35 DIV - + 45 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3936
SELECT - 35 / - + 45 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - 72 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-72
-72
-72

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col1 * col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 23 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + col0 + + col1
----

query I rowsort
SELECT ALL + col2 + + + col2 AS col0 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT - col0 + ( 77 ) * ( - 74 ) AS col0 FROM tab0
----
-5713
-5785
-5795

query III rowsort
SELECT * FROM tab2 WHERE - col1 * - col0 + - col2 - ( - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3943
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 / 98 * 83 + - 14 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 / 98 * 83 + - 14 IS NOT NULL
----

query I rowsort
SELECT ALL ( - + 89 ) + + 53 FROM tab1 AS cor0
----
-36
-36
-36

query I rowsort
SELECT DISTINCT + ( 84 ) FROM tab2 cor0
----
84

query I rowsort
SELECT - 53 AS col2 FROM tab2 AS cor0 WHERE col1 BETWEEN - col0 * + 27 AND - col0
----

query I rowsort
SELECT + col0 - - + col0 FROM tab1
----
102
170
182

onlyif mysql # aggregate syntax: 
query II rowsort label-3948
SELECT DISTINCT 93 + + MAX( ALL + 21 ) AS col1, + 92 FROM tab1
----
114
92

skipif mysql # not compatible
query II rowsort label-3948
SELECT DISTINCT 93 + + MAX ( ALL + 21 ) AS col1, + 92 FROM tab1
----
114
92

query I rowsort
SELECT ALL + col0 - - col1 AS col1 FROM tab0
----
108
96
98

query I rowsort
SELECT + ( - col2 ) + + 56 * + col1 AS col1 FROM tab1
----
221
2564
688

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE col2 - + col1 + - 85 - - + col2 * - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3951
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE col2 - + col1 + - 85 - - + col2 * - col0 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - ( - col1 ) * col1 - + col0 FROM tab2
----
2555
4414
5865

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 74 > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) col2 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3954
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) col2 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT DISTINCT + + MIN( DISTINCT - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT + + MIN ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT - ( + - col2 ) FROM tab2
----
23
40
58

query II rowsort
SELECT ALL - - 54, ( - 6 ) AS col2 FROM tab2 AS cor0
----
54
-6
54
-6
54
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 col0 FROM tab1 AS cor0
----
-13
-13
-13

query I rowsort
SELECT ALL + 35 FROM tab0 AS cor0 WHERE NOT ( NULL NOT BETWEEN NULL AND + 99 + - 60 )
----

query I rowsort
SELECT + + 18 * - ( + + col2 ) AS col1 FROM tab0 AS cor0
----
-1782
-180
-846

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 < - + col0 / - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col0, - col1 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

query I rowsort
SELECT - col2 * - 0 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT ALL COUNT( - 23 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL COUNT ( - 23 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT col1 * + - col0 * + col0 AS col1 FROM tab0
----
-158949
-18225
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT ALL - MIN( col2 ) * - MAX( DISTINCT + 33 ) FROM tab1
----
1947

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL - MIN ( col2 ) * - MAX ( DISTINCT + 33 ) FROM tab1
----
1947

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT - COUNT( - + ( - + 80 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3967
SELECT - COUNT ( - + ( - + 80 ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT DISTINCT MAX( + + 11 ) FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-3968
SELECT DISTINCT MAX ( + + 11 ) FROM tab2
----
11

query I rowsort
SELECT ALL - col1 + + col2 + col1 * - + col2 FROM tab1 WHERE NULL > + ( - 55 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 / 26 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 97 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3972
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) + CAST( NULL AS DECIMAL ) * - col0 * 41 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3972
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) + CAST ( NULL AS REAL ) * - col0 * 41 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3973
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT ALL - - 56 + + 16 FROM tab0 AS cor0
----
72
72
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3975
SELECT DISTINCT + - CAST( + - CAST( - MIN( - - col2 ) AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3975
SELECT DISTINCT + - CAST ( + - CAST ( - MIN ( - - col2 ) AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT col2 + 24 AS col1 FROM tab2 AS cor0
----
47
64
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 95 ) col0 FROM tab1 AS cor0 WHERE col0 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT + COUNT( * ) + - 69 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3978
SELECT + COUNT ( * ) + - 69 FROM tab2 AS cor0
----
-66

query I rowsort
SELECT DISTINCT col1 / - - 23 + - 55 AS col1 FROM tab2 cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT DISTINCT ( - 1 ) + + COUNT( * ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3980
SELECT DISTINCT ( - 1 ) + + COUNT ( * ) FROM tab1 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT - 43 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3981
SELECT - 43 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-46

query I rowsort
SELECT ( - col1 ) + - col0 * - col0 AS col0 FROM tab0 cor0
----
144
7548
9408

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3984
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - + 23 IS NOT NULL OR col0 - CAST( - col0 AS SIGNED ) = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3984
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - + 23 IS NOT NULL OR col0 - CAST ( - col0 AS INTEGER ) = ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT ALL + - MIN( DISTINCT - - col2 ) col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3985
SELECT ALL + - MIN ( DISTINCT - - col2 ) col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE 25 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 BETWEEN 2 * + - col1 AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 51 + 63 FROM tab2
----
114
114
114

query I rowsort
SELECT DISTINCT - 85 - + col1 AS col2 FROM tab1
----
-132
-90
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT - COUNT( * ) * - + 76 col1 FROM tab0
----
228

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3990
SELECT - COUNT ( * ) * - + 76 col1 FROM tab0
----
228

query I rowsort
SELECT ALL col0 * col2 - 45 AS col1 FROM tab0
----
660
825
9558

onlyif mysql # DIV for integer division: 
query I rowsort label-3992
SELECT ALL - - col0 DIV + 5 + - col0 FROM tab1 AS cor0
----
-41
-68
-73

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL - - col0 / + 5 + - col0 FROM tab1 AS cor0
----
-41
-68
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col0 FROM tab0 cor0
----
-50
-50
-50

query II rowsort
SELECT ( + + col0 ), 54 FROM tab2 AS cor0
----
46
54
64
54
75
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT ALL + MIN( - + col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3995
SELECT ALL + MIN ( - + col0 ) AS col2 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT + SUM( ALL - - col2 ) AS col1 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-3996
SELECT + SUM ( ALL - - col2 ) AS col1 FROM tab2 cor0
----
121

query I rowsort
SELECT ALL + 88 AS col1 FROM tab2 AS cor0
----
88
88
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 22 col0 FROM tab2 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT + MAX( + - 16 ) col1 FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3999
SELECT + MAX ( + - 16 ) col1 FROM tab2 AS cor0
----
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 57 col2 FROM tab1 cor0
----
57
57
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4001
SELECT ALL CAST( NULL AS SIGNED ) col1, + CAST( NULL AS SIGNED ) * - SUM( - col1 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4001
SELECT ALL CAST ( NULL AS INTEGER ) col1, + CAST ( NULL AS INTEGER ) * - SUM ( - col1 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT ALL + COUNT( + 5 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL + COUNT ( + 5 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT - col0 AS col1, - col2 AS col1 FROM tab1
----
-51
-96
-85
-59
-91
-68

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT ALL - SUM( DISTINCT 36 ) AS col1 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL - SUM ( DISTINCT 36 ) AS col1 FROM tab0
----
-36

query II rowsort
SELECT + col1, 97 AS col2 FROM tab0
----
1
97
21
97
81
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - col0 col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT ( + COUNT( - ( 50 ) ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4008
SELECT ( + COUNT ( - ( 50 ) ) ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + col1 * - + col2 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query II rowsort
SELECT + 75 * + col0 AS col0, - ( col0 ) + col2 AS col1 FROM tab0 AS cor0
----
1125
32
6525
-77
7275
2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 = col2
----

query I rowsort
SELECT - 42 * - 56 + col2 AS col2 FROM tab2 AS cor0
----
2375
2392
2410

query I rowsort
SELECT + 61 + - + ( + col1 ) + - col2 FROM tab2
----
-13
-56
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4014
SELECT DISTINCT CAST( col2 AS SIGNED ), - col2 + - 86 * - col1 * col2 col2 FROM tab2
----
23
100855
40
264840
58
334138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4014
SELECT DISTINCT CAST ( col2 AS INTEGER ), - col2 + - 86 * - col1 * col2 col2 FROM tab2
----
23
100855
40
264840
58
334138

onlyif mysql # DIV for integer division: 
query II rowsort label-4015
SELECT DISTINCT col1 DIV - - 5 + + col1 AS col0, col0 DIV - + 19 col2 FROM tab1
----
16
-2
56
-4
6
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4015
SELECT DISTINCT col1 / - - 5 + + col1 AS col0, col0 / - + 19 col2 FROM tab1
----
16
-2
56
-4
6
-4

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * - 38 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4017
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 8 - + ( - 49 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4017
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 8 - + ( - 49 ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + 95 <= col2 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT + COUNT( * ) * + 99 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( 23 )
----
0

skipif mysql # not compatible
query I rowsort label-4019
SELECT + COUNT ( * ) * + 99 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( 23 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT ALL + - 33 * - COUNT( * ) AS col1 FROM tab2 cor0
----
99

skipif mysql # not compatible
query I rowsort label-4020
SELECT ALL + - 33 * - COUNT ( * ) AS col1 FROM tab2 cor0
----
99

query I rowsort
SELECT col0 * col1 - - - col1 - + col0 - - - 46 AS col1 FROM tab2 AS cor0
----
2203
4741
4837

query I rowsort
SELECT ALL - 63 - - + col1 + - + col0 - col2 * + 22 * 60 * col2 * - ( + 78 ) FROM tab1 AS cor0
----
358403617
476086933
948879260

query I rowsort
SELECT col0 - col1 * - + col0 FROM tab1
----
4368
510
765

onlyif mysql # aggregate syntax: 
query II rowsort label-4024
SELECT - COUNT( * ) - COUNT( * ) * 51 AS col2, COUNT( * ) - + SUM( + col2 ) FROM tab2
----
-156
-118

skipif mysql # not compatible
query II rowsort label-4024
SELECT - COUNT ( * ) - COUNT ( * ) * 51 AS col2, COUNT ( * ) - + SUM ( + col2 ) FROM tab2
----
-156
-118

onlyif mysql # DIV for integer division: 
query II rowsort label-4025
SELECT 5 DIV - - 76 + + + 79 col1, + col0 * + 35 col2 FROM tab0
----
79
3045
79
3395
79
525

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4025
SELECT 5 / - - 76 + + + 79 col1, + col0 * + 35 col2 FROM tab0
----
79
3045
79
3395
79
525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4026
SELECT - CAST( NULL AS SIGNED ) + + + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4026
SELECT - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + col0 - - 55 + col2 * - col0 AS col1 FROM tab2
----
-2441
-4220
-957

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT DISTINCT - COUNT( * ) * 37 AS col1 FROM tab1
----
-111

skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT - COUNT ( * ) * 37 AS col1 FROM tab1
----
-111

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 NOT BETWEEN NULL AND - 74
----

query II rowsort
SELECT + col1, + 4 FROM tab2
----
51
4
67
4
77
4

query II rowsort
SELECT ALL col1 * - col0 * col1 + - col2, col0 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4032
SELECT ALL + col0 DIV + 86 col0 FROM tab0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4032
SELECT ALL + col0 / + 86 col0 FROM tab0
----
0
1
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 41 - - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4034
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + CAST( NULL AS SIGNED ) * - 29
----

skipif mysql # not compatible
query III rowsort label-4034
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + CAST ( NULL AS INTEGER ) * - 29
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4035
SELECT - 37 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4035
SELECT - 37 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT 45 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 43 col2 FROM tab0 AS cor0
----
43
43
43

query I rowsort
SELECT + + 76 AS col2 FROM tab1 AS cor0
----
76
76
76

query I rowsort
SELECT - col2 + - - ( + col1 ) + + 1 AS col1 FROM tab1 cor0
----
-20
-53
-81

query I rowsort
SELECT DISTINCT col1 * + col1 AS col2 FROM tab0 WHERE NOT - ( col1 ) * + col0 * + col0 <= + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4041
SELECT COUNT( DISTINCT + col1 ) DIV + 97 + + MIN( + - 39 ) FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-4041
SELECT COUNT ( DISTINCT + col1 ) / + 97 + + MIN ( + - 39 ) FROM tab2
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 65 * + col1 * + col2 col0 FROM tab0
----
-13671
-247536
-6436

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4043
SELECT CAST( NULL AS SIGNED ) + - + 6 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4043
SELECT CAST ( NULL AS INTEGER ) + - + 6 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + + + 8 FROM tab0
----
107
18
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4045
SELECT 50 DIV - COUNT( * ) FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-4045
SELECT 50 / - COUNT ( * ) FROM tab2
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4046
SELECT COUNT( * ) DIV - 70 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4046
SELECT COUNT ( * ) / - 70 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4047
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4047
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-3

query I rowsort
SELECT - col0 * 26 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT ALL + - 69 + + ( COUNT( + + 44 ) ) * 40 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL + - 69 + + ( COUNT ( + + 44 ) ) * 40 FROM tab1 AS cor0
----
51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN col2 AND + col1
----

query I rowsort
SELECT - ( - + 98 ) + - + 55 * + 55 + - col0 FROM tab0
----
-2942
-3014
-3024

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT + + COUNT( * ) + + 61 + + 11 + + MAX( ALL + 18 ) AS col1 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-4052
SELECT + + COUNT ( * ) + + 61 + + 11 + + MAX ( ALL + 18 ) AS col1 FROM tab2 AS cor0
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 57 * 74 col1 FROM tab0 AS cor0
----
4218

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4054
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, - 13 FROM tab2 AS cor0
----
NULL
-13

skipif mysql # not compatible
query II rowsort label-4054
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, - 13 FROM tab2 AS cor0
----
NULL
-13

query I rowsort
SELECT + 58 * 99 + 1 AS col2 FROM tab1 AS cor0
----
5743
5743
5743

query I rowsort
SELECT ALL - + 61 + - + ( - col0 ) FROM tab1 AS cor0
----
-10
24
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT ALL - 42 * COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col0, - 88 )
----
0

skipif mysql # not compatible
query I rowsort label-4057
SELECT ALL - 42 * COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col0, - 88 )
----
0

query II rowsort
SELECT ALL + col0 + - col0, col2 FROM tab0 AS cor0
----
0
10
0
47
0
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4059
SELECT DISTINCT * FROM tab2 WHERE NULL <= - ( - col1 ) * + + col2 + - 5 + + CAST( NULL AS SIGNED ) + + CAST( + col2 AS SIGNED ) / - col0 + col0 * + - col0
----

skipif mysql # not compatible
query III rowsort label-4059
SELECT DISTINCT * FROM tab2 WHERE NULL <= - ( - col1 ) * + + col2 + - 5 + + CAST ( NULL AS INTEGER ) + + CAST ( + col2 AS INTEGER ) / - col0 + col0 * + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT DISTINCT - ( - 27 ) * COUNT( * ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-4060
SELECT DISTINCT - ( - 27 ) * COUNT ( * ) FROM tab1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT COUNT( * ) * 3 AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4061
SELECT COUNT ( * ) * 3 AS col0 FROM tab1
----
9

query I rowsort
SELECT ALL - 90 * + + 88 AS col1 FROM tab0
----
-7920
-7920
-7920

query I rowsort
SELECT col0 * + 32 FROM tab0
----
2784
3104
480

query II rowsort
SELECT col2 * - col2, col0 FROM tab2
----
-1600
64
-3364
75
-529
46

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 col0 FROM tab0 cor0
----
79
79
79

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT DISTINCT - + 32 * - MAX( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
3072

skipif mysql # not compatible
query I rowsort label-4068
SELECT DISTINCT - + 32 * - MAX ( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
3072

query I rowsort
SELECT ALL col1 * 59 FROM tab0
----
1239
4779
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4070
SELECT DISTINCT + col0 DIV + - col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4070
SELECT DISTINCT + col0 / + - col0 FROM tab1
----
-1

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 * - col2 - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 - + 14 FROM tab0 cor0 WHERE NOT col1 * - - 35 * ( - col1 ) >= + col1 + + 70 * 47
----
-4
33
85

query I rowsort
SELECT DISTINCT 72 + - - col2 FROM tab0 AS cor0
----
119
171
82

query I rowsort
SELECT DISTINCT + + 30 * - col0 AS col1 FROM tab0 AS cor0 WHERE + col1 + + 26 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT ALL - - ( + - COUNT( * ) ) + ( 66 ) FROM tab0 AS cor0 WHERE 39 * + + col2 BETWEEN - 63 AND + col2
----
66

skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL - - ( + - COUNT ( * ) ) + ( 66 ) FROM tab0 AS cor0 WHERE 39 * + + col2 BETWEEN - 63 AND + col2
----
66

query I rowsort
SELECT ALL - col1 + + + col2 AS col0 FROM tab2 AS cor0
----
-28
-37
-9

query III rowsort
SELECT * FROM tab2 WHERE col2 >= col2 * - 13 * col1 / - col0 + 32
----

query I rowsort
SELECT - 22 * + - col2 AS col0 FROM tab1 WHERE NULL = - - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4079
SELECT ALL 16 + + CAST( - SUM( + - col2 ) AS SIGNED ) FROM tab1
----
239

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL 16 + + CAST ( - SUM ( + - col2 ) AS INTEGER ) FROM tab1
----
239

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT MAX( - col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4080
SELECT MAX ( - col1 ) AS col2 FROM tab0
----
-1

query I rowsort
SELECT + 69 * + col0 FROM tab1
----
3519
5865
6279

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4082
SELECT * FROM tab0 WHERE 55 * 84 <> ( + col0 - + + col1 ) OR NOT - 84 * - - CAST( 80 AS SIGNED ) >= NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4082
SELECT * FROM tab0 WHERE 55 * 84 <> ( + col0 - + + col1 ) OR NOT - 84 * - - CAST ( 80 AS INTEGER ) >= NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT + 96 * + + COUNT( DISTINCT - - col1 ) FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-4083
SELECT + 96 * + + COUNT ( DISTINCT - - col1 ) FROM tab2
----
288

onlyif mysql # aggregate syntax: 
query II rowsort label-4084
SELECT - 36 * + - 43 AS col1, SUM( + col0 ) AS col2 FROM tab2
----
1548
185

skipif mysql # not compatible
query II rowsort label-4084
SELECT - 36 * + - 43 AS col1, SUM ( + col0 ) AS col2 FROM tab2
----
1548
185

query III rowsort
SELECT * FROM tab0 WHERE - 49 + 43 + + - col0 - col1 * - + col0 + + col0 IS NULL OR NOT NULL > NULL
----

query I rowsort
SELECT + col0 FROM tab2 WHERE - col2 + + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4087
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4087
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4088
SELECT COUNT( * ) DIV 14 + ( + + 64 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
64

skipif mysql # not compatible
query I rowsort label-4088
SELECT COUNT ( * ) / 14 + ( + + 64 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
64

query I rowsort
SELECT DISTINCT - ( - 70 ) - 13 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 col2 FROM tab0 WHERE NOT - + 22 / col1 * col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4091
SELECT ALL + 48 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL + 48 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col0 - + - ( col1 ) + col0 - col1 * col0 * 62 FROM tab2 AS cor0
----
-145309
-305331
-311333

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 0 + + - ( + + 18 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4094
SELECT 85 DIV + col1 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4094
SELECT 85 / + col1 AS col2 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4095
SELECT + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4095
SELECT + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT - COUNT( * ) * + 89 * - + 54 FROM tab0
----
14418

skipif mysql # not compatible
query I rowsort label-4096
SELECT - COUNT ( * ) * + 89 * - + 54 FROM tab0
----
14418

query II rowsort
SELECT ALL col0 AS col0, + col1 FROM tab1
----
51
14
85
5
91
47

query II rowsort
SELECT col0 AS col2, - 76 FROM tab0
----
15
-76
87
-76
97
-76

query I rowsort
SELECT DISTINCT 7 * + - ( col0 ) FROM tab0
----
-105
-609
-679

query II rowsort
SELECT - 99 AS col1, - col1 AS col2 FROM tab2
----
-99
-51
-99
-67
-99
-77

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT + + 16 + + COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
16

skipif mysql # not compatible
query I rowsort label-4102
SELECT + + 16 + + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
16

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT + 90 * - ( + COUNT( * ) ) FROM tab2 cor0
----
-270

skipif mysql # not compatible
query I rowsort label-4104
SELECT + 90 * - ( + COUNT ( * ) ) FROM tab2 cor0
----
-270

query I rowsort
SELECT ALL - col1 * - ( + 35 ) FROM tab2 AS cor0
----
1785
2345
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT ALL COUNT( + 86 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL COUNT ( + 86 ) FROM tab1
----
3

query I rowsort
SELECT ALL - 10 FROM tab2 WHERE NOT + 45 * - 29 = col0
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT DISTINCT 90 * + COUNT( * ) col1 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4108
SELECT DISTINCT 90 * + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
270

query I rowsort
SELECT col1 + col1 + + col1 AS col2 FROM tab0 cor0
----
243
3
63

query I rowsort
SELECT - - col2 + 51 FROM tab1 AS cor0
----
110
119
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT + 14 + ( + SUM( DISTINCT - col0 ) ) FROM tab0 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4111
SELECT + 14 + ( + SUM ( DISTINCT - col0 ) ) FROM tab0 AS cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4112
SELECT ALL col2 + + col2 + + col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL col2 + + col2 + + col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4113
SELECT DISTINCT + col2 DIV - col2 + - col1 col1, col2 FROM tab0 AS cor0
----
-2
99
-22
10
-82
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4113
SELECT DISTINCT + col2 / - col2 + - col1 col1, col2 FROM tab0 AS cor0
----
-2
99
-22
10
-82
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT - COUNT( * ) col2 FROM tab0, tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4114
SELECT - COUNT ( * ) col2 FROM tab0, tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT 21 * - - MAX( ALL + - 88 ) + COUNT( ALL 41 ) + + 95 FROM tab1
----
-1750

skipif mysql # not compatible
query I rowsort label-4115
SELECT 21 * - - MAX ( ALL + - 88 ) + COUNT ( ALL 41 ) + + 95 FROM tab1
----
-1750

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT DISTINCT - - COUNT( * ) * - 67 FROM tab2, tab0 AS cor0 WHERE + 68 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4116
SELECT DISTINCT - - COUNT ( * ) * - 67 FROM tab2, tab0 AS cor0 WHERE + 68 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4117
SELECT - SUM( - - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4117
SELECT - SUM ( - - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4118
SELECT + CAST( + col0 AS SIGNED ) DIV col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4118
SELECT + CAST ( + col0 AS INTEGER ) / col2 FROM tab2
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT - + COUNT( ALL - col0 ) * ( - + 42 ) FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-4119
SELECT - + COUNT ( ALL - col0 ) * ( - + 42 ) FROM tab0 AS cor0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT - MIN( DISTINCT + 22 ) AS col2 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-4120
SELECT - MIN ( DISTINCT + 22 ) AS col2 FROM tab2 AS cor0
----
-22

query I rowsort
SELECT DISTINCT - + col2 * col1 * + 72 + - ( - ( - + 54 ) ) FROM tab2 AS cor0
----
-221814
-279846
-84510

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE 90 - + 47 IS NULL
----

query I rowsort
SELECT DISTINCT - 42 * - col2 + + col0 FROM tab1
----
2563
2947
4083

onlyif mysql # DIV for integer division: 
query I rowsort label-4124
SELECT ALL col1 DIV col0 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4124
SELECT ALL col1 / col0 col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT - SUM( + col0 ) * COUNT( 79 ) col0 FROM tab0
----
-597

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4125
SELECT - SUM ( + col0 ) * COUNT ( 79 ) col0 FROM tab0
----
-597

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4127
SELECT ALL 28 DIV + COUNT( * ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL 28 / + COUNT ( * ) AS col2 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT COUNT( * ) FROM tab0 WHERE NULL NOT IN ( + ( + col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4128
SELECT COUNT ( * ) FROM tab0 WHERE NULL NOT IN ( + ( + col2 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4129
SELECT DISTINCT - 29 DIV col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT - 29 / col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT MIN( + col1 ) / + MIN( col0 + col2 ) FROM tab0 WHERE + col0 NOT BETWEEN - col2 AND col0 * + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT MIN ( + col1 ) / + MIN ( col0 + col2 ) FROM tab0 WHERE + col0 NOT BETWEEN - col2 AND col0 * + col0
----
NULL

query I rowsort
SELECT ALL + 17 AS col0 FROM tab2 WHERE NOT ( - 0 ) IN ( col0 )
----
17
17
17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4132
SELECT * FROM tab0 WHERE NOT col1 BETWEEN CAST( + 99 AS SIGNED ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4132
SELECT * FROM tab0 WHERE NOT col1 BETWEEN CAST ( + 99 AS INTEGER ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT ALL MAX( - 35 ) AS col2 FROM tab1
----
-35

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL MAX ( - 35 ) AS col2 FROM tab1
----
-35

query I rowsort
SELECT ALL col2 + col0 FROM tab1 WHERE NOT 81 IS NULL
----
144
147
159

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 47 * - col0 + ( + col1 - col0 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4136
SELECT DISTINCT CAST( + col0 AS SIGNED ) FROM tab0 WHERE NOT col2 - + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4136
SELECT DISTINCT CAST ( + col0 AS INTEGER ) FROM tab0 WHERE NOT col2 - + CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 NOT BETWEEN ( 12 * col0 + + ( col1 ) ) AND - 31
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4138
SELECT + CAST( col1 AS SIGNED ) * + 63 + 75 FROM tab1
----
3036
390
957

skipif mysql # not compatible
query I rowsort label-4138
SELECT + CAST ( col1 AS INTEGER ) * + 63 + 75 FROM tab1
----
3036
390
957

query I rowsort
SELECT - 36 AS col2 FROM tab1 WHERE NOT 16 IS NOT NULL
----

query I rowsort
SELECT - col1 * + 24 + - 2 FROM tab1
----
-1130
-122
-338

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4141
SELECT ALL + col2 + col0 AS col1 FROM tab0 WHERE NULL < ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL + col2 + col0 AS col1 FROM tab0 WHERE NULL < ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT MAX( + 91 ) FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-4142
SELECT MAX ( + 91 ) FROM tab0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT - COUNT( * ) + 29 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-4143
SELECT - COUNT ( * ) + 29 FROM tab0
----
26

query I rowsort
SELECT DISTINCT + 97 + - col2 AS col2 FROM tab2
----
39
57
74

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NULL BETWEEN NULL AND + 53
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + ( + col1 - + 51 * + 1 ) col0 FROM tab1
----
-51
-51
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-4147
SELECT ALL 91 + + col1 DIV col0 AS col0 FROM tab2
----
91
92
92

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL 91 + + col1 / col0 AS col0 FROM tab2
----
91
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT ALL - MIN( + col0 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL - MIN ( + col0 ) AS col0 FROM tab1
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + col2 * + 28 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4150
SELECT ALL col0 FROM tab1 WHERE NOT + col2 + - CAST( NULL AS SIGNED ) * col0 < + ( + ( + 70 ) )
----

skipif mysql # not compatible
query I rowsort label-4150
SELECT ALL col0 FROM tab1 WHERE NOT + col2 + - CAST ( NULL AS INTEGER ) * col0 < + ( + ( + 70 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 WHERE NOT - col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4151
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT - col1 >= NULL
----
0

query I rowsort
SELECT col0 * + 34 + - 89 FROM tab2
----
1475
2087
2461

query I rowsort
SELECT col1 + + 19 AS col0 FROM tab1
----
24
33
66

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= - ( col0 ) * 46 + - 21
----

query I rowsort
SELECT + ( + col0 ) + col0 FROM tab0
----
174
194
30

query I rowsort
SELECT DISTINCT - 55 FROM tab1 cor0 CROSS JOIN tab1
----
-55

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 69 - 8 <= NULL
----

query I rowsort
SELECT DISTINCT - - 61 * col0 AS col1 FROM tab2 AS cor0
----
2806
3904
4575

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 ) < 10
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 93 ) * - col0 > - col2 + 78
----

query I rowsort
SELECT - 26 * col0 FROM tab0 AS cor0
----
-2262
-2522
-390

query I rowsort
SELECT ALL + 2 + + 16 AS col0 FROM tab0 AS cor0
----
18
18
18

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN 80 AND NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT DISTINCT - + COUNT( * ) * COUNT( * ) AS col2 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4164
SELECT DISTINCT - + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 cor0
----
-9

query I rowsort
SELECT ALL col0 * 89 + - col1 FROM tab0 AS cor0
----
1254
7722
8632

query I rowsort
SELECT DISTINCT - col1 - + 30 AS col2 FROM tab0 AS cor0 WHERE col2 = + ( - 34 )
----

query I rowsort
SELECT - 65 / - ( ( + col2 ) ) AS col2 FROM tab2 AS cor0 WHERE ( 31 ) IN ( - 70 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 + 79 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + - 43 * + col0 + - col1 FROM tab2 AS cor0
----
-2029
-2829
-3292

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT ALL - 64 + MIN( DISTINCT - 58 ) AS col2 FROM tab1 AS cor0
----
-122

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL - 64 + MIN ( DISTINCT - 58 ) AS col2 FROM tab1 AS cor0
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT COUNT( * ) * - + ( + 99 ) * - ( COUNT( * ) ) FROM tab0
----
891

skipif mysql # not compatible
query I rowsort label-4171
SELECT COUNT ( * ) * - + ( + 99 ) * - ( COUNT ( * ) ) FROM tab0
----
891

query I rowsort
SELECT DISTINCT col1 + + col2 + col0 FROM tab0
----
118
143
197

query I rowsort
SELECT col0 - + + 83 AS col2 FROM tab1
----
-32
2
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT + 57 + SUM( col1 ) FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-4174
SELECT + 57 + SUM ( col1 ) FROM tab2
----
252

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT - col2 BETWEEN col1 + + col2 * col2 AND NULL
----
15
87
97

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 / + 33 ) >= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 46 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 55 + - col1 + - col0 AS col2 FROM tab1
----
-120
-145
-193

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - ( + col0 ) + col2 ) >= NULL AND - col2 = NULL
----

query I rowsort
SELECT DISTINCT 19 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT + 77 * COUNT( * ) AS col0 FROM tab1 WHERE NOT col1 <= - 2 * col1
----
231

skipif mysql # not compatible
query I rowsort label-4181
SELECT + 77 * COUNT ( * ) AS col0 FROM tab1 WHERE NOT col1 <= - 2 * col1
----
231

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 INNER JOIN tab2 cor1 ON NULL <= NULL WHERE NOT NULL >= NULL
----

query I rowsort
SELECT + 62 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + - col2 ) IS NOT NULL
----

query II rowsort
SELECT + 81, 63 AS col0 FROM tab0 AS cor0
----
81
63
81
63
81
63

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + - col1 + + 11 NOT IN ( + col2 )
----

query II rowsort
SELECT ALL col0, 88 FROM tab1 AS cor0
----
51
88
85
88
91
88

query I rowsort
SELECT - - 55 * col2 FROM tab2 AS cor0
----
1265
2200
3190

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT + 88 * COUNT( * ) FROM tab0 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-4189
SELECT + 88 * COUNT ( * ) FROM tab0 AS cor0
----
264

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 83 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4191
SELECT COUNT( * ) DIV + COUNT( * ) AS col2, COUNT( * ) AS col1 FROM tab1
----
1
3

skipif mysql # not compatible
query II rowsort label-4191
SELECT COUNT ( * ) / + COUNT ( * ) AS col2, COUNT ( * ) AS col1 FROM tab1
----
1
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + 62 >= + col0
----
64
77
40
75
67
58

query II rowsort
SELECT ALL ( + - col1 ) AS col0, + col2 AS col1 FROM tab2
----
-51
23
-67
58
-77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT DISTINCT MAX( 35 ) FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT MAX ( 35 ) FROM tab1
----
35

query I rowsort
SELECT + col0 * - 35 AS col0 FROM tab1
----
-1785
-2975
-3185

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT ALL SUM( + + ( + - col0 ) ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL SUM ( + + ( + - col0 ) ) AS col1 FROM tab0
----
-199

query I rowsort
SELECT ALL 50 + - 83 * + col0 AS col1 FROM tab0 AS cor0
----
-1195
-7171
-8001

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT ( 56 ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( + 22 )
----

query I rowsort
SELECT - col2 FROM tab0 WHERE - col1 <= ( + 62 )
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT COUNT( * ) * + + 22 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-4201
SELECT COUNT ( * ) * + + 22 FROM tab2
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 28, - col0 * - col0 col0 FROM tab2
----
28
2116
28
4096
28
5625

query I rowsort
SELECT DISTINCT - 95 * + col0 * + col1 + + col0 FROM tab2 AS cor0
----
-222824
-468096
-477300

onlyif mysql # DIV for integer division: 
query I rowsort label-4204
SELECT ALL - 61 DIV - 10 + + col0 * - 40 AS col0 FROM tab1 AS cor0
----
-2034
-3394
-3634

skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL - 61 / - 10 + + col0 * - 40 AS col0 FROM tab1 AS cor0
----
-2034
-3394
-3634

query I rowsort
SELECT col2 + 29 AS col2 FROM tab0 AS cor0
----
128
39
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4206
SELECT 28 + + CAST( + 68 AS SIGNED ) FROM tab0 cor0
----
96
96
96

skipif mysql # not compatible
query I rowsort label-4206
SELECT 28 + + CAST ( + 68 AS INTEGER ) FROM tab0 cor0
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT DISTINCT - 18 + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + 93 ) IN ( col0 * col0 * - - col2 + col2 )
----
-15

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT - 18 + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + 93 ) IN ( col0 * col0 * - - col2 + col2 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4208
SELECT ALL + + 67 * col1 - + CAST( NULL AS SIGNED ) + + ( col1 ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL + + 67 * col1 - + CAST ( NULL AS INTEGER ) + + ( col1 ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 NOT IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 AS cor0 WHERE - 31 - + col2 * + col0 IN ( + col2 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4211
SELECT - ( + - ( - col2 ) ) DIV CAST( + + col0 AS SIGNED ) * - ( col0 ) + - 42 + 26 FROM tab0
----
-16
29
81

skipif mysql # not compatible
query I rowsort label-4211
SELECT - ( + - ( - col2 ) ) / CAST ( + + col0 AS INTEGER ) * - ( col0 ) + - 42 + 26 FROM tab0
----
-16
29
81

query I rowsort
SELECT ALL + col0 * 29 + - col2 + 22 AS col0 FROM tab2
----
1333
1838
2139

query I rowsort
SELECT DISTINCT + 13 * + col0 AS col2 FROM tab1
----
1105
1183
663

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= + + 29 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT ALL 21 - + MIN( - + 71 ) + + - 94 AS col0 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-4215
SELECT ALL 21 - + MIN ( - + 71 ) + + - 94 AS col0 FROM tab2
----
-2

query I rowsort
SELECT DISTINCT + col2 + 58 FROM tab1 WHERE ( - + col2 / col0 ) NOT BETWEEN NULL AND - ( + col1 ) + col2
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT 46 - - - COUNT( * ) * - 47 + COUNT( * ) FROM tab1 AS cor0
----
190

skipif mysql # not compatible
query I rowsort label-4218
SELECT 46 - - - COUNT ( * ) * - 47 + COUNT ( * ) FROM tab1 AS cor0
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT 36 - MAX( DISTINCT + 15 ) AS col0 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-4219
SELECT 36 - MAX ( DISTINCT + 15 ) AS col0 FROM tab2 AS cor0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-4220
SELECT ALL + col1 DIV 46 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-4220
SELECT ALL + col1 / 46 col1 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE + 69 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4221
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE + 69 IS NOT NULL
----
3

query I rowsort
SELECT col2 - - 71 AS col1 FROM tab2 AS cor0
----
111
129
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT ALL + COUNT( * ) col0 FROM tab0 AS cor0 WHERE + 50 NOT BETWEEN - col2 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4223
SELECT ALL + COUNT ( * ) col0 FROM tab0 AS cor0 WHERE + 50 NOT BETWEEN - col2 AND NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT 83 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 39 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT ALL - 63 + + + COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
-63

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL - 63 + + + COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT - COUNT( * ) AS col1 FROM tab0 WHERE NOT - - col0 NOT IN ( + col0 * - - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4227
SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE NOT - - col0 NOT IN ( + col0 * - - col0 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4228
SELECT ALL + ( + 66 ), + SUM( - col2 ) AS col1 FROM tab1 AS cor0
----
66
-223

skipif mysql # not compatible
query II rowsort label-4228
SELECT ALL + ( + 66 ), + SUM ( - col2 ) AS col1 FROM tab1 AS cor0
----
66
-223

query II rowsort
SELECT ALL + col2 * + col0 AS col1, col0 FROM tab2 AS cor0
----
1058
46
2560
64
4350
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4230
SELECT DISTINCT - + 3 DIV 6 + + + 8 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-4230
SELECT DISTINCT - + 3 / 6 + + + 8 FROM tab2 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT DISTINCT SUM( + 76 ) FROM tab0 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT SUM ( + 76 ) FROM tab0 AS cor0
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT + ( + COUNT( * ) ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4232
SELECT + ( + COUNT ( * ) ) AS col0 FROM tab2 cor0
----
3

query I rowsort
SELECT + - col2 * 75 - - col2 + - 26 * - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) < - + 82
----

query I rowsort
SELECT ALL + 67 FROM tab0 WHERE NOT - 40 + + col2 <= NULL
----

query I rowsort
SELECT ALL col1 * - + col0 AS col1 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT 58 * + - col2 AS col0 FROM tab0
----
-2726
-5742
-580

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col1 / + col1 - - col2 + + + 63 AND + col2
----

query I rowsort
SELECT - col0 * + - col2 * + 69 FROM tab1
----
337824
346035
426972

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT DISTINCT COUNT( DISTINCT + col2 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4239
SELECT DISTINCT COUNT ( DISTINCT + col2 ) col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT + 77 * - COUNT( * ) FROM tab1
----
-231

skipif mysql # not compatible
query I rowsort label-4240
SELECT + 77 * - COUNT ( * ) FROM tab1
----
-231

query II rowsort
SELECT - col2 AS col1, + col0 FROM tab1
----
-59
85
-68
91
-96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT ALL MAX( - col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL MAX ( - col0 ) FROM tab0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4244
SELECT + + COUNT( * ), COUNT( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4244
SELECT + + COUNT ( * ), COUNT ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
3
3

query I rowsort
SELECT - 34 AS col2 FROM tab2 WHERE - col2 - - 53 + + col1 NOT IN ( + col1 )
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT - COUNT( * ) AS col2 FROM tab0 cor0 WHERE NULL < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4246
SELECT - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NULL < ( NULL )
----
0

query I rowsort
SELECT ALL + 74 + + col0 AS col1 FROM tab0 AS cor0
----
161
171
89

query III rowsort
SELECT * FROM tab0 WHERE NULL = + 39
----

query I rowsort
SELECT ALL ( - + 9 ) + - + 32 + + col2 * + col0 FROM tab0
----
664
829
9562

query I rowsort
SELECT DISTINCT 31 + + col1 AS col0 FROM tab0
----
112
32
52

query I rowsort
SELECT ALL - 67 * - 10 + + col1 FROM tab2
----
721
737
747

query I rowsort
SELECT 52 + + + ( - col2 ) AS col0 FROM tab1
----
-16
-44
-7

query I rowsort
SELECT DISTINCT col1 * + col0 + - col1 AS col0 FROM tab1
----
420
4230
700

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT DISTINCT - 21 * + + MAX( 64 ) FROM tab0 WHERE + col0 IS NOT NULL
----
-1344

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT - 21 * + + MAX ( 64 ) FROM tab0 WHERE + col0 IS NOT NULL
----
-1344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4255
SELECT + col0 FROM tab1 WHERE + + CAST( NULL AS SIGNED ) NOT IN ( + 18 )
----

skipif mysql # not compatible
query I rowsort label-4255
SELECT + col0 FROM tab1 WHERE + + CAST ( NULL AS INTEGER ) NOT IN ( + 18 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col1 + + - col1 * col2 <> ( 81 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col0 AS col2, col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4258
SELECT ALL COUNT( * ) AS col1, 88 AS col1 FROM tab2 cor0
----
3
88

skipif mysql # not compatible
query II rowsort label-4258
SELECT ALL COUNT ( * ) AS col1, 88 AS col1 FROM tab2 cor0
----
3
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT DISTINCT + COUNT( * ) * + MIN( - ( col0 ) ) FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT + COUNT ( * ) * + MIN ( - ( col0 ) ) FROM tab1 AS cor0
----
-273

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4260
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + ( + 33 ) * + - CAST( - - 73 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-4260
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + ( + 33 ) * + - CAST ( - - 73 AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4261
SELECT COUNT( * ) AS col1, 88 AS col2 FROM tab2
----
3
88

skipif mysql # not compatible
query II rowsort label-4261
SELECT COUNT ( * ) AS col1, 88 AS col2 FROM tab2
----
3
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT ALL COUNT( * ) * + MAX( + + col0 ) AS col2 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL COUNT ( * ) * + MAX ( + + col0 ) AS col2 FROM tab0
----
291

onlyif mysql # DIV for integer division: 
query I rowsort label-4263
SELECT DISTINCT col1 DIV 5 AS col2 FROM tab0
----
0
16
4

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT col1 / 5 AS col2 FROM tab0
----
0
16
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4264
SELECT MAX( - + CAST( + ( + - col2 ) AS SIGNED ) ) col0 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4264
SELECT MAX ( - + CAST ( + ( + - col2 ) AS INTEGER ) ) col0 FROM tab1
----
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 + - col0 ) IS NOT NULL
----

query I rowsort
SELECT - ( + + col2 ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL - ( - 97 ) FROM tab0 AS cor0
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT ALL + + ( + + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL + + ( + + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT col0 + - 77 * + + col2 FROM tab0 AS cor0
----
-3604
-683
-7526

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 97 col2 FROM tab2 cor0
----
-97
-97
-97

query II rowsort
SELECT ALL + col0 * + col2 AS col1, 10 AS col2 FROM tab0 AS cor0
----
705
10
870
10
9603
10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = col0 + - col1 * 67 / 5 / - - col2
----

query I rowsort
SELECT 36 * - col0 AS col0 FROM tab2
----
-1656
-2304
-2700

onlyif mysql # DIV for integer division: 
query I rowsort label-4274
SELECT ALL - col2 DIV - 72 + 3 FROM tab2
----
3
3
3

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL - col2 / - 72 + 3 FROM tab2
----
3
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4275
SELECT ALL + 46 DIV - 68 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL + 46 / - 68 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT ( 12 ) + MIN( col2 ) AS col1 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-4276
SELECT ( 12 ) + MIN ( col2 ) AS col1 FROM tab0
----
22

onlyif mysql # DIV for integer division: 
query II rowsort label-4277
SELECT ALL - col2 DIV + col2 AS col0, - col2 FROM tab1
----
-1
-59
-1
-68
-1
-96

skipif mysql # not compatible
query II rowsort label-4277
SELECT ALL - col2 / + col2 AS col0, - col2 FROM tab1
----
-1
-59
-1
-68
-1
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT + 28 * + COUNT( * ) + - 74 + ( - COUNT( * ) ) AS col0 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-4278
SELECT + 28 * + COUNT ( * ) + - 74 + ( - COUNT ( * ) ) AS col0 FROM tab1
----
7

query I rowsort
SELECT - ( + col1 ) * col2 + - col0 + col2 - + - col0 * - col0 * ( 21 ) FROM tab0 AS cor0
----
-159236
-197686
-8500

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT ALL 4 * COUNT( * ) + - SUM( ALL - col0 ) FROM tab1 AS cor0
----
239

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL 4 * COUNT ( * ) + - SUM ( ALL - col0 ) FROM tab1 AS cor0
----
239

query I rowsort
SELECT DISTINCT 86 + + + 18 AS col1 FROM tab2 AS cor0 WHERE NOT col2 = 89
----
104

query I rowsort
SELECT + 61 + - col0 AS col1 FROM tab1
----
-24
-30
10

query I rowsort
SELECT + + 65 + col1 + 9 FROM tab2 AS cor0
----
125
141
151

onlyif mysql # DIV for integer division: 
query I rowsort label-4284
SELECT 50 DIV + + col0 + - col2 + 62 + - + ( + 7 ) DIV + 80 FROM tab1 AS cor0
----
-34
-6
3

skipif mysql # not compatible
query I rowsort label-4284
SELECT 50 / + + col0 + - col2 + 62 + - + ( + 7 ) / + 80 FROM tab1 AS cor0
----
-34
-6
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4285
SELECT ALL + + 55 AS col2, + 60 DIV - - col1 FROM tab2 AS cor0
----
55
0
55
0
55
1

skipif mysql # not compatible
query II rowsort label-4285
SELECT ALL + + 55 AS col2, + 60 / - - col1 FROM tab2 AS cor0
----
55
0
55
0
55
1

query II rowsort
SELECT DISTINCT + col2 AS col2, - col2 AS col2 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

query I rowsort
SELECT ALL 70 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT ALL - + MIN( ALL col0 ) - 5 FROM tab1 cor0
----
-56

skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL - + MIN ( ALL col0 ) - 5 FROM tab1 cor0
----
-56

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 2 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 40 - + 45 AS col2 FROM tab0
----
-5

query I rowsort
SELECT ALL + 25 + + col2 FROM tab1
----
121
84
93

query I rowsort
SELECT - ( + - col1 ) FROM tab1 WHERE - col2 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4293
SELECT ALL - COUNT( - col1 ), 56 AS col2 FROM tab2
----
-3
56

skipif mysql # not compatible
query II rowsort label-4293
SELECT ALL - COUNT ( - col1 ), 56 AS col2 FROM tab2
----
-3
56

query I rowsort
SELECT DISTINCT 62 * 50 FROM tab0 WHERE NOT NULL NOT BETWEEN 32 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4295
SELECT col1 DIV + + 50 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4295
SELECT col1 / + + 50 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - + col0 * col0 + + - col0 * col1 * col2 FROM tab0 AS cor0
----
-19012
-25839
-57330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4297
SELECT ALL + - 60 * - - CAST( - MIN( DISTINCT + + 70 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
4200

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL + - 60 * - - CAST ( - MIN ( DISTINCT + + 70 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
4200

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( - 27 ) + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-4299
SELECT - col2 DIV - + col0 * - + col2 AS col2, + 9 AS col2 FROM tab2 AS cor0
----
0
9
0
9
0
9

skipif mysql # not compatible
query II rowsort label-4299
SELECT - col2 / - + col0 * - + col2 AS col2, + 9 AS col2 FROM tab2 AS cor0
----
0
9
0
9
0
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < 35
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT DISTINCT SUM( + - col2 ) * - 43 AS col1 FROM tab1 AS cor0
----
9589

skipif mysql # not compatible
query I rowsort label-4302
SELECT DISTINCT SUM ( + - col2 ) * - 43 AS col1 FROM tab1 AS cor0
----
9589

query I rowsort
SELECT 5 * col2 * - 21 FROM tab0
----
-10395
-1050
-4935

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + + col1 AND NULL
----

query I rowsort
SELECT DISTINCT - - col1 AS col0 FROM tab2 WHERE NOT col2 > + 46
----
51
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT ALL MIN( ALL - 78 ) AS col2 FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL MIN ( ALL - 78 ) AS col2 FROM tab2
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4307
SELECT CAST( NULL AS SIGNED ) / + col1 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4307
SELECT CAST ( NULL AS INTEGER ) / + col1 col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT 53 * SUM( DISTINCT col2 ) FROM tab1
----
11819

skipif mysql # not compatible
query I rowsort label-4308
SELECT 53 * SUM ( DISTINCT col2 ) FROM tab1
----
11819

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT ALL - COUNT( DISTINCT + + col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL - COUNT ( DISTINCT + + col0 ) FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 35 >= + 66
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE + - col2 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT ALL COUNT( 53 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4312
SELECT ALL COUNT ( 53 ) FROM tab0
----
3

query I rowsort
SELECT ( ( col0 ) ) + 10 FROM tab2
----
56
74
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4314
SELECT - CAST( NULL AS SIGNED ) + - col0 col2 FROM tab0 AS cor0 WHERE ( NOT ( NULL NOT IN ( col1 - - col1, + col1, - - 88 ) ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4314
SELECT - CAST ( NULL AS INTEGER ) + - col0 col2 FROM tab0 AS cor0 WHERE ( NOT ( NULL NOT IN ( col1 - - col1, + col1, - - 88 ) ) )
----

query I rowsort
SELECT + col1 + + + 76 + - 61 + - col2 * + 25 AS col1 FROM tab1 AS cor0
----
-1455
-1638
-2371

query I rowsort
SELECT ( - col0 ) - 45 * + - col2 FROM tab2 AS cor0
----
1736
2535
989

query I rowsort
SELECT DISTINCT - 38 + col2 FROM tab1 AS cor0
----
21
30
58

query I rowsort
SELECT + col2 - - col0 + + col2 FROM tab2 AS cor0
----
144
191
92

query I rowsort
SELECT - col2 * - - 88 + - + col2 FROM tab0 AS cor0
----
-4183
-8811
-890

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT - 78 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT DISTINCT COUNT( * ) * + 69 AS col2 FROM tab0
----
207

skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT COUNT ( * ) * + 69 AS col2 FROM tab0
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT ALL ( + - COUNT( col2 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL ( + - COUNT ( col2 ) ) FROM tab0
----
-3

query II rowsort
SELECT + col1, + 92 FROM tab0
----
1
92
21
92
81
92

query II rowsort
SELECT DISTINCT col0, - col2 - - 59 FROM tab2 AS cor0
----
46
36
64
19
75
1

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 3 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4326
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 4 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 4 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4327
SELECT COUNT( DISTINCT col0 ) AS col2, COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4327
SELECT COUNT ( DISTINCT col0 ) AS col2, COUNT ( * ) FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT ALL 4 + - 58 FROM tab0 AS cor0
----
-54
-54
-54

query II rowsort
SELECT - ( col2 ), col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT DISTINCT + 75 * - 48 * ( col0 ) + + + 8 FROM tab1 AS cor0
----
-183592
-305992
-327592

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT 1 + MIN( + + col2 ) AS col2 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4331
SELECT 1 + MIN ( + + col2 ) AS col2 FROM tab2 AS cor0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4332
SELECT + CAST( - + col2 AS SIGNED ) * col0 + + 94 * + + col1 AS col1 FROM tab0 AS cor0
----
-9509
1104
6909

skipif mysql # not compatible
query I rowsort label-4332
SELECT + CAST ( - + col2 AS INTEGER ) * col0 + + 94 * + + col1 AS col1 FROM tab0 AS cor0
----
-9509
1104
6909

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT - 89 + - COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-4333
SELECT - 89 + - COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
-98

query I rowsort
SELECT ALL col2 FROM tab0 WHERE 94 IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT + 74 * col2 FROM tab1
----
4366
5032
7104

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT DISTINCT COUNT( * ) * - ( 94 ) FROM tab0 WHERE NOT NULL <> - col2
----
0

skipif mysql # not compatible
query I rowsort label-4336
SELECT DISTINCT COUNT ( * ) * - ( 94 ) FROM tab0 WHERE NOT NULL <> - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT DISTINCT + ( - + COUNT( DISTINCT - col0 ) ) * - 66 AS col1 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-4337
SELECT DISTINCT + ( - + COUNT ( DISTINCT - col0 ) ) * - 66 AS col1 FROM tab1
----
198

query I rowsort
SELECT ALL - col0 * + ( + - col1 ) + col1 AS col1 FROM tab0 AS cor0
----
1296
1848
98

query I rowsort
SELECT DISTINCT - 71 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 61 + - - 14 col2 FROM tab0 AS cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT ALL + + COUNT( DISTINCT 86 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL + + COUNT ( DISTINCT 86 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT - 28 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-28
-28
-28

query I rowsort
SELECT DISTINCT 40 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4344
SELECT 27, ( + COUNT( - 17 ) ) AS col0 FROM tab2 AS cor0
----
27
3

skipif mysql # not compatible
query II rowsort label-4344
SELECT 27, ( + COUNT ( - 17 ) ) AS col0 FROM tab2 AS cor0
----
27
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4345
SELECT ALL + COUNT( ALL - CAST( + 57 AS DECIMAL ) ) DIV - COUNT( * ) - + ( + COUNT( * ) ) FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL + COUNT ( ALL - CAST ( + 57 AS REAL ) ) / - COUNT ( * ) - + ( + COUNT ( * ) ) FROM tab1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT DISTINCT ( + + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT ( + + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4347
SELECT * FROM tab2 WHERE NOT col0 + + CAST( NULL AS SIGNED ) / + 50 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4347
SELECT * FROM tab2 WHERE NOT col0 + + CAST ( NULL AS INTEGER ) / + 50 IS NULL
----

query II rowsort
SELECT ALL + col1 AS col1, ( col1 ) FROM tab1
----
14
14
47
47
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 col2, + col1 / - 63 FROM tab0 WHERE NOT - + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT MAX( DISTINCT + - 92 ) AS col2 FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-4350
SELECT MAX ( DISTINCT + - 92 ) AS col2 FROM tab2 AS cor0
----
-92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4351
SELECT ALL - CAST( NULL AS DECIMAL ) - + - col0 + + 95 + - 48 * + 52 * + col1 - col0 col0 FROM tab0 AS cor0 WHERE ( col1 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4351
SELECT ALL - CAST ( NULL AS REAL ) - + - col0 + + 95 + - 48 * + 52 * + col1 - col0 col0 FROM tab0 AS cor0 WHERE ( col1 ) IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( + col0, - col0, - - col2, 44, - + 53 * 24 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4353
SELECT + + 33 DIV col2 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4353
SELECT + + 33 / col2 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT 24 AS col0 FROM tab1 AS cor0 WHERE col0 IN ( col1, - col2 * + ( + col0 ) * + - 96, + col1 )
----

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE col1 NOT IN ( + + col2 / + - col1 * - - 42, - 41 / col0, col0 * + - col2, + col2, + col2 + + 15, + col2 )
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4356
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 * - 10 col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4356
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 * - 10 col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + ( + - col2 ) + col0 FROM tab1 cor0
----
-45
23
26

query I rowsort
SELECT ALL + - 20 AS col1 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-20
-20
-20

query II rowsort
SELECT DISTINCT - col2 + - col1 * col1, col1 AS col1 FROM tab1 AS cor0
----
-2277
47
-292
14
-84
5

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NOT NULL = ( - - 43 )
----

query I rowsort
SELECT col1 + - 84 AS col2 FROM tab2
----
-17
-33
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4362
SELECT + 88 FROM tab1 WHERE NULL <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4362
SELECT + 88 FROM tab1 WHERE NULL <> CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 23 + - + 1 FROM tab1
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT DISTINCT - COUNT( * ) * 71 FROM tab2
----
-213

skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT - COUNT ( * ) * 71 FROM tab2
----
-213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4365
SELECT ALL CAST( + - col1 AS SIGNED ) FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL CAST ( + - col1 AS INTEGER ) FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT - - 40 + - - col2 * - + col2 AS col0 FROM tab2 AS cor0
----
-1560
-3324
-489

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 - - col0, col1 col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
104
77
133
67
69
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT COUNT( + - col2 ) AS col0 FROM tab2 AS cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4368
SELECT COUNT ( + - col2 ) AS col0 FROM tab2 AS cor0 WHERE NULL > NULL
----
0

query I rowsort
SELECT DISTINCT 15 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
15

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IS NOT NULL AND - col1 IS NULL
----

query I rowsort
SELECT 53 * + 61 FROM tab0 AS cor0
----
3233
3233
3233

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT + ( + - SUM( ( 12 ) ) ) AS col0 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-4372
SELECT + ( + - SUM ( ( 12 ) ) ) AS col0 FROM tab1 AS cor0
----
-36

query I rowsort
SELECT col0 * - col2 + 6 FROM tab1 AS cor0
----
-4890
-5009
-6182

query I rowsort
SELECT ( + col2 ) * + - 41 + col2 - - 43 * - 86 * + + col2 FROM tab1
----
-220542
-254184
-358848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4375
SELECT CAST( NULL AS SIGNED ) / - ( col0 ) / - col0 - - 64 * - ( - + col0 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4375
SELECT CAST ( NULL AS INTEGER ) / - ( col0 ) / - col0 - - 64 * - ( - + col0 ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= - col2 * - 66
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = + ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4378
SELECT + CAST( - col1 AS SIGNED ) DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4378
SELECT + CAST ( - col1 AS INTEGER ) / col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4379
SELECT DISTINCT col0 DIV - 68, col1 FROM tab2
----
-1
67
0
51
0
77

skipif mysql # not compatible
query II rowsort label-4379
SELECT DISTINCT col0 / - 68, col1 FROM tab2
----
-1
67
0
51
0
77

query I rowsort
SELECT ( - 96 ) AS col0 FROM tab1 cor0
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-4381
SELECT DISTINCT COUNT( * ) AS col2, - 38 FROM tab2 AS cor0
----
3
-38

skipif mysql # not compatible
query II rowsort label-4381
SELECT DISTINCT COUNT ( * ) AS col2, - 38 FROM tab2 AS cor0
----
3
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4382
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT CAST( col1 AS SIGNED ) <= ( + col0 )
----
-23
-40

skipif mysql # not compatible
query I rowsort label-4382
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT CAST ( col1 AS INTEGER ) <= ( + col0 )
----
-23
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4383
SELECT ALL - - CAST( NULL AS SIGNED ) * + 24 / + col2 * - col1 + + - 75 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL - - CAST ( NULL AS INTEGER ) * + 24 / + col2 * - col1 + + - 75 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col2 AS col2, + col1 AS col0 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4385
SELECT CAST( NULL AS SIGNED ) col0, - SUM( ALL + 53 ) FROM tab0 cor0
----
NULL
-159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4385
SELECT CAST ( NULL AS INTEGER ) col0, - SUM ( ALL + 53 ) FROM tab0 cor0
----
NULL
-159

query I rowsort
SELECT col2 * + - col2 AS col0 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT 74 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT + 52 + COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-4388
SELECT + 52 + COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT ALL - MAX( DISTINCT 58 ) FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL - MAX ( DISTINCT 58 ) FROM tab2 cor0
----
-58

query I rowsort
SELECT + 64 + 35 + - col1 AS col1 FROM tab0 AS cor0
----
18
78
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4391
SELECT - + col1 DIV + col0 * + col0 + - + col0 AS col0 FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4391
SELECT - + col1 / + col0 * + col0 + - + col0 AS col0 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT ALL + COUNT( * ) + COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4392
SELECT ALL + COUNT ( * ) + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT ALL - ( + + 35 ) AS col2 FROM tab2 AS cor0
----
-35
-35
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4394
SELECT DISTINCT - - COUNT( * ) + 15 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4394
SELECT DISTINCT - - COUNT ( * ) + 15 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT DISTINCT + 20 + - COUNT( * ) + - 31 + COUNT( * ) FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT + 20 + - COUNT ( * ) + - 31 + COUNT ( * ) FROM tab2
----
-11

query III rowsort
SELECT * FROM tab0 WHERE 14 - + + 14 IS NULL
----

query I rowsort
SELECT col0 * - 68 AS col2 FROM tab2
----
-3128
-4352
-5100

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( + col1, + col2, col0, + ( 4 ) + - col1 * - + 93 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4399
SELECT - CAST( NULL AS SIGNED ) * + + col0 / + - col0 * - - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4399
SELECT - CAST ( NULL AS INTEGER ) * + + col0 / + - col0 * - - col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4400
SELECT DISTINCT 45 AS col2, - COUNT( * ) * - COUNT( * ) FROM tab2
----
45
9

skipif mysql # not compatible
query II rowsort label-4400
SELECT DISTINCT 45 AS col2, - COUNT ( * ) * - COUNT ( * ) FROM tab2
----
45
9

query I rowsort
SELECT ALL - 10 * - ( + 61 ) FROM tab1
----
610
610
610

query I rowsort
SELECT ALL col0 * + 78 * - + col0 AS col1 FROM tab2
----
-165048
-319488
-438750

query I rowsort
SELECT DISTINCT 47 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT ALL COUNT( + 36 ) FROM tab0 cor0 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL COUNT ( + 36 ) FROM tab0 cor0 WHERE NOT + col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT DISTINCT - MIN( ALL col2 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4405
SELECT DISTINCT - MIN ( ALL col2 ) AS col1 FROM tab0 AS cor0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-4406
SELECT - + col2 * col1 DIV - 75 FROM tab2 AS cor0
----
15
41
51

skipif mysql # not compatible
query I rowsort label-4406
SELECT - + col2 * col1 / - 75 FROM tab2 AS cor0
----
15
41
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 0 < 6 + + col0 + col2 * - 70 + col1 * + + 53 - + 83
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( + col1 ) * - col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT + + 98 * - col1 AS col2 FROM tab0 AS cor0
----
-2058
-7938
-98

query I rowsort
SELECT DISTINCT + + 96 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4411
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) * col0 / - col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4411
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) * col0 / - col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( - + col0 BETWEEN col2 AND 15 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL ( + 20 ) AS col1 FROM tab1 AS cor0
----
20
20
20

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4416
SELECT col1 + + - CAST( 42 AS SIGNED ) col0 FROM tab0
----
-21
-41
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4416
SELECT col1 + + - CAST ( 42 AS INTEGER ) col0 FROM tab0
----
-21
-41
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT - COUNT( * ) + SUM( DISTINCT - col2 ) AS col0 FROM tab1
----
-226

skipif mysql # not compatible
query I rowsort label-4417
SELECT - COUNT ( * ) + SUM ( DISTINCT - col2 ) AS col0 FROM tab1
----
-226

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT - COUNT( * ) * + + 73 + + COUNT( * ) FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-4418
SELECT - COUNT ( * ) * + + 73 + + COUNT ( * ) FROM tab0
----
-216

onlyif mysql # DIV for integer division: 
query II rowsort label-4419
SELECT DISTINCT - 41, 38 DIV + 39 + col0 AS col1 FROM tab0
----
-41
15
-41
87
-41
97

skipif mysql # not compatible
query II rowsort label-4419
SELECT DISTINCT - 41, 38 / + 39 + col0 AS col1 FROM tab0
----
-41
15
-41
87
-41
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, col2 * ( col0 ) AS col2 FROM tab1 AS cor0
----
59
5015
68
6188
96
4896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 17 col0 FROM tab2 AS cor0
----
-17
-17
-17

query I rowsort
SELECT DISTINCT 95 AS col0 FROM tab0 cor0
----
95

query I rowsort
SELECT ALL + - col1 * + 25 + + + col0 + - col2 AS col1 FROM tab1 AS cor0
----
-1152
-395
-99

query I rowsort
SELECT ALL - + col0 FROM tab1 AS cor0 WHERE col0 / - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, col1 col2 FROM tab1 AS cor0
----
14
14
47
47
5
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 34 - - 13 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + - col0 + + + 5 + - col0 + + col1 + 56 col1 FROM tab2 AS cor0
----
-2486
-4297
-992

query I rowsort
SELECT ALL - 80 + + + 74 * - col2 FROM tab0 AS cor0
----
-3558
-7406
-820

query II rowsort
SELECT ALL 45 - - + 61 AS col2, col1 AS col2 FROM tab1
----
106
14
106
47
106
5

query II rowsort
SELECT ALL 85 + - col0 AS col1, - col0 FROM tab1
----
-6
-91
0
-85
34
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-4431
SELECT 92 * col1 DIV - + col1 - + col1 - + + 43 FROM tab1
----
-140
-149
-182

skipif mysql # not compatible
query I rowsort label-4431
SELECT 92 * col1 / - + col1 - + col1 - + + 43 FROM tab1
----
-140
-149
-182

onlyif mysql # DIV for integer division: 
query I rowsort label-4432
SELECT + col2 + + 72 DIV - - col1 - col0 FROM tab1
----
-12
-22
50

skipif mysql # not compatible
query I rowsort label-4432
SELECT + col2 + + 72 / - - col1 - col0 FROM tab1
----
-12
-22
50

query II rowsort
SELECT - 99 + + 71 AS col1, 67 * + + col1 * col2 AS col1 FROM tab2
----
-28
206360
-28
260362
-28
78591

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4434
SELECT ALL CAST( NULL AS SIGNED ) AS col2, col0 AS col2 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-4434
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, col0 AS col2 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT ALL 67 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col2, 28 AS col0 FROM tab1 cor0
----
-59
28
-68
28
-96
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT + - MAX( ALL - 80 ) FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-4437
SELECT + - MAX ( ALL - 80 ) FROM tab0 AS cor0
----
80

query II rowsort
SELECT ALL + 47 AS col0, col2 FROM tab0 AS cor0
----
47
10
47
47
47
99

query I rowsort
SELECT - 39 * 18 + col1 + col2 * - - 33 * 97 FROM tab1 AS cor0
----
188162
217013
306608

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT + - COUNT( * ) * - + 7 AS col0 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-4440
SELECT + - COUNT ( * ) * - + 7 AS col0 FROM tab0 AS cor0
----
21

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 53 / - ( + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT ALL MIN( ALL + + col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4442
SELECT ALL MIN ( ALL + + col1 ) AS col1 FROM tab2
----
51

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( - col0 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT DISTINCT COUNT( ALL + 96 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4444
SELECT DISTINCT COUNT ( ALL + 96 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> - + col2 * + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 53 = - 52
----

query I rowsort
SELECT ALL - col2 * + col0 + + 0 + + - col0 * - col0 FROM tab1 AS cor0
----
-2295
2093
2210

query I rowsort
SELECT + + 53 FROM tab2 AS cor0 WHERE - 99 IS NULL
----

query I rowsort
SELECT ALL col2 * - 34 + 88 AS col0 FROM tab2 AS cor0
----
-1272
-1884
-694

query I rowsort
SELECT DISTINCT + + col2 + + 67 FROM tab2 AS cor0
----
107
125
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT DISTINCT MAX( - col0 ) AS col1 FROM tab2 WHERE NULL BETWEEN + - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4451
SELECT DISTINCT MAX ( - col0 ) AS col1 FROM tab2 WHERE NULL BETWEEN + - col0 AND NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4452
SELECT DISTINCT - COUNT( * ) AS col1, - ( + - ( - CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-4452
SELECT DISTINCT - COUNT ( * ) AS col1, - ( + - ( - CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
NULL

query I rowsort
SELECT ALL - col1 + + - 20 FROM tab1
----
-25
-34
-67

query I rowsort
SELECT DISTINCT 42 + + col0 AS col2 FROM tab0
----
129
139
57

query I rowsort
SELECT ALL ( - ( + 48 ) ) AS col0 FROM tab2
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT + MAX( ALL 81 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
81

skipif mysql # not compatible
query I rowsort label-4456
SELECT + MAX ( ALL 81 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4457
SELECT ALL col0 * 64 + - col0 - col1 - + CAST( - col1 AS SIGNED ) * col2 FROM tab0 AS cor0
----
4671
5670
6209

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL col0 * 64 + - col0 - col1 - + CAST ( - col1 AS INTEGER ) * col2 FROM tab0 AS cor0
----
4671
5670
6209

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( - 6 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col0 * - - ( col2 ) AS col0, + ( + col1 ) FROM tab2 AS cor0
----
-1058
51
-2560
77
-4350
67

query I rowsort
SELECT ALL - 52 + col1 * col0 + + 6 AS col2 FROM tab1 AS cor0
----
379
4231
668

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT ALL COUNT( ALL + - 11 ) + - 66 AS col2 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL COUNT ( ALL + - 11 ) + - 66 AS col2 FROM tab1 AS cor0
----
-63

query I rowsort
SELECT ALL 56 + + ( col2 ) FROM tab2
----
114
79
96

query I rowsort
SELECT 49 AS col0 FROM tab2 WHERE - - 80 * - col0 IS NOT NULL
----
49
49
49

query I rowsort
SELECT ALL + col0 + - 47 AS col1 FROM tab1 WHERE + ( - 50 ) IS NULL
----

query I rowsort
SELECT col0 - col0 * - col2 FROM tab1
----
4947
5100
6279

query II rowsort
SELECT ALL + 95, ( - - 22 ) AS col1 FROM tab2 AS cor0
----
95
22
95
22
95
22

query I rowsort
SELECT + col2 * - col0 + + col1 AS col0 FROM tab2 cor0
----
-1007
-2483
-4283

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4468
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + col1 + 14 > - - col1
----

skipif mysql # not compatible
query III rowsort label-4468
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + col1 + 14 > - - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1 / - - ( - 34 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 16 + - col1 + - col1 * - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4472
SELECT + - CAST( NULL AS SIGNED ) * + col0 + + - CAST( NULL AS SIGNED ) * 89 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4472
SELECT + - CAST ( NULL AS INTEGER ) * + col0 + + - CAST ( NULL AS INTEGER ) * 89 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT DISTINCT - COUNT( ALL 11 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4473
SELECT DISTINCT - COUNT ( ALL 11 ) AS col1 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 col1 FROM tab2 AS cor0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT DISTINCT - MAX( + + col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4475
SELECT DISTINCT - MAX ( + + col2 ) FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT DISTINCT - + MAX( 51 ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT - + MAX ( 51 ) AS col2 FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT ALL - MAX( ALL - 75 ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL - MAX ( ALL - 75 ) FROM tab1 AS cor0
----
75

query I rowsort
SELECT DISTINCT + col1 * + 56 FROM tab1 AS cor0
----
2632
280
784

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT col0 < + - col2
----
15
87
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 1 / - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( - col2 ) - - 18 * - + 72 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT ALL SUM( ALL col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL SUM ( ALL col1 ) FROM tab2
----
195

query II rowsort
SELECT + 90, col1 * + 12 + - col0 AS col1 FROM tab1
----
90
-25
90
117
90
473

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 + 34 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col2 + + col2 <= - 76 + - ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4486
SELECT col0 DIV + + col2 AS col1 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4486
SELECT col0 / + + col2 AS col1 FROM tab2
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT MIN( DISTINCT - - col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4487
SELECT MIN ( DISTINCT - - col0 ) AS col2 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT ALL 32 * + COUNT( * ) * 15 col0 FROM tab1 WHERE NOT + - 95 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4488
SELECT ALL 32 * + COUNT ( * ) * 15 col0 FROM tab1 WHERE NOT + - 95 IS NOT NULL
----
0

query I rowsort
SELECT ALL 68 + + 54 FROM tab0 AS cor0
----
122
122
122

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT ALL + 44 + - COUNT( * ) FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL + 44 + - COUNT ( * ) FROM tab2 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT ALL - + COUNT( * ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL - + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL + col1 AS col2, ( 82 ) * + col0 AS col0, - 14 FROM tab1 AS cor0 WHERE NULL >= + 26
----

query I rowsort
SELECT - col0 * 42 FROM tab0
----
-3654
-4074
-630

query I rowsort
SELECT ALL 5 - - 66 * + 27 FROM tab0
----
1787
1787
1787

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4495
SELECT ALL - CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL - CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 92 * - 39 + + col2 FROM tab1 AS cor0
----
-3492
-3520
-3529

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col0 * + col1, 43, - col2 / + + 32, + col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col1 - 5, col0 + + - col0, - - col1 + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4499
SELECT + 11 * - col1 * - + 3 - + col1 DIV + - col1 AS col0 FROM tab2 AS cor0
----
1684
2212
2542

skipif mysql # not compatible
query I rowsort label-4499
SELECT + 11 * - col1 * - + 3 - + col1 / + - col1 AS col0 FROM tab2 AS cor0
----
1684
2212
2542

query I rowsort
SELECT ALL col0 + - col0 + 64 FROM tab1
----
64
64
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4501
SELECT ALL + CAST( NULL AS SIGNED ) + col0 + - - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL + CAST ( NULL AS INTEGER ) + col0 + - - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 2 - + col0 + ( + col2 ) FROM tab2
----
-19
-25
-26

query I rowsort
SELECT col2 + + col1 + + col0 AS col0 FROM tab0
----
118
143
197

query I rowsort
SELECT + 71 * 36 * - - col1 FROM tab0
----
207036
2556
53676

onlyif mysql # DIV for integer division: 
query I rowsort label-4505
SELECT ALL + 76 DIV - col1 AS col0 FROM tab1
----
-1
-15
-5

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL + 76 / - col1 AS col0 FROM tab1
----
-1
-15
-5

query I rowsort
SELECT ALL + 10 FROM tab1 WHERE - + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab1 WHERE + - col2 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, col0 col2 FROM tab0 AS cor0
----
15
15
87
87
97
97

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4510
SELECT - - COUNT( * ) col0, COUNT( * ) / CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4510
SELECT - - COUNT ( * ) col0, COUNT ( * ) / CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
3
NULL

query I rowsort
SELECT DISTINCT + + 93 AS col0 FROM tab1 cor0
----
93

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT ALL SUM( ALL - col1 ) + + 85 FROM tab2 AS cor0
----
-110

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL SUM ( ALL - col1 ) + + 85 FROM tab2 AS cor0
----
-110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) col0 FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT + + 42, + col0 FROM tab2 AS cor0
----
42
46
42
64
42
75

query I rowsort
SELECT DISTINCT + + col2 + - col1 * ( col0 ) + col0 FROM tab1 AS cor0
----
-281
-4118
-567

query I rowsort
SELECT - 83 + + + col0 FROM tab0 cor0
----
-68
14
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT + 84 + + COUNT( * ) AS col0 FROM tab0 cor0
----
87

skipif mysql # not compatible
query I rowsort label-4518
SELECT + 84 + + COUNT ( * ) AS col0 FROM tab0 cor0
----
87

query I rowsort
SELECT DISTINCT col2 * - col1 + + - 85 FROM tab0
----
-184
-295
-3892

query I rowsort
SELECT - 43 + - col0 FROM tab0
----
-130
-140
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT DISTINCT - + 54 * COUNT( * ) AS col1 FROM tab2 WHERE NOT + - ( col2 ) = - + 16 * col0
----
-162

skipif mysql # not compatible
query I rowsort label-4521
SELECT DISTINCT - + 54 * COUNT ( * ) AS col1 FROM tab2 WHERE NOT + - ( col2 ) = - + 16 * col0
----
-162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4522
SELECT 20 * - CAST( + col1 AS SIGNED ) * + col2 + - + col2 + + col1 * col2 FROM tab1
----
-25632
-5664
-60792

skipif mysql # not compatible
query I rowsort label-4522
SELECT 20 * - CAST ( + col1 AS INTEGER ) * + col2 + - + col2 + + col1 * col2 FROM tab1
----
-25632
-5664
-60792

query I rowsort
SELECT + ( col0 ) + - - col0 + + - 3 - + + col1 * + - col1 AS col2 FROM tab0
----
192
612
6588

onlyif mysql # DIV for integer division: 
query II rowsort label-4524
SELECT + col0 DIV - 94 AS col1, 65 FROM tab0
----
-1
65
0
65
0
65

skipif mysql # not compatible
query II rowsort label-4524
SELECT + col0 / - 94 AS col1, 65 FROM tab0
----
-1
65
0
65
0
65

query I rowsort
SELECT ALL 2 AS col2 FROM tab2 WHERE NOT col0 IS NULL
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT - ( - SUM( ALL - col0 ) ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4526
SELECT - ( - SUM ( ALL - col0 ) ) FROM tab1
----
-227

query I rowsort
SELECT ALL + col2 * + col1 + + col2 AS col1 FROM tab1 AS cor0
----
1440
3264
354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4528
SELECT + CAST( + - COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4528
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT ALL - col1 - + ( - + col1 ) AS col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4530
SELECT + + 47 DIV 27 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4530
SELECT + + 47 / 27 FROM tab2 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) col0 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 25 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col2, + col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT ALL + + 89 + - col0 FROM tab2 AS cor0
----
14
25
43

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( col0 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4536
SELECT DISTINCT col1 * + + ( col1 ) * + + col2, - col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
1475
NULL
150212
NULL
18816
NULL

skipif mysql # not compatible
query II rowsort label-4536
SELECT DISTINCT col1 * + + ( col1 ) * + + col2, - col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
1475
NULL
150212
NULL
18816
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4537
SELECT * FROM tab2 WHERE NOT 1 * + col0 NOT BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4537
SELECT * FROM tab2 WHERE NOT 1 * + col0 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 NOT BETWEEN ( + col1 + col2 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 41 col1 FROM tab0 AS cor0
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT DISTINCT - + COUNT( ALL + + ( + - 95 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4540
SELECT DISTINCT - + COUNT ( ALL + + ( + - 95 ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4541
SELECT ALL * FROM tab2 cor0 WHERE + CAST( NULL AS SIGNED ) <> + col2
----

skipif mysql # not compatible
query III rowsort label-4541
SELECT ALL * FROM tab2 cor0 WHERE + CAST ( NULL AS INTEGER ) <> + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 29 * - + 30 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4543
SELECT ALL - CAST( 18 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL - CAST ( 18 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-18
-18
-18

query I rowsort
SELECT - 36 * - 76 / - ( 21 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( 43 * - - 59, col0, + col1, + col0, col0 )
----

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT + + ( - col1 ) FROM tab0 AS cor0 WHERE col0 * 43 * + - ( + + 89 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT ALL 8 + + - MAX( + col1 ) col1 FROM tab1
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4547
SELECT ALL 8 + + - MAX ( + col1 ) col1 FROM tab1
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4548
SELECT DISTINCT col1 * - col0 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4548
SELECT DISTINCT col1 * - col0 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ( + 57 ) FROM tab1
----
57
57
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, + 98 AS col2 FROM tab2
----
46
98
64
98
75
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4551
SELECT COUNT( * ) DIV 37 * COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4551
SELECT COUNT ( * ) / 37 * COUNT ( * ) AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4552
SELECT col0 + - 72 * + CAST( - col0 AS SIGNED ) AS col2 FROM tab0
----
1095
6351
7081

skipif mysql # not compatible
query I rowsort label-4552
SELECT col0 + - 72 * + CAST ( - col0 AS INTEGER ) AS col2 FROM tab0
----
1095
6351
7081

query II rowsort
SELECT DISTINCT - col2, + 86 AS col2 FROM tab0
----
-10
86
-47
86
-99
86

query I rowsort
SELECT + 44 * + col1 + col1 AS col2 FROM tab2
----
2295
3015
3465

onlyif mysql # aggregate syntax: 
query II rowsort label-4555
SELECT ALL + ( + - COUNT( * ) ), + COUNT( * ) AS col2 FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-4555
SELECT ALL + ( + - COUNT ( * ) ), + COUNT ( * ) AS col2 FROM tab1
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, col0 col2 FROM tab2 AS cor0
----
46
46
64
64
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + - ( col0 ) col0 FROM tab1 cor0
----
-138
-65
-90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * - 14 / + - 70 * + - col2 <> NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NULL < ( - + col0 ) + + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT DISTINCT 38 * + COUNT( * ) - - COUNT( * ) * + 46 FROM tab0
----
252

skipif mysql # not compatible
query I rowsort label-4560
SELECT DISTINCT 38 * + COUNT ( * ) - - COUNT ( * ) * + 46 FROM tab0
----
252

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col1 > + + ( 70 )
----

query I rowsort
SELECT - col1 - - 21 + + col2 * - + 4 AS col2 FROM tab2
----
-122
-216
-278

query I rowsort
SELECT DISTINCT - col2 - - + col1 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT ALL - + col2 AS col1 FROM tab2 AS cor0 WHERE NOT col2 + col2 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4565
SELECT DISTINCT - + COUNT( * ) * CAST( NULL AS SIGNED ) * + - MIN( ALL - col0 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4565
SELECT DISTINCT - + COUNT ( * ) * CAST ( NULL AS INTEGER ) * + - MIN ( ALL - col0 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT - 24 * - COUNT( * ) FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-4566
SELECT - 24 * - COUNT ( * ) FROM tab1 AS cor0
----
72

query I rowsort
SELECT DISTINCT 99 * 89 * - col0 FROM tab0
----
-132165
-766557
-854667

query II rowsort
SELECT 97 AS col0, col0 FROM tab0
----
97
15
97
87
97
97

query I rowsort
SELECT ALL 84 * + 54 AS col1 FROM tab2
----
4536
4536
4536

query I rowsort
SELECT ALL + 38 * - col2 AS col2 FROM tab2
----
-1520
-2204
-874

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col0, - col0 col0 FROM tab0
----
-1
-97
-21
-87
-81
-15

query II rowsort
SELECT DISTINCT col0 AS col0, - col2 AS col0 FROM tab0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT ALL + col0 * 64 AS col0 FROM tab0 AS cor0
----
5568
6208
960

query I rowsort
SELECT ALL col1 + 27 AS col1 FROM tab1
----
32
41
74

query I rowsort
SELECT DISTINCT col0 * - col0 FROM tab2 WHERE NOT - 83 + - 16 BETWEEN 15 AND ( NULL )
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT DISTINCT COUNT( DISTINCT 62 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4576
SELECT DISTINCT COUNT ( DISTINCT 62 ) FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4577
SELECT * FROM tab0 WHERE CAST( NULL AS SIGNED ) + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4577
SELECT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 81 AS col1 FROM tab0 WHERE NOT + col0 = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 ) > - 83 * - 15
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 16 + + ( col0 ) AS col0 FROM tab1
----
101
107
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT MIN( col2 ) + + 21 AS col2 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-4581
SELECT MIN ( col2 ) + + 21 AS col2 FROM tab2
----
44

query I rowsort
SELECT ALL col1 - col2 * col2 AS col0 FROM tab1
----
-3476
-4577
-9202

query I rowsort
SELECT 27 * 78 AS col2 FROM tab1
----
2106
2106
2106

query III rowsort
SELECT ALL * FROM tab2 WHERE 17 BETWEEN + col0 AND ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT DISTINCT MIN( DISTINCT + 91 ) * + 44 FROM tab1
----
4004

skipif mysql # not compatible
query I rowsort label-4585
SELECT DISTINCT MIN ( DISTINCT + 91 ) * + 44 FROM tab1
----
4004

query I rowsort
SELECT + 70 * - 29 AS col1 FROM tab2
----
-2030
-2030
-2030

query I rowsort
SELECT 20 * ( + 70 ) FROM tab2
----
1400
1400
1400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 95 col2 FROM tab0
----
110
182
192

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT ALL - COUNT( * ) FROM tab1 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL - COUNT ( * ) FROM tab1 WHERE col0 IS NULL
----
0

query I rowsort
SELECT col0 + - ( col2 ) AS col1 FROM tab1
----
-45
23
26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4591
SELECT ALL 70 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL 70 * + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 >= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * - 64 FROM tab0
----
-5568
-6208
-960

query I rowsort
SELECT 17 AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
17
17
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 + + col0 col1 FROM tab2
----
107
78
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT COUNT( * ) FROM tab2 WHERE ( + 18 - col2 ) NOT IN ( + 89 * col2 )
----
3

skipif mysql # not compatible
query I rowsort label-4596
SELECT COUNT ( * ) FROM tab2 WHERE ( + 18 - col2 ) NOT IN ( + 89 * col2 )
----
3

query I rowsort
SELECT + 76 AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT - COUNT( * ) + + 90 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-4598
SELECT - COUNT ( * ) + + 90 FROM tab0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4599
SELECT + CAST( NULL AS SIGNED ) + - col2 * - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4599
SELECT + CAST ( NULL AS INTEGER ) + - col2 * - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + 31 FROM tab1 cor0
----
1829
2108
2976

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 >= col0
----
87
21
10
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4602
SELECT col1 - + 34 DIV - col2 FROM tab0 AS cor0
----
1
24
81

skipif mysql # not compatible
query I rowsort label-4602
SELECT col1 - + 34 / - col2 FROM tab0 AS cor0
----
1
24
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 95 NOT BETWEEN - col2 + + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT ( MIN( DISTINCT col1 ) ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4604
SELECT ( MIN ( DISTINCT col1 ) ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4605
SELECT ALL - 40 FROM tab1 cor0 WHERE NOT NULL > + CAST( - 50 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL - 40 FROM tab1 cor0 WHERE NOT NULL > + CAST ( - 50 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT DISTINCT - SUM( col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4606
SELECT DISTINCT - SUM ( col1 ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT ALL - + 3 AS col2 FROM tab1 AS cor0
----
-3
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4608
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col1 + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) NOT BETWEEN - col1 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4608
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col1 + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) NOT BETWEEN - col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT - MIN( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4609
SELECT - MIN ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4610
SELECT + - 4 DIV + ( + MIN( DISTINCT 5 ) - + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4610
SELECT + - 4 / + ( + MIN ( DISTINCT 5 ) - + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT - MIN( DISTINCT + col0 ) * MAX( - 25 * col1 ) AS col0 FROM tab0 AS cor0
----
375

skipif mysql # not compatible
query I rowsort label-4612
SELECT - MIN ( DISTINCT + col0 ) * MAX ( - 25 * col1 ) AS col0 FROM tab0 AS cor0
----
375

query I rowsort
SELECT DISTINCT 73 FROM tab2 AS cor0 WHERE NOT ( + col2 ) NOT IN ( 45 - col2 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4614
SELECT ( + CAST( 18 AS SIGNED ) ) * col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 * - col0 )
----

skipif mysql # not compatible
query I rowsort label-4614
SELECT ( + CAST ( 18 AS INTEGER ) ) * col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 * - col0 )
----

query I rowsort
SELECT ALL 83 AS col0 FROM tab0 WHERE NOT col2 * + col0 IS NOT NULL
----

query I rowsort
SELECT 41 FROM tab2 WHERE NOT ( 2 ) NOT IN ( - 95 )
----

query I rowsort
SELECT 63 * - 95 FROM tab2
----
-5985
-5985
-5985

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT ( - 22 ) * + COUNT( DISTINCT - col0 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4618
SELECT ( - 22 ) * + COUNT ( DISTINCT - col0 ) FROM tab1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-4619
SELECT + 74 DIV + - col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4619
SELECT + 74 / + - col0 FROM tab2
----
-1
-1
0

query I rowsort
SELECT DISTINCT - - 96 + + col0 FROM tab1 cor0
----
147
181
187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4621
SELECT ALL - AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4621
SELECT ALL - AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT - col0 * - col1 IN ( - col2 )
----
59
68
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4623
SELECT - 14 DIV - SUM( ALL + + 71 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4623
SELECT - 14 / - SUM ( ALL + + 71 ) AS col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4624
SELECT + 81 DIV - col2 AS col0 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4624
SELECT + 81 / - col2 AS col0 FROM tab2
----
-1
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT DISTINCT + 7 * - ( COUNT( * ) ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + ( 60 ) IS NULL
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4625
SELECT DISTINCT + 7 * - ( COUNT ( * ) ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + ( 60 ) IS NULL
----
-63

query I rowsort
SELECT ALL 21 + col0 AS col2 FROM tab0 AS cor0
----
108
118
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4627
SELECT col0 AS col1, col2 + + - CAST( 84 AS SIGNED ) + 78 FROM tab0 AS cor0
----
15
41
87
4
97
93

skipif mysql # not compatible
query II rowsort label-4627
SELECT col0 AS col1, col2 + + - CAST ( 84 AS INTEGER ) + 78 FROM tab0 AS cor0
----
15
41
87
4
97
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4628
SELECT DISTINCT - 38 col1, MIN( DISTINCT - + col1 ) AS col1 FROM tab1 AS cor0
----
-38
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4628
SELECT DISTINCT - 38 col1, MIN ( DISTINCT - + col1 ) AS col1 FROM tab1 AS cor0
----
-38
-47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 - + 78 - + col0 NOT IN ( + 63 )
----

query I rowsort
SELECT - + 84 * + + col1 AS col1 FROM tab1 AS cor0
----
-1176
-3948
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT ( COUNT( * ) ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 32 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4631
SELECT ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 32 AND ( NULL )
----
0

query I rowsort
SELECT ALL - + col0 + + + col2 + 12 + + col2 * + col2 FROM tab1 AS cor0
----
3467
4613
9273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col0 ) + + - ( - ( - col1 ) ) + col2 col2 FROM tab0 AS cor0
----
-19
195
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col0 col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4635
SELECT + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4635
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4636
SELECT DISTINCT - 12 + - 16 AS col1 FROM tab0 WHERE NOT ( - 52 ) IN ( 83 * CAST( NULL AS SIGNED ) + - 85 ) AND NOT NULL > + 18
----

skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT - 12 + - 16 AS col1 FROM tab0 WHERE NOT ( - 52 ) IN ( 83 * CAST ( NULL AS INTEGER ) + - 85 ) AND NOT NULL > + 18
----

query I rowsort
SELECT DISTINCT 1 + - col1 AS col2 FROM tab0
----
-20
-80
0

query I rowsort
SELECT ALL 28 + - + col2 AS col2 FROM tab2
----
-12
-30
5

query I rowsort
SELECT col1 + + - col0 AS col2 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT 90 * - col0 + + - col1 AS col1 FROM tab2
----
-4191
-5837
-6817

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT + COUNT( - col1 ) + 14 + - - COUNT( * ) FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-4641
SELECT + COUNT ( - col1 ) + 14 + - - COUNT ( * ) FROM tab0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT ( + + col1 + col1 * - col2 ) < col0 / - 97
----
0

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT ( + + col1 + col1 * - col2 ) < col0 / - 97
----
0

query I rowsort
SELECT + - 52 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 AND - + 8
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = 85
----

query I rowsort
SELECT - col2 FROM tab0 cor0 WHERE ( NOT NULL <= col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4646
SELECT ALL ( - 22 ) + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT ( NULL > ( + + col0 ) )
----

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL ( - 22 ) + + CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NOT ( NULL > ( + + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT + 64 * COUNT( * ) col1 FROM tab0 AS cor0
----
192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4647
SELECT + 64 * COUNT ( * ) col1 FROM tab0 AS cor0
----
192

query I rowsort
SELECT ALL + col2 + col0 * - + 47 * - + ( + 23 ) FROM tab1 AS cor0
----
55227
91944
98439

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4649
SELECT ALL ( - col2 ) * - - 79 * + 98 * CAST( col1 AS SIGNED ) FROM tab1
----
-10405248
-2283890
-24743432

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL ( - col2 ) * - - 79 * + 98 * CAST ( col1 AS INTEGER ) FROM tab1
----
-10405248
-2283890
-24743432

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 - - + ( - 77 ) + + col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4651
SELECT CAST( + 72 AS SIGNED ) FROM tab2 AS cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-4651
SELECT CAST ( + 72 AS INTEGER ) FROM tab2 AS cor0
----
72
72
72

query I rowsort
SELECT DISTINCT + + ( + col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT + 15 * col1 IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 IN ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + - 26 col2 FROM tab1 AS cor0
----
-1326
-2210
-2366

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT + 92 IS NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + + col2 * + col2 + 37 AS col2 FROM tab0 AS cor0
----
137
2246
9838

onlyif mysql # DIV for integer division: 
query I rowsort label-4657
SELECT ALL + col0 DIV + 73 col1 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4657
SELECT ALL + col0 / + 73 col1 FROM tab0 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 * - col0 col2 FROM tab1
----
-3060
-5100
-5460

onlyif mysql # aggregate syntax: 
query II rowsort label-4659
SELECT 82 AS col1, - COUNT( * ) FROM tab2
----
82
-3

skipif mysql # not compatible
query II rowsort label-4659
SELECT 82 AS col1, - COUNT ( * ) FROM tab2
----
82
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4660
SELECT DISTINCT - CAST( 15 AS SIGNED ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-4660
SELECT DISTINCT - CAST ( 15 AS INTEGER ) FROM tab0
----
-15

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( + col2 ) AND ( + col1 * + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4662
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) - 13 * - col1 FROM tab2 WHERE NOT ( NOT ( col2 ) IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) - 13 * - col1 FROM tab2 WHERE NOT ( NOT ( col2 ) IS NOT NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4663
SELECT DISTINCT COUNT( * ) AS col1, 1 + + COUNT( * ) AS col1 FROM tab2
----
3
4

skipif mysql # not compatible
query II rowsort label-4663
SELECT DISTINCT COUNT ( * ) AS col1, 1 + + COUNT ( * ) AS col1 FROM tab2
----
3
4

query I rowsort
SELECT DISTINCT + 41 * + - 46 AS col1 FROM tab1 AS cor0
----
-1886

query I rowsort
SELECT DISTINCT col0 * - col0 + + 31 AS col1 FROM tab0 AS cor0
----
-194
-7538
-9378

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 - - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT DISTINCT - - COUNT( * ) + - - COUNT( * ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4667
SELECT DISTINCT - - COUNT ( * ) + - - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT + SUM( ALL - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4668
SELECT + SUM ( ALL - col2 ) FROM tab2 AS cor0
----
-121

query I rowsort
SELECT ALL col1 + + 24 FROM tab2 AS cor0
----
101
75
91

query I rowsort
SELECT DISTINCT - col2 + 44 FROM tab1 AS cor0
----
-15
-24
-52

query I rowsort
SELECT ALL ( + 54 ) + + col2 AS col1 FROM tab0
----
101
153
64

query I rowsort
SELECT - - col0 AS col0 FROM tab0 AS cor0 WHERE + col1 BETWEEN + + ( + - col0 ) + - col0 AND col1
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4673
SELECT DISTINCT + + col0 * - - ( - col0 ) * + + col0 + - - col0 + + + col1 + + + 29 DIV + col1 FROM tab2 AS cor0
----
-262003
-421733
-97239

skipif mysql # not compatible
query I rowsort label-4673
SELECT DISTINCT + + col0 * - - ( - col0 ) * + + col0 + - - col0 + + + col1 + + + 29 / + col1 FROM tab2 AS cor0
----
-262003
-421733
-97239

query I rowsort
SELECT - + col2 * col2 + col0 FROM tab1 AS cor0
----
-3396
-4533
-9165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 - - 64 * + col0 col1 FROM tab0 AS cor0 WHERE NULL BETWEEN - 62 AND + + 0
----

query I rowsort
SELECT - col2 + + ( + col2 ) + col1 AS col2 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - col2 < - col0 )
----
87
21
10

query I rowsort
SELECT DISTINCT - col1 + - col0 - col1 + - 20 AS col0 FROM tab0 AS cor0
----
-119
-149
-197

onlyif mysql # DIV for integer division: 
query I rowsort label-4679
SELECT ALL 80 DIV - - 76 + - col2 FROM tab0 AS cor0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL 80 / - - 76 + - col2 FROM tab0 AS cor0
----
-46
-9
-98

query I rowsort
SELECT col1 * col1 + - col2 + ( - col1 ) AS col1 FROM tab1 AS cor0
----
-39
2094
86

query I rowsort
SELECT ALL col0 - - + col0 AS col0 FROM tab0
----
174
194
30

query III rowsort
SELECT * FROM tab1 WHERE + 30 NOT BETWEEN - + 62 * + 70 - - col0 * - col1 AND - col2 * col1 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NULL < 67
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 - - col0 col1 FROM tab1
----
4947
5100
6279

query II rowsort
SELECT DISTINCT col2 - col1 + col0, - col0 AS col2 FROM tab1
----
112
-91
133
-51
139
-85

query I rowsort
SELECT - 69 * col1 + col2 + - - col0 - + col2 FROM tab2 AS cor0
----
-3473
-4548
-5249

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4687
SELECT + 46 - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4687
SELECT + 46 - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4688
SELECT ALL - 94 * + col2 - + col2 DIV + + col1 FROM tab0 AS cor0
----
-4418
-940
-9405

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL - 94 * + col2 - + col2 / + + col1 FROM tab0 AS cor0
----
-4418
-940
-9405

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT DISTINCT MIN( DISTINCT - col0 ) AS col2 FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT MIN ( DISTINCT - col0 ) AS col2 FROM tab1 cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 53 * + - col0 col1 FROM tab0
----
-4611
-5141
-795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4691
SELECT ALL col0 FROM tab2 WHERE ( 69 * + CAST( - + col2 AS SIGNED ) BETWEEN ( NULL ) AND - col1 + - - 76 + - + col1 )
----

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL col0 FROM tab2 WHERE ( 69 * + CAST ( - + col2 AS INTEGER ) BETWEEN ( NULL ) AND - col1 + - - 76 + - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT - + MAX( - 70 ) FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-4692
SELECT - + MAX ( - 70 ) FROM tab2 AS cor0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4693
SELECT ALL * FROM tab0 AS cor0 WHERE ( - CAST( - ( - col2 ) AS SIGNED ) ) BETWEEN ( - col0 ) AND ( col2 * + 80 )
----
87
21
10

skipif mysql # not compatible
query III rowsort label-4693
SELECT ALL * FROM tab0 AS cor0 WHERE ( - CAST ( - ( - col2 ) AS INTEGER ) ) BETWEEN ( - col0 ) AND ( col2 * + 80 )
----
87
21
10

query II rowsort
SELECT DISTINCT + - ( + - col1 ) AS col2, 48 + - - 13 FROM tab2 cor0
----
51
61
67
61
77
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT - ( + - MAX( ALL + - col2 ) ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4695
SELECT - ( + - MAX ( ALL + - col2 ) ) AS col1 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT COUNT( * ) * + + 36 * - SUM( ALL + col2 ) AS col2 FROM tab2 cor0
----
-13068

skipif mysql # not compatible
query I rowsort label-4696
SELECT COUNT ( * ) * + + 36 * - SUM ( ALL + col2 ) AS col2 FROM tab2 cor0
----
-13068

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT ALL + SUM( DISTINCT + + col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL + SUM ( DISTINCT + + col0 ) AS col2 FROM tab0
----
199

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 12 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT DISTINCT - MIN( ALL col1 ) col1 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4699
SELECT DISTINCT - MIN ( ALL col1 ) col1 FROM tab2
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + + ( - 45 ), col2, col0 col1 FROM tab0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4701
SELECT 5 DIV + COUNT( * ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4701
SELECT 5 / + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + 32 * 52 + - col2 + col1 * 78 AS col1 FROM tab2 AS cor0
----
5619
6832
7630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 90 + + col0 col0 FROM tab0 AS cor0
----
-3
-75
7

query I rowsort
SELECT 0 * - 35 + 80 FROM tab0
----
80
80
80

query I rowsort
SELECT 6 * - col0 * - + col2 FROM tab2
----
15360
26100
6348

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4706
SELECT ALL * FROM tab1 WHERE NOT + CAST( - col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4706
SELECT ALL * FROM tab1 WHERE NOT + CAST ( - col0 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT 65 * - + 15 AS col2 FROM tab0
----
-975
-975
-975

onlyif mysql # DIV for integer division: 
query I rowsort label-4708
SELECT - col0 DIV 58 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4708
SELECT - col0 / 58 FROM tab2
----
-1
-1
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 + - 75 IN ( + 52 + - col1, col2 + col1 )
----

query II rowsort
SELECT DISTINCT - col0 AS col0, 76 AS col1 FROM tab0 cor0
----
-15
76
-87
76
-97
76

query II rowsort
SELECT DISTINCT 20 AS col0, + col1 + + 90 AS col1 FROM tab1 AS cor0
----
20
104
20
137
20
95

query I rowsort
SELECT - col2 * - 46 + + 45 AS col2 FROM tab0
----
2207
4599
505

query I rowsort
SELECT + col2 + - col0 * + 73 * col0 + col0 - - 41 + - col1 FROM tab0
----
-16403
-552420
-686621

query I rowsort
SELECT ( - 45 ) + + col2 + - + col1 AS col0 FROM tab2
----
-54
-73
-82

query I rowsort
SELECT 62 + - col2 AS col1 FROM tab2
----
22
39
4

query I rowsort
SELECT ALL + 42 - col1 FROM tab0
----
-39
21
41

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4718
SELECT ALL + - COUNT( ALL - col1 ), 28 col2 FROM tab0 cor0
----
-3
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4718
SELECT ALL + - COUNT ( ALL - col1 ), 28 col2 FROM tab0 cor0
----
-3
28

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 + 15 IN ( + 77, - 95, + col1 + - + 41 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT + COUNT( DISTINCT + 23 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4720
SELECT + COUNT ( DISTINCT + 23 ) AS col0 FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + - 85 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4722
SELECT + CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4722
SELECT + CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT + + MAX( DISTINCT col1 ) col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4723
SELECT + + MAX ( DISTINCT col1 ) col1 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT - - MIN( ALL + col1 ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-4724
SELECT - - MIN ( ALL + col1 ) FROM tab2 cor0
----
51

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NOT col0 + - - col2 + - - col0 * + 21 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT - 54 + - - ( + ( - MIN( + - 93 ) ) ) FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-4726
SELECT - 54 + - - ( + ( - MIN ( + - 93 ) ) ) FROM tab0 AS cor0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4727
SELECT ( + - col1 ) + - col1 + - col2 * + CAST( NULL AS SIGNED ) - + col1 * col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4727
SELECT ( + - col1 ) + - col1 + - col2 * + CAST ( NULL AS INTEGER ) - + col1 * col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4728
SELECT col1 FROM tab1 WHERE NOT - ( + col2 ) NOT IN ( CAST( + 77 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4728
SELECT col1 FROM tab1 WHERE NOT - ( + col2 ) NOT IN ( CAST ( + 77 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4729
SELECT ALL col1 DIV ( - + col1 ) FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL col1 / ( - + col1 ) FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT 60 + + COUNT( * ) FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-4730
SELECT 60 + + COUNT ( * ) FROM tab0
----
63

query II rowsort
SELECT ALL col2 + + 25 + - + col0 * + col2 AS col0, - 31 + 41 + + - 27 + 8 AS col1 FROM tab1
----
-4775
-9
-4931
-9
-6095
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT ALL ( + - SUM( - 89 ) ) FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-4732
SELECT ALL ( + - SUM ( - 89 ) ) FROM tab0
----
267

query I rowsort
SELECT + ( 3 ) + + col1 FROM tab2
----
54
70
80

onlyif mysql # DIV for integer division: 
query II rowsort label-4734
SELECT DISTINCT col0 DIV col1 col2, 9 AS col0 FROM tab1
----
1
9
17
9
3
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4734
SELECT DISTINCT col0 / col1 col2, 9 AS col0 FROM tab1
----
1
9
17
9
3
9

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE 57 <> NULL
----

query I rowsort
SELECT ALL col1 + - - col0 + + 82 FROM tab1 AS cor0
----
147
172
220

query I rowsort
SELECT ALL - ( - 55 ) * - + 44 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to dfa8228c77a6b82399714f1a63428e07

query I rowsort
SELECT 29 - + 22 AS col2 FROM tab2
----
7
7
7

query I rowsort
SELECT 82 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT ALL - ( - 35 ) AS col1 FROM tab2
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT - 56 + - COUNT( DISTINCT - + col0 ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4741
SELECT - 56 + - COUNT ( DISTINCT - + col0 ) FROM tab1 cor0
----
-59

query I rowsort
SELECT DISTINCT - col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL 37 + - 44 AS col2 FROM tab2 AS cor0
----
-7
-7
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-4744
SELECT + 41 * + col0 + - - col0 DIV - col0 AS col2 FROM tab2 cor0
----
1885
2623
3074

skipif mysql # not compatible
query I rowsort label-4744
SELECT + 41 * + col0 + - - col0 / - col0 AS col2 FROM tab2 cor0
----
1885
2623
3074

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4745
SELECT + - col1 AS col2 FROM tab1 AS cor0 WHERE col2 / - - col0 / ( - CAST( NULL AS SIGNED ) ) NOT BETWEEN + + 4 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4745
SELECT + - col1 AS col2 FROM tab1 AS cor0 WHERE col2 / - - col0 / ( - CAST ( NULL AS INTEGER ) ) NOT BETWEEN + + 4 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL >= col1 * + 38
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 64 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( + 43 ) AS col2 FROM tab1
----
43
43
43

onlyif mysql # aggregate syntax: 
query II rowsort label-4749
SELECT DISTINCT COUNT( * ), + COUNT( * ) + - + 48 * - 78 AS col0 FROM tab2
----
3
3747

skipif mysql # not compatible
query II rowsort label-4749
SELECT DISTINCT COUNT ( * ), + COUNT ( * ) + - + 48 * - 78 AS col0 FROM tab2
----
3
3747

onlyif mysql # aggregate syntax: 
query II rowsort label-4750
SELECT COUNT( * ) col2, + 77 FROM tab1
----
3
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4750
SELECT COUNT ( * ) col2, + 77 FROM tab1
----
3
77

query I rowsort
SELECT col2 * - col0 * - 71 FROM tab0 AS cor0
----
50055
61770
681813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 23 col1 FROM tab1 AS cor0
----
-23
-23
-23

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 <= + 32
----

query I rowsort
SELECT ALL - 95 + 7 * - + 89 FROM tab1 AS cor0
----
-718
-718
-718

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT ALL - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4755
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4756
SELECT CAST( + MIN( + col0 ) AS SIGNED ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4756
SELECT CAST ( + MIN ( + col0 ) AS INTEGER ) FROM tab1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4757
SELECT ALL COUNT( - 49 ) FROM tab2 WHERE NOT NULL >= - CAST( - + col1 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL COUNT ( - 49 ) FROM tab2 WHERE NOT NULL >= - CAST ( - + col1 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT DISTINCT + COUNT( 85 ) + + 93 * - COUNT( * ) FROM tab2
----
-276

skipif mysql # not compatible
query I rowsort label-4758
SELECT DISTINCT + COUNT ( 85 ) + + 93 * - COUNT ( * ) FROM tab2
----
-276

query I rowsort
SELECT - 8 * + col2 * + col0 FROM tab2
----
-20480
-34800
-8464

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT - COUNT( * ) * MIN( ALL - col2 ) AS col2 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-4760
SELECT - COUNT ( * ) * MIN ( ALL - col2 ) AS col2 FROM tab2
----
174

query II rowsort
SELECT DISTINCT - 11, - col0 * - col0 AS col1 FROM tab0
----
-11
225
-11
7569
-11
9409

query I rowsort
SELECT col0 * + 4 + + - col0 AS col1 FROM tab1
----
153
255
273

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 7 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4764
SELECT DISTINCT - MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) + + + COUNT( * ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4764
SELECT DISTINCT - MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) + + + COUNT ( * ) col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL - col0 + + 81 AS col2 FROM tab2 WHERE NULL NOT IN ( col2 )
----

query I rowsort
SELECT - col1 * - 29 * - - ( + ( + 27 ) ) * - + col1 + + col1 AS col2 FROM tab2
----
-2036532
-3514820
-4642330

query I rowsort
SELECT ALL - 41 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT DISTINCT col0 * - 5 FROM tab0
----
-435
-485
-75

query I rowsort
SELECT + col1 - + - col1 + - col1 FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT + ( col0 ) <= + col1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT - + COUNT( ( 42 ) ) - - - 47 * 25 AS col0 FROM tab0 AS cor0
----
-1178

skipif mysql # not compatible
query I rowsort label-4771
SELECT - + COUNT ( ( 42 ) ) - - - 47 * 25 AS col0 FROM tab0 AS cor0
----
-1178

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 19 NOT BETWEEN col1 * - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT - col0 * + - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
425
4277
714

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4775
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 47 * - - col1 * + CAST( - 1 AS DECIMAL ) NOT IN ( + - 9 ) )
----

skipif mysql # not compatible
query III rowsort label-4775
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 47 * - - col1 * + CAST ( - 1 AS REAL ) NOT IN ( + - 9 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - + col0 col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT + MAX( DISTINCT - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4777
SELECT + MAX ( DISTINCT - col0 ) FROM tab2
----
-46

query I rowsort
SELECT 92 * + ( - col1 ) FROM tab1
----
-1288
-4324
-460

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT ALL + ( + MAX( ALL - 3 ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL + ( + MAX ( ALL - 3 ) ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - col0 / - ( col1 ) AS col0 FROM tab1 WHERE NULL >= - - col2
----

query II rowsort
SELECT 87 AS col2, ( + - col2 ) + + + col1 FROM tab1 AS cor0
----
87
-21
87
-54
87
-82

query I rowsort
SELECT ALL - + col2 * col1 FROM tab2 WHERE NOT 76 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( NULL ) NOT IN ( - col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT COUNT( col1 ) * - COUNT( * ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4785
SELECT COUNT ( col1 ) * - COUNT ( * ) AS col2 FROM tab0
----
-9

query II rowsort
SELECT DISTINCT + col0 AS col1, col0 * col0 + - col1 + 25 AS col1 FROM tab1
----
51
2612
85
7245
91
8259

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4787
SELECT DISTINCT - - 15 + - + COUNT( * ) DIV + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
14

skipif mysql # not compatible
query I rowsort label-4787
SELECT DISTINCT - - 15 + - + COUNT ( * ) / + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4788
SELECT ALL + col0 + - 35 + - 0 AS col1 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL + col0 + - 35 + - 0 AS col1 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4789
SELECT CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4789
SELECT CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + 84 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + col0
----

query I rowsort
SELECT - + 38 + - 96 FROM tab0 AS cor0
----
-134
-134
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT + COUNT( * ) + 48 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4792
SELECT + COUNT ( * ) + 48 FROM tab0 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT DISTINCT 9 + - - SUM( + - col1 ) col2 FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4793
SELECT DISTINCT 9 + - - SUM ( + - col1 ) col2 FROM tab2 AS cor0
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT - MIN( ALL + - 79 ) + + 16 FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-4794
SELECT - MIN ( ALL + - 79 ) + + 16 FROM tab0 AS cor0
----
95

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE 15 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT - col2 + + + col1 FROM tab1 cor0
----
-21
-54
-82

query I rowsort
SELECT DISTINCT col1 + + 0 AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4798
SELECT DISTINCT - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) FROM tab1 WHERE - + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) FROM tab1 WHERE - + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - ( + 18 ) * + - 92 AS col0 FROM tab0
----
1656

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT - 46 * + - MIN( DISTINCT - col2 ) - + + COUNT( * ) + COUNT( * ) * - COUNT( * ) * + 98 col0 FROM tab2 AS cor0
----
-3553

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4800
SELECT - 46 * + - MIN ( DISTINCT - col2 ) - + + COUNT ( * ) + COUNT ( * ) * - COUNT ( * ) * + 98 col0 FROM tab2 AS cor0
----
-3553

query I rowsort
SELECT col2 * + - col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

query II rowsort
SELECT + col2, - col1 FROM tab0 cor0 WHERE NULL IS NULL
----
10
-21
47
-81
99
-1

query I rowsort
SELECT DISTINCT + 74 * + ( + col1 ) + 55 AS col0 FROM tab1 AS cor0
----
1091
3533
425

query II rowsort
SELECT DISTINCT 39 * - 45 - - 96, + col0 AS col2 FROM tab0
----
-1659
15
-1659
87
-1659
97

query I rowsort
SELECT DISTINCT 70 * - col1 AS col1 FROM tab1
----
-3290
-350
-980

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 <> - col0 * + ( + col2 ) * col0 * col1 + + col2
----

query II rowsort
SELECT + 62 AS col0, - col2 + + col1 + + 0 FROM tab0 AS cor0
----
62
-98
62
11
62
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4808
SELECT - col0 * - CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4808
SELECT - col0 * - CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col2, + 81 FROM tab1 AS cor0
----
59
81
68
81
96
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - + col1 + - 81 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT DISTINCT COUNT( * ) * - 76 col2 FROM tab0 AS cor0 WHERE NOT + 86 > - 37
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4811
SELECT DISTINCT COUNT ( * ) * - 76 col2 FROM tab0 AS cor0 WHERE NOT + 86 > - 37
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - 78 ) IS NOT NULL
----

query II rowsort
SELECT + + 41 AS col1, 22 AS col1 FROM tab1 cor0
----
41
22
41
22
41
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 78 ) col1 FROM tab2, tab1 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT ALL - + SUM( + col2 ) + - 92 FROM tab2 WHERE - - col2 * - col0 / - ( + 27 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4815
SELECT ALL - + SUM ( + col2 ) + - 92 FROM tab2 WHERE - - col2 * - col0 / - ( + 27 ) IS NULL
----
NULL

query I rowsort
SELECT col1 * + - 51 FROM tab1 WHERE NOT ( NOT NULL >= NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 ) * col2 BETWEEN NULL AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT - col1 + + col1 / - col1 IN ( col2, col2 )
----
1
21
81

query I rowsort
SELECT ALL - col1 * - + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + 76 + - - col0, col1 FROM tab1 AS cor0 WHERE NOT 35 IS NOT NULL
----

query I rowsort
SELECT 22 + + - ( + col1 ) FROM tab0 WHERE NOT NULL <= - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4822
SELECT 99 / + 20 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4822
SELECT 99 / + 20 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4823
SELECT 34 DIV - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4823
SELECT 34 / - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 97 + col1 + ( - col1 ) + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4825
SELECT - - ( - col2 ) DIV + col0 * + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4825
SELECT - - ( - col2 ) / + col0 * + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + 24 * col1 AS col2 FROM tab2 AS cor0
----
-1224
-1608
-1848

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4827
SELECT 85 DIV + SUM( - col2 ) AS col2, 60 col1 FROM tab1 AS cor0
----
0
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4827
SELECT 85 / + SUM ( - col2 ) AS col2, 60 col1 FROM tab1 AS cor0
----
0
60

query I rowsort
SELECT ALL 93 * - + col0 + + + col2 + - + col1 + - + col1 - + 45 * + col1 AS col2 FROM tab0 AS cor0
----
-5155
-8969
-9068

query II rowsort
SELECT + col1, col0 * - - 11 * - col1 AS col2 FROM tab0
----
1
-1067
21
-20097
81
-13365

query I rowsort
SELECT DISTINCT col0 - + - ( 97 ) FROM tab1
----
148
182
188

query I rowsort
SELECT col1 + + - col1 - - 87 AS col1 FROM tab2
----
87
87
87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4832
SELECT DISTINCT + - col1 AS col1 FROM tab1 WHERE + + CAST( NULL AS DECIMAL ) <> - 16 + - col1
----

skipif mysql # not compatible
query I rowsort label-4832
SELECT DISTINCT + - col1 AS col1 FROM tab1 WHERE + + CAST ( NULL AS REAL ) <> - 16 + - col1
----

query I rowsort
SELECT + 97 + - + 3 FROM tab0
----
94
94
94

query II rowsort
SELECT DISTINCT - col0 + - col2 + + col0 + - + 66, 69 + - col0 AS col1 FROM tab0
----
-113
54
-165
-28
-76
-18

query I rowsort
SELECT DISTINCT - 5 * col0 * 48 * + 20 * 22 * - + col2 AS col2 FROM tab2
----
111724800
270336000
459360000

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT ALL ( + COUNT( * ) ) * + SUM( DISTINCT + col1 ) FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL ( + COUNT ( * ) ) * + SUM ( DISTINCT + col1 ) FROM tab2
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT ALL - SUM( DISTINCT col2 ) - COUNT( * ) AS col0 FROM tab0
----
-159

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL - SUM ( DISTINCT col2 ) - COUNT ( * ) AS col0 FROM tab0
----
-159

query I rowsort
SELECT - 28 + col0 FROM tab1
----
23
57
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + 8, + col2 col2 FROM tab2
----
31
23
48
40
66
58

query I rowsort
SELECT DISTINCT 2 * col0 FROM tab2
----
128
150
92

query III rowsort
SELECT * FROM tab1 WHERE + 42 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4842
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-4842
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-4843
SELECT - COUNT( * ) AS col2, 90 AS col1 FROM tab1 cor0
----
-3
90

skipif mysql # not compatible
query II rowsort label-4843
SELECT - COUNT ( * ) AS col2, 90 AS col1 FROM tab1 cor0
----
-3
90

query I rowsort
SELECT DISTINCT - ( 71 ) - + col1 + - + col1 FROM tab2 AS cor0
----
-173
-205
-225

query I rowsort
SELECT DISTINCT col1 + - 68 + - - 18 * + - 3 * + 4 AS col2 FROM tab1
----
-237
-270
-279

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE + - col1 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT DISTINCT COUNT( DISTINCT + 37 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4847
SELECT DISTINCT COUNT ( DISTINCT + 37 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL 79 + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4849
SELECT DISTINCT + 97 DIV - col1 + - 17 + + col0 * + 13 FROM tab1 AS cor0
----
1069
1164
640

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT + 97 / - col1 + - 17 + + col0 * + 13 FROM tab1 AS cor0
----
1069
1164
640

query I rowsort
SELECT + 65 * col0 AS col1 FROM tab0 cor0
----
5655
6305
975

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * - 4 IS NOT NULL
----

query I rowsort
SELECT ALL + ( + ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4853
SELECT DISTINCT - 84 * - COUNT( * ) - - COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4853
SELECT DISTINCT - 84 * - COUNT ( * ) - - COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4854
SELECT DISTINCT - SUM( + CAST( NULL AS SIGNED ) ) * + 52 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4854
SELECT DISTINCT - SUM ( + CAST ( NULL AS INTEGER ) ) * + 52 AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4855
SELECT - MIN( + col0 ) DIV 65 * + - COUNT( - col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4855
SELECT - MIN ( + col0 ) / 65 * + - COUNT ( - col0 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT DISTINCT + SUM( + 67 ) FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-4856
SELECT DISTINCT + SUM ( + 67 ) FROM tab2
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 WHERE col0 + ( + + 7 ) BETWEEN 82 AND ( + col1 ) * 47
----
-1

skipif mysql # not compatible
query I rowsort label-4857
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 WHERE col0 + ( + + 7 ) BETWEEN 82 AND ( + col1 ) * 47
----
-1

query I rowsort
SELECT + - col1 + - 44 AS col1 FROM tab0 AS cor0 WHERE NOT 37 IS NULL
----
-125
-45
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT + MIN( DISTINCT 8 ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-4859
SELECT + MIN ( DISTINCT 8 ) FROM tab2 AS cor0
----
8

query II rowsort
SELECT ALL + 36, col2 AS col2 FROM tab0 AS cor0
----
36
10
36
47
36
99

query I rowsort
SELECT + col2 * - ( + + col2 ) FROM tab2
----
-1600
-3364
-529

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL = - col2 + col1 * col2 ) OR NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT ( + - 62 ) + - 90 + - MIN( col1 ) * - COUNT( * ) FROM tab1 AS cor0
----
-137

skipif mysql # not compatible
query I rowsort label-4863
SELECT ( + - 62 ) + - 90 + - MIN ( col1 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-137

onlyif mysql # DIV for integer division: 
query I rowsort label-4864
SELECT - 53 DIV - - ( + + 71 ) + + ( 29 ) + + col1 FROM tab1 AS cor0
----
34
43
76

skipif mysql # not compatible
query I rowsort label-4864
SELECT - 53 / - - ( + + 71 ) + + ( 29 ) + + col1 FROM tab1 AS cor0
----
34
43
76

query I rowsort
SELECT ALL + col2 FROM tab0 cor0 WHERE NOT 99 - + ( + + col2 ) + - + col0 IS NOT NULL
----

query I rowsort
SELECT ALL 46 + + col0 + 74 FROM tab2 AS cor0
----
166
184
195

query I rowsort
SELECT ( + + col2 ) + 34 + + - 87 + - 8 FROM tab2 AS cor0
----
-21
-3
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT DISTINCT - COUNT( * ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4868
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 67 col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
67

query I rowsort
SELECT - col0 * - col1 + - col0 * + + col0 AS col1 FROM tab0 AS cor0
----
-5742
-9312
990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4871
SELECT DISTINCT - COUNT( * ) + - 66 DIV + COUNT( * ) AS col2 FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-4871
SELECT DISTINCT - COUNT ( * ) + - 66 / + COUNT ( * ) AS col2 FROM tab1
----
-25

query I rowsort
SELECT DISTINCT - ( - + col1 ) + + col1 - + + col0 - col0 FROM tab0
----
-132
-192
132

query I rowsort
SELECT 87 FROM tab1 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4874
SELECT DISTINCT - CAST( + ( + COUNT( * ) ) AS SIGNED ) * + - SUM( - - col2 ) + + + COUNT( * ) AS col2 FROM tab2
----
366

skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT - CAST ( + ( + COUNT ( * ) ) AS INTEGER ) * + - SUM ( - - col2 ) + + + COUNT ( * ) AS col2 FROM tab2
----
366

query I rowsort
SELECT + col2 * col1 + + col1 + 94 AS col2 FROM tab2 WHERE + col1 IS NOT NULL
----
1318
3251
4047

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4876
SELECT - col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4876
SELECT - col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4877
SELECT DISTINCT - 50 col1 FROM tab2 AS cor0 WHERE NOT + 8 * - CAST( NULL AS SIGNED ) IS NOT NULL
----
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4877
SELECT DISTINCT - 50 col1 FROM tab2 AS cor0 WHERE NOT + 8 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-50

query I rowsort
SELECT DISTINCT - - col0 - - 82 FROM tab2 AS cor0
----
128
146
157

query I rowsort
SELECT - 97 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT DISTINCT - 45 FROM tab1 WHERE NOT NULL = col1
----

query I rowsort
SELECT ALL 46 * - col1 * + + col1 * + - col1 AS col0 FROM tab0
----
24446286
426006
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4882
SELECT ALL + 72 DIV + COUNT( * ) FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-4882
SELECT ALL + 72 / + COUNT ( * ) FROM tab1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4883
SELECT - + AVG ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4883
SELECT - + AVG ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT - + MAX( - - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4884
SELECT - + MAX ( - - col0 ) FROM tab1 AS cor0
----
-91

query II rowsort
SELECT DISTINCT col2, + col1 * col0 FROM tab0 AS cor0
----
10
1827
47
1215
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT ( + 12 ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-4886
SELECT ( + 12 ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
36

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col0 <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT + - SUM( col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4888
SELECT + - SUM ( col1 ) FROM tab0 AS cor0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4889
SELECT col1 * 26 * + + CAST( - - 5 AS SIGNED ) + - col2 FROM tab1 cor0
----
1724
591
6042

skipif mysql # not compatible
query I rowsort label-4889
SELECT col1 * 26 * + + CAST ( - - 5 AS INTEGER ) + - col2 FROM tab1 cor0
----
1724
591
6042

query I rowsort
SELECT DISTINCT - col1 * - + col1 + + col1 FROM tab0 AS cor0
----
2
462
6642

query II rowsort
SELECT ALL + 33 AS col1, col2 AS col2 FROM tab0 cor0
----
33
10
33
47
33
99

query I rowsort
SELECT ALL + - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( 6, + col1 + + 89 + - - ( - 14 ), - col0, + col0 )
----

query II rowsort
SELECT ALL 3 * - + 14 * - col1 AS col1, - col0 FROM tab2
----
2142
-46
2814
-75
3234
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 * + ( - col0 ) col0 FROM tab2
----
2300
3200
3750

query I rowsort
SELECT ALL ( - 81 ) * + col0 AS col1 FROM tab0
----
-1215
-7047
-7857

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4896
SELECT 46 * + + CAST( + - ( - col1 ) AS SIGNED ) AS col1 FROM tab0
----
3726
46
966

skipif mysql # not compatible
query I rowsort label-4896
SELECT 46 * + + CAST ( + - ( - col1 ) AS INTEGER ) AS col1 FROM tab0
----
3726
46
966

query I rowsort
SELECT + ( - ( col2 ) ) FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-4898
SELECT ALL - ( - - COUNT( * ) ) AS col2, - COUNT( * ) AS col0 FROM tab2
----
-3
-3

skipif mysql # not compatible
query II rowsort label-4898
SELECT ALL - ( - - COUNT ( * ) ) AS col2, - COUNT ( * ) AS col0 FROM tab2
----
-3
-3

query I rowsort
SELECT + + ( + + 70 ) AS col1 FROM tab0 AS cor0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT - 74 + + + COUNT( * ) FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-4900
SELECT - 74 + + + COUNT ( * ) FROM tab1 AS cor0
----
-71

query I rowsort
SELECT ALL + col0 + + 55 FROM tab0
----
142
152
70

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE NOT ( ( NULL IS NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4903
SELECT - col2 DIV - - 35 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4903
SELECT - col2 / - - 35 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT DISTINCT + + COUNT( * ) * + 16 AS col0 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-4904
SELECT DISTINCT + + COUNT ( * ) * + 16 AS col0 FROM tab1 AS cor0
----
48

query I rowsort
SELECT DISTINCT + 32 + col2 AS col1 FROM tab2 cor0
----
55
72
90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 ) + - - col2 * + col0 = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4907
SELECT - ( - + 70 ) - COUNT( * ) DIV + ( - - 15 ) - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-4907
SELECT - ( - + 70 ) - COUNT ( * ) / + ( - - 15 ) - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
67

query I rowsort
SELECT ALL - col0 + - 31 AS col2 FROM tab1
----
-116
-122
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4909
SELECT DISTINCT 72 / - COUNT( * ) - + + CAST( NULL AS SIGNED ) - + 60 * - + COUNT( * ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4909
SELECT DISTINCT 72 / - COUNT ( * ) - + + CAST ( NULL AS INTEGER ) - + 60 * - + COUNT ( * ) col0 FROM tab0
----
NULL

query I rowsort
SELECT - ( - 52 ) + + - 13 * + 17 AS col1 FROM tab0
----
-169
-169
-169

query I rowsort
SELECT ALL col2 + - + col1 AS col1 FROM tab0
----
-11
-34
98

query I rowsort
SELECT + - col0 AS col1 FROM tab2 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4913
SELECT + ( - col0 ) + + CAST( - 77 AS SIGNED ) FROM tab2
----
-123
-141
-152

skipif mysql # not compatible
query I rowsort label-4913
SELECT + ( - col0 ) + + CAST ( - 77 AS INTEGER ) FROM tab2
----
-123
-141
-152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4914
SELECT DISTINCT - CAST( + col1 AS SIGNED ) - + col0 FROM tab2
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) - + col0 FROM tab2
----
-141
-142
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4915
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 + col0 + col2 * - col0 / + - CAST( 51 AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query III rowsort label-4915
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 + col0 + col2 * - col0 / + - CAST ( 51 AS REAL ) < NULL
----

query II rowsort
SELECT ALL + col0 * - col0 + + 8 * + 42 AS col0, col1 * - 3 AS col1 FROM tab1 AS cor0
----
-2265
-42
-6889
-15
-7945
-141

query II rowsort
SELECT col2, + col0 AS col1 FROM tab2
----
23
46
40
64
58
75

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 78 < - col2 - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 31 + - col1 <= + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT ALL + - COUNT( ALL + - 5 ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4920
SELECT ALL + - COUNT ( ALL + - 5 ) AS col2 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT DISTINCT + SUM( DISTINCT - 83 ) col0 FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4921
SELECT DISTINCT + SUM ( DISTINCT - 83 ) col0 FROM tab0 AS cor0
----
-83

query I rowsort
SELECT ALL + 88 * - + col2 AS col1 FROM tab2 AS cor0
----
-2024
-3520
-5104

query I rowsort
SELECT + - col2 * - - 61 AS col2 FROM tab2 AS cor0
----
-1403
-2440
-3538

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT ALL 81 * + 95 - - COUNT( ALL - ( - col2 ) ) * + MAX( + 34 ) FROM tab1 cor0
----
7797

skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL 81 * + 95 - - COUNT ( ALL - ( - col2 ) ) * + MAX ( + 34 ) FROM tab1 cor0
----
7797

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT - COUNT( * ) + - COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4925
SELECT - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT - col2 IS NOT NULL
----
0

query I rowsort
SELECT + + 29 * + col2 AS col1 FROM tab0 AS cor0
----
1363
2871
290

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + col1 AND + + col0
----

query I rowsort
SELECT DISTINCT col1 * + 29 FROM tab0
----
2349
29
609

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 43, col0 * + + col1 + col2 col1 FROM tab2
----
43
2369
43
4968
43
5083

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT 18 + + COUNT( * ) * + ( + 77 ) FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-4930
SELECT 18 + + COUNT ( * ) * + ( + 77 ) FROM tab0
----
249

query I rowsort
SELECT - 46 * + - col0 + col0 FROM tab2
----
2162
3008
3525

query I rowsort
SELECT + col0 * - + col1 + - col2 / col2 FROM tab0 WHERE NOT + 98 - + 44 / + col1 * - 30 IS NOT NULL
----

query I rowsort
SELECT ALL ( - 72 ) FROM tab1
----
-72
-72
-72

query II rowsort
SELECT ALL - + col2 + - col1, col1 AS col2 FROM tab1 AS cor0
----
-110
14
-115
47
-64
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT - ( + MIN( + col0 ) ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4935
SELECT - ( + MIN ( + col0 ) ) FROM tab0 AS cor0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - col0 ) col2, - 35 AS col1 FROM tab1 AS cor0
----
-51
-35
-85
-35
-91
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT DISTINCT + 86 * COUNT( * ) - COUNT( * ) - - - 47 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
718

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4937
SELECT DISTINCT + 86 * COUNT ( * ) - COUNT ( * ) - - - 47 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
718

query I rowsort
SELECT DISTINCT - + 60 + col1 + + 86 AS col1 FROM tab0 AS cor0
----
107
27
47

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + 29
----

query I rowsort
SELECT - ( - ( - - ( col0 ) ) ) * 82 FROM tab1 WHERE - col2 NOT IN ( 33 )
----
4182
6970
7462

query I rowsort
SELECT ALL 58 * + col0 - - col2 AS col0 FROM tab1
----
3054
4989
5346

query II rowsort
SELECT DISTINCT + col0 * col2 - - col1, col0 AS col2 FROM tab1
----
4910
51
5020
85
6235
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4943
SELECT ALL - 0 - + ( col0 ) * + col0, CAST( NULL AS SIGNED ) - - col0 AS col1 FROM tab0
----
-225
NULL
-7569
NULL
-9409
NULL

skipif mysql # not compatible
query II rowsort label-4943
SELECT ALL - 0 - + ( col0 ) * + col0, CAST ( NULL AS INTEGER ) - - col0 AS col1 FROM tab0
----
-225
NULL
-7569
NULL
-9409
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT - + COUNT( * ) AS col2 FROM tab1 WHERE NOT + 58 BETWEEN - col1 AND + 46
----
-3

skipif mysql # not compatible
query I rowsort label-4944
SELECT - + COUNT ( * ) AS col2 FROM tab1 WHERE NOT + 58 BETWEEN - col1 AND + 46
----
-3

query II rowsort
SELECT ALL 28 AS col0, 3 + - 48 + col0 FROM tab2
----
28
1
28
19
28
30

query I rowsort
SELECT + col2 * - col0 * + + col1 FROM tab0 AS cor0
----
-18270
-57105
-9603

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL <= - ( 24 )
----

query I rowsort
SELECT ALL - col1 * col0 + + + col2 FROM tab2 WHERE - - col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4949
SELECT + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ), COUNT( * ) AS col0 FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4949
SELECT + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ), COUNT ( * ) AS col0 FROM tab1
----
NULL
3

query I rowsort
SELECT ALL + + 92 AS col0 FROM tab2 AS cor0
----
92
92
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4951
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * + + 21 * + col0 * + + CAST( NULL AS SIGNED ) + + col1 BETWEEN + + col1 AND + 42
----

skipif mysql # not compatible
query III rowsort label-4951
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * + + 21 * + col0 * + + CAST ( NULL AS INTEGER ) + + col1 BETWEEN + + col1 AND + 42
----

query I rowsort
SELECT DISTINCT + 62 + + 73 FROM tab2 AS cor0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT DISTINCT MAX( ALL ( + 93 ) ) FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-4953
SELECT DISTINCT MAX ( ALL ( + 93 ) ) FROM tab2 AS cor0
----
93

query I rowsort
SELECT 94 * + + col0 FROM tab2
----
4324
6016
7050

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4955
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN + col1 - + 61 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4955
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN + col1 - + 61 AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4956
SELECT ALL - CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4956
SELECT ALL - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL 75 * col1 AS col2 FROM tab2 WHERE NOT - + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 79 >= + 26 + + 79
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 50 * col0 + col2 * + + ( + col0 ) * ( + col0 ) + - col1 FROM tab2 AS cor0
----
166963
329933
50917

query I rowsort
SELECT + 52 + + 26 + - 20 * col2 AS col2 FROM tab0 AS cor0
----
-122
-1902
-862

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4961
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT - col1 * + 1 * - col1 AS col0 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT + + 76 + + col2 AS col0 FROM tab2 AS cor0 WHERE 64 < + 5
----

query I rowsort
SELECT DISTINCT + col2 * + 68 * + + 60 + 89 AS col0 FROM tab1 AS cor0
----
240809
277529
391769

query I rowsort
SELECT ALL 65 + + col0 AS col2 FROM tab2 AS cor0
----
111
129
140

query I rowsort
SELECT 62 + col0 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4967
SELECT ALL - col1 + - col2 * + ( + col1 ) DIV + - col1 AS col2 FROM tab2 AS cor0
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL - col1 + - col2 * + ( + col1 ) / + - col1 AS col2 FROM tab2 AS cor0
----
-28
-37
-9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - - col0 + + col2 >= NULL AND NULL IS NULL
----

query I rowsort
SELECT 40 + col0 AS col1 FROM tab2 AS cor0
----
104
115
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4970
SELECT - CAST( - + ( - col1 ) AS SIGNED ) + col0 col1 FROM tab2 AS cor0
----
-13
-5
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4970
SELECT - CAST ( - + ( - col1 ) AS INTEGER ) + col0 col1 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT DISTINCT + 60 - col1 FROM tab0
----
-21
39
59

onlyif mysql # DIV for integer division: 
query II rowsort label-4972
SELECT col2 * - col0 DIV col0 * - - col0 + + col1 AS col1, - col1 FROM tab0
----
-624
-81
-849
-21
-9602
-1

skipif mysql # not compatible
query II rowsort label-4972
SELECT col2 * - col0 / col0 * - - col0 + + col1 AS col1, - col1 FROM tab0
----
-624
-81
-849
-21
-9602
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4973
SELECT CAST( 9 AS SIGNED ) AS col2, col0 + + - 86 - - 64 * - col2 + + col0 AS col0 FROM tab2
----
9
-1466
9
-2518
9
-3648

skipif mysql # not compatible
query II rowsort label-4973
SELECT CAST ( 9 AS INTEGER ) AS col2, col0 + + - 86 - - 64 * - col2 + + col0 AS col0 FROM tab2
----
9
-1466
9
-2518
9
-3648

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT ALL ( + 69 ) * - COUNT( * ) FROM tab2
----
-207

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL ( + 69 ) * - COUNT ( * ) FROM tab2
----
-207

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 37 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4976
SELECT DISTINCT * FROM tab1 WHERE + - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4976
SELECT DISTINCT * FROM tab1 WHERE + - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 8 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT DISTINCT - COUNT( * ) * COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) FROM tab0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4979
SELECT DISTINCT - - col0 DIV + 34 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-4979
SELECT DISTINCT - - col0 / + 34 FROM tab2 AS cor0
----
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4980
SELECT DISTINCT col2 DIV - - col1 + col0 AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4980
SELECT DISTINCT col2 / - - col1 + col0 AS col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4981
SELECT DISTINCT MIN( 41 ) AS col0 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) <> + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4981
SELECT DISTINCT MIN ( 41 ) AS col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) <> + + col2
----
NULL

query I rowsort
SELECT ( col1 ) * + 28 * col2 AS col1 FROM tab1 AS cor0 WHERE NOT 88 IS NULL
----
37632
8260
89488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4983
SELECT + - CAST( + 76 AS SIGNED ) * + 64 - col2 * col2 + + col2 + + - 67 AS col2 FROM tab0 AS cor0
----
-14633
-5021
-7093

skipif mysql # not compatible
query I rowsort label-4983
SELECT + - CAST ( + 76 AS INTEGER ) * + 64 - col2 * col2 + + col2 + + - 67 AS col2 FROM tab0 AS cor0
----
-14633
-5021
-7093

onlyif mysql # DIV for integer division: 
query II rowsort label-4984
SELECT DISTINCT 48 DIV + ( + - col0 ), - col0 AS col0 FROM tab2
----
-1
-46
0
-64
0
-75

skipif mysql # not compatible
query II rowsort label-4984
SELECT DISTINCT 48 / + ( + - col0 ), - col0 AS col0 FROM tab2
----
-1
-46
0
-64
0
-75

query II rowsort
SELECT ALL - col2 AS col2, col2 + - ( 77 ) * + 59 + col2 - - + col0 + - 95 + col1 * - - col1 * col2 * + ( - col0 ) FROM tab1 AS cor0
----
-59
-129810
-68
-13673703
-96
-964011

query I rowsort
SELECT ALL - ( ( - + col1 ) ) FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT ALL + - 20 * + col0 + + col0 AS col0 FROM tab2 AS cor0
----
-1216
-1425
-874

query II rowsort
SELECT ALL + col1, col1 AS col0 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT DISTINCT + - ( col1 ) + - + col2 FROM tab1 AS cor0
----
-110
-115
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * + + col1 + 88 col2, 62 AS col2 FROM tab1 AS cor0
----
-1256
62
-207
62
-3108
62

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 AS cor0 WHERE + col2 + col2 > 58
----
51
85
91

query I rowsort
SELECT ALL + - 2 + - - 73 AS col2 FROM tab0 AS cor0
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4993
SELECT col1 + + CAST( NULL AS SIGNED ) - col2 + - col0 * - 19 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4993
SELECT col1 + + CAST ( NULL AS INTEGER ) - col2 + - col0 * - 19 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT 45 * + COUNT( * ) + 42 AS col0 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-4994
SELECT 45 * + COUNT ( * ) + 42 AS col0 FROM tab1
----
177

query III rowsort
SELECT * FROM tab2 WHERE + col2 * - - col0 * col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 col1 FROM tab1
----
81

query III rowsort
SELECT * FROM tab2 WHERE ( - - col2 * - + col1 ) IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT DISTINCT COUNT( + 87 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4998
SELECT DISTINCT COUNT ( + 87 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col2 * + + 67 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 83 * - col2 * col0 AS col2 FROM tab1 AS cor0
----
-406368
-416245
-513604

query II rowsort
SELECT DISTINCT 96 + 95, col2 * + + col0 * 30 AS col0 FROM tab2 AS cor0
----
191
130500
191
31740
191
76800

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT + + ( + MAX( - 22 ) ) FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-5002
SELECT + + ( + MAX ( - 22 ) ) FROM tab0 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT COUNT( * ) * - + COUNT( * ) col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5003
SELECT COUNT ( * ) * - + COUNT ( * ) col0 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT - 71 - + - ( + col0 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-56
16
26

query I rowsort
SELECT ALL + - 48 * - + 11 FROM tab2 AS cor0
----
528
528
528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 39 col0 FROM tab1 AS cor0
----
44
53
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5007
SELECT ALL - + CAST( 84 AS SIGNED ) FROM tab0 AS cor0
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL - + CAST ( 84 AS INTEGER ) FROM tab0 AS cor0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-5008
SELECT DISTINCT 37, COUNT( * ) + - - 79 AS col0 FROM tab0 AS cor0
----
37
82

skipif mysql # not compatible
query II rowsort label-5008
SELECT DISTINCT 37, COUNT ( * ) + - - 79 AS col0 FROM tab0 AS cor0
----
37
82

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + - ( col0 ) * ( - - col2 ) ) <= NULL
----

query I rowsort
SELECT ALL - 73 * - col1 FROM tab0
----
1533
5913
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT DISTINCT MIN( ALL + 8 ) * - + COUNT( * ) AS col0 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-5011
SELECT DISTINCT MIN ( ALL + 8 ) * - + COUNT ( * ) AS col0 FROM tab0
----
-24

query II rowsort
SELECT ALL col2 AS col0, - col1 FROM tab0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT ALL col0 * col2 * 78 AS col0 FROM tab2
----
199680
339300
82524

query I rowsort
SELECT DISTINCT + 4 * + col1 AS col0 FROM tab2
----
204
268
308

query I rowsort
SELECT ( 5 ) AS col0 FROM tab1
----
5
5
5

query II rowsort
SELECT 77 AS col2, col2 FROM tab0
----
77
10
77
47
77
99

query I rowsort
SELECT col1 * col2 * col1 FROM tab0 AS cor0
----
308367
4410
99

query I rowsort
SELECT - - col2 FROM tab2 AS cor0 WHERE NOT + 71 * + - 57 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5019
SELECT - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5019
SELECT - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5020
SELECT DISTINCT - - 69, - SUM( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
69
-199

skipif mysql # not compatible
query II rowsort label-5020
SELECT DISTINCT - - 69, - SUM ( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
69
-199

query I rowsort
SELECT ALL col0 * + 35 AS col1 FROM tab1
----
1785
2975
3185

query I rowsort
SELECT - - 66 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT ALL 15 * - + col1 - + - 35 + 77 FROM tab2 AS cor0
----
-1043
-653
-893

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5024
SELECT ALL - SUM( ALL + col0 ) AS col2 FROM tab1 AS cor0 WHERE col1 NOT BETWEEN CAST( - col2 AS SIGNED ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5024
SELECT ALL - SUM ( ALL + col0 ) AS col2 FROM tab1 AS cor0 WHERE col1 NOT BETWEEN CAST ( - col2 AS INTEGER ) AND NULL
----
NULL

query II rowsort
SELECT ALL - + ( + 79 ) + - col0 AS col2, - col1 AS col1 FROM tab2 AS cor0
----
-125
-51
-143
-77
-154
-67

query III rowsort
SELECT * FROM tab2 cor0 WHERE 97 * - col1 < + 12
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 64 + col2 AS col2 FROM tab1
----
123
132
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5028
SELECT COUNT( * ) + + CAST( - 77 AS SIGNED ) * - 20 col0 FROM tab1
----
1543

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5028
SELECT COUNT ( * ) + + CAST ( - 77 AS INTEGER ) * - 20 col0 FROM tab1
----
1543

query I rowsort
SELECT col2 FROM tab1 WHERE + col2 IS NOT NULL
----
59
68
96

query I rowsort
SELECT 35 + - col0 * + - 32 FROM tab0
----
2819
3139
515

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5031
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 54 - + CAST( + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5031
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 54 - + CAST ( + col1 AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT ALL ( - 47 ) + col2 AS col2, - 45 + + 24 FROM tab0 cor0
----
-37
-21
0
-21
52
-21

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN col2 AND + col2
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) col1 FROM tab2 WHERE NOT + col2 NOT BETWEEN NULL AND - col0 * - col1
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - 15 AND - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5036
SELECT ALL + ( + COUNT( * ) ) DIV - COUNT( * ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5036
SELECT ALL + ( + COUNT ( * ) ) / - COUNT ( * ) AS col1 FROM tab0
----
-1

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE NOT 58 NOT IN ( + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 * + col2 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5039
SELECT + col0 DIV + 43 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5039
SELECT + col0 / + 43 FROM tab1
----
1
1
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5040
SELECT + CAST( 2 AS SIGNED ) DIV col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5040
SELECT + CAST ( 2 AS INTEGER ) / col1 AS col2 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5041
SELECT - 74 DIV col1 FROM tab0
----
-3
-74
0

skipif mysql # not compatible
query I rowsort label-5041
SELECT - 74 / col1 FROM tab0
----
-3
-74
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5042
SELECT + 8 - - col1 DIV - col0 FROM tab1
----
8
8
8

skipif mysql # not compatible
query I rowsort label-5042
SELECT + 8 - - col1 / - col0 FROM tab1
----
8
8
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 14 + - 35 * col2 col2 FROM tab1
----
-2051
-2366
-3346

query I rowsort
SELECT ALL + 32 AS col1 FROM tab1 WHERE - 6 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5045
SELECT ALL ( - col0 ) DIV col2 AS col1 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL ( - col0 ) / col2 AS col1 FROM tab2
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT ALL SUM( ALL col0 ) - COUNT( * ) FROM tab1
----
224

skipif mysql # not compatible
query I rowsort label-5046
SELECT ALL SUM ( ALL col0 ) - COUNT ( * ) FROM tab1
----
224

query I rowsort
SELECT ALL 23 AS col1 FROM tab1 WHERE NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5048
SELECT + COUNT( * ) DIV ( MAX( + col1 ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5048
SELECT + COUNT ( * ) / ( MAX ( + col1 ) ) FROM tab1
----
0

query I rowsort
SELECT - col2 * col0 FROM tab1 WHERE + col0 IS NOT NULL
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 * col0 + col1 col2 FROM tab1
----
4502
7485
8055

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 NOT IN ( 97 )
----

query I rowsort
SELECT ALL - ( - col2 ) + - col0 AS col2 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col2 ) NOT IN ( 50 / - ( 23 * - col0 ) + + 4 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 + col0 col1 FROM tab0
----
-123
-2
-3792

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL 82 AS col1 FROM tab1 WHERE NOT ( col0 - col0 ) IS NOT NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NOT 18 IS NULL
----
51
67
77

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 94 < ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT SUM( + col0 ) + + 26 FROM tab2
----
211

skipif mysql # not compatible
query I rowsort label-5059
SELECT SUM ( + col0 ) + + 26 FROM tab2
----
211

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT COUNT( * ) + - 80 AS col2 FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-5060
SELECT COUNT ( * ) + - 80 AS col2 FROM tab0
----
-77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5061
SELECT col1 DIV CAST( + col2 * col2 AS SIGNED ) + + col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5061
SELECT col1 / CAST ( + col2 * col2 AS INTEGER ) + + col1 FROM tab1
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5062
SELECT col2 DIV - col0 + 38 FROM tab1
----
37
38
38

skipif mysql # not compatible
query I rowsort label-5062
SELECT col2 / - col0 + 38 FROM tab1
----
37
38
38

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE + col2 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 88 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5065
SELECT ALL + CAST( + AVG ( - 90 ) AS SIGNED ) AS col0 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL + CAST ( + AVG ( - 90 ) AS INTEGER ) AS col0 FROM tab0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT DISTINCT COUNT( * ) + 75 * + 6 AS col1 FROM tab0 WHERE ( col2 ) = NULL
----
450

skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT COUNT ( * ) + 75 * + 6 AS col1 FROM tab0 WHERE ( col2 ) = NULL
----
450

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NULL > ( - col1 )
----

query I rowsort
SELECT DISTINCT - ( + col2 ) + - col0 AS col1 FROM tab0
----
-196
-62
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5069
SELECT DISTINCT col1 + - CAST( + col2 + - 83 * col0 AS SIGNED ) FROM tab2 WHERE ( col0 ) * 88 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5069
SELECT DISTINCT col1 + - CAST ( + col2 + - 83 * col0 AS INTEGER ) FROM tab2 WHERE ( col0 ) * 88 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5070
SELECT - 71 + CAST( NULL AS SIGNED ) / + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5070
SELECT - 71 + CAST ( NULL AS INTEGER ) / + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 AS col2 FROM tab2 cor0 WHERE NOT NULL = + col0
----

query I rowsort
SELECT DISTINCT 0 * + col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( + col1 * + col0 - 98 ) BETWEEN 28 / col1 AND + col2 * + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT DISTINCT + COUNT( col1 ) * + 75 AS col1 FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-5073
SELECT DISTINCT + COUNT ( col1 ) * + 75 AS col1 FROM tab0 AS cor0
----
225

query I rowsort
SELECT - 26 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 + - 21 * ( col2 + 59 ) AND NULL
----

query I rowsort
SELECT ALL col0 * - 42 FROM tab0 AS cor0
----
-3654
-4074
-630

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5076
SELECT * FROM tab2 cor0 WHERE NOT - 40 - 35 * CAST( NULL AS SIGNED ) BETWEEN 46 AND - col0
----

skipif mysql # not compatible
query III rowsort label-5076
SELECT * FROM tab2 cor0 WHERE NOT - 40 - 35 * CAST ( NULL AS INTEGER ) BETWEEN 46 AND - col0
----

query I rowsort
SELECT 54 * 14 FROM tab0
----
756
756
756

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT MAX( DISTINCT - ( col2 ) ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-5078
SELECT MAX ( DISTINCT - ( col2 ) ) AS col0 FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT ( + MAX( col1 ) ) * - COUNT( * ) AS col1 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-5079
SELECT ( + MAX ( col1 ) ) * - COUNT ( * ) AS col1 FROM tab0
----
-243

query I rowsort
SELECT + 92 FROM tab2 cor0 CROSS JOIN tab0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT col0 + + col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) >= ( ( col1 ) + + 51 * + 85 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * col1 + col1 NOT IN ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5083
SELECT 9 DIV + 60 + col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5083
SELECT 9 / + 60 + col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT DISTINCT - - MAX( - col2 ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5084
SELECT DISTINCT - - MAX ( - col2 ) AS col1 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col2 * col2 ) BETWEEN ( - col1 ) AND ( NULL )
----

query I rowsort
SELECT 23 + ( col0 ) FROM tab1 AS cor0
----
108
114
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT MAX( col2 ) AS col2 FROM tab0 cor0 WHERE NULL BETWEEN - ( + col0 ) AND - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-5087
SELECT MAX ( col2 ) AS col2 FROM tab0 cor0 WHERE NULL BETWEEN - ( + col0 ) AND - 13
----
NULL

query I rowsort
SELECT - col2 + - 17 * 9 FROM tab2 cor0
----
-176
-193
-211

onlyif mysql # DIV for integer division: 
query I rowsort label-5089
SELECT DISTINCT + col2 DIV + 91 + - 44 FROM tab0 AS cor0
----
-43
-44

skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT + col2 / + 91 + - 44 FROM tab0 AS cor0
----
-43
-44

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = + 33
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5091
SELECT ALL col2 * + col0 FROM tab2 WHERE - CAST( 83 AS SIGNED ) * col1 IS NOT NULL
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL col2 * + col0 FROM tab2 WHERE - CAST ( 83 AS INTEGER ) * col1 IS NOT NULL
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5092
SELECT DISTINCT 92 + + 93 * + CAST( + 91 AS SIGNED ) FROM tab2 WHERE col0 * + col0 BETWEEN + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5092
SELECT DISTINCT 92 + + 93 * + CAST ( + 91 AS INTEGER ) FROM tab2 WHERE col0 * + col0 BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT - COUNT( 89 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5093
SELECT - COUNT ( 89 ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT 54 FROM tab2 WHERE col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 < - 71
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE ( + col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5096
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE ( + col2 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT DISTINCT - COUNT( + 0 ) - - 62 FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-5097
SELECT DISTINCT - COUNT ( + 0 ) - - 62 FROM tab2
----
59

query I rowsort
SELECT ALL - 31 AS col2 FROM tab1 cor0
----
-31
-31
-31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 63 - ( 41 ) ) NOT BETWEEN - ( col1 ) AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 + + col1 * - 58 BETWEEN ( col2 ) AND col0 + - ( col0 ) AND NULL IN ( col0 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT DISTINCT - col0 * + + col0 - - col0 FROM tab1
----
-2550
-7140
-8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 WHERE ( 55 ) IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5104
SELECT DISTINCT col1, CAST( - + col1 AS SIGNED ) FROM tab0
----
1
-1
21
-21
81
-81

skipif mysql # not compatible
query II rowsort label-5104
SELECT DISTINCT col1, CAST ( - + col1 AS INTEGER ) FROM tab0
----
1
-1
21
-21
81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT DISTINCT + - MIN( ALL + 11 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-11

skipif mysql # not compatible
query I rowsort label-5105
SELECT DISTINCT + - MIN ( ALL + 11 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT - MAX( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5106
SELECT - MAX ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 65 + + - ( - col2 ) NOT IN ( 64 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5108
SELECT - CAST( - + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5108
SELECT - CAST ( - + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL 48 AS col0 FROM tab0 AS cor0 WHERE NOT + 1 NOT IN ( 56 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT DISTINCT ( MIN( - col1 ) ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5110
SELECT DISTINCT ( MIN ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT + 29 + 28 * + col1 FROM tab0 AS cor0 WHERE NOT col1 - col2 + 90 NOT IN ( + col0 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT ALL + MIN( ALL - 85 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( - col1 ) BETWEEN col0 AND ( 55 - + col1 * + col0 )
----
-85

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL + MIN ( ALL - 85 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( - col1 ) BETWEEN col0 AND ( 55 - + col1 * + col0 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5114
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + col1 FROM tab2 AS cor0 WHERE NOT col2 + - 51 + 31 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + col1 FROM tab2 AS cor0 WHERE NOT col2 + - 51 + 31 IS NULL
----
NULL

query I rowsort
SELECT ALL - - col0 * + + col2 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 ) NOT BETWEEN NULL AND ( - ( col1 ) )
----

query I rowsort
SELECT DISTINCT 72 + col2 * - col0 FROM tab1 WHERE NULL >= col0 - + col2 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5118
SELECT + col2 * + - CAST( - col1 AS SIGNED ) FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-5118
SELECT + col2 * + - CAST ( - col1 AS INTEGER ) FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT DISTINCT MAX( ALL + col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-5119
SELECT DISTINCT MAX ( ALL + col1 ) AS col0 FROM tab0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5120
SELECT - col0 DIV col0 * col2 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5120
SELECT - col0 / col0 * col2 FROM tab2 cor0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 col1 FROM tab1 AS cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT ALL - 17 + + MIN( col2 ) AS col1 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL - 17 + + MIN ( col2 ) AS col1 FROM tab1 AS cor0
----
42

query I rowsort
SELECT ALL 13 * - col1 + - col1 * col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 21 AND ( + - ( col0 ) )
----

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT - col1 * + 9 * + + 50 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 58 + - ( - 27 ) * - col0 FROM tab2 AS cor0
----
-1300
-1786
-2083

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT ( - SUM( 90 ) ) FROM tab1 WHERE NOT ( + + col2 ) IS NULL
----
-270

skipif mysql # not compatible
query I rowsort label-5127
SELECT ( - SUM ( 90 ) ) FROM tab1 WHERE NOT ( + + col2 ) IS NULL
----
-270

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE NOT - col0 IN ( - col1 - + col0 * col1 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT COUNT( - + 0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5129
SELECT COUNT ( - + 0 ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col0 ) NOT BETWEEN NULL AND 4
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + 48 FROM tab2 AS cor0
----
1104
1920
2784

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE col2 + 26 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5133
SELECT DISTINCT - col2 * + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5133
SELECT DISTINCT - col2 * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 28 * - - col1 FROM tab0 AS cor0
----
2268
28
588

query I rowsort
SELECT DISTINCT + col2 + ( + col1 ) * - col2 AS col1 FROM tab1 AS cor0
----
-1248
-236
-3128

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 BETWEEN NULL AND col1 + - 48 + ( - col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( + col0 ) AND ( - col0 * - - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 22 col1 FROM tab1 AS cor0
----
27
36
69

query II rowsort
SELECT - ( + - col2 ) + + 8 + + col2 AS col2, col0 AS col0 FROM tab1
----
126
85
144
91
200
51

query I rowsort
SELECT ALL - col2 + - col1 * + 75 FROM tab0
----
-1585
-174
-6122

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 2 col2, col1 FROM tab2
----
2
51
2
67
2
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5142
SELECT * FROM tab0 WHERE - CAST( - 53 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5142
SELECT * FROM tab0 WHERE - CAST ( - 53 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5143
SELECT MIN( + - 25 ) * 89 + - - 38, CAST( 66 AS SIGNED ) AS col0 FROM tab1
----
-2187
66

skipif mysql # not compatible
query II rowsort label-5143
SELECT MIN ( + - 25 ) * 89 + - - 38, CAST ( 66 AS INTEGER ) AS col0 FROM tab1
----
-2187
66

query I rowsort
SELECT 17 + - col2 * + col0 AS col0 FROM tab2
----
-1041
-2543
-4333

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5145
SELECT + AVG ( + 12 ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5145
SELECT + AVG ( + 12 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL + col1 * col2 * + + ( - - col2 ) - + 77 FROM tab0
----
178852
2023
9724

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT 58 + - 51 + COUNT( * ) AS col0 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-5147
SELECT 58 + - 51 + COUNT ( * ) AS col0 FROM tab2
----
10

query I rowsort
SELECT - col0 + + col1 * col2 FROM tab0
----
123
2
3792

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col2 ) BETWEEN - - 24 AND ( + col1 + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * col2 * + - 50 + 43 FROM tab1
----
-14707
-159757
-67157

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 + - + col2 ) NOT IN ( + 12 )
----

query I rowsort
SELECT DISTINCT + 63 * 91 * + 86 FROM tab1 AS cor0
----
493038

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 * + ( + + 59 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT - MIN( + - col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-5154
SELECT - MIN ( + - col0 ) FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT ALL + 16 * - - COUNT( * ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL + 16 * - - COUNT ( * ) FROM tab1
----
48

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 NOT BETWEEN - - col2 AND - + ( 26 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5157
SELECT DISTINCT - CAST( - + col0 AS SIGNED ) FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5157
SELECT DISTINCT - CAST ( - + col0 AS INTEGER ) FROM tab0
----
15
87
97

query I rowsort
SELECT col0 * ( col2 ) * col2 + + 0 / col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT ALL - MAX( + - col2 ) AS col0 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL - MAX ( + - col2 ) AS col0 FROM tab2 cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5160
SELECT ALL + CAST( + 83 AS SIGNED ) AS col0, 33 FROM tab1 AS cor0
----
83
33
83
33
83
33

skipif mysql # not compatible
query II rowsort label-5160
SELECT ALL + CAST ( + 83 AS INTEGER ) AS col0, 33 FROM tab1 AS cor0
----
83
33
83
33
83
33

query I rowsort
SELECT ALL 12 + col0 AS col2 FROM tab2 AS cor0 WHERE ( NOT ( + col2 ) <> NULL )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 76 * col2 IS NOT NULL
----

query I rowsort
SELECT - - col1 * + 17 * - - 58 * 65 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 74 * - - 63 AS col2 FROM tab0 AS cor0
----
4662
4662
4662

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT MAX( - - 51 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5165
SELECT MAX ( - - 51 ) AS col1 FROM tab1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5166
SELECT DISTINCT ( + - CAST( + COUNT( * ) AS SIGNED ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5166
SELECT DISTINCT ( + - CAST ( + COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT - 43 * - 24 * col1 FROM tab1
----
14448
48504
5160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5168
SELECT + - col1 * - col1 AS col2 FROM tab0 WHERE NOT - col1 * + 92 * ( - CAST( NULL AS SIGNED ) ) * col0 > NULL
----

skipif mysql # not compatible
query I rowsort label-5168
SELECT + - col1 * - col1 AS col2 FROM tab0 WHERE NOT - col1 * + 92 * ( - CAST ( NULL AS INTEGER ) ) * col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT ALL + + ( - MAX( ALL + - col0 ) ) * 4 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL + + ( - MAX ( ALL + - col0 ) ) * 4 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= 28 * + col2 - - col1
----

query II rowsort
SELECT ALL - col0 AS col2, 91 FROM tab1
----
-51
91
-85
91
-91
91

query I rowsort
SELECT ( - + 37 ) AS col0 FROM tab0 AS cor0
----
-37
-37
-37

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE ( col1 / + col1 / col1 * + 73 + - 23 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5174
SELECT DISTINCT col2 + + CAST( NULL AS DECIMAL ) + col2 / + col1 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5174
SELECT DISTINCT col2 + + CAST ( NULL AS REAL ) + col2 / + col1 AS col0 FROM tab1 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 * 73 IS NULL
----

query II rowsort
SELECT - col0 AS col1, - col0 * + 13 FROM tab1 AS cor0
----
-51
-663
-85
-1105
-91
-1183

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 75 + 8 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT + COUNT( DISTINCT - col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5178
SELECT + COUNT ( DISTINCT - col0 ) FROM tab2
----
3

query I rowsort
SELECT ALL col2 * - 91 + + col0 AS col2 FROM tab2 AS cor0
----
-2047
-3576
-5203

query I rowsort
SELECT - + 57 * + col0 / col1 FROM tab2 AS cor0 WHERE ( NULL ) <> + col0
----

query II rowsort
SELECT - ( + ( col0 ) ) AS col1, col2 AS col2 FROM tab2 AS cor0 WHERE 31 - col2 * + 48 IS NOT NULL
----
-46
23
-64
40
-75
58

query I rowsort
SELECT - 63 + col1 AS col0 FROM tab2 AS cor0
----
-12
14
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT - COUNT( * ) FROM tab1 cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5183
SELECT - COUNT ( * ) FROM tab1 cor0 WHERE col2 IS NULL
----
0

query II rowsort
SELECT DISTINCT - + col2 + + 16 AS col2, col2 AS col1 FROM tab0 AS cor0
----
-31
47
-83
99
6
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT + - MAX( DISTINCT - col0 ) + - 64 AS col2 FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-5185
SELECT + - MAX ( DISTINCT - col0 ) + - 64 AS col2 FROM tab0 AS cor0
----
-49

query I rowsort
SELECT ALL col1 * - - 14 + 56 AS col1 FROM tab2 AS cor0
----
1134
770
994

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT ALL - COUNT( * ) + - ( COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5187
SELECT ALL - COUNT ( * ) + - ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-5188
SELECT ALL col2 DIV + col2 + col2 FROM tab1
----
60
69
97

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL col2 / + col2 + col2 FROM tab1
----
60
69
97

query I rowsort
SELECT ALL 65 * + 72 - + col1 * - col1 FROM tab0
----
11241
4681
5121

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > ( - col0 + + ( + - col1 ) / 62 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT ALL + MIN( DISTINCT + 98 ) FROM tab2 WHERE + - col1 * - ( + ( + 81 ) ) + - 41 IS NOT NULL
----
98

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL + MIN ( DISTINCT + 98 ) FROM tab2 WHERE + - col1 * - ( + ( + 81 ) ) + - 41 IS NOT NULL
----
98

query I rowsort
SELECT DISTINCT - 31 * - 44 - 11 + - col2 FROM tab1
----
1257
1285
1294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5193
SELECT ALL - col0 - col1 * CAST( col0 AS SIGNED ) FROM tab1
----
-4368
-510
-765

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL - col0 - col1 * CAST ( col0 AS INTEGER ) FROM tab1
----
-4368
-510
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT ALL - 27 * - MAX( DISTINCT + col1 ) FROM tab0
----
2187

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL - 27 * - MAX ( DISTINCT + col1 ) FROM tab0
----
2187

query I rowsort
SELECT DISTINCT 20 - col0 AS col1 FROM tab0
----
-67
-77
5

query I rowsort
SELECT - ( - col0 ) - + + ( col0 ) * 82 + - col2 FROM tab0
----
-1262
-7057
-7956

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) > - 42
----

query I rowsort
SELECT - - 73 * + col1 * - + col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND col2 * - 98 + + + col1
----

query II rowsort
SELECT + + col1 AS col1, col1 FROM tab2 cor0
----
51
51
67
67
77
77

query I rowsort
SELECT ALL - ( + + col1 ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT DISTINCT - SUM( - col2 ) AS col0 FROM tab0 AS cor0 WHERE + ( - - 41 ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT - SUM ( - col2 ) AS col0 FROM tab0 AS cor0 WHERE + ( - - 41 ) <> NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5202
SELECT DISTINCT col0 DIV + col2 + - + 1 - + col2 FROM tab0 AS cor0
----
-100
-3
-48

skipif mysql # not compatible
query I rowsort label-5202
SELECT DISTINCT col0 / + col2 + - + 1 - + col2 FROM tab0 AS cor0
----
-100
-3
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT - - COUNT( col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5203
SELECT - - COUNT ( col1 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5204
SELECT ALL - + CAST( + col0 AS SIGNED ) AS col1 FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL - + CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 WHERE NOT NULL > + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT COUNT( * ) * - ( - 25 ) FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-5206
SELECT COUNT ( * ) * - ( - 25 ) FROM tab0
----
75

query I rowsort
SELECT ALL + ( - 4 ) AS col1 FROM tab1
----
-4
-4
-4

query I rowsort
SELECT 11 + + col0 AS col1 FROM tab0 WHERE NOT + + col2 NOT BETWEEN NULL AND + - col1 - + 63
----

query I rowsort
SELECT DISTINCT ( + 74 ) FROM tab2
----
74

query I rowsort
SELECT ALL - col0 * + 11 + + + 19 - 14 AS col2 FROM tab1 AS cor0
----
-556
-930
-996

query I rowsort
SELECT ALL + + col0 * - + col2 + - + 27 AS col2 FROM tab2 AS cor0
----
-1085
-2587
-4377

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT SUM( DISTINCT + col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-5212
SELECT SUM ( DISTINCT + col2 ) AS col1 FROM tab2
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-5213
SELECT - 12 DIV - col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5213
SELECT - 12 / - col2 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL - 96 * + col1 AS col0 FROM tab1
----
-1344
-4512
-480

query III rowsort
SELECT * FROM tab1 WHERE + col2 * - col0 + + col2 + col2 NOT BETWEEN + - col1 * - - 81 * + - col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5216
SELECT COUNT( + + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5216
SELECT COUNT ( + + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5217
SELECT + + CAST( NULL AS SIGNED ) * 43 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5217
SELECT + + CAST ( NULL AS INTEGER ) * 43 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5218
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, COUNT( * ) DIV + + 57 + - + 55 FROM tab1 cor0
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-5218
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) / + + 57 + - + 55 FROM tab1 cor0
----
NULL
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 59 + - col0 col1 FROM tab0 AS cor0
----
-146
-156
-74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5220
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5220
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + - - col1 AS col1 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5222
SELECT ALL - - 77 + CAST( - col1 AS SIGNED ) * + + col1 FROM tab2 AS cor0
----
-2524
-4412
-5852

skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL - - 77 + CAST ( - col1 AS INTEGER ) * + + col1 FROM tab2 AS cor0
----
-2524
-4412
-5852

query III rowsort
SELECT * FROM tab0 WHERE - + 60 = + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5224
SELECT DISTINCT + COUNT( * ) - - + CAST( - COUNT( * ) AS SIGNED ) col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5224
SELECT DISTINCT + COUNT ( * ) - - + CAST ( - COUNT ( * ) AS INTEGER ) col2 FROM tab0
----
0

query I rowsort
SELECT col2 + - 82 AS col2 FROM tab1
----
-14
-23
14

query I rowsort
SELECT - col0 + ( + col1 ) FROM tab1
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT DISTINCT SUM( + - ( col1 ) ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT SUM ( + - ( col1 ) ) FROM tab0 cor0
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 76 * - 97 col0, - 43 AS col2 FROM tab2 AS cor0
----
7372
-43
7372
-43
7372
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT ( - COUNT( 1 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5229
SELECT ( - COUNT ( 1 ) ) FROM tab1
----
-3

query I rowsort
SELECT ALL + 89 * col1 FROM tab2
----
4539
5963
6853

query I rowsort
SELECT ALL col0 * - + 76 FROM tab1
----
-3876
-6460
-6916

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5232
SELECT DISTINCT - col1 - - 18 + + - 81 * - 55 * + + col2 / + col0 * - - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 WHERE ( NOT - col1 IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT - col1 - - 18 + + - 81 * - 55 * + + col2 / + col0 * - - CAST ( NULL AS REAL ) AS col0 FROM tab0 WHERE ( NOT - col1 IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5233
SELECT - CAST( - MAX( + col1 ) AS SIGNED ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-5233
SELECT - CAST ( - MAX ( + col1 ) AS INTEGER ) AS col0 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT - SUM( + col0 ) FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5234
SELECT - SUM ( + col0 ) FROM tab0 cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL = - 80 OR NOT + - 68 + col2 < + + col1
----
0

skipif mysql # not compatible
query I rowsort label-5235
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL = - 80 OR NOT + - 68 + col2 < + + col1
----
0

query I rowsort
SELECT ALL - 96 + + 7 * + 92 FROM tab2 AS cor0
----
548
548
548

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + + 11 col2 FROM tab2 AS cor0
----
57
75
86

onlyif mysql # aggregate syntax: 
query II rowsort label-5238
SELECT ALL - 1 AS col1, + COUNT( + 51 ) FROM tab0
----
-1
3

skipif mysql # not compatible
query II rowsort label-5238
SELECT ALL - 1 AS col1, + COUNT ( + 51 ) FROM tab0
----
-1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT 8 + - SUM( - 18 ) FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-5239
SELECT 8 + - SUM ( - 18 ) FROM tab0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5240
SELECT * FROM tab1 WHERE - - col0 + + - CAST( NULL AS SIGNED ) - - - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5240
SELECT * FROM tab1 WHERE - - col0 + + - CAST ( NULL AS INTEGER ) - - - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 46 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5242
SELECT ALL 24 DIV col1 DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL 24 / col1 / - col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + - 85 + - col1 * col0 AS col1 FROM tab0 AS cor0
----
-1300
-182
-1912

query I rowsort
SELECT ALL col0 + + 74 AS col1 FROM tab2
----
120
138
149

query III rowsort
SELECT * FROM tab1 WHERE + - 52 + - + col0 IS NULL
----

query I rowsort
SELECT col1 + + - col0 AS col2 FROM tab2
----
-8
13
5

query I rowsort
SELECT + - 46 * col2 AS col0 FROM tab2 AS cor0
----
-1058
-1840
-2668

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5248
SELECT + - COUNT( * ) DIV + 90 + 66 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5248
SELECT + - COUNT ( * ) / + 90 + 66 FROM tab0 AS cor0
----
66

query I rowsort
SELECT col2 * - 4 - - + col2 FROM tab0 AS cor0
----
-141
-297
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 col2 FROM tab2 AS cor0
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT - 12 * - COUNT( * ) * 44 + - - 37 AS col2 FROM tab1 AS cor0
----
1621

skipif mysql # not compatible
query I rowsort label-5251
SELECT - 12 * - COUNT ( * ) * 44 + - - 37 AS col2 FROM tab1 AS cor0
----
1621

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 18 * 7 > - col1 + + col1 * - col1
----
15
81
47
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5253
SELECT DISTINCT col1 - - + col2 DIV + 68 + + + col2 + - col0 * + col1 * ( + col2 ) FROM tab0 AS cor0
----
-18239
-56977
-9502

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT col1 - - + col2 / + 68 + + + col2 + - col0 * + col1 * ( + col2 ) FROM tab0 AS cor0
----
-18239
-56977
-9502

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5254
SELECT ALL - CAST( NULL AS SIGNED ) + - + ( + 19 ) * - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5254
SELECT ALL - CAST ( NULL AS INTEGER ) + - + ( + 19 ) * - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - + col1 ) NOT IN ( 87 * + + col1 * + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5256
SELECT ALL + SUM( ALL - ( - col2 ) ), SUM( DISTINCT - col1 ) col0 FROM tab0
----
156
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5256
SELECT ALL + SUM ( ALL - ( - col2 ) ), SUM ( DISTINCT - col1 ) col0 FROM tab0
----
156
-103

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5257
SELECT * FROM tab0 WHERE NOT + + CAST( 96 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5257
SELECT * FROM tab0 WHERE NOT + + CAST ( 96 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 56 AS col0, + col1 AS col0 FROM tab1
----
-56
14
-56
47
-56
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT MAX( ALL + - 3 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5259
SELECT MAX ( ALL + - 3 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT + - COUNT( * ) * - + 47 AS col2 FROM tab0 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-5260
SELECT + - COUNT ( * ) * - + 47 AS col2 FROM tab0 AS cor0
----
141

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5261
SELECT - col2 * + + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1, col0 col1, + - col1 col2 FROM tab1 cor0
----
9 values hashing to 50f394c3d095dedae90fa7a3554cf1db

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-5261
SELECT - col2 * + + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) AS col1, col0 col1, + - col1 col2 FROM tab1 cor0
----
9 values hashing to 50f394c3d095dedae90fa7a3554cf1db

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5262
SELECT - + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5262
SELECT - + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( + - col2 ) NOT BETWEEN + col0 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT DISTINCT + SUM( - col0 ) * - MIN( - + 23 ) AS col1 FROM tab2
----
-4255

skipif mysql # not compatible
query I rowsort label-5264
SELECT DISTINCT + SUM ( - col0 ) * - MIN ( - + 23 ) AS col1 FROM tab2
----
-4255

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 68 IS NULL
----

query I rowsort
SELECT DISTINCT - + col0 AS col2 FROM tab0 cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT - col1 * - + col1 + - col2 FROM tab2 cor0
----
2578
4431
5889

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = + - 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT - SUM( DISTINCT - 86 ) FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-5269
SELECT - SUM ( DISTINCT - 86 ) FROM tab1 AS cor0
----
86

query I rowsort
SELECT 0 + ( + 94 ) FROM tab0
----
94
94
94

query I rowsort
SELECT - col2 * - col0 + + col1 FROM tab1
----
4910
5020
6235

query I rowsort
SELECT - 70 * col2 + col1 FROM tab1
----
-4125
-4713
-6706

query I rowsort
SELECT ALL + col1 + + 25 AS col1 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
106
26
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT + MIN( - - col2 ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-5274
SELECT + MIN ( - - col2 ) FROM tab1 cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT ALL - MAX( DISTINCT + 21 ) + - ( - - 37 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-5275
SELECT ALL - MAX ( DISTINCT + 21 ) + - ( - - 37 ) FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT + + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5276
SELECT + + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT DISTINCT - - 47 FROM tab1 AS cor0 WHERE NOT - col0 * - 56 <> - col2
----

query I rowsort
SELECT col2 - - 4 AS col0 FROM tab2 AS cor0
----
27
44
62

query II rowsort
SELECT 83 + + col2 AS col1, ( col1 ) FROM tab1 AS cor0
----
142
5
151
47
179
14

query I rowsort
SELECT ALL col2 + - 92 FROM tab0 AS cor0 WHERE + - col0 IS NOT NULL OR NULL BETWEEN col0 AND - 23
----
-45
-82
7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = 63
----

query I rowsort
SELECT - 81 * - col0 + + col1 AS col0 FROM tab2 AS cor0
----
3777
5261
6142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, col2 + - col0 * col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 <> + 12
----

query II rowsort
SELECT ALL 58 AS col2, - 29 AS col0 FROM tab2 cor0
----
58
-29
58
-29
58
-29

query I rowsort
SELECT col0 * 87 * - col0 FROM tab2
----
-184092
-356352
-489375

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT + + col1 * - ( col1 ) + - 32 * - 51 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5286
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT + + col1 * - ( col1 ) + - 32 * - 51 IS NULL
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 61 IS NOT NULL
----

query I rowsort
SELECT ALL - ( - + col2 ) FROM tab2
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 58 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5290
SELECT - - col0 * - + ( + - 78 ) * - - CAST( NULL AS SIGNED ) / + + col0 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5290
SELECT - - col0 * - + ( + - 78 ) * - - CAST ( NULL AS INTEGER ) / + + col0 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + + col0 + - 46 FROM tab2 AS cor0
----
-22
-23
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5292
SELECT DISTINCT - col2 AS col1 FROM tab1 cor0 WHERE NULL NOT BETWEEN col1 AND - 49 - CAST( NULL AS SIGNED ) * - + CAST( NULL AS SIGNED ) * - - col1
----

skipif mysql # not compatible
query I rowsort label-5292
SELECT DISTINCT - col2 AS col1 FROM tab1 cor0 WHERE NULL NOT BETWEEN col1 AND - 49 - CAST ( NULL AS INTEGER ) * - + CAST ( NULL AS INTEGER ) * - - col1
----

query II rowsort
SELECT col0, col2 * 69 * + col2 + + col1 + + - col1 + col2 - - + col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - + 56 col2 FROM tab1 AS cor0
----
-103
-61
-70

query I rowsort
SELECT + 86 + + - col1 + + col2 FROM tab1 AS cor0
----
107
140
168

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT + COUNT( * ) * - 67 + - 5 AS col2 FROM tab0
----
-206

skipif mysql # not compatible
query I rowsort label-5296
SELECT + COUNT ( * ) * - 67 + - 5 AS col2 FROM tab0
----
-206

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE ( col0 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5297
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE ( col0 IS NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2 AS col0, - col2 col0 FROM tab2 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT - COUNT( * ) * 1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5299
SELECT - COUNT ( * ) * 1 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + col2 * + - col1 * - col1 AS col1 FROM tab1
----
1475
150212
18816

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 19 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL NOT IN ( - col2, - 7 ) )
----

query I rowsort
SELECT - - col0 * + 35 + + col1 AS col2 FROM tab0 AS cor0
----
3066
3396
606

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT - COUNT( ALL - col2 ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5304
SELECT - COUNT ( ALL - col2 ) col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT 67 - + COUNT( * ) + COUNT( * ) AS col0 FROM tab2 cor0
----
67

skipif mysql # not compatible
query I rowsort label-5305
SELECT 67 - + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 cor0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5306
SELECT 94 / - 82 + - col0 - + - ( 50 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE col0 IN ( + 4 )
----

skipif mysql # not compatible
query I rowsort label-5306
SELECT 94 / - 82 + - col0 - + - ( 50 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE col0 IN ( + 4 )
----

query I rowsort
SELECT DISTINCT col1 + + col2 - + - col0 FROM tab2 AS cor0
----
120
181
200

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT DISTINCT + - 48 * 17 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-813

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT + - 48 * 17 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-813

query I rowsort
SELECT col1 - - col2 + - col1 * - col0 * - 35 FROM tab0 AS cor0
----
-3295
-42397
-63914

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 + + - 93 col0, - col0 AS col1 FROM tab2 AS cor0
----
-18
-75
-29
-64
-47
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5311
SELECT ALL + 16 * - - CAST( NULL AS SIGNED ) + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL + 16 * - - CAST ( NULL AS INTEGER ) + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 49 + + col0 AS col0 FROM tab2
----
113
124
95

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT - col1 <> - 69 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 89 NOT BETWEEN NULL AND - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5316
SELECT DISTINCT + - 90 DIV - 35 AS col1 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5316
SELECT DISTINCT + - 90 / - 35 AS col1 FROM tab1 AS cor0
----
2

query II rowsort
SELECT col0 * 22 + 60, col0 FROM tab0 AS cor0
----
1974
87
2194
97
390
15

query II rowsort
SELECT ALL + - col2, - 83 AS col0 FROM tab0 AS cor0
----
-10
-83
-47
-83
-99
-83

query I rowsort
SELECT + 53 * col2 FROM tab1 cor0
----
3127
3604
5088

query II rowsort
SELECT DISTINCT - col2, 5 AS col0 FROM tab1
----
-59
5
-68
5
-96
5

query III rowsort
SELECT ALL * FROM tab0 WHERE - 34 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col0 * - col1 <= - 88 + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5323
SELECT ALL - 56 DIV - 46 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL - 56 / - 46 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT - - col0 / ( col1 ) FROM tab0 WHERE + 74 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 57, + col0 col2 FROM tab0 AS cor0
----
-57
15
-57
87
-57
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5326
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5326
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 4 FROM tab2 AS cor0 WHERE ( NULL ) < col1
----

query I rowsort
SELECT col1 * + + col2 / - col0 + + col1 FROM tab2 WHERE NOT + 18 * + col1 <> NULL
----

query I rowsort
SELECT DISTINCT + ( + 31 ) - + - 81 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= NULL
----

query I rowsort
SELECT - 54 * 44 + - 60 AS col2 FROM tab2 AS cor0
----
-2436
-2436
-2436

query I rowsort
SELECT ALL - col1 * - + col1 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 AS cor0 WHERE + col2 / - + col1 >= col0
----

query II rowsort
SELECT DISTINCT + 33 * + col0 AS col2, 59 FROM tab2 AS cor0
----
1518
59
2112
59
2475
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT ALL - COUNT( DISTINCT - - col1 ) + + 22 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL - COUNT ( DISTINCT - - col1 ) + + 22 FROM tab1 AS cor0
----
19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 58 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5336
SELECT ALL 54 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) >= col2
----

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL 54 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT DISTINCT - MIN( col0 ) + + - 31 + COUNT( * ) - - 48 - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5337
SELECT DISTINCT - MIN ( col0 ) + + - 31 + COUNT ( * ) - - 48 - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5338
SELECT - + col1 * - 17 / CAST( col1 AS SIGNED ) * - col2 + col0 / + 79 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5338
SELECT - + col1 * - 17 / CAST ( col1 AS INTEGER ) * - col2 + col0 / + 79 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 63 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 + - 28 col1 FROM tab1
----
12
12
12

onlyif mysql # DIV for integer division: 
query I rowsort label-5341
SELECT + ( + col0 ) DIV 52 + + 76 AS col0 FROM tab1
----
76
77
77

skipif mysql # not compatible
query I rowsort label-5341
SELECT + ( + col0 ) / 52 + + 76 AS col0 FROM tab1
----
76
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 + - col2 col2 FROM tab1
----
-15
-24
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT COUNT( * ) * - 73 * 52 + + - COUNT( * ) FROM tab2
----
-11391

skipif mysql # not compatible
query I rowsort label-5343
SELECT COUNT ( * ) * - 73 * 52 + + - COUNT ( * ) FROM tab2
----
-11391

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT 69 + COUNT( * ) AS col1 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-5344
SELECT 69 + COUNT ( * ) AS col1 FROM tab0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT + MIN( ALL col0 ) + + - 24 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-5345
SELECT + MIN ( ALL col0 ) + + - 24 FROM tab1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT ( - COUNT( 54 ) ) + + 45 AS col0 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-5346
SELECT ( - COUNT ( 54 ) ) + + 45 AS col0 FROM tab2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT DISTINCT - COUNT( ALL + + ( + - col1 ) ) - - COUNT( * ) + - - COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5347
SELECT DISTINCT - COUNT ( ALL + + ( + - col1 ) ) - - COUNT ( * ) + - - COUNT ( * ) FROM tab2
----
3

query I rowsort
SELECT 92 + 2 - - + col2 AS col2 FROM tab2
----
117
134
152

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT ALL + COUNT( * ) * SUM( DISTINCT col2 ) FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-5349
SELECT ALL + COUNT ( * ) * SUM ( DISTINCT col2 ) FROM tab1
----
669

query I rowsort
SELECT DISTINCT + - col1 FROM tab0 AS cor0 WHERE NOT ( NOT + - col2 IS NOT NULL )
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5351
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( + + ( 18 ) * - col0 * + ( col2 ) - 31 + + 89 ) NOT BETWEEN + 74 * col0 AND - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5351
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( + + ( 18 ) * - col0 * + ( col2 ) - 31 + + 89 ) NOT BETWEEN + 74 * col0 AND - - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5352
SELECT ALL - 0 DIV - - MAX( DISTINCT - ( + col1 ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL - 0 / - - MAX ( DISTINCT - ( + col1 ) ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 + + + 0 AS col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT DISTINCT + MAX( ALL + 31 ) + 42 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-5354
SELECT DISTINCT + MAX ( ALL + 31 ) + 42 FROM tab2
----
73

query I rowsort
SELECT ALL + col1 - + + 0 AS col0 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT 58 * - + col1 * 71 FROM tab0
----
-333558
-4118
-86478

query II rowsort
SELECT ALL - col1 * + 52, + col2 + col0 AS col0 FROM tab0
----
-1092
97
-4212
62
-52
196

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5358
SELECT - 96 / - col2 AS col2 FROM tab1 AS cor0 WHERE NOT col0 - - col2 NOT BETWEEN CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-5358
SELECT - 96 / - col2 AS col2 FROM tab1 AS cor0 WHERE NOT col0 - - col2 NOT BETWEEN CAST ( NULL AS REAL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN - - col0 + + col0 * + 63 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5360
SELECT col0 DIV + - col2 col0 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5360
SELECT col0 / + - col2 col0 FROM tab0 AS cor0
----
-8
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5361
SELECT ALL COUNT( * ) col1, + 95 FROM tab0
----
3
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5361
SELECT ALL COUNT ( * ) col1, + 95 FROM tab0
----
3
95

query I rowsort
SELECT col2 * - ( - 71 ) AS col2 FROM tab2
----
1633
2840
4118

query I rowsort
SELECT ( + - 61 ) AS col2 FROM tab0
----
-61
-61
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + AVG ( + 43 ) + + 44 col1 FROM tab1 WHERE ( NOT col2 IS NOT NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5365
SELECT 83 DIV + CAST( + col0 AS SIGNED ) col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5365
SELECT 83 / + CAST ( + col0 AS INTEGER ) col1 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT + 42 FROM tab0 WHERE + 64 * - col1 NOT IN ( - + 55 * + - 87 + col0 - - col1 )
----
42

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 / + 92 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT COUNT( + + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5368
SELECT COUNT ( + + col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5369
SELECT DISTINCT + COUNT( * ) DIV - COUNT( * ) + MAX( col1 ) FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-5369
SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) + MAX ( col1 ) FROM tab2 AS cor0
----
76

query I rowsort
SELECT 60 * - - 42 + + - col0 AS col1 FROM tab0 cor0
----
2423
2433
2505

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col1, + 66 FROM tab0 cor0
----
15
66
87
66
97
66

query I rowsort
SELECT DISTINCT + col0 + - ( + 58 ) FROM tab2 AS cor0
----
-12
17
6

query II rowsort
SELECT ALL - 67 AS col0, - 74 * - ( - 28 ) FROM tab0 AS cor0
----
-67
-2072
-67
-2072
-67
-2072

query I rowsort
SELECT DISTINCT col2 * - - 99 + - col2 FROM tab2 AS cor0
----
2254
3920
5684

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( NULL NOT BETWEEN NULL AND NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT ALL COUNT( * ) + 8 AS col1 FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL COUNT ( * ) + 8 AS col1 FROM tab1 AS cor0
----
11

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 + + 68 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT + + SUM( - 66 ) + + - COUNT( * ) col1 FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5378
SELECT + + SUM ( - 66 ) + + - COUNT ( * ) col1 FROM tab2 AS cor0
----
-201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5379
SELECT ALL - col0 + - ( + CAST( NULL AS SIGNED ) ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5379
SELECT ALL - col0 + - ( + CAST ( NULL AS INTEGER ) ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) < + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5381
SELECT ALL + + col1 * - CAST( NULL AS SIGNED ) + - 39 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5381
SELECT ALL + + col1 * - CAST ( NULL AS INTEGER ) + - 39 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5382
SELECT ALL - COUNT( * ) + - - SUM( DISTINCT + 43 ) DIV - MAX( DISTINCT - 8 ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL - COUNT ( * ) + - - SUM ( DISTINCT + 43 ) / - MAX ( DISTINCT - 8 ) FROM tab0 AS cor0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, ( + 24 ) AS col1 FROM tab2 AS cor0
----
46
24
64
24
75
24

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= + 79
----

query I rowsort
SELECT + 72 * + - col1 FROM tab2 WHERE NULL NOT BETWEEN col2 * + 72 + + - col2 AND NULL
----

query I rowsort
SELECT DISTINCT - 34 - - col2 AS col2 FROM tab1
----
25
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 - - - 18 col2 FROM tab2
----
3
3
3

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT + 62 IS NULL AND + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT - - MAX( - col2 ) - - SUM( DISTINCT + 97 ) FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-5389
SELECT - - MAX ( - col2 ) - - SUM ( DISTINCT + 97 ) FROM tab2 AS cor0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5390
SELECT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5390
SELECT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT col2 * + col0 + + + 34 FROM tab0 AS cor0
----
739
904
9637

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT DISTINCT - COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <> 33
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5392
SELECT DISTINCT - COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <> 33
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 / + + 55 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + 81 AS col2, - col2 FROM tab2 AS cor0
----
81
-23
81
-40
81
-58

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 9 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IN ( + 73 )
----
0

skipif mysql # not compatible
query I rowsort label-5396
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IN ( + 73 )
----
0

query I rowsort
SELECT DISTINCT + col1 * - + 5 AS col0 FROM tab0 WHERE NOT + + col0 * - col1 - - col2 = + col2
----
-105
-405
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5398
SELECT ALL ( + + CAST( NULL AS SIGNED ) ) * - ( + + 33 ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5398
SELECT ALL ( + + CAST ( NULL AS INTEGER ) ) * - ( + + 33 ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5399
SELECT DISTINCT 96 / - ( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5399
SELECT DISTINCT 96 / - ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5400
SELECT col1 DIV - 3 FROM tab2
----
-17
-22
-25

skipif mysql # not compatible
query I rowsort label-5400
SELECT col1 / - 3 FROM tab2
----
-17
-22
-25

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 + - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT DISTINCT - COUNT( DISTINCT - col1 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5402
SELECT DISTINCT - COUNT ( DISTINCT - col1 ) AS col0 FROM tab0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5403
SELECT + - col2 + - col2 + - + ( + - CAST( NULL AS DECIMAL ) ) col0, - col0 FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5403
SELECT + - col2 + - col2 + - + ( + - CAST ( NULL AS REAL ) ) col0, - col0 FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 6 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5405
SELECT - col1 DIV - col0 + + 1 AS col0 FROM tab0 AS cor0
----
1
1
6

skipif mysql # not compatible
query I rowsort label-5405
SELECT - col1 / - col0 + + 1 AS col0 FROM tab0 AS cor0
----
1
1
6

query I rowsort
SELECT + ( + ( col0 ) ) AS col2 FROM tab1
----
51
85
91

query II rowsort
SELECT col1 AS col2, - 96 AS col1 FROM tab2
----
51
-96
67
-96
77
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT DISTINCT - + 94 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5408
SELECT DISTINCT - + 94 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT DISTINCT - SUM( col2 ) FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-5409
SELECT DISTINCT - SUM ( col2 ) FROM tab1 cor0
----
-223

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 IS NULL AND ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col2 - + col2 + + + col1 + col1 * + col0 FROM tab1 AS cor0
----
430
4324
728

query I rowsort
SELECT ALL 90 + - + 40 + + 1 AS col2 FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT 3 + - col1 AS col2 FROM tab2
----
-48
-64
-74

query I rowsort
SELECT + col1 + + - col2 * - col2 AS col0 FROM tab1
----
3486
4671
9230

query I rowsort
SELECT ALL col0 - - 37 + - col1 FROM tab2
----
24
32
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5416
SELECT DISTINCT 99 * - 78 * + CAST( NULL AS SIGNED ) + + AVG ( DISTINCT + col0 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5416
SELECT DISTINCT 99 * - 78 * + CAST ( NULL AS INTEGER ) + + AVG ( DISTINCT + col0 ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT + - ( + + col2 ) FROM tab2 WHERE NULL IS NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5418
SELECT ALL + CAST( - - MIN( - col0 ) AS SIGNED ) - + COUNT( * ) * + COUNT( * ) FROM tab1
----
-100

skipif mysql # not compatible
query I rowsort label-5418
SELECT ALL + CAST ( - - MIN ( - col0 ) AS INTEGER ) - + COUNT ( * ) * + COUNT ( * ) FROM tab1
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT SUM( - col0 ) + + COUNT( * ) FROM tab1
----
-224

skipif mysql # not compatible
query I rowsort label-5419
SELECT SUM ( - col0 ) + + COUNT ( * ) FROM tab1
----
-224

query II rowsort
SELECT + col0 AS col1, 17 AS col1 FROM tab2
----
46
17
64
17
75
17

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 > NULL
----

query I rowsort
SELECT ALL - + col2 - col0 + + + col2 * col2 AS col0 FROM tab0 AS cor0
----
2147
3
9605

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE NOT + + 43 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN 24 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT col1 * - + col2 AS col1, - 11 AS col1, ( + + 9 ) FROM tab0 AS cor0
----
9 values hashing to 682fb54da05ebe359a0b92461f3d0365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 AS cor0 WHERE NOT ( + - 91 ) / - 37 <> - + ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT DISTINCT - ( ( + 46 ) ) * COUNT( * ) FROM tab2 cor0
----
-138

skipif mysql # not compatible
query I rowsort label-5427
SELECT DISTINCT - ( ( + 46 ) ) * COUNT ( * ) FROM tab2 cor0
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5428
SELECT ALL + + AVG ( - CAST( NULL AS SIGNED ) ) / COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5428
SELECT ALL + + AVG ( - CAST ( NULL AS INTEGER ) ) / COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 55 / + - ( ( - ( - col0 ) ) ) - - - col2 / col0 FROM tab0 AS cor0 WHERE NOT NULL < col2 / + - col1
----

query I rowsort
SELECT 86 + - col0 FROM tab2 AS cor0
----
11
22
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5432
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + ( + - col2 ) col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - col1 + - 99 FROM tab1
----
-104
-113
-146

query II rowsort
SELECT col1 + - + ( + col2 ) AS col2, - 77 * - - col2 AS col1 FROM tab0
----
-98
-7623
11
-770
34
-3619

onlyif mysql # DIV for integer division: 
query II rowsort label-5436
SELECT ALL - col0 AS col0, 89 DIV - col1 AS col2 FROM tab1
----
-51
-6
-85
-17
-91
-1

skipif mysql # not compatible
query II rowsort label-5436
SELECT ALL - col0 AS col0, 89 / - col1 AS col2 FROM tab1
----
-51
-6
-85
-17
-91
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5437
SELECT ALL CAST( - 75 AS SIGNED ) FROM tab0
----
-75
-75
-75

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL CAST ( - 75 AS INTEGER ) FROM tab0
----
-75
-75
-75

query I rowsort
SELECT ALL - 5 + - ( - col1 ) FROM tab1 AS cor0
----
0
42
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * + 62 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 77, 61 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
77
61
77
61
77
61

query I rowsort
SELECT + 81 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT - col2 + + 55 FROM tab0
----
-44
45
8

query I rowsort
SELECT - 36 + - 90 AS col2 FROM tab0
----
-126
-126
-126

query III rowsort
SELECT * FROM tab2 WHERE ( NOT NULL IN ( 6 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5445
SELECT ALL - ( - + 4 ) AS col1, + COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
4
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5445
SELECT ALL - ( - + 4 ) AS col1, + COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
4
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT COUNT( * ) + - 93 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-5446
SELECT COUNT ( * ) + - 93 FROM tab1
----
-90

query I rowsort
SELECT ALL + + 16 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT 80 + + + col0 FROM tab2 AS cor0
----
126
144
155

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5449
SELECT + col0 + - col2 * - + ( + - 59 ) * + 57 + + - col2 DIV CAST( + 87 AS SIGNED ) FROM tab2 AS cor0
----
-134456
-194979
-77303

skipif mysql # not compatible
query I rowsort label-5449
SELECT + col0 + - col2 * - + ( + - 59 ) * + 57 + + - col2 / CAST ( + 87 AS INTEGER ) FROM tab2 AS cor0
----
-134456
-194979
-77303

query I rowsort
SELECT + col2 / - 38 FROM tab2 AS cor0 WHERE 19 < - col2
----

query I rowsort
SELECT 61 * - + col1 AS col1 FROM tab0 AS cor0
----
-1281
-4941
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-5452
SELECT 11 DIV - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5452
SELECT 11 / - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 * - 9 + - col0 + - 60 col2 FROM tab1 AS cor0
----
-219
-253
-259

query I rowsort
SELECT DISTINCT - col1 - + - ( - col0 ) + + + col0 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab2 WHERE NULL = 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT + ( - COUNT( * ) ) * - MAX( DISTINCT - col2 ) AS col1 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-5456
SELECT + ( - COUNT ( * ) ) * - MAX ( DISTINCT - col2 ) AS col1 FROM tab1
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT ALL MIN( ALL - ( + + col1 ) ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-5457
SELECT ALL MIN ( ALL - ( + + col1 ) ) AS col1 FROM tab2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5458
SELECT ALL - CAST( - 49 AS SIGNED ) * - + 71 col0 FROM tab1
----
-3479
-3479
-3479

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5458
SELECT ALL - CAST ( - 49 AS INTEGER ) * - + 71 col0 FROM tab1
----
-3479
-3479
-3479

query I rowsort
SELECT DISTINCT - col1 + + col0 * 9 AS col2 FROM tab1 WHERE - + col0 >= - col2 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5460
SELECT DISTINCT - + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5460
SELECT DISTINCT - + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5461
SELECT ( - CAST( NULL AS SIGNED ) ), col1 AS col1 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-5461
SELECT ( - CAST ( NULL AS INTEGER ) ), col1 AS col1 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5

query II rowsort
SELECT DISTINCT + col2 * + col2, - 98 AS col1 FROM tab0 AS cor0
----
100
-98
2209
-98
9801
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + + col1 col1 FROM tab0 AS cor0
----
0

query II rowsort
SELECT col1 AS col2, - col1 * - col0 * + + 20 + - col1 AS col1 FROM tab2 cor0 WHERE NOT NULL <> col1 * + col2 / ( + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT COUNT( * ) + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 94 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5465
SELECT COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 94 IS NOT NULL
----
0

query I rowsort
SELECT 83 + col1 AS col2 FROM tab2
----
134
150
160

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT ALL MIN( ALL - 92 ) col2 FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5467
SELECT ALL MIN ( ALL - 92 ) col2 FROM tab0 AS cor0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT - ( + ( + MIN( - col0 ) ) ) AS col1 FROM tab0 cor0 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5468
SELECT - ( + ( + MIN ( - col0 ) ) ) AS col1 FROM tab0 cor0 WHERE - col0 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN col2 AND NULL
----

query II rowsort
SELECT col2 * col0 * - - 68 AS col1, col1 FROM tab0
----
47940
81
59160
21
653004
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - - col1 * - col2 col1 FROM tab2
----
-1219
-3144
-3961

query I rowsort
SELECT ALL - ( + col2 ) * - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL < - col1 / - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT 1 - - COUNT( * ) FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-5473
SELECT 1 - - COUNT ( * ) FROM tab1 AS cor0
----
4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT 12 IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5475
SELECT - COUNT( * ) AS col0, + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-5475
SELECT - COUNT ( * ) AS col0, + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 - - + 86 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 * - 42 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5478
SELECT DISTINCT - 46 + - CAST( NULL AS SIGNED ) + - col0 / + - 54 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5478
SELECT DISTINCT - 46 + - CAST ( NULL AS INTEGER ) + - col0 / + - 54 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL 50 * 74 FROM tab0 WHERE NULL IS NULL
----
3700
3700
3700

onlyif mysql # aggregate syntax: 
query II rowsort label-5480
SELECT + ( + COUNT( * ) ) AS col0, 8 FROM tab0
----
3
8

skipif mysql # not compatible
query II rowsort label-5480
SELECT + ( + COUNT ( * ) ) AS col0, 8 FROM tab0
----
3
8

query I rowsort
SELECT ALL 40 * 20 * col2 FROM tab0
----
37600
79200
8000

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> col1 + 89
----

query I rowsort
SELECT DISTINCT - col2 * - + col0 * + + col2 AS col0 FROM tab2
----
102400
24334
252300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5484
SELECT ALL 6 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL 6 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT 17 * COUNT( * ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5485
SELECT 17 * COUNT ( * ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5486
SELECT ALL col0 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( col0 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5486
SELECT ALL col0 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( col0 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5487
SELECT DISTINCT + ( + col2 ), CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-5487
SELECT DISTINCT + ( + col2 ), CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT ALL - - COUNT( - ( - + 96 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL - - COUNT ( - ( - + 96 ) ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5489
SELECT col0 DIV - col2 + - - 70 * - - col1 * 27 * 21 FROM tab0 AS cor0
----
3214890
39690
833482

skipif mysql # not compatible
query I rowsort label-5489
SELECT col0 / - col2 + - - 70 * - - col1 * 27 * 21 FROM tab0 AS cor0
----
3214890
39690
833482

query I rowsort
SELECT - 5 AS col1 FROM tab0 AS cor0 WHERE NOT 66 IS NULL
----
-5
-5
-5

query I rowsort
SELECT + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 * + + ( - 25 ) + + col2 * + - 31 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 59 ) col1 FROM tab0
----
59
59
59

query I rowsort
SELECT + - ( + + col1 ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5495
SELECT ALL CAST( - col2 AS SIGNED ) AS col0 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5495
SELECT ALL CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5496
SELECT + COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5496
SELECT + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col0 * + + col1 * + col1 + + col1 + + - col1 + - col1 + - + 78 * + - 90 * - - 43 AS col0 FROM tab0 AS cor0
----
301956
340206
400194

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT + - COUNT( * ) * 37 + + + MIN( - col2 ) AS col2 FROM tab2 AS cor0
----
-169

skipif mysql # not compatible
query I rowsort label-5498
SELECT + - COUNT ( * ) * 37 + + + MIN ( - col2 ) AS col2 FROM tab2 AS cor0
----
-169

query I rowsort
SELECT - col2 * + + col1 + - - col2 * - 82 AS col0 FROM tab0 AS cor0
----
-1030
-7661
-8217

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT DISTINCT - 13 * - - COUNT( * ) + - COUNT( * ) * ( - 41 ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-5500
SELECT DISTINCT - 13 * - - COUNT ( * ) + - COUNT ( * ) * ( - 41 ) FROM tab0 AS cor0
----
84

query II rowsort
SELECT + col1 + col0 * 23, 70 AS col2 FROM tab0 AS cor0
----
2022
70
2232
70
426
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT DISTINCT + MIN( + + col2 ) + + 62 AS col0 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-5502
SELECT DISTINCT + MIN ( + + col2 ) + + 62 AS col0 FROM tab2
----
85

query I rowsort
SELECT - col2 FROM tab0 WHERE ( col0 ) <= 83
----
-47

query II rowsort
SELECT ALL - 6 AS col2, col1 AS col0 FROM tab1
----
-6
14
-6
47
-6
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT - ( + SUM( ALL + + col1 ) ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-5505
SELECT - ( + SUM ( ALL + + col1 ) ) AS col0 FROM tab2
----
-195

query II rowsort
SELECT + col1, 38 AS col2 FROM tab1
----
14
38
47
38
5
38

query I rowsort
SELECT DISTINCT - 96 * + 67 * - - col2 + - + col0 - + - ( - 31 ) AS col0 FROM tab1
----
-379604
-437498
-617554

query II rowsort
SELECT ALL col0 AS col0, col2 * col0 * + + 5 * - col1 AS col1 FROM tab2
----
46
-269790
64
-985600
75
-1457250

query I rowsort
SELECT ALL + col1 + - + col2 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5510
SELECT - col0 / col0 * - 22 AS col0 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5510
SELECT - col0 / col0 * - 22 AS col0 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + col1 * - ( + col1 ) + - col1 - - + col0 FROM tab2 AS cor0
----
-2606
-4481
-5942

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5512
SELECT CAST( NULL AS SIGNED ) * + - 6 - + col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5512
SELECT CAST ( NULL AS INTEGER ) * + - 6 - + col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5513
SELECT ALL ( - - 9 ) DIV - 85 + col0 AS col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL ( - - 9 ) / - 85 + col0 AS col2 FROM tab0
----
15
87
97

query I rowsort
SELECT - + ( 67 ) FROM tab0 AS cor0
----
-67
-67
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5515
SELECT ALL - 28 DIV MIN( + col0 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5515
SELECT ALL - 28 / MIN ( + col0 ) AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 13 * - col1 + - col1 * col1 AS col1 FROM tab2 AS cor0
----
-1938
-3618
-4928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5517
SELECT + col1 * + CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-5517
SELECT + col1 * + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT - SUM( ( - col1 ) ) FROM tab1 WHERE NOT NULL = - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-5518
SELECT - SUM ( ( - col1 ) ) FROM tab1 WHERE NOT NULL = - 81
----
NULL

query II rowsort
SELECT ALL + col2 AS col2, - ( - col1 ) FROM tab0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT ALL 4 * + - COUNT( * ) FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-5520
SELECT ALL 4 * + - COUNT ( * ) FROM tab2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT ( + + COUNT( * ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5521
SELECT ( + + COUNT ( * ) ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5522
SELECT * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-5522
SELECT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT MIN( DISTINCT - col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-5523
SELECT MIN ( DISTINCT - col1 ) AS col1 FROM tab1
----
-47

query II rowsort
SELECT col2 AS col2, + col0 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5525
SELECT DISTINCT + 36 DIV 80 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5525
SELECT DISTINCT + 36 / 80 AS col2 FROM tab1
----
0

query II rowsort
SELECT col2, - col2 * - + 59 AS col2 FROM tab1
----
59
3481
68
4012
96
5664

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 93 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - + col0 * - + ( 59 )
----

query I rowsort
SELECT DISTINCT + 76 - col0 AS col2 FROM tab2
----
1
12
30

query I rowsort
SELECT ALL - ( + col0 ) + + 29 * col1 AS col0 FROM tab2 WHERE + col1 IS NOT NULL
----
1433
1868
2169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5531
SELECT ALL COUNT( col1 ) * + MIN( DISTINCT ( - col2 ) + col2 ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5531
SELECT ALL COUNT ( col1 ) * + MIN ( DISTINCT ( - col2 ) + col2 ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * + 54 - + ( + col1 ) AS col0 FROM tab0
----
1113
4293
53

query I rowsort
SELECT col2 FROM tab0 WHERE NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT - MAX( ALL 30 ) AS col0 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-5535
SELECT - MAX ( ALL 30 ) AS col0 FROM tab2
----
-30

query I rowsort
SELECT DISTINCT col2 * 97 FROM tab1
----
5723
6596
9312

onlyif mysql # DIV for integer division: 
query I rowsort label-5537
SELECT DISTINCT col2 * 64 + col0 DIV + col0 FROM tab1
----
3777
4353
6145

skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT col2 * 64 + col0 / + col0 FROM tab1
----
3777
4353
6145

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT ( + col1 ) BETWEEN ( NULL ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT ALL - COUNT( DISTINCT - 86 ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5539
SELECT ALL - COUNT ( DISTINCT - 86 ) AS col0 FROM tab1
----
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 NOT BETWEEN col0 AND + 14
----

query I rowsort
SELECT ALL 68 FROM tab0 WHERE NOT col1 <= ( NULL )
----

query I rowsort
SELECT 35 AS col1 FROM tab1 WHERE NOT NULL <= ( - 10 * - ( col2 ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 14 ) <= 85
----

query I rowsort
SELECT DISTINCT - col2 * 88 FROM tab0
----
-4136
-8712
-880

query I rowsort
SELECT ALL 30 * - col1 AS col0 FROM tab2
----
-1530
-2010
-2310

query I rowsort
SELECT DISTINCT 54 * - col0 AS col1 FROM tab1
----
-2754
-4590
-4914

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT DISTINCT ( COUNT( * ) ) * - 93 FROM tab1
----
-279

skipif mysql # not compatible
query I rowsort label-5547
SELECT DISTINCT ( COUNT ( * ) ) * - 93 FROM tab1
----
-279

query III rowsort
SELECT * FROM tab0 WHERE + col0 IN ( + ( 37 ) * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5549
SELECT CAST( NULL AS SIGNED ) FROM tab1 WHERE + 21 NOT IN ( - 90 + 27 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5549
SELECT CAST ( NULL AS INTEGER ) FROM tab1 WHERE + 21 NOT IN ( - 90 + 27 )
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 44 * col1 FROM tab0
----
3564
44
924

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT DISTINCT + SUM( ALL + col1 ) - 94 FROM tab2
----
101

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT + SUM ( ALL + col1 ) - 94 FROM tab2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT 61 * - COUNT( * ) AS col0 FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-5552
SELECT 61 * - COUNT ( * ) AS col0 FROM tab1
----
-183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5553
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5553
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL + col2 - - col0 AS col1 FROM tab2
----
104
133
69

query I rowsort
SELECT - col2 * - ( col1 ) + 6 * + col2 AS col0 FROM tab1
----
1920
3604
649

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NULL = 41
----

query I rowsort
SELECT col0 FROM tab1 WHERE + col1 * 79 + - col0 IS NULL
----

query I rowsort
SELECT - 99 AS col2 FROM tab1 WHERE NOT + 19 IS NULL
----
-99
-99
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5559
SELECT col1 DIV - col1 + 32 * col0 AS col2 FROM tab2
----
1471
2047
2399

skipif mysql # not compatible
query I rowsort label-5559
SELECT col1 / - col1 + 32 * col0 AS col2 FROM tab2
----
1471
2047
2399

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 + - 64 col0 FROM tab2 AS cor0
----
2052
4032
5561

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 6 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - AVG ( 87 ) FROM tab0 AS cor0 WHERE ( + col2 ) = ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT DISTINCT 86 * 1 + + ( MAX( col0 ) ) * MAX( DISTINCT col0 ) AS col0 FROM tab2 cor0
----
5711

skipif mysql # not compatible
query I rowsort label-5563
SELECT DISTINCT 86 * 1 + + ( MAX ( col0 ) ) * MAX ( DISTINCT col0 ) AS col0 FROM tab2 cor0
----
5711

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 * - col2 + col0 ) <= 98 / col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT ALL - COUNT( ALL col0 ) * COUNT( * ) + + ( - 44 ) FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL - COUNT ( ALL col0 ) * COUNT ( * ) + + ( - 44 ) FROM tab1
----
-53

query III rowsort
SELECT * FROM tab2 WHERE col2 * col1 >= col2 + 62
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 64 * - col0 AS col0 FROM tab0 WHERE col0 IN ( - 97 )
----

query III rowsort
SELECT * FROM tab1 WHERE 14 + - 56 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT 3 + + COUNT( * ) AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND ( col2 )
----
3

skipif mysql # not compatible
query I rowsort label-5570
SELECT 3 + + COUNT ( * ) AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND ( col2 )
----
3

query I rowsort
SELECT DISTINCT ( 67 ) - + col1 FROM tab1
----
20
53
62

query I rowsort
SELECT + 46 * col2 AS col1 FROM tab2 cor0 WHERE NOT - col2 + 21 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 27 AS col2 FROM tab2 cor0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-5574
SELECT - - 71 DIV - col1 col0 FROM tab0 AS cor0
----
-3
-71
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5574
SELECT - - 71 / - col1 col0 FROM tab0 AS cor0
----
-3
-71
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT 75 * - MIN( DISTINCT ( - col2 ) ) FROM tab2 cor0 WHERE NOT + col2 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5575
SELECT 75 * - MIN ( DISTINCT ( - col2 ) ) FROM tab2 cor0 WHERE NOT + col2 >= NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5576
SELECT - + 2 DIV + 60 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5576
SELECT - + 2 / + 60 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5577
SELECT - 92 DIV + col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5577
SELECT - 92 / + col1 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5578
SELECT + COUNT( * ) DIV + 32 FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN + col1 DIV col2 + 49 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5578
SELECT + COUNT ( * ) / + 32 FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN + col1 / col2 + 49 AND NULL
----
0

query I rowsort
SELECT 26 * - col0 FROM tab2
----
-1196
-1664
-1950

query I rowsort
SELECT ( 29 ) AS col1 FROM tab1
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT - MAX( ALL col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-5581
SELECT - MAX ( ALL col1 ) FROM tab0
----
-81

query I rowsort
SELECT - 13 * - - col0 * col2 FROM tab1
----
-63648
-65195
-80444

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 / col0 < 17
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > + 23
----

query I rowsort
SELECT ALL + col0 * 14 AS col0 FROM tab0
----
1218
1358
210

query I rowsort
SELECT + 80 * 26 * + col1 FROM tab2
----
106080
139360
160160

query I rowsort
SELECT DISTINCT - col2 * col1 AS col2 FROM tab0 WHERE 48 = ( 68 * col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5588
SELECT DISTINCT 28 DIV + 24 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT 28 / + 24 AS col2 FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5589
SELECT DISTINCT + 26 DIV - 70 * - 59 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5589
SELECT DISTINCT + 26 / - 70 * - 59 AS col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + - col0 ) col0 FROM tab1
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 33 * - 40 col0 FROM tab0 AS cor0
----
114840
128040
19800

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 32 / + 13 NOT BETWEEN NULL AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 33 * col0 AND + 30
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 - 2 * 43 <= NULL
----

query I rowsort
SELECT ALL + 97 + - - 33 FROM tab2 AS cor0
----
130
130
130

query I rowsort
SELECT 43 FROM tab1 AS cor0 WHERE NOT + col1 > NULL
----

query I rowsort
SELECT DISTINCT + - col0 + + 70 FROM tab1 AS cor0
----
-15
-21
19

query I rowsort
SELECT ALL - ( + col1 ) * col1 AS col0 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT 14 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT DISTINCT - - 96 + + - col0 FROM tab1 cor0
----
11
45
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5601
SELECT + CAST( NULL AS SIGNED ) * + CAST( - col1 AS SIGNED ) / + col1 + 15 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5601
SELECT + CAST ( NULL AS INTEGER ) * + CAST ( - col1 AS INTEGER ) / + col1 + 15 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - col0 + + ( - col1 ) FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 BETWEEN col1 AND 8 * 56
----
87
21
10
97
1
99

query I rowsort
SELECT - 83 + 13 FROM tab0 AS cor0
----
-70
-70
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5605
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE 24 BETWEEN - CAST( col0 AS SIGNED ) * + col1 AND - col1 * + col2
----

skipif mysql # not compatible
query I rowsort label-5605
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE 24 BETWEEN - CAST ( col0 AS INTEGER ) * + col1 AND - col1 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT - MIN( ALL col2 ) * - + SUM( ALL - ( col1 ) ) AS col2 FROM tab1 AS cor0
----
-3894

skipif mysql # not compatible
query I rowsort label-5606
SELECT - MIN ( ALL col2 ) * - + SUM ( ALL - ( col1 ) ) AS col2 FROM tab1 AS cor0
----
-3894

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT ALL - + 71 + + 56 + - MAX( col1 ) * 76 AS col1 FROM tab1 AS cor0
----
-3587

skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL - + 71 + + 56 + - MAX ( col1 ) * 76 AS col1 FROM tab1 AS cor0
----
-3587

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT - + COUNT( * ) AS col1 FROM tab2 WHERE - 20 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5608
SELECT - + COUNT ( * ) AS col1 FROM tab2 WHERE - 20 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT COUNT( * ) * + + 99 * 80 AS col0 FROM tab1 WHERE NULL IS NULL
----
23760

skipif mysql # not compatible
query I rowsort label-5609
SELECT COUNT ( * ) * + + 99 * 80 AS col0 FROM tab1 WHERE NULL IS NULL
----
23760

query I rowsort
SELECT DISTINCT + col2 * - col2 - + - 91 + 75 * + col0 FROM tab2
----
2352
3012
3291

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col1 ) IN ( 14 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT - COUNT( * ) - - SUM( - col1 ) AS col1 FROM tab0 AS cor0
----
-106

skipif mysql # not compatible
query I rowsort label-5613
SELECT - COUNT ( * ) - - SUM ( - col1 ) AS col1 FROM tab0 AS cor0
----
-106

query I rowsort
SELECT + 28 + ( - + 76 ) * - col0 * + col1 FROM tab1 cor0
----
32328
325080
54292

query I rowsort
SELECT ALL - col1 + + 2 + - + col0 AS col2 FROM tab0 cor0
----
-106
-94
-96

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT ( - 62 * col0 + - + 1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT + SUM( ALL - 62 ) AS col2 FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-5617
SELECT + SUM ( ALL - 62 ) AS col2 FROM tab2 AS cor0
----
-186

query II rowsort
SELECT + col2, 46 AS col1 FROM tab2 cor0
----
23
46
40
46
58
46

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5619
SELECT DISTINCT 11, ( + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0 AS cor0
----
11
NULL

skipif mysql # not compatible
query II rowsort label-5619
SELECT DISTINCT 11, ( + CAST ( NULL AS REAL ) ) AS col0 FROM tab0 AS cor0
----
11
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5620
SELECT * FROM tab2 cor0 WHERE col2 * - CAST( NULL AS SIGNED ) + + - col2 * - col1 <> 28 AND NOT NULL IS NULL
----

skipif mysql # not compatible
query III rowsort label-5620
SELECT * FROM tab2 cor0 WHERE col2 * - CAST ( NULL AS INTEGER ) + + - col2 * - col1 <> 28 AND NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5621
SELECT ALL - MIN( DISTINCT - col0 ) DIV - MAX( + ( 11 ) ) FROM tab1 AS cor0 WHERE NOT 54 IS NULL
----
-8

skipif mysql # not compatible
query I rowsort label-5621
SELECT ALL - MIN ( DISTINCT - col0 ) / - MAX ( + ( 11 ) ) FROM tab1 AS cor0 WHERE NOT 54 IS NULL
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT ALL 38 * + SUM( DISTINCT - + col0 ) FROM tab0
----
-7562

skipif mysql # not compatible
query I rowsort label-5622
SELECT ALL 38 * + SUM ( DISTINCT - + col0 ) FROM tab0
----
-7562

query I rowsort
SELECT 65 AS col0 FROM tab1 WHERE NOT ( - col2 * col2 + + 6 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 col1 FROM tab2 WHERE NOT ( NOT ( - col1 ) >= - col0 )
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-5625
SELECT DISTINCT + COUNT( * ) AS col0, + MIN( DISTINCT - col2 ) FROM tab1
----
3
-96

skipif mysql # not compatible
query II rowsort label-5625
SELECT DISTINCT + COUNT ( * ) AS col0, + MIN ( DISTINCT - col2 ) FROM tab1
----
3
-96

query I rowsort
SELECT ALL + 39 FROM tab1 WHERE ( NULL ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5627
SELECT ALL COUNT( * ) * CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL COUNT ( * ) * CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1, tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL IN ( - col1 + + col0 + - col2 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 19 <> ( - col0 )
----

query II rowsort
SELECT - col2, + 16 AS col0 FROM tab0
----
-10
16
-47
16
-99
16

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT NULL < NULL
----

query II rowsort
SELECT - 79 AS col0, ( - col1 ) FROM tab0 AS cor0
----
-79
-1
-79
-21
-79
-81

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5634
SELECT DISTINCT + CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
51
85
91