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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT ALL - + 25 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL - + 25 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-75

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

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

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

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

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

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5641
SELECT ALL - 46 + + - col1 DIV - - col1 + + - 75 AS col0 FROM tab1 AS cor0
----
-122
-122
-122

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL - 46 + + - col1 / - - col1 + + - 75 AS col0 FROM tab1 AS cor0
----
-122
-122
-122

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT - MAX( + + col1 ) col0 FROM tab0 WHERE + - 54 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5643
SELECT - MAX ( + + col1 ) col0 FROM tab0 WHERE + - 54 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + 59 + - - col1 FROM tab2
----
110
126
136

query I rowsort
SELECT ALL - 86 * + col2 + col0 FROM tab2
----
-1932
-3376
-4913

query I rowsort
SELECT ALL + col1 - + 66 FROM tab0
----
-45
-65
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5647
SELECT + col2 + - col2 DIV - 77 + + 26 FROM tab1
----
123
85
94

skipif mysql # not compatible
query I rowsort label-5647
SELECT + col2 + - col2 / - 77 + + 26 FROM tab1
----
123
85
94

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab2 WHERE NOT NULL NOT IN ( - col1, col0 + - col1 )
----

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 + - - ( + 28 ) <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5652
SELECT + - 25 DIV - + col2 + col2 FROM tab0 cor0
----
12
47
99

skipif mysql # not compatible
query I rowsort label-5652
SELECT + - 25 / - + col2 + col2 FROM tab0 cor0
----
12
47
99

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT - SUM( + 77 ) FROM tab0
----
-231

skipif mysql # not compatible
query I rowsort label-5656
SELECT - SUM ( + 77 ) FROM tab0
----
-231

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT ( - 75 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5658
SELECT DISTINCT - 16 AS col1, - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 85 - - + 15 * 99 IS NOT NULL
----
-16
0

skipif mysql # not compatible
query II rowsort label-5658
SELECT DISTINCT - 16 AS col1, - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 85 - - + 15 * 99 IS NOT NULL
----
-16
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT - ( - ( 83 ) ) + + 26 * + ( SUM( - - 48 ) ) + - ( + COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
11306

skipif mysql # not compatible
query I rowsort label-5659
SELECT - ( - ( 83 ) ) + + 26 * + ( SUM ( - - 48 ) ) + - ( + COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
11306

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5662
SELECT - + CAST( col0 AS SIGNED ) * + col0 AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-5662
SELECT - + CAST ( col0 AS INTEGER ) * + col0 AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

query I rowsort
SELECT + + 98 * ( - 78 ) FROM tab1 AS cor0
----
-7644
-7644
-7644

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

skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL - + col1 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5665
SELECT 7 DIV col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5665
SELECT 7 / col0 FROM tab0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT + 1 * + MIN( DISTINCT + 15 ) AS col0 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-5667
SELECT + 1 * + MIN ( DISTINCT + 15 ) AS col0 FROM tab2
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5668
SELECT col2 * - CAST( NULL AS SIGNED ) * + col2 AS col1, + 43 * - col2 + - col1 + + 89 col0 FROM tab2
----
NULL
-1708
NULL
-2472
NULL
-951

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5668
SELECT col2 * - CAST ( NULL AS INTEGER ) * + col2 AS col1, + 43 * - col2 + - col1 + + 89 col0 FROM tab2
----
NULL
-1708
NULL
-2472
NULL
-951

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5671
SELECT col1 / CAST( NULL AS SIGNED ) - - 45 col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND + ( + col2 ) - - 98 + - - col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5671
SELECT col1 / CAST ( NULL AS INTEGER ) - - 45 col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND + ( + col2 ) - - 98 + - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5672
SELECT ALL - CAST( + 54 AS SIGNED ) AS col2 FROM tab0 cor0
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-5672
SELECT ALL - CAST ( + 54 AS INTEGER ) AS col2 FROM tab0 cor0
----
-54
-54
-54

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

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

query I rowsort
SELECT ALL 88 + col1 FROM tab1 cor0
----
102
135
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT ALL - - 57 + COUNT( * ) FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL - - 57 + COUNT ( * ) FROM tab1 AS cor0
----
60

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

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

query I rowsort
SELECT DISTINCT col2 + + + ( + 14 ) * - col1 AS col1 FROM tab2
----
-1038
-691
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT DISTINCT - COUNT( * ) * - + 72 AS col1 FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-5679
SELECT DISTINCT - COUNT ( * ) * - + 72 AS col1 FROM tab0
----
216

query I rowsort
SELECT - 1 * + + 58 + col1 FROM tab2 cor0
----
-7
19
9

query I rowsort
SELECT + - 58 + - 73 - ( + 71 ) AS col2 FROM tab1 AS cor0
----
-202
-202
-202

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT ALL + 39 + + + MAX( - col1 ) + + 23 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL + 39 + + + MAX ( - col1 ) + + 23 FROM tab1 AS cor0
----
57

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

skipif mysql # not compatible
query I rowsort label-5684
SELECT DISTINCT 52 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
55

query I rowsort
SELECT ALL - col2 * 68 + + col0 AS col2 FROM tab1 AS cor0
----
-3927
-4533
-6477

onlyif mysql # DIV for integer division: 
query I rowsort label-5686
SELECT DISTINCT - col1 DIV + - col2 - + 23 FROM tab0 cor0
----
-21
-22
-23

skipif mysql # not compatible
query I rowsort label-5686
SELECT DISTINCT - col1 / + - col2 - + 23 FROM tab0 cor0
----
-21
-22
-23

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5688
SELECT ALL col0 - - + CAST( ( ( 67 ) ) AS SIGNED ) FROM tab2
----
113
131
142

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL col0 - - + CAST ( ( ( 67 ) ) AS INTEGER ) FROM tab2
----
113
131
142

query II rowsort
SELECT + col1 - col0, + col0 FROM tab2
----
-8
75
13
64
5
46

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - col1 * - 1 + - - 37 AND + 51 + - 82
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5692
SELECT DISTINCT + + COUNT( ALL col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 > - 71 - - col2 + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5692
SELECT DISTINCT + + COUNT ( ALL col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 > - 71 - - col2 + CAST ( NULL AS INTEGER )
----
0

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

query I rowsort
SELECT DISTINCT - 14 * + col2 AS col0 FROM tab1
----
-1344
-826
-952

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT - + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5695
SELECT - + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5696
SELECT COUNT( * ), - COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab2
----
3
1

skipif mysql # not compatible
query II rowsort label-5696
SELECT COUNT ( * ), - COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab2
----
3
1

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

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

query I rowsort
SELECT DISTINCT + col1 + + + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL BETWEEN col0 * + col1 AND + 8
----

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

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

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

query I rowsort
SELECT - ( + - col0 ) AS col0 FROM tab1 AS cor0
----
51
85
91

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5706
SELECT DISTINCT - col2, - 96 * - col2 * CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5706
SELECT DISTINCT - col2, - 96 * - col2 * CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5707
SELECT DISTINCT + 2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5707
SELECT DISTINCT + 2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT + col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT ALL COUNT( * ) * SUM( ALL + col1 ) FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL COUNT ( * ) * SUM ( ALL + col1 ) FROM tab2
----
585

onlyif mysql # DIV for integer division: 
query I rowsort label-5709
SELECT ALL 18 DIV - 33 * - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5709
SELECT ALL 18 / - 33 * - col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5710
SELECT DISTINCT + CAST( - + AVG ( ALL - 4 ) AS SIGNED ) AS col2 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-5710
SELECT DISTINCT + CAST ( - + AVG ( ALL - 4 ) AS INTEGER ) AS col2 FROM tab1
----
4

query I rowsort
SELECT + col2 * + + 59 * 85 AS col0 FROM tab0
----
235705
496485
50150

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5712
SELECT * FROM tab0 WHERE NOT + + CAST( 46 AS SIGNED ) * CAST( NULL AS SIGNED ) + col2 > ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-5712
SELECT * FROM tab0 WHERE NOT + + CAST ( 46 AS INTEGER ) * CAST ( NULL AS INTEGER ) + col2 > ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT DISTINCT MIN( DISTINCT + + col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5713
SELECT DISTINCT MIN ( DISTINCT + + col0 ) AS col1 FROM tab0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5714
SELECT DISTINCT + col1 FROM tab2 WHERE NULL IN ( - CAST( NULL AS SIGNED ), 69, + - col0 )
----

skipif mysql # not compatible
query I rowsort label-5714
SELECT DISTINCT + col1 FROM tab2 WHERE NULL IN ( - CAST ( NULL AS INTEGER ), 69, + - col0 )
----

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

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

query I rowsort
SELECT ALL col1 + - + 37 AS col2 FROM tab2 WHERE NOT col0 IS NULL
----
14
30
40

query I rowsort
SELECT + + col2 + + + 33 FROM tab1 AS cor0
----
101
129
92

query I rowsort
SELECT - 60 FROM tab0 AS cor0 WHERE NULL NOT IN ( 86 * + + col0 + ( + - col0 ) )
----

query I rowsort
SELECT DISTINCT - 86 + - - col0 FROM tab1
----
-1
-35
5

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL > 1
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT NULL IS NULL )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL IS NOT NULL )
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5724
SELECT * FROM tab0 WHERE col2 * + col0 * + CAST( - col1 AS SIGNED ) + - - col1 > - col2 * col2 + - col1
----
97
1
99

skipif mysql # not compatible
query III rowsort label-5724
SELECT * FROM tab0 WHERE col2 * + col0 * + CAST ( - col1 AS INTEGER ) + - - col1 > - col2 * col2 + - col1
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 * + col2 col0 FROM tab2 AS cor0
----
-1200
-1740
-690

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5727
SELECT 61 * COUNT( * ) - - CAST( 64 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
247

skipif mysql # not compatible
query I rowsort label-5727
SELECT 61 * COUNT ( * ) - - CAST ( 64 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
247

query I rowsort
SELECT ALL - col2 + - 80 AS col2 FROM tab2
----
-103
-120
-138

query I rowsort
SELECT ALL + ( col2 ) - + + col0 FROM tab1
----
-23
-26
45

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5731
SELECT + 88 + + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5732
SELECT col1 + + + 6, + col0 DIV + 99 * + 5 AS col2 FROM tab1
----
11
0
20
0
53
0

skipif mysql # not compatible
query II rowsort label-5732
SELECT col1 + + + 6, + col0 / + 99 * + 5 AS col2 FROM tab1
----
11
0
20
0
53
0

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

skipif mysql # not compatible
query I rowsort label-5733
SELECT DISTINCT + COUNT ( * ) - - 12 FROM tab2
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - - 42 col1 FROM tab2
----
1680
2436
966

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - + col0 col2 FROM tab2
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = - col2 + + 24
----

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

query I rowsort
SELECT - 80 * 41 FROM tab0 AS cor0
----
-3280
-3280
-3280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col1, + col2 + + 90 + - 57 + - col0 * - col1 col2 FROM tab1 AS cor0
----
14
843
47
4378
5
517

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

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

query I rowsort
SELECT col0 * - col0 * + col0 AS col0 FROM tab1
----
-132651
-614125
-753571

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT DISTINCT COUNT( * ) * + 10 col1 FROM tab0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5744
SELECT DISTINCT COUNT ( * ) * + 10 col1 FROM tab0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-5745
SELECT DISTINCT 22 DIV + 80 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5745
SELECT DISTINCT 22 / + 80 FROM tab2 cor0
----
0

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

query I rowsort
SELECT + - ( 36 ) + - 77 AS col0 FROM tab2 AS cor0
----
-113
-113
-113

onlyif mysql # DIV for integer division: 
query I rowsort label-5748
SELECT col1 DIV + col1 + - col0 AS col1 FROM tab2 AS cor0
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-5748
SELECT col1 / + col1 + - col0 AS col1 FROM tab2 AS cor0
----
-45
-63
-74

query II rowsort
SELECT + col1 + col0 AS col0, + col0 AS col2 FROM tab0 AS cor0
----
108
87
96
15
98
97

query I rowsort
SELECT col0 + - 84 + + + 37 * + col1 FROM tab2 AS cor0
----
1849
2470
2829

query I rowsort
SELECT 59 + col0 AS col2 FROM tab2
----
105
123
134

query II rowsort
SELECT DISTINCT - col1 * + + ( - col1 ), col0 FROM tab0
----
1
97
441
87
6561
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5753
SELECT ALL 24 * + CAST( NULL AS SIGNED ) * + COUNT( * ) + + - MIN( col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL 24 * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + - MIN ( col0 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT - 28 * COUNT( * ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-5754
SELECT - 28 * COUNT ( * ) FROM tab0
----
-84

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 89, + col0 * 7 col1 FROM tab2
----
-89
322
-89
448
-89
525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 col0 FROM tab0, tab2 AS cor0 WHERE ( NULL ) IS NULL
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5759
SELECT + + CAST( + - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5759
SELECT + + CAST ( + - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT - + 99 - + COUNT( * ) FROM tab2 cor0
----
-102

skipif mysql # not compatible
query I rowsort label-5761
SELECT - + 99 - + COUNT ( * ) FROM tab2 cor0
----
-102

query I rowsort
SELECT col0 + 93 FROM tab1 AS cor0
----
144
178
184

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

query I rowsort
SELECT ALL col2 * + col1 + + + 3 FROM tab1
----
1347
298
3199

query I rowsort
SELECT - col1 + + 6 + - 94 FROM tab1
----
-102
-135
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 8 * - 50 col2 FROM tab1 AS cor0
----
-400
-400
-400

query I rowsort
SELECT - - col0 * col1 - + col1 FROM tab1 AS cor0
----
420
4230
700

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

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

query I rowsort
SELECT - + col2 * - ( + col2 ) * - - col1 * col1 FROM tab2 AS cor0
----
1375929
15100996
9486400

query I rowsort
SELECT ALL + - 64 + + ( + - col2 ) AS col1 FROM tab1 AS cor0
----
-123
-132
-160

onlyif mysql # DIV for integer division: 
query I rowsort label-5772
SELECT col1 DIV + 27 - + col0 FROM tab1 AS cor0
----
-51
-85
-90

skipif mysql # not compatible
query I rowsort label-5772
SELECT col1 / + 27 - + col0 FROM tab1 AS cor0
----
-51
-85
-90

query I rowsort
SELECT ALL - col2 FROM tab0 cor0 WHERE NULL = - 52 / col0 * - - 5
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5774
SELECT DISTINCT * FROM tab2 WHERE + col2 > - ( 44 ) * - 74 * CAST( NULL AS SIGNED ) * - col0
----

skipif mysql # not compatible
query III rowsort label-5774
SELECT DISTINCT * FROM tab2 WHERE + col2 > - ( 44 ) * - 74 * CAST ( NULL AS INTEGER ) * - col0
----

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

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

query I rowsort
SELECT + 67 * - 59 + - + col0 AS col0 FROM tab0 WHERE NOT - 68 IS NULL
----
-3968
-4040
-4050

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT DISTINCT MAX( ALL + 28 ) AS col2 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-5777
SELECT DISTINCT MAX ( ALL + 28 ) AS col2 FROM tab0
----
28

query II rowsort
SELECT - col2 AS col2, 97 FROM tab1
----
-59
97
-68
97
-96
97

query I rowsort
SELECT ALL - col0 * + 19 FROM tab0
----
-1653
-1843
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT ALL - SUM( col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-5780
SELECT ALL - SUM ( col2 ) FROM tab2
----
-121

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

query I rowsort
SELECT + ( + + 20 ) AS col1 FROM tab2
----
20
20
20

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - + 46 * + - 93 col2 FROM tab2 AS cor0
----
171120
248124
98394

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT + - COUNT( * ) * + 58 * + + COUNT( * ) * - 15 FROM tab0 AS cor0
----
7830

skipif mysql # not compatible
query I rowsort label-5785
SELECT + - COUNT ( * ) * + 58 * + + COUNT ( * ) * - 15 FROM tab0 AS cor0
----
7830

query II rowsort
SELECT DISTINCT ( - col2 ) * - 56 * col2 * 62, - col2 AS col2 FROM tab2 AS cor0
----
11679808
-58
1836688
-23
5555200
-40

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

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

query I rowsort
SELECT ALL - + 91 AS col1 FROM tab0 AS cor0
----
-91
-91
-91

query II rowsort
SELECT + col1 AS col0, col0 * + col0 FROM tab1 AS cor0
----
14
2601
47
8281
5
7225

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5791
SELECT + 13, + 82 * + COUNT( col0 ) AS col1 FROM tab0 AS cor0
----
13
246

skipif mysql # not compatible
query II rowsort label-5791
SELECT + 13, + 82 * + COUNT ( col0 ) AS col1 FROM tab0 AS cor0
----
13
246

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5792
SELECT * FROM tab0 cor0 WHERE NOT - col0 + + - 55 + - 8 * + col0 * + CAST( + 54 AS SIGNED ) > + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5792
SELECT * FROM tab0 cor0 WHERE NOT - col0 + + - 55 + - 8 * + col0 * + CAST ( + 54 AS INTEGER ) > + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 FROM tab2 WHERE NULL <> 50
----

query III rowsort
SELECT * FROM tab0 WHERE + col1 + col2 IN ( + col0 + + col1 - + + col0, 33 )
----

query I rowsort
SELECT DISTINCT 37 + + col2 AS col0 FROM tab1
----
105
133
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 59 + - - col1 - + + col1 + col0 * + col1 col2 FROM tab2
----
1603
2568
989

query I rowsort
SELECT col2 * - col1 + + + col1 AS col2 FROM tab1
----
-1330
-290
-3149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 58 col2 FROM tab2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5799
SELECT + 31 DIV - col1 + col1 FROM tab1
----
-1
12
47

skipif mysql # not compatible
query I rowsort label-5799
SELECT + 31 / - col1 + col1 FROM tab1
----
-1
12
47

query II rowsort
SELECT ALL col2 * + col0 AS col1, col2 FROM tab0 AS cor0
----
705
47
870
10
9603
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 72 NOT BETWEEN + col1 AND NULL
----
15
81
47

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5803
SELECT ALL - col1 * - + 9 AS col0 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
126
423
45

skipif mysql # not compatible
query I rowsort label-5803
SELECT ALL - col1 * - + 9 AS col0 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
126
423
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT + + SUM( - - 2 ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5804
SELECT + + SUM ( - - 2 ) AS col1 FROM tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT + 21 * + - 86 * col0 - - col0 AS col0 FROM tab1
----
-153425
-164255
-92055

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5806
SELECT - COUNT( * ) - + - COUNT( * ) * 7 DIV + 14 col0 FROM tab0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5806
SELECT - COUNT ( * ) - + - COUNT ( * ) * 7 / + 14 col0 FROM tab0
----
-2

query I rowsort
SELECT - 99 * - 22 - - col2 FROM tab1
----
2237
2246
2274

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

skipif mysql # not compatible
query III rowsort label-5808
SELECT * FROM tab0 cor0 WHERE CAST ( - col2 AS INTEGER ) = NULL
----

query I rowsort
SELECT + - col1 FROM tab2 AS cor0 WHERE NOT NULL >= ( + - 90 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5810
SELECT DISTINCT MIN( + CAST( NULL AS DECIMAL ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5810
SELECT DISTINCT MIN ( + CAST ( NULL AS REAL ) ) FROM tab1 cor0
----
NULL

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

query I rowsort
SELECT col2 FROM tab2 WHERE NOT - col1 + col2 + - - col1 * - + 21 IS NOT NULL
----

query I rowsort
SELECT - - col0 FROM tab0 WHERE NOT 74 IS NULL
----
15
87
97

query I rowsort
SELECT - col0 * 0 * - - 34 AS col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 col1 FROM tab1
----
-46
-46
-46

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 1 <= - col1 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col1 * + col0 * + - 25 FROM tab0 AS cor0
----
-2425
-30375
-45675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5819
SELECT DISTINCT - + SUM( CAST( + - col2 AS SIGNED ) ) + + COUNT( * ) AS col0, COUNT( * ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
159
9

skipif mysql # not compatible
query II rowsort label-5819
SELECT DISTINCT - + SUM ( CAST ( + - col2 AS INTEGER ) ) + + COUNT ( * ) AS col0, COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
159
9

query IIIIII rowsort
SELECT * FROM tab1 cor0 INNER JOIN tab2 cor1 ON NOT - 16 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 91 ) col2 FROM tab2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT ALL COUNT( * ) + + 10 FROM tab0 cor0
----
13

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL COUNT ( * ) + + 10 FROM tab0 cor0
----
13

query I rowsort
SELECT DISTINCT + 13 * - 83 - - col0 * col2 FROM tab1 AS cor0
----
3817
3936
5109

onlyif mysql # DIV for integer division: 
query I rowsort label-5824
SELECT + 44 + - ( - col2 ) DIV + col0 AS col0 FROM tab2 AS cor0
----
44
44
44

skipif mysql # not compatible
query I rowsort label-5824
SELECT + 44 + - ( - col2 ) / + col0 AS col0 FROM tab2 AS cor0
----
44
44
44

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

query I rowsort
SELECT + col1 * - col1 * + + col0 FROM tab1 AS cor0
----
-201019
-2125
-9996

onlyif mysql # DIV for integer division: 
query I rowsort label-5827
SELECT col1 * col2 DIV col1 * + 35 AS col1 FROM tab1
----
2065
2380
3360

skipif mysql # not compatible
query I rowsort label-5827
SELECT col1 * col2 / col1 * + 35 AS col1 FROM tab1
----
2065
2380
3360

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5829
SELECT SUM( DISTINCT - + col0 ) col1, 86 FROM tab2
----
-185
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5829
SELECT SUM ( DISTINCT - + col0 ) col1, 86 FROM tab2
----
-185
86

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

query I rowsort
SELECT 38 * ( + - col1 ) * col0 * 34 FROM tab1
----
-549100
-5525884
-922488

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

query I rowsort
SELECT DISTINCT col0 + + 15 + 64 FROM tab2
----
125
143
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5834
SELECT ALL + MIN( - 58 ) * 10 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5834
SELECT ALL + MIN ( - 58 ) * 10 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT - + COUNT( * ) - - + 14 + - 93 FROM tab0 cor0
----
-82

skipif mysql # not compatible
query I rowsort label-5836
SELECT - + COUNT ( * ) - - + 14 + - 93 FROM tab0 cor0
----
-82

query I rowsort
SELECT 80 + + 47 AS col2 FROM tab0 AS cor0
----
127
127
127

query I rowsort
SELECT - - col0 + + 18 * - col0 AS col0 FROM tab1 AS cor0
----
-1445
-1547
-867

query I rowsort
SELECT DISTINCT + col1 + 42 AS col1 FROM tab1 AS cor0
----
47
56
89

query I rowsort
SELECT + - 72 FROM tab2 WHERE + 3 IS NOT NULL
----
-72
-72
-72

query I rowsort
SELECT DISTINCT - 18 * - 8 * + 13 - - col1 - - col1 FROM tab0
----
1874
1914
2034

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5842
SELECT ALL 19 - CAST( NULL AS DECIMAL ) + + col2 + - - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5842
SELECT ALL 19 - CAST ( NULL AS REAL ) + + col2 + - - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - 78 AS col2 FROM tab1
----
-3978
-6630
-7098

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT ALL col0 * - - col0 + col1 FROM tab0 cor0
----
306
7590
9410

query I rowsort
SELECT - - 67 AS col1 FROM tab0 AS cor0 WHERE NOT col1 >= - 75
----

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5849
SELECT DISTINCT - - ( ( - + col0 ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + ( - col1 ) + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-5849
SELECT DISTINCT - - ( ( - + col0 ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + ( - col1 ) + + CAST ( NULL AS REAL )
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - 2 ) col2, 2 * + col2 AS col2 FROM tab1 AS cor0
----
-2
118
-2
136
-2
192

query I rowsort
SELECT ALL + 60 * + col1 FROM tab2
----
3060
4020
4620

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT SUM( - 98 ) FROM tab2 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-5855
SELECT SUM ( - 98 ) FROM tab2 AS cor0
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT COUNT( * ) - - 48 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-5856
SELECT COUNT ( * ) - - 48 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51

query I rowsort
SELECT + 32 * 73 AS col1 FROM tab2
----
2336
2336
2336

query I rowsort
SELECT DISTINCT - 49 * col1 AS col1 FROM tab0
----
-1029
-3969
-49

query I rowsort
SELECT - 62 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

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

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

query I rowsort
SELECT ALL col1 + 67 FROM tab0 cor0
----
148
68
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT DISTINCT - 13 + + COUNT( * ) col1 FROM tab2 cor0
----
-10

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

query I rowsort
SELECT ALL + 27 + + + 45 FROM tab1
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT + MAX( + 74 ) + - 46 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-5864
SELECT + MAX ( + 74 ) + - 46 FROM tab0
----
28

query I rowsort
SELECT ALL + ( - + col0 ) - 85 FROM tab2
----
-131
-149
-160

query I rowsort
SELECT ALL 62 * + col2 FROM tab0
----
2914
6138
620

query I rowsort
SELECT ALL + col0 + + 10 * + col1 + col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5868
SELECT DISTINCT 76 DIV - - COUNT( * ) FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-5868
SELECT DISTINCT 76 / - - COUNT ( * ) FROM tab2 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT DISTINCT COUNT( * ) * - 40 AS col0 FROM tab0
----
-120

skipif mysql # not compatible
query I rowsort label-5869
SELECT DISTINCT COUNT ( * ) * - 40 AS col0 FROM tab0
----
-120

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5871
SELECT ALL col1 DIV + + col1, col0 AS col0 FROM tab0 AS cor0
----
1
15
1
87
1
97

skipif mysql # not compatible
query II rowsort label-5871
SELECT ALL col1 / + + col1, col0 AS col0 FROM tab0 AS cor0
----
1
15
1
87
1
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT COUNT( * ) * - ( + 10 ) + + + 28 col2 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5872
SELECT COUNT ( * ) * - ( + 10 ) + + + 28 col2 FROM tab0 AS cor0
----
-2

query I rowsort
SELECT DISTINCT - 17 * - - col1 * + col0 FROM tab1 AS cor0
----
-12138
-7225
-72709

query II rowsort
SELECT + col0, - col1 * col2 * col2 AS col1 FROM tab0 AS cor0
----
15
-178929
87
-2100
97
-9801

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5875
SELECT ALL - - 16, COUNT( * ) DIV - 73 AS col1 FROM tab1 AS cor0
----
16
0

skipif mysql # not compatible
query II rowsort label-5875
SELECT ALL - - 16, COUNT ( * ) / - 73 AS col1 FROM tab1 AS cor0
----
16
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 col0, 10 * - + col2 AS col2 FROM tab2 AS cor0
----
51
-230
67
-580
77
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT DISTINCT - MAX( - col2 ) FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-5877
SELECT DISTINCT - MAX ( - col2 ) FROM tab0 cor0
----
10

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5879
SELECT ALL 18, - col2 + - col0 DIV - 90 AS col1 FROM tab1 AS cor0
----
18
-59
18
-67
18
-96

skipif mysql # not compatible
query II rowsort label-5879
SELECT ALL 18, - col2 + - col0 / - 90 AS col1 FROM tab1 AS cor0
----
18
-59
18
-67
18
-96

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5881
SELECT - col1 DIV + - col0 col1 FROM tab0
----
0
0
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5881
SELECT - col1 / + - col0 col1 FROM tab0
----
0
0
5

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - + 10 * 84 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ae1ed355f5eb77fb056b0dec721c225e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col0, - col0 FROM tab0
----
15
-15
87
-87
97
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5889
SELECT + 68 DIV - - CAST( - col0 AS SIGNED ) + col2 col1 FROM tab0
----
10
43
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5889
SELECT + 68 / - - CAST ( - col0 AS INTEGER ) + col2 col1 FROM tab0
----
10
43
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT - COUNT( 70 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5890
SELECT - COUNT ( 70 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT col0 * col0 + - 68 FROM tab1 AS cor0
----
2533
7157
8213

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5893
SELECT ALL - col0 + 40 - + col1 * + + col2, + CAST( col0 AS SIGNED ) col1 FROM tab1 cor0
----
-1355
51
-3247
91
-340
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5893
SELECT ALL - col0 + 40 - + col1 * + + col2, + CAST ( col0 AS INTEGER ) col1 FROM tab1 cor0
----
-1355
51
-3247
91
-340
85

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5895
SELECT ALL - 58 DIV 27 + col2 AS col2 FROM tab0 AS cor0
----
45
8
97

skipif mysql # not compatible
query I rowsort label-5895
SELECT ALL - 58 / 27 + col2 AS col2 FROM tab0 AS cor0
----
45
8
97

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

query I rowsort
SELECT DISTINCT + col0 + - - 76 AS col0 FROM tab0 AS cor0
----
163
173
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT ALL + COUNT( ALL - 64 ) + + 25 AS col2 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL + COUNT ( ALL - 64 ) + + 25 AS col2 FROM tab2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT DISTINCT 66 * + 17 - + COUNT( * ) FROM tab1
----
1119

skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT 66 * + 17 - + COUNT ( * ) FROM tab1
----
1119

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT ALL SUM( ALL col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-5900
SELECT ALL SUM ( ALL col0 ) FROM tab0
----
199

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

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

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

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

query I rowsort
SELECT ( + col1 ) * col2 - 37 + - + ( + col2 ) * - 78 * - 7 AS col1 FROM tab0
----
-21892
-5287
-53992

query I rowsort
SELECT DISTINCT - 87 * - 80 AS col1 FROM tab0
----
6960

query I rowsort
SELECT ALL - + col1 * + ( col0 ) + 59 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-2287
-4869
-4966

query I rowsort
SELECT 90 * + 1 - - + 3 * + - 61 - col0 AS col0 FROM tab0 AS cor0
----
-108
-180
-190

query I rowsort
SELECT DISTINCT + + 0 * - col1 * - col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5908
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col2 + + col1 + - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5908
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col2 + + col1 + - CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5909
SELECT CAST( NULL AS SIGNED ) * - col0 * - 26 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5909
SELECT CAST ( NULL AS INTEGER ) * - col0 * - 26 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT - - ( 93 ) AS col1 FROM tab0 AS cor0
----
93
93
93

query II rowsort
SELECT 41 * + col1 + - - 32 AS col0, + ( 91 ) AS col1 FROM tab2 AS cor0
----
2123
91
2779
91
3189
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT MIN( DISTINCT - col1 ) col0 FROM tab0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5914
SELECT MIN ( DISTINCT - col1 ) col0 FROM tab0
----
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-5915
SELECT + 39, - col0 DIV - ( 61 ) AS col1 FROM tab0
----
39
0
39
1
39
1

skipif mysql # not compatible
query II rowsort label-5915
SELECT + 39, - col0 / - ( 61 ) AS col1 FROM tab0
----
39
0
39
1
39
1

query I rowsort
SELECT + - 81 + ( - col2 ) + + col0 FROM tab0 AS cor0
----
-113
-4
-83

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

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

query I rowsort
SELECT DISTINCT - ( - - col0 ) + + 17 FROM tab1
----
-34
-68
-74

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5919
SELECT DISTINCT - COUNT ( - 91 ) col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT + SUM( - col0 ) - + ( + COUNT( * ) ) col0 FROM tab2 AS cor0
----
-188

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

query I rowsort
SELECT + 13 * + + col1 - col0 FROM tab0 cor0
----
-84
1038
186

onlyif mysql # DIV for integer division: 
query I rowsort label-5922
SELECT + col0 DIV col0 * + 63 - + - col0 FROM tab0 AS cor0
----
150
160
78

skipif mysql # not compatible
query I rowsort label-5922
SELECT + col0 / col0 * + 63 - + - col0 FROM tab0 AS cor0
----
150
160
78

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

query I rowsort
SELECT col2 * - col2 FROM tab1 AS cor0 WHERE NULL > - 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT ALL + - ( + COUNT( DISTINCT + + col2 ) ) + + - 49 FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-5925
SELECT ALL + - ( + COUNT ( DISTINCT + + col2 ) ) + + - 49 FROM tab1 AS cor0
----
-52

query I rowsort
SELECT - 72 FROM tab1 cor0 WHERE ( NULL NOT BETWEEN + col0 AND 30 + col2 )
----

query I rowsort
SELECT DISTINCT col1 + 25 AS col2 FROM tab0
----
106
26
46

query I rowsort
SELECT ALL col0 - + 69 AS col0 FROM tab2
----
-23
-5
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT - 91 + + 62 + COUNT( * ) + - 49 + - COUNT( * ) col1 FROM tab0
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5929
SELECT - 91 + + 62 + COUNT ( * ) + - 49 + - COUNT ( * ) col1 FROM tab0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5930
SELECT col2 + - + 32 + + + col1 + - CAST( + col1 AS SIGNED ) * + col1 FROM tab0
----
-442
-6465
67

skipif mysql # not compatible
query I rowsort label-5930
SELECT col2 + - + 32 + + + col1 + - CAST ( + col1 AS INTEGER ) * + col1 FROM tab0
----
-442
-6465
67

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

query II rowsort
SELECT DISTINCT + col0 AS col2, - 66 * + 38 AS col0 FROM tab2
----
46
-2508
64
-2508
75
-2508

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 84 <= col1 * + 86
----

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

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

query I rowsort
SELECT DISTINCT 82 FROM tab1 WHERE NOT ( NOT ( NOT NULL IS NULL ) )
----

query I rowsort
SELECT + 21 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT ALL - - COUNT( * ) FROM tab0 WHERE - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5937
SELECT ALL - - COUNT ( * ) FROM tab0 WHERE - col1 IS NOT NULL
----
3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT - COUNT( * ) + 46 * 18 col0 FROM tab1 cor0
----
825

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5940
SELECT - COUNT ( * ) + 46 * 18 col0 FROM tab1 cor0
----
825

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

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

query I rowsort
SELECT + - col0 * + + col1 + + col1 FROM tab0 AS cor0
----
-1134
-1806
-96

query I rowsort
SELECT ALL col1 * - + col2 AS col0 FROM tab2
----
-1173
-3080
-3886

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

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

query I rowsort
SELECT 90 * + - col1 * - + col1 FROM tab1
----
17640
198810
2250

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT - MAX( - 70 ) col1 FROM tab2
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5946
SELECT - MAX ( - 70 ) col1 FROM tab2
----
70

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5948
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, + 92 + - + 76 col2, - - 54 FROM tab2
----
NULL
16
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-5948
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, + 92 + - + 76 col2, - - 54 FROM tab2
----
NULL
16
54

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5950
SELECT ALL - + CAST( - col2 AS SIGNED ) + + col1 AS col0, col0 + - - 50 * col0 AS col0 FROM tab2 AS cor0
----
117
3264
125
3825
74
2346

skipif mysql # not compatible
query II rowsort label-5950
SELECT ALL - + CAST ( - col2 AS INTEGER ) + + col1 AS col0, col0 + - - 50 * col0 AS col0 FROM tab2 AS cor0
----
117
3264
125
3825
74
2346

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( + 25, col0, - + col0 )
----

query I rowsort
SELECT + 4 + col1 FROM tab0 AS cor0
----
25
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT ALL MIN( ALL - col0 ) + - COUNT( * ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5953
SELECT ALL MIN ( ALL - col0 ) + - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5954
SELECT DISTINCT - ( - col2 ) * CAST( + 38 AS SIGNED ) - CAST( + col2 AS SIGNED ) + - col1 * + col1 FROM tab0 AS cor0
----
-4822
-71
3662

skipif mysql # not compatible
query I rowsort label-5954
SELECT DISTINCT - ( - col2 ) * CAST ( + 38 AS INTEGER ) - CAST ( + col2 AS INTEGER ) + - col1 * + col1 FROM tab0 AS cor0
----
-4822
-71
3662

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5957
SELECT DISTINCT - - CAST( - - MIN( ALL col1 ) AS SIGNED ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-5957
SELECT DISTINCT - - CAST ( - - MIN ( ALL col1 ) AS INTEGER ) FROM tab2 cor0
----
51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5958
SELECT ALL - COUNT( * ) AS col2, + MIN( CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-5958
SELECT ALL - COUNT ( * ) AS col2, + MIN ( CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
-3
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5959
SELECT + 73 DIV col1 FROM tab1 cor0
----
1
14
5

skipif mysql # not compatible
query I rowsort label-5959
SELECT + 73 / col1 FROM tab1 cor0
----
1
14
5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5960
SELECT - CAST( - CAST( 28 AS DECIMAL ) AS SIGNED ) * - + col1 AS col2 FROM tab2 AS cor0
----
-1428
-1876
-2156

skipif mysql # not compatible
query I rowsort label-5960
SELECT - CAST ( - CAST ( 28 AS REAL ) AS INTEGER ) * - + col1 AS col2 FROM tab2 AS cor0
----
-1428
-1876
-2156

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

query I rowsort
SELECT ALL 81 FROM tab1 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL 25 FROM tab2 AS cor0 WHERE NOT - col1 >= ( col0 )
----
25
25
25

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

query I rowsort
SELECT col1 * + 55 AS col2 FROM tab0
----
1155
4455
55

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT + - ( - MAX( DISTINCT - - col0 ) ) * - 27 col0 FROM tab1 AS cor0
----
-2457

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5969
SELECT + - ( - MAX ( DISTINCT - - col0 ) ) * - 27 col0 FROM tab1 AS cor0
----
-2457

query I rowsort
SELECT DISTINCT + 27 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
27

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

skipif mysql # not compatible
query II rowsort label-5971
SELECT DISTINCT ( ( COUNT ( * ) ) ) AS col1, MIN ( ALL + ( + + col2 ) ) FROM tab2
----
3
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT - MIN( DISTINCT - 13 ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-5972
SELECT - MIN ( DISTINCT - 13 ) FROM tab1
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5973
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * - + CAST( col1 AS SIGNED ) * col2 * - + col1 - 67 + + 53 <> - col0 * - + col0 + + 61
----

skipif mysql # not compatible
query III rowsort label-5973
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * - + CAST ( col1 AS INTEGER ) * col2 * - + col1 - 67 + + 53 <> - col0 * - + col0 + + 61
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + + 20 * col2 <= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 FROM tab2 cor0 WHERE NOT NULL = ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( col0, col2 )
----

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

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

query I rowsort
SELECT DISTINCT - col1 + - 42 + + 33 AS col0 FROM tab0
----
-10
-30
-90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT COUNT( ALL col1 ) * COUNT( * ) + - + ( - MIN( - col1 ) ) AS col1 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-5981
SELECT COUNT ( ALL col1 ) * COUNT ( * ) + - + ( - MIN ( - col1 ) ) AS col1 FROM tab0
----
-72

query I rowsort
SELECT + col1 + + - col2 + + 77 AS col1 FROM tab0
----
-21
111
88

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 67 ) + col0 col1 FROM tab2 WHERE - col2 * col2 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5986
SELECT DISTINCT + COUNT( * ) AS col2, + 98 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
98

skipif mysql # not compatible
query II rowsort label-5986
SELECT DISTINCT + COUNT ( * ) AS col2, + 98 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
98

query I rowsort
SELECT + 45 * 48 FROM tab1, tab1 AS cor0
----
9 values hashing to f8b8391d89c6219f35186c8a1e070fe4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5988
SELECT + CAST( + + 96 AS SIGNED ) FROM tab0
----
96
96
96

skipif mysql # not compatible
query I rowsort label-5988
SELECT + CAST ( + + 96 AS INTEGER ) FROM tab0
----
96
96
96

query I rowsort
SELECT - ( + - col2 ) - + col0 * + 0 AS col2 FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT + 56 - - COUNT( * ) FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5990
SELECT + 56 - - COUNT ( * ) FROM tab0 AS cor0
----
59

query I rowsort
SELECT ALL + ( + - col2 ) * - + col2 AS col0 FROM tab0 AS cor0
----
100
2209
9801

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

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

query I rowsort
SELECT DISTINCT col1 + - 70 FROM tab1 AS cor0
----
-23
-56
-65

query I rowsort
SELECT - 57 FROM tab0 cor0 WHERE NULL IS NULL
----
-57
-57
-57

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 44 + 11 IS NOT NULL
----

query II rowsort
SELECT + col2, ( col1 ) + + col2 - - + col2 * + - col2 AS col1 FROM tab0
----
10
-69
47
-2081
99
-9701

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT DISTINCT MIN( DISTINCT + 7 ) FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-6000
SELECT DISTINCT MIN ( DISTINCT + 7 ) FROM tab2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT DISTINCT + 48 * COUNT( * ) FROM tab0
----
144

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT + MAX( DISTINCT - - col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6003
SELECT + MAX ( DISTINCT - - col1 ) AS col2 FROM tab0
----
81

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 WHERE + - 70 IS NOT NULL
----
46
64
75

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

query I rowsort
SELECT ALL ( 40 ) FROM tab2
----
40
40
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6007
SELECT CAST( col2 AS SIGNED ) * - + col2 + - col1 col1 FROM tab0
----
-121
-2290
-9802

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6007
SELECT CAST ( col2 AS INTEGER ) * - + col2 + - col1 col1 FROM tab0
----
-121
-2290
-9802

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

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

skipif mysql # not compatible
query I rowsort label-6009
SELECT + - MIN ( col2 ) FROM tab1 cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT ALL 59 * - MAX( + 72 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-4248

skipif mysql # not compatible
query I rowsort label-6010
SELECT ALL 59 * - MAX ( + 72 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-4248

query I rowsort
SELECT ALL - - 97 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # aggregate syntax: 
query II rowsort label-6012
SELECT ALL + ( COUNT( * ) ) col1, + 8 AS col1 FROM tab2
----
3
8

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 43 < col2 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT + 14 + + + 32 + - ( - - col1 ) + col2 - - 86 FROM tab1 AS cor0
----
153
186
214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6016
SELECT DISTINCT - MAX( + col1 ) FROM tab2 AS cor0 WHERE NOT - col0 * - ( + col2 ) / - 41 + + col1 - col2 * CAST( col2 AS SIGNED ) IS NULL
----
-77

skipif mysql # not compatible
query I rowsort label-6016
SELECT DISTINCT - MAX ( + col1 ) FROM tab2 AS cor0 WHERE NOT - col0 * - ( + col2 ) / - 41 + + col1 - col2 * CAST ( col2 AS INTEGER ) IS NULL
----
-77

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE col0 + + col2 IS NOT NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6018
SELECT ALL + col2 DIV col1 * + - col2 + - ( + - 37 ) FROM tab0 AS cor0
----
-9764
37
37

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL + col2 / col1 * + - col2 + - ( + - 37 ) FROM tab0 AS cor0
----
-9764
37
37

query II rowsort
SELECT col1 + + col2, - col0 AS col0 FROM tab0 AS cor0
----
100
-97
128
-15
31
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6020
SELECT - - 56 * - MAX( CAST( + - col2 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
1288

skipif mysql # not compatible
query I rowsort label-6020
SELECT - - 56 * - MAX ( CAST ( + - col2 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
1288

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT ALL SUM( ALL + - col2 ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL SUM ( ALL + - col2 ) AS col2 FROM tab1
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 + - + col2 col0 FROM tab1
----
-24
-33
-61

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6024
SELECT DISTINCT - col2 * col1 DIV + - col1 AS col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6024
SELECT DISTINCT - col2 * col1 / + - col1 AS col1 FROM tab1
----
59
68
96

query I rowsort
SELECT - 22 * + col0 AS col0 FROM tab0
----
-1914
-2134
-330

query I rowsort
SELECT DISTINCT - col1 * 85 + - 7 * + col1 FROM tab0 AS cor0
----
-1932
-7452
-92

query II rowsort
SELECT - - 30 AS col1, - col0 FROM tab1 AS cor0 WHERE - 74 IS NOT NULL
----
30
-51
30
-85
30
-91

query I rowsort
SELECT + + 70 - col0 FROM tab1 AS cor0
----
-15
-21
19

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

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

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

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

query I rowsort
SELECT ALL + col2 + - + col2 * col2 + - col0 FROM tab1 AS cor0
----
-3507
-4647
-9171

query I rowsort
SELECT - col2 + + 48 FROM tab1 AS cor0
----
-11
-20
-48

query I rowsort
SELECT ALL + col0 * + 48 + - + col1 FROM tab2 AS cor0
----
2157
2995
3533

query I rowsort
SELECT 85 * + col0 + col1 FROM tab0 AS cor0
----
1356
7416
8246

query I rowsort
SELECT col0 + ( + 13 ) FROM tab0 cor0
----
100
110
28

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - col2 AND NULL
----

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

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

query I rowsort
SELECT + 3 * col0 FROM tab0
----
261
291
45

query I rowsort
SELECT ALL col1 * 64 + ( + 27 + col0 ) AS col0 FROM tab1
----
3126
432
974

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT - 3 - + SUM( DISTINCT 14 ) FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-6040
SELECT - 3 - + SUM ( DISTINCT 14 ) FROM tab0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT + COUNT( + col0 ) FROM tab2 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6041
SELECT + COUNT ( + col0 ) FROM tab2 WHERE NOT col2 IS NULL
----
3

query III rowsort
SELECT * FROM tab2 WHERE ( col0 ) NOT BETWEEN ( + 82 ) AND + 92 + - 46
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( - col2 ) / 84 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE NOT ( + 87 + + col0 ) <> ( + 88 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 ) <> ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6046
SELECT ALL + 48 DIV + 81 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL + 48 / + 81 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6047
SELECT + MIN( DISTINCT CAST( 18 AS SIGNED ) ) col1 FROM tab1
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6047
SELECT + MIN ( DISTINCT CAST ( 18 AS INTEGER ) ) col1 FROM tab1
----
18

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 95 BETWEEN col2 - 41 AND - 69 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT ( NULL ) IN ( 54 / + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6050
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) IN ( 54 / + col2 )
----
0

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT col1 IN ( - col0 * col1 + - col2 )
----
46
64
75

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6053
SELECT - CAST( MIN( DISTINCT col2 ) AS SIGNED ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-6053
SELECT - CAST ( MIN ( DISTINCT col2 ) AS INTEGER ) AS col1 FROM tab1
----
-59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 4 >= + col2
----

query I rowsort
SELECT ALL - 4 + col1 FROM tab0
----
-3
17
77

query III rowsort
SELECT * FROM tab2 WHERE NOT + 43 = ( col2 ) / - 43
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 31 + + 1 AS col0 FROM tab0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT DISTINCT 53 * COUNT( * ) + - 31 FROM tab2
----
128

skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT 53 * COUNT ( * ) + - 31 FROM tab2
----
128

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6060
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE NULL NOT IN ( ( + CAST( 27 AS SIGNED ) ) / + col1 )
----

skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE NULL NOT IN ( ( + CAST ( 27 AS INTEGER ) ) / + col1 )
----

query I rowsort
SELECT col0 * col0 + col0 * + 83 AS col2 FROM tab2
----
11850
5934
9408

query I rowsort
SELECT ALL 94 * + col0 + col2 AS col0 FROM tab1
----
4890
8049
8622

query III rowsort
SELECT * FROM tab0 WHERE 75 / - col1 BETWEEN ( col2 ) AND ( col1 )
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6065
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE + CAST( + col0 AS SIGNED ) BETWEEN col1 AND + 20
----
0

skipif mysql # not compatible
query I rowsort label-6065
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE + CAST ( + col0 AS INTEGER ) BETWEEN col1 AND + 20
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - 57 * + col0 = NULL
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6069
SELECT DISTINCT + SUM ( - col0 ) col0 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT ALL - col0 + ( col2 ) AS col1 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT - 68 - SUM( 75 ) AS col1 FROM ( tab1 cor0 CROSS JOIN tab2 )
----
-743

skipif mysql # not compatible
query I rowsort label-6071
SELECT - 68 - SUM ( 75 ) AS col1 FROM ( tab1 cor0 CROSS JOIN tab2 )
----
-743

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

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

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

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

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

query I rowsort
SELECT 71 AS col2 FROM tab0 cor0
----
71
71
71

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - col1 + - col0 * 54 FROM tab1 AS cor0
----
-2768
-4595
-4961

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

skipif mysql # not compatible
query I rowsort label-6082
SELECT - - ( SUM ( DISTINCT - col2 ) ) FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6083
SELECT ALL * FROM tab1 AS cor0 WHERE - 92 * + col0 > ( 66 * - CAST( - 36 AS DECIMAL ) + + col0 * col1 )
----

skipif mysql # not compatible
query III rowsort label-6083
SELECT ALL * FROM tab1 AS cor0 WHERE - 92 * + col0 > ( 66 * - CAST ( - 36 AS REAL ) + + col0 * col1 )
----

query I rowsort
SELECT ALL ( + col2 ) * 18 + col0 FROM tab0 AS cor0 WHERE NULL < col0
----

query I rowsort
SELECT ALL col0 + - + 60 FROM tab0
----
-45
27
37

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6087
SELECT + 66 + + col1 DIV + 79 AS col0 FROM tab2
----
66
66
66

skipif mysql # not compatible
query I rowsort label-6087
SELECT + 66 + + col1 / + 79 AS col0 FROM tab2
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT - 32 + + + MIN( ALL + ( + col0 ) ) col0 FROM tab0
----
-17

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6091
SELECT MIN ( ALL - - col0 ) + 72 FROM tab2
----
118

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NULL <> NULL
----

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

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

query I rowsort
SELECT 49 + - + col2 + 95 FROM tab0
----
134
45
97

query I rowsort
SELECT ALL - 24 + col0 AS col2 FROM tab1 AS cor0
----
27
61
67

query I rowsort
SELECT - ( 54 ) - 59 AS col0 FROM tab1
----
-113
-113
-113

query I rowsort
SELECT DISTINCT - - col1 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL + col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 92 ) <= + col2 + col0
----
46
51
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6101
SELECT 56 FROM tab0 cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) > col2 * + 45
----

skipif mysql # not compatible
query I rowsort label-6101
SELECT 56 FROM tab0 cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) > col2 * + 45
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - 69 ) col1 FROM tab0 AS cor0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT ALL - MAX( - col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL - MAX ( - col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT + - ( + col0 ) * - col2 AS col1 FROM tab0 AS cor0
----
705
870
9603

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6106
SELECT col2 * CAST( - ( + 78 ) AS SIGNED ) FROM tab2
----
-1794
-3120
-4524

skipif mysql # not compatible
query I rowsort label-6106
SELECT col2 * CAST ( - ( + 78 ) AS INTEGER ) FROM tab2
----
-1794
-3120
-4524

query I rowsort
SELECT ALL col2 FROM tab0 WHERE ( col2 ) < 40
----
10

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

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

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

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

query I rowsort
SELECT - col1 + - col2 FROM tab1 WHERE NOT col2 IS NULL
----
-110
-115
-64

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

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

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

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

query I rowsort
SELECT DISTINCT - 32 AS col0 FROM tab2 WHERE NULL IN ( + + col1 / - - 90 + - col0 / 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT COUNT( - 15 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6114
SELECT COUNT ( - 15 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT + AVG ( - 75 ) FROM tab0 AS cor0 WHERE NOT + 1 / - - ( - + col2 ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 * + - col0 * + col2 + + col2 FROM tab1 AS cor0
----
-25016
-290768
-68448

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 95 > NULL
----

query I rowsort
SELECT DISTINCT - 70 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-70

query I rowsort
SELECT - 99 + + ( - + col2 ) + 15 AS col0 FROM tab1 AS cor0
----
-143
-152
-180

query II rowsort
SELECT DISTINCT col0 AS col2, + col0 * - col0 AS col1 FROM tab1 AS cor0
----
51
-2601
85
-7225
91
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT DISTINCT - + 75 + COUNT( * ) FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-6122
SELECT DISTINCT - + 75 + COUNT ( * ) FROM tab0 AS cor0
----
-72

query I rowsort
SELECT 55 AS col1 FROM tab2 AS cor0 WHERE col2 <= NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT col1 * + + col2 + - - col1 FROM tab0
----
100
231
3888

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

query I rowsort
SELECT DISTINCT 2 AS col2 FROM tab1 WHERE NOT - - 86 * + col2 - 17 + - col2 < - 97
----
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + ( + 13 ) ) > NULL
----

query I rowsort
SELECT - 95 + + - col0 AS col1 FROM tab0 AS cor0
----
-110
-182
-192

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6132
SELECT + + COUNT ( * ) + + COUNT ( * ) col2 FROM tab1 AS cor0
----
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 39 >= 11
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 * + ( + col1 ) + + col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) < 36 * + col0 + + + 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT + - 57 + MIN( ALL - 21 ) FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-6135
SELECT + - 57 + MIN ( ALL - 21 ) FROM tab1 AS cor0
----
-78

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab2 WHERE - col1 >= + 0 + col1 - - col2 / + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT - MIN( ALL - 29 ) AS col1 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-6138
SELECT - MIN ( ALL - 29 ) AS col1 FROM tab1
----
29

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( + 70 ) BETWEEN ( - 91 ) AND ( + col0 )
----
15
81
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT COUNT( * ) + 77 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) < - col1 + + col1
----
77

skipif mysql # not compatible
query I rowsort label-6141
SELECT COUNT ( * ) + 77 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) < - col1 + + col1
----
77

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

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

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

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

query I rowsort
SELECT ALL - + 81 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

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

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

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT + col1 < + + 65
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 WHERE NOT + 9 + 29 * - col2 <> + - col1
----
0

skipif mysql # not compatible
query I rowsort label-6150
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 WHERE NOT + 9 + 29 * - col2 <> + - col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6151
SELECT + MAX( ALL col0 ) * - + CAST( NULL AS SIGNED ) + - - 80 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6151
SELECT + MAX ( ALL col0 ) * - + CAST ( NULL AS INTEGER ) + - - 80 AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6152
SELECT ALL - col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL OR NOT ( NOT ( + col2 * - col2 + CAST( + col0 AS SIGNED ) ) IS NULL )
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6152
SELECT ALL - col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL OR NOT ( NOT ( + col2 * - col2 + CAST ( + col0 AS INTEGER ) ) IS NULL )
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6153
SELECT ALL + 22 + + + CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
45
62
80

skipif mysql # not compatible
query I rowsort label-6153
SELECT ALL + 22 + + + CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
45
62
80

query I rowsort
SELECT - 8 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6156
SELECT - 56 * - 90 + CAST( col0 AS SIGNED ) * - col0 FROM tab0 cor0
----
-2529
-4369
4815

skipif mysql # not compatible
query I rowsort label-6156
SELECT - 56 * - 90 + CAST ( col0 AS INTEGER ) * - col0 FROM tab0 cor0
----
-2529
-4369
4815

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

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

query I rowsort
SELECT ALL 51 + + col0 FROM tab0 cor0
----
138
148
66

query I rowsort
SELECT ALL - 79 - - 76 AS col0 FROM tab2 AS cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT 85 + - SUM( ALL + + col1 ) AS col1 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-6161
SELECT 85 + - SUM ( ALL + + col1 ) AS col1 FROM tab0
----
-18

query I rowsort
SELECT col2 + col1 FROM tab2 WHERE + - col2 IS NOT NULL
----
117
125
74

query I rowsort
SELECT ALL ( 75 ) FROM tab2
----
75
75
75

query I rowsort
SELECT DISTINCT col0 - 20 AS col2 FROM tab0
----
-5
67
77

query I rowsort
SELECT DISTINCT 91 * - ( + - col1 ) AS col1 FROM tab2
----
4641
6097
7007

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT ALL COUNT( * ) * 23 AS col1 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-6166
SELECT ALL COUNT ( * ) * 23 AS col1 FROM tab1
----
69

query I rowsort
SELECT + - col2 FROM tab2 WHERE - - 20 <= - - 42
----
-23
-40
-58

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

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

query I rowsort
SELECT 14 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

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

skipif mysql # not compatible
query I rowsort label-6171
SELECT DISTINCT MAX ( - 18 ) AS col2 FROM tab1
----
-18

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

skipif mysql # not compatible
query I rowsort label-6172
SELECT COUNT ( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

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

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

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

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE ( NULL ) < 45
----

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

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

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

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT NULL >= - col2
----

query I rowsort
SELECT - col2 * - - ( - col1 ) + - col2 AS col2 FROM tab0 cor0
----
0
200
3760

query II rowsort
SELECT ALL + col2 AS col1, - col0 - + + 2 FROM tab1 AS cor0
----
59
-87
68
-93
96
-53

query II rowsort
SELECT - col0 AS col0, col0 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 IN ( col1 )
----
-15
15
-87
87
-97
97

query II rowsort
SELECT col1 * + - col0, + col2 AS col2 FROM tab0
----
-1215
47
-1827
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT DISTINCT MIN( DISTINCT - col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-6183
SELECT DISTINCT MIN ( DISTINCT - col2 ) FROM tab2
----
-58

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

skipif mysql # not compatible
query II rowsort label-6185
SELECT + SUM ( + - col2 ) AS col1, - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-121
-3

query I rowsort
SELECT ALL - - col2 + - 40 AS col1 FROM tab1 AS cor0 WHERE 79 > 12
----
19
28
56

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT + ( + - COUNT( col2 ) ) + 69 AS col1 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-6189
SELECT + ( + - COUNT ( col2 ) ) + 69 AS col1 FROM tab0
----
66

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6191
SELECT ALL CAST( + 3 AS SIGNED ) * - col2, - 6 AS col1 FROM tab0 cor0
----
-141
-6
-297
-6
-30
-6

skipif mysql # not compatible
query II rowsort label-6191
SELECT ALL CAST ( + 3 AS INTEGER ) * - col2, - 6 AS col1 FROM tab0 cor0
----
-141
-6
-297
-6
-30
-6

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

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

query I rowsort
SELECT DISTINCT - col0 * - - 62 AS col2 FROM tab2 AS cor0
----
-2852
-3968
-4650

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6194
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - 12 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6194
SELECT DISTINCT + CAST ( NULL AS REAL ) + - 12 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 * - - col1 + col1 + col2 * + 29 FROM tab2 AS cor0
----
1891
4317
5635

query II rowsort
SELECT DISTINCT - col0, - col0 FROM tab1 AS cor0 WHERE NOT 83 <> NULL
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6198
SELECT + CAST ( - 29 AS INTEGER ) col1 FROM tab1 AS cor0
----
-29
-29
-29

query I rowsort
SELECT DISTINCT - 32 + - ( + col1 ) + - 58 AS col1 FROM tab0 AS cor0
----
-111
-171
-91

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 - - col1 AS col2, 37 col1 FROM tab2
----
141
37
142
37
97
37

query I rowsort
SELECT col2 - + col0 + + ( col2 ) AS col0 FROM tab1
----
141
33
45

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

query I rowsort
SELECT - col1 FROM tab2 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT 88 - + + col0 AS col2 FROM tab0
----
-9
1
73

query III rowsort
SELECT * FROM tab1 WHERE + 53 NOT BETWEEN + + col1 AND + + 29 + - col1 - + col0 + + - 66 / + ( - 66 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 40 + - - ( col1 ) + col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 / col2 * - - 10 IN ( + 88 * + col2 * + ( + 40 ) + - col1 + + 93 + + + col1 / + - 73 )
----
140
168
71

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * 33 IN ( - 62 * - ( + 71 ), col2 * + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT + MAX( DISTINCT col0 ) AS col1 FROM tab2 WHERE NOT ( NOT ( NULL ) IS NULL )
----
75

skipif mysql # not compatible
query I rowsort label-6212
SELECT + MAX ( DISTINCT col0 ) AS col1 FROM tab2 WHERE NOT ( NOT ( NULL ) IS NULL )
----
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( - - 75, - col0 / + 85 )
----

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

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

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

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

query II rowsort
SELECT 25, col2 AS col0 FROM tab1 AS cor0
----
25
59
25
68
25
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6218
SELECT - col0 AS col1, CAST( + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

skipif mysql # not compatible
query II rowsort label-6218
SELECT - col0 AS col1, CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

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

query I rowsort
SELECT DISTINCT ( ( - 57 ) ) AS col2 FROM tab1 AS cor0
----
-57

query I rowsort
SELECT + 15 * + col0 FROM tab0 AS cor0
----
1305
1455
225

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 * - - col0 col1 FROM tab0 cor0
----
1827
2037
315

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 68 + + + col0 * 26 IN ( + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6227
SELECT DISTINCT CAST( - - COUNT( - - 30 ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6227
SELECT DISTINCT CAST ( - - COUNT ( - - 30 ) AS INTEGER ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT DISTINCT - MIN( + col0 ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-6228
SELECT DISTINCT - MIN ( + col0 ) AS col1 FROM tab2
----
-46

query I rowsort
SELECT ALL - 81 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 + + - 44 AS col2 FROM tab2
----
2
20
31

query I rowsort
SELECT col1 + - 9 AS col1 FROM tab1
----
-4
38
5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6232
SELECT ALL * FROM tab2 WHERE NOT 16 * col1 - - - CAST( NULL AS DECIMAL ) NOT BETWEEN - CAST( NULL AS SIGNED ) * - ( + 13 ) + 38 + - col0 / + col0 + - col0 - + 18 AND col0 * + 99
----

skipif mysql # not compatible
query III rowsort label-6232
SELECT ALL * FROM tab2 WHERE NOT 16 * col1 - - - CAST ( NULL AS REAL ) NOT BETWEEN - CAST ( NULL AS INTEGER ) * - ( + 13 ) + 38 + - col0 / + col0 + - col0 - + 18 AND col0 * + 99
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT - SUM( ALL + col0 ) * + + COUNT( * ) + - - 1 FROM tab0 cor0
----
-596

skipif mysql # not compatible
query I rowsort label-6233
SELECT - SUM ( ALL + col0 ) * + + COUNT ( * ) + - - 1 FROM tab0 cor0
----
-596

query I rowsort
SELECT - 81 + col0 FROM tab0 AS cor0
----
-66
16
6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN col2 * + 10 AND ( - col2 / + col2 )
----

query I rowsort
SELECT DISTINCT + col0 * + col0 * + col0 * + ( + col2 ) * + 18 FROM tab0
----
118530540
1626383286
2855250

query II rowsort
SELECT ALL 13 * + + 84 AS col2, 42 FROM tab2
----
1092
42
1092
42
1092
42

onlyif mysql # DIV for integer division: 
query II rowsort label-6238
SELECT DISTINCT - ( + - col0 ) DIV ( ( - 46 ) ) AS col2, - ( + ( 55 ) ) AS col0 FROM tab1 AS cor0
----
-1
-55

skipif mysql # not compatible
query II rowsort label-6238
SELECT DISTINCT - ( + - col0 ) / ( ( - 46 ) ) AS col2, - ( + ( 55 ) ) AS col0 FROM tab1 AS cor0
----
-1
-55

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

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

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

query I rowsort
SELECT 35 * - - 49 + + col1 FROM tab0
----
1716
1736
1796

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6243
SELECT + + COUNT( * ) AS col1 FROM tab0 WHERE NOT + + CAST( - col0 AS SIGNED ) <= - 54
----
1

skipif mysql # not compatible
query I rowsort label-6243
SELECT + + COUNT ( * ) AS col1 FROM tab0 WHERE NOT + + CAST ( - col0 AS INTEGER ) <= - 54
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT ALL - COUNT( * ) * + 8 col0 FROM tab2
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6244
SELECT ALL - COUNT ( * ) * + 8 col0 FROM tab2
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, col1 * + + col0 col2 FROM tab1
----
59
425
68
4277
96
714

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT DISTINCT COUNT( * ) * + 85 col0 FROM tab0
----
255

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6249
SELECT + + 93 FROM tab0 WHERE NOT 62 IN ( + ( - col2 ) * - 28, col2 + - CAST( NULL AS SIGNED ) + + 37 )
----

skipif mysql # not compatible
query I rowsort label-6249
SELECT + + 93 FROM tab0 WHERE NOT 62 IN ( + ( - col2 ) * - 28, col2 + - CAST ( NULL AS INTEGER ) + + 37 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6250
SELECT + col0 * col2 DIV col1 * + col0 AS col0, - col2 FROM tab1
----
11921
-68
17799
-96
85255
-59

skipif mysql # not compatible
query II rowsort label-6250
SELECT + col0 * col2 / col1 * + col0 AS col0, - col2 FROM tab1
----
11921
-68
17799
-96
85255
-59

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6252
SELECT DISTINCT 46 DIV + + col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6252
SELECT DISTINCT 46 / + + col0 FROM tab1
----
0

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 - 21 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6257
SELECT DISTINCT * FROM tab1 WHERE + + CAST( NULL AS SIGNED ) + - 89 <> - + col2
----

skipif mysql # not compatible
query III rowsort label-6257
SELECT DISTINCT * FROM tab1 WHERE + + CAST ( NULL AS INTEGER ) + - 89 <> - + col2
----

query I rowsort
SELECT - - 54 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT - col1 * 48 * + + col2 FROM tab2
----
-147840
-186528
-56304

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

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

query I rowsort
SELECT DISTINCT - + 93 AS col0 FROM tab1 AS cor0
----
-93

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

query II rowsort
SELECT ALL + col2 + + - col1 AS col1, - 61 AS col0 FROM tab2 AS cor0
----
-28
-61
-37
-61
-9
-61

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( + 20 )
----

query I rowsort
SELECT 9 + + ( - 35 ) AS col0 FROM tab1 AS cor0
----
-26
-26
-26

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 5 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6267
SELECT col0 + col0 + + + CAST( + 69 AS SIGNED ) * + 22 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < 74
----

skipif mysql # not compatible
query I rowsort label-6267
SELECT col0 + col0 + + + CAST ( + 69 AS INTEGER ) * + 22 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < 74
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6268
SELECT col1 AS col0, CAST( NULL AS DECIMAL ) + + 63 * 6 AS col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-6268
SELECT col1 AS col0, CAST ( NULL AS REAL ) + + 63 * 6 AS col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT + 29 * - 26 * col0 / + - col0 FROM tab2 WHERE - 88 >= + col1
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6271
SELECT 63 * - CAST( col1 AS SIGNED ) AS col0 FROM tab0
----
-1323
-5103
-63

skipif mysql # not compatible
query I rowsort label-6271
SELECT 63 * - CAST ( col1 AS INTEGER ) AS col0 FROM tab0
----
-1323
-5103
-63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT - - 7 + - SUM( - - col1 ) FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6273
SELECT - - 7 + - SUM ( - - col1 ) FROM tab0 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT ALL 40 + + + COUNT( * ) FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL 40 + + + COUNT ( * ) FROM tab1 AS cor0
----
43

query I rowsort
SELECT - 10 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - ( + 68 ) + + 0 IS NULL
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6278
SELECT CAST( NULL AS SIGNED ) col1 FROM tab2 cor0 WHERE 17 IS NOT NULL
----
NULL
NULL
NULL

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6283
SELECT DISTINCT 94, col0 - + ( CAST( - ( + CAST( + col2 AS DECIMAL ) ) AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
94
144
94
147
94
159

skipif mysql # not compatible
query II rowsort label-6283
SELECT DISTINCT 94, col0 - + ( CAST ( - ( + CAST ( + col2 AS REAL ) ) AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
94
144
94
147
94
159

query I rowsort
SELECT - 71 * + + col1 FROM tab2 AS cor0 WHERE NOT col0 + + + col1 + - col1 <= ( + ( - 84 ) / + + 21 - + + col1 )
----
-3621
-4757
-5467

query I rowsort
SELECT DISTINCT ( + ( - - col2 ) ) AS col0 FROM tab2 AS cor0
----
23
40
58

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

query I rowsort
SELECT DISTINCT 56 * + col1 FROM tab2
----
2856
3752
4312

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 + col1 >= ( + ( + col2 ) ) + - ( + col1 )
----

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

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

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

query I rowsort
SELECT DISTINCT + - 49 AS col2 FROM tab0 AS cor0 WHERE 19 * col0 + + - col0 IS NOT NULL
----
-49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 31 = - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT + col0 * - + 81 FROM tab2 AS cor0
----
-3726
-5184
-6075

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6297
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + + col2 < - - col0 * + col0 + - - col2 + 50
----

skipif mysql # not compatible
query III rowsort label-6297
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + + col2 < - - col0 * + col0 + - - col2 + 50
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 1 * + - col2 + + 8 col0 FROM tab1 AS cor0
----
104
67
76

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 * 62, + 4, col0 + ( + - col1 ) )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab0 WHERE NOT ( col1 <= NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6304
SELECT - col1 + + ( - + 33 ) DIV col0 + col2 FROM tab2
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-6304
SELECT - col1 + + ( - + 33 ) / col0 + col2 FROM tab2
----
-28
-37
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6305
SELECT + 67 * + CAST( - col2 AS SIGNED ) + col2 AS col2 FROM tab0
----
-3102
-6534
-660

skipif mysql # not compatible
query I rowsort label-6305
SELECT + 67 * + CAST ( - col2 AS INTEGER ) + col2 AS col2 FROM tab0
----
-3102
-6534
-660

query II rowsort
SELECT + col2 + + col0 AS col0, col0 AS col2 FROM tab0
----
196
97
62
15
97
87

query I rowsort
SELECT + col0 * + col0 + + - ( - + col1 ) FROM tab0
----
306
7590
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 col1 FROM tab1
----
68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT + + MAX( + 54 ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-6310
SELECT + + MAX ( + 54 ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
57

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

skipif mysql # not compatible
query I rowsort label-6311
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6312
SELECT * FROM tab1 AS cor0 WHERE - col2 - - 75 + 52 - - 95 IN ( col1 + - col0, CAST( + ( - - 65 ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6312
SELECT * FROM tab1 AS cor0 WHERE - col2 - - 75 + 52 - - 95 IN ( col1 + - col0, CAST ( + ( - - 65 ) AS INTEGER ) )
----

query II rowsort
SELECT ALL - col1 - - + ( + ( - - 73 ) ), + col2 AS col2 FROM tab2 AS cor0
----
-4
40
22
23
6
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT + - 19 * - COUNT( * ) FROM tab0 cor0
----
57

skipif mysql # not compatible
query I rowsort label-6314
SELECT + - 19 * - COUNT ( * ) FROM tab0 cor0
----
57

query II rowsort
SELECT ALL - 64, + col2 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( col2, + 17 + + col0, col2 )
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6318
SELECT + MIN( ALL + - col1 ), - SUM( + - col2 ) + 15 col2 FROM tab0
----
-81
171

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6318
SELECT + MIN ( ALL + - col1 ), - SUM ( + - col2 ) + 15 col2 FROM tab0
----
-81
171

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < - + col0 + - col1 * col2 / - col1 * ( + 94 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT 8 * 47 * COUNT( * ) FROM tab0
----
1128

skipif mysql # not compatible
query I rowsort label-6321
SELECT 8 * 47 * COUNT ( * ) FROM tab0
----
1128

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT - MIN( - - 25 ) FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-6322
SELECT - MIN ( - - 25 ) FROM tab1
----
-25

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

query II rowsort
SELECT col1 AS col0, col0 * + ( + ( col0 ) ) - - + 1 AS col0 FROM tab2
----
51
2117
67
5626
77
4097

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 NOT IN ( - col2, col0, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query II rowsort
SELECT col2 * + col0, col2 * 95 AS col2 FROM tab0
----
705
4465
870
950
9603
9405

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6328
SELECT ALL 67 * + - CAST( + + 61 AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ba3b97ce6b47eec39fe33d07d6ae21bb

skipif mysql # not compatible
query I rowsort label-6328
SELECT ALL 67 * + - CAST ( + + 61 AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ba3b97ce6b47eec39fe33d07d6ae21bb

query III rowsort
SELECT * FROM tab2 cor0 WHERE - ( 41 ) + + col1 + - 14 = 29 * + col0
----

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

query I rowsort
SELECT - col2 + - - col1 + col1 FROM tab0 AS cor0
----
-97
115
32

query I rowsort
SELECT ALL + + ( col2 ) + - 11 FROM tab1 AS cor0
----
48
57
85

onlyif mysql # DIV for integer division: 
query I rowsort label-6333
SELECT DISTINCT + + ( col2 ) * - 57 + - col0 - - - col0 - 55 - - + 81 + col0 DIV 38 FROM tab1 AS cor0
----
-3505
-4030
-5547

skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT + + ( col2 ) * - 57 + - col0 - - - col0 - 55 - - + 81 + col0 / 38 FROM tab1 AS cor0
----
-3505
-4030
-5547

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6335
SELECT ALL + COUNT( * ) + - 19 * CAST( + 60 AS SIGNED ) col0 FROM tab0 AS cor0
----
-1137

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6335
SELECT ALL + COUNT ( * ) + - 19 * CAST ( + 60 AS INTEGER ) col0 FROM tab0 AS cor0
----
-1137

query II rowsort
SELECT + col0 * + + col1, + col0 AS col2 FROM tab1 AS cor0
----
425
85
4277
91
714
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT DISTINCT MAX( ALL + col2 ) + 69 AS col0 FROM tab2 AS cor0
----
127

skipif mysql # not compatible
query I rowsort label-6337
SELECT DISTINCT MAX ( ALL + col2 ) + 69 AS col0 FROM tab2 AS cor0
----
127

onlyif mysql # aggregate syntax: 
query II rowsort label-6338
SELECT COUNT( ALL + ( + + 76 ) ), - ( - - ( + MAX( col0 ) ) ) AS col2 FROM tab2
----
3
-75

skipif mysql # not compatible
query II rowsort label-6338
SELECT COUNT ( ALL + ( + + 76 ) ), - ( - - ( + MAX ( col0 ) ) ) AS col2 FROM tab2
----
3
-75

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

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

query I rowsort
SELECT - 69 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT DISTINCT - COUNT( + - col2 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6341
SELECT DISTINCT - COUNT ( + - col2 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT COUNT( 52 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6342
SELECT COUNT ( 52 ) FROM tab2
----
3

query I rowsort
SELECT - col0 * 80 FROM tab0
----
-1200
-6960
-7760

onlyif mysql # DIV for integer division: 
query II rowsort label-6344
SELECT ALL - 96 AS col2, + col1 DIV + col1 FROM tab0
----
-96
1
-96
1
-96
1

skipif mysql # not compatible
query II rowsort label-6344
SELECT ALL - 96 AS col2, + col1 / + col1 FROM tab0
----
-96
1
-96
1
-96
1

query I rowsort
SELECT DISTINCT - col2 * - 17 + + col1 FROM tab2 AS cor0
----
1053
442
757

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6347
SELECT ALL + col2 AS col1, 97 DIV + col1 AS col1 FROM tab1 AS cor0
----
59
19
68
2
96
6

skipif mysql # not compatible
query II rowsort label-6347
SELECT ALL + col2 AS col1, 97 / + col1 AS col1 FROM tab1 AS cor0
----
59
19
68
2
96
6

query I rowsort
SELECT - 98 * + col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 33 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-33

query II rowsort
SELECT + 26 * col0 AS col1, - col2 AS col0 FROM tab0 AS cor0
----
2262
-10
2522
-99
390
-47

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6352
SELECT - + col2 * + - CAST( + col2 AS SIGNED ) AS col2 FROM tab1 cor0
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-6352
SELECT - + col2 * + - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 cor0
----
3481
4624
9216

query I rowsort
SELECT + 16 * + - 61 AS col1 FROM tab0 AS cor0
----
-976
-976
-976

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

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

query I rowsort
SELECT DISTINCT col1 * + + 37 + + col1 / - 21 FROM tab1 AS cor0 WHERE NOT col1 * col0 NOT BETWEEN 40 AND ( 37 * + col0 / + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT ALL SUM( ALL + - 7 ) AS col1 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-6356
SELECT ALL SUM ( ALL + - 7 ) AS col1 FROM tab1
----
-21

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

query II rowsort
SELECT ALL - col2 AS col1, 28 + - col1 AS col1 FROM tab0
----
-10
7
-47
-53
-99
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT COUNT( - + col0 ) * 95 AS col1 FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-6359
SELECT COUNT ( - + col0 ) * 95 AS col1 FROM tab2
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT COUNT( * ) + - ( - SUM( + + 76 ) ) FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-6360
SELECT COUNT ( * ) + - ( - SUM ( + + 76 ) ) FROM tab2 AS cor0
----
231

query II rowsort
SELECT DISTINCT - 50, col2 FROM tab1 AS cor0
----
-50
59
-50
68
-50
96

query I rowsort
SELECT DISTINCT - 63 + - - col1 FROM tab0 AS cor0
----
-42
-62
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT DISTINCT ( SUM( + 3 ) ) + - 97 AS col0 FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-6363
SELECT DISTINCT ( SUM ( + 3 ) ) + - 97 AS col0 FROM tab2 AS cor0
----
-88

query II rowsort
SELECT ALL - col0 + + 62 AS col1, 59 FROM tab2 cor0
----
-13
59
-2
59
16
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6365
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( CAST( + col1 AS SIGNED ) * - col0 / + + 44 + - col0 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6365
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( CAST ( + col1 AS INTEGER ) * - col0 / + + 44 + - col0 ) IS NULL
----

query I rowsort
SELECT - ( - 29 ) + - - col1 AS col0 FROM tab0
----
110
30
50

query I rowsort
SELECT col1 + - 40 + col1 AS col0 FROM tab2
----
114
62
94

query II rowsort
SELECT ALL 21 * - + 3 AS col2, - 14 + + + 52 FROM tab0
----
-63
38
-63
38
-63
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6369
SELECT ALL CAST( - + 28 AS SIGNED ) * 41 + - col0 + - col0 AS col1 FROM tab1 AS cor0
----
-1250
-1318
-1330

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL CAST ( - + 28 AS INTEGER ) * 41 + - col0 + - col0 AS col1 FROM tab1 AS cor0
----
-1250
-1318
-1330

query II rowsort
SELECT DISTINCT - 70 + col2 AS col1, + col0 * + 0 + - 12 FROM tab0 AS cor0
----
-23
-12
-60
-12
29
-12

query I rowsort
SELECT DISTINCT - col0 * + col0 + - - ( - col2 ) AS col1 FROM tab1 AS cor0
----
-2697
-7284
-8349

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 75 ) col0 FROM tab2
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT ALL + COUNT( * ) + + + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-6373
SELECT ALL + COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT - - 79 * COUNT( * ) * 53 * + MIN( col2 ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
2223297

skipif mysql # not compatible
query I rowsort label-6374
SELECT - - 79 * COUNT ( * ) * 53 * + MIN ( col2 ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
2223297

onlyif mysql # DIV for integer division: 
query I rowsort label-6375
SELECT ALL - col0 DIV 55 AS col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL - col0 / 55 AS col2 FROM tab1 AS cor0
----
-1
-1
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT + 19 * - - MIN( - + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 86 / + col1 IS NULL
----
-1102

skipif mysql # not compatible
query I rowsort label-6379
SELECT + 19 * - - MIN ( - + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 86 / + col1 IS NULL
----
-1102

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6380
SELECT - + CAST( NULL AS SIGNED ) AS col0, - 6 AS col0 FROM tab2 cor0
----
NULL
-6
NULL
-6
NULL
-6

skipif mysql # not compatible
query II rowsort label-6380
SELECT - + CAST ( NULL AS INTEGER ) AS col0, - 6 AS col0 FROM tab2 cor0
----
NULL
-6
NULL
-6
NULL
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-6381
SELECT 67 DIV - col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6381
SELECT 67 / - col2 FROM tab1
----
-1
0
0

query I rowsort
SELECT + col1 * - - 48 * - 97 FROM tab2
----
-237456
-311952
-358512

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 14 * + 37 col1, col0 * + - 22 col1 FROM tab0
----
-518
-1914
-518
-2134
-518
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT SUM( col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-6384
SELECT SUM ( col0 ) AS col1 FROM tab2
----
185

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

query I rowsort
SELECT - 41 * + - col1 FROM tab0
----
3321
41
861

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

query I rowsort
SELECT ALL + col2 * 78 FROM tab2 AS cor0
----
1794
3120
4524

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT ALL - - COUNT( * ) * - 52 FROM tab2 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6389
SELECT ALL - - COUNT ( * ) * - 52 FROM tab2 AS cor0
----
-156

query II rowsort
SELECT col1, col0 * - 10 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
14
-510
47
-910
5
-850

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT DISTINCT - - COUNT( * ) + + - SUM( + + 65 ) FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-6392
SELECT DISTINCT - - COUNT ( * ) + + - SUM ( + + 65 ) FROM tab1 AS cor0
----
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-6393
SELECT DISTINCT + col2 * - ( + ( + + col2 ) ) DIV - col2 + - ( - 89 ) + + + col1 FROM tab2 AS cor0
----
163
206
214

skipif mysql # not compatible
query I rowsort label-6393
SELECT DISTINCT + col2 * - ( + ( + + col2 ) ) / - col2 + - ( - 89 ) + + + col1 FROM tab2 AS cor0
----
163
206
214

query I rowsort
SELECT ALL - + col2 + col2 - col2 * - + col2 AS col1 FROM tab0 AS cor0
----
100
2209
9801

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( + 64 ) * + + col2 - - ( - - 37 ) + + - col1 * - 77 + - + 17 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * + col2 + - 12 AS col2 FROM tab1
----
4884
5003
6176

query I rowsort
SELECT 96 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6398
SELECT - AVG ( col0 ) FROM tab2 WHERE + CAST( NULL AS SIGNED ) <= - col0 / col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6398
SELECT - AVG ( col0 ) FROM tab2 WHERE + CAST ( NULL AS INTEGER ) <= - col0 / col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT DISTINCT COUNT( * ) - - MIN( - 18 ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-6400
SELECT DISTINCT COUNT ( * ) - - MIN ( - 18 ) FROM tab1
----
-15

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 28 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT DISTINCT 10 * + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
90

skipif mysql # not compatible
query I rowsort label-6405
SELECT DISTINCT 10 * + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
90

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6407
SELECT ALL + 12 DIV + ( - 34 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6407
SELECT ALL + 12 / + ( - 34 ) FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT COUNT( * ) + - - ( 70 ) + - 18 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
61

skipif mysql # not compatible
query I rowsort label-6408
SELECT COUNT ( * ) + - - ( 70 ) + - 18 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
61

query I rowsort
SELECT ALL + 76 + 59 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 17b10acf07e16d67b01bcec56d331023

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT + + 22 * + + MIN( col0 ) + + 38 FROM tab2 AS cor0
----
1050

skipif mysql # not compatible
query I rowsort label-6410
SELECT + + 22 * + + MIN ( col0 ) + + 38 FROM tab2 AS cor0
----
1050

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

query II rowsort
SELECT + ( - + col0 ) * - - 73 AS col0, + 40 AS col0 FROM tab0 AS cor0
----
-1095
40
-6351
40
-7081
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 59 + col2 + 48 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + - 65 )
----

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

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

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

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

query I rowsort
SELECT 84 + col1 * - 62 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT col0 BETWEEN NULL AND + + col0 )
----

query I rowsort
SELECT DISTINCT - ( - col0 ) AS col2 FROM tab1 WHERE col2 <> NULL
----

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

query I rowsort
SELECT 84 + + - col0 AS col0 FROM tab0
----
-13
-3
69

onlyif mysql # DIV for integer division: 
query I rowsort label-6420
SELECT DISTINCT - col1 DIV + 24 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-6420
SELECT DISTINCT - col1 / + 24 FROM tab1
----
-1
0

query I rowsort
SELECT - col0 + - col2 AS col1 FROM tab1 WHERE NOT ( - col2 ) IS NULL
----
-144
-147
-159

onlyif mysql # DIV for integer division: 
query I rowsort label-6422
SELECT ALL 22 DIV 65 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6422
SELECT ALL 22 / 65 FROM tab0
----
0
0
0

query II rowsort
SELECT col0 + - 74 * + col0 AS col0, + col1 AS col1 FROM tab2
----
-3358
51
-4672
77
-5475
67

query I rowsort
SELECT DISTINCT + - 27 + + 66 AS col1 FROM tab1 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT DISTINCT + ( - COUNT( * ) ) + + + 72 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-6425
SELECT DISTINCT + ( - COUNT ( * ) ) + + + 72 FROM tab1 AS cor0
----
69

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col2, - 6 col2 FROM tab2 AS cor0
----
23
-6
40
-6
58
-6

query III rowsort
SELECT * FROM tab2 WHERE NULL >= - 27 - - col1 * col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT 60 - + + MAX( col0 ) AS col2 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-6430
SELECT 60 - + + MAX ( col0 ) AS col2 FROM tab1 AS cor0
----
-31

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

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

query I rowsort
SELECT DISTINCT + - col0 * col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( + col1 ) AND 33
----

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

query I rowsort
SELECT ALL ( - col1 ) + - col0 + + 61 FROM tab1 AS cor0 WHERE + 97 IS NULL
----

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

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

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

query I rowsort
SELECT ALL 61 + + col0 * - + col2 FROM tab0
----
-644
-809
-9542

query I rowsort
SELECT DISTINCT 15 - - col1 FROM tab1
----
20
29
62

query I rowsort
SELECT ALL + col1 - + - col2 FROM tab1
----
110
115
64

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 10 = + col2 * + col2
----

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

query II rowsort
SELECT 64, 59 AS col2 FROM tab0
----
64
59
64
59
64
59

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6444
SELECT DISTINCT - + CAST( col0 AS SIGNED ) AS col2 FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-6444
SELECT DISTINCT - + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + + 72 * col2 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
1656
2880
4176

query I rowsort
SELECT - 59 FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----

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

query I rowsort
SELECT - ( - - ( - col0 ) ) * - ( + ( + ( col1 ) ) ) * + col2 AS col2 FROM tab1 cor0
----
-25075
-290836
-68544

query I rowsort
SELECT ALL + 21 FROM tab1 AS cor0 WHERE + 81 BETWEEN NULL AND + - col2 / 4
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT DISTINCT - - 58 * + 26 * - ( + 34 ) + + + COUNT( * ) FROM tab2 AS cor0
----
-51269

skipif mysql # not compatible
query I rowsort label-6451
SELECT DISTINCT - - 58 * + 26 * - ( + 34 ) + + + COUNT ( * ) FROM tab2 AS cor0
----
-51269

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 70 + + 73 * + + 18 - - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT ALL + 90 * 43 + - MAX( - + ( - col1 ) ) FROM tab0 AS cor0
----
3789

skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL + 90 * 43 + - MAX ( - + ( - col1 ) ) FROM tab0 AS cor0
----
3789

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( NOT col2 NOT BETWEEN col0 AND - 44 ) )
----

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

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

query I rowsort
SELECT - col1 * - + ( + + col2 ) AS col2 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT ALL 4 AS col0 FROM tab0 WHERE NOT ( ( ( + col0 ) ) + - col2 - 18 IS NULL )
----
4
4
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6459
SELECT + AVG ( - col1 ) * - - 85 * - - MAX( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6459
SELECT + AVG ( - col1 ) * - - 85 * - - MAX ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - 5 * 83 AS col1 FROM tab0
----
-415

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6463
SELECT DISTINCT - 28 + SUM( - - CAST( + + col1 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT - 28 + SUM ( - - CAST ( + + col1 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT + 75 + + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-6464
SELECT + 75 + + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
72

query I rowsort
SELECT ALL col2 - + 40 + - ( 7 ) AS col2 FROM tab2
----
-24
-7
11

query I rowsort
SELECT - 38 + + 29 AS col2 FROM tab2
----
-9
-9
-9

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6469
SELECT 51, COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
51
9

skipif mysql # not compatible
query II rowsort label-6469
SELECT 51, COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
51
9

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

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

query I rowsort
SELECT DISTINCT 38 + 18 FROM tab1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT ALL - COUNT( * ) + - 26 AS col1 FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL - COUNT ( * ) + - 26 AS col1 FROM tab0 AS cor0
----
-29

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NULL = - 73
----

query II rowsort
SELECT ALL - 68 + + 74 + - col1 AS col0, - col2 * + 18 - - + 41 AS col1 FROM tab2 AS cor0
----
-45
-373
-61
-1003
-71
-679

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

query I rowsort
SELECT - col1 - + 69 FROM tab0 AS cor0
----
-150
-70
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 26 * - - col2 - - 41 col0 FROM tab0
----
1263
2615
301

query I rowsort
SELECT DISTINCT 55 + - - 40 - col0 - + col0 * - - 25 FROM tab1 WHERE NOT - - col0 IS NULL
----
-1231
-2115
-2271

query I rowsort
SELECT DISTINCT + - col1 * + 14 + + col2 AS col1 FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT DISTINCT COUNT( * ) + SUM( - 84 ) AS col1 FROM tab1
----
-249

skipif mysql # not compatible
query I rowsort label-6480
SELECT DISTINCT COUNT ( * ) + SUM ( - 84 ) AS col1 FROM tab1
----
-249

onlyif mysql # DIV for integer division: 
query I rowsort label-6481
SELECT DISTINCT col0 DIV + 62 AS col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-6481
SELECT DISTINCT col0 / + 62 AS col0 FROM tab0
----
0
1

query I rowsort
SELECT + - col1 - 27 FROM tab0 WHERE NOT - col0 * + + col1 + + - col1 + col1 / - col0 IS NOT NULL
----

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * - - col1 >= - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - - 94 * + 8 col2 FROM tab2 AS cor0
----
-38352
-50384
-57904

query I rowsort
SELECT - col0 * - - 19 FROM tab2 AS cor0
----
-1216
-1425
-874

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6488
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6488
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 * - col0 * + col2 AS col1 FROM tab0 AS cor0
----
-10575
-75690
-931491

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

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

query I rowsort
SELECT ALL - + 6 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT DISTINCT 99 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + 30 col2 FROM tab2 AS cor0
----
1530
2010
2310

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6496
SELECT + COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
0

query II rowsort
SELECT col2 * col0 + + + col1, + col0 FROM tab0 AS cor0
----
786
15
891
87
9604
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT DISTINCT SUM( DISTINCT 92 ) + - + 37 - - MAX( ALL + col0 ) FROM tab1 cor0
----
146

skipif mysql # not compatible
query I rowsort label-6498
SELECT DISTINCT SUM ( DISTINCT 92 ) + - + 37 - - MAX ( ALL + col0 ) FROM tab1 cor0
----
146

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

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

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

query I rowsort
SELECT DISTINCT - col1 + col2 + + 36 + - 59 * - + 63 FROM tab2
----
3716
3725
3744

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

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

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

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

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

query I rowsort
SELECT col2 * + 79 + - - 33 * col1 * - col1 + + - col0 * + ( + - 74 ) AS col2 FROM tab2
----
-138005
-187761
-80612

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

skipif mysql # not compatible
query III rowsort label-6506
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 + + - 86 AS col0 FROM tab0 WHERE - - 40 + + col0 > ( NULL )
----

query I rowsort
SELECT 58 + - + col1 * + - col1 FROM tab1
----
2267
254
83

query I rowsort
SELECT ALL + + col2 + + 13 AS col2 FROM tab1 AS cor0
----
109
72
81

query I rowsort
SELECT + 82 + + + col1 + + 48 FROM tab1 cor0
----
135
144
177

query I rowsort
SELECT DISTINCT - col1 + + 60 AS col1 FROM tab2 AS cor0
----
-17
-7
9

query I rowsort
SELECT ALL + col1 + + - 34 AS col2 FROM tab2 AS cor0
----
17
33
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT ALL + 90 + + - 40 + + - 47 + - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL > - ( ( + - 46 ) )
----
3

skipif mysql # not compatible
query I rowsort label-6513
SELECT ALL + 90 + + - 40 + + - 47 + - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL > - ( ( + - 46 ) )
----
3

query I rowsort
SELECT ALL - col0 * - col0 - + col2 * - 83 FROM tab0 AS cor0
----
17626
4126
8399

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

query I rowsort
SELECT DISTINCT + - 73 FROM tab0 AS cor0 WHERE NOT + 42 = + col0 / + + ( - 70 ) + + col0 + + ( - - col0 ) * col1
----
-73

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

skipif mysql # not compatible
query I rowsort label-6517
SELECT DISTINCT + COUNT ( * ) / 52 AS col2 FROM tab2
----
0

query II rowsort
SELECT DISTINCT + col0, + 64 AS col1 FROM tab1
----
51
64
85
64
91
64

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT - MIN( - 60 ) AS col1 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-6520
SELECT - MIN ( - 60 ) AS col1 FROM tab0
----
60

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6522
SELECT col0 AS col2, col2 + - 91 DIV + + col2 AS col1 FROM tab1
----
51
96
85
58
91
67

skipif mysql # not compatible
query II rowsort label-6522
SELECT col0 AS col2, col2 + - 91 / + + col2 AS col1 FROM tab1
----
51
96
85
58
91
67

query II rowsort
SELECT ALL col1, ( col0 ) + - 16 AS col2 FROM tab2
----
51
30
67
59
77
48

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

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

skipif mysql # not compatible
query I rowsort label-6525
SELECT + + CAST ( col0 AS INTEGER ) FROM tab2 cor0
----
46
64
75

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col1 col1 FROM tab0
----
162
2
42

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

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

query I rowsort
SELECT ALL 32 AS col2 FROM tab1 WHERE NOT - 19 IS NULL
----
32
32
32

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

skipif mysql # not compatible
query I rowsort label-6530
SELECT DISTINCT - CAST ( 79 AS INTEGER ) FROM tab1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT ALL + COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6531
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT + COUNT( * ) + + 92 AS col2 FROM tab0 WHERE - col1 <> NULL
----
92

skipif mysql # not compatible
query I rowsort label-6532
SELECT + COUNT ( * ) + + 92 AS col2 FROM tab0 WHERE - col1 <> NULL
----
92

query III rowsort
SELECT * FROM tab1 WHERE - 65 + col1 > NULL
----

query I rowsort
SELECT col0 * + 95 AS col0 FROM tab2
----
4370
6080
7125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6535
SELECT CAST( 71 AS SIGNED ) * COUNT( * ) FROM tab0
----
213

skipif mysql # not compatible
query I rowsort label-6535
SELECT CAST ( 71 AS INTEGER ) * COUNT ( * ) FROM tab0
----
213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 * + 3 col1 FROM tab0
----
126
126
126

query I rowsort
SELECT ALL + col2 * - col2 FROM tab1 WHERE - 97 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-6538
SELECT ALL 87 + COUNT ( * ) FROM tab0
----
90

query I rowsort
SELECT - 82 + col1 AS col2 FROM tab1
----
-35
-68
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT + MIN( DISTINCT ( col1 ) ) + - ( 23 ) AS col1 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-6540
SELECT + MIN ( DISTINCT ( col1 ) ) + - ( 23 ) AS col1 FROM tab1
----
-18

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 < col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT - 86 * - SUM( - col1 ) + + 8 FROM tab2
----
-16762

skipif mysql # not compatible
query I rowsort label-6542
SELECT - 86 * - SUM ( - col1 ) + + 8 FROM tab2
----
-16762

query I rowsort
SELECT + col0 FROM tab2 WHERE col0 + col0 NOT BETWEEN col0 AND ( NULL )
----

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

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

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

query I rowsort
SELECT ALL - col1 + - ( + 73 ) AS col0 FROM tab1
----
-120
-78
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT ( 71 ) BETWEEN NULL AND ( 95 * 56 )
----
0

skipif mysql # not compatible
query I rowsort label-6547
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( 71 ) BETWEEN NULL AND ( 95 * 56 )
----
0

query I rowsort
SELECT col0 FROM tab0 WHERE + 13 + col0 * + col0 IS NOT NULL
----
15
87
97

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6550
SELECT - col0 + + ( - ( CAST( - 42 AS SIGNED ) ) ) * + col0 AS col0 FROM tab0
----
3567
3977
615

skipif mysql # not compatible
query I rowsort label-6550
SELECT - col0 + + ( - ( CAST ( - 42 AS INTEGER ) ) ) * + col0 AS col0 FROM tab0
----
3567
3977
615

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

query I rowsort
SELECT ( col2 ) + + 45 FROM tab1
----
104
113
141

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT - 70 * + COUNT( * ) col1 FROM tab0 WHERE 89 * col1 IS NOT NULL
----
-210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6553
SELECT - 70 * + COUNT ( * ) col1 FROM tab0 WHERE 89 * col1 IS NOT NULL
----
-210

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6554
SELECT * FROM tab1 AS cor0 WHERE ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6554
SELECT * FROM tab1 AS cor0 WHERE ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * - 28 NOT BETWEEN ( col1 / 38 + 85 ) AND col1
----

query I rowsort
SELECT - 14 FROM tab2 AS cor0 WHERE + 6 NOT IN ( + 77 - - 64 )
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT + 39 * + COUNT( ALL - col1 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
117

skipif mysql # not compatible
query I rowsort label-6557
SELECT + 39 * + COUNT ( ALL - col1 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
117

query I rowsort
SELECT DISTINCT 62 + + ( 19 ) AS col1 FROM tab1 AS cor0 WHERE NOT - col2 - - col0 > ( + col2 + col2 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT + 66 + MIN( col0 ) FROM tab1 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-6559
SELECT + 66 + MIN ( col0 ) FROM tab1 AS cor0
----
117

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6560
SELECT ALL COUNT ( * ) col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT DISTINCT + 68 - - COUNT( * ) FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-6561
SELECT DISTINCT + 68 - - COUNT ( * ) FROM tab2 AS cor0
----
71

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT 36 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6563
SELECT ALL COUNT( * ) DIV COUNT( * ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6563
SELECT ALL COUNT ( * ) / COUNT ( * ) AS col1 FROM tab1
----
1

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

skipif mysql # not compatible
query I rowsort label-6564
SELECT DISTINCT - + MIN ( ALL + col1 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6565
SELECT - - 83 DIV - col1 col1 FROM tab1 AS cor0
----
-1
-16
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6565
SELECT - - 83 / - col1 col1 FROM tab1 AS cor0
----
-1
-16
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT 21 + 68 * - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-183

skipif mysql # not compatible
query I rowsort label-6567
SELECT 21 + 68 * - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT + 80 * - COUNT( * ) FROM tab0 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-6568
SELECT + 80 * - COUNT ( * ) FROM tab0 AS cor0
----
-240

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

query I rowsort
SELECT 9 * - 92 FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT DISTINCT - COUNT( 51 ) * - 44 col0 FROM tab2
----
132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6571
SELECT DISTINCT - COUNT ( 51 ) * - 44 col0 FROM tab2
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT DISTINCT + MAX( DISTINCT - - col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-6572
SELECT DISTINCT + MAX ( DISTINCT - - col1 ) FROM tab2
----
77

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

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

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT - col0 + - col0 >= col2 + col1 / 15
----
-10
-47
-99

query I rowsort
SELECT ALL - 50 * + 13 AS col1 FROM tab0
----
-650
-650
-650

query I rowsort
SELECT - ( col0 ) * - col2 AS col2 FROM tab0 AS cor0 WHERE NOT - 12 + col1 * 53 IN ( col0 + + col2 )
----
705
870
9603

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col2 ) NOT BETWEEN 25 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query II rowsort
SELECT + 21 AS col2, + col2 AS col2 FROM tab2
----
21
23
21
40
21
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT ALL COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6581
SELECT ALL COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - 54 * 85 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8a62a932dcf6855d8f2c486b63cab390

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT DISTINCT - + SUM( 58 ) AS col2 FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-6584
SELECT DISTINCT - + SUM ( 58 ) AS col2 FROM tab2 AS cor0
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT - + 9 * - ( - - COUNT( * ) ) * ( 5 ) + COUNT( * ) FROM tab1 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-6585
SELECT - + 9 * - ( - - COUNT ( * ) ) * ( 5 ) + COUNT ( * ) FROM tab1 AS cor0
----
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + 16 col0 FROM tab2 AS cor0
----
-35
-51
-61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT ALL 74 + ( - + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL 74 + ( - + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
71

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6590
SELECT - + col0 FROM tab2 WHERE NULL <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6590
SELECT - + col0 FROM tab2 WHERE NULL <= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 2 + + + col2 AS col0 FROM tab0
----
101
12
49

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6595
SELECT CAST( + CAST( + col1 AS SIGNED ) AS SIGNED ) + col1 FROM tab0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-6595
SELECT CAST ( + CAST ( + col1 AS INTEGER ) AS INTEGER ) + col1 FROM tab0
----
162
2
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6596
SELECT - AVG ( ALL 42 ) * ( MIN( - col2 ) + - 5 ) FROM tab1 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6596
SELECT - AVG ( ALL 42 ) * ( MIN ( - col2 ) + - 5 ) FROM tab1 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT - 17 * + col0 AS col2 FROM tab2 AS cor0
----
-1088
-1275
-782

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

query I rowsort
SELECT col2 - + + 38 + + col1 - + - col1 + + col0 * col1 * 86 AS col1 FROM tab2
----
201843
423964
432304

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6601
SELECT DISTINCT + + col1 + + + col0 + - col0 DIV col1 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
141
97

skipif mysql # not compatible
query I rowsort label-6601
SELECT DISTINCT + + col1 + + + col0 + - col0 / col1 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
141
97

query I rowsort
SELECT DISTINCT 57 AS col1 FROM tab1 AS cor0 WHERE NOT 62 * + 90 * + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT - - SUM( ALL + + col1 ) col2 FROM tab0 AS cor0 WHERE NOT - 81 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6603
SELECT - - SUM ( ALL + + col1 ) col2 FROM tab0 AS cor0 WHERE NOT - 81 IS NOT NULL
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6605
SELECT ALL - + col1 * - + col2 * - + col2 col2, CAST( NULL AS DECIMAL ) * - + col2 col0 FROM tab2 AS cor0
----
-123200
NULL
-225388
NULL
-26979
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6605
SELECT ALL - + col1 * - + col2 * - + col2 col2, CAST ( NULL AS REAL ) * - + col2 col0 FROM tab2 AS cor0
----
-123200
NULL
-225388
NULL
-26979
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6606
SELECT DISTINCT - col2 + - - CAST ( NULL AS INTEGER ) col0 FROM tab1 WHERE NOT NULL >= - 72
----

query II rowsort
SELECT DISTINCT + 35 * + col0, - col1 * - col1 + 63 AS col2 FROM tab1
----
1785
259
2975
88
3185
2272

onlyif mysql # DIV for integer division: 
query I rowsort label-6608
SELECT + 81 DIV + + 7 FROM tab0
----
11
11
11

skipif mysql # not compatible
query I rowsort label-6608
SELECT + 81 / + + 7 FROM tab0
----
11
11
11

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - col0 col0 FROM tab2
----
1058
2560
4350

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6611
SELECT ALL - 67 * - + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6611
SELECT ALL - 67 * - + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 45 AS col2, col2 FROM tab1
----
45
59
45
68
45
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE NOT ( col2 ) / + - col2 + + + 25 + col2 <> col2 * + col0
----
0

skipif mysql # not compatible
query I rowsort label-6613
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( col2 ) / + - col2 + + + 25 + col2 <> col2 * + col0
----
0

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6616
SELECT DISTINCT CAST( NULL AS SIGNED ), COUNT( * ) AS col2 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6616
SELECT DISTINCT CAST ( NULL AS INTEGER ), COUNT ( * ) AS col2 FROM tab0
----
NULL
3

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6618
SELECT ALL + MAX( col0 ) DIV + - 13 AS col1 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL + MAX ( col0 ) / + - 13 AS col1 FROM tab0 AS cor0
----
-7

query I rowsort
SELECT + + 22 FROM tab1 cor0
----
22
22
22

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT col0 * - - 30 + - 35 < NULL
----

query I rowsort
SELECT DISTINCT + col0 + + - 43 FROM tab0 AS cor0 WHERE col1 > NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6622
SELECT - col0 DIV + col1, 26 AS col0 FROM tab0
----
-4
26
-97
26
0
26

skipif mysql # not compatible
query II rowsort label-6622
SELECT - col0 / + col1, 26 AS col0 FROM tab0
----
-4
26
-97
26
0
26

onlyif mysql # DIV for integer division: 
query I rowsort label-6623
SELECT - 47 + + 67 DIV + col1 FROM tab2
----
-46
-46
-47

skipif mysql # not compatible
query I rowsort label-6623
SELECT - 47 + + 67 / + col1 FROM tab2
----
-46
-46
-47

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

skipif mysql # not compatible
query III rowsort label-6624
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT ALL COUNT( * ) + + COUNT( * ) + - MAX( DISTINCT + + 21 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6626
SELECT ALL COUNT ( * ) + + COUNT ( * ) + - MAX ( DISTINCT + + 21 ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT - - col0 * col2 + + col0 FROM tab2 cor0
----
1104
2624
4425

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 3 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT DISTINCT - COUNT( * ) + COUNT( * ) + + + 71 AS col2 FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-6629
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) + + + 71 AS col2 FROM tab1 AS cor0
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - 25 ) col0, 95 AS col1 FROM tab0 AS cor0
----
-25
95
-25
95
-25
95

query II rowsort
SELECT ALL + col1 + 92, col2 + - 22 AS col2 FROM tab0 AS cor0
----
113
-12
173
25
93
77

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col1 ) + - - 15 * col2 IN ( - - ( - col1 ) - col1 )
----

query I rowsort
SELECT DISTINCT - 34 - 43 FROM tab2
----
-77

query III rowsort
SELECT * FROM tab0 WHERE - 4 * 67 IS NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE ( - 90 + - col2 + + + col1 ) IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + 7 - - - 84 + + col1 FROM tab0
----
-56
-76
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT DISTINCT SUM( ALL - + 92 ) FROM tab2
----
-276

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT SUM ( ALL - + 92 ) FROM tab2
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT + + COUNT( DISTINCT + 37 ) + + + 91 AS col1 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-6638
SELECT + + COUNT ( DISTINCT + 37 ) + + + 91 AS col1 FROM tab2 AS cor0
----
92

query I rowsort
SELECT 19 * 19 + - 6 * 63 AS col0 FROM tab0 AS cor0
----
-17
-17
-17

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6641
SELECT DISTINCT + + 79 * 10, - COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
790
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6641
SELECT DISTINCT + + 79 * 10, - COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
790
-9

query I rowsort
SELECT - + 54 AS col0 FROM tab2 cor0
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-6643
SELECT + MIN( - 53 ) AS col2, - 94 FROM tab2 AS cor0
----
-53
-94

skipif mysql # not compatible
query II rowsort label-6643
SELECT + MIN ( - 53 ) AS col2, - 94 FROM tab2 AS cor0
----
-53
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6644
SELECT - CAST( - col0 AS SIGNED ) * + col1 AS col0 FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-6644
SELECT - CAST ( - col0 AS INTEGER ) * + col1 AS col0 FROM tab2 AS cor0
----
2346
4928
5025

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

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

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

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

query I rowsort
SELECT col2 * - 42 * - col0 FROM tab0 AS cor0
----
29610
36540
403326

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6649
SELECT ALL - 9 DIV + col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL - 9 / + col0 AS col0 FROM tab2
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT ALL COUNT( * ) * + MAX( ALL - col1 ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL COUNT ( * ) * + MAX ( ALL - col1 ) FROM tab1
----
-15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT DISTINCT MIN( DISTINCT col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-6653
SELECT DISTINCT MIN ( DISTINCT col1 ) AS col1 FROM tab2
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 * + col2 + col0 col1 FROM tab2
----
1104
1904
2743

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6655
SELECT ALL - CAST( NULL AS DECIMAL ) / - ( 26 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL - CAST ( NULL AS REAL ) / - ( 26 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT - - COUNT( * ) + - + 33 AS col1 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-6656
SELECT - - COUNT ( * ) + - + 33 AS col1 FROM tab0 AS cor0
----
-30

query I rowsort
SELECT DISTINCT - col0 * + - col1 + - + col0 FROM tab1 AS cor0
----
340
4186
663

query I rowsort
SELECT + col1 / - 23 AS col2 FROM tab2 WHERE NULL NOT IN ( + - col2 + - + col0 + 78, 39 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 / 73 * 75 + col1 + + ( + 54 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6660
SELECT ( - 37 ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6660
SELECT ( - 37 ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 94 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
94

query I rowsort
SELECT DISTINCT 78 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
78

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6664
SELECT ALL + col0 + + - col0 AS col2, + col2 DIV - - 21 FROM tab0 AS cor0
----
0
0
0
2
0
4

skipif mysql # not compatible
query II rowsort label-6664
SELECT ALL + col0 + + - col0 AS col2, + col2 / - - 21 FROM tab0 AS cor0
----
0
0
0
2
0
4

query I rowsort
SELECT ALL ( - 92 ) + col0 FROM tab2 AS cor0
----
-17
-28
-46

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

query I rowsort
SELECT ALL + col2 * + - col2 - 18 AS col0 FROM tab0
----
-118
-2227
-9819

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6668
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) + - 55 col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6669
SELECT ( - - CAST( - MIN( DISTINCT + col2 ) AS SIGNED ) ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-6669
SELECT ( - - CAST ( - MIN ( DISTINCT + col2 ) AS INTEGER ) ) FROM tab2
----
-23

query I rowsort
SELECT 85 * + ( + + 24 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 73c78bed6721e71e8b9317c0f2ede911

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT DISTINCT - SUM( col0 ) - + - SUM( DISTINCT - col1 ) AS col1 FROM tab2
----
-380

skipif mysql # not compatible
query I rowsort label-6671
SELECT DISTINCT - SUM ( col0 ) - + - SUM ( DISTINCT - col1 ) AS col1 FROM tab2
----
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT COUNT( * ) * - + COUNT( * ) * 50 FROM tab1
----
-450

skipif mysql # not compatible
query I rowsort label-6672
SELECT COUNT ( * ) * - + COUNT ( * ) * 50 FROM tab1
----
-450

query I rowsort
SELECT DISTINCT 16 - - - 97 FROM tab2
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-6674
SELECT + + col2 * col0 DIV - 57 FROM tab1 AS cor0
----
-108
-85
-87

skipif mysql # not compatible
query I rowsort label-6674
SELECT + + col2 * col0 / - 57 FROM tab1 AS cor0
----
-108
-85
-87

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6676
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * - + CAST( NULL AS DECIMAL ) NOT IN ( + col1 * - + 0 * col0 + 79 + col2 * + - 21 )
----

skipif mysql # not compatible
query III rowsort label-6676
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * - + CAST ( NULL AS REAL ) NOT IN ( + col1 * - + 0 * col0 + 79 + col2 * + - 21 )
----

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

skipif mysql # not compatible
query I rowsort label-6677
SELECT MIN ( ALL + col0 ) AS col1 FROM tab2 cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT - ( - COUNT( - + 61 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6678
SELECT - ( - COUNT ( - + 61 ) ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT ALL SUM( DISTINCT - - 24 ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
24

skipif mysql # not compatible
query I rowsort label-6679
SELECT ALL SUM ( DISTINCT - - 24 ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
24

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

query I rowsort
SELECT DISTINCT - 72 FROM tab1 AS cor0 WHERE - 56 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6684
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 63 * col2 - col1 <= + col1 - CAST( NULL AS SIGNED ) * + col1
----

skipif mysql # not compatible
query III rowsort label-6684
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 63 * col2 - col1 <= + col1 - CAST ( NULL AS INTEGER ) * + col1
----

query I rowsort
SELECT DISTINCT + ( - ( + col2 ) ) * + - col2 FROM tab2 AS cor0
----
1600
3364
529

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT + + COUNT( + col1 ) * - 6 * + 30 * - - 74 * + - SUM( DISTINCT - col2 ) col0 FROM tab1 AS cor0
----
-8911080

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6688
SELECT + + COUNT ( + col1 ) * - 6 * + 30 * - - 74 * + - SUM ( DISTINCT - col2 ) col0 FROM tab1 AS cor0
----
-8911080

query I rowsort
SELECT DISTINCT - - col2 * - col0 * - - col2 - + col1 + - 25 / + + col0 - - col1 + col1 FROM tab0 cor0 WHERE NOT + col0 - - - col0 + + col1 / 78 BETWEEN NULL AND 48
----

query I rowsort
SELECT - 3 * - col2 FROM tab1
----
177
204
288

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 * + ( 30 ) AS col0 FROM tab0
----
-1410
-2970
-300

query I rowsort
SELECT ALL + ( + + col2 ) + + 57 AS col2 FROM tab2
----
115
80
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT DISTINCT 34 * SUM( ALL + - col2 ) AS col0 FROM tab0
----
-5304

skipif mysql # not compatible
query I rowsort label-6697
SELECT DISTINCT 34 * SUM ( ALL + - col2 ) AS col0 FROM tab0
----
-5304

query I rowsort
SELECT + 64 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6699
SELECT CAST ( NULL AS INTEGER ) + - 72 col2, col1 AS col0 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT DISTINCT 45 + 65 + + 71 FROM tab2 AS cor0
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT ALL + ( + 99 ) + 18 - COUNT( * ) FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-6701
SELECT ALL + ( + 99 ) + 18 - COUNT ( * ) FROM tab2
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6702
SELECT ALL + - SUM( - + 92 ) DIV + + 57 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
14

skipif mysql # not compatible
query I rowsort label-6702
SELECT ALL + - SUM ( - + 92 ) / + + 57 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
14

query I rowsort
SELECT ALL - 89 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

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

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

query I rowsort
SELECT ALL - - 40 + + - 93 FROM tab2 AS cor0
----
-53
-53
-53

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6707
SELECT - CAST( - + 5 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-6707
SELECT - CAST ( - + 5 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
5
5
5

query I rowsort
SELECT ALL - ( col1 ) + + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-1296
-1848
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT ALL 8 * + - 29 * + COUNT( * ) * 71 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-49419

skipif mysql # not compatible
query I rowsort label-6709
SELECT ALL 8 * + - 29 * + COUNT ( * ) * 71 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-49419

query I rowsort
SELECT ALL - 70 + - 16 AS col0 FROM tab0 AS cor0
----
-86
-86
-86

query I rowsort
SELECT DISTINCT - col1 + + - 92 AS col2 FROM tab2
----
-143
-159
-169

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 37 * + - col0 * - 57 NOT IN ( col1 * - + col0 - + 8, - col1, - + col0 )
----

query I rowsort
SELECT ALL 48 * + - col1 AS col2 FROM tab1 AS cor0
----
-2256
-240
-672

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6716
SELECT + ( - col2 ) * + + 17 * - - CAST( NULL AS SIGNED ), - col2 * col0 + col2 * - col2 + - - 1 AS col0 FROM tab0 AS cor0
----
NULL
-19403
NULL
-2913
NULL
-969

skipif mysql # not compatible
query II rowsort label-6716
SELECT + ( - col2 ) * + + 17 * - - CAST ( NULL AS INTEGER ), - col2 * col0 + col2 * - col2 + - - 1 AS col0 FROM tab0 AS cor0
----
NULL
-19403
NULL
-2913
NULL
-969

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6718
SELECT - ( - 63 ) AS col1, - COUNT( * ) AS col0 FROM tab1 AS cor0
----
63
-3

skipif mysql # not compatible
query II rowsort label-6718
SELECT - ( - 63 ) AS col1, - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
63
-3

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL COUNT ( ALL - + 17 ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 WHERE + 49 BETWEEN - + 62 AND - col1
----

query I rowsort
SELECT + ( - col1 ) + 5 + + 97 AS col1 FROM tab0
----
101
21
81

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT + 44 + - 96 * + col1 <> - - ( - + ( + col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6729
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT + 44 + - 96 * + col1 <> - - ( - + ( + col0 ) )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6731
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT ALL - + ( MAX( ALL col0 ) ) - - - 80 FROM tab2 AS cor0
----
-155

skipif mysql # not compatible
query I rowsort label-6732
SELECT ALL - + ( MAX ( ALL col0 ) ) - - - 80 FROM tab2 AS cor0
----
-155

query I rowsort
SELECT + - col1 + + col2 * + 52 * col1 FROM tab0 AS cor0
----
10899
197883
5147

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

query I rowsort
SELECT ALL + - 97 FROM tab1 AS cor0
----
-97
-97
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col1 ) IN ( - ( - - col2 ), + col1 )
----

query I rowsort
SELECT DISTINCT - + 21 * - ( + col2 ) FROM tab0 AS cor0
----
2079
210
987

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + + 8 col2 FROM tab2 AS cor0
----
-38
-56
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-6739
SELECT ALL - + 52 DIV + col1 + col2 FROM tab1 AS cor0
----
49
67
93

skipif mysql # not compatible
query I rowsort label-6739
SELECT ALL - + 52 / + col1 + col2 FROM tab1 AS cor0
----
49
67
93

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6741
SELECT - 5 DIV - col1 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-6741
SELECT - 5 / - col1 FROM tab0
----
0
0
5

query II rowsort
SELECT + 27 AS col2, col1 + col1 FROM tab0
----
27
162
27
2
27
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6743
SELECT col0 AS col1, + CAST( + - col2 AS SIGNED ) * CAST( NULL AS SIGNED ) - + + 78 AS col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-6743
SELECT col0 AS col1, + CAST ( + - col2 AS INTEGER ) * CAST ( NULL AS INTEGER ) - + + 78 AS col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT ALL 51 * + 35 * 49 AS col0 FROM tab1
----
87465
87465
87465

query I rowsort
SELECT DISTINCT - + 28 AS col2 FROM tab0 WHERE - 58 IS NOT NULL
----
-28

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

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

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

query I rowsort
SELECT ALL - - 39 AS col0 FROM tab2 AS cor0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT DISTINCT - SUM( - 43 ) AS col2 FROM tab2 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-6749
SELECT DISTINCT - SUM ( - 43 ) AS col2 FROM tab2 AS cor0
----
129

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT - COUNT( ALL + 97 ) FROM tab2, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6751
SELECT - COUNT ( ALL + 97 ) FROM tab2, tab0 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + + col1 * - 89 FROM tab2 AS cor0 WHERE ( + col1 ) NOT IN ( col1 + - 3, col1 )
----

query II rowsort
SELECT DISTINCT - - col0, col0 + + + col1 AS col1 FROM tab1 cor0
----
51
65
85
90
91
138

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6755
SELECT DISTINCT - col0 + + ( + CAST( NULL AS SIGNED ) ) * - - 75 + - + 34 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6755
SELECT DISTINCT - col0 + + ( + CAST ( NULL AS INTEGER ) ) * - - 75 + - + 34 AS col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 19 col2, col2 AS col2 FROM tab2 cor0
----
-19
23
-19
40
-19
58

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6758
SELECT - ( MIN( + col1 ) ) * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6758
SELECT - ( MIN ( + col1 ) ) * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT MIN( 42 ) AS col2 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-6759
SELECT MIN ( 42 ) AS col2 FROM tab0
----
42

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( col2 ) = - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6761
SELECT ALL ( col1 ) DIV col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6761
SELECT ALL ( col1 ) / col1 FROM tab1
----
1
1
1

query I rowsort
SELECT - 6 + - - col2 * - 19 * col0 + col1 FROM tab0 AS cor0
----
-13320
-16515
-182462

query I rowsort
SELECT ALL ( col1 ) - col2 + - + col0 * col1 FROM tab2
----
-2318
-4891
-5016

query III rowsort
SELECT * FROM tab2 WHERE + + 70 NOT BETWEEN - 38 + 58 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6765
SELECT + CAST( - AVG ( + + col2 ) AS SIGNED ) * + COUNT( * ) FROM tab1 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-6765
SELECT + CAST ( - AVG ( + + col2 ) AS INTEGER ) * + COUNT ( * ) FROM tab1 AS cor0
----
-222

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

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

query I rowsort
SELECT DISTINCT 4 AS col1 FROM tab2 AS cor0
----
4

query I rowsort
SELECT ALL - - 46 + + col2 AS col0 FROM tab0 AS cor0
----
145
56
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT MIN( 43 ) * - - COUNT( * ) - - + COUNT( * ) - 53 AS col2 FROM tab2 cor0
----
79

skipif mysql # not compatible
query I rowsort label-6770
SELECT MIN ( 43 ) * - - COUNT ( * ) - - + COUNT ( * ) - 53 AS col2 FROM tab2 cor0
----
79

query I rowsort
SELECT - + ( - 5 ) * + + col0 FROM tab0 AS cor0
----
435
485
75

query I rowsort
SELECT 27 FROM tab1 AS cor0 WHERE NOT + col1 <> - col0
----

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

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

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

query I rowsort
SELECT ALL + 70 * - col1 FROM tab2
----
-3570
-4690
-5390

onlyif mysql # DIV for integer division: 
query I rowsort label-6776
SELECT ALL col1 DIV - + 81 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6776
SELECT ALL col1 / - + 81 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT COUNT( * ) * - - 59 col1 FROM tab1 AS cor0
----
177

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

query I rowsort
SELECT - col0 * - col1 * + - 47 + + col2 + - + col0 - col0 * 29 AS col2 FROM tab2 AS cor0
----
-111619
-233496
-238367

query I rowsort
SELECT DISTINCT - - col0 * - col0 + - col2 AS col2 FROM tab2 AS cor0
----
-2139
-4136
-5683

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6780
SELECT ALL - COUNT( * ) / + + ( + 37 ) * + CAST( NULL AS DECIMAL ) * + 2 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6780
SELECT ALL - COUNT ( * ) / + + ( + 37 ) * + CAST ( NULL AS REAL ) * + 2 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6781
SELECT + CAST( NULL AS SIGNED ) AS col2, 97 FROM tab2 AS cor0
----
NULL
97
NULL
97
NULL
97

skipif mysql # not compatible
query II rowsort label-6781
SELECT + CAST ( NULL AS INTEGER ) AS col2, 97 FROM tab2 AS cor0
----
NULL
97
NULL
97
NULL
97

query I rowsort
SELECT DISTINCT - + 63 AS col0 FROM tab2 AS cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT DISTINCT - COUNT( * ) + 75 + - 14 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-6783
SELECT DISTINCT - COUNT ( * ) + 75 + - 14 FROM tab0 AS cor0
----
58

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT DISTINCT - - SUM( + col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-6787
SELECT DISTINCT - - SUM ( + col2 ) AS col2 FROM tab1 AS cor0
----
223

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

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

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

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

query I rowsort
SELECT col2 + - col2 - + 72 AS col2 FROM tab1
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT + ( + MAX( DISTINCT + col0 ) ) + + + 33 AS col2 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-6792
SELECT + ( + MAX ( DISTINCT + col0 ) ) + + + 33 AS col2 FROM tab2
----
108

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

query II rowsort
SELECT - col0 AS col0, col2 + - + col1 FROM tab1 AS cor0
----
-51
82
-85
54
-91
21

query I rowsort
SELECT ALL + ( col2 ) * + - col0 + - 5 * + - col2 FROM tab1 AS cor0
----
-4416
-4720
-5848

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE - ( + + 39 ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 + ( - 98 ) col2 FROM tab0 AS cor0
----
-95
-95
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col1 ) - + col2 col2 FROM tab2 cor0
----
-117
-125
-74

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

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

query I rowsort
SELECT ALL + col1 - 74 FROM tab1
----
-27
-60
-69

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6803
SELECT + col2 - + ( - CAST( - - 81 AS SIGNED ) ) + 92 - - col2 AS col1 FROM tab0
----
193
267
371

skipif mysql # not compatible
query I rowsort label-6803
SELECT + col2 - + ( - CAST ( - - 81 AS INTEGER ) ) + 92 - - col2 AS col1 FROM tab0
----
193
267
371

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT DISTINCT SUM( + + 83 ) - + SUM( ALL - col1 ) AS col1 FROM tab0
----
352

skipif mysql # not compatible
query I rowsort label-6804
SELECT DISTINCT SUM ( + + 83 ) - + SUM ( ALL - col1 ) AS col1 FROM tab0
----
352

query II rowsort
SELECT DISTINCT col2, col1 * + col1 * + col0 * - col2 * 93 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6806
SELECT DISTINCT - - COUNT( DISTINCT col2 ) AS col2, 59 col0 FROM tab1 AS cor0
----
3
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6806
SELECT DISTINCT - - COUNT ( DISTINCT col2 ) AS col2, 59 col0 FROM tab1 AS cor0
----
3
59

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6809
SELECT + + CAST( NULL AS SIGNED ) + - ( 70 ) AS col0, - col1 - + col1 FROM tab2 WHERE NOT 59 IN ( - col0, col2, - 3, - + ( col2 ) + + col2 + - 12 * + + col2 )
----
NULL
-102
NULL
-134
NULL
-154

skipif mysql # not compatible
query II rowsort label-6809
SELECT + + CAST ( NULL AS INTEGER ) + - ( 70 ) AS col0, - col1 - + col1 FROM tab2 WHERE NOT 59 IN ( - col0, col2, - 3, - + ( col2 ) + + col2 + - 12 * + + col2 )
----
NULL
-102
NULL
-134
NULL
-154

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

skipif mysql # not compatible
query I rowsort label-6810
SELECT - ( CAST ( - 53 AS INTEGER ) ) AS col0 FROM tab2
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT - COUNT( * ) * - 31 AS col2 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-6811
SELECT - COUNT ( * ) * - 31 AS col2 FROM tab1
----
93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT - SUM( ALL - - col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-6813
SELECT - SUM ( ALL - - col2 ) FROM tab1
----
-223

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

skipif mysql # not compatible
query I rowsort label-6814
SELECT ALL + COUNT ( DISTINCT + 72 ) FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6815
SELECT DISTINCT 30 * col0 DIV col0 * - col1, CAST( + 92 AS SIGNED ) * + 92 col1 FROM tab1
----
-1410
8464
-150
8464
-420
8464

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6815
SELECT DISTINCT 30 * col0 / col0 * - col1, CAST ( + 92 AS INTEGER ) * + 92 col1 FROM tab1
----
-1410
8464
-150
8464
-420
8464

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

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

query II rowsort
SELECT DISTINCT col0 * + - col0 * + + col2, col2 AS col0 FROM tab1
----
-249696
96
-426275
59
-563108
68

query I rowsort
SELECT ALL col1 * + - col0 + - col1 FROM tab0 AS cor0 WHERE NOT ( - 81 / - col1 + - 30 * + - col2 IS NULL )
----
-1296
-1848
-98

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 61 FROM tab0 WHERE - 9 * - col2 + col2 IS NOT NULL
----
-61
-61
-61

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6826
SELECT DISTINCT + ( - col2 ) + - - col2 DIV - col1 AS col2 FROM tab1
----
-102
-69
-70

skipif mysql # not compatible
query I rowsort label-6826
SELECT DISTINCT + ( - col2 ) + - - col2 / - col1 AS col2 FROM tab1
----
-102
-69
-70

query I rowsort
SELECT DISTINCT + col0 * - 11 AS col0 FROM tab2
----
-506
-704
-825

query I rowsort
SELECT ALL col0 - 69 FROM tab0
----
-54
18
28

query I rowsort
SELECT ALL col0 + + col2 * - ( 90 ) AS col2 FROM tab2 WHERE NOT 41 >= NULL
----

query I rowsort
SELECT - 22 - col1 FROM tab1
----
-27
-36
-69

query I rowsort
SELECT - col0 - + 81 AS col1 FROM tab2
----
-127
-145
-156

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col1 > + + 15 - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 74 * - col1 + - col1 + - - 41 AS col1 FROM tab0 cor0
----
114
1574
5954

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6834
SELECT ( - 84 ) + + - 10 + + + col0 + - CAST( NULL AS SIGNED ) * - - 53 + - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6834
SELECT ( - 84 ) + + - 10 + + + col0 + - CAST ( NULL AS INTEGER ) * - - 53 + - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6835
SELECT - + 29 + col2 DIV 72 FROM tab0 AS cor0
----
-28
-29
-29

skipif mysql # not compatible
query I rowsort label-6835
SELECT - + 29 + col2 / 72 FROM tab0 AS cor0
----
-28
-29
-29

query I rowsort
SELECT ALL + col1 + - 21 AS col1 FROM tab2 AS cor0
----
30
46
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6837
SELECT - + CAST( 94 AS SIGNED ) + + - 47 AS col2 FROM tab1 AS cor0
----
-141
-141
-141

skipif mysql # not compatible
query I rowsort label-6837
SELECT - + CAST ( 94 AS INTEGER ) + + - 47 AS col2 FROM tab1 AS cor0
----
-141
-141
-141

onlyif mysql # aggregate syntax: 
query II rowsort label-6838
SELECT ALL 41 col2, + MIN( DISTINCT col0 ) FROM tab2 AS cor0
----
41
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6838
SELECT ALL 41 col2, + MIN ( DISTINCT col0 ) FROM tab2 AS cor0
----
41
46

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + - 62 = - col0 * - ( + ( col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT DISTINCT - COUNT( * ) * - 56 FROM tab0 WHERE NOT + col0 NOT BETWEEN - + col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6843
SELECT DISTINCT - COUNT ( * ) * - 56 FROM tab0 WHERE NOT + col0 NOT BETWEEN - + col0 AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - ( + - col1 ) col0, + col2 AS col2, - + 50 AS col2 FROM tab1
----
9 values hashing to 89f601479d3d0eb550b4c4762a1bee36

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

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

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

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

query I rowsort
SELECT col1 * col0 FROM tab2 WHERE - 21 <> ( NULL )
----

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

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

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

query I rowsort
SELECT + 26 * - - ( + - 85 ) FROM tab1 AS cor0
----
-2210
-2210
-2210

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

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

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

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

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

query I rowsort
SELECT + col2 + + col1 + + col2 FROM tab2
----
157
183
97

query I rowsort
SELECT + col1 * - + col0 / - 34 + col1 AS col2 FROM tab2 WHERE + 82 < + col1
----

query I rowsort
SELECT - 32 * + + 14 AS col1 FROM tab0
----
-448
-448
-448

query I rowsort
SELECT DISTINCT col0 * + - col1 AS col1 FROM tab0
----
-1215
-1827
-97

query II rowsort
SELECT ALL col1 + - col1, col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
0
14
0
47
0
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 * - col2 + + col2 col0 FROM tab2 cor0
----
1280
1856
736

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6862
SELECT CAST( NULL AS DECIMAL ) * - col0 * 93 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6862
SELECT CAST ( NULL AS REAL ) * - col0 * 93 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 28 AS col2 FROM tab2 cor0
----
28
28
28

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 >= 94
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6867
SELECT + 84 DIV col1 * col0 AS col2 FROM tab0
----
15
348
8148

skipif mysql # not compatible
query I rowsort label-6867
SELECT + 84 / col1 * col0 AS col2 FROM tab0
----
15
348
8148

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

skipif mysql # not compatible
query II rowsort label-6868
SELECT DISTINCT + COUNT ( * ) AS col0, 49 AS col2 FROM tab0
----
3
49

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

skipif mysql # not compatible
query I rowsort label-6869
SELECT + MIN ( ALL + 97 ) AS col1 FROM tab1
----
97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - ( + + 39 ) * 54 col0 FROM tab2
----
-134784
-157950
-96876

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6873
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0, SUM( - - 2 ) FROM tab2
----
NULL
6

skipif mysql # not compatible
query II rowsort label-6873
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0, SUM ( - - 2 ) FROM tab2
----
NULL
6

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

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

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

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

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

query I rowsort
SELECT col1 * 32 * - - 29 + - col2 FROM tab2
----
47305
62118
71416

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE 23 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6878
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE 23 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT COUNT( DISTINCT - + 81 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6879
SELECT COUNT ( DISTINCT - + 81 ) FROM tab2 AS cor0
----
1

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 NOT IN ( - col0 * 25 * - ( + 73 ), - col0, col1 + 7, + 6 * + col1, + - col0 * - col2 + + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6882
SELECT ALL + + col2 DIV + col2 + - + col0 DIV - + ( + + col2 ) AS col2 FROM tab2 AS cor0
----
2
2
3

skipif mysql # not compatible
query I rowsort label-6882
SELECT ALL + + col2 / + col2 + - + col0 / - + ( + + col2 ) AS col2 FROM tab2 AS cor0
----
2
2
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6883
SELECT - COUNT( ALL + col0 ) DIV CAST( CAST( - MIN( ALL + + 39 ) AS SIGNED ) AS SIGNED ) - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6883
SELECT - COUNT ( ALL + col0 ) / CAST ( CAST ( - MIN ( ALL + + 39 ) AS INTEGER ) AS INTEGER ) - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 12 FROM tab2 WHERE NULL <= - col0 * - - col0 * col1 / - col0 + 55 - - + 46 - + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6885
SELECT + 26 DIV - - 77 - - col1 AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-6885
SELECT + 26 / - - 77 - - col1 AS col2 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT + 93 * + ( + + col2 ) AS col1 FROM tab2
----
2139
3720
5394

query II rowsort
SELECT - col1 - + + col0 * - col0 AS col0, - 9 FROM tab1
----
2587
-9
7220
-9
8234
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT + MAX( - + col2 ) - + + 31 col2 FROM tab1
----
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6888
SELECT + MAX ( - + col2 ) - + + 31 col2 FROM tab1
----
-90

query I rowsort
SELECT DISTINCT col1 - - col2 + - 6 * - + 15 FROM tab2
----
164
207
215

query I rowsort
SELECT + 22 - - - 52 FROM tab2
----
-30
-30
-30

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6892
SELECT ALL col1 DIV - col0 - - col1 * col2 FROM tab2 AS cor0
----
1172
3079
3886

skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL col1 / - col0 - - col1 * col2 FROM tab2 AS cor0
----
1172
3079
3886

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

skipif mysql # not compatible
query I rowsort label-6893
SELECT DISTINCT - SUM ( ALL + - col2 ) AS col0 FROM tab2 AS cor0
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-6894
SELECT - 97 DIV col2 * 40 AS col1 FROM tab1 cor0
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-6894
SELECT - 97 / col2 * 40 AS col1 FROM tab1 cor0
----
-40
-40
-40

query I rowsort
SELECT DISTINCT 14 * - 15 FROM tab1
----
-210

query I rowsort
SELECT + 81 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query II rowsort
SELECT + + col0 AS col0, + col0 + + 42 FROM tab0 WHERE NOT + ( - 64 ) BETWEEN 59 AND + col1
----
15
57
87
129
97
139

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6898
SELECT ALL + COUNT ( - 31 ) col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + 80 * + + 10 * + col0 FROM tab1 AS cor0
----
40800
68000
72800

onlyif mysql # DIV for integer division: 
query I rowsort label-6900
SELECT DISTINCT col1 DIV + + col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6900
SELECT DISTINCT col1 / + + col1 FROM tab1 AS cor0
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6903
SELECT col2 * + col2, - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3481
NULL
4624
NULL
9216
NULL

skipif mysql # not compatible
query II rowsort label-6903
SELECT col2 * + col2, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3481
NULL
4624
NULL
9216
NULL

query I rowsort
SELECT DISTINCT + - col0 * + col0 + + col2 FROM tab1 AS cor0
----
-2505
-7166
-8213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6905
SELECT DISTINCT - + 59 * - - SUM( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 WHERE NOT NULL <> col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6905
SELECT DISTINCT - + 59 * - - SUM ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 WHERE NOT NULL <> col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 33 + - col2 + - 23 col1 FROM tab1
----
-35
33
36

query I rowsort
SELECT ALL 4 / - col0 AS col1 FROM tab1 WHERE NULL NOT BETWEEN 26 AND - ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6908
SELECT ALL + CAST( - + col0 AS SIGNED ) * + - col2 * col2 + + - CAST( - - col2 AS SIGNED ) - col0 * col0 FROM tab1
----
288601
412435
467319

skipif mysql # not compatible
query I rowsort label-6908
SELECT ALL + CAST ( - + col0 AS INTEGER ) * + - col2 * col2 + + - CAST ( - - col2 AS INTEGER ) - col0 * col0 FROM tab1
----
288601
412435
467319

onlyif mysql # DIV for integer division: 
query I rowsort label-6909
SELECT DISTINCT 14 DIV + 74 * 12 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6909
SELECT DISTINCT 14 / + 74 * 12 AS col1 FROM tab1
----
0

query I rowsort
SELECT 76 + + + col1 * + col2 FROM tab2
----
1249
3156
3962

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT DISTINCT + COUNT( * ) + + MAX( + 42 ) * 95 FROM tab0 AS cor0
----
3993

skipif mysql # not compatible
query I rowsort label-6912
SELECT DISTINCT + COUNT ( * ) + + MAX ( + 42 ) * 95 FROM tab0 AS cor0
----
3993

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

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

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

query I rowsort
SELECT - - 6 + - - 7 * 38 * + + col1 FROM tab1 AS cor0
----
12508
1336
3730

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT ALL COUNT( * ) * - + ( + 60 ) + + + 58 * 38 FROM tab2 AS cor0
----
2024

skipif mysql # not compatible
query I rowsort label-6918
SELECT ALL COUNT ( * ) * - + ( + 60 ) + + + 58 * 38 FROM tab2 AS cor0
----
2024

onlyif mysql # DIV for integer division: 
query I rowsort label-6919
SELECT + - col2 DIV - - col2 + col0 AS col1 FROM tab2 AS cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-6919
SELECT + - col2 / - - col2 + col0 AS col1 FROM tab2 AS cor0
----
45
63
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col0 * + col0 col2 FROM tab0 AS cor0
----
-144
-7548
-9408

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6922
SELECT ALL * FROM tab1 WHERE - col1 IN ( col0, CAST( NULL AS SIGNED ), - col0, col0, - 70, - + CAST( NULL AS SIGNED ) / col1 )
----

skipif mysql # not compatible
query III rowsort label-6922
SELECT ALL * FROM tab1 WHERE - col1 IN ( col0, CAST ( NULL AS INTEGER ), - col0, col0, - 70, - + CAST ( NULL AS INTEGER ) / col1 )
----

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

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

query II rowsort
SELECT ALL + 70 * + 21, - col2 AS col2 FROM tab0
----
1470
-10
1470
-47
1470
-99

query I rowsort
SELECT col2 * + col2 / + 36 - col0 * + col2 FROM tab2 WHERE NOT + col1 * + 17 * + - 86 IS NOT NULL
----

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

query I rowsort
SELECT + col1 + + 62 FROM tab0 AS cor0 WHERE NOT 70 <= NULL
----

query II rowsort
SELECT - - 96 AS col2, 91 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 7b2b2a70f619892dd366f8b21ad9d6a2

query I rowsort
SELECT + col2 * - + 2 AS col1 FROM tab2
----
-116
-46
-80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT - SUM( DISTINCT + + col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-6933
SELECT - SUM ( DISTINCT + + col2 ) FROM tab1 AS cor0
----
-223

query I rowsort
SELECT ALL 24 + + - 76 + - + 20 FROM tab2
----
-72
-72
-72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT DISTINCT COUNT( * ) * - + 30 AS col0 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-6937
SELECT DISTINCT COUNT ( * ) * - + 30 AS col0 FROM tab1
----
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6938
SELECT CAST( NULL AS DECIMAL ) / 30 * col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6938
SELECT CAST ( NULL AS REAL ) / 30 * col1 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6939
SELECT ALL - COUNT( * ) * + 74 * 53 * - COUNT( * ) FROM tab1 WHERE - ( + + 57 ) * - - col2 * - 14 + + 34 < - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6939
SELECT ALL - COUNT ( * ) * + 74 * 53 * - COUNT ( * ) FROM tab1 WHERE - ( + + 57 ) * - - col2 * - 14 + + 34 < - CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT ALL + col0 + col0 + + 49 * - 0 * - col2 * + - col0 - - - col2 * col2 FROM tab1 AS cor0
----
-3311
-4442
-9114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6941
SELECT COUNT( DISTINCT col0 ) + - + 64 AS col0 FROM tab2 WHERE - CAST( col2 AS SIGNED ) * - col1 IS NULL
----
-64

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, + 1 + - - 12 AS col2 FROM tab1 AS cor0
----
14
13
47
13
5
13

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6944
SELECT + COUNT( * ) * MIN( + - col0 ) col2, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-273
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6944
SELECT + COUNT ( * ) * MIN ( + - col0 ) col2, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-273
NULL

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

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

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

query I rowsort
SELECT col1 - + + 4 + - - col2 FROM tab2 AS cor0
----
113
121
70

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

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

query I rowsort
SELECT 28 * - 80 FROM tab2
----
-2240
-2240
-2240

query II rowsort
SELECT + col2, - 82 * - col2 + 47 + 69 AS col1 FROM tab2
----
23
2002
40
3396
58
4872

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6951
SELECT DISTINCT - ( + COUNT ( * ) ) col2 FROM tab1
----
-3

query II rowsort
SELECT DISTINCT 64 AS col2, 24 FROM tab1
----
64
24

query I rowsort
SELECT - ( 78 ) AS col0 FROM tab1 AS cor0
----
-78
-78
-78

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

query I rowsort
SELECT + 53 AS col2 FROM tab0 WHERE NOT - + col0 * + + 19 IS NULL
----
53
53
53

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

query I rowsort
SELECT - 97 FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT ALL ( - 79 ) + + - col2 FROM tab1 cor0
----
-138
-147
-175

query I rowsort
SELECT DISTINCT + - 91 * col2 + + + col0 - - col0 FROM tab2 AS cor0
----
-2001
-3512
-5128

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6961
SELECT ALL ( - + CAST ( NULL AS INTEGER ) ) / + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT ALL + COUNT( * ) * + COUNT( * ) * - 9 + COUNT( * ) * - SUM( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
-762

skipif mysql # not compatible
query I rowsort label-6962
SELECT ALL + COUNT ( * ) * + COUNT ( * ) * - 9 + COUNT ( * ) * - SUM ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
-762

query I rowsort
SELECT col1 + - 75 * 68 FROM tab1 AS cor0 WHERE NULL >= 73 * + - col0
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6966
SELECT ALL + CAST( MAX( ALL col2 ) AS SIGNED ) + + + 8 + 87 AS col0 FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-6966
SELECT ALL + CAST ( MAX ( ALL col2 ) AS INTEGER ) + + + 8 + 87 AS col0 FROM tab2
----
153

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

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

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

query II rowsort
SELECT DISTINCT - col2 * + 33 * + + col1 AS col0, + ( - col2 ) AS col2 FROM tab0 WHERE NOT + 54 IS NOT NULL
----

query I rowsort
SELECT + 73 + - - col0 FROM tab2
----
119
137
148

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

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

query I rowsort
SELECT - + 12 * - + 86 FROM tab0 cor0
----
1032
1032
1032

query I rowsort
SELECT DISTINCT 55 * + col2 + + col2 AS col2 FROM tab1 AS cor0
----
3304
3808
5376

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

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

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

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

query I rowsort
SELECT DISTINCT + 78 * - 64 FROM tab0
----
-4992

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT ALL - 21 + COUNT( ALL 45 + col0 * + col1 ) AS col0 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-6977
SELECT ALL - 21 + COUNT ( ALL 45 + col0 * + col1 ) AS col0 FROM tab2
----
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6978
SELECT * FROM tab1 WHERE NOT + CAST( + 15 AS DECIMAL ) <= ( + col2 * + col0 )
----

skipif mysql # not compatible
query III rowsort label-6978
SELECT * FROM tab1 WHERE NOT + CAST ( + 15 AS REAL ) <= ( + col2 * + col0 )
----

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

skipif mysql # not compatible
query I rowsort label-6979
SELECT - COUNT ( * ) / COUNT ( DISTINCT + col0 ) FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6980
SELECT + col1 DIV 16 AS col2 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-6980
SELECT + col1 / 16 AS col2 FROM tab0
----
0
1
5

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6981
SELECT + col2 / + 86 col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6982
SELECT - col2 DIV + 50 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6982
SELECT - col2 / + 50 FROM tab2
----
-1
0
0

query I rowsort
SELECT ALL - col0 + - col2 * 95 FROM tab2 WHERE + 6 * col1 BETWEEN - col1 + col0 AND ( - col2 )
----

query I rowsort
SELECT DISTINCT - col1 * + col1 + + col0 * col0 FROM tab0
----
-6336
7128
9408

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

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

query I rowsort
SELECT 22 * ( ( col0 ) ) AS col2 FROM tab2
----
1012
1408
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT 90 * - COUNT( * ) FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-6988
SELECT 90 * - COUNT ( * ) FROM tab2
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT 28 * + COUNT( * ) col2 FROM tab0
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6989
SELECT 28 * + COUNT ( * ) col2 FROM tab0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT ALL + MIN( ALL 5 ) FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-6990
SELECT ALL + MIN ( ALL 5 ) FROM tab0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6991
SELECT CAST( NULL AS SIGNED ) - + col2 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6991
SELECT CAST ( NULL AS INTEGER ) - + col2 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT + MIN( col1 ) + - MAX( 57 ) FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-6992
SELECT + MIN ( col1 ) + - MAX ( 57 ) FROM tab1
----
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 54 ) col1 FROM tab0
----
54
54
54

query I rowsort
SELECT ALL + col0 * col1 + - col1 AS col0 FROM tab2 WHERE NOT NULL IN ( col2 + col1 )
----

query I rowsort
SELECT 57 * + col2 + ( - col2 ) FROM tab0
----
2632
5544
560

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6997
SELECT * FROM tab1 WHERE NULL < - CAST( + ( 37 ) AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6997
SELECT * FROM tab1 WHERE NULL < - CAST ( + ( 37 ) AS REAL )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN 36 AND - col1 / + col2
----

query I rowsort
SELECT - col1 + 68 FROM tab2
----
-9
1
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7000
SELECT DISTINCT 72 * + CAST( NULL AS SIGNED ) FROM tab0 WHERE + 83 BETWEEN ( col2 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-7000
SELECT DISTINCT 72 * + CAST ( NULL AS INTEGER ) FROM tab0 WHERE + 83 BETWEEN ( col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT ALL + 49 - MIN( ALL col2 ) col2 FROM tab0
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7001
SELECT ALL + 49 - MIN ( ALL col2 ) col2 FROM tab0
----
39

query I rowsort
SELECT col2 + - 14 * col2 FROM tab2 WHERE NOT ( + col1 ) IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT ALL COUNT( * ) * 75 AS col0 FROM tab1 cor0
----
225

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL COUNT ( * ) * 75 AS col0 FROM tab1 cor0
----
225

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

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

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

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT 72 > col0
----
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT 43 + + COUNT( * ) FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-7008
SELECT 43 + + COUNT ( * ) FROM tab1
----
46

query I rowsort
SELECT ( 53 ) + col2 FROM tab1
----
112
121
149

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7012
SELECT ALL - CAST( - 83 AS SIGNED ) * col2 FROM tab1 AS cor0
----
4897
5644
7968

skipif mysql # not compatible
query I rowsort label-7012
SELECT ALL - CAST ( - 83 AS INTEGER ) * col2 FROM tab1 AS cor0
----
4897
5644
7968

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7014
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE - 84 * - col0 > NULL
----

skipif mysql # not compatible
query I rowsort label-7014
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE - 84 * - col0 > NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT 95 * COUNT( * ) FROM tab2 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-7016
SELECT 95 * COUNT ( * ) FROM tab2 AS cor0
----
285

onlyif mysql # DIV for integer division: 
query I rowsort label-7017
SELECT DISTINCT + + 22 + + ( - col2 ) DIV 75 AS col0 FROM tab2 AS cor0
----
22

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 6 / col1 NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7019
SELECT DISTINCT + MAX ( ALL + CAST ( NULL AS INTEGER ) ) col0 FROM tab1 cor0
----
NULL

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

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

query I rowsort
SELECT 78 * 12 FROM tab0
----
936
936
936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 82 ) col2 FROM tab0
----
-82
-82
-82

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7025
SELECT 3 * col0 + CAST( NULL AS SIGNED ) FROM tab2 WHERE + 15 >= NULL
----

skipif mysql # not compatible
query I rowsort label-7025
SELECT 3 * col0 + CAST ( NULL AS INTEGER ) FROM tab2 WHERE + 15 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT ALL - MIN( DISTINCT - - 58 ) * 41 FROM tab1
----
-2378

skipif mysql # not compatible
query I rowsort label-7026
SELECT ALL - MIN ( DISTINCT - - 58 ) * 41 FROM tab1
----
-2378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7027
SELECT - ( - COUNT( * ) ) DIV 71 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7027
SELECT - ( - COUNT ( * ) ) / 71 AS col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * 43 col1 FROM tab1 WHERE NULL = ( - 81 + - col1 )
----

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 <> col2 * 89
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col0 FROM tab1 AS cor0 WHERE ( NULL ) < ( + 44 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT - - COUNT( * ) + - 63 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-7032
SELECT - - COUNT ( * ) + - 63 FROM tab0 AS cor0
----
-60

query I rowsort
SELECT DISTINCT - - 25 * - - 75 FROM tab1 AS cor0
----
1875

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7035
SELECT - ( - 15 ) * CAST( - 4 * + ( + 12 ) AS SIGNED ) + COUNT( * ) * + 93 FROM tab1 AS cor0
----
-441

skipif mysql # not compatible
query I rowsort label-7035
SELECT - ( - 15 ) * CAST ( - 4 * + ( + 12 ) AS INTEGER ) + COUNT ( * ) * + 93 FROM tab1 AS cor0
----
-441

query I rowsort
SELECT + ( 42 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 86 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT ALL + - SUM( + 28 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-252

skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL + - SUM ( + 28 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-252

query I rowsort
SELECT DISTINCT col1 + + ( - 27 ) - 32 * 2 * + 62 FROM tab1
----
-3948
-3981
-3990

query I rowsort
SELECT + 61 FROM tab2 WHERE NOT - 49 NOT BETWEEN NULL AND NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7043
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT 71 BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7043
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 71 BETWEEN NULL AND ( NULL )
----

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

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

query II rowsort
SELECT + 45, + col1 * - 78 + - col0 * col1 AS col1 FROM tab2 AS cor0
----
45
-10251
45
-10934
45
-6324

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

query I rowsort
SELECT DISTINCT - col1 * + + ( + col2 ) * ( + col0 + col2 ) AS col0 FROM tab0 AS cor0
----
-19404
-20370
-236034

query II rowsort
SELECT DISTINCT - + 68 AS col1, - col0 + - 52 + col0 * col1 AS col1 FROM tab2 AS cor0
----
-68
2248
-68
4812
-68
4898

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT + 81 * MIN( ALL + - 73 ) FROM tab2 AS cor0
----
-5913

skipif mysql # not compatible
query I rowsort label-7051
SELECT + 81 * MIN ( ALL + - 73 ) FROM tab2 AS cor0
----
-5913

onlyif mysql # DIV for integer division: 
query I rowsort label-7052
SELECT 91 DIV + - col2 + - col0 col2 FROM tab0 AS cor0
----
-16
-96
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7052
SELECT 91 / + - col2 + - col0 col2 FROM tab0 AS cor0
----
-16
-96
-97

query I rowsort
SELECT + + 31 * + col1 - col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
-66
2496
564

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT + COUNT( col0 ) AS col2 FROM tab1 WHERE NOT ( - col0 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7054
SELECT + COUNT ( col0 ) AS col2 FROM tab1 WHERE NOT ( - col0 ) = NULL
----
0

query I rowsort
SELECT ALL col0 * + 11 AS col1 FROM tab1
----
1001
561
935

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7056
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE - CAST( col2 AS SIGNED ) NOT BETWEEN ( col0 ) AND 8
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-7056
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE - CAST ( col2 AS INTEGER ) NOT BETWEEN ( col0 ) AND 8
----
-1
-21
-81

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( col1 + - 55 ) > NULL
----

query I rowsort
SELECT - + 61 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

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

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

query I rowsort
SELECT col1 * - - 20 * + 48 FROM tab2 AS cor0
----
48960
64320
73920

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT ALL - SUM( - - 10 ) AS col0 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL - SUM ( - - 10 ) AS col0 FROM tab2 AS cor0
----
-30

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 + - - 73 * col1 col0 FROM tab1 cor0
----
1099
3508
442

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

skipif mysql # not compatible
query I rowsort label-7067
SELECT + - col1 * - col2 + - - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
1358
300
3243

query I rowsort
SELECT ALL + col0 * - col0 * + 99 AS col1 FROM tab1 AS cor0
----
-257499
-715275
-819819

query I rowsort
SELECT ALL + - 56 + - 16 AS col2 FROM tab2 cor0
----
-72
-72
-72

query I rowsort
SELECT + col1 + + col0 + col1 * + - col2 FROM tab1 AS cor0
----
-1279
-205
-3058

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 81 * + 44 - + ( - - col1 ) + + ( - col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7074
SELECT DISTINCT CAST( + + 99 AS SIGNED ) FROM tab2
----
99

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

query II rowsort
SELECT + ( - col0 ) + - col0 * 51, + col2 FROM tab0
----
-4524
10
-5044
99
-780
47

query II rowsort
SELECT ALL 6 * 86 AS col1, col1 + col0 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE - col1 + 37 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7077
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE - col1 + 37 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT ALL + COUNT( * ) * 85 AS col1 FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL + COUNT ( * ) * 85 AS col1 FROM tab1
----
255

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

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

query II rowsort
SELECT ALL + + 99 AS col1, - col1 * - col2 FROM tab2 AS cor0
----
99
1173
99
3080
99
3886

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT DISTINCT + SUM( ALL col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-7083
SELECT DISTINCT + SUM ( ALL col2 ) AS col0 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT ALL COUNT( DISTINCT - - 61 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7084
SELECT ALL COUNT ( DISTINCT - - 61 ) FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7085
SELECT DISTINCT col0 DIV + - 73 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-7085
SELECT DISTINCT col0 / + - 73 FROM tab1
----
-1
0

query II rowsort
SELECT DISTINCT 35, + col0 FROM tab0
----
35
15
35
87
35
97

query I rowsort
SELECT DISTINCT 18 + - 32 FROM tab1 AS cor0
----
-14

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + - 67 col0 FROM tab2 AS cor0
----
-3082
-4288
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 77 * + - col1 col2 FROM tab2 AS cor0
----
-3927
-5159
-5929

query I rowsort
SELECT 3 * - 50 FROM tab0 AS cor0
----
-150
-150
-150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 97 col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7094
SELECT ALL - 46 AS col2 FROM tab2, tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + - - 82 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7094
SELECT ALL - 46 AS col2 FROM tab2, tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + - - 82 IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 12 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-12

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

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

query I rowsort
SELECT ALL - 19 FROM tab0 AS cor0 WHERE NOT + ( - - 46 ) + 15 IS NOT NULL
----

query I rowsort
SELECT ALL + + col0 * 26 + + 69 * - 61 FROM tab2 AS cor0 WHERE - col0 * - col0 / - - col0 IS NOT NULL
----
-2259
-2545
-3013

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 40 <= NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7102
SELECT DISTINCT + + MIN ( DISTINCT col1 ) col0 FROM tab2 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 0 * - 69 + - + col2 - + col0 col2 FROM tab0 AS cor0
----
-196
-62
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + col0 ) col1, + 36 * 29 FROM tab2 AS cor0
----
46
1044
64
1044
75
1044

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7106
SELECT DISTINCT col2 * ( + + col0 ) + - col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NULL < - + 1 * - 56
----

skipif mysql # not compatible
query I rowsort label-7106
SELECT DISTINCT col2 * ( + + col0 ) + - col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NULL < - + 1 * - 56
----

query I rowsort
SELECT DISTINCT 56 + + col1 FROM tab0
----
137
57
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7108
SELECT + col1 AS col0 FROM tab1 WHERE NULL > + CAST( - 17 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7108
SELECT + col1 AS col0 FROM tab1 WHERE NULL > + CAST ( - 17 AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 WHERE 23 * + ( + col2 ) + - col1 <> - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 40 + + - 98 - - 90 FROM tab0 WHERE - - col2 IS NOT NULL
----
-48
-48
-48

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

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

query I rowsort
SELECT ALL - ( + - 12 ) - + col1 AS col1 FROM tab0
----
-69
-9
11

query I rowsort
SELECT DISTINCT - ( + + col2 ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT 43 * + 86 AS col1 FROM tab0
----
3698

query I rowsort
SELECT + 51 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT - ( + ( - + MIN( col0 ) ) ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-7118
SELECT - ( + ( - + MIN ( col0 ) ) ) AS col1 FROM tab2 AS cor0
----
46

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 45 * + col2 <= + col1 * + col1
----
87
21
10
97
1
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT ALL - + COUNT( * ) * - + COUNT( * ) * + + 89 FROM tab1 AS cor0
----
801

skipif mysql # not compatible
query I rowsort label-7122
SELECT ALL - + COUNT ( * ) * - + COUNT ( * ) * + + 89 FROM tab1 AS cor0
----
801

query I rowsort
SELECT ALL + 28 * col0 FROM tab0 AS cor0
----
2436
2716
420

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

query I rowsort
SELECT + + col2 * 5 AS col0 FROM tab1 AS cor0
----
295
340
480

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT ALL COUNT( * ) * - 34 col2 FROM tab2
----
-102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7126
SELECT ALL COUNT ( * ) * - 34 col2 FROM tab2
----
-102

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( + - col0 <> ( ( ( + + col0 ) ) ) ) )
----

query I rowsort
SELECT ALL + col1 * 54 FROM tab0
----
1134
4374
54

query I rowsort
SELECT + 69 + + 68 - + col1 FROM tab2
----
60
70
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7131
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1 WHERE 29 >= + - col1 * col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7131
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1 WHERE 29 >= + - col1 * col0
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT + col0 * col1 + - + ( + - col0 ) * col0 + 66 AS col2 FROM tab0 AS cor0
----
1506
9462
9572

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT - + 12 + + COUNT( * ) * + 78 AS col1 FROM tab0 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-7135
SELECT - + 12 + + COUNT ( * ) * + 78 AS col1 FROM tab0 AS cor0
----
222

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

query I rowsort
SELECT DISTINCT + 83 + + + col0 FROM tab2 AS cor0
----
129
147
158

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col2, - 5 * col0 FROM tab0
----
15
-75
87
-435
97
-485

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col2 col2 FROM tab0
----
-100
-128
-31

query I rowsort
SELECT col0 * + col0 - + - 93 AS col1 FROM tab2
----
2209
4189
5718

query I rowsort
SELECT ALL col2 FROM tab2 cor0 WHERE NOT + 25 / 48 = ( - + 97 )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT + MAX( DISTINCT - col2 ) + COUNT( * ) FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-7144
SELECT + MAX ( DISTINCT - col2 ) + COUNT ( * ) FROM tab1 AS cor0
----
-56

query I rowsort
SELECT - col2 + + 24 AS col1 FROM tab1 cor0
----
-35
-44
-72

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

skipif mysql # not compatible
query I rowsort label-7146
SELECT DISTINCT MIN ( ALL col1 ) + + COUNT ( * ) FROM tab1 AS cor0
----
8

query II rowsort
SELECT DISTINCT - 74, - col1 * + + ( + col0 ) AS col2 FROM tab0 AS cor0
----
-74
-1215
-74
-1827
-74
-97

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7150
SELECT DISTINCT + 50 + + MIN( col0 ) AS col0, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
101
3

skipif mysql # not compatible
query II rowsort label-7150
SELECT DISTINCT + 50 + + MIN ( col0 ) AS col0, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
101
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT ALL COUNT( * ) + + - 30 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-7151
SELECT ALL COUNT ( * ) + + - 30 FROM tab1
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-7152
SELECT ALL ( + - col2 ) DIV - col1 - + 99 AS col1 FROM tab0
----
-99
-99
0

skipif mysql # not compatible
query I rowsort label-7152
SELECT ALL ( + - col2 ) / - col1 - + 99 AS col1 FROM tab0
----
-99
-99
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7153
SELECT - - CAST( + - 48 AS SIGNED ) AS col0 FROM tab1 WHERE + col2 + + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7153
SELECT - - CAST ( + - 48 AS INTEGER ) AS col0 FROM tab1 WHERE + col2 + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7154
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 / CAST( - col1 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-7154
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 / CAST ( - col1 AS INTEGER ) <> NULL
----

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

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

query I rowsort
SELECT DISTINCT 18 AS col0 FROM tab1, tab2 AS cor0
----
18

query I rowsort
SELECT 83 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT ALL COUNT( * ) * - COUNT( ALL col2 ) FROM tab2 WHERE col0 = + col1
----
0

skipif mysql # not compatible
query I rowsort label-7159
SELECT ALL COUNT ( * ) * - COUNT ( ALL col2 ) FROM tab2 WHERE col0 = + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT + COUNT( * ) - 14 * + 55 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-761

skipif mysql # not compatible
query I rowsort label-7160
SELECT + COUNT ( * ) - 14 * + 55 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-761

query I rowsort
SELECT - + ( + 44 ) FROM tab1 cor0
----
-44
-44
-44

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT DISTINCT 78 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-7163
SELECT DISTINCT 78 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
234

query I rowsort
SELECT ALL col2 / + col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT col2 * - col2 + + col2 AS col1 FROM tab1 AS cor0
----
-3422
-4556
-9120

query II rowsort
SELECT DISTINCT - - col0 + + 99 * - col2 + + - 54 * - 53, - ( + 62 ) * - col1 + col2 + - col1 AS col2 FROM tab1 AS cor0
----
-2894
364
-3779
2935
-6591
950

onlyif mysql # aggregate syntax: 
query I rowsort label-7167
SELECT 41 * - MAX( - ( + + 92 ) ) AS col0 FROM tab2
----
3772

skipif mysql # not compatible
query I rowsort label-7167
SELECT 41 * - MAX ( - ( + + 92 ) ) AS col0 FROM tab2
----
3772

query I rowsort
SELECT DISTINCT + ( - col1 ) * - col1 FROM tab0
----
1
441
6561

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT ALL COUNT( * ) * - 29 AS col0 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-7171
SELECT ALL COUNT ( * ) * - 29 AS col0 FROM tab0
----
-87

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 + col2 AS col2, + col0 col2 FROM tab2 AS cor0
----
117
64
125
75
74
46

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 + + + col1 + col2 * - 8 - 1 + + col0 - 6 * + 19 AS col2 FROM tab1
----
-474
-492
-804

onlyif mysql # DIV for integer division: 
query I rowsort label-7181
SELECT ALL + 43 * ( + col1 ) DIV 7 + - col0 * - 35 + - + col1 - 30 AS col0 FROM tab0
----
3123
3370
911

skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL + 43 * ( + col1 ) / 7 + - col0 * - 35 + - + col1 - 30 AS col0 FROM tab0
----
3123
3370
911

query I rowsort
SELECT ALL - col0 * col0 * - 62 AS col1 FROM tab0 cor0
----
13950
469278
583358

query I rowsort
SELECT - 2 * 89 FROM tab0 AS cor0
----
-178
-178
-178

query I rowsort
SELECT - 50 FROM tab2 AS cor0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT ALL - col2 + - - col1 + + ( - - col0 ) * col1 * - col0 FROM tab1 AS cor0
----
-36179
-36496
-389228

query II rowsort
SELECT ALL - + 75, - 95 + + + col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 + - col1 + col2 < NULL
----

query I rowsort
SELECT DISTINCT + 51 + + + col2 * col0 FROM tab1 AS cor0
----
4947
5066
6239

query I rowsort
SELECT + col2 * + - col1 + - col2 - + + col2 * - col2 FROM tab0 AS cor0
----
-120
-1645
9603

query I rowsort
SELECT ALL + col0 * - + 73 * - col2 * col0 - - + 33 FROM tab2
----
11960353
23816283
3552797

query I rowsort
SELECT - col0 * - - 50 - + ( - - 96 ) AS col2 FROM tab0
----
-4446
-4946
-846

query II rowsort
SELECT + col0 AS col2, col1 * + col0 * ( - + 77 ) * + 79 FROM tab2
----
46
-14270718
64
-29977024
75
-30567075

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT DISTINCT MIN( DISTINCT - - col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7192
SELECT DISTINCT MIN ( DISTINCT - - col0 ) FROM tab0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7193
SELECT - 43 DIV + + 86 - + col0 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7193
SELECT - 43 / + + 86 - + col0 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT + 47 * - 62 AS col1 FROM tab1 AS cor0
----
-2914
-2914
-2914

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT - COUNT( * ) * SUM( ALL + - col1 ) FROM tab0 AS cor0
----
309

skipif mysql # not compatible
query I rowsort label-7195
SELECT - COUNT ( * ) * SUM ( ALL + - col1 ) FROM tab0 AS cor0
----
309

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 JOIN tab0 AS cor1 ON NOT ( NOT NULL <> NULL ) )
----

query I rowsort
SELECT DISTINCT - col2 * - col0 AS col2 FROM tab0 WHERE NULL <> NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7199
SELECT ALL - col1 AS col2, - CAST( NULL AS SIGNED ) * - 84 FROM tab2 AS cor0 WHERE 26 * + col1 IS NULL
----

skipif mysql # not compatible
query II rowsort label-7199
SELECT ALL - col1 AS col2, - CAST ( NULL AS INTEGER ) * - 84 FROM tab2 AS cor0 WHERE 26 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT DISTINCT - 78 * - 85 * - 91 * + COUNT( * ) + + + ( + - 98 ) AS col2 FROM tab0 AS cor0
----
-1810088

skipif mysql # not compatible
query I rowsort label-7200
SELECT DISTINCT - 78 * - 85 * - 91 * + COUNT ( * ) + + + ( + - 98 ) AS col2 FROM tab0 AS cor0
----
-1810088

query I rowsort
SELECT + + 43 AS col2 FROM tab2 AS cor0
----
43
43
43

query I rowsort
SELECT ALL 34 * - 23 + - col1 FROM tab2 AS cor0
----
-833
-849
-859

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

query I rowsort
SELECT 18 + - col1 FROM tab1
----
-29
13
4

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

query I rowsort
SELECT - 23 + + col0 FROM tab1
----
28
62
68

query I rowsort
SELECT col1 + - + 32 FROM tab1
----
-18
-27
15

query I rowsort
SELECT + - 72 + - + col1 * + - col2 FROM tab1 AS cor0
----
1272
223
3124

query I rowsort
SELECT ALL - 68 * 88 AS col1 FROM tab2 AS cor0
----
-5984
-5984
-5984

query I rowsort
SELECT DISTINCT - ( - + 56 ) - - - col2 FROM tab1
----
-12
-3
-40

query I rowsort
SELECT ALL - 66 - - ( + - 77 ) - - col1 * + 82 AS col1 FROM tab0
----
-61
1579
6499

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7212
SELECT + col1 + - CAST( - col2 AS SIGNED ) FROM tab0 WHERE NULL = ( 16 )
----

skipif mysql # not compatible
query I rowsort label-7212
SELECT + col1 + - CAST ( - col2 AS INTEGER ) FROM tab0 WHERE NULL = ( 16 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7213
SELECT DISTINCT + CAST( col1 AS SIGNED ) * - + col2 AS col1 FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-7213
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * - + col2 AS col1 FROM tab2
----
-1173
-3080
-3886

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

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

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

query I rowsort
SELECT + col2 + - - 53 AS col2 FROM tab1 AS cor0
----
112
121
149

onlyif mysql # DIV for integer division: 
query I rowsort label-7217
SELECT DISTINCT 51 DIV col2 + col1 FROM tab2 AS cor0
----
53
67
78

skipif mysql # not compatible
query I rowsort label-7217
SELECT DISTINCT 51 / col2 + col1 FROM tab2 AS cor0
----
53
67
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT DISTINCT COUNT( * ) * - COUNT( * ) * 10 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-7218
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) * 10 FROM tab0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-7219
SELECT 9 DIV col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7219
SELECT 9 / col2 AS col0 FROM tab1
----
0
0
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT SUM( DISTINCT + col0 ) col0 FROM tab2
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7222
SELECT SUM ( DISTINCT + col0 ) col0 FROM tab2
----
185

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

skipif mysql # not compatible
query I rowsort label-7223
SELECT + MIN ( - 38 ) AS col1 FROM tab1
----
-38

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

query I rowsort
SELECT + 9 * - + ( - + 8 ) AS col0 FROM tab2
----
72
72
72

query I rowsort
SELECT DISTINCT col0 * - col2 * + - ( 74 ) FROM tab0
----
52170
64380
710622

query I rowsort
SELECT ALL AVG ( - col0 ) + - 32 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
NULL

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

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

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

query II rowsort
SELECT DISTINCT - 3 AS col2, 71 + + ( 19 ) AS col2 FROM tab2
----
-3
90

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 32 IS NULL
----

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

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

query I rowsort
SELECT ALL + + col2 FROM tab1 AS cor0 WHERE + 98 NOT IN ( + col2, col2 * - col1, - col1, + col1 - - 76 )
----
59
68
96

query I rowsort
SELECT ALL + - ( 63 ) FROM tab1 AS cor0 WHERE col0 <= 69
----
-63

query II rowsort
SELECT - - col1 AS col1, - 23 + 71 * + col2 + 81 + - - col2 * - col1 * + col1 AS col2 FROM tab1 AS cor0
----
14
-11942
47
-145326
5
2772

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 col2, + col0 AS col2 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT DISTINCT + + col2 + + - 39 FROM tab0 AS cor0
----
-29
60
8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT ALL - 22 * + - COUNT( * ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-7239
SELECT ALL - 22 * + - COUNT ( * ) AS col2 FROM tab1
----
66

query I rowsort
SELECT 38 * - + col2 FROM tab2
----
-1520
-2204
-874

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT + col2 - - 26 / col2 >= NULL
----

query I rowsort
SELECT ALL + + col2 + - 7 FROM tab2 WHERE NOT + 28 + - col2 * + 46 / col0 BETWEEN 77 AND - + col0
----
16
33
51

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7245
SELECT ALL + col1 - - 42 * + col0 DIV + col0 FROM tab2
----
109
119
93

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL + col1 - - 42 * + col0 / + col0 FROM tab2
----
109
119
93

query I rowsort
SELECT DISTINCT + + col0 * - col0 * - col2 AS col2 FROM tab2 cor0
----
163840
326250
48668

query I rowsort
SELECT DISTINCT + 36 + - - 84 FROM tab1 AS cor0
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7248
SELECT + SUM( ALL - 19 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7249
SELECT + + col0 DIV 3 * - col1 + + - col0 FROM tab0 AS cor0
----
-129
-420
-696

skipif mysql # not compatible
query I rowsort label-7249
SELECT + + col0 / 3 * - col1 + + - col0 FROM tab0 AS cor0
----
-129
-420
-696

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7250
SELECT + COUNT ( * ) col2, 61 FROM tab2 AS cor0
----
3
61

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

query I rowsort
SELECT col0 FROM tab0 WHERE NOT - - col0 BETWEEN NULL AND col0
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7254
SELECT ALL + CAST( NULL AS DECIMAL ) * + + ( - col0 ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7254
SELECT ALL + CAST ( NULL AS REAL ) * + + ( - col0 ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 21 * - + 17 * - + col0 FROM tab2
----
16422
22848
26775

onlyif mysql # DIV for integer division: 
query I rowsort label-7256
SELECT ALL col0 * + col0 DIV - col0 AS col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7256
SELECT ALL col0 * + col0 / - col0 AS col1 FROM tab2
----
-46
-64
-75

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 66 NOT BETWEEN + - 29 * col0 * 69 + - + col0 AND + 66
----

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

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

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

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

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

query I rowsort
SELECT col1 * col2 * + 47 FROM tab1 cor0
----
13865
150212
63168

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT DISTINCT + 30 - - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
21

skipif mysql # not compatible
query I rowsort label-7264
SELECT DISTINCT + 30 - - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7265
SELECT + COUNT( ALL col0 ) DIV ( + 82 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7265
SELECT + COUNT ( ALL col0 ) / ( + 82 ) AS col2 FROM tab1 AS cor0
----
0

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

query II rowsort
SELECT ALL - 23 + - - col0 AS col1, + col2 AS col2 FROM tab0 AS cor0
----
-8
47
64
10
74
99

query II rowsort
SELECT DISTINCT + - col2 + + 47, 19 AS col1 FROM tab2 AS cor0
----
-11
19
24
19
7
19

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7270
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) * 0 >= NULL
----

skipif mysql # not compatible
query III rowsort label-7270
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) * 0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 13 + + + ( - col2 ) col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-10
-27
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + + 59 col0, - 25 * col1 col1 FROM tab0 AS cor0
----
-28
-525
-38
-25
44
-2025

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT ALL + 14 + + COUNT( * ) + - - 69 col1 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7273
SELECT ALL + 14 + + COUNT ( * ) + - - 69 col1 FROM tab1 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT ALL - MIN( + - col1 ) FROM tab0 AS cor0 WHERE NOT - col0 / - 78 + 73 + + col0 * col0 - - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7274
SELECT ALL - MIN ( + - col1 ) FROM tab0 AS cor0 WHERE NOT - col0 / - 78 + 73 + + col0 * col0 - - col0 IS NOT NULL
----
NULL

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-7277
SELECT ALL col1, - col2 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT - 17 + - + 30 AS col2 FROM tab0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT COUNT( * ) + + + MAX( - col1 ) AS col2 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-7279
SELECT COUNT ( * ) + + + MAX ( - col1 ) AS col2 FROM tab0
----
2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7281
SELECT col2 * 0 * - CAST( + + col1 AS SIGNED ) AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7281
SELECT col2 * 0 * - CAST ( + + col1 AS INTEGER ) AS col1 FROM tab0
----
0
0
0

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

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

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

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

query I rowsort
SELECT ALL - + 32 + 49 + col1 * + - 95 AS col2 FROM tab0 AS cor0
----
-1978
-7678
-78

query I rowsort
SELECT - - 59 FROM tab1 cor0
----
59
59
59

query I rowsort
SELECT DISTINCT + col0 + - - col2 + col1 FROM tab2 AS cor0
----
120
181
200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7288
SELECT - - COUNT( * ) * - - 40 + + - 92 DIV + SUM( ALL CAST( + 42 AS SIGNED ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
360

skipif mysql # not compatible
query I rowsort label-7288
SELECT - - COUNT ( * ) * - - 40 + + - 92 / + SUM ( ALL CAST ( + 42 AS INTEGER ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
360

query I rowsort
SELECT + 81 + + - col2 AS col2 FROM tab2
----
23
41
58

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 90 / + 31 >= - - ( - 37 ) * + - col0 - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 10 AS col1 FROM tab2 cor0
----
10
10
10

query I rowsort
SELECT col0 * - col0 + - 85 FROM tab1 AS cor0 WHERE NOT - col0 * + col1 * - 38 NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT DISTINCT + 60 * - - COUNT( * ) AS col1 FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-7295
SELECT DISTINCT + 60 * - - COUNT ( * ) AS col1 FROM tab1
----
180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7296
SELECT ALL + 66 DIV - COUNT( * ) AS col1 FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-7296
SELECT ALL + 66 / - COUNT ( * ) AS col1 FROM tab0
----
-22

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7299
SELECT DISTINCT 40 DIV + + 90 * - SUM( ALL + - col2 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7299
SELECT DISTINCT 40 / + + 90 * - SUM ( ALL + - col2 ) AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7300
SELECT DISTINCT + 77 + ( - COUNT( * ) ) * CAST( NULL AS SIGNED ) AS col0, 90 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
90

skipif mysql # not compatible
query II rowsort label-7300
SELECT DISTINCT + 77 + ( - COUNT ( * ) ) * CAST ( NULL AS INTEGER ) AS col0, 90 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
90

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7302
SELECT ALL col2 DIV - + 38 + + col2 + - + 58, col2 FROM tab1 AS cor0
----
0
59
36
96
9
68

skipif mysql # not compatible
query II rowsort label-7302
SELECT ALL col2 / - + 38 + + col2 + - + 58, col2 FROM tab1 AS cor0
----
0
59
36
96
9
68

query I rowsort
SELECT ALL + - col1 * - - col1 FROM tab1 AS cor0 WHERE col1 >= col2
----

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

query I rowsort
SELECT DISTINCT col1 * - 85 * 79 * + - 59 + - + 20 AS col2 FROM tab2 AS cor0
----
20205415
26544375
30506225

query I rowsort
SELECT + 59 * + - col0 FROM tab1
----
-3009
-5015
-5369

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT 53 * COUNT( * ) FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-7307
SELECT 53 * COUNT ( * ) FROM tab2
----
159

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

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

query I rowsort
SELECT + 51 AS col0 FROM tab0 WHERE ( col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT 13 - + 50 FROM tab0
----
-37

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

query I rowsort
SELECT 2 - col1 AS col1 FROM tab1
----
-12
-3
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-7313
SELECT ALL col0 - - + col1 DIV col1 AS col2 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-7313
SELECT ALL col0 - - + col1 / col1 AS col2 FROM tab2
----
47
65
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT ALL 81 * + MAX( DISTINCT + + col0 ) AS col0 FROM tab1
----
7371

skipif mysql # not compatible
query I rowsort label-7314
SELECT ALL 81 * + MAX ( DISTINCT + + col0 ) AS col0 FROM tab1
----
7371

query I rowsort
SELECT + col1 + - + ( + 16 ) + + col0 FROM tab0 AS cor0
----
80
82
92

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

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

query I rowsort
SELECT DISTINCT + 33 + col2 * 0 AS col0 FROM tab0 AS cor0
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7318
SELECT * FROM tab2 AS cor0 WHERE - 24 + - ( - - col2 ) BETWEEN NULL AND col0 * - + 1 / - 36 * CAST( - 63 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7318
SELECT * FROM tab2 AS cor0 WHERE - 24 + - ( - - col2 ) BETWEEN NULL AND col0 * - + 1 / - 36 * CAST ( - 63 AS REAL )
----

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

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

skipif mysql # not compatible
query I rowsort label-7320
SELECT - COUNT ( ( - - col1 ) ) AS col1 FROM tab1
----
-3

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

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

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

query I rowsort
SELECT DISTINCT + 32 * - + 17 FROM tab0 AS cor0
----
-544

query II rowsort
SELECT DISTINCT col2 AS col1, col2 * + col1 * + col1 - + - col2 FROM tab1 AS cor0
----
59
1534
68
150280
96
18912

query I rowsort
SELECT + - 43 * + - 1 FROM tab1 cor0
----
43
43
43

query I rowsort
SELECT + col1 * - col0 * + 18 FROM tab0 AS cor0
----
-1746
-21870
-32886

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

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

skipif mysql # not compatible
query I rowsort label-7328
SELECT + 88 * + - COUNT ( * ) FROM tab1 AS cor0
----
-264

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7330
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) AS col1, col2 DIV + col1 AS col2 FROM tab1
----
NULL
1
NULL
11
NULL
6

skipif mysql # not compatible
query II rowsort label-7330
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) AS col1, col2 / + col1 AS col2 FROM tab1
----
NULL
1
NULL
11
NULL
6

query I rowsort
SELECT ( + + col0 ) + + col1 FROM tab1
----
138
65
90

query I rowsort
SELECT DISTINCT col0 + + col0 * - ( 32 ) + + + ( + - 41 ) AS col0 FROM tab2 WHERE ( 52 - col2 ) >= 80
----

query I rowsort
SELECT + 33 * - col2 * col0 AS col1 FROM tab1 AS cor0
----
-161568
-165495
-204204

query I rowsort
SELECT - col2 * col1 * - 28 FROM tab1 AS cor0
----
37632
8260
89488

query I rowsort
SELECT DISTINCT 64 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
64

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7338
SELECT - - CAST( NULL AS SIGNED ) + + ( + - col1 ) * - - 6 - 20 / - 44 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7338
SELECT - - CAST ( NULL AS INTEGER ) + + ( + - col1 ) * - - 6 - 20 / - 44 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + + 70 + - 46 FROM tab2 AS cor0
----
24

query I rowsort
SELECT - col0 + + 84 AS col2 FROM tab2 AS cor0
----
20
38
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 15 col0 FROM tab0 AS cor0
----
1485
150
705

query I rowsort
SELECT - + 15 + - + col0 FROM tab2 AS cor0
----
-61
-79
-90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT ALL COUNT( * ) + - 89 FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-7346
SELECT ALL COUNT ( * ) + - 89 FROM tab1 AS cor0
----
-86

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

query I rowsort
SELECT 78 * + 39 + - + 26 AS col2 FROM tab0
----
3016
3016
3016

query I rowsort
SELECT ALL 36 * + - col1 FROM tab0
----
-2916
-36
-756

query I rowsort
SELECT 30 * 81 FROM tab1
----
2430
2430
2430

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

query I rowsort
SELECT ALL ( 50 ) * - - col1 FROM tab1
----
2350
250
700

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 col2, col0 * - col1 FROM tab2 cor0
----
-51
-2346
-67
-5025
-77
-4928

query II rowsort
SELECT ALL + col1, + col1 * col0 AS col2 FROM tab1 cor0
----
14
714
47
4277
5
425

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT ( + - MAX( DISTINCT - col2 ) ) * - 19 col2 FROM tab2
----
-437

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7356
SELECT ( + - MAX ( DISTINCT - col2 ) ) * - 19 col2 FROM tab2
----
-437

query I rowsort
SELECT DISTINCT + + col0 * + col0 - - + col1 * col2 AS col0 FROM tab2 AS cor0
----
3289
7176
9511

onlyif mysql # DIV for integer division: 
query II rowsort label-7358
SELECT ALL col1 DIV - + col1 AS col0, col0 + 1 AS col0 FROM tab2 cor0
----
-1
47
-1
65
-1
76

skipif mysql # not compatible
query II rowsort label-7358
SELECT ALL col1 / - + col1 AS col0, col0 + 1 AS col0 FROM tab2 cor0
----
-1
47
-1
65
-1
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT ALL + SUM( DISTINCT - col2 ) * 29 FROM tab1 AS cor0 WHERE NOT ( + 59 + - 26 + + + 64 BETWEEN NULL AND - col1 )
----
-6467

skipif mysql # not compatible
query I rowsort label-7359
SELECT ALL + SUM ( DISTINCT - col2 ) * 29 FROM tab1 AS cor0 WHERE NOT ( + 59 + - 26 + + + 64 BETWEEN NULL AND - col1 )
----
-6467

query I rowsort
SELECT - 10 AS col1 FROM tab0 AS cor0 WHERE NOT - 57 IS NOT NULL
----

query I rowsort
SELECT - 57 * + + col2 + - 45 AS col1 FROM tab2 AS cor0
----
-1356
-2325
-3351

query I rowsort
SELECT - 42 * col1 FROM tab2
----
-2142
-2814
-3234

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 < 98
----

query I rowsort
SELECT + 9 * - col0 FROM tab2
----
-414
-576
-675

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

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

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

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

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

query I rowsort
SELECT ALL - col2 + + + col1 * + 43 FROM tab2 AS cor0
----
2170
2823
3271

onlyif mysql # DIV for integer division: 
query I rowsort label-7369
SELECT DISTINCT + col2 DIV col2 + + 83 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-7369
SELECT DISTINCT + col2 / col2 + + 83 FROM tab0 AS cor0
----
84

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7371
SELECT col2 DIV + - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7371
SELECT col2 / + - col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT DISTINCT - COUNT( + 57 ) AS col1 FROM tab2 AS cor0 WHERE col0 < 25
----
0

skipif mysql # not compatible
query I rowsort label-7372
SELECT DISTINCT - COUNT ( + 57 ) AS col1 FROM tab2 AS cor0 WHERE col0 < 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT ALL + COUNT( * ) + + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL + COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT ALL + - COUNT( * ) - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL + - COUNT ( * ) - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT ALL + ( COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE NULL >= 13
----
0

skipif mysql # not compatible
query I rowsort label-7375
SELECT ALL + ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE NULL >= 13
----
0

query I rowsort
SELECT col1 * - col2 - + 69 + col0 FROM tab1
----
-1362
-279
-3174

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT 61 - - + COUNT( * ) FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-7377
SELECT 61 - - + COUNT ( * ) FROM tab2
----
64

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + col2 * col0 AND col1 + ( - + col0 ) AND NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 6 < + - 7
----

query III rowsort
SELECT * FROM tab1 WHERE - - col0 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7381
SELECT DISTINCT - col2 DIV + ( - 56 ) AS col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7381
SELECT DISTINCT - col2 / + ( - 56 ) AS col2 FROM tab2 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT ALL - MAX( - - 27 ) AS col2 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-7382
SELECT ALL - MAX ( - - 27 ) AS col2 FROM tab1 AS cor0
----
-27

query II rowsort
SELECT 60, col2 AS col0 FROM tab0 AS cor0
----
60
10
60
47
60
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7384
SELECT - - col2 DIV - + col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-7384
SELECT - - col2 / - + col0 FROM tab0 AS cor0
----
-1
-3
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7385
SELECT + col2 DIV + + col2 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7385
SELECT + col2 / + + col2 AS col1 FROM tab0
----
1
1
1

query I rowsort
SELECT col2 * - 20 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN + col1 + + 90 / + col2 * - col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + col2 - + col0 IS NOT NULL
----

query II rowsort
SELECT col2, ( + col2 ) * - col1 * - col1 FROM tab0 AS cor0
----
10
4410
47
308367
99
99

query II rowsort
SELECT - 58, + 4 AS col0 FROM tab1 AS cor0
----
-58
4
-58
4
-58
4

query II rowsort
SELECT - - 94 AS col2, col0 FROM tab2 AS cor0
----
94
46
94
64
94
75

query II rowsort
SELECT + - 27 AS col1, - 41 * - col1 * ( + - col1 ) AS col1 FROM tab2 AS cor0
----
-27
-106641
-27
-184049
-27
-243089

query II rowsort
SELECT ALL col1 AS col2, ( - - 76 ) AS col0 FROM tab1 AS cor0
----
14
76
47
76
5
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 35 col2, col1 + + col0 col0 FROM tab2 AS cor0
----
-35
141
-35
142
-35
97

query I rowsort
SELECT DISTINCT - ( + 64 ) AS col1 FROM tab0 AS cor0
----
-64

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < - col1 * + col0 + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7396
SELECT DISTINCT CAST( NULL AS DECIMAL ) / + CAST( - COUNT( * ) AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7396
SELECT DISTINCT CAST ( NULL AS REAL ) / + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( NOT + col2 * - col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT 95 + 9 AS col0 FROM tab2 AS cor0
----
104

query I rowsort
SELECT ALL - col1 + - ( + col0 ) FROM tab2 cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT + COUNT( ALL - col1 ) + - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7401
SELECT + COUNT ( ALL - col1 ) + - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT - - 29 + + COUNT( * ) FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-7402
SELECT - - 29 + + COUNT ( * ) FROM tab2 AS cor0
----
32

query II rowsort
SELECT + - col2 * + - col2 + - col0, col1 AS col0 FROM tab1 AS cor0
----
3396
5
4533
47
9165
14

onlyif mysql # DIV for integer division: 
query II rowsort label-7404
SELECT DISTINCT + col0 * - col0 + + - col0, - 34 - - - 97 DIV + col2 AS col0 FROM tab1 AS cor0 WHERE col0 DIV - 49 IS NOT NULL
----
-2652
-35
-7310
-35
-8372
-35

skipif mysql # not compatible
query II rowsort label-7404
SELECT DISTINCT + col0 * - col0 + + - col0, - 34 - - - 97 / + col2 AS col0 FROM tab1 AS cor0 WHERE col0 / - 49 IS NOT NULL
----
-2652
-35
-7310
-35
-8372
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-7405
SELECT - col1 + + - col0 + + - 45 - - col1 DIV - - ( + 62 ) + - + col0 FROM tab0 AS cor0
----
-155
-240
-240

skipif mysql # not compatible
query I rowsort label-7405
SELECT - col1 + + - col0 + + - 45 - - col1 / - - ( + 62 ) + - + col0 FROM tab0 AS cor0
----
-155
-240
-240

query I rowsort
SELECT - + col2 + - - col1 FROM tab2 cor0
----
28
37
9

query I rowsort
SELECT DISTINCT - - col1 + - + col2 + col1 FROM tab2 AS cor0
----
114
76
79

onlyif mysql # aggregate syntax: 
query II rowsort label-7408
SELECT MIN( ALL - - 66 ) AS col0, + ( + 21 ) AS col2 FROM tab2
----
66
21

skipif mysql # not compatible
query II rowsort label-7408
SELECT MIN ( ALL - - 66 ) AS col0, + ( + 21 ) AS col2 FROM tab2
----
66
21

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 WHERE NULL >= NULL
----

query I rowsort
SELECT - 30 * - + ( col1 ) * + 53 * + col0 * + col2 FROM tab1
----
108984960
39869250
462429240

onlyif mysql # DIV for integer division: 
query I rowsort label-7411
SELECT ALL ( col0 ) DIV + 76 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL ( col0 ) / + 76 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT + + SUM( DISTINCT - col0 ) AS col1 FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-7412
SELECT + + SUM ( DISTINCT - col0 ) AS col1 FROM tab2 cor0
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 col2 FROM tab2 cor0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7414
SELECT + col2 DIV + 42 AS col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7414
SELECT + col2 / + 42 AS col2 FROM tab0
----
0
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7415
SELECT ALL + - ( + CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7415
SELECT ALL + - ( + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7416
SELECT DISTINCT - col2 + col0 + - col2 + - 13 DIV - col0 * col1 FROM tab0 AS cor0
----
-101
-79
67

skipif mysql # not compatible
query I rowsort label-7416
SELECT DISTINCT - col2 + col0 + - col2 + - 13 / - col0 * col1 FROM tab0 AS cor0
----
-101
-79
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 AS cor0 WHERE NOT NULL <= + col0 / - col2
----

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE - 63 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT DISTINCT - + MAX( ALL + - col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-7419
SELECT DISTINCT - + MAX ( ALL + - col0 ) AS col2 FROM tab2 AS cor0
----
46

query I rowsort
SELECT ALL + + 46 + 78 AS col1 FROM tab0 AS cor0
----
124
124
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7421
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - col0 * + col1 * + col1 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7421
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - col0 * + col1 * + col1 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT - MIN( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7422
SELECT - MIN ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT + 82 * + MAX( DISTINCT + col2 ) FROM tab2
----
4756

skipif mysql # not compatible
query I rowsort label-7423
SELECT + 82 * + MAX ( DISTINCT + col2 ) FROM tab2
----
4756

query II rowsort
SELECT col1 AS col2, 96 * - + 74 AS col1 FROM tab2
----
51
-7104
67
-7104
77
-7104

onlyif mysql # DIV for integer division: 
query I rowsort label-7425
SELECT DISTINCT - 88 DIV - + 94 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7425
SELECT DISTINCT - 88 / - + 94 AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7426
SELECT col2 + + col0 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND col2 * - ( + 91 ) + + - col1
----

skipif mysql # not compatible
query I rowsort label-7426
SELECT col2 + + col0 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND col2 * - ( + 91 ) + + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT DISTINCT + COUNT( * ) + + ( + + COUNT( * ) ) - + 63 FROM tab2 WHERE NOT NULL IS NULL
----
-63

skipif mysql # not compatible
query I rowsort label-7427
SELECT DISTINCT + COUNT ( * ) + + ( + + COUNT ( * ) ) - + 63 FROM tab2 WHERE NOT NULL IS NULL
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7428
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST( - col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7428
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( - col0 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - - col1 + - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, 13 col0 FROM tab2 cor0
----
51
13
67
13
77
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT + 94 * + COUNT( + col2 ) + - + COUNT( * ) + MAX( ( + - col1 ) ) FROM tab0 AS cor0
----
278

skipif mysql # not compatible
query I rowsort label-7431
SELECT + 94 * + COUNT ( + col2 ) + - + COUNT ( * ) + MAX ( ( + - col1 ) ) FROM tab0 AS cor0
----
278

query I rowsort
SELECT + col2 + + + col2 * 10 AS col1 FROM tab1
----
1056
649
748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7433
SELECT + + col0 - + col2 * + col2 - col2 * + + CAST( NULL AS SIGNED ) + + 53 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7433
SELECT + + col0 - + col2 * + col2 - col2 * + + CAST ( NULL AS INTEGER ) + + 53 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - col0 AS col0 FROM tab2 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT - MAX( ALL 60 ) AS col1 FROM tab2 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-7435
SELECT - MAX ( ALL 60 ) AS col1 FROM tab2 cor0
----
-60

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 NOT BETWEEN NULL AND + col0 * + col0 - + - 15 / + 64
----

query II rowsort
SELECT ALL col2 AS col1, col1 FROM tab0
----
10
21
47
81
99
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT ( NULL ) NOT BETWEEN 9 AND - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT - MIN( ALL 47 ) AS col2 FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-7440
SELECT - MIN ( ALL 47 ) AS col2 FROM tab2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT + SUM( ALL + + ( 0 ) ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7441
SELECT + SUM ( ALL + + ( 0 ) ) FROM tab0 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 38 * col0 NOT BETWEEN ( - - col0 ) AND col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7443
SELECT DISTINCT + + COUNT( * ) DIV - ( - + COUNT( * ) ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7443
SELECT DISTINCT + + COUNT ( * ) / - ( - + COUNT ( * ) ) FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7444
SELECT DISTINCT + col1 DIV - 91 + + col1 AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7444
SELECT DISTINCT + col1 / - 91 + + col1 AS col1 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT col0 * + 26 + col1 * + col0 FROM tab0
----
1605
2619
4089

query III rowsort
SELECT ALL * FROM tab2 WHERE - 82 NOT IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 + 22 * col1 FROM tab1
----
1125
195
359

query I rowsort
SELECT DISTINCT - col1 * - 33 AS col0 FROM tab1 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT ( - col0 ) >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 22 NOT BETWEEN NULL AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT ( NULL ) <> 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT ALL SUM( ALL + 42 ) * 6 FROM tab2
----
756

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL SUM ( ALL + 42 ) * 6 FROM tab2
----
756

query I rowsort
SELECT DISTINCT col2 * 2 FROM tab2
----
116
46
80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) >= + 97
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7455
SELECT - CAST( NULL AS SIGNED ) * col0 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7455
SELECT - CAST ( NULL AS INTEGER ) * col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT + SUM( DISTINCT - ( col2 ) ) AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-7456
SELECT + SUM ( DISTINCT - ( col2 ) ) AS col1 FROM tab2
----
-121

query I rowsort
SELECT col1 + - ( ( + col1 ) ) FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE - 95 / 82 NOT BETWEEN + col2 AND NULL
----
46
64
75

query I rowsort
SELECT col2 + - 61 * col0 AS col2 FROM tab0
----
-5297
-5818
-868

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 ) IN ( - 14 )
----

query I rowsort
SELECT + ( 28 ) FROM tab1 WHERE NOT 80 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 + col0 * + col2 col2 FROM tab0
----
797
962
9695

query I rowsort
SELECT ALL + col1 * + col2 AS col1 FROM tab2 WHERE ( NULL ) IS NULL
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7464
SELECT - col2 * - CAST( + 20 * col2 AS SIGNED ) FROM tab1
----
184320
69620
92480

skipif mysql # not compatible
query I rowsort label-7464
SELECT - col2 * - CAST ( + 20 * col2 AS INTEGER ) FROM tab1
----
184320
69620
92480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7465
SELECT CAST( + col0 AS SIGNED ) * + col2 AS col1 FROM tab1 WHERE 48 / 53 IS NOT NULL
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-7465
SELECT CAST ( + col0 AS INTEGER ) * + col2 AS col1 FROM tab1 WHERE 48 / 53 IS NOT NULL
----
4896
5015
6188

query I rowsort
SELECT ( + col0 ) AS col0 FROM tab2 WHERE ( 49 / + 14 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT + MIN( ALL col2 ) + COUNT( * ) AS col0 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-7467
SELECT + MIN ( ALL col2 ) + COUNT ( * ) AS col0 FROM tab1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL > + 97 + + col2
----
0

skipif mysql # not compatible
query I rowsort label-7468
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL > + 97 + + col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7469
SELECT col1 + - col0 col1 FROM tab2 AS cor0 WHERE 69 NOT IN ( + col1 * CAST( NULL AS SIGNED ) + + col1 * - 61 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7469
SELECT col1 + - col0 col1 FROM tab2 AS cor0 WHERE 69 NOT IN ( + col1 * CAST ( NULL AS INTEGER ) + + col1 * - 61 )
----

query I rowsort
SELECT ALL col0 + - 75 AS col2 FROM tab1 AS cor0
----
-24
10
16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7471
SELECT * FROM tab0 WHERE + 78 * - 38 IN ( ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-7471
SELECT * FROM tab0 WHERE + 78 * - 38 IN ( ( CAST ( NULL AS INTEGER ) ) )
----

query IIIIII rowsort
SELECT ALL * FROM ( tab2 cor0 CROSS JOIN tab2 )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col0 + - 75 AS col2 FROM tab2 AS cor0 WHERE - ( 89 ) IS NULL
----

query I rowsort
SELECT + ( 20 ) + + col1 FROM tab2 AS cor0
----
71
87
97

query I rowsort
SELECT - 98 FROM tab0 AS cor0 WHERE NULL <> col0
----

query I rowsort
SELECT + - 25 + - col0 AS col2 FROM tab0 AS cor0
----
-112
-122
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-7478
SELECT + - col1 DIV 13 col2 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7478
SELECT + - col1 / 13 col2 FROM tab0 AS cor0
----
-1
-6
0

query I rowsort
SELECT DISTINCT + - col0 * 11 AS col0 FROM tab1 cor0
----
-1001
-561
-935

onlyif mysql # DIV for integer division: 
query I rowsort label-7480
SELECT ALL + col1 DIV 42 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-7480
SELECT ALL + col1 / 42 col1 FROM tab0 AS cor0
----
0
0
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 37 NOT BETWEEN NULL AND + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 NOT BETWEEN + col1 AND + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 20 ) IS NOT NULL
----

query I rowsort
SELECT col0 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7485
SELECT + col1 * 36 DIV col2 FROM tab2
----
41
69
79

skipif mysql # not compatible
query I rowsort label-7485
SELECT + col1 * 36 / col2 FROM tab2
----
41
69
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT + SUM( ALL + + col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-7486
SELECT + SUM ( ALL + + col2 ) FROM tab2
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 / + col0 + col1 col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN + col2 * col1 AND ( NULL ) OR NULL <> ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( 91 * 89 ) AND ( col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN NULL AND ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 38 ) BETWEEN NULL AND col0
----
15
81
47

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( + col2 BETWEEN NULL AND 38 )
----
15
97

query II rowsort
SELECT DISTINCT col1, - col0 AS col0 FROM tab0
----
1
-97
21
-87
81
-15

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 40 IS NOT NULL
----

query I rowsort
SELECT ALL 63 + col0 + - 99 + - col1 * - col1 AS col1 FROM tab0 AS cor0
----
492
62
6540

onlyif mysql # aggregate syntax: 
query II rowsort label-7495
SELECT DISTINCT - COUNT( * ), COUNT( * ) AS col0 FROM tab1 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-7495
SELECT DISTINCT - COUNT ( * ), COUNT ( * ) AS col0 FROM tab1 cor0
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7496
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / + + 94 + + ( + AVG ( DISTINCT - col1 ) ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7496
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / + + 94 + + ( + AVG ( DISTINCT - col1 ) ) AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7497
SELECT * FROM tab0 AS cor0 WHERE col2 IN ( - + CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7497
SELECT * FROM tab0 AS cor0 WHERE col2 IN ( - + CAST ( col2 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE ( 61 ) <= 73
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 + - col2 col2 FROM tab2 AS cor0
----
1035
2520
4292

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 75 col1 FROM tab1 AS cor0
----
75
75
75

query II rowsort
SELECT - 48, 43 AS col1 FROM tab2 AS cor0
----
-48
43
-48
43
-48
43

query I rowsort
SELECT - col1 * + + col1 AS col1 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( + col1 * - 90 + col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7503
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( + col1 * - 90 + col0 ) IS NULL
----
0

query I rowsort
SELECT ALL - - 3 + col0 FROM tab1 cor0
----
54
88
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT + 61 * - COUNT( * ) col2 FROM tab1
----
-183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7505
SELECT + 61 * - COUNT ( * ) col2 FROM tab1
----
-183

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 WHERE NOT NULL BETWEEN + col0 AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE ( + 49 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 72 * + - 10 AS col1 FROM tab2
----
-720
-720
-720

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 83 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7510
SELECT AVG ( ALL col2 ) AS col1 FROM tab0 WHERE NOT ( CAST( + 77 AS SIGNED ) ) * - 15 IS NULL AND ( + CAST( NULL AS DECIMAL ) ) IN ( - ( col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7510
SELECT AVG ( ALL col2 ) AS col1 FROM tab0 WHERE NOT ( CAST ( + 77 AS INTEGER ) ) * - 15 IS NULL AND ( + CAST ( NULL AS REAL ) ) IN ( - ( col2 ) )
----
NULL

query I rowsort
SELECT ALL - + ( 84 ) * col2 - - col2 * + col1 FROM tab2 cor0
----
-280
-759
-986

query I rowsort
SELECT DISTINCT - - col2 * - - col0 + 85 + - - 26 - col2 * ( - col2 * + 40 ) FROM tab0 AS cor0
----
401754
4981
89176

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7513
SELECT * FROM tab0 AS cor0 WHERE - col1 + col2 * + + CAST( + col1 AS SIGNED ) * col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7513
SELECT * FROM tab0 AS cor0 WHERE - col1 + col2 * + + CAST ( + col1 AS INTEGER ) * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT + + COUNT( * ) + + 73 col2 FROM tab2 AS cor0
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7514
SELECT + + COUNT ( * ) + + 73 col2 FROM tab2 AS cor0
----
76

onlyif mysql # DIV for integer division: 
query II rowsort label-7515
SELECT ALL - 55 AS col1, 29 DIV 99 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
18 values hashing to 4943f8cffba4746038a0e4c666eaec02

skipif mysql # not compatible
query II rowsort label-7515
SELECT ALL - 55 AS col1, 29 / 99 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
18 values hashing to 4943f8cffba4746038a0e4c666eaec02

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7516
SELECT DISTINCT + COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) - + 30 AS col1 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-7516
SELECT DISTINCT + COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) - + 30 AS col1 FROM tab0
----
-30

query II rowsort
SELECT ALL col2, - col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7518
SELECT DISTINCT ( + ( CAST( - col2 AS SIGNED ) ) ) AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7518
SELECT DISTINCT ( + ( CAST ( - col2 AS INTEGER ) ) ) AS col1 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT ALL MIN( DISTINCT - col1 ) * + 99 + - - 5 AS col2 FROM tab0
----
-8014

skipif mysql # not compatible
query I rowsort label-7519
SELECT ALL MIN ( DISTINCT - col1 ) * + 99 + - - 5 AS col2 FROM tab0
----
-8014

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7520
SELECT ALL + - COUNT( * ) * + 32 DIV - - 2, + 19 AS col0 FROM tab0 AS cor0
----
-48
19

skipif mysql # not compatible
query II rowsort label-7520
SELECT ALL + - COUNT ( * ) * + 32 / - - 2, + 19 AS col0 FROM tab0 AS cor0
----
-48
19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7522
SELECT AVG ( col2 ) * 18 / + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7522
SELECT AVG ( col2 ) * 18 / + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT - 58 * - + 65 AS col1 FROM tab0 AS cor0
----
3770
3770
3770

query II rowsort
SELECT col2, - col0 AS col1 FROM tab1
----
59
-85
68
-91
96
-51

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 NOT BETWEEN + col1 * col2 / - - col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 5 BETWEEN + col0 AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT SUM( - + col1 ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-7527
SELECT SUM ( - + col1 ) AS col1 FROM tab0
----
-103

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7528
SELECT - + AVG ( - CAST( NULL AS DECIMAL ) ) * + + 64 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7528
SELECT - + AVG ( - CAST ( NULL AS REAL ) ) * + + 64 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 + + 50 - - col0 AS col2 FROM tab2 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7530
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT ALL - ( + 70 ) * + COUNT( * ) + - + 90 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-720

skipif mysql # not compatible
query I rowsort label-7531
SELECT ALL - ( + 70 ) * + COUNT ( * ) + - + 90 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-720

onlyif mysql # aggregate syntax: 
query II rowsort label-7532
SELECT DISTINCT + 62 + + + 45, + SUM( + - 38 ) AS col2 FROM tab0
----
107
-114

skipif mysql # not compatible
query II rowsort label-7532
SELECT DISTINCT + 62 + + + 45, + SUM ( + - 38 ) AS col2 FROM tab0
----
107
-114

query I rowsort
SELECT DISTINCT + 5 + col0 + - col1 AS col0 FROM tab2
----
-8
0
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7534
SELECT + - COUNT( * ) DIV - + 17 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7534
SELECT + - COUNT ( * ) / - + 17 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE ( - 14 + + + 1 + - col1 + 30 + + 93 + - 21 / 64 * - ( - 50 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT ALL COUNT( * ) * - - 25 + + 4 AS col1 FROM tab1 AS cor0 WHERE - col1 <> - col0
----
79

skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL COUNT ( * ) * - - 25 + + 4 AS col1 FROM tab1 AS cor0 WHERE - col1 <> - col0
----
79

query I rowsort
SELECT - col2 FROM tab1 cor0 WHERE NULL IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7538
SELECT * FROM tab2 WHERE + + CAST( NULL AS DECIMAL ) < ( + 23 * - - col1 )
----

skipif mysql # not compatible
query III rowsort label-7538
SELECT * FROM tab2 WHERE + + CAST ( NULL AS REAL ) < ( + 23 * - - col1 )
----

query I rowsort
SELECT ALL col0 * col1 * col1 + + - 76 AS col1 FROM tab1
----
200943
2049
9920

query I rowsort
SELECT ALL col1 * 57 * - + ( 96 ) - + - col0 AS col2 FROM tab2
----
-279026
-366549
-421280

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col1 * - col1 + ( + 37 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 71 * - col0 AS col2 FROM tab1
----
-3621
-6035
-6461

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN + - col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - col1 + - col2 IS NULL
----

query I rowsort
SELECT ALL - ( ( 69 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT DISTINCT 11 * + + COUNT( * ) AS col2 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-7546
SELECT DISTINCT 11 * + + COUNT ( * ) AS col2 FROM tab0
----
33

query I rowsort
SELECT ALL 38 * + col1 AS col0 FROM tab2
----
1938
2546
2926

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 + + col0 + + ( col2 ) + + - col0 BETWEEN + ( col0 ) AND + + 63 * + col1
----
1
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7549
SELECT ALL + CAST( - MAX( + col1 ) AS SIGNED ) DIV 43 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL + CAST ( - MAX ( + col1 ) AS INTEGER ) / 43 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7550
SELECT DISTINCT + COUNT( DISTINCT - 28 ) col2, - 6 col2 FROM tab2 cor0
----
1
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7550
SELECT DISTINCT + COUNT ( DISTINCT - 28 ) col2, - 6 col2 FROM tab2 cor0
----
1
-6

query I rowsort
SELECT col2 * 23 AS col0 FROM tab1 cor0
----
1357
1564
2208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 50 * col0 col2 FROM tab0
----
-4350
-4850
-750

query I rowsort
SELECT ( - ( + 6 ) ) AS col2 FROM tab1
----
-6
-6
-6

query I rowsort
SELECT ALL col1 * - + col2 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-7555
SELECT ALL - col1 DIV - 81 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL - col1 / - 81 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT 52 + - ( - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT - MIN( DISTINCT 91 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-7557
SELECT - MIN ( DISTINCT 91 ) FROM tab1
----
-91

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7559
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * + CAST( NULL AS SIGNED ) BETWEEN NULL AND + col2
----

skipif mysql # not compatible
query III rowsort label-7559
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * + CAST ( NULL AS INTEGER ) BETWEEN NULL AND + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 78 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7561
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7561
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT col1 + - + col1 - + ( - - col0 ) NOT IN ( - col1 * col1 )
----

query I rowsort
SELECT - col0 + - 46 - + + 36 + + col0 * + col1 AS col1 FROM tab2 AS cor0
----
2218
4782
4868

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 NOT IN ( col0 * - - col0 + + col1 + - 54 / + - col2, col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7565
SELECT DISTINCT + MAX( ALL 98 ) DIV + COUNT( * ) FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-7565
SELECT DISTINCT + MAX ( ALL 98 ) / + COUNT ( * ) FROM tab2
----
32

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-7566
SELECT DISTINCT + col2 AS col1, + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) + - col2 AS col1, - - col0 DIV 85 FROM tab0 AS cor0
----
9 values hashing to 3a6bbf051c5f732a4f70401cc6f3a707

skipif mysql # not compatible
query III rowsort label-7566
SELECT DISTINCT + col2 AS col1, + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + - col2 AS col1, - - col0 / 85 FROM tab0 AS cor0
----
9 values hashing to 3a6bbf051c5f732a4f70401cc6f3a707

query I rowsort
SELECT ALL + col2 - - 91 AS col2 FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NULL
----
114
131
149

query I rowsort
SELECT ALL 37 * - col1 + 19 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> ( 2 )
----

query I rowsort
SELECT DISTINCT - col2 * + col2 + + col1 FROM tab2 cor0
----
-1523
-3297
-478

query I rowsort
SELECT ALL + col0 + - 82 - + col2 AS col1 FROM tab1 AS cor0
----
-127
-56
-59

query I rowsort
SELECT ALL + + col0 AS col2 FROM tab1 AS cor0 WHERE - col1 + + - 25 * ( + 99 ) + 31 > 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT ALL + COUNT( * ) + + - MAX( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL + COUNT ( * ) + + - MAX ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-7573
SELECT ALL - 49 - - col2 DIV col0 * + + col0 + - + col0 + col1 + + col0 AS col2 FROM tab0 AS cor0
----
-28
49
77

skipif mysql # not compatible
query I rowsort label-7573
SELECT ALL - 49 - - col2 / col0 * + + col0 + - + col0 + col1 + + col0 AS col2 FROM tab0 AS cor0
----
-28
49
77

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + 60 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT DISTINCT - COUNT( * ) - + - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7575
SELECT DISTINCT - COUNT ( * ) - + - COUNT ( * ) FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 - + 22 col1, 21 FROM tab1
----
-27
21
-36
21
-69
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT + SUM( DISTINCT col2 ) - - + SUM( DISTINCT + - col0 ) AS col0 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-7577
SELECT + SUM ( DISTINCT col2 ) - - + SUM ( DISTINCT + - col0 ) AS col0 FROM tab1
----
-4

query I rowsort
SELECT col1 - ( - + col1 ) AS col2 FROM tab0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT - COUNT( * ) - - 9 + + + COUNT( * ) col1 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7579
SELECT - COUNT ( * ) - - 9 + + + COUNT ( * ) col1 FROM tab1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 * - 73 - col2 col1 FROM tab0
----
-4609
-4646
-4698

query I rowsort
SELECT + col1 * col1 + 2 + - - col2 FROM tab1 AS cor0
----
2279
294
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7582
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - MIN( - 30 ) + + + 20 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7582
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - MIN ( - 30 ) + + + 20 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + col0 * + 24 FROM tab0 AS cor0
----
-2088
-2328
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT SUM( ALL + col1 ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-7584
SELECT SUM ( ALL + col1 ) FROM tab2 cor0
----
195

query I rowsort
SELECT DISTINCT col1 * - - 67 AS col1 FROM tab1
----
3149
335
938

query II rowsort
SELECT ALL - col1, + col2 * - 95 AS col1 FROM tab2
----
-51
-2185
-67
-5510
-77
-3800

query I rowsort
SELECT - 99 * col0 AS col1 FROM tab2 cor0
----
-4554
-6336
-7425

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT DISTINCT - - SUM( DISTINCT col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7588
SELECT DISTINCT - - SUM ( DISTINCT col1 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT ALL - col1 * - - 71 + col0 * + - col1 * col1 FROM tab1 AS cor0
----
-10990
-204356
-2480

onlyif mysql # aggregate syntax: 
query II rowsort label-7590
SELECT - - COUNT( * ) AS col2, 34 FROM tab1 cor0
----
3
34

skipif mysql # not compatible
query II rowsort label-7590
SELECT - - COUNT ( * ) AS col2, 34 FROM tab1 cor0
----
3
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7591
SELECT - + COUNT( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7591
SELECT - + COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 36 * - + col2 - + col2 * + - 52 col1, col1 AS col0 FROM tab2 AS cor0
----
368
51
640
77
928
67

query I rowsort
SELECT ALL + 82 * + col0 AS col0 FROM tab2 WHERE NOT - - col0 * + col1 IS NOT NULL
----

query I rowsort
SELECT col0 * + 39 AS col0 FROM tab0
----
3393
3783
585

onlyif mysql # DIV for integer division: 
query I rowsort label-7595
SELECT DISTINCT 26 DIV + col0 col0 FROM tab0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7595
SELECT DISTINCT 26 / + col0 col0 FROM tab0
----
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7596
SELECT DISTINCT + 78 * + 0 * COUNT( * ) DIV - 76 AS col1 FROM tab2 WHERE + 39 NOT BETWEEN - + col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7596
SELECT DISTINCT + 78 * + 0 * COUNT ( * ) / - 76 AS col1 FROM tab2 WHERE + 39 NOT BETWEEN - + col1 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7597
SELECT CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT col1 + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7597
SELECT CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT col1 + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 BETWEEN - - col2 + + col1 AND - col1
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT DISTINCT SUM( DISTINCT ( + 64 ) ) AS col1 FROM tab0, tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-7600
SELECT DISTINCT SUM ( DISTINCT ( + 64 ) ) AS col1 FROM tab0, tab2 AS cor0
----
64

query I rowsort
SELECT col2 - 84 + 99 AS col0 FROM tab0
----
114
25
62

query I rowsort
SELECT - 25 - - col0 + - ( - - 98 ) * 74 FROM tab2
----
-7202
-7213
-7231

query I rowsort
SELECT - 88 FROM tab0 WHERE col0 IS NOT NULL
----
-88
-88
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT + SUM( - 50 ) + - + MAX( + - col0 ) FROM tab0 cor0
----
-135

skipif mysql # not compatible
query I rowsort label-7604
SELECT + SUM ( - 50 ) + - + MAX ( + - col0 ) FROM tab0 cor0
----
-135

query I rowsort
SELECT ALL - col1 * 12 + + col2 AS col0 FROM tab0 AS cor0
----
-242
-925
87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + 77 AND + col1 * + 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT DISTINCT - + 21 + - MIN( DISTINCT + col1 ) AS col2 FROM tab2 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-7607
SELECT DISTINCT - + 21 + - MIN ( DISTINCT + col1 ) AS col2 FROM tab2 cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7608
SELECT DISTINCT + ( + col1 ) - - CAST( NULL AS SIGNED ) / - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7608
SELECT DISTINCT + ( + col1 ) - - CAST ( NULL AS INTEGER ) / - col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 + + 35 AS col2 FROM tab1 AS cor0
----
-12
21
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 90 - - - 56, 30 + + + col0 + + 70 col2 FROM tab0
----
-146
115
-146
187
-146
197

onlyif mysql # aggregate syntax: 
query II rowsort label-7611
SELECT COUNT( * ) AS col1, - 38 AS col1 FROM tab2
----
3
-38

skipif mysql # not compatible
query II rowsort label-7611
SELECT COUNT ( * ) AS col1, - 38 AS col1 FROM tab2
----
3
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT + ( COUNT( DISTINCT - col1 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7612
SELECT + ( COUNT ( DISTINCT - col1 ) ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 58 col2, - col0 AS col1 FROM tab2
----
58
-46
58
-64
58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT - ( ( - COUNT( * ) ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7614
SELECT - ( ( - COUNT ( * ) ) ) AS col0 FROM tab2
----
3

query I rowsort
SELECT - 26 * + + 85 FROM tab1 AS cor0
----
-2210
-2210
-2210

query I rowsort
SELECT ALL + - col0 * - + col2 AS col2 FROM tab0 cor0
----
705
870
9603

query I rowsort
SELECT - col2 * - ( col0 ) FROM tab1 AS cor0
----
4896
5015
6188

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 4 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT ALL - ( - SUM( DISTINCT - col1 ) ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL - ( - SUM ( DISTINCT - col1 ) ) FROM tab2
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 col0 FROM tab2 cor0
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 42 * + 64 col0, col2 FROM tab0 AS cor0
----
-2688
10
-2688
47
-2688
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7622
SELECT DISTINCT + - CAST( - col1 AS SIGNED ) / CAST( NULL AS SIGNED ) * + 85 AS col1 FROM tab0 AS cor0 WHERE + 2 >= - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-7622
SELECT DISTINCT + - CAST ( - col1 AS INTEGER ) / CAST ( NULL AS INTEGER ) * + 85 AS col1 FROM tab0 AS cor0 WHERE + 2 >= - 53
----
NULL

query I rowsort
SELECT - - col2 * - + col1 + - - 29 FROM tab1 AS cor0
----
-1315
-266
-3167

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT ALL - COUNT( col0 ) * + + COUNT( * ) * - 9 AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7624
SELECT ALL - COUNT ( col0 ) * + + COUNT ( * ) * - 9 AS col0 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT SUM( - - 6 ) AS col2 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-7625
SELECT SUM ( - - 6 ) AS col2 FROM tab0 AS cor0
----
18

query I rowsort
SELECT - 2 * - ( 60 ) * + - col2 + + 99 AS col2 FROM tab1
----
-11421
-6981
-8061

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT DISTINCT + COUNT( * ) * - 24 col0 FROM tab2
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7627
SELECT DISTINCT + COUNT ( * ) * - 24 col0 FROM tab2
----
-72

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE col2 + + 53 = + col0
----

query I rowsort
SELECT col0 * - col2 * - - ( + 75 ) - - col2 FROM tab1 WHERE - col0 + + col1 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 AS cor0 WHERE - col2 + + - 13 BETWEEN col1 AND - col0 + 31
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7631
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE ( col0 ) = NULL
----

skipif mysql # not compatible
query I rowsort label-7631
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE ( col0 ) = NULL
----

query I rowsort
SELECT - col1 + 39 FROM tab2 AS cor0
----
-12
-28
-38

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 NOT BETWEEN - col0 AND ( + + ( + 94 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7634
SELECT - - CAST( - 38 AS SIGNED ) * - - col1 + - + col2 * - 85 * - - 96 * - col0 AS col0 FROM tab1 AS cor0
----
-39951892
-40922590
-50495866

skipif mysql # not compatible
query I rowsort label-7634
SELECT - - CAST ( - 38 AS INTEGER ) * - - col1 + - + col2 * - 85 * - - 96 * - col0 AS col0 FROM tab1 AS cor0
----
-39951892
-40922590
-50495866

query I rowsort
SELECT DISTINCT + col2 * - 33 * - 8 - + col0 + col0 FROM tab2
----
10560
15312
6072

query I rowsort
SELECT - + 82 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE ( - + ( - + col1 ) ) / - ( + 31 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7638
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT 91 / - ( - ( + 65 ) ) + - + CAST( NULL AS SIGNED ) * - 43 * + + col2 + + - col1 <= ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-7638
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT 91 / - ( - ( + 65 ) ) + - + CAST ( NULL AS INTEGER ) * - 43 * + + col2 + + - col1 <= ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7639
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( + CAST( NULL AS SIGNED ), 83 )
----

skipif mysql # not compatible
query III rowsort label-7639
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( + CAST ( NULL AS INTEGER ), 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT ALL COUNT( * ) * + 13 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-7640
SELECT ALL COUNT ( * ) * + 13 FROM tab1 AS cor0
----
39

query I rowsort
SELECT - ( col1 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL 53 + + col1, col0 AS col1 FROM tab0 cor0
----
134
15
54
97
74
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7643
SELECT - COUNT( * ) - - 31 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7643
SELECT - COUNT ( * ) - - 31 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - 46 + col0 + - col2 FROM tab2 AS cor0
----
63
69
70

query I rowsort
SELECT ALL ( - col0 ) + - col2 FROM tab0 AS cor0
----
-196
-62
-97

query II rowsort
SELECT ALL col2 * - + 30 AS col0, 26 * + col0 * - col0 * - 54 FROM tab2 cor0 WHERE - 10 IS NOT NULL
----
-1200
5750784
-1740
7897500
-690
2970864

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 51 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 + 63 FROM tab2 AS cor0
----
103
121
86

query I rowsort
SELECT - col1 + 71 AS col1 FROM tab0
----
-10
50
70

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 WHERE NOT col0 IS NULL
----
-23
-40
-58

query I rowsort
SELECT ALL - ( 26 ) * - col2 * col0 AS col1 FROM tab2
----
113100
27508
66560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 col0 FROM tab1
----
10

query I rowsort
SELECT - ( 85 ) FROM tab0 AS cor0
----
-85
-85
-85

query I rowsort
SELECT + - 49 * - col0 * 49 - - 12 AS col0 FROM tab1 AS cor0
----
122463
204097
218503

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7655
SELECT col0 * 83 + + + col0 + - 54 + ( + col2 ) + - col0 * - + 45 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7655
SELECT col0 * 83 + + + col0 + - 54 + ( + col2 ) + - col0 * - + 45 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab1 WHERE NOT 79 IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT - 6 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7658
SELECT - col1 + - 45 + + + ( + + ( - - col0 ) ) + + col0 * + col0 * - - 38 col1 FROM tab2 WHERE NOT - col1 NOT BETWEEN - ( + col1 ) AND + col0 * - CAST( NULL AS SIGNED ) * + col2 + col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7658
SELECT - col1 + - 45 + + + ( + + ( - - col0 ) ) + + col0 * + col0 * - - 38 col1 FROM tab2 WHERE NOT - col1 NOT BETWEEN - ( + col1 ) AND + col0 * - CAST ( NULL AS INTEGER ) * + col2 + col1
----

query II rowsort
SELECT - 63 AS col1, 73 AS col2 FROM tab2 cor0
----
-63
73
-63
73
-63
73

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT col1 > col1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT MIN( ALL - 40 ) AS col2 FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-7661
SELECT MIN ( ALL - 40 ) AS col2 FROM tab0 AS cor0
----
-40

query II rowsort
SELECT ALL 99 AS col2, + col1 AS col2 FROM tab0 AS cor0
----
99
1
99
21
99
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7663
SELECT ALL + col1 + - + ( - CAST( 47 AS SIGNED ) ) + + + 87 AS col2 FROM tab2 AS cor0
----
185
201
211

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL + col1 + - + ( - CAST ( 47 AS INTEGER ) ) + + + 87 AS col2 FROM tab2 AS cor0
----
185
201
211

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT 53 * + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-7664
SELECT 53 * + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-159

query I rowsort
SELECT DISTINCT 51 + - 12 + col0 + col0 FROM tab0 AS cor0
----
213
233
69

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + 55
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7667
SELECT DISTINCT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) + + - 82 <= + col1
----

skipif mysql # not compatible
query III rowsort label-7667
SELECT DISTINCT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) + + - 82 <= + col1
----

query I rowsort
SELECT DISTINCT ( + ( col1 ) ) + 44 AS col0 FROM tab1
----
49
58
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col2 FROM tab2 WHERE NULL >= col2 + - ( col2 ) + - 67
----

query I rowsort
SELECT - col0 + + 58 * 60 AS col0 FROM tab0
----
3383
3393
3465

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7671
SELECT ALL * FROM tab0 WHERE NULL BETWEEN - - 24 + + - CAST( + - col2 AS SIGNED ) AND + + ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7671
SELECT ALL * FROM tab0 WHERE NULL BETWEEN - - 24 + + - CAST ( + - col2 AS INTEGER ) AND + + ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT - MIN( ALL + - 90 ) AS col2 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-7672
SELECT - MIN ( ALL + - 90 ) AS col2 FROM tab1 AS cor0
----
90

query I rowsort
SELECT ALL col2 * + 0 FROM tab2 WHERE NOT - - col0 + + + ( + col2 ) * col1 IS NULL
----
0
0
0

query I rowsort
SELECT DISTINCT - 79 AS col0 FROM tab1 WHERE NOT + + 9 IS NULL
----
-79

query I rowsort
SELECT + 35 + col2 FROM tab0 cor0
----
134
45
82

query I rowsort
SELECT DISTINCT + + col0 * + + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 + + + col1 col2 FROM tab2 AS cor0
----
107
117
91

query I rowsort
SELECT + ( + col2 ) AS col2 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7680
SELECT + 46, - 77 * + SUM( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
46
NULL

skipif mysql # not compatible
query II rowsort label-7680
SELECT + 46, - 77 * + SUM ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
46
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 * - col0 )
----

query I rowsort
SELECT ALL + + 59 AS col2 FROM tab1 cor0
----
59
59
59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col2 ) <= + col2 - 95
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT DISTINCT - SUM( - 10 ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-7684
SELECT DISTINCT - SUM ( - 10 ) FROM tab0 AS cor0
----
30

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( + 48 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7686
SELECT DISTINCT - ( col1 ) * + col0 + CAST( NULL AS DECIMAL ) * ( - col2 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7686
SELECT DISTINCT - ( col1 ) * + col0 + CAST ( NULL AS REAL ) * ( - col2 ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT ALL + COUNT( * ) col1 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7687
SELECT ALL + COUNT ( * ) col1 FROM tab1 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT MIN( - + col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-7688
SELECT MIN ( - + col0 ) FROM tab1
----
-91

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 57 AND col0 + + + col1 + + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT + COUNT( * ) * + COUNT( * ) * ( + MAX( DISTINCT + col2 ) ) AS col2 FROM tab0 AS cor0
----
891

skipif mysql # not compatible
query I rowsort label-7690
SELECT + COUNT ( * ) * + COUNT ( * ) * ( + MAX ( DISTINCT + col2 ) ) AS col2 FROM tab0 AS cor0
----
891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7691
SELECT ALL - COUNT( * ) col1 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) * + + col2 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7691
SELECT ALL - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * + + col2 IS NULL
----
-3

query I rowsort
SELECT + ( + + ( - col1 ) ) AS col0 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 + - 81 IN ( 32, col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7694
SELECT + ( CAST( NULL AS SIGNED ) ) * + col2 + - - 61 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7694
SELECT + ( CAST ( NULL AS INTEGER ) ) * + col2 + - - 61 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7695
SELECT DISTINCT + + CAST( - COUNT( - ( - CAST( NULL AS SIGNED ) ) ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7695
SELECT DISTINCT + + CAST ( - COUNT ( - ( - CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7696
SELECT + 67 DIV 28 - + - 35 * - 90 FROM tab2 AS cor0 WHERE NOT 67 + - col0 IS NULL
----
-3148
-3148
-3148

skipif mysql # not compatible
query I rowsort label-7696
SELECT + 67 / 28 - + - 35 * - 90 FROM tab2 AS cor0 WHERE NOT 67 + - col0 IS NULL
----
-3148
-3148
-3148

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= - col1 / - 49
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7698
SELECT DISTINCT - + ( + col1 ) + - CAST( - - ( - col2 ) AS SIGNED ), + col2 + - 85 AS col0 FROM tab0 AS cor0
----
-11
-75
-34
-38
98
14

skipif mysql # not compatible
query II rowsort label-7698
SELECT DISTINCT - + ( + col1 ) + - CAST ( - - ( - col2 ) AS INTEGER ), + col2 + - 85 AS col0 FROM tab0 AS cor0
----
-11
-75
-34
-38
98
14

query I rowsort
SELECT ALL col2 + - 87 FROM tab0 AS cor0
----
-40
-77
12

query I rowsort
SELECT DISTINCT - + col0 + - col1 AS col2 FROM tab0 cor0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT - SUM( ALL - - col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-7701
SELECT - SUM ( ALL - - col1 ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT ALL + col0 * col0 FROM tab1 WHERE NOT ( NULL ) <> 28
----

query II rowsort
SELECT - 77, + col0 AS col2 FROM tab2
----
-77
46
-77
64
-77
75

query II rowsort
SELECT col1 AS col2, col1 + - - col0 AS col0 FROM tab0
----
1
98
21
108
81
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, col0 FROM tab1
----
51
51
85
85
91
91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * - - ( + 54 ) / col2 / col0 / col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 85 * 56 AS col1 FROM tab2
----
-4760

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col1 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7710
SELECT ALL + + 2 * + col2 - col0 + - col1 + - + CAST( col0 AS SIGNED ) + - - ( - col2 ) AS col2 FROM tab2 AS cor0
----
-120
-159
-165

skipif mysql # not compatible
query I rowsort label-7710
SELECT ALL + + 2 * + col2 - col0 + - col1 + - + CAST ( col0 AS INTEGER ) + - - ( - col2 ) AS col2 FROM tab2 AS cor0
----
-120
-159
-165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7711
SELECT + col1 + + col2 * CAST( ( + col2 ) AS SIGNED ) FROM tab0 AS cor0
----
121
2290
9802

skipif mysql # not compatible
query I rowsort label-7711
SELECT + col1 + + col2 * CAST ( ( + col2 ) AS INTEGER ) FROM tab0 AS cor0
----
121
2290
9802

query I rowsort
SELECT ALL - - col2 + col0 * col1 + col1 AS col1 FROM tab2 AS cor0
----
2420
5045
5150

onlyif mysql # DIV for integer division: 
query I rowsort label-7713
SELECT - + 59 * + 90 + + 43 DIV - 1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f0c1592579ad9780ce86f0a3c5063881

skipif mysql # not compatible
query I rowsort label-7713
SELECT - + 59 * + 90 + + 43 / - 1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f0c1592579ad9780ce86f0a3c5063881

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( + col2 ) * + - 83 = + col0
----

query I rowsort
SELECT + 70 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + col1 col0 FROM tab1 AS cor0
----
196
2209
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 38 col1 FROM tab0 AS cor0
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT DISTINCT + - SUM( ALL - - col1 ) AS col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-7718
SELECT DISTINCT + - SUM ( ALL - - col1 ) AS col2 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT DISTINCT - col2 * + 6 FROM tab0
----
-282
-594
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-7720
SELECT col1 DIV - col1 col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7720
SELECT col1 / - col1 col2 FROM tab0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - + ( + 31 ) * - 47 - - 26 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT - SUM( DISTINCT - + 49 ) FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-7722
SELECT - SUM ( DISTINCT - + 49 ) FROM tab0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7723
SELECT ALL col2 AS col0, + col0 + - 58 + - ( col2 ) * + col1 * - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-7723
SELECT ALL col2 AS col0, + col0 + - 58 + - ( col2 ) * + col1 * - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

query II rowsort
SELECT col0 * - col0 * - - col1 AS col0, - 24 FROM tab2 AS cor0
----
-107916
-24
-315392
-24
-376875
-24

query II rowsort
SELECT DISTINCT + 59 AS col2, + 77 FROM tab2 AS cor0
----
59
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT ALL MIN( DISTINCT - - ( + col2 ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-7726
SELECT ALL MIN ( DISTINCT - - ( + col2 ) ) FROM tab1
----
59

query I rowsort
SELECT DISTINCT - col2 * + col2 + - 34 * 36 AS col1 FROM tab2 AS cor0
----
-1753
-2824
-4588

query II rowsort
SELECT DISTINCT - 46 + - + 59, col0 FROM tab2 AS cor0
----
-105
46
-105
64
-105
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7729
SELECT + col1 DIV - CAST( - col1 AS SIGNED ) + - col1 AS col1 FROM tab1 AS cor0
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-7729
SELECT + col1 / - CAST ( - col1 AS INTEGER ) + - col1 AS col1 FROM tab1 AS cor0
----
-13
-4
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab1 WHERE + 81 * - - 91 * - col1 * + 35 NOT BETWEEN ( - + col1 ) AND - + 93 + + - col1
----
-14
-47
-5

query II rowsort
SELECT ( - col0 ) * - 30 - col0 + col2, + col1 FROM tab2
----
1357
51
1896
77
2233
67

query I rowsort
SELECT 96 * - - col1 AS col1 FROM tab0
----
2016
7776
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 > ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE - col1 = ( - col2 + - + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - 32 + - 24 + - col2 AND NULL
----

query II rowsort
SELECT - 39, + 57 AS col2 FROM tab1
----
-39
57
-39
57
-39
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7737
SELECT DISTINCT + CAST( - - COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7737
SELECT DISTINCT + CAST ( - - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT DISTINCT ( + COUNT( * ) ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7738
SELECT DISTINCT ( + COUNT ( * ) ) AS col2 FROM tab1 cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 41
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7740
SELECT ALL - 18 * - col2 * - + ( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL - 18 * - col2 * - + ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7741
SELECT - COUNT( * ) DIV + + SUM( ALL - col2 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7741
SELECT - COUNT ( * ) / + + SUM ( ALL - col2 ) AS col0 FROM tab1
----
0

query II rowsort
SELECT ALL col0 * + - col0 AS col0, + 45 FROM tab1
----
-2601
45
-7225
45
-8281
45

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 / - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > - 48
----

query II rowsort
SELECT DISTINCT + 9 + col0, col2 FROM tab2 AS cor0
----
55
23
73
40
84
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT + ( + COUNT( * ) ) * ( 37 ) + - + COUNT( - - col1 ) FROM tab1 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-7746
SELECT + ( + COUNT ( * ) ) * ( 37 ) + - + COUNT ( - - col1 ) FROM tab1 AS cor0
----
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * - 10 col2, - 34 AS col0 FROM tab0 AS cor0
----
-10
-34
-210
-34
-810
-34

query I rowsort
SELECT col0 + - 7 FROM tab0
----
8
80
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7749
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - 35 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7749
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 35 AS col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7750
SELECT ALL col0 DIV - + 65 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL col0 / - + 65 FROM tab1
----
-1
-1
0

query I rowsort
SELECT DISTINCT 67 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT - - COUNT( * ) * 49 * 13 FROM tab0 AS cor0
----
1911

skipif mysql # not compatible
query I rowsort label-7752
SELECT - - COUNT ( * ) * 49 * 13 FROM tab0 AS cor0
----
1911

query I rowsort
SELECT DISTINCT + 55 + + 58 AS col2 FROM tab2 AS cor0
----
113

query I rowsort
SELECT ALL col0 + + + 26 FROM tab1 AS cor0
----
111
117
77

query I rowsort
SELECT DISTINCT - col2 * + col1 - - + 95 AS col0 FROM tab0
----
-115
-3712
-4

query I rowsort
SELECT ALL - ( - - col1 ) + + 97 FROM tab0
----
16
76
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 11 col1 FROM tab2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT ALL 3 - + - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7758
SELECT ALL 3 - + - COUNT ( * ) FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT COUNT( DISTINCT + col1 ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7759
SELECT COUNT ( DISTINCT + col1 ) FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT + 20 + - MIN( - 97 ) FROM tab2 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-7760
SELECT + 20 + - MIN ( - 97 ) FROM tab2 AS cor0
----
117

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT ALL MIN( DISTINCT 87 ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-7762
SELECT ALL MIN ( DISTINCT 87 ) FROM tab2
----
87

query I rowsort
SELECT + col0 * 92 AS col1 FROM tab1 AS cor0
----
4692
7820
8372

query I rowsort
SELECT + ( + 55 ) AS col2 FROM tab0 AS cor0
----
55
55
55

query II rowsort
SELECT DISTINCT - 13, - col0 AS col2 FROM tab2 AS cor0
----
-13
-46
-13
-64
-13
-75

query I rowsort
SELECT ( - 82 ) AS col0 FROM tab0 AS cor0
----
-82
-82
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-7767
SELECT + 59 DIV - col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7767
SELECT + 59 / - col1 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT DISTINCT - COUNT( * ) * 68 AS col0 FROM tab0 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-7768
SELECT DISTINCT - COUNT ( * ) * 68 AS col0 FROM tab0 AS cor0
----
-204

query I rowsort
SELECT + + 92 FROM tab0 WHERE NOT - col1 / + col1 BETWEEN NULL AND + + col2 + 55
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col0, 44 * - col2 + 80 AS col0 FROM tab2
----
23
-932
40
-1680
58
-2472

query I rowsort
SELECT 43 * col0 + + + col0 AS col2 FROM tab2
----
2024
2816
3300

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7772
SELECT * FROM tab1 WHERE NOT 9 >= - - 95 + CAST( + 93 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7772
SELECT * FROM tab1 WHERE NOT 9 >= - - 95 + CAST ( + 93 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= col2
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE NULL NOT IN ( + + ( 60 ), col1, + ( + col2 ) * 42 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT - - SUM( + col0 ) * + COUNT( + 14 ) + + + 54 AS col0 FROM tab1 WHERE NOT + - col0 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7775
SELECT - - SUM ( + col0 ) * + COUNT ( + 14 ) + + + 54 AS col0 FROM tab1 WHERE NOT + - col0 <= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7776
SELECT + col2 * + - 95 + - col0 * - - col0 + + 20 + + CAST( NULL AS SIGNED ) AS col0, + col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-7776
SELECT + col2 * + - 95 + - col0 * - - col0 + + 20 + + CAST ( NULL AS INTEGER ) AS col0, + col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT DISTINCT col2 * + col0 + - - col2 - - - col1 AS col0 FROM tab0 AS cor0
----
671
859
9701

query I rowsort
SELECT ALL - col1 + 53 - - - 56 FROM tab0 AS cor0
----
-24
-4
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT ALL SUM( DISTINCT col0 ) col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7779
SELECT ALL SUM ( DISTINCT col0 ) col0 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT DISTINCT - COUNT( * ) * + 39 col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7780
SELECT DISTINCT - COUNT ( * ) * + 39 col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT ALL 41 * - col0 * col2 FROM tab0
----
-28905
-35670
-393723

query II rowsort
SELECT - col0 + + - col2 AS col1, col2 AS col1 FROM tab1
----
-144
59
-147
96
-159
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7783
SELECT + ( + 81 ) DIV col2 + 53 * col0 AS col1 FROM tab1 AS cor0
----
2703
4506
4824

skipif mysql # not compatible
query I rowsort label-7783
SELECT + ( + 81 ) / col2 + 53 * col0 AS col1 FROM tab1 AS cor0
----
2703
4506
4824

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7784
SELECT 3 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7784
SELECT 3 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 91 FROM tab1 AS cor0 WHERE - col2 BETWEEN + + ( - col0 ) AND NULL
----

query I rowsort
SELECT - - col2 + - 12 AS col2 FROM tab1 cor0
----
47
56
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT ALL COUNT( * ) + - + 77 AS col1 FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-7787
SELECT ALL COUNT ( * ) + - + 77 AS col1 FROM tab2
----
-74

query I rowsort
SELECT ALL + col1 - + 34 AS col0 FROM tab1
----
-20
-29
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT - MAX( - 81 ) * - + 62 FROM tab2
----
-5022

skipif mysql # not compatible
query I rowsort label-7789
SELECT - MAX ( - 81 ) * - + 62 FROM tab2
----
-5022

query I rowsort
SELECT DISTINCT - 24 + + col2 + + col1 * - 85 FROM tab1 WHERE 32 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( - - 79 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NULL < + 41
----

query I rowsort
SELECT + 33 * - col2 AS col0 FROM tab1
----
-1947
-2244
-3168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7794
SELECT + CAST( - - col2 AS SIGNED ) * + - col1 + + col2 - + + col2 col1 FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7794
SELECT + CAST ( - - col2 AS INTEGER ) * + - col1 + + col2 - + + col2 col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT - COUNT( * ) * 74 FROM tab2
----
-222

skipif mysql # not compatible
query I rowsort label-7795
SELECT - COUNT ( * ) * 74 FROM tab2
----
-222

query I rowsort
SELECT ALL + 80 - - 20 * 60 FROM tab2
----
1280
1280
1280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7797
SELECT ALL - SUM( DISTINCT + col1 ) DIV 95 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7797
SELECT ALL - SUM ( DISTINCT + col1 ) / 95 AS col0 FROM tab1
----
0

query I rowsort
SELECT 46 - 9 + + + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-2309
-4891
-4988

onlyif mysql # DIV for integer division: 
query II rowsort label-7799
SELECT + - 32 - + - 22 DIV + + 65, col0 FROM tab0 cor0
----
-32
15
-32
87
-32
97

skipif mysql # not compatible
query II rowsort label-7799
SELECT + - 32 - + - 22 / + + 65, col0 FROM tab0 cor0
----
-32
15
-32
87
-32
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT DISTINCT + MIN( - - col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7800
SELECT DISTINCT + MIN ( - - col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-7801
SELECT DISTINCT COUNT( * ), MAX( - + 24 ) AS col1 FROM tab1 AS cor0
----
3
-24

skipif mysql # not compatible
query II rowsort label-7801
SELECT DISTINCT COUNT ( * ), MAX ( - + 24 ) AS col1 FROM tab1 AS cor0
----
3
-24

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE - col1 + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 80 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
80

query I rowsort
SELECT col1 * + 79 FROM tab0
----
1659
6399
79

query I rowsort
SELECT ALL 84 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7806
SELECT CAST( NULL AS SIGNED ) + + 1, + col0 * - ( + - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT + col1 >= ( NULL )
----

skipif mysql # not compatible
query II rowsort label-7806
SELECT CAST ( NULL AS INTEGER ) + + 1, + col0 * - ( + - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT + col1 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT ALL - MAX( + col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL - MAX ( + col0 ) AS col2 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT ALL + col2 * col0 FROM tab1 AS cor0 WHERE col1 NOT BETWEEN + col1 AND - + ( - col1 ) * - col2 + + + col2 + - 49 / - col2
----
4896
5015
6188

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7809
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT col2 <> NULL
----

skipif mysql # not compatible
query I rowsort label-7809
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NOT col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7810
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT + 95 * ( - 50 ) FROM tab2 cor0
----
-4750

query II rowsort
SELECT ( + col1 ) * + 8 AS col1, - col2 * + + 81 AS col2 FROM tab1
----
112
-7776
376
-5508
40
-4779

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT ALL ( - MIN( DISTINCT - 43 ) ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-7813
SELECT ALL ( - MIN ( DISTINCT - 43 ) ) FROM tab2
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7814
SELECT - ( - COUNT( * ) ) DIV COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7814
SELECT - ( - COUNT ( * ) ) / COUNT ( * ) FROM tab1
----
1

query I rowsort
SELECT ALL + + col0 * + col2 * - col1 AS col2 FROM tab0 cor0
----
-18270
-57105
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT DISTINCT 68 * COUNT( * ) + 60 + 58 FROM tab1 AS cor0
----
322

skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT 68 * COUNT ( * ) + 60 + 58 FROM tab1 AS cor0
----
322

query I rowsort
SELECT ALL - col0 + + col2 * col2 AS col0 FROM tab0 AS cor0
----
13
2194
9704

query I rowsort
SELECT DISTINCT + ( - - col1 ) + - 6 AS col0 FROM tab1 AS cor0
----
-1
41
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT + COUNT( * ) + + SUM( DISTINCT - + ( + col1 ) ) FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-7819
SELECT + COUNT ( * ) + + SUM ( DISTINCT - + ( + col1 ) ) FROM tab2
----
-192

query II rowsort
SELECT DISTINCT + 9 AS col0, - 70 FROM tab1
----
9
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-7821
SELECT col0 + - col1 + 28 DIV + - col1 FROM tab1
----
35
44
75

skipif mysql # not compatible
query I rowsort label-7821
SELECT col0 + - col1 + 28 / + - col1 FROM tab1
----
35
44
75

onlyif mysql # aggregate syntax: 
query II rowsort label-7822
SELECT - 33 AS col1, COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----
-33
0

skipif mysql # not compatible
query II rowsort label-7822
SELECT - 33 AS col1, COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----
-33
0

query I rowsort
SELECT - + 10 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - 21 + 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT - MAX( + - ( 21 ) ) AS col0 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-7825
SELECT - MAX ( + - ( 21 ) ) AS col0 FROM tab0 AS cor0
----
21

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE col0 * + 10 IS NOT NULL
----
46
64
75

query II rowsort
SELECT - + col1 AS col0, - 85 * - 40 AS col0 FROM tab0 AS cor0
----
-1
3400
-21
3400
-81
3400

query I rowsort
SELECT + col0 - - - col1 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT ALL - 36 + - - 97 FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT - 33 * + 12 - col0 AS col0 FROM tab0 AS cor0
----
-411
-483
-493

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT DISTINCT + COUNT( * ) + - MAX( col0 ) AS col2 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-7831
SELECT DISTINCT + COUNT ( * ) + - MAX ( col0 ) AS col2 FROM tab0 AS cor0
----
-94

query I rowsort
SELECT + - 46 - - col2 AS col1 FROM tab2 cor0
----
-23
-6
12

query I rowsort
SELECT ALL ( + + col2 ) - - col2 + + col1 FROM tab0
----
175
199
41

onlyif mysql # DIV for integer division: 
query I rowsort label-7834
SELECT ALL + 80 DIV + col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL + 80 / + col0 FROM tab0
----
0
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT ALL - ( + ( + COUNT( * ) ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7835
SELECT ALL - ( + ( + COUNT ( * ) ) ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 64 < + col2 / + ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col1 * - col1 * + - col2 AS col1 FROM tab2 cor0
----
237160
260362
59823

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT + MIN( DISTINCT + col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7838
SELECT + MIN ( DISTINCT + col1 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT + COUNT( * ) * 3 col0 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7839
SELECT + COUNT ( * ) * 3 col0 FROM tab0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7840
SELECT ALL col1 DIV - col2 col0 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7840
SELECT ALL col1 / - col2 col0 FROM tab0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT - - MAX( - - 4 ) FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-7841
SELECT - - MAX ( - - 4 ) FROM tab2 AS cor0
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7842
SELECT ALL CAST( NULL AS DECIMAL ) + col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL CAST ( NULL AS REAL ) + col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 * - 42 * - - 35 col1 FROM tab2 AS cor0
----
-107310

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7844
SELECT col2 + col0 AS col0, CAST( NULL AS SIGNED ) FROM tab2
----
104
NULL
133
NULL
69
NULL

skipif mysql # not compatible
query II rowsort label-7844
SELECT col2 + col0 AS col0, CAST ( NULL AS INTEGER ) FROM tab2
----
104
NULL
133
NULL
69
NULL

query III rowsort
SELECT * FROM tab2 WHERE 67 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7846
SELECT + ( - 4 ) * + 75 + col2 + - col1 * col2 DIV - + col1 + + - col1 FROM tab2
----
-251
-297
-305

skipif mysql # not compatible
query I rowsort label-7846
SELECT + ( - 4 ) * + 75 + col2 + - col1 * col2 / - + col1 + + - col1 FROM tab2
----
-251
-297
-305

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7847
SELECT * FROM tab0 WHERE - CAST( NULL AS SIGNED ) + 53 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7847
SELECT * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) + 53 IS NOT NULL
----

query II rowsort
SELECT col0, + ( 75 ) * - - col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + ( + - col2 ) FROM tab0 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL + 90 + - col2 AS col2 FROM tab0
----
-9
43
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 * - + 66 col1 FROM tab2 AS cor0
----
2772

query I rowsort
SELECT 58 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7853
SELECT DISTINCT + col2 * - col0 * CAST( - col2 AS SIGNED ) * col0 + + - col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7853
SELECT DISTINCT + col2 * - col0 * CAST ( - col2 AS INTEGER ) * col0 + + - col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col2 * - col2 + - 94 FROM tab2 AS cor0
----
1506
3270
435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7855
SELECT ALL - 83 + - + CAST( NULL AS SIGNED ) + + 49 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7855
SELECT ALL - 83 + - + CAST ( NULL AS INTEGER ) + + 49 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 * - + col2 + + col1 + + col0 FROM tab0 AS cor0
----
197
318
3903

query I rowsort
SELECT ALL col2 - - 46 FROM tab1 cor0
----
105
114
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7858
SELECT DISTINCT + 21 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE + col2 + + 94 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7858
SELECT DISTINCT + 21 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE + col2 + + 94 IS NOT NULL
----
NULL

query I rowsort
SELECT col1 * - 47 * + col1 AS col2 FROM tab2
----
-122247
-210983
-278663

query I rowsort
SELECT col0 * ( + ( - col1 ) ) AS col1 FROM tab2
----
-2346
-4928
-5025

query III rowsort
SELECT ALL * FROM tab1 WHERE - + ( + - 76 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + 96, col0 AS col1 FROM tab1
----
96
51
96
85
96
91

query I rowsort
SELECT DISTINCT - 84 * + col2 AS col0 FROM tab1
----
-4956
-5712
-8064

query II rowsort
SELECT DISTINCT + 73, col2 FROM tab0
----
73
10
73
47
73
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7865
SELECT CAST( - 17 AS SIGNED ) AS col0 FROM tab1 cor0
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-7865
SELECT CAST ( - 17 AS INTEGER ) AS col0 FROM tab1 cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT ALL + MAX( DISTINCT + col0 ) col2 FROM tab2 AS cor0 WHERE + col0 * + col1 >= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7866
SELECT ALL + MAX ( DISTINCT + col0 ) col2 FROM tab2 AS cor0 WHERE + col0 * + col1 >= NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT col0 / col1 * + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 88 + - + ( - 42 ) AS col1 FROM tab2 AS cor0
----
130
130
130

query II rowsort
SELECT col0, ( + 53 ) FROM tab0
----
15
53
87
53
97
53

query I rowsort
SELECT + col1 * ( + ( + + col0 ) ) FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7871
SELECT DISTINCT CAST( AVG ( ALL - 97 ) AS SIGNED ) FROM tab2
----
-97

skipif mysql # not compatible
query I rowsort label-7871
SELECT DISTINCT CAST ( AVG ( ALL - 97 ) AS INTEGER ) FROM tab2
----
-97

query I rowsort
SELECT ALL - - 15 FROM tab2 WHERE NOT 10 * - + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7873
SELECT 38 DIV + + ( - col0 ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7873
SELECT 38 / + + ( - col0 ) AS col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7874
SELECT DISTINCT - 51 DIV + + col2 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-7874
SELECT DISTINCT - 51 / + + col2 FROM tab0
----
-1
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT - + COUNT( * ) + + - 8 AS col2 FROM tab2 cor0
----
-11

skipif mysql # not compatible
query I rowsort label-7875
SELECT - + COUNT ( * ) + + - 8 AS col2 FROM tab2 cor0
----
-11

query I rowsort
SELECT + - col2 + - col0 + - - col1 * 12 AS col2 FROM tab0 AS cor0
----
-184
155
910

onlyif mysql # DIV for integer division: 
query II rowsort label-7877
SELECT ( - col1 ) + + col2, - col2 DIV + col1 * col1 + + 87 DIV 70 * col1 col2 FROM tab2 AS cor0
----
-28
51
-37
77
-9
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7877
SELECT ( - col1 ) + + col2, - col2 / + col1 * col1 + + 87 / 70 * col1 col2 FROM tab2 AS cor0
----
-28
51
-37
77
-9
67

query I rowsort
SELECT ALL + 80 * - 36 AS col0 FROM tab1 WHERE NOT ( col2 + - col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) < col0 / col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 NOT IN ( + 54 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) BETWEEN 69 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7882
SELECT ALL 95 DIV - col2 AS col2 FROM tab0
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-7882
SELECT ALL 95 / - col2 AS col2 FROM tab0
----
-2
-9
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7883
SELECT ALL - 96 DIV col2 col1 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7883
SELECT ALL - 96 / col2 col1 FROM tab2
----
-1
-2
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT - MAX( DISTINCT col2 ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-7884
SELECT - MAX ( DISTINCT col2 ) AS col2 FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT ALL - MIN( DISTINCT + col0 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-7885
SELECT ALL - MIN ( DISTINCT + col0 ) AS col0 FROM tab1
----
-51

query III rowsort
SELECT * FROM tab0 WHERE + 70 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7887
SELECT ALL CAST( col1 AS SIGNED ) DIV col1 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7887
SELECT ALL CAST ( col1 AS INTEGER ) / col1 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL - 14 + - col2 FROM tab0
----
-113
-24
-61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7889
SELECT + CAST( 65 AS SIGNED ) DIV - 64 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7889
SELECT + CAST ( 65 AS INTEGER ) / - 64 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + 79 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7891
SELECT + COUNT( * ) DIV - 34 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7891
SELECT + COUNT ( * ) / - 34 AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT MIN( DISTINCT - 89 ) * COUNT( * ) + + MAX( - 95 ) FROM tab1
----
-362

skipif mysql # not compatible
query I rowsort label-7892
SELECT MIN ( DISTINCT - 89 ) * COUNT ( * ) + + MAX ( - 95 ) FROM tab1
----
-362

query III rowsort
SELECT * FROM tab0 WHERE NOT 80 >= - 59
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7894
SELECT ALL CAST( NULL AS SIGNED ) + + col0 * col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7894
SELECT ALL CAST ( NULL AS INTEGER ) + + col0 * col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 col2 FROM tab1 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT 67 AS col0 FROM tab2 WHERE col2 NOT BETWEEN + col0 AND NULL
----
67
67
67

query I rowsort
SELECT - col1 FROM tab0 WHERE + 56 * col0 NOT IN ( + col0 )
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + - ( - col2 ) NOT BETWEEN ( 22 ) AND ( col0 * col2 )
----
15
81
47
97
1
99

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= ( + col0 + col2 )
----

query I rowsort
SELECT col0 * + 21 + col1 FROM tab0
----
1848
2038
396

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 34 ) NOT BETWEEN - col0 AND ( - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 NOT BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7903
SELECT - col2 + - 12 * CAST( - ( 73 ) * - 85 AS SIGNED ) AS col2 FROM tab2
----
-74483
-74500
-74518

skipif mysql # not compatible
query I rowsort label-7903
SELECT - col2 + - 12 * CAST ( - ( 73 ) * - 85 AS INTEGER ) AS col2 FROM tab2
----
-74483
-74500
-74518

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 NOT IN ( + col0 * - 18 + 86 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT - COUNT( ALL + col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7905
SELECT - COUNT ( ALL + col1 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col0 * - 2 AS col1 FROM tab2 AS cor0
----
128
150
92

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * 26 NOT IN ( 55 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * - 43 FROM tab0 AS cor0
----
-3483
-43
-903

query I rowsort
SELECT col1 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 * + ( 75 ) col0 FROM tab2
----
6150
6150
6150

query I rowsort
SELECT ALL 93 FROM ( tab0 AS cor0 CROSS JOIN tab1 )
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT DISTINCT - ( + 10 ) AS col2 FROM tab2
----
-10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 ) > + col1
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE - 10 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7915
SELECT DISTINCT AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7915
SELECT DISTINCT AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 + ( 38 ) AS col1 FROM tab1 AS cor0
----
43
52
85

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 7 > NULL
----

query I rowsort
SELECT - + 56 * 96 FROM tab2 AS cor0
----
-5376
-5376
-5376

query I rowsort
SELECT - ( + 42 ) AS col1 FROM tab1 AS cor0
----
-42
-42
-42

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - 79 AND NULL
----

query I rowsort
SELECT + col1 * - ( col2 ) FROM tab1 cor0
----
-1344
-295
-3196

query I rowsort
SELECT + col2 + ( - 46 ) FROM tab0 AS cor0
----
-36
1
53

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 > ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT DISTINCT + - COUNT( * ) + 75 AS col0 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-7924
SELECT DISTINCT + - COUNT ( * ) + 75 AS col0 FROM tab0 AS cor0
----
72

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE 26 + 95 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 * col0 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT COUNT( * ) + 73 * - COUNT( * ) AS col2 FROM tab1
----
-216

skipif mysql # not compatible
query I rowsort label-7927
SELECT COUNT ( * ) + 73 * - COUNT ( * ) AS col2 FROM tab1
----
-216

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + ( + 93 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 23 * + col1 IS NULL
----

query I rowsort
SELECT 32 * - 68 + col1 AS col2 FROM tab0
----
-2095
-2155
-2175

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NULL NOT IN ( col1 * 62 + 49 )
----
0

skipif mysql # not compatible
query I rowsort label-7931
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NULL NOT IN ( col1 * 62 + 49 )
----
0

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT col1 > 83
----
51
85
91

query I rowsort
SELECT - 23 * + - 46 * col1 AS col0 FROM tab2
----
53958
70886
81466

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 0 > ( + 10 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT - MIN( + - col1 ) * ( + SUM( col1 ) ) FROM tab0
----
8343

skipif mysql # not compatible
query I rowsort label-7935
SELECT - MIN ( + - col1 ) * ( + SUM ( col1 ) ) FROM tab0
----
8343

onlyif mysql # DIV for integer division: 
query I rowsort label-7936
SELECT ( - ( col1 ) ) DIV - 58 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7936
SELECT ( - ( col1 ) ) / - 58 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT - - COUNT( * ) * - 43 FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-7937
SELECT - - COUNT ( * ) * - 43 FROM tab1 AS cor0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT + - 93 * + COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
-837

skipif mysql # not compatible
query I rowsort label-7938
SELECT + - 93 * + COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
-837

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 - - col1 IN ( col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7940
SELECT - - COUNT( ALL + CAST( NULL AS SIGNED ) ) + + COUNT( - 22 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7940
SELECT - - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) + + COUNT ( - 22 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT ALL - COUNT( * ) + + 54 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
45

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL - COUNT ( * ) + + 54 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
45

query I rowsort
SELECT ALL - - ( 51 ) * 58 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c28a1e0fae44bf5536691b8aecd794a4

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT DISTINCT 26 * SUM( DISTINCT 46 ) AS col2 FROM tab2
----
1196

skipif mysql # not compatible
query I rowsort label-7943
SELECT DISTINCT 26 * SUM ( DISTINCT 46 ) AS col2 FROM tab2
----
1196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col0 col2 FROM tab1 AS cor0 WHERE col0 NOT IN ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= ( - 4 ) + - col1
----

query I rowsort
SELECT 12 AS col2 FROM tab2 cor0
----
12
12
12

query I rowsort
SELECT ALL col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE - 48 * - ( - ( - col2 ) ) * 11 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7949
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE - 48 * - ( - ( - col2 ) ) * 11 IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( + ( + col0 ) * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT - COUNT( * ) * - 86 FROM tab0 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-7951
SELECT - COUNT ( * ) * - 86 FROM tab0 AS cor0
----
258

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col2 ) BETWEEN ( NULL ) AND + col1
----

query I rowsort
SELECT ALL 41 AS col0 FROM tab0 WHERE NOT ( col0 / - col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT + COUNT( DISTINCT 66 ) FROM tab1 WHERE NOT - 24 + - col1 IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-7955
SELECT + COUNT ( DISTINCT 66 ) FROM tab1 WHERE NOT - 24 + - col1 IS NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT ALL MIN( + + 51 ) col2 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7956
SELECT ALL MIN ( + + 51 ) col2 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT + SUM( ALL - - col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-7957
SELECT + SUM ( ALL - - col1 ) FROM tab2
----
195

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= + 74 + col2 * col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= ( - 4 + - 81 + + - 47 )
----

query I rowsort
SELECT - col0 AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) IN ( - ( + col0 ) )
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE ( NULL IN ( - 21 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col0 * + 61 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 42 * - + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1932
-2688
-3150

onlyif mysql # DIV for integer division: 
query II rowsort label-7964
SELECT + 84 DIV col1 AS col1, + col2 FROM tab2 AS cor0
----
1
23
1
40
1
58

skipif mysql # not compatible
query II rowsort label-7964
SELECT + 84 / col1 AS col1, + col2 FROM tab2 AS cor0
----
1
23
1
40
1
58

query I rowsort
SELECT 26 * + + col0 FROM tab1
----
1326
2210
2366

query I rowsort
SELECT - 50 * 35 + col2 + + col0 FROM tab1
----
-1591
-1603
-1606

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 + + 29 * col1 / + 62 IS NOT NULL
----

query I rowsort
SELECT + col1 + - 13 * + 18 AS col1 FROM tab1
----
-187
-220
-229

query III rowsort
SELECT * FROM tab2 WHERE col0 * + col1 > 23
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 + col0 + col1 * - + 89 FROM tab0 AS cor0
----
-1695
-7179
105

query I rowsort
SELECT ALL + + 64 AS col0 FROM tab1 cor0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT DISTINCT COUNT( * ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7972
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 col1 FROM tab1 AS cor0 WHERE - 4 BETWEEN NULL AND ( - col1 )
----

query I rowsort
SELECT DISTINCT - - 13 * - col0 * - col1 + 94 + col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) <> 78
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <> ( + col0 * + col1 * col2 * 46 + 38 * + ( + col0 ) )
----

query I rowsort
SELECT DISTINCT - 1 + + 56 FROM tab1 AS cor0
----
55

query I rowsort
SELECT ALL + 51 + - + col0 * - - 92 AS col0 FROM tab1 AS cor0
----
-4641
-7769
-8321

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7978
SELECT - - col2 / - CAST( + ( col1 ) AS DECIMAL ) * col1 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7978
SELECT - - col2 / - CAST ( + ( col1 ) AS REAL ) * col1 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT + + 55 AS col1 FROM tab1 cor0
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT + + SUM( ALL - + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7980
SELECT + + SUM ( ALL - + col1 ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT 71 * + 96 AS col0 FROM tab0
----
6816
6816
6816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 + - col0 * + - 69 col0 FROM tab2
----
3195
4437
5196

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT ALL + ( SUM( - ( + col2 ) ) ) AS col2 FROM tab0 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL + ( SUM ( - ( + col2 ) ) ) AS col2 FROM tab0 WHERE NOT - col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT - COUNT( * ) + + + ( + + 63 ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-7984
SELECT - COUNT ( * ) + + + ( + + 63 ) FROM tab0
----
60

query I rowsort
SELECT + col2 FROM tab1 WHERE - - 48 >= + - ( 39 ) * + + col1 * col1 + col2 / col0
----
59
68
96

query I rowsort
SELECT - 32 + ( 20 ) FROM tab0
----
-12
-12
-12

query I rowsort
SELECT + 81 * col1 + - + col2 AS col2 FROM tab1
----
1038
346
3739

query I rowsort
SELECT DISTINCT col0 * 49 FROM tab2
----
2254
3136
3675

query I rowsort
SELECT ALL + ( + - 68 ) * + col1 AS col2 FROM tab2
----
-3468
-4556
-5236

query I rowsort
SELECT ALL col1 + - 88 FROM tab0 AS cor0
----
-67
-7
-87

query I rowsort
SELECT DISTINCT - ( col1 ) * + col0 * + 22 * - col2 FROM tab1 AS cor0
----
1507968
551650
6398392

query I rowsort
SELECT + + 47 * ( - 96 ) FROM tab0 AS cor0
----
-4512
-4512
-4512

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 54 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT + COUNT( * ) * - 51 AS col0 FROM tab1 WHERE NOT ( + col0 ) * - - col0 / - col2 = + 64
----
-153

skipif mysql # not compatible
query I rowsort label-7994
SELECT + COUNT ( * ) * - 51 AS col0 FROM tab1 WHERE NOT ( + col0 ) * - - col0 / - col2 = + 64
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-7995
SELECT col2 DIV - - 58 FROM tab0 AS cor0 WHERE NOT + 13 DIV - col0 >= ( + 31 )
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7995
SELECT col2 / - - 58 FROM tab0 AS cor0 WHERE NOT + 13 / - col0 >= ( + 31 )
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7996
SELECT - CAST( - 93 AS SIGNED ) DIV - col0 + - col0 FROM tab2 AS cor0
----
-48
-65
-76

skipif mysql # not compatible
query I rowsort label-7996
SELECT - CAST ( - 93 AS INTEGER ) / - col0 + - col0 FROM tab2 AS cor0
----
-48
-65
-76

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( NOT ( + col1 ) <= - col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7998
SELECT DISTINCT + - 16 FROM tab2 AS cor0 WHERE col0 / CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7998
SELECT DISTINCT + - 16 FROM tab2 AS cor0 WHERE col0 / CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT + COUNT( * ) * + ( - 15 ) AS col0 FROM tab2 cor0
----
-45

skipif mysql # not compatible
query I rowsort label-7999
SELECT + COUNT ( * ) * + ( - 15 ) AS col0 FROM tab2 cor0
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8000
SELECT - 20 DIV + - ( - COUNT( * ) ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8000
SELECT - 20 / + - ( - COUNT ( * ) ) FROM tab1 AS cor0
----
-6

query I rowsort
SELECT + - ( + col1 ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL >= - - col0 + - - 95 * 25 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT ALL - + MAX( + + col0 ) * COUNT( * ) AS col2 FROM tab1 WHERE NOT 15 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL - + MAX ( + + col0 ) * COUNT ( * ) AS col2 FROM tab1 WHERE NOT 15 IS NOT NULL
----
NULL

query II rowsort
SELECT ALL + col1, - 99 - - 60 + + + 30 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 4 * - 58 AS col0 FROM tab0
----
-232
-232
-232

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 16 ) + + 17 > NULL
----

query II rowsort
SELECT DISTINCT col2, + 49 FROM tab2
----
23
49
40
49
58
49

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( + col1 ) IS NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col1, 31 FROM tab0 AS cor0
----
10
31
47
31
99
31

query I rowsort
SELECT ALL + + ( - ( + - col1 ) ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT + MAX( DISTINCT 5 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8010
SELECT + MAX ( DISTINCT 5 ) FROM tab1 AS cor0
----
5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( col0, + 36 * + col2, - col0 )
----

query I rowsort
SELECT DISTINCT + + 71 AS col1 FROM tab1 cor0
----
71

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + - 65 * + 48 + - col1 + + col1, + col2 )
----

query II rowsort
SELECT - 50 AS col2, col0 + + 38 FROM tab0 AS cor0
----
-50
125
-50
135
-50
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT ALL - COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-8015
SELECT ALL - COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 57 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT - + col0 + - - col1 AS col2 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT 43 + + - 71 AS col2 FROM tab2 AS cor0
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE + 4 * - col1 NOT IN ( + - 31, col2, - + 23 / col0 )
----
3

skipif mysql # not compatible
query I rowsort label-8019
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE + 4 * - col1 NOT IN ( + - 31, col2, - + 23 / col0 )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8020
SELECT DISTINCT + COUNT( * ) * - + 5 AS col2, - 60 FROM tab1 AS cor0
----
-15
-60

skipif mysql # not compatible
query II rowsort label-8020
SELECT DISTINCT + COUNT ( * ) * - + 5 AS col2, - 60 FROM tab1 AS cor0
----
-15
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8021
SELECT - ( - 76 ) + - + CAST( NULL AS SIGNED ) * + 58 / + - 10 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8021
SELECT - ( - 76 ) + - + CAST ( NULL AS INTEGER ) * + 58 / + - 10 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - 11 + + col1 AS col2, - col0 * 6 FROM tab2 AS cor0
----
40
-276
56
-450
66
-384

query I rowsort
SELECT - 85 * + col0 * - col0 * - 70 + - col0 FROM tab2 AS cor0
----
-12590246
-24371264
-33468825

query III rowsort
SELECT ALL * FROM tab1 WHERE 61 NOT IN ( + - 43 * col2 + - + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) >= + col1
----

query I rowsort
SELECT + 36 FROM tab2 WHERE NULL < - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT COUNT( + ( + col2 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8027
SELECT COUNT ( + ( + col2 ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8028
SELECT DISTINCT COUNT( + 78 ) DIV COUNT( * ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8028
SELECT DISTINCT COUNT ( + 78 ) / COUNT ( * ) AS col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT - COUNT( * ) * + COUNT( * ) * - + MIN( + col2 ) AS col0 FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-8029
SELECT - COUNT ( * ) * + COUNT ( * ) * - + MIN ( + col2 ) AS col0 FROM tab2
----
207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8030
SELECT + CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8030
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8031
SELECT - + COUNT( * ) * + COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT ( + 30 * + 3 * col1 + - + CAST( NULL AS SIGNED ) IS NOT NULL )
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8031
SELECT - + COUNT ( * ) * + COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT ( + 30 * + 3 * col1 + - + CAST ( NULL AS INTEGER ) IS NOT NULL )
----
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 4 >= NULL
----

query I rowsort
SELECT ALL 14 * 18 AS col0 FROM tab1
----
252
252
252

onlyif mysql # DIV for integer division: 
query II rowsort label-8034
SELECT 15 AS col1, 9 DIV + col0 AS col0 FROM tab2
----
15
0
15
0
15
0

skipif mysql # not compatible
query II rowsort label-8034
SELECT 15 AS col1, 9 / + col0 AS col0 FROM tab2
----
15
0
15
0
15
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT + + MIN( ALL + 18 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-8035
SELECT + + MIN ( ALL + 18 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8036
SELECT MIN( DISTINCT + - CAST( NULL AS SIGNED ) ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8036
SELECT MIN ( DISTINCT + - CAST ( NULL AS INTEGER ) ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT ALL - SUM( - col0 ) col0 FROM tab1
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8037
SELECT ALL - SUM ( - col0 ) col0 FROM tab1
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT - MAX( DISTINCT - ( 17 ) ) col2 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8039
SELECT - MAX ( DISTINCT - ( 17 ) ) col2 FROM tab2 AS cor0
----
17

query II rowsort
SELECT DISTINCT 38, col2 FROM tab0 AS cor0
----
38
10
38
47
38
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT ALL - + MIN( + col0 ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8041
SELECT ALL - + MIN ( + col0 ) FROM tab1 cor0
----
-51

query I rowsort
SELECT + - col1 * + 63 AS col1 FROM tab2 AS cor0
----
-3213
-4221
-4851

onlyif mysql # aggregate syntax: 
query II rowsort label-8043
SELECT + 86 * - - 96 AS col0, + COUNT( * ) * - MIN( - + col2 ) * - SUM( DISTINCT - + 64 ) FROM tab0
----
8256
19008

skipif mysql # not compatible
query II rowsort label-8043
SELECT + 86 * - - 96 AS col0, + COUNT ( * ) * - MIN ( - + col2 ) * - SUM ( DISTINCT - + 64 ) FROM tab0
----
8256
19008

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT 34 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8044
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT 34 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT + MAX( DISTINCT col2 ) * ( + COUNT( * ) ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-8045
SELECT + MAX ( DISTINCT col2 ) * ( + COUNT ( * ) ) FROM tab1
----
288

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8046
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) <= + - col2
----

skipif mysql # not compatible
query III rowsort label-8046
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) <= + - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8047
SELECT DISTINCT * FROM tab2 WHERE + 65 + CAST( + col0 AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8047
SELECT DISTINCT * FROM tab2 WHERE + 65 + CAST ( + col0 AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT DISTINCT + COUNT( * ) * - SUM( 63 ) FROM tab0
----
-567

skipif mysql # not compatible
query I rowsort label-8048
SELECT DISTINCT + COUNT ( * ) * - SUM ( 63 ) FROM tab0
----
-567

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

query I rowsort
SELECT - 65 FROM tab2 AS cor0 WHERE NOT ( - 71 - + col0 + + col1 ) BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL col2 + - 83 AS col1, col2 AS col1 FROM tab0 cor0
----
-36
47
-73
10
16
99

query II rowsort
SELECT DISTINCT - col1 + + 94, - 82 * - col2 AS col0 FROM tab0 AS cor0
----
13
3854
73
820
93
8118

onlyif mysql # DIV for integer division: 
query II rowsort label-8053
SELECT ALL - - col1 DIV - 79 + col0 + - + col1 DIV - - 58 AS col1, - col1 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

skipif mysql # not compatible
query II rowsort label-8053
SELECT ALL - - col1 / - 79 + col0 + - + col1 / - - 58 AS col1, - col1 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8054
SELECT + CAST( NULL AS SIGNED ) + - 97 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8054
SELECT + CAST ( NULL AS INTEGER ) + - 97 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 54 * + col2 * - + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 * - 70 ) IS NULL
----

query I rowsort
SELECT ALL + - col0 * - + 67 FROM tab2 AS cor0
----
3082
4288
5025

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8058
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) + + - col0 col1, - col1 AS col2 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8058
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) + + - col0 col1, - col1 AS col2 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * ( + - col0 ) BETWEEN - col2 AND - col0 + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8060
SELECT DISTINCT 13 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8060
SELECT DISTINCT 13 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT - 80 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-80

onlyif mysql # DIV for integer division: 
query II rowsort label-8062
SELECT DISTINCT + ( + ( 79 ) ) DIV - col2 + - - 19 * + col1, + col2 FROM tab0 AS cor0
----
1538
47
19
99
392
10

skipif mysql # not compatible
query II rowsort label-8062
SELECT DISTINCT + ( + ( 79 ) ) / - col2 + - - 19 * + col1, + col2 FROM tab0 AS cor0
----
1538
47
19
99
392
10

query I rowsort
SELECT ALL + + 67 + col1 FROM tab0 AS cor0
----
148
68
88

query I rowsort
SELECT DISTINCT - - col2 * col1 * - col0 + - - ( - col2 ) FROM tab0 AS cor0
----
-18280
-57152
-9702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8065
SELECT DISTINCT col0 * - - col1 * - + col1 + CAST( NULL AS SIGNED ) * + 5 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8065
SELECT DISTINCT col0 * - - col1 * - + col1 + CAST ( NULL AS INTEGER ) * + 5 AS col1 FROM tab2
----
NULL

query II rowsort
SELECT col2 - + 72 AS col1, 54 FROM tab2
----
-14
54
-32
54
-49
54

query I rowsort
SELECT ALL + col2 * + 91 FROM tab0
----
4277
9009
910

query I rowsort
SELECT DISTINCT + 87 - - - 42 - + + ( + - 87 ) AS col0 FROM tab0
----
132

query I rowsort
SELECT col0 + - col2 + + 73 FROM tab0
----
150
41
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8070
SELECT ALL + col0 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT + col2 + - 42 BETWEEN - + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8070
SELECT ALL + col0 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT + col2 + - 42 BETWEEN - + col2 AND NULL
----

query I rowsort
SELECT DISTINCT + + col1 FROM tab2 AS cor0 WHERE NOT + 34 = + - 24
----
51
67
77

query I rowsort
SELECT DISTINCT + ( 56 ) * ( + 17 ) AS col1 FROM tab2
----
952

query III rowsort
SELECT * FROM tab2 WHERE NOT - 22 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT ALL + - MIN( DISTINCT - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8074
SELECT ALL + - MIN ( DISTINCT - col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT ALL - + 59 * 19 * - ( + COUNT( * ) ) FROM tab1 AS cor0
----
3363

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL - + 59 * 19 * - ( + COUNT ( * ) ) FROM tab1 AS cor0
----
3363

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8076
SELECT - CAST( col1 AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8076
SELECT - CAST ( col1 AS REAL ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 57 col0, - 36 * - 34 * 94 FROM tab0 AS cor0
----
57
115056
57
115056
57
115056

query I rowsort
SELECT DISTINCT - 11 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 * + 96 * - 53 - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT - SUM( - ( - col2 ) ) * - + 6 AS col2 FROM tab2 AS cor0
----
726

skipif mysql # not compatible
query I rowsort label-8079
SELECT - SUM ( - ( - col2 ) ) * - + 6 AS col2 FROM tab2 AS cor0
----
726

query I rowsort
SELECT - col2 * - - ( col2 ) AS col0 FROM tab2 AS cor0
----
-1600
-3364
-529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 47 col2 FROM tab1
----
-2397
-3995
-4277

query I rowsort
SELECT 34 + - col0 AS col1 FROM tab0
----
-53
-63
19

query II rowsort
SELECT ALL - col2, col0 * - col2 + - col2 + + col2 AS col1 FROM tab0
----
-10
-870
-47
-705
-99
-9603

query III rowsort
SELECT ALL * FROM tab2 WHERE + 19 NOT IN ( + col0, 62 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col2 col1 FROM tab2
----
1600
3364
529

query I rowsort
SELECT + - 78 - 12 FROM tab1 WHERE NOT - 17 * + col1 IS NULL
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT - MIN( DISTINCT 57 ) FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-8087
SELECT - MIN ( DISTINCT 57 ) FROM tab1
----
-57

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 / col0 * + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT DISTINCT + SUM( 90 ) AS col1 FROM tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-8089
SELECT DISTINCT + SUM ( 90 ) AS col1 FROM tab0 AS cor0
----
270

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 AS cor0 WHERE 39 IS NOT NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - ( + 40 ) * - - col0 AND NULL
----

query I rowsort
SELECT 47 + - - 71 + - col0 FROM tab1 AS cor0
----
27
33
67

query I rowsort
SELECT - col0 * + col2 + + + 33 FROM tab0 AS cor0
----
-672
-837
-9570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 17 col2 FROM tab0 AS cor0
----
17

query II rowsort
SELECT 99 AS col1, col0 FROM tab2
----
99
46
99
64
99
75

query I rowsort
SELECT ALL - col1 - + - 30 * - + col0 + + col2 FROM tab1
----
-1448
-2496
-2709

query II rowsort
SELECT ALL col1 AS col1, 68 + - + col0 AS col1 FROM tab1
----
14
17
47
-23
5
-17

query I rowsort
SELECT ALL + ( 62 ) AS col0 FROM tab2
----
62
62
62

query II rowsort
SELECT DISTINCT + col1, 89 * - col2 FROM tab0
----
1
-8811
21
-890
81
-4183

query I rowsort
SELECT + 69 * - col0 AS col2 FROM tab2
----
-3174
-4416
-5175

onlyif mysql # DIV for integer division: 
query I rowsort label-8101
SELECT 4 DIV col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8101
SELECT 4 / col0 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8102
SELECT DISTINCT 28 * + - 21 + + COUNT( * ) AS col2, - MAX( + col2 ) FROM tab0 AS cor0
----
-585
-99

skipif mysql # not compatible
query II rowsort label-8102
SELECT DISTINCT 28 * + - 21 + + COUNT ( * ) AS col2, - MAX ( + col2 ) FROM tab0 AS cor0
----
-585
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-8103
SELECT - MIN( ALL - - col0 ) AS col1, - 0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 61 / + 56 * col1 AND - ( + - col1 )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8103
SELECT - MIN ( ALL - - col0 ) AS col1, - 0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 61 / + 56 * col1 AND - ( + - col1 )
----
NULL
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * 92 * - col0 + ( + ( - col2 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT - SUM( ALL + col1 ) FROM tab2 WHERE NOT - col1 IS NULL
----
-195

skipif mysql # not compatible
query I rowsort label-8105
SELECT - SUM ( ALL + col1 ) FROM tab2 WHERE NOT - col1 IS NULL
----
-195

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 WHERE NOT ( - + ( + 61 ) - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT ALL - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

query I rowsort
SELECT DISTINCT - col2 * 93 * + 2 AS col2 FROM tab1 AS cor0
----
-10974
-12648
-17856

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + - col1 < ( NULL )
----

query I rowsort
SELECT DISTINCT - + col1 + 43 AS col2 FROM tab1 cor0
----
-4
29
38

query I rowsort
SELECT 79 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND col0 + - + 68 / - col0 * + 32
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL NOT BETWEEN - col1 * - - col2 AND NULL )
----

query I rowsort
SELECT DISTINCT + + col1 * 70 - + - 71 + - + col0 - + col0 * col1 AS col2 FROM tab2 cor0
----
-339
1249
469

onlyif mysql # DIV for integer division: 
query I rowsort label-8114
SELECT + col2 * - col0 + + col2 + col1 DIV 15 FROM tab0 AS cor0
----
-653
-859
-9504

skipif mysql # not compatible
query I rowsort label-8114
SELECT + col2 * - col0 + + col2 + col1 / 15 FROM tab0 AS cor0
----
-653
-859
-9504

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT + SUM( ALL + 40 ) col2 FROM tab1 WHERE NOT + ( - col2 ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8115
SELECT + SUM ( ALL + 40 ) col2 FROM tab1 WHERE NOT + ( - col2 ) NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8116
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 53 * - + 76 AS col0, + SUM( ALL - col1 ) + + 21 AS col1 FROM tab2
----
NULL
-174

skipif mysql # not compatible
query II rowsort label-8116
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 53 * - + 76 AS col0, + SUM ( ALL - col1 ) + + 21 AS col1 FROM tab2
----
NULL
-174

query II rowsort
SELECT 90, col0 FROM tab1
----
90
51
90
85
90
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT ALL + COUNT( * ) * + 51 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-8118
SELECT ALL + COUNT ( * ) * + 51 FROM tab1
----
153

query I rowsort
SELECT - col2 + - col0 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT ALL - COUNT( 7 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8120
SELECT ALL - COUNT ( 7 ) AS col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT - COUNT( * ) + - 7 FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8121
SELECT - COUNT ( * ) + - 7 FROM tab2 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8122
SELECT - CAST( NULL AS SIGNED ) + - + 95 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8122
SELECT - CAST ( NULL AS INTEGER ) + - + 95 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * - + col2 * + 22 + - col0 + + + col0 + + + ( col1 ) * - col1 + - col0 FROM tab0 cor0
----
-19668
-211364
-22086

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT - MAX( + 13 ) FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-8124
SELECT - MAX ( + 13 ) FROM tab2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT DISTINCT + - SUM( ALL - + 69 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
621

skipif mysql # not compatible
query I rowsort label-8125
SELECT DISTINCT + - SUM ( ALL - + 69 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
621

query I rowsort
SELECT + col2 - + col1 + - - col1 AS col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL + 7 + - 49 + + col0 AS col0 FROM tab0 cor0
----
-27
45
55

query I rowsort
SELECT ALL + col1 - + 54 FROM tab2 AS cor0
----
-3
13
23

query I rowsort
SELECT + col2 - + - col2 AS col0 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT SUM( ALL + + col2 ) * + COUNT( * ) AS col2 FROM tab0 WHERE NOT - ( - + col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8130
SELECT SUM ( ALL + + col2 ) * + COUNT ( * ) AS col2 FROM tab0 WHERE NOT - ( - + col1 ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 < + 55
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8132
SELECT * FROM tab0 WHERE NOT - CAST( - CAST( - col1 AS SIGNED ) AS SIGNED ) <= - col1
----

skipif mysql # not compatible
query III rowsort label-8132
SELECT * FROM tab0 WHERE NOT - CAST ( - CAST ( - col1 AS INTEGER ) AS INTEGER ) <= - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 col1 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT - col0 * - - col0 FROM tab1 cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query II rowsort label-8135
SELECT DISTINCT MAX( DISTINCT + 38 ), - 59 col1 FROM tab0 AS cor0
----
38
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8135
SELECT DISTINCT MAX ( DISTINCT + 38 ), - 59 col1 FROM tab0 AS cor0
----
38
-59

query I rowsort
SELECT - + 85 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 - + 12 - - col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 * - - 87 col0 FROM tab1 AS cor0
----
3480
3480
3480

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( 95 + - - 66 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8141
SELECT ALL + col1 + col0 * - CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8141
SELECT ALL + col1 + col0 * - CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 21 + + col1 AS col2 FROM tab1 AS cor0
----
26
35
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8143
SELECT DISTINCT - CAST( NULL AS SIGNED ) col2, + col1 col0 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8143
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col2, + col1 col0 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8144
SELECT DISTINCT * FROM tab2 WHERE - col1 - - col2 NOT BETWEEN - col1 * + 41 * + - 98 AND col1 / CAST( - col2 AS SIGNED ) * + 35 + + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8144
SELECT DISTINCT * FROM tab2 WHERE - col1 - - col2 NOT BETWEEN - col1 * + 41 * + - 98 AND col1 / CAST ( - col2 AS INTEGER ) * + 35 + + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8145
SELECT DISTINCT * FROM tab1 WHERE NOT - + col1 / - col2 + - CAST( NULL AS SIGNED ) + + 71 + - col0 BETWEEN - col0 / + 86 * col1 / 55 + - - 60 AND + + 91
----

skipif mysql # not compatible
query III rowsort label-8145
SELECT DISTINCT * FROM tab1 WHERE NOT - + col1 / - col2 + - CAST ( NULL AS INTEGER ) + + 71 + - col0 BETWEEN - col0 / + 86 * col1 / 55 + - - 60 AND + + 91
----

query I rowsort
SELECT ALL + col1 * - 22 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT MIN( DISTINCT - col1 ) * - + 37 * + - 69 AS col1 FROM tab1
----
-119991

skipif mysql # not compatible
query I rowsort label-8147
SELECT MIN ( DISTINCT - col1 ) * - + 37 * + - 69 AS col1 FROM tab1
----
-119991

query I rowsort
SELECT DISTINCT + 46 * ( + - col2 ) + + col0 * + col1 + 68 AS col2 FROM tab2 AS cor0
----
1356
2425
3156

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT ALL + 40 + - - COUNT( * ) + + COUNT( * ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL + 40 + - - COUNT ( * ) + + COUNT ( * ) FROM tab2 cor0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8150
SELECT DISTINCT 8 DIV + col0 - col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8150
SELECT DISTINCT 8 / + col0 - col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT col1 + - - col2 * - - 36 * col0 AS col0 FROM tab1
----
176270
180545
222815

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8152
SELECT ALL - ( - CAST( + col0 AS SIGNED ) ) * + 26 * - 77 AS col2 FROM tab1
----
-102102
-170170
-182182

skipif mysql # not compatible
query I rowsort label-8152
SELECT ALL - ( - CAST ( + col0 AS INTEGER ) ) * + 26 * - 77 AS col2 FROM tab1
----
-102102
-170170
-182182

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT + MIN( - ( - col1 ) ) + MIN( ALL + 6 ) FROM tab1 cor0
----
11

skipif mysql # not compatible
query I rowsort label-8153
SELECT + MIN ( - ( - col1 ) ) + MIN ( ALL + 6 ) FROM tab1 cor0
----
11

query I rowsort
SELECT ALL 32 + + ( + - col2 ) FROM tab2 AS cor0
----
-26
-8
9

query I rowsort
SELECT - col1 * + + 90 FROM tab0 AS cor0
----
-1890
-7290
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 col2 FROM tab0 AS cor0
----
41
41
41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8157
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 * + col2 + + CAST( col0 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-8157
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 * + col2 + + CAST ( col0 AS INTEGER ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 <= - - 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT DISTINCT - COUNT( ALL - - ( - + col1 ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8159
SELECT DISTINCT - COUNT ( ALL - - ( - + col1 ) ) AS col2 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 91 col2 FROM tab1
----
5369
6188
8736

query I rowsort
SELECT + - 4 / + 64 FROM tab1 WHERE NOT - + col1 < NULL
----

query II rowsort
SELECT col2, - col1 AS col1 FROM tab2
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT - COUNT( - 95 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8163
SELECT - COUNT ( - 95 ) AS col0 FROM tab0
----
-3

query II rowsort
SELECT DISTINCT 43, - col1 AS col2 FROM tab2
----
43
-51
43
-67
43
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT ( MAX( - ( 56 ) ) ) FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-8165
SELECT ( MAX ( - ( 56 ) ) ) FROM tab1
----
-56

query I rowsort
SELECT DISTINCT 2 + - col0 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-49
-83
-89

query I rowsort
SELECT col0 * - 7 AS col1 FROM tab0
----
-105
-609
-679

query I rowsort
SELECT DISTINCT col1 * + - col2 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = col2
----

query II rowsort
SELECT + col1 - 96, - col2 FROM tab2 AS cor0 WHERE NOT col2 <> + 57 + - - col2
----

query II rowsort
SELECT ALL col2, - col0 - - - ( - ( - 20 ) ) FROM tab1 AS cor0
----
59
-105
68
-111
96
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT ALL - ( + COUNT( * ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL - ( + COUNT ( * ) ) FROM tab2 cor0
----
-3

query II rowsort
SELECT + ( col1 ) + - col0 AS col1, col2 AS col0 FROM tab0
----
-66
10
-96
99
66
47

query I rowsort
SELECT 57 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 * col2 BETWEEN ( - ( - col1 ) + col1 ) AND NULL
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8175
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) <> + col1
----

skipif mysql # not compatible
query III rowsort label-8175
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) <> + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT DISTINCT - COUNT( + + col2 ) + - 24 * - + COUNT( * ) FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-8176
SELECT DISTINCT - COUNT ( + + col2 ) + - 24 * - + COUNT ( * ) FROM tab0 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT - COUNT( col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8177
SELECT - COUNT ( col0 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - 28 * - 81 FROM tab2 AS cor0
----
2268
2268
2268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8179
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) + - 57 + - col2 + - 38 + + col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8179
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) + - 57 + - col2 + - 38 + + col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + 28 AS col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( + 17 * + col1 + - ( + col1 ) )
----

query I rowsort
SELECT + 67 * - col2 AS col0 FROM tab0
----
-3149
-6633
-670

query I rowsort
SELECT - col0 + + 93 FROM tab1
----
2
42
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col0 ) col2 FROM tab0 WHERE - col2 * col1 >= + col0 * - + col1 AND - col1 / - col0 IS NOT NULL
----
-87

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 >= NULL AND NOT ( + col0 ) <= + col2
----

query I rowsort
SELECT + 53 AS col2 FROM tab2 WHERE + 24 * col2 * - col0 IS NOT NULL
----
53
53
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8186
SELECT + 14 + + 36 + + + CAST( NULL AS SIGNED ) / + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8186
SELECT + 14 + + 36 + + + CAST ( NULL AS INTEGER ) / + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 31 * col2 col0 FROM tab0 AS cor0
----
1457
3069
310

query I rowsort
SELECT col0 + - col0 + + 45 + - col1 * col0 FROM tab0 cor0
----
-1170
-1782
-52

query I rowsort
SELECT - - 55 * - col2 * - col2 * + 7 + col1 FROM tab0 AS cor0
----
3773386
38521
850546

onlyif mysql # DIV for integer division: 
query I rowsort label-8190
SELECT ALL - ( 91 ) - - col1 * + ( - col2 ) * - col0 + - col2 DIV - col1 FROM tab1
----
24995
290746
68459

skipif mysql # not compatible
query I rowsort label-8190
SELECT ALL - ( 91 ) - - col1 * + ( - col2 ) * - col0 + - col2 / - col1 FROM tab1
----
24995
290746
68459

query I rowsort
SELECT ALL - col1 - - col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + - col1 * + 77 * ( + + col1 ) FROM tab2 AS cor0
----
-200277
-345653
-456533

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8193
SELECT ALL - - CAST( - 17 AS SIGNED ) * + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + 5 IS NULL
----
-51

skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL - - CAST ( - 17 AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + 5 IS NULL
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-8194
SELECT ALL ( - ( + - ( + col2 ) ) ) DIV 96 * - - col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8194
SELECT ALL ( - ( + - ( + col2 ) ) ) / 96 * - - col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + ( 16 ) FROM tab0 AS cor0
----
16
16
16

query I rowsort
SELECT col1 * + 12 FROM tab1 AS cor0
----
168
564
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT + - MAX( + 62 ) FROM tab2 cor0
----
-62

skipif mysql # not compatible
query I rowsort label-8197
SELECT + - MAX ( + 62 ) FROM tab2 cor0
----
-62

query I rowsort
SELECT + 95 FROM tab1 AS cor0 WHERE NOT 30 - - col2 > NULL
----

query I rowsort
SELECT DISTINCT 93 * + col2 FROM tab2
----
2139
3720
5394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8200
SELECT ALL CAST( NULL AS SIGNED ) * ( + ( + col0 ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL CAST ( NULL AS INTEGER ) * ( + ( + col0 ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8201
SELECT ALL col0 DIV 8 AS col2 FROM tab2
----
5
8
9

skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL col0 / 8 AS col2 FROM tab2
----
5
8
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT COUNT( - + col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8202
SELECT COUNT ( - + col2 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT 92 * - - COUNT( * ) col1 FROM tab1, tab2 AS cor0
----
828

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8203
SELECT 92 * - - COUNT ( * ) col1 FROM tab1, tab2 AS cor0
----
828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8204
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 0 AS col0 FROM tab2 WHERE NOT - col0 + + + 61 <> - + col2
----

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT + 94 IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT + ( - col2 ) * - col2 AS col0 FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT ALL + - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8209
SELECT ALL + - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8210
SELECT + - CAST( - 51 AS SIGNED ) FROM tab1 AS cor0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-8210
SELECT + - CAST ( - 51 AS INTEGER ) FROM tab1 AS cor0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT + SUM( DISTINCT + - col1 ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8211
SELECT + SUM ( DISTINCT + - col1 ) FROM tab0 cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT ALL + MIN( ALL col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8212
SELECT ALL + MIN ( ALL col2 ) FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8213
SELECT ALL * FROM tab2 WHERE NULL <> - - CAST( - - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8213
SELECT ALL * FROM tab2 WHERE NULL <> - - CAST ( - - col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT ALL + COUNT( * ) + - COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8214
SELECT ALL + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + + 97 AS col0 FROM tab0 AS cor0
----
97

query I rowsort
SELECT - col1 * + 90 + - - col0 AS col1 FROM tab1 AS cor0
----
-1209
-365
-4139

query I rowsort
SELECT ALL - 7 * + 83 + + 35 AS col0 FROM tab2 AS cor0
----
-546
-546
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT ALL + + SUM( ALL + 54 ) + + COUNT( * ) col0 FROM tab2 AS cor0
----
165

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8218
SELECT ALL + + SUM ( ALL + 54 ) + + COUNT ( * ) col0 FROM tab2 AS cor0
----
165

query I rowsort
SELECT ALL - + col2 + + 74 AS col0 FROM tab1 AS cor0
----
-22
15
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8220
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8220
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT - 91 + + col0 AS col0 FROM tab0 AS cor0
----
-4
-76
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8222
SELECT DISTINCT + - 69 + - 30 * - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) NOT BETWEEN - 72 AND 80 * - ( + col0 )
----
-69

skipif mysql # not compatible
query I rowsort label-8222
SELECT DISTINCT + - 69 + - 30 * - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) NOT BETWEEN - 72 AND 80 * - ( + col0 )
----
-69

query I rowsort
SELECT + col0 + 38 * ( + col1 ) AS col2 FROM tab1 cor0
----
1877
275
583

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8224
SELECT ALL CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - - 58 + - col0 NOT BETWEEN + 85 AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8226
SELECT - + MIN( ALL + + col2 ) AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND 40 * - - col2 + - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8226
SELECT - + MIN ( ALL + + col2 ) AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND 40 * - - col2 + - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT DISTINCT 30 - - COUNT( * ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-8227
SELECT DISTINCT 30 - - COUNT ( * ) FROM tab1
----
33

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 47 / - 69 * 39 + - col1 + + 8 < + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8229
SELECT - - 41 * + 52 + - - col2 FROM tab1 WHERE - 90 + col1 * + col1 NOT BETWEEN col1 - col2 AND CAST( col2 AS DECIMAL )
----
2191
2200
2228

skipif mysql # not compatible
query I rowsort label-8229
SELECT - - 41 * + 52 + - - col2 FROM tab1 WHERE - 90 + col1 * + col1 NOT BETWEEN col1 - col2 AND CAST ( col2 AS REAL )
----
2191
2200
2228

onlyif mysql # aggregate syntax: 
query II rowsort label-8230
SELECT COUNT( * ), + COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8230
SELECT COUNT ( * ), + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT DISTINCT COUNT( DISTINCT - col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8231
SELECT DISTINCT COUNT ( DISTINCT - col2 ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8232
SELECT DISTINCT CAST( NULL AS SIGNED ) / COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8232
SELECT DISTINCT CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 71 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8234
SELECT + + 35 * + MIN( ALL + 26 ), + 4 col0 FROM tab2 AS cor0
----
910
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8234
SELECT + + 35 * + MIN ( ALL + 26 ), + 4 col0 FROM tab2 AS cor0
----
910
4

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND 58 * + ( + col2 )
----

query II rowsort
SELECT DISTINCT - 53 AS col1, col2 AS col0 FROM tab2 AS cor0
----
-53
23
-53
40
-53
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT MAX( + col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8237
SELECT MAX ( + col1 ) AS col0 FROM tab1
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8238
SELECT 48 DIV COUNT( * ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-8238
SELECT 48 / COUNT ( * ) FROM tab2
----
16

query I rowsort
SELECT ALL 21 * - col1 FROM tab0
----
-1701
-21
-441

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE - + 12 NOT BETWEEN 77 * 17 AND NULL
----
-23
-40
-58

query II rowsort
SELECT DISTINCT + 81 * - - col0, + col1 * + ( - col2 ) AS col1 FROM tab2
----
3726
-1173
5184
-3080
6075
-3886

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 94 * + - col2 + col0 + - ( + ( - ( + - col0 ) ) ) * - 10 NOT IN ( + + col0 )
----

query I rowsort
SELECT DISTINCT - 90 + - ( - 81 ) FROM tab0 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 BETWEEN + col1 AND NULL
----

query I rowsort
SELECT 32 + - + col2 AS col0 FROM tab2
----
-26
-8
9

query I rowsort
SELECT DISTINCT - 50 AS col0 FROM tab1
----
-50

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 3 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN + 80 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8249
SELECT + CAST( 63 AS SIGNED ) FROM tab0
----
63
63
63

skipif mysql # not compatible
query I rowsort label-8249
SELECT + CAST ( 63 AS INTEGER ) FROM tab0
----
63
63
63

query II rowsort
SELECT ALL - - 70, col0 FROM tab1 cor0
----
70
51
70
85
70
91

query I rowsort
SELECT 40 AS col2 FROM tab2 cor0 WHERE NULL > - col2 / - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT DISTINCT + - ( COUNT( * ) ) + - COUNT( * ) * - MAX( col0 ) col2 FROM tab0 AS cor0
----
288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8252
SELECT DISTINCT + - ( COUNT ( * ) ) + - COUNT ( * ) * - MAX ( col0 ) col2 FROM tab0 AS cor0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT DISTINCT + + COUNT( * ) FROM tab2 cor0 WHERE col2 NOT IN ( + col0, ( - col1 ) )
----
3

skipif mysql # not compatible
query I rowsort label-8253
SELECT DISTINCT + + COUNT ( * ) FROM tab2 cor0 WHERE col2 NOT IN ( + col0, ( - col1 ) )
----
3

query I rowsort
SELECT ALL 4 * col0 + + 62 - col1 FROM tab1 AS cor0
----
252
379
397

query II rowsort
SELECT + 33, col1 AS col2 FROM tab2 AS cor0
----
33
51
33
67
33
77

query I rowsort
SELECT DISTINCT - 48 + - col2 FROM tab1 AS cor0
----
-107
-116
-144

query I rowsort
SELECT ALL col0 - - 45 FROM tab0
----
132
142
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE ( NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8258
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE ( NULL IS NOT NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT ALL + 36 * + MIN( ALL + + col2 ) * - + 44 * + + COUNT( * ) FROM tab2 WHERE NOT 34 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8259
SELECT ALL + 36 * + MIN ( ALL + + col2 ) * - + 44 * + + COUNT ( * ) FROM tab2 WHERE NOT 34 NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT ALL + ( + - col1 ) + - col2 - - col0 FROM tab0
----
-113
-3
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 39 * - col1 + - col0 + + col0 - - col1 * col2 col2 FROM tab0 AS cor0
----
1029
138
6966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8262
SELECT + + col1 / col1 - CAST( NULL AS SIGNED ) - + 90 + - 73 - - 27 * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8262
SELECT + + col1 / col1 - CAST ( NULL AS INTEGER ) - + 90 + - 73 - - 27 * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT MAX( - - col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-8263
SELECT MAX ( - - col2 ) FROM tab2
----
58

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE ( 75 ) <= NULL
----

query I rowsort
SELECT DISTINCT + 12 AS col0 FROM tab1
----
12

query II rowsort
SELECT + - col1 * + 41 AS col2, col2 FROM tab2 AS cor0
----
-2091
23
-2747
58
-3157
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 col1 FROM tab2 cor0
----
89
89
89

onlyif mysql # aggregate syntax: 
query II rowsort label-8268
SELECT + COUNT( * ) * 85 AS col0, MAX( ALL + + 14 ) FROM tab0 AS cor0
----
255
14

skipif mysql # not compatible
query II rowsort label-8268
SELECT + COUNT ( * ) * 85 AS col0, MAX ( ALL + + 14 ) FROM tab0 AS cor0
----
255
14

query II rowsort
SELECT DISTINCT - col1 * + col0 AS col0, + col1 * + col0 FROM tab1 AS cor0
----
-425
425
-4277
4277
-714
714

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT COUNT( 53 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8270
SELECT COUNT ( 53 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8271
SELECT + SUM( ALL col0 ) col2, + 36 * - - 89 FROM tab2 AS cor0
----
185
3204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8271
SELECT + SUM ( ALL col0 ) col2, + 36 * - - 89 FROM tab2 AS cor0
----
185
3204

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 82 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE - 7 + 67 < - col2
----

query I rowsort
SELECT ALL 33 * + col1 AS col0 FROM tab1
----
1551
165
462

query I rowsort
SELECT + ( - 67 ) AS col0 FROM tab2 AS cor0
----
-67
-67
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8277
SELECT ALL + + 8 + + CAST( col2 AS SIGNED ) + col2 + + col1 col1 FROM tab0 AS cor0
----
183
207
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8277
SELECT ALL + + 8 + + CAST ( col2 AS INTEGER ) + col2 + + col1 col1 FROM tab0 AS cor0
----
183
207
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8278
SELECT + - CAST( NULL AS SIGNED ) * + 54 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8278
SELECT + - CAST ( NULL AS INTEGER ) * + 54 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + - + 15 AS col2 FROM tab2 AS cor0
----
31
49
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT DISTINCT - COUNT( * ) * + 51 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-459

skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT - COUNT ( * ) * + 51 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-459

query I rowsort
SELECT 83 + - + col2 - - - 59 FROM tab0 cor0
----
-23
-75
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT - + MAX( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8282
SELECT - + MAX ( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8283
SELECT ALL + col2 + col0 + 96 * + col0 + - CAST( NULL AS SIGNED ) * - + col1 - - 76 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8283
SELECT ALL + col2 + col0 + 96 * + col0 + - CAST ( NULL AS INTEGER ) * - + col1 - - 76 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8284
SELECT * FROM tab0 WHERE + + col1 * + col2 + + CAST( + col1 AS SIGNED ) + - CAST( NULL AS SIGNED ) * + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8284
SELECT * FROM tab0 WHERE + + col1 * + col2 + + CAST ( + col1 AS INTEGER ) + - CAST ( NULL AS INTEGER ) * + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE + - 40 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * + - col1 AS col2 FROM tab2
----
-2346
-4928
-5025

query II rowsort
SELECT ALL + col0 * 24 - + col2, + col0 FROM tab2
----
1081
46
1496
64
1742
75

query I rowsort
SELECT + - col2 FROM tab0 WHERE + 6 >= - + col1
----
-10
-47
-99

query I rowsort
SELECT - - 13 FROM tab2 WHERE NULL = NULL
----

query I rowsort
SELECT - 36 - - col1 FROM tab0
----
-15
-35
45

query I rowsort
SELECT + col0 - + - 75 FROM tab0
----
162
172
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8292
SELECT * FROM tab0 cor0 WHERE NOT + ( + CAST( col2 AS SIGNED ) ) * 63 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8292
SELECT * FROM tab0 cor0 WHERE NOT + ( + CAST ( col2 AS INTEGER ) ) * 63 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < - - 69 - + 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT DISTINCT + ( COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8294
SELECT DISTINCT + ( COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 57 < NULL
----

query II rowsort
SELECT + col2, + col2 * - col2 FROM tab2
----
23
-529
40
-1600
58
-3364

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( ( 81 ) ) * - + col1 + - col1 IS NULL
----

query I rowsort
SELECT - 33 * - - 20 * - 62 * + + 92 AS col1 FROM tab2 AS cor0
----
3764640
3764640
3764640

query I rowsort
SELECT col0 * + col1 * + 98 * + 20 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
4598160
9658880
9849000

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT - COUNT( * ) * - - 76 FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-8300
SELECT - COUNT ( * ) * - - 76 FROM tab2
----
-228

onlyif mysql # DIV for integer division: 
query II rowsort label-8301
SELECT ( + 4 ) DIV col1 * - - col1 * + col2, - 15 AS col2 FROM tab1
----
0
-15
0
-15
0
-15

skipif mysql # not compatible
query II rowsort label-8301
SELECT ( + 4 ) / col1 * - - col1 * + col2, - 15 AS col2 FROM tab1
----
0
-15
0
-15
0
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8302
SELECT - 43 * - + COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8302
SELECT - 43 * - + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT DISTINCT 44 * SUM( - 5 ) * - - COUNT( * ) + 68 + - 17 FROM tab0 AS cor0
----
-1929

skipif mysql # not compatible
query I rowsort label-8303
SELECT DISTINCT 44 * SUM ( - 5 ) * - - COUNT ( * ) + 68 + - 17 FROM tab0 AS cor0
----
-1929

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT + + COUNT( - 58 ) FROM tab1 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8304
SELECT + + COUNT ( - 58 ) FROM tab1 AS cor0 WHERE col1 IS NULL
----
0

query I rowsort
SELECT - - col1 + + col0 + + col2 FROM tab0 AS cor0
----
118
143
197

query I rowsort
SELECT ALL + 77 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # DIV for integer division: 
query I rowsort label-8307
SELECT col2 DIV - + col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8307
SELECT col2 / - + col0 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8308
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <> NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL BETWEEN + + col1 AND NULL )
----

query I rowsort
SELECT ALL + col1 + + + col1 AS col1 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT 76 * 69 + - COUNT( * ) FROM tab0
----
5241

skipif mysql # not compatible
query I rowsort label-8311
SELECT 76 * 69 + - COUNT ( * ) FROM tab0
----
5241

query I rowsort
SELECT DISTINCT col0 - - col2 - col0 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8313
SELECT DISTINCT - CAST( - AVG ( DISTINCT 53 ) AS DECIMAL ) FROM tab2 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8313
SELECT DISTINCT - CAST ( - AVG ( DISTINCT 53 ) AS REAL ) FROM tab2 WHERE NULL <> NULL
----
NULL

query I rowsort
SELECT ALL 34 - - - col2 FROM tab1
----
-25
-34
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + col2, - 41 col0 FROM tab0
----
100
-41
128
-41
31
-41

query I rowsort
SELECT ALL col0 - - - 98 FROM tab1
----
-13
-47
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8317
SELECT ALL - COUNT( * ) DIV - + 50 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL - COUNT ( * ) / - + 50 AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8318
SELECT DISTINCT * FROM tab0 WHERE NOT + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8318
SELECT DISTINCT * FROM tab0 WHERE NOT + + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8319
SELECT * FROM tab0 WHERE NOT NULL >= - - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8319
SELECT * FROM tab0 WHERE NOT NULL >= - - CAST ( NULL AS REAL )
----

query I rowsort
SELECT + 50 FROM tab1 AS cor0 WHERE NOT 26 + col1 * - + col2 IS NULL
----
50
50
50

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT col0 > ( + - col1 * + 73 - col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 78 * - + col0 * + col1 / - 84 + - - col2 <> - - 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 cor0 WHERE col0 * - - col0 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8323
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE col0 * - - col0 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT - SUM( 54 ) FROM tab0 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-8324
SELECT - SUM ( 54 ) FROM tab0 AS cor0
----
-162

query I rowsort
SELECT - 12 * + ( col1 ) AS col1 FROM tab2 cor0
----
-612
-804
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT + - MIN( - col0 ) AS col2 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-8326
SELECT + - MIN ( - col0 ) AS col2 FROM tab2 cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT DISTINCT - COUNT( DISTINCT + + col0 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT - COUNT ( DISTINCT + + col0 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8328
SELECT ALL + 43 * + 35 + 23 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL + 43 * + 35 + 23 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - + 92 AS col2, + col1 AS col0 FROM tab2 AS cor0
----
-92
51
-92
67
-92
77

query I rowsort
SELECT + col2 * - 58 + - - 8 AS col0 FROM tab0
----
-2718
-572
-5734

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT DISTINCT + SUM( - 6 ) AS col2 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-8331
SELECT DISTINCT + SUM ( - 6 ) AS col2 FROM tab1
----
-18

query II rowsort
SELECT ALL col2 AS col0, col2 + + col0 + col2 + - col0 AS col0 FROM tab1
----
59
118
68
136
96
192

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT DISTINCT + COUNT( col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8333
SELECT DISTINCT + COUNT ( col1 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT MAX( - + col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-8334
SELECT MAX ( - + col0 ) FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT - MAX( + - col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8335
SELECT - MAX ( + - col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT DISTINCT + col0 * ( + + 59 ) AS col0 FROM tab1
----
3009
5015
5369

query I rowsort
SELECT DISTINCT + 11 FROM ( tab2 cor0 CROSS JOIN tab1 cor1 )
----
11

query I rowsort
SELECT - col1 * + col2 + - - col1 + - - col1 AS col1 FROM tab2 AS cor0
----
-1071
-2926
-3752

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = + col1 * - + 15
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8340
SELECT ALL CAST( - + col1 AS SIGNED ) AS col0 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8340
SELECT ALL CAST ( - + col1 AS INTEGER ) AS col0 FROM tab1
----
-14
-47
-5

query II rowsort
SELECT 86 AS col0, + col0 * + 83 - 48 AS col0 FROM tab2
----
86
3770
86
5264
86
6177

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT + ( + 1 ) NOT IN ( - 70 + - col0 + col0 + - col0 / + 64, col2 + - - col0 - col2, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT ALL + COUNT( * ) * + COUNT( * ) * ( - ( + 19 ) ) * + 52 AS col1 FROM tab2
----
-8892

skipif mysql # not compatible
query I rowsort label-8343
SELECT ALL + COUNT ( * ) * + COUNT ( * ) * ( - ( + 19 ) ) * + 52 AS col1 FROM tab2
----
-8892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - - col0 col0 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT + ( col2 ) * + ( + - 91 ) + - + col2 AS col2 FROM tab1
----
-5428
-6256
-8832

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col1 ) NOT IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8347
SELECT ALL COUNT( col0 ) * 22 - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8347
SELECT ALL COUNT ( col0 ) * 22 - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 94 + - col1 AS col0 FROM tab2
----
17
27
43

query I rowsort
SELECT - 72 - - 19 AS col0 FROM tab1
----
-53
-53
-53

query I rowsort
SELECT DISTINCT - col1 + - 31 FROM tab1
----
-36
-45
-78

query I rowsort
SELECT ALL col0 * - 9 AS col0 FROM tab2
----
-414
-576
-675

query III rowsort
SELECT * FROM tab1 WHERE col0 BETWEEN - 79 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT - COUNT( * ) + + ( - MIN( ALL 10 ) ) FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-8353
SELECT - COUNT ( * ) + + ( - MIN ( ALL 10 ) ) FROM tab0
----
-13

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * 56 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT - 34 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT DISTINCT COUNT( * ) * - 72 FROM tab1
----
-216

skipif mysql # not compatible
query I rowsort label-8356
SELECT DISTINCT COUNT ( * ) * - 72 FROM tab1
----
-216

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 34 + + 43 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 60 col2 FROM tab0
----
60

query III rowsort
SELECT * FROM tab1 WHERE - col2 * 2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 FROM tab2 WHERE ( + 74 ) IN ( - 77 * - 22 + col2 * - 30 )
----

query I rowsort
SELECT - 12 AS col0 FROM tab1 WHERE NOT + 59 NOT IN ( col0 )
----

query I rowsort
SELECT 54 + + col0 FROM tab0
----
141
151
69

query I rowsort
SELECT ( 81 ) + col0 AS col1 FROM tab2
----
127
145
156

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 / col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col2 + - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8367
SELECT - col2 FROM tab1 AS cor0 WHERE ( col1 + - CAST( NULL AS SIGNED ) ) IS NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8367
SELECT - col2 FROM tab1 AS cor0 WHERE ( col1 + - CAST ( NULL AS INTEGER ) ) IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT ALL ( + ( + COUNT( * ) ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8368
SELECT ALL ( + ( + COUNT ( * ) ) ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + 96 * - col0 + col2 AS col2 FROM tab2 cor0
----
-4393
-6104
-7142

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT 34 + COUNT( * ) FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-8370
SELECT 34 + COUNT ( * ) FROM tab1 AS cor0
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab2 AS cor0 WHERE + 74 * + col2 + col1 * col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 52 ) = + 61
----

query I rowsort
SELECT col2 * col1 + col1 AS col2 FROM tab2 AS cor0
----
1224
3157
3953

query I rowsort
SELECT + 57 + - 48 FROM tab0 cor0
----
9
9
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8375
SELECT DISTINCT 1 * CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8375
SELECT DISTINCT 1 * CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT ALL COUNT( * ) * - ( + ( + COUNT( * ) ) ) AS col0 FROM tab2 cor0 CROSS JOIN tab2
----
-81

skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL COUNT ( * ) * - ( + ( + COUNT ( * ) ) ) AS col0 FROM tab2 cor0 CROSS JOIN tab2
----
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8377
SELECT - + CAST( NULL AS DECIMAL ) / 79 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8377
SELECT - + CAST ( NULL AS REAL ) / 79 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8378
SELECT + + CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8378
SELECT + + CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 52 AS col0 FROM tab1 AS cor0
----
52
52
52

query I rowsort
SELECT ALL col1 + + 40 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 44 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - col1 * 94 FROM tab2 AS cor0
----
4794
6298
7238

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 / - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT ALL 69 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-8384
SELECT ALL 69 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT - COUNT( * ) * 62 AS col0 FROM tab0 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-8385
SELECT - COUNT ( * ) * 62 AS col0 FROM tab0 AS cor0
----
-186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 col0 FROM tab2 WHERE NOT + col1 BETWEEN ( + col2 ) AND col0 * - col1
----
1173
3080
3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8387
SELECT COUNT( ( 5 ) ) * CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT + ( + ( + col2 ) ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8387
SELECT COUNT ( ( 5 ) ) * CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT + ( + ( + col2 ) ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 56 * 12 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT ALL + 14 * COUNT( * ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-8389
SELECT ALL + 14 * COUNT ( * ) FROM tab0 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT DISTINCT + ( COUNT( * ) ) * - COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8390
SELECT DISTINCT + ( COUNT ( * ) ) * - COUNT ( * ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT + - col0 * + 75 AS col1 FROM tab0 AS cor0
----
-1125
-6525
-7275

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 88 ) BETWEEN col0 + 67 AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col1 + + 88 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT - - ( - + COUNT( * ) ) * 8 AS col1 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-8394
SELECT - - ( - + COUNT ( * ) ) * 8 AS col1 FROM tab1 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) + + COUNT( * ) col2 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8395
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) + + COUNT ( * ) col2 FROM tab1 AS cor0
----
12

query I rowsort
SELECT ALL - + 13 * col0 AS col0 FROM tab0 AS cor0
----
-1131
-1261
-195

query I rowsort
SELECT DISTINCT - ( col0 ) * - col2 FROM tab0 WHERE NULL NOT IN ( + - 93 )
----

query I rowsort
SELECT DISTINCT + col2 * - col2 * + col2 AS col1 FROM tab1
----
-205379
-314432
-884736

query I rowsort
SELECT - ( - - col0 ) AS col0 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col2 * + + col2 ) > ( 16 * + col2 )
----

query I rowsort
SELECT + col1 + + 1 FROM tab2 AS cor0
----
52
68
78

query I rowsort
SELECT DISTINCT + 10 + + ( col0 ) FROM tab0 cor0
----
107
25
97

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE 8 = ( + + 71 + - col2 * - 18 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8404
SELECT - 60 * + MAX( - col2 ) + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8404
SELECT - 60 * + MAX ( - col2 ) + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 IN ( - - col1 + 37 )
----

query I rowsort
SELECT + - 76 + 96 FROM tab1 AS cor0
----
20
20
20

query I rowsort
SELECT 81 * + col1 FROM tab2 AS cor0 WHERE - col0 BETWEEN 50 AND col1
----

query I rowsort
SELECT DISTINCT + col1 + + 2 + + col1 FROM tab1
----
12
30
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8409
SELECT ALL + col2 DIV col1 * - 72 AS col2 FROM tab0
----
-7128
0
0

skipif mysql # not compatible
query I rowsort label-8409
SELECT ALL + col2 / col1 * - 72 AS col2 FROM tab0
----
-7128
0
0

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 ) NOT IN ( - 94 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + + col2 FROM tab0 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT ALL - ( + - ( - col0 ) ) AS col2 FROM tab1
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8413
SELECT col0 DIV - ( + - col2 ) FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8413
SELECT col0 / - ( + - col2 ) FROM tab2
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT - ( + SUM( col0 ) ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-8414
SELECT - ( + SUM ( col0 ) ) AS col2 FROM tab2
----
-185

query III rowsort
SELECT * FROM tab2 WHERE + + col1 + - 50 * 43 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8416
SELECT CAST( NULL AS DECIMAL ) * + 79 * + 17 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8416
SELECT CAST ( NULL AS REAL ) * + 79 * + 17 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 <= - + 70
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 80 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8419
SELECT * FROM tab1 AS cor0 WHERE - col0 - - CAST( NULL AS SIGNED ) * + col1 * + col1 <> 12
----

skipif mysql # not compatible
query III rowsort label-8419
SELECT * FROM tab1 AS cor0 WHERE - col0 - - CAST ( NULL AS INTEGER ) * + col1 * + col1 <> 12
----

query II rowsort
SELECT ALL 92 + - + 71, + 89 AS col1 FROM tab2 AS cor0
----
21
89
21
89
21
89

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 18 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 * + 48 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT ALL - 24 * + 42 - + - MAX( + col1 ) + - 15 FROM tab2 cor0
----
-946

skipif mysql # not compatible
query I rowsort label-8423
SELECT ALL - 24 * + 42 - + - MAX ( + col1 ) + - 15 FROM tab2 cor0
----
-946

onlyif mysql # DIV for integer division: 
query I rowsort label-8424
SELECT - 66 DIV - col0 FROM tab1 AS cor0 WHERE 75 NOT BETWEEN NULL AND + - ( + + 29 ) * col0 + - col0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8424
SELECT - 66 / - col0 FROM tab1 AS cor0 WHERE 75 NOT BETWEEN NULL AND + - ( + + 29 ) * col0 + - col0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 14 col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 * + - 59 + - 64 FROM tab0
----
-5197
-5787
-949

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IS NULL OR NOT ( NULL ) IS NULL
----

query II rowsort
SELECT 17 * - col1 + + col2 AS col2, - col0 + + + 18 FROM tab2
----
-1081
-57
-1269
-46
-844
-28

query I rowsort
SELECT ALL 87 - + 94 FROM tab0
----
-7
-7
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 21 col0 FROM tab0
----
108
118
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8431
SELECT + col1, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-8431
SELECT + col1, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8432
SELECT + - 86 * + MIN( ALL - + 61 ) - 16 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8432
SELECT + - 86 * + MIN ( ALL - + 61 ) - 16 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN ( + col2 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 47 * - + col1 FROM tab2 AS cor0
----
2397
3149
3619

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT ALL + MAX( DISTINCT + 64 ) AS col2 FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-8435
SELECT ALL + MAX ( DISTINCT + 64 ) AS col2 FROM tab2 AS cor0
----
64

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL IN ( col2 )
----

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-8438
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) ) = + 16
----

skipif mysql # not compatible
query IIIIII rowsort label-8438
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) = + 16
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, - 52 FROM tab2
----
23
-52
40
-52
58
-52

query II rowsort
SELECT DISTINCT col2, 17 AS col1 FROM tab1
----
59
17
68
17
96
17

onlyif mysql # aggregate syntax: 
query II rowsort label-8442
SELECT ALL COUNT( * ) col0, - COUNT( * ) FROM tab1
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8442
SELECT ALL COUNT ( * ) col0, - COUNT ( * ) FROM tab1
----
3
-3

query I rowsort
SELECT col2 * ( + 34 ) AS col0 FROM tab0
----
1598
3366
340

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 77, col1 col0 FROM tab1
----
77
14
77
47
77
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 38 col1, ( - - col1 ) + col0 FROM tab0
----
38
108
38
96
38
98

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 + + col1 + - + 24 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 15 + - + col2 + + col0 * + + 79 + + col2 col0, col2 AS col0 FROM tab1
----
4044
96
6730
59
7204
68

query III rowsort
SELECT * FROM tab2 WHERE NULL <= + col0 * + - col2
----

query I rowsort
SELECT DISTINCT + 72 * + col1 * + col1 AS col1 FROM tab0 AS cor0
----
31752
472392
72

query I rowsort
SELECT + + 79 FROM tab2 cor0
----
79
79
79

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col0 * 59 IS NULL )
----

query I rowsort
SELECT ALL + ( + 71 ) + col1 AS col1 FROM tab1 AS cor0
----
118
76
85

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 21 NOT IN ( - + ( 11 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT DISTINCT - 32 + + MIN( ALL + - 50 ) * 69 AS col2 FROM tab2
----
-3482

skipif mysql # not compatible
query I rowsort label-8454
SELECT DISTINCT - 32 + + MIN ( ALL + - 50 ) * 69 AS col2 FROM tab2
----
-3482

query I rowsort
SELECT - ( + 60 ) AS col2 FROM tab2
----
-60
-60
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8456
SELECT SUM( - 37 ) * + - 21 + - MIN( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8456
SELECT SUM ( - 37 ) * + - 21 + - MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col0 + - 45 AS col0 FROM tab1
----
40
46
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8458
SELECT DISTINCT CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8458
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8459
SELECT DISTINCT CAST( NULL AS SIGNED ), col2 col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8459
SELECT DISTINCT CAST ( NULL AS INTEGER ), col2 col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT ALL + 40 AS col2 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

query II rowsort
SELECT + col1 * + col0 + + col2 AS col1, col0 FROM tab0
----
1262
15
1837
87
196
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8462
SELECT DISTINCT col0 + CAST( - - col2 AS SIGNED ) FROM tab0 AS cor0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-8462
SELECT DISTINCT col0 + CAST ( - - col2 AS INTEGER ) FROM tab0 AS cor0
----
196
62
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 + col1 col1 FROM tab1 AS cor0
----
118
76
85

query I rowsort
SELECT DISTINCT col0 + + - col2 * 15 AS col0 FROM tab1 AS cor0
----
-1389
-800
-929

query I rowsort
SELECT ALL + col0 * - - 58 FROM tab0
----
5046
5626
870

onlyif mysql # DIV for integer division: 
query I rowsort label-8466
SELECT ALL + 4 DIV col1 * + - col0 FROM tab0 AS cor0
----
-388
0
0

skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL + 4 / col1 * + - col0 FROM tab0 AS cor0
----
-388
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT COUNT( * ) * MAX( 49 ) * 8 FROM tab0 AS cor0
----
1176

skipif mysql # not compatible
query I rowsort label-8467
SELECT COUNT ( * ) * MAX ( 49 ) * 8 FROM tab0 AS cor0
----
1176

onlyif mysql # DIV for integer division: 
query I rowsort label-8468
SELECT + col2 DIV - 42 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8468
SELECT + col2 / - 42 FROM tab1 AS cor0
----
-1
-1
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8469
SELECT - col0 * - 1, CAST( NULL AS DECIMAL ) * + 27 AS col0 FROM tab2 cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-8469
SELECT - col0 * - 1, CAST ( NULL AS REAL ) * + 27 AS col0 FROM tab2 cor0
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8470
SELECT DISTINCT + + COUNT( * ) DIV + 21 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8470
SELECT DISTINCT + + COUNT ( * ) / + 21 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT NULL <= + 62 * ( + + ( + col1 ) ) + - col1 - 3
----

query I rowsort
SELECT col1 * col2 * col0 * + col1 AS col1 FROM tab0 cor0
----
383670
4625505
9603

onlyif mysql # aggregate syntax: 
query II rowsort label-8473
SELECT + 61 AS col2, - MIN( ALL - 40 ) + MAX( + col0 ) AS col0 FROM tab1
----
61
131

skipif mysql # not compatible
query II rowsort label-8473
SELECT + 61 AS col2, - MIN ( ALL - 40 ) + MAX ( + col0 ) AS col0 FROM tab1
----
61
131

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 85 * - col1 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 - 29 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - - col2 AS col2, col0 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8477
SELECT ALL - CAST( + CAST( - col2 AS SIGNED ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8477
SELECT ALL - CAST ( + CAST ( - col2 AS INTEGER ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col1 / + 31 + - col0 * - - col2 NOT IN ( - ( - col2 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8479
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + col0 * + col1 * - 61 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8479
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + col0 * + col1 * - 61 ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * 67 FROM tab2
----
-3082
-4288
-5025

query I rowsort
SELECT DISTINCT 33 * - col2 FROM tab2
----
-1320
-1914
-759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8482
SELECT + CAST( NULL AS SIGNED ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8482
SELECT + CAST ( NULL AS INTEGER ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + ( + 49 ) AS col1 FROM tab2 AS cor0
----
100
116
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8484
SELECT DISTINCT col0 + + + 59 - - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8484
SELECT DISTINCT col0 + + + 59 - - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 ) IN ( - 34, col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + - col0 + + 13 col2 FROM tab1 AS cor0
----
13
13
13

query II rowsort
SELECT ALL - col1 + - + 79 AS col0, col0 FROM tab1 cor0
----
-126
91
-84
85
-93
51

query I rowsort
SELECT DISTINCT 2 + - 0 AS col2 FROM tab1 cor0
----
2

query I rowsort
SELECT DISTINCT - ( - col1 ) * + col2 * - 40 * - - ( + col2 ) AS col2 FROM tab2
----
-1079160
-4928000
-9015520

query I rowsort
SELECT DISTINCT - col1 * - 28 - + col1 FROM tab1
----
1269
135
378

query I rowsort
SELECT DISTINCT 40 * col2 * col2 FROM tab2
----
134560
21160
64000

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8492
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + col1 - + CAST( - col1 AS DECIMAL ) - - - ( + col2 ) * + + ( - + col2 ) * - col0 * + col0 + + + col0 - - + 61
----

skipif mysql # not compatible
query III rowsort label-8492
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + col1 - + CAST ( - col1 AS REAL ) - - - ( + col2 ) * + + ( - + col2 ) * - col0 * + col0 + + + col0 - - + 61
----

query II rowsort
SELECT + col0 - 3 AS col1, ( - col2 ) AS col0 FROM tab2 cor0
----
43
-23
61
-40
72
-58

query I rowsort
SELECT DISTINCT - col0 * - col0 * - col0 FROM tab2 AS cor0
----
-262144
-421875
-97336

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 + - col1 FROM tab1 WHERE NULL BETWEEN + - 16 + + + col0 - + col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 69 + - + 48 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8498
SELECT - AVG ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8498
SELECT - AVG ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 28 * + col0 FROM tab0 AS cor0 WHERE ( col0 >= - col2 + - col0 )
----
2436
2716
420

query I rowsort
SELECT - + col1 AS col1 FROM tab0 AS cor0 WHERE NOT 11 IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT ALL + - ( + + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL + - ( + + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - col2 * + - col2 AS col0 FROM tab0 cor0
----
100
2209
9801

query II rowsort
SELECT DISTINCT + + col2, col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8504
SELECT ALL col0 * + col1 * + ( col1 ) * - CAST( + - 6 AS SIGNED ) FROM tab0
----
230202
582
590490

skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL col0 * + col1 * + ( col1 ) * - CAST ( + - 6 AS INTEGER ) FROM tab0
----
230202
582
590490

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8505
SELECT CAST( + ( + col0 ) AS SIGNED ) AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8505
SELECT CAST ( + ( + col0 ) AS INTEGER ) AS col1 FROM tab2
----
46
64
75

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 48 * + 62 BETWEEN NULL AND - 60
----

query II rowsort
SELECT + col1 * - + col0 AS col1, col2 * - 35 AS col0 FROM tab0
----
-1215
-1645
-1827
-350
-97
-3465

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8508
SELECT * FROM tab1 WHERE NOT ( col1 + 86 + - CAST( NULL AS SIGNED ) * + + col2 * - col2 ) <= - col2 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8508
SELECT * FROM tab1 WHERE NOT ( col1 + 86 + - CAST ( NULL AS INTEGER ) * + + col2 * - col2 ) <= - col2 * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ( - ( col0 ) ) * - col2 * + - col0 * + col2 FROM tab0
----
-497025
-756900
-92217609

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col2 FROM tab1 WHERE NOT + col0 NOT IN ( - 16, 62, - + col1 )
----

query II rowsort
SELECT ( + 71 ), ( col2 ) AS col0 FROM tab1
----
71
59
71
68
71
96

query II rowsort
SELECT - - col0 + + col2, col2 * + 50 FROM tab2 WHERE NOT 75 BETWEEN col2 * - + ( + col0 ) - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab1 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT + - 56 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT DISTINCT + 7 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT ALL ( + + COUNT( + + ( - col0 ) ) ) FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8516
SELECT ALL ( + + COUNT ( + + ( - col0 ) ) ) FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT COUNT( * ) AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8517
SELECT COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT ALL - MIN( ALL col2 ) FROM tab0 AS cor0 WHERE - 55 / 89 + + col2 * - - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8518
SELECT ALL - MIN ( ALL col2 ) FROM tab0 AS cor0 WHERE - 55 / 89 + + col2 * - - col2 IS NULL
----
NULL

query I rowsort
SELECT ALL + 15 + + col1 FROM tab2 AS cor0
----
66
82
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT 72 - + COUNT( * ) FROM tab2 cor0
----
69

skipif mysql # not compatible
query I rowsort label-8520
SELECT 72 - + COUNT ( * ) FROM tab2 cor0
----
69

query I rowsort
SELECT DISTINCT - col2 - + 7 AS col2 FROM tab1
----
-103
-66
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT + SUM( DISTINCT col0 ) + + - COUNT( * ) * + COUNT( * ) AS col0 FROM tab1
----
218

skipif mysql # not compatible
query I rowsort label-8522
SELECT + SUM ( DISTINCT col0 ) + + - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1
----
218

query I rowsort
SELECT ALL + col2 - + 44 - col0 AS col2 FROM tab0
----
-12
-121
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT - 29 + + 71 + - COUNT( * ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-8524
SELECT - 29 + + 71 + - COUNT ( * ) FROM tab2
----
39

query I rowsort
SELECT + col2 + - 10 AS col2 FROM tab0
----
0
37
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT DISTINCT + COUNT( * ) - + COUNT( * ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8526
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT + SUM( DISTINCT - + col2 ) FROM tab2 WHERE - 38 IS NOT NULL
----
-121

skipif mysql # not compatible
query I rowsort label-8527
SELECT + SUM ( DISTINCT - + col2 ) FROM tab2 WHERE - 38 IS NOT NULL
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8528
SELECT ALL + 24, CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
24
3

skipif mysql # not compatible
query II rowsort label-8528
SELECT ALL + 24, CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
24
3

query I rowsort
SELECT ALL - col1 - - 80 FROM tab2
----
13
29
3

query I rowsort
SELECT ALL + 27 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 78 ) NOT BETWEEN NULL AND + col0 / - col1
----

query I rowsort
SELECT ALL - 74 * + 88 + ( col1 ) FROM tab1 AS cor0
----
-6465
-6498
-6507

query I rowsort
SELECT col0 * - + col2 + - 51 FROM tab1 AS cor0
----
-4947
-5066
-6239

onlyif mysql # DIV for integer division: 
query I rowsort label-8534
SELECT DISTINCT + 40 DIV - + col2 AS col1 FROM tab0
----
-4
0

skipif mysql # not compatible
query I rowsort label-8534
SELECT DISTINCT + 40 / - + col2 AS col1 FROM tab0
----
-4
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8535
SELECT + CAST( + - COUNT( * ) AS SIGNED ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8535
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT ALL MIN( col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL MIN ( col2 ) AS col0 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT - COUNT( * ) * + - 51 * + 44 col0 FROM tab2 AS cor0
----
6732

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8537
SELECT - COUNT ( * ) * + - 51 * + 44 col0 FROM tab2 AS cor0
----
6732

query I rowsort
SELECT + + 11 * - - col1 AS col0 FROM tab0 AS cor0
----
11
231
891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 99 ) * col0 col1 FROM tab1 AS cor0
----
5049
8415
9009

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT DISTINCT - COUNT( * ) + ( - MIN( - col2 ) ) AS col1 FROM tab1 cor0
----
93

skipif mysql # not compatible
query I rowsort label-8540
SELECT DISTINCT - COUNT ( * ) + ( - MIN ( - col2 ) ) AS col1 FROM tab1 cor0
----
93

query I rowsort
SELECT DISTINCT col0 * - + 59 AS col0 FROM tab0
----
-5133
-5723
-885

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT col0 + - - col2 + - col2 >= - - col2 )
----
85
5
59
91
47
68

query I rowsort
SELECT - 41 - - + col2 AS col0 FROM tab2 WHERE NOT + 0 IS NULL
----
-1
-18
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT - MIN( DISTINCT - col0 ) col2 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8544
SELECT - MIN ( DISTINCT - col0 ) col2 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-8545
SELECT ALL COUNT( * ), + COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-8545
SELECT ALL COUNT ( * ), + COUNT ( * ) FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT DISTINCT - + MAX( ALL + col1 ) - + COUNT( 31 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8546
SELECT DISTINCT - + MAX ( ALL + col1 ) - + COUNT ( 31 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT DISTINCT 17 + COUNT( * ) * - - 95 AS col0 FROM tab1 AS cor0
----
302

skipif mysql # not compatible
query I rowsort label-8547
SELECT DISTINCT 17 + COUNT ( * ) * - - 95 AS col0 FROM tab1 AS cor0
----
302

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 29 + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - ( - col2 ) FROM tab0 cor0
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8550
SELECT ALL + COUNT( * ) DIV + + 93 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL + COUNT ( * ) / + + 93 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 88 * - col1 - - - col1 FROM tab1
----
1218
4089
435

query I rowsort
SELECT col2 + - 14 * + col0 AS col1 FROM tab1 AS cor0
----
-1131
-1206
-618

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT DISTINCT - MAX( 90 ) FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-8553
SELECT DISTINCT - MAX ( 90 ) FROM tab0 AS cor0
----
-90

query I rowsort
SELECT DISTINCT - col0 + 63 AS col1 FROM tab2 AS cor0
----
-1
-12
17

query I rowsort
SELECT + 72 + - - col1 + + + col2 FROM tab2 AS cor0
----
146
189
197

query I rowsort
SELECT + 76 + col1 * - col2 FROM tab1 AS cor0
----
-1268
-219
-3120

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT DISTINCT - 37 + - COUNT( ALL - 84 ) FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-8557
SELECT DISTINCT - 37 + - COUNT ( ALL - 84 ) FROM tab1 AS cor0
----
-40

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - - 68 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8559
SELECT COUNT( - col2 ) AS col2, SUM( ALL col0 ) AS col1 FROM tab1 cor0
----
3
227

skipif mysql # not compatible
query II rowsort label-8559
SELECT COUNT ( - col2 ) AS col2, SUM ( ALL col0 ) AS col1 FROM tab1 cor0
----
3
227

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 / - - col0 = NULL
----

query I rowsort
SELECT ALL col0 - - + col0 FROM tab2
----
128
150
92

query I rowsort
SELECT + + 51 + + 17 FROM tab0 WHERE 7 IS NULL
----

query I rowsort
SELECT - ( + col0 ) + - + 39 AS col2 FROM tab1 WHERE NOT + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8564
SELECT - CAST( + - MAX( - col1 ) AS SIGNED ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-8564
SELECT - CAST ( + - MAX ( - col1 ) AS INTEGER ) AS col0 FROM tab1
----
-5

query I rowsort
SELECT ( col1 ) * - col2 * - 73 AS col0 FROM tab0
----
15330
277911
7227

query I rowsort
SELECT ALL 84 * 44 AS col2 FROM tab1 AS cor0
----
3696
3696
3696

query II rowsort
SELECT - col0 AS col1, - col1 AS col2 FROM tab2
----
-46
-51
-64
-77
-75
-67

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 65 = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 * + + 41 + col1 FROM tab2 AS cor0
----
1717
2445
994

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + 83 NOT BETWEEN ( NULL ) AND ( col0 * + + col1 )
----

query I rowsort
SELECT - + col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - - col0 col2 FROM tab2
----
104
133
69

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 21 >= + + col2
----
15
81
47
97
1
99

query II rowsort
SELECT + col2 * + - 69 AS col1, + 81 FROM tab2
----
-1587
81
-2760
81
-4002
81

query I rowsort
SELECT - 18 * + 70 AS col1 FROM tab0
----
-1260
-1260
-1260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8576
SELECT DISTINCT - CAST( - + col1 AS SIGNED ) + - ( - + col1 ) - + col1 AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8576
SELECT DISTINCT - CAST ( - + col1 AS INTEGER ) + - ( - + col1 ) - + col1 AS col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8577
SELECT DISTINCT - 0 * - 69 + - + COUNT( * ) / - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8577
SELECT DISTINCT - 0 * - 69 + - + COUNT ( * ) / - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL - col0 + - col1 * + - col2 FROM tab1 AS cor0
----
1293
210
3105

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( ( NULL ) IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8580
SELECT - CAST( NULL AS SIGNED ) + - - col2 + - + col1 * + ( - - 18 ) * - col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT - CAST ( NULL AS INTEGER ) + - - col2 + - + col1 * + ( - - 18 ) * - col0 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE col2 * - 92 + - + col2 IS NULL
----

query I rowsort
SELECT ALL + 72 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT DISTINCT 51 * + ( - col0 ) FROM tab2
----
-2346
-3264
-3825

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT ALL MIN( ALL - - col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL MIN ( ALL - - col1 ) FROM tab0
----
1

query I rowsort
SELECT DISTINCT + 66 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
66

query I rowsort
SELECT + + 99 - + 98 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + + col1 - - 60 AS col2 FROM tab1 AS cor0
----
107
65
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8588
SELECT DISTINCT 25 + + - CAST( - COUNT( * ) AS SIGNED ) col2, 38 * - COUNT( * ) * + + 80 AS col1 FROM tab1 cor0
----
28
-9120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8588
SELECT DISTINCT 25 + + - CAST ( - COUNT ( * ) AS INTEGER ) col2, 38 * - COUNT ( * ) * + + 80 AS col1 FROM tab1 cor0
----
28
-9120

onlyif mysql # DIV for integer division: 
query I rowsort label-8589
SELECT 51 + - col2 DIV - col0 FROM tab2 AS cor0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-8589
SELECT 51 + - col2 / - col0 FROM tab2 AS cor0
----
51
51
51

query II rowsort
SELECT DISTINCT 10, col2 * - col2 AS col1 FROM tab1 AS cor0
----
10
-3481
10
-4624
10
-9216

query I rowsort
SELECT - - 20 FROM tab1 cor0
----
20
20
20

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col2 + + 75 + - col2 / + + 76 + + - col1 * 64 * + col2 * + 62 > + 52 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT DISTINCT SUM( + col2 ) FROM tab1 AS cor0 WHERE NOT 27 + - col0 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8593
SELECT DISTINCT SUM ( + col2 ) FROM tab1 AS cor0 WHERE NOT 27 + - col0 < NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8594
SELECT + + 30 DIV + 42 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8594
SELECT + + 30 / + 42 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8595
SELECT ALL - MAX( + col0 ) AS col1, - 8 DIV 39 col1 FROM tab1 AS cor0
----
-91
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8595
SELECT ALL - MAX ( + col0 ) AS col1, - 8 / 39 col1 FROM tab1 AS cor0
----
-91
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 * ( + col1 ) col1 FROM tab0 AS cor0
----
1701
6561
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8597
SELECT + - CAST( 95 AS SIGNED ) * + col1 * 24 FROM tab0 WHERE NOT - col2 <= NULL
----

skipif mysql # not compatible
query I rowsort label-8597
SELECT + - CAST ( 95 AS INTEGER ) * + col1 * 24 FROM tab0 WHERE NOT - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT DISTINCT COUNT( DISTINCT - col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8598
SELECT DISTINCT COUNT ( DISTINCT - col2 ) FROM tab2
----
3

query I rowsort
SELECT ALL 32 + + - col2 FROM tab0 AS cor0
----
-15
-67
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT - MIN( - + 17 ) AS col0 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-8600
SELECT - MIN ( - + 17 ) AS col0 FROM tab2 AS cor0
----
17

query I rowsort
SELECT + ( + 83 ) AS col2 FROM tab2 AS cor0
----
83
83
83

query I rowsort
SELECT 18 AS col0 FROM tab0 cor0
----
18
18
18

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 NOT IN ( + 31, col2, - - col1 )
----

query I rowsort
SELECT - - 71 + - - 58 + - 61 * + col2 AS col0 FROM tab1 AS cor0
----
-3470
-4019
-5727

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8605
SELECT ALL ( + CAST( + ( + col2 ) AS SIGNED ) ) - col0 col2 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8605
SELECT ALL ( + CAST ( + ( + col2 ) AS INTEGER ) ) - col0 col2 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8606
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8606
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8607
SELECT ALL col2 AS col2, CAST( col1 AS SIGNED ) AS col2 FROM tab0
----
10
21
47
81
99
1

skipif mysql # not compatible
query II rowsort label-8607
SELECT ALL col2 AS col2, CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8608
SELECT DISTINCT - COUNT( * ) AS col1, - COUNT( * ) FROM tab2
----
-3
-3

skipif mysql # not compatible
query II rowsort label-8608
SELECT DISTINCT - COUNT ( * ) AS col1, - COUNT ( * ) FROM tab2
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT DISTINCT COUNT( * ) + + 74 AS col0 FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-8609
SELECT DISTINCT COUNT ( * ) + + 74 AS col0 FROM tab1
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8610
SELECT ALL + MIN( ALL - col1 ) DIV + 90 + 27 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-8610
SELECT ALL + MIN ( ALL - col1 ) / + 90 + 27 FROM tab0 AS cor0
----
27

query I rowsort
SELECT DISTINCT - - col2 + - col2 AS col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab2 AS cor0 WHERE ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT ALL COUNT( * ) - + 14 FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-8613
SELECT ALL COUNT ( * ) - + 14 FROM tab0 AS cor0
----
-11

query I rowsort
SELECT DISTINCT + 11 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
11

query I rowsort
SELECT ALL + col1 - col2 AS col0 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT ALL col0 - - 14 FROM tab1
----
105
65
99

query II rowsort
SELECT ( + 62 ) AS col2, - col1 FROM tab0 AS cor0
----
62
-1
62
-21
62
-81

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-67
-77

query II rowsort
SELECT - col0, 43 * + 69 AS col0 FROM tab0
----
-15
2967
-87
2967
-97
2967

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8621
SELECT 11 DIV col1 AS col0 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-8621
SELECT 11 / col1 AS col0 FROM tab1
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT DISTINCT - ( - SUM( DISTINCT col0 ) ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-8622
SELECT DISTINCT - ( - SUM ( DISTINCT col0 ) ) FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT DISTINCT ( SUM( + + ( + col0 ) ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-8623
SELECT DISTINCT ( SUM ( + + ( + col0 ) ) ) FROM tab0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, - col1 FROM tab2
----
51
-51
67
-67
77
-77

query I rowsort
SELECT - 67 * + 24 AS col1 FROM tab1
----
-1608
-1608
-1608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8626
SELECT ALL ( CAST( NULL AS SIGNED ) ) * - - COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT ALL - 33 * MIN( DISTINCT + + col0 ) AS col1 FROM tab1
----
-1683

skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL - 33 * MIN ( DISTINCT + + col0 ) AS col1 FROM tab1
----
-1683

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8628
SELECT DISTINCT + MAX( DISTINCT + CAST( - - col1 AS SIGNED ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8628
SELECT DISTINCT + MAX ( DISTINCT + CAST ( - - col1 AS INTEGER ) ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL ( col1 ) FROM tab2 AS cor0 WHERE NOT ( NOT + + 51 BETWEEN NULL AND + - col2 / - + col2 + - + col0 )
----

query I rowsort
SELECT + col0 AS col0 FROM tab2 cor0 WHERE NOT col1 - - + col1 * + col2 + + 52 IS NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8631
SELECT 44 DIV + col2 + + + 53 AS col1 FROM tab2
----
53
54
54

skipif mysql # not compatible
query I rowsort label-8631
SELECT 44 / + col2 + + + 53 AS col1 FROM tab2
----
53
54
54

query I rowsort
SELECT ALL ( - 97 ) AS col0 FROM tab0
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT DISTINCT + COUNT( * ) * MAX( - col1 ) AS col0 FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-8633
SELECT DISTINCT + COUNT ( * ) * MAX ( - col1 ) AS col0 FROM tab2
----
-153

query I rowsort
SELECT DISTINCT - 58 * + + ( + + col1 ) AS col0 FROM tab2 AS cor0
----
-2958
-3886
-4466

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 6 BETWEEN col2 AND - - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 96 * - + 80 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 54 * col1 + 71 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT ALL + - 22 + SUM( ALL + + col2 ) FROM tab2 cor0
----
99

skipif mysql # not compatible
query I rowsort label-8638
SELECT ALL + - 22 + SUM ( ALL + + col2 ) FROM tab2 cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT + ( MIN( ALL + col2 ) ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8639
SELECT + ( MIN ( ALL + col2 ) ) AS col2 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT - - SUM( 93 ) AS col2 FROM tab1 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-8640
SELECT - - SUM ( 93 ) AS col2 FROM tab1 AS cor0
----
279

query III rowsort
SELECT * FROM tab2 WHERE NULL <> + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT ALL - COUNT( * ) + - 58 AS col2 FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL - COUNT ( * ) + - 58 AS col2 FROM tab0
----
-61

query I rowsort
SELECT DISTINCT 38 * + 2 FROM tab2
----
76

query III rowsort
SELECT * FROM tab0 WHERE + col2 * - ( - + col2 ) + + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT DISTINCT - COUNT( DISTINCT col0 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8645
SELECT DISTINCT - COUNT ( DISTINCT col0 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT ALL 73 + - + 28 + + col1 FROM tab2
----
112
122
96

query I rowsort
SELECT + col2 - - col2 FROM tab0 AS cor0 WHERE ( 93 * + col0 ) IS NOT NULL
----
198
20
94

query I rowsort
SELECT DISTINCT 12 - - 30 FROM tab2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8649
SELECT + + CAST( NULL AS SIGNED ) col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8649
SELECT + + CAST ( NULL AS INTEGER ) col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + 30 * + - 61 AS col1, col2 FROM tab0 AS cor0
----
-1830
10
-1830
47
-1830
99

query I rowsort
SELECT + + col2 * - + col0 * col2 AS col1 FROM tab2 AS cor0
----
-102400
-24334
-252300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 9 col0, + 81 * + + col0 FROM tab2 AS cor0
----
-9
3726
-9
5184
-9
6075

query I rowsort
SELECT DISTINCT + 21 * + 88 FROM tab1 AS cor0
----
1848

onlyif mysql # DIV for integer division: 
query I rowsort label-8654
SELECT col1 DIV - + 37 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8654
SELECT col1 / - + 37 FROM tab2 AS cor0
----
-1
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, + 64 col0 FROM tab1 AS cor0
----
59
64
68
64
96
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8656
SELECT - + CAST( + 65 AS SIGNED ) FROM tab1 cor0
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-8656
SELECT - + CAST ( + 65 AS INTEGER ) FROM tab1 cor0
----
-65
-65
-65

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 36 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT + + 67 * COUNT( * ) + - + 70 FROM tab0 AS cor0
----
131

skipif mysql # not compatible
query I rowsort label-8658
SELECT + + 67 * COUNT ( * ) + - + 70 FROM tab0 AS cor0
----
131

query I rowsort
SELECT ALL ( + 90 ) FROM tab0
----
90
90
90

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8661
SELECT DISTINCT 3 DIV + 52 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8661
SELECT DISTINCT 3 / + 52 AS col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 31 col1 FROM tab0 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT ( - + MAX( - ( - col2 ) ) ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8663
SELECT ( - + MAX ( - ( - col2 ) ) ) FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8664
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8664
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8665
SELECT - 76 / + CAST( NULL AS SIGNED ) + + - col2 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8665
SELECT - 76 / + CAST ( NULL AS INTEGER ) + + - col2 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 + 87 + - col1 col1 FROM tab2 AS cor0
----
109
119
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8667
SELECT DISTINCT ( - + 23 ) + + - 32 + - CAST( NULL AS SIGNED ) * + 86 + - - COUNT( + 57 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8667
SELECT DISTINCT ( - + 23 ) + + - 32 + - CAST ( NULL AS INTEGER ) * + 86 + - - COUNT ( + 57 ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT - ( + + col0 ) * - col0 + + col1 FROM tab0 AS cor0
----
306
7590
9410

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8670
SELECT + col1 * ( - - 99 ) + - col1 + - + CAST( - col0 AS SIGNED ), col2 FROM tab1 AS cor0
----
1423
96
4697
68
575
59

skipif mysql # not compatible
query II rowsort label-8670
SELECT + col1 * ( - - 99 ) + - col1 + - + CAST ( - col0 AS INTEGER ), col2 FROM tab1 AS cor0
----
1423
96
4697
68
575
59

query I rowsort
SELECT DISTINCT + + col1 + + col0 * + col2 + col2 AS col2 FROM tab0 cor0
----
833
901
9703

query I rowsort
SELECT ALL + 98 - 24 FROM tab2 AS cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT ALL - COUNT( * ) + - 53 col2 FROM tab2 cor0
----
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8673
SELECT ALL - COUNT ( * ) + - 53 col2 FROM tab2 cor0
----
-56

query I rowsort
SELECT DISTINCT 26 * 18 AS col1 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8675
SELECT 56 FROM tab2 WHERE col2 / + col2 BETWEEN + - col1 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8675
SELECT 56 FROM tab2 WHERE col2 / + col2 BETWEEN + - col1 AND CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8676
SELECT CAST( NULL AS SIGNED ) * + + 4, 51 AS col1 FROM tab0
----
NULL
51
NULL
51
NULL
51

skipif mysql # not compatible
query II rowsort label-8676
SELECT CAST ( NULL AS INTEGER ) * + + 4, 51 AS col1 FROM tab0
----
NULL
51
NULL
51
NULL
51

query I rowsort
SELECT + - 99 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query II rowsort
SELECT ALL - col2 * + col2 / - col2, 46 * + + col0 AS col1 FROM tab1 WHERE NULL >= NULL
----

query I rowsort
SELECT 17 * - col1 AS col2 FROM tab0
----
-1377
-17
-357

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT DISTINCT - COUNT( - - 58 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8680
SELECT DISTINCT - COUNT ( - - 58 ) AS col0 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 64 col1 FROM tab2 AS cor0
----
64

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 84 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= ( - col1 )
----

query II rowsort
SELECT ALL + + 79, col0 FROM tab0 AS cor0
----
79
15
79
87
79
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8685
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - + 13 * - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8685
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - + 13 * - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT DISTINCT COUNT( ALL + 14 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8686
SELECT DISTINCT COUNT ( ALL + 14 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT DISTINCT + 33 * + COUNT( * ) * - ( + + MAX( ALL + col2 ) ) FROM tab0
----
-9801

skipif mysql # not compatible
query I rowsort label-8687
SELECT DISTINCT + 33 * + COUNT ( * ) * - ( + + MAX ( ALL + col2 ) ) FROM tab0
----
-9801

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 BETWEEN NULL AND - + col0
----
85
5
59
91
47
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 19 AS col0, col0 col2 FROM tab1
----
19
51
19
85
19
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT + MIN( + col0 ) * + COUNT( * ) FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-8690
SELECT + MIN ( + col0 ) * + COUNT ( * ) FROM tab2
----
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 39 * - 71 * - col2 col1 FROM tab2
----
110760
160602
63687

query II rowsort
SELECT ALL + col2 AS col2, ( + 64 ) FROM tab1
----
59
64
68
64
96
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE - col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8693
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE - col0 > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT DISTINCT - 98 + + COUNT( * ) FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-8694
SELECT DISTINCT - 98 + + COUNT ( * ) FROM tab2 AS cor0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8695
SELECT - - col2 + col2 + - + col2 + + CAST( NULL AS SIGNED ) * col0 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8695
SELECT - - col2 + col2 + - + col2 + + CAST ( NULL AS INTEGER ) * col0 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8696
SELECT + - CAST( NULL AS DECIMAL ) + + + 82 * - col1 * - col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8696
SELECT + - CAST ( NULL AS REAL ) + + + 82 * - col1 * - col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8697
SELECT * FROM tab0 WHERE - + CAST( NULL AS SIGNED ) NOT BETWEEN - - 28 AND + - col1
----

skipif mysql # not compatible
query III rowsort label-8697
SELECT * FROM tab0 WHERE - + CAST ( NULL AS INTEGER ) NOT BETWEEN - - 28 AND + - col1
----

query I rowsort
SELECT DISTINCT 43 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8699
SELECT ALL + CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8699
SELECT ALL + CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8700
SELECT - - col1 * - col2 FROM tab1 WHERE - + CAST( + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8700
SELECT - - col1 * - col2 FROM tab1 WHERE - + CAST ( + col1 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8701
SELECT - 96 AS col1 FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-8701
SELECT - 96 AS col1 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-96
-96
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT col2 < - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col2 * + ( + + col0 ) * - - col2 / ( + - 36 ) AS col0 FROM tab1 AS cor0 WHERE + ( - + 89 ) <> NULL
----

query I rowsort
SELECT - col0 + + 37 AS col1 FROM tab0
----
-50
-60
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8705
SELECT DISTINCT col2 + col1 + - - CAST( - col2 AS SIGNED ) + - 69 + + col1 col2, CAST( - 28 AS SIGNED ) AS col2 FROM tab0
----
-27
-28
-67
-28
93
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8705
SELECT DISTINCT col2 + col1 + - - CAST ( - col2 AS INTEGER ) + - 69 + + col1 col2, CAST ( - 28 AS INTEGER ) AS col2 FROM tab0
----
-27
-28
-67
-28
93
-28

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT ALL SUM( - col0 ) FROM tab0 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8707
SELECT ALL SUM ( - col0 ) FROM tab0 WHERE NOT NULL <= NULL
----
NULL

query I rowsort
SELECT 3 AS col1 FROM tab2 WHERE + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 * 57 col2 FROM tab1 AS cor0
----
4674
4674
4674

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT COUNT( * ) * - COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-8710
SELECT COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-81

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) NOT BETWEEN 77 AND - 65
----

query I rowsort
SELECT col2 * + + 63 FROM tab0
----
2961
6237
630

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 99 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8714
SELECT + col2 * - CAST( NULL AS DECIMAL ) * - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8714
SELECT + col2 * - CAST ( NULL AS REAL ) * - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col1 * - col0 * + 8 + + 25 * - - col1, - col0 AS col2 FROM tab1 cor0
----
-3275
-85
-33041
-91
-5362
-51

query II rowsort
SELECT ALL - - 27 * col0 AS col1, col1 AS col2 FROM tab1 AS cor0
----
1377
14
2295
5
2457
47

query I rowsort
SELECT - 23 * col1 AS col2 FROM tab1 cor0
----
-1081
-115
-322

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + 45 ) col0 FROM tab2 AS cor0
----
-45
-45
-45

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 cor0 WHERE NOT 33 IS NULL
----
46
64
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 80 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 51 * + - col2 * col2 FROM tab0
----
112659
499851
5100

query II rowsort
SELECT DISTINCT + col2, + col1 * 54 * col2 FROM tab1
----
59
15930
68
172584
96
72576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + + 91 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 75 * - col2 FROM tab0 AS cor0
----
-3525
-7425
-750

query I rowsort
SELECT DISTINCT col0 * col1 * + - col1 + + - col0 FROM tab0
----
-194
-38454
-98430

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT DISTINCT - 51 * - - SUM( ALL - col1 ) FROM tab2 AS cor0
----
9945

skipif mysql # not compatible
query I rowsort label-8727
SELECT DISTINCT - 51 * - - SUM ( ALL - col1 ) FROM tab2 AS cor0
----
9945

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8728
SELECT ALL - 67 * - - col1 * + col0 + CAST( NULL AS SIGNED ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8728
SELECT ALL - 67 * - - col1 * + col0 + CAST ( NULL AS INTEGER ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < + 87 + + col0
----

query I rowsort
SELECT DISTINCT - col0 * col2 + + - 82 AS col2 FROM tab0 AS cor0
----
-787
-952
-9685

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 col2 FROM tab0 AS cor0 WHERE NULL > - col0
----

query II rowsort
SELECT ALL + col1, 91 FROM tab1 AS cor0
----
14
91
47
91
5
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8733
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN 57 * CAST( 84 AS SIGNED ) AND + 60
----

skipif mysql # not compatible
query III rowsort label-8733
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN 57 * CAST ( 84 AS INTEGER ) AND + 60
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8734
SELECT + - 58 / - col1 + + + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col2, - 29 col2 FROM tab1 AS cor0
----
NULL
-29
NULL
-29
NULL
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8734
SELECT + - 58 / - col1 + + + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col2, - 29 col2 FROM tab1 AS cor0
----
NULL
-29
NULL
-29
NULL
-29

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 5 BETWEEN NULL AND NULL
----

query II rowsort
SELECT 25 AS col0, - 20 FROM tab2 AS cor0
----
25
-20
25
-20
25
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT + ( - + COUNT( - 11 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8737
SELECT + ( - + COUNT ( - 11 ) ) FROM tab1
----
-3

query II rowsort
SELECT ALL 47 AS col0, + 63 FROM tab2, tab0 AS cor0
----
18 values hashing to 7202570f3d44ed3c606a95df9795762b

query I rowsort
SELECT ALL col1 - 30 AS col0 FROM tab2
----
21
37
47

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> 57
----

query I rowsort
SELECT DISTINCT - 94 - - + 82 * + + 84 AS col0 FROM tab1
----
6794

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND - 52 * - col0 OR NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT + + MIN( DISTINCT + - col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8743
SELECT + + MIN ( DISTINCT + - col0 ) AS col1 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT + - 89 AS col2 FROM tab2 AS cor0
----
-89

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col1 AND NULL
----

query II rowsort
SELECT col2, - col1 AS col2 FROM tab2 WHERE NOT + - 35 + col2 * + 23 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8747
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) * - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8747
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) * - col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + ( - 12 ) / - + col0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8749
SELECT - col0 DIV ( - - col0 ) + 6 AS col2 FROM tab0 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-8749
SELECT - col0 / ( - - col0 ) + 6 AS col2 FROM tab0 AS cor0
----
5
5
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8750
SELECT + ( + COUNT( * ) ) DIV - 68 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8750
SELECT + ( + COUNT ( * ) ) / - 68 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT DISTINCT + ( MIN( ALL + 51 ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8751
SELECT DISTINCT + ( MIN ( ALL + 51 ) ) FROM tab1
----
51

query I rowsort
SELECT col0 * - col2 * + + 24 AS col1 FROM tab1
----
-117504
-120360
-148512

query I rowsort
SELECT + ( - + 16 ) AS col1 FROM tab2
----
-16
-16
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-8754
SELECT col2 DIV + 54 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8754
SELECT col2 / + 54 AS col0 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT DISTINCT + - COUNT( * ) + - 94 * - 84 AS col0 FROM tab2 AS cor0
----
7893

skipif mysql # not compatible
query I rowsort label-8755
SELECT DISTINCT + - COUNT ( * ) + - 94 * - 84 AS col0 FROM tab2 AS cor0
----
7893

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8756
SELECT DISTINCT + SUM( + 75 ) + + CAST( 27 AS SIGNED ) * - + COUNT( * ) + 97 FROM tab2 AS cor0
----
241

skipif mysql # not compatible
query I rowsort label-8756
SELECT DISTINCT + SUM ( + 75 ) + + CAST ( 27 AS INTEGER ) * - + COUNT ( * ) + 97 FROM tab2 AS cor0
----
241

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8757
SELECT ALL CAST( + 50 AS SIGNED ) + COUNT( * ) AS col0, + 33 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
59
33

skipif mysql # not compatible
query II rowsort label-8757
SELECT ALL CAST ( + 50 AS INTEGER ) + COUNT ( * ) AS col0, + 33 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
59
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8758
SELECT DISTINCT CAST( NULL AS SIGNED ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8758
SELECT DISTINCT CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT MIN( DISTINCT - col2 ) col1 FROM tab2 AS cor0 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8759
SELECT MIN ( DISTINCT - col2 ) col1 FROM tab2 AS cor0 WHERE NULL <= NULL
----
NULL

query I rowsort
SELECT - col1 * - col1 - col1 * - col2 FROM tab1 AS cor0
----
1540
320
5405

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 / 64 IS NULL
----

query I rowsort
SELECT ALL - col1 + - - 39 FROM tab1 cor0
----
-8
25
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 + col0 col2 FROM tab0 AS cor0
----
102
174
184

query I rowsort
SELECT col1 * + + col2 - - + col0 AS col1 FROM tab1 AS cor0
----
1395
3287
380

query I rowsort
SELECT ALL + + 68 + + col1 AS col2 FROM tab1 AS cor0
----
115
73
82

query II rowsort
SELECT DISTINCT - col1 + col2 * + col2, + col1 AS col0 FROM tab0 AS cor0
----
2128
81
79
21
9800
1

query I rowsort
SELECT ( - ( + col2 ) ) + - 98 * - col2 AS col0 FROM tab1
----
5723
6596
9312

query I rowsort
SELECT DISTINCT 53 - col0 + - 54 + - col1 * ( 61 ) * 27 AS col1 FROM tab1
----
-23110
-77501
-8321

query I rowsort
SELECT + col1 * + 95 + - col1 FROM tab1
----
1316
4418
470

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT COUNT( * ) * + - 38 col0 FROM tab1
----
-114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8770
SELECT COUNT ( * ) * + - 38 col0 FROM tab1
----
-114

query I rowsort
SELECT ALL ( - 8 ) FROM tab0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT ALL - COUNT( * ) * 66 col2 FROM tab2
----
-198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8772
SELECT ALL - COUNT ( * ) * 66 col2 FROM tab2
----
-198

query I rowsort
SELECT DISTINCT 48 FROM tab2 WHERE NOT NULL IS NOT NULL
----
48

query I rowsort
SELECT ALL 26 * - - col0 FROM tab2
----
1196
1664
1950

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8775
SELECT * FROM tab1 AS cor0 WHERE NOT 59 - + CAST( + 94 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8775
SELECT * FROM tab1 AS cor0 WHERE NOT 59 - + CAST ( + 94 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 3 AS col2, + col2 + - 53 FROM tab0 AS cor0
----
3
-43
3
-6
3
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT + - COUNT( DISTINCT - - col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8777
SELECT + - COUNT ( DISTINCT - - col1 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT DISTINCT ( + + MIN( - col1 ) ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-8778
SELECT DISTINCT ( + + MIN ( - col1 ) ) AS col1 FROM tab0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 45 * + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 50 / + col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + - col2 AND - 33
----

query I rowsort
SELECT ALL + - col1 - - 5 * + col2 - 4 AS col1 FROM tab1 cor0 WHERE 75 NOT BETWEEN - - 86 AND NULL
----
286
289
462

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT DISTINCT MIN( ALL + col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8783
SELECT DISTINCT MIN ( ALL + col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 92 )
----
NULL

query II rowsort
SELECT - + ( 27 ), + col0 + - 16 AS col1 FROM tab1 AS cor0
----
-27
35
-27
69
-27
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8785
SELECT ALL + - col2 DIV - col2 + 50 FROM tab0 AS cor0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL + - col2 / - col2 + 50 FROM tab0 AS cor0
----
51
51
51

query I rowsort
SELECT - 62 + col1 FROM tab1 AS cor0
----
-15
-48
-57

query I rowsort
SELECT col1 + col0 * + 48 + + 34 FROM tab1
----
2496
4119
4449

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT ALL + SUM( 31 ) AS col0 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-8788
SELECT ALL + SUM ( 31 ) AS col0 FROM tab0
----
93

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE 31 = - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT ALL - COUNT( DISTINCT - - col2 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8790
SELECT ALL - COUNT ( DISTINCT - - col2 ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL = - col0 + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 col1 FROM tab0 AS cor0
----
97
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8793
SELECT ALL + 57 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8793
SELECT ALL + 57 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - - col1, col1 AS col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT col1 FROM tab0 WHERE ( col2 ) <> NULL
----

query I rowsort
SELECT 0 * + col0 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT COUNT( * ) * COUNT( * ) - 62 AS col0 FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-8797
SELECT COUNT ( * ) * COUNT ( * ) - 62 AS col0 FROM tab1
----
-53

query I rowsort
SELECT - col2 - col2 * - col0 FROM tab1
----
4800
4956
6120

query I rowsort
SELECT DISTINCT + 44 * - col0 AS col2 FROM tab1
----
-2244
-3740
-4004

query I rowsort
SELECT ALL 40 AS col1 FROM tab0 WHERE NULL IS NULL
----
40
40
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8801
SELECT ALL + COUNT( * ) DIV + 53 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL + COUNT ( * ) / + 53 AS col1 FROM tab1
----
0

query I rowsort
SELECT 93 * - 25 FROM tab1
----
-2325
-2325
-2325

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT + 89 * - col0 + + col1 / + col2 NOT IN ( 77 * col0 )
----

query I rowsort
SELECT ALL - col0 + 86 FROM tab2
----
11
22
40

query I rowsort
SELECT - col1 * 49 FROM tab2
----
-2499
-3283
-3773

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8806
SELECT ALL COUNT( * ) DIV COUNT( * ) + 8 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL COUNT ( * ) / COUNT ( * ) + 8 FROM tab2
----
9

query I rowsort
SELECT 73 * + col0 FROM tab2
----
3358
4672
5475

query III rowsort
SELECT * FROM tab0 WHERE col2 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT + 49 + MAX( DISTINCT + col0 ) * COUNT( * ) AS col2 FROM tab2
----
274

skipif mysql # not compatible
query I rowsort label-8809
SELECT + 49 + MAX ( DISTINCT + col0 ) * COUNT ( * ) AS col2 FROM tab2
----
274

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT + COUNT( DISTINCT 21 ) + 29 col2 FROM tab1
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8810
SELECT + COUNT ( DISTINCT 21 ) + 29 col2 FROM tab1
----
30

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN - 58 AND 11 * col0 + 59 * + col1
----

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE NULL < NULL
----

query I rowsort
SELECT ALL + 24 FROM tab1 WHERE ( 11 ) IS NOT NULL
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT ( MAX( + ( 39 ) ) ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-8814
SELECT ( MAX ( + ( 39 ) ) ) FROM tab2
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 col2 FROM tab0
----
17
17
17

query I rowsort
SELECT 45 + + col2 * col2 AS col1 FROM tab0
----
145
2254
9846

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8818
SELECT DISTINCT * FROM tab0 WHERE ( col2 * col2 + - col1 ) IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8818
SELECT DISTINCT * FROM tab0 WHERE ( col2 * col2 + - col1 ) IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col1 * + 9 + col1 * - col2 AS col2 FROM tab0
----
-21
-3078
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8820
SELECT col0 + CAST( ( + ( col2 ) ) AS SIGNED ) FROM tab0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-8820
SELECT col0 + CAST ( ( + ( col2 ) ) AS INTEGER ) FROM tab0
----
196
62
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col1 / col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8823
SELECT + 75 DIV 26 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-8823
SELECT + 75 / 26 FROM tab2 AS cor0
----
2
2
2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 = ( + col0 + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT MIN( col2 ) * + 23 AS col1 FROM tab1
----
1357

skipif mysql # not compatible
query I rowsort label-8825
SELECT MIN ( col2 ) * + 23 AS col1 FROM tab1
----
1357

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 + + 94 * col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 53 + 51 ) NOT BETWEEN col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + ( 97 ) ) > col0
----

query I rowsort
SELECT ALL col1 * 49 AS col1 FROM tab1
----
2303
245
686

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8830
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 + - 52 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8830
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 + - 52 * - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT - - ( + MAX( DISTINCT 58 ) ) AS col2 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8831
SELECT - - ( + MAX ( DISTINCT 58 ) ) AS col2 FROM tab0 AS cor0
----
58

query I rowsort
SELECT DISTINCT col1 + col1 * - col0 FROM tab1 AS cor0
----
-420
-4230
-700

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 6 > ( NULL )
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE + ( - col1 ) * 19 NOT BETWEEN + 52 + col2 AND + 42
----
15
87
97

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( col2 ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 79 NOT IN ( ( col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 * 76 col1 FROM tab0 WHERE NULL < - col1 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT + ( + - COUNT( * ) ) * - COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8838
SELECT + ( + - COUNT ( * ) ) * - COUNT ( * ) FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT COUNT( * ) + - COUNT( * ) + COUNT( * ) * ( + COUNT( * ) - - 56 ) * COUNT( * ) FROM tab2
----
531

skipif mysql # not compatible
query I rowsort label-8839
SELECT COUNT ( * ) + - COUNT ( * ) + COUNT ( * ) * ( + COUNT ( * ) - - 56 ) * COUNT ( * ) FROM tab2
----
531

query I rowsort
SELECT DISTINCT - col0 * + - ( - 88 ) * + col0 + col1 FROM tab1
----
-228874
-635795
-728681

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8841
SELECT 85 + - CAST( NULL AS SIGNED ) * CAST( + col2 - - col0 AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8841
SELECT 85 + - CAST ( NULL AS INTEGER ) * CAST ( + col2 - - col0 AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 74 + col2 AS col2 FROM tab1
----
133
142
170

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT COUNT( * ) AS col2 FROM tab1 WHERE ( - 96 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8843
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE ( - 96 ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8844
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= ( col2 * + CAST( col0 AS SIGNED ) - 84 )
----

skipif mysql # not compatible
query III rowsort label-8844
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= ( col2 * + CAST ( col0 AS INTEGER ) - 84 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8845
SELECT ALL - CAST( + - 96 AS SIGNED ) FROM tab2
----
96
96
96

skipif mysql # not compatible
query I rowsort label-8845
SELECT ALL - CAST ( + - 96 AS INTEGER ) FROM tab2
----
96
96
96

query I rowsort
SELECT DISTINCT - 17 + - col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT ALL + SUM( ALL 39 ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
117

skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL + SUM ( ALL 39 ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
117

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 cor0 WHERE ( + 86 ) IS NULL
----

query I rowsort
SELECT ALL - 34 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query III rowsort
SELECT * FROM tab2 WHERE ( 2 / - 21 ) > col1
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8852
SELECT DISTINCT - col2 * col1 AS col1 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) * + 10 + 0 > ( 51 )
----

skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT - col2 * col1 AS col1 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) * + 10 + 0 > ( 51 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8853
SELECT col0 - CAST( - col1 AS SIGNED ) - 15 FROM tab2
----
126
127
82

skipif mysql # not compatible
query I rowsort label-8853
SELECT col0 - CAST ( - col1 AS INTEGER ) - 15 FROM tab2
----
126
127
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT DISTINCT ( + COUNT( ALL + ( - col1 ) ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8854
SELECT DISTINCT ( + COUNT ( ALL + ( - col1 ) ) ) FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 + col2 + 40 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8856
SELECT 9 DIV - - 56 col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8856
SELECT 9 / - - 56 col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 61 <= + 43
----

query I rowsort
SELECT - + 21 + ( + col2 + + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 = NULL
----

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - 27 / - 18 AND - 59
----

query II rowsort
SELECT ALL + col1, col0 * + 83 + + 31 FROM tab1 AS cor0
----
14
4264
47
7584
5
7086

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT + 79 * + + MIN( + 47 ) AS col1 FROM tab0
----
3713

skipif mysql # not compatible
query I rowsort label-8861
SELECT + 79 * + + MIN ( + 47 ) AS col1 FROM tab0
----
3713

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT SUM( ALL 40 ) FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-8862
SELECT SUM ( ALL 40 ) FROM tab2
----
120

query I rowsort
SELECT ALL 85 * ( - col2 ) FROM tab1
----
-5015
-5780
-8160

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col0 > col1 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8865
SELECT * FROM tab2 WHERE NOT ( + ( - CAST( 56 AS SIGNED ) ) ) IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8865
SELECT * FROM tab2 WHERE NOT ( + ( - CAST ( 56 AS INTEGER ) ) ) IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT + 55 BETWEEN ( - - col1 ) AND col0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT - + COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8867
SELECT - + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 WHERE + ( - col1 ) < + col1
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8869
SELECT DISTINCT - CAST( col2 AS SIGNED ) AS col1, + CAST( NULL AS SIGNED ) FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-8869
SELECT DISTINCT - CAST ( col2 AS INTEGER ) AS col1, + CAST ( NULL AS INTEGER ) FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

query III rowsort
SELECT * FROM tab2 WHERE - 94 IS NULL AND ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8871
SELECT ALL col0 DIV - 12 col2, col2 FROM tab1
----
-4
96
-7
59
-7
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8871
SELECT ALL col0 / - 12 col2, col2 FROM tab1
----
-4
96
-7
59
-7
68

query I rowsort
SELECT DISTINCT + 83 * - - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1743
6723
83

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 cor0 WHERE NOT NULL NOT IN ( 7 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8874
SELECT DISTINCT - col2 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8874
SELECT DISTINCT - col2 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 77 * 35 + + col2 AS col1 FROM tab2 AS cor0
----
-2637
-2655
-2672

query I rowsort
SELECT ALL + col0 * - - 40 AS col1 FROM tab1 AS cor0
----
2040
3400
3640

onlyif mysql # DIV for integer division: 
query II rowsort label-8877
SELECT - col2 DIV + + 85 AS col0, - 19 + - col1 col2 FROM tab1 AS cor0
----
-1
-33
0
-24
0
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8877
SELECT - col2 / + + 85 AS col0, - 19 + - col1 col2 FROM tab1 AS cor0
----
-1
-33
0
-24
0
-66

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 WHERE NOT + + col1 <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8879
SELECT + 99 DIV + col1 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8879
SELECT + 99 / + col1 AS col0 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8880
SELECT ALL - ( CAST( NULL AS SIGNED ) ) * - + col2 + - ( - 54 ) * - 3 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8880
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) * - + col2 + - ( - 54 ) * - 3 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8881
SELECT - ( + + col2 ) DIV - col1 col0 FROM tab2 WHERE NOT ( - col0 ) IS NULL
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8881
SELECT - ( + + col2 ) / - col1 col0 FROM tab2 WHERE NOT ( - col0 ) IS NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 * + col0 col0 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT DISTINCT MAX( ALL - + col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8883
SELECT DISTINCT MAX ( ALL - + col1 ) FROM tab1 AS cor0
----
-5

query I rowsort
SELECT + 70 * - col2 + + + col1 AS col2 FROM tab2 AS cor0
----
-1559
-2723
-3993

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8885
SELECT ALL - + CAST( + COUNT( * ) AS SIGNED ) + - 56 AS col0 FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL - + CAST ( + COUNT ( * ) AS INTEGER ) + - 56 AS col0 FROM tab2 AS cor0
----
-59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <= + col0 * - 65 * - col2 + + 33
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 19 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8888
SELECT ALL - - 38 DIV 97 * - col2 + - + col0 AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL - - 38 / 97 * - col2 + - + col0 AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( NULL NOT BETWEEN NULL AND - 4 ) )
----

query II rowsort
SELECT DISTINCT col0, 94 FROM tab1
----
51
94
85
94
91
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT - MAX( ALL + ( col2 ) ) AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
-58

skipif mysql # not compatible
query I rowsort label-8891
SELECT - MAX ( ALL + ( col2 ) ) AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 88, 98 + 26 col2 FROM tab1
----
-88
124

query I rowsort
SELECT DISTINCT + 60 + 94 FROM tab1, tab1 AS cor0
----
154

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NOT ( - 72 ) IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # DIV for integer division: 
query II rowsort label-8895
SELECT - col1 DIV 71 * + ( + - col0 ), 90 AS col1 FROM tab2
----
0
90
0
90
64
90

skipif mysql # not compatible
query II rowsort label-8895
SELECT - col1 / 71 * + ( + - col0 ), 90 AS col1 FROM tab2
----
0
90
0
90
64
90

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 IN ( col1 )
----

query II rowsort
SELECT - col2, col2 + + col2 AS col0 FROM tab0
----
-10
20
-47
94
-99
198

query II rowsort
SELECT DISTINCT + + 9 * - 7 + - - ( + 50 ) AS col2, col1 + - col1 AS col0 FROM tab1 AS cor0
----
-13
0

query I rowsort
SELECT 77 - col1 AS col0 FROM tab2 cor0
----
0
10
26

query I rowsort
SELECT DISTINCT + col0 + - 98 FROM tab1 AS cor0
----
-13
-47
-7

query I rowsort
SELECT col1 + 22 / - col2 FROM tab0 AS cor0 WHERE col2 > col2
----

query I rowsort
SELECT - 12 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT DISTINCT + col2 - ( + + col2 ) * 42 * - - col1 FROM tab0
----
-159847
-4059
-8810

query I rowsort
SELECT - - col0 * - 79 AS col2 FROM tab0 AS cor0
----
-1185
-6873
-7663

query I rowsort
SELECT DISTINCT + ( - 81 ) FROM tab2 AS cor0
----
-81

query I rowsort
SELECT 95 + + col1 * - col2 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN ( + - ( + - col2 ) - - 25 * - + col1 ) AND - 10
----
-1249
-200
-3101

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * col2 * - - col1 + 94 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT DISTINCT - COUNT( DISTINCT - 82 ) col1 FROM tab2 WHERE 15 < NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8908
SELECT DISTINCT - COUNT ( DISTINCT - 82 ) col1 FROM tab2 WHERE 15 < NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - + ( 52 ) BETWEEN - 2 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT 69 * + 84 - - col0 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 69, + 69 * col2 - + - 41 AS col2 FROM tab0
----
69
3284
69
6872
69
731

query I rowsort
SELECT + col1 * - ( 32 ) FROM tab1
----
-1504
-160
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT DISTINCT MIN( DISTINCT col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-8913
SELECT DISTINCT MIN ( DISTINCT col2 ) AS col0 FROM tab1
----
59

query II rowsort
SELECT ( - col0 ) * + col2 AS col0, col2 * + - col2 FROM tab0
----
-705
-2209
-870
-100
-9603
-9801

query I rowsort
SELECT DISTINCT 42 * + 62 * - 6 AS col2 FROM tab1
----
-15624

query II rowsort
SELECT DISTINCT col0 AS col0, 12 AS col1 FROM tab0
----
15
12
87
12
97
12

query I rowsort
SELECT DISTINCT + 66 FROM tab0 WHERE - - col1 NOT BETWEEN + col1 + + + 66 + + col2 * - 55 + + - 39 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT ALL COUNT( DISTINCT - 7 ) col0 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8918
SELECT ALL COUNT ( DISTINCT - 7 ) col0 FROM tab0
----
1

query I rowsort
SELECT ALL + col2 * - - col2 AS col0 FROM tab2
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8920
SELECT col1 / + - CAST( NULL AS SIGNED ) * col2 / + 51 * - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8920
SELECT col1 / + - CAST ( NULL AS INTEGER ) * col2 / + 51 * - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 73 FROM tab1 WHERE NOT + col0 * - + col1 < col1
----

query II rowsort
SELECT ALL + col1, - col0 FROM tab1
----
14
-51
47
-91
5
-85

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 66 IN ( + + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN - col0 AND - ( - 99 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT + + COUNT( * ) col1 FROM ( tab1 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-8925
SELECT + + COUNT ( * ) col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8926
SELECT col2 DIV col0 * + col0 * + col2 + - 83 AS col1 FROM tab0
----
-83
2032
9520

skipif mysql # not compatible
query I rowsort label-8926
SELECT col2 / col0 * + col0 * + col2 + - 83 AS col1 FROM tab0
----
-83
2032
9520

query I rowsort
SELECT ALL col2 FROM tab2 WHERE + 38 * + - 86 * 26 > ( + 84 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 95 * + + 45 col2 FROM tab0 AS cor0
----
-4275
-4275
-4275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 36 * - 23 + + col0 + + col0 col2 FROM tab1 AS cor0
----
1010
930
998

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT DISTINCT - - MIN( + 52 ) + - 30 col1 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8930
SELECT DISTINCT - - MIN ( + 52 ) + - 30 col1 FROM tab2 AS cor0
----
22

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND 14
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8932
SELECT DISTINCT + MIN( ALL - col2 ) + MAX( ALL + 50 ) AS col1, - COUNT( * ) FROM tab1 AS cor0
----
-46
-3

skipif mysql # not compatible
query II rowsort label-8932
SELECT DISTINCT + MIN ( ALL - col2 ) + MAX ( ALL + 50 ) AS col1, - COUNT ( * ) FROM tab1 AS cor0
----
-46
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 63 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8934
SELECT ALL - - ( + - col1 ) + - col1 + col2 + + CAST( - ( col0 ) AS SIGNED ) col1 FROM tab0 cor0
----
-119
-130
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8934
SELECT ALL - - ( + - col1 ) + - col1 + col2 + + CAST ( - ( col0 ) AS INTEGER ) col1 FROM tab0 cor0
----
-119
-130
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8935
SELECT ALL + - col1 DIV + + col2 + 15 + - col0 + - - col1 DIV - col1 FROM tab2 cor0
----
-34
-51
-62

skipif mysql # not compatible
query I rowsort label-8935
SELECT ALL + - col1 / + + col2 + 15 + - col0 + - - col1 / - col1 FROM tab2 cor0
----
-34
-51
-62

query I rowsort
SELECT 36 + + + col1 + col0 + - col0 AS col1 FROM tab0
----
117
37
57

query I rowsort
SELECT DISTINCT col0 + 10 AS col2 FROM tab1
----
101
61
95

query I rowsort
SELECT - + col0 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 97 - + + 68 col0 FROM tab0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT COUNT( - col0 ) AS col2 FROM tab0 WHERE - ( + col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8940
SELECT COUNT ( - col0 ) AS col2 FROM tab0 WHERE - ( + col2 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT 8 + - - COUNT( * ) FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-8941
SELECT 8 + - - COUNT ( * ) FROM tab1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8942
SELECT ALL + col0 - - col2 FROM tab1 WHERE NOT NULL NOT IN ( - + CAST( NULL AS SIGNED ) * - + 23 + + + col1, - ( 89 ) * - + 81 + - col0 / + 6 )
----

skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL + col0 - - col2 FROM tab1 WHERE NOT NULL NOT IN ( - + CAST ( NULL AS INTEGER ) * - + 23 + + + col1, - ( 89 ) * - + 81 + - col0 / + 6 )
----

query I rowsort
SELECT DISTINCT - - col1 + col2 + - - col0 + col0 + 98 * - col0 FROM tab0 AS cor0
----
-1312
-8321
-9212

query II rowsort
SELECT - + col2, + col2 AS col0 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8945
SELECT + col1 DIV + 94 * + + col1 * - - col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8945
SELECT + col1 / + 94 * + + col1 * - - col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8946
SELECT - col1 DIV - col0 col2 FROM tab0 cor0
----
0
0
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8946
SELECT - col1 / - col0 col2 FROM tab0 cor0
----
0
0
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( + 86, ( col0 ) * - + col2 - - 68 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 < ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8949
SELECT - col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-8949
SELECT - col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8950
SELECT + + COUNT( * ) * - - ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8950
SELECT + + COUNT ( * ) * - - ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT - col1 AS col0, col0 * - ( col1 ) AS col1 FROM tab0 AS cor0
----
-1
-97
-21
-1827
-81
-1215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 23 col0, ( col1 ) FROM tab0 AS cor0
----
23
1
23
21
23
81

query I rowsort
SELECT col2 + 37 AS col0 FROM tab2 AS cor0 WHERE NOT ( + + col0 ) IS NOT NULL
----

query I rowsort
SELECT - - ( + ( col1 ) ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT - col2 * + ( + col2 ) * + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( ( - 80 ) + - 10 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT ALL + SUM( DISTINCT + ( - col0 ) ) * - COUNT( * ) FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL + SUM ( DISTINCT + ( - col0 ) ) * - COUNT ( * ) FROM tab1
----
681

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT - COUNT( * ) * - 51 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-8957
SELECT - COUNT ( * ) * - 51 FROM tab0
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8958
SELECT ALL * FROM tab2 WHERE 86 * - 67 NOT BETWEEN - 75 / + col0 AND + CAST( NULL AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8958
SELECT ALL * FROM tab2 WHERE 86 * - 67 NOT BETWEEN - 75 / + col0 AND + CAST ( NULL AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col0 * - 16 + + + col1 AS col0, 96 / - col1 AS col1 FROM tab1 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT ALL + col1 * 12 + + - ( - ( + col2 ) ) AS col1 FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT - MAX( + col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8961
SELECT - MAX ( + col2 ) AS col1 FROM tab1 AS cor0
----
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT DISTINCT - 59 * - COUNT( * ) col2 FROM tab1
----
177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8963
SELECT DISTINCT - 59 * - COUNT ( * ) col2 FROM tab1
----
177

query I rowsort
SELECT 14 AS col2 FROM tab2 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8965
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( ( CAST( NULL AS SIGNED ) ) - + - 48 )
----

skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( ( CAST ( NULL AS INTEGER ) ) - + - 48 )
----

query I rowsort
SELECT DISTINCT - col1 + + col2 * - 0 FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT - + 57 AS col2 FROM tab1 AS cor0 WHERE + col2 - ( col2 ) IS NULL
----

query I rowsort
SELECT ALL - + ( - ( - col1 ) ) + - col2 + - 82 AS col1 FROM tab1 AS cor0
----
-146
-192
-197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8969
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) + - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8969
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) + - col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT + 53 + + COUNT( * ) AS col1 FROM tab0 WHERE + col1 * - 26 IS NOT NULL
----
56

skipif mysql # not compatible
query I rowsort label-8970
SELECT + 53 + + COUNT ( * ) AS col1 FROM tab0 WHERE + col1 * - 26 IS NOT NULL
----
56

query II rowsort
SELECT DISTINCT col2 * + ( + col0 ) * 32 - + col1, col0 AS col1 FROM tab2
----
139133
75
33805
46
81843
64

query I rowsort
SELECT DISTINCT + 29 - + col0 FROM tab1
----
-22
-56
-62

query I rowsort
SELECT + col0 FROM tab2 WHERE + col1 = NULL
----

query I rowsort
SELECT DISTINCT 32 * - - ( + + col0 ) FROM tab0
----
2784
3104
480

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 NOT BETWEEN - + 34 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL = - 64
----

query I rowsort
SELECT ALL + col0 * + - col2 * + 5 AS col1 FROM tab2
----
-12800
-21750
-5290

query I rowsort
SELECT col2 - - 22 AS col2 FROM tab0
----
121
32
69

query I rowsort
SELECT ALL + 63 + + 14 FROM tab1 AS cor0
----
77
77
77

query I rowsort
SELECT ALL - 23 * + + col2 AS col1 FROM tab2 AS cor0
----
-1334
-529
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT DISTINCT + + 70 + - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-8981
SELECT DISTINCT + + 70 + - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8982
SELECT DISTINCT - - SUM( DISTINCT + - CAST( 61 AS SIGNED ) ) FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-8982
SELECT DISTINCT - - SUM ( DISTINCT + - CAST ( 61 AS INTEGER ) ) FROM tab0 AS cor0
----
-61

query II rowsort
SELECT col2 AS col1, + col1 + 23 - + - col2 + 26 * 11 AS col2 FROM tab1
----
59
373
68
424
96
419

query I rowsort
SELECT ALL 49 - + + ( - 21 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8985
SELECT ALL CAST( NULL AS SIGNED ) * col1 * - col1, - col2 AS col1 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-8985
SELECT ALL CAST ( NULL AS INTEGER ) * col1 * - col1, - col2 AS col1 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT MAX( + 22 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
22

skipif mysql # not compatible
query I rowsort label-8986
SELECT MAX ( + 22 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
22

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8988
SELECT ALL + + 18 AS col0, + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18
9

skipif mysql # not compatible
query II rowsort label-8988
SELECT ALL + + 18 AS col0, + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8989
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT DISTINCT + 8 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col1
----

query I rowsort
SELECT - + col0 * + - col0 FROM tab2 AS cor0
----
2116
4096
5625

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( col1 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 14 + - col2 AS col0 FROM tab1 WHERE NOT - 12 IS NOT NULL
----

query I rowsort
SELECT ALL + 40 * + col0 AS col0 FROM tab2 WHERE NOT + + col1 IS NULL
----
1840
2560
3000

query III rowsort
SELECT * FROM tab0 WHERE NOT - 13 + + 80 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8996
SELECT ALL - col0 DIV + - ( - 21 ) AS col1 FROM tab0
----
-4
-4
0

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL - col0 / + - ( - 21 ) AS col1 FROM tab0
----
-4
-4
0

query I rowsort
SELECT + 70 * 26 AS col0 FROM tab1
----
1820
1820
1820

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8998
SELECT + 31 + + col1 FROM tab0 WHERE NOT CAST( NULL AS DECIMAL ) BETWEEN col2 AND 16
----

skipif mysql # not compatible
query I rowsort label-8998
SELECT + 31 + + col1 FROM tab0 WHERE NOT CAST ( NULL AS REAL ) BETWEEN col2 AND 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT DISTINCT 50 + - - COUNT( * ) col1 FROM tab1
----
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8999
SELECT DISTINCT 50 + - - COUNT ( * ) col1 FROM tab1
----
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 49, - col2 col0 FROM tab2
----
49
-23
49
-40
49
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN - 85 AND ( col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9002
SELECT - + CAST( - ( + - COUNT( * ) ) AS SIGNED ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9002
SELECT - + CAST ( - ( + - COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT ALL - 50 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL - 50 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-47

query I rowsort
SELECT DISTINCT 9 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT col1 + + 99 FROM tab1 cor0
----
104
113
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9006
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 79 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 79 IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT - 79 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT - ( col1 ) AS col1 FROM tab2 WHERE NULL = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9009
SELECT DISTINCT + 46 + ( col0 ) DIV + + col0 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9009
SELECT DISTINCT + 46 + ( col0 ) / + + col0 FROM tab0 AS cor0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9010
SELECT col2 * col2 DIV - col1 - + col0 - + 26 * + ( col0 ) - - 39 FROM tab0 AS cor0
----
-12381
-2314
-393

skipif mysql # not compatible
query I rowsort label-9010
SELECT col2 * col2 / - col1 - + col0 - + 26 * + ( col0 ) - - 39 FROM tab0 AS cor0
----
-12381
-2314
-393

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - + 20 IS NULL AND ( NULL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NULL < - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9013
SELECT ALL + col1 * + col1 + CAST( + 7 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
2608
4496
5936

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL + col1 * + col1 + CAST ( + 7 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
2608
4496
5936

query II rowsort
SELECT DISTINCT - 38 + - + col1, col2 AS col1 FROM tab2 AS cor0
----
-105
58
-115
40
-89
23

query I rowsort
SELECT DISTINCT - 23 + + - col0 * - col2 FROM tab1 AS cor0
----
4873
4992
6165

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT DISTINCT - COUNT( * ) * - + COUNT( * ) - - COUNT( * ) - COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9016
SELECT DISTINCT - COUNT ( * ) * - + COUNT ( * ) - - COUNT ( * ) - COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL 42 + - - col0 AS col2 FROM tab1
----
127
133
93

query I rowsort
SELECT - col0 + + - 39 FROM tab1
----
-124
-130
-90

query III rowsort
SELECT * FROM tab1 WHERE NULL >= + ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT DISTINCT COUNT( * ) + - 45 AS col1 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-9020
SELECT DISTINCT COUNT ( * ) + - 45 AS col1 FROM tab0
----
-42

query I rowsort
SELECT col2 + col1 * col0 * - col1 - col2 * + 20 FROM tab1
----
-11820
-202311
-3246

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT COUNT( * ) + - + 53 AS col1 FROM tab0
----
-50

skipif mysql # not compatible
query I rowsort label-9023
SELECT COUNT ( * ) + - + 53 AS col1 FROM tab0
----
-50

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE col1 IN ( + ( 0 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE 91 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9026
SELECT ALL + CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9026
SELECT ALL + CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 51 * ( + ( - + col2 ) ) AS col2 FROM tab2 AS cor0
----
-1173
-2040
-2958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9028
SELECT - - CAST( NULL AS SIGNED ) * col0 + col0 * ( + col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9028
SELECT - - CAST ( NULL AS INTEGER ) * col0 + col0 * ( + col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + - 32 * + - 22 * - col1, 43 AS col1 FROM tab2 AS cor0
----
-35904
43
-47168
43
-54208
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, - col1 col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9031
SELECT col1 * CAST( NULL AS DECIMAL ) * col0 + + col2 + - + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9031
SELECT col1 * CAST ( NULL AS REAL ) * col0 + + col2 + - + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * + 50 AS col0 FROM tab2
----
2300
3200
3750

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT ALL COUNT( * ) * - MIN( - col0 ) AS col1 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL COUNT ( * ) * - MIN ( - col0 ) AS col1 FROM tab1
----
273

onlyif mysql # DIV for integer division: 
query I rowsort label-9034
SELECT DISTINCT - + 50 DIV + - 27 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9034
SELECT DISTINCT - + 50 / + - 27 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL col0 * + - 85 * col1 * - 91 - + - 2 * col1 FROM tab2 AS cor0
----
18146412
38118234
38868509

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 19 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9037
SELECT col1 + - + col1 DIV - + col1 FROM tab2 cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-9037
SELECT col1 + - + col1 / - + col1 FROM tab2 cor0
----
52
68
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT + 38 + - ( - COUNT( * ) ) col1 FROM tab1 AS cor0
----
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9038
SELECT + 38 + - ( - COUNT ( * ) ) col1 FROM tab1 AS cor0
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-9039
SELECT ALL 60 DIV 65 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9039
SELECT ALL 60 / 65 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL 99 * - col1 FROM tab0
----
-2079
-8019
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9041
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - 13 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9041
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 13 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT DISTINCT COUNT( * ) * - COUNT( ALL + - col2 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9042
SELECT DISTINCT COUNT ( * ) * - COUNT ( ALL + - col2 ) FROM tab2
----
-9

query III rowsort
SELECT * FROM tab1 WHERE ( + + col0 + + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( 89 ) FROM tab0
----
89

query I rowsort
SELECT - col1 / 18 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + + col0 + + col0 FROM tab1
----
153
255
273

onlyif mysql # DIV for integer division: 
query I rowsort label-9047
SELECT - + col0 DIV + 90 * + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9047
SELECT - + col0 / + 90 * + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9048
SELECT - - CAST( - - col0 AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9048
SELECT - - CAST ( - - col0 AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT ALL - col1 - + - col0 FROM tab2
----
-13
-5
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 + col1 + - col0 * - 91 * - col0 col1 FROM tab0 AS cor0
----
-20429
-688793
-856253

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 + + col0 col0 FROM tab1 AS cor0
----
12
46
52

query I rowsort
SELECT - - 29 + + col0 AS col1 FROM tab2 AS cor0
----
104
75
93

query I rowsort
SELECT + col2 * - ( col1 ) FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-9054
SELECT col2, col0 DIV - + 59 col0 FROM tab1 cor0
----
59
-1
68
-1
96
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9054
SELECT col2, col0 / - + 59 col0 FROM tab1 cor0
----
59
-1
68
-1
96
0

query I rowsort
SELECT - col2 * + col0 FROM tab2 AS cor0 WHERE + col1 <> col0
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

query III rowsort
SELECT - 23 AS col2, - col1 AS col1, + col2 AS col1 FROM tab2 AS cor0
----
9 values hashing to 91177381a0601a1f3ecbea8b6219c789

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col0 ) + + - col2 col0 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT ALL - + 83 + + col0 AS col0 FROM tab2 AS cor0
----
-19
-37
-8

query II rowsort
SELECT ALL + col2 * - col1 AS col1, 73 AS col1 FROM tab0
----
-210
73
-3807
73
-99
73

query I rowsort
SELECT DISTINCT + col1 * ( - + col1 ) AS col2 FROM tab0
----
-1
-441
-6561

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IS NOT NULL AND NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col0 <> col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-9064
SELECT ALL COUNT( + + col1 ) AS col1, SUM( DISTINCT col2 ) FROM tab2
----
3
121

skipif mysql # not compatible
query II rowsort label-9064
SELECT ALL COUNT ( + + col1 ) AS col1, SUM ( DISTINCT col2 ) FROM tab2
----
3
121

query I rowsort
SELECT - ( + - 24 ) FROM tab1
----
24
24
24

query I rowsort
SELECT ALL 94 AS col1 FROM tab2 AS cor0 WHERE NOT - ( - 57 ) IS NULL
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT 86 - + 51 * - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
545

skipif mysql # not compatible
query I rowsort label-9067
SELECT 86 - + 51 * - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
545

query II rowsort
SELECT ALL + ( col0 ) * + + col2, ( + col1 ) FROM tab2
----
1058
51
2560
77
4350
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9069
SELECT ALL - + 75 + + + ( + + CAST( - col2 AS SIGNED ) ) FROM tab1 AS cor0
----
-134
-143
-171

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL - + 75 + + + ( + + CAST ( - col2 AS INTEGER ) ) FROM tab1 AS cor0
----
-134
-143
-171

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT + col1 * + col2 * - + 7 + + col2 FROM tab2 AS cor0
----
-21520
-27144
-8188

query I rowsort
SELECT ALL col1 + + + col2 FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 28 + col0 + + col2 - + + 76 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * - col0 * - col0 AS col2 FROM tab0
----
3375
658503
912673

query II rowsort
SELECT col0 * col1 AS col2, - col1 FROM tab0
----
1215
-81
1827
-21
97
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9076
SELECT + ( + + ( COUNT( * ) ) ) DIV - + COUNT( * ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9076
SELECT + ( + + ( COUNT ( * ) ) ) / - + COUNT ( * ) FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9077
SELECT DISTINCT + 59 DIV + - col1 FROM tab0
----
-2
-59
0

skipif mysql # not compatible
query I rowsort label-9077
SELECT DISTINCT + 59 / + - col1 FROM tab0
----
-2
-59
0

query III rowsort
SELECT * FROM tab2 WHERE 57 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 83 * - col0 + + col2 AS col2 FROM tab0
----
-1198
-7211
-7952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 8 + col0, col1 col1 FROM tab2
----
54
51
72
77
83
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9081
SELECT DISTINCT + CAST( + MAX( ALL col1 ) AS SIGNED ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9081
SELECT DISTINCT + CAST ( + MAX ( ALL col1 ) AS INTEGER ) AS col2 FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9082
SELECT DISTINCT - + col0 + - CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9082
SELECT DISTINCT - + col0 + - CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab2 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * + col1 + col2 = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col0 + 18 AS col0 FROM tab1 AS cor0
----
-33
-67
-73

query I rowsort
SELECT + 39 AS col1 FROM tab1 AS cor0 WHERE 77 * col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + col2 col2 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT MIN( 35 ) FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-9087
SELECT MIN ( 35 ) FROM tab2 AS cor0
----
35

query III rowsort
SELECT ALL * FROM tab1 WHERE + - ( + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT COUNT( 81 ) * + 97 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-9089
SELECT COUNT ( 81 ) * + 97 FROM tab0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9090
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) = + col1 * - 88 * + + 25 * - col0 / col0 * + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9092
SELECT - CAST( NULL AS SIGNED ) - + col0 * - + 11 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9092
SELECT - CAST ( NULL AS INTEGER ) - + col0 * - + 11 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 * + col0 - col1 FROM tab0 AS cor0
----
1134
1806
96

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NOT ( NOT NULL BETWEEN ( + col1 ) AND ( + 59 ) ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - 74
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT + 3 * col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT - 1 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9099
SELECT - 1 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9101
SELECT DISTINCT 49, + MIN( + col2 ) + - - 70 + - MAX( DISTINCT + col2 ) col2 FROM tab0
----
49
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9101
SELECT DISTINCT 49, + MIN ( + col2 ) + - - 70 + - MAX ( DISTINCT + col2 ) col2 FROM tab0
----
49
-19

query II rowsort
SELECT ALL col1, - col1 * col1 + 3 FROM tab1
----
14
-193
47
-2206
5
-22

onlyif mysql # DIV for integer division: 
query II rowsort label-9103
SELECT ALL - col1 AS col0, col2 DIV - col1 AS col0 FROM tab1
----
-14
-6
-47
-1
-5
-11

skipif mysql # not compatible
query II rowsort label-9103
SELECT ALL - col1 AS col0, col2 / - col1 AS col0 FROM tab1
----
-14
-6
-47
-1
-5
-11

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * col0 + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 52 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9106
SELECT ALL ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT DISTINCT + - COUNT( DISTINCT 66 ) col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9107
SELECT DISTINCT + - COUNT ( DISTINCT 66 ) col0 FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 col1 FROM tab1 AS cor0
----
80
80
80

query I rowsort
SELECT ALL + + ( 20 ) AS col2 FROM tab0 AS cor0
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT - - 69 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-9110
SELECT - - 69 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
207

query I rowsort
SELECT - col0 + - col1 * - 76 * col2 AS col1 FROM tab2 AS cor0
----
234016
295261
89102

query I rowsort
SELECT col1 + + + 19 + - col1 FROM tab1 cor0
----
19
19
19

query II rowsort
SELECT ALL + ( - ( - col2 ) ) AS col0, col1 * 72 AS col2 FROM tab1
----
59
360
68
3384
96
1008

onlyif mysql # aggregate syntax: 
query II rowsort label-9114
SELECT ALL - COUNT( * ), ( - MAX( + col1 ) ) * - 44 + + MIN( ALL col0 ) - + COUNT( * ) AS col2 FROM tab1
----
-3
2116

skipif mysql # not compatible
query II rowsort label-9114
SELECT ALL - COUNT ( * ), ( - MAX ( + col1 ) ) * - 44 + + MIN ( ALL col0 ) - + COUNT ( * ) AS col2 FROM tab1
----
-3
2116

query I rowsort
SELECT + col1 * + 15 AS col2 FROM tab2
----
1005
1155
765

onlyif mysql # aggregate syntax: 
query II rowsort label-9116
SELECT 28 AS col1, - MIN( 46 ) + + - COUNT( * ) + - 49 * - COUNT( * ) FROM tab2
----
28
98

skipif mysql # not compatible
query II rowsort label-9116
SELECT 28 AS col1, - MIN ( 46 ) + + - COUNT ( * ) + - 49 * - COUNT ( * ) FROM tab2
----
28
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT DISTINCT MIN( ALL - col2 ) * + COUNT( DISTINCT + 76 ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-9117
SELECT DISTINCT MIN ( ALL - col2 ) * + COUNT ( DISTINCT + 76 ) AS col1 FROM tab1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9118
SELECT * FROM tab1 cor0 WHERE ( - CAST( NULL AS SIGNED ) + + 83 + - col0 IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-9118
SELECT * FROM tab1 cor0 WHERE ( - CAST ( NULL AS INTEGER ) + + 83 + - col0 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9119
SELECT + 34 - - 2 * col1 DIV + + col0 AS col1 FROM tab2 AS cor0
----
35
36
36

skipif mysql # not compatible
query I rowsort label-9119
SELECT + 34 - - 2 * col1 / + + col0 AS col1 FROM tab2 AS cor0
----
35
36
36

query II rowsort
SELECT + col1 AS col2, - col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9121
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) + 66 * - 23 col0 FROM tab2 AS cor0
----
-1515

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9121
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) + 66 * - 23 col0 FROM tab2 AS cor0
----
-1515

query I rowsort
SELECT + + col2 AS col2 FROM tab2 cor0 WHERE col2 * + col0 * - + col1 IS NULL
----

query I rowsort
SELECT ALL + 60 + - col0 AS col0 FROM tab1 cor0
----
-25
-31
9

query I rowsort
SELECT DISTINCT 33 * + 39 - + col2 AS col2 FROM tab1
----
1191
1219
1228

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col0, col1, + col2, + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9126
SELECT DISTINCT + ( + col2 ) * col0 DIV col0 col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9126
SELECT DISTINCT + ( + col2 ) * col0 / col0 col0 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT MIN( DISTINCT + 55 ) FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-9127
SELECT MIN ( DISTINCT + 55 ) FROM tab2
----
55

query I rowsort
SELECT ALL + ( - 72 ) AS col0 FROM tab1
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT COUNT( DISTINCT + 81 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9129
SELECT COUNT ( DISTINCT + 81 ) AS col1 FROM tab1
----
1

query I rowsort
SELECT DISTINCT - - ( col1 ) AS col0 FROM tab1 cor0
----
14
47
5

query II rowsort
SELECT + 39 * - col0 + + 21 * + 8 * - 27, col1 AS col1 FROM tab0 AS cor0
----
-5121
81
-7929
21
-8319
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT DISTINCT - SUM( DISTINCT + 29 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-29

skipif mysql # not compatible
query I rowsort label-9132
SELECT DISTINCT - SUM ( DISTINCT + 29 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-29

query I rowsort
SELECT - 85 AS col2 FROM tab2 WHERE - + col1 < 45
----
-85
-85
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-9134
SELECT + 66 DIV - col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9134
SELECT + 66 / - col0 FROM tab1 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 55 * + col0 + - col1 + + - col2 col1, col1 AS col0 FROM tab1 AS cor0
----
2695
14
4611
5
4890
47

query I rowsort
SELECT - col0 * + col1 * - col0 FROM tab2 AS cor0
----
107916
315392
376875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2 col0, 19 * - 78 * + col2 + + - col0 + + col2 AS col2 FROM tab0 AS cor0
----
-10
-14897
-47
-69622
-99
-146716

query I rowsort
SELECT - + ( + + ( 61 ) ) FROM tab0 AS cor0
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-9139
SELECT DISTINCT - 90 + + COUNT( * ) AS col0, 34 * 91 AS col2 FROM tab0
----
-87
3094

skipif mysql # not compatible
query II rowsort label-9139
SELECT DISTINCT - 90 + + COUNT ( * ) AS col0, 34 * 91 AS col2 FROM tab0
----
-87
3094

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9141
SELECT col0 DIV + + col0 + - 88 AS col1 FROM tab2
----
-87
-87
-87

skipif mysql # not compatible
query I rowsort label-9141
SELECT col0 / + + col0 + - 88 AS col1 FROM tab2
----
-87
-87
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-9142
SELECT - 16 + + col0 + + col1 DIV col1 FROM tab1
----
36
70
76

skipif mysql # not compatible
query I rowsort label-9142
SELECT - 16 + + col0 + + col1 / col1 FROM tab1
----
36
70
76

query I rowsort
SELECT + 82 + - col1 + 39 + + ( + 31 ) * + col0 * col0 FROM tab1
----
224091
256785
80738

query I rowsort
SELECT DISTINCT + - col2 * - 14 * - - 87 * + col1 AS col0 FROM tab2 AS cor0
----
1428714
3751440
4733148

onlyif mysql # DIV for integer division: 
query I rowsort label-9145
SELECT DISTINCT - + 41 DIV + 90 + + col2 DIV + col1 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9145
SELECT DISTINCT - + 41 / + 90 + + col2 / + col1 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col0 * - + col2 / - col1 FROM tab0 WHERE col2 BETWEEN NULL AND + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9147
SELECT DISTINCT ( + col1 ) DIV 52 * - + col0 FROM tab2 AS cor0
----
-64
-75
0

skipif mysql # not compatible
query I rowsort label-9147
SELECT DISTINCT ( + col1 ) / 52 * - + col0 FROM tab2 AS cor0
----
-64
-75
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9148
SELECT - col1 * + 37 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
-1887
-2479
-2849

skipif mysql # not compatible
query I rowsort label-9148
SELECT - col1 * + 37 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
-1887
-2479
-2849

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, 30 * col0 FROM tab0 cor0
----
-10
2610
-47
450
-99
2910

query I rowsort
SELECT DISTINCT + + col0 / col0 * col1 - + + 42 - + + col0 + ( col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9151
SELECT DISTINCT + - 63 AS col0, 89 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-63
267

skipif mysql # not compatible
query II rowsort label-9151
SELECT DISTINCT + - 63 AS col0, 89 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-63
267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9152
SELECT - - CAST( - ( - col0 ) AS SIGNED ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9152
SELECT - - CAST ( - ( - col0 ) AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9153
SELECT ALL + col1 DIV col2 DIV - + col2 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9153
SELECT ALL + col1 / col2 / - + col2 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + 30 * ( - 86 ) AS col0 FROM tab1
----
-2580
-2580
-2580

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE ( NOT ( NOT ( NULL ) IS NULL ) )
----
15
87
97

query I rowsort
SELECT - 0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT 50 - + col2 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-8
10
27

onlyif mysql # DIV for integer division: 
query I rowsort label-9158
SELECT ALL col2 DIV + + 95 FROM tab1 cor0 WHERE NULL IS NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9158
SELECT ALL col2 / + + 95 FROM tab1 cor0 WHERE NULL IS NULL
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + col2 * - col2, + col1 + + col1 col2 FROM tab0 AS cor0
----
-2128
162
-79
42
-9800
2

query I rowsort
SELECT col0 * - 18 + - - col2 AS col0 FROM tab2 AS cor0
----
-1112
-1292
-805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9161
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - AVG ( DISTINCT col2 ) AS col2, SUM( + col1 ) FROM tab0 AS cor0
----
NULL
103

skipif mysql # not compatible
query II rowsort label-9161
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - AVG ( DISTINCT col2 ) AS col2, SUM ( + col1 ) FROM tab0 AS cor0
----
NULL
103

onlyif mysql # DIV for integer division: 
query I rowsort label-9162
SELECT + - col0 * - ( + 14 ) + + 47 DIV col1 FROM tab0 AS cor0
----
1220
1405
210

skipif mysql # not compatible
query I rowsort label-9162
SELECT + - col0 * - ( + 14 ) + + 47 / col1 FROM tab0 AS cor0
----
1220
1405
210

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL < + 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT - - COUNT( * ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9164
SELECT - - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT + col1 + + col1 + - + col0 * - col0 + col2 * + col1 AS col2 FROM tab2 AS cor0
----
3391
7330
9645

onlyif mysql # aggregate syntax: 
query II rowsort label-9166
SELECT ALL - MIN( ALL + 17 ) * + COUNT( * ) AS col0, - 67 FROM tab2 AS cor0 WHERE 60 IS NULL
----
NULL
-67

skipif mysql # not compatible
query II rowsort label-9166
SELECT ALL - MIN ( ALL + 17 ) * + COUNT ( * ) AS col0, - 67 FROM tab2 AS cor0 WHERE 60 IS NULL
----
NULL
-67

query I rowsort
SELECT ALL - 16 + + col2 + col0 FROM tab2 AS cor0
----
117
53
88

onlyif mysql # DIV for integer division: 
query II rowsort label-9168
SELECT DISTINCT col0, - col2 DIV + + 26 FROM tab1
----
51
-3
85
-2
91
-2

skipif mysql # not compatible
query II rowsort label-9168
SELECT DISTINCT col0, - col2 / + + 26 FROM tab1
----
51
-3
85
-2
91
-2

query II rowsort
SELECT ALL col1, 13 * + 99 AS col2 FROM tab1
----
14
1287
47
1287
5
1287

query I rowsort
SELECT DISTINCT + col0 * + + 31 * + col0 FROM tab1
----
223975
256711
80631

query I rowsort
SELECT + col2 * - + 64 * + col1 FROM tab1
----
-18880
-204544
-86016

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE + 41 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9172
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE + 41 IS NULL
----
0

query I rowsort
SELECT + 15 - - - 90 - + col0 FROM tab2 AS cor0
----
-121
-139
-150

query I rowsort
SELECT col2 * - + 98 - + 39 FROM tab1 AS cor0
----
-5821
-6703
-9447

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 28 - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + - col0 + - col1 * + + col1 FROM tab2 AS cor0
----
-2596
-4497
-5916

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 2 >= - col1 * - - col0 * 38 + + 61 + - - 12 + - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT + COUNT( * ) * 91 col2 FROM tab2 AS cor0
----
273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9178
SELECT + COUNT ( * ) * 91 col2 FROM tab2 AS cor0
----
273

query I rowsort
SELECT DISTINCT + col2 * - 34 FROM tab2 AS cor0
----
-1360
-1972
-782

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT ALL - + ( MAX( ALL - 41 ) ) FROM tab0 cor0
----
41

skipif mysql # not compatible
query I rowsort label-9180
SELECT ALL - + ( MAX ( ALL - 41 ) ) FROM tab0 cor0
----
41

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT DISTINCT + + 73 * + col0 * col0 FROM tab2 AS cor0
----
154468
299008
410625

query I rowsort
SELECT 60 * + col1 + + - ( + ( - col2 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT - 1 NOT BETWEEN - - col0 AND + 74
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 88 col0 FROM tab1 cor0
----
88
88
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 36 col1 FROM tab0 AS cor0 WHERE ( NOT - ( - + col0 ) - 78 IS NULL )
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT - + 31 + + COUNT( * ) FROM tab2 WHERE NOT 89 + - 1 IS NULL
----
-28

skipif mysql # not compatible
query I rowsort label-9186
SELECT - + 31 + + COUNT ( * ) FROM tab2 WHERE NOT 89 + - 1 IS NULL
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-9187
SELECT ALL 50 DIV - col0 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9187
SELECT ALL 50 / - col0 AS col2 FROM tab2
----
-1
0
0

query I rowsort
SELECT ALL + 20 * + 14 FROM tab2
----
280
280
280

query I rowsort
SELECT ( 59 ) AS col1 FROM tab1
----
59
59
59

query I rowsort
SELECT DISTINCT - 71 * + 39 FROM tab1 AS cor0
----
-2769

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT ALL 72 * - 35 AS col1 FROM tab0 AS cor0
----
-2520
-2520
-2520

query I rowsort
SELECT DISTINCT - col0 + + - col0 + - 36 AS col0 FROM tab0 AS cor0
----
-210
-230
-66

query II rowsort
SELECT DISTINCT - + 40 + - + 73 * + 10, 31 AS col2 FROM tab2 AS cor0
----
-770
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT ALL MIN( DISTINCT - col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-9195
SELECT ALL MIN ( DISTINCT - col1 ) FROM tab2
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-9196
SELECT ALL 23 DIV col1 * - 20 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL 23 / col1 * - 20 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT ALL ( - MIN( DISTINCT + 17 ) ) col0 FROM tab1 cor0
----
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9197
SELECT ALL ( - MIN ( DISTINCT + 17 ) ) col0 FROM tab1 cor0
----
-17

query II rowsort
SELECT 56 - + 57 AS col1, - col0 FROM tab1 AS cor0
----
-1
-51
-1
-85
-1
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9199
SELECT - CAST( NULL AS SIGNED ) + + col2 + + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9199
SELECT - CAST ( NULL AS INTEGER ) + + col2 + + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 60 + + 68 + + + col0 AS col2 FROM tab0
----
143
215
225

query I rowsort
SELECT DISTINCT 23 - col1 FROM tab2
----
-28
-44
-54

query I rowsort
SELECT DISTINCT + 87 - - col0 * + col0 - + - col0 - - - 86 * + col1 FROM tab1
----
1535
4417
6967

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT ALL COUNT( * ) - 0 + + + 29 AS col1 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL COUNT ( * ) - 0 + + + 29 AS col1 FROM tab1
----
32

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE - + 46 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9205
SELECT ALL + - ( AVG ( ALL - col0 ) ) AS col1 FROM tab1 WHERE NOT + ( + + col1 ) NOT BETWEEN - col0 - - + 24 AND 13 + - col0 / col1 + - CAST( - - 42 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9205
SELECT ALL + - ( AVG ( ALL - col0 ) ) AS col1 FROM tab1 WHERE NOT + ( + + col1 ) NOT BETWEEN - col0 - - + 24 AND 13 + - col0 / col1 + - CAST ( - - 42 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT DISTINCT - + MAX( DISTINCT - + 17 ) FROM tab1 cor0
----
17

skipif mysql # not compatible
query I rowsort label-9206
SELECT DISTINCT - + MAX ( DISTINCT - + 17 ) FROM tab1 cor0
----
17

query I rowsort
SELECT ALL col0 / 28 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL BETWEEN ( NULL ) AND NULL ) )
----

query I rowsort
SELECT DISTINCT + + 73 AS col0 FROM tab2 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT ( - - SUM( - col0 ) ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-9209
SELECT ( - - SUM ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT ALL - ( - COUNT( * ) ) * - - COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9210
SELECT ALL - ( - COUNT ( * ) ) * - - COUNT ( * ) FROM tab1 AS cor0
----
9

query II rowsort
SELECT ALL + col0, + 51 AS col1 FROM tab0
----
15
51
87
51
97
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9212
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9212
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9213
SELECT + col1 * col0 - - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9213
SELECT + col1 * col0 - - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9214
SELECT DISTINCT + + CAST( NULL AS SIGNED ), - CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-9214
SELECT DISTINCT + + CAST ( NULL AS INTEGER ), - CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

query I rowsort
SELECT + - col1 * - + col0 AS col2 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9216
SELECT DISTINCT COUNT( ALL 36 ), COUNT( * ) FROM tab0 cor0 WHERE NOT 57 IS NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-9216
SELECT DISTINCT COUNT ( ALL 36 ), COUNT ( * ) FROM tab0 cor0 WHERE NOT 57 IS NULL
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT MAX( col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9217
SELECT MAX ( col2 ) AS col1 FROM tab1 AS cor0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9218
SELECT + col2 DIV - col2 - - ( + col0 ) FROM tab0 AS cor0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-9218
SELECT + col2 / - col2 - - ( + col0 ) FROM tab0 AS cor0
----
14
86
96

query I rowsort
SELECT - - ( col1 ) * + - col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query II rowsort
SELECT - col2 AS col0, + col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query II rowsort
SELECT col0, 5 AS col2 FROM tab2 AS cor0
----
46
5
64
5
75
5

query I rowsort
SELECT ALL 2 * + 57 + - col0 AS col1 FROM tab2 AS cor0
----
39
50
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT ALL + MAX( ( + + col2 ) ) * - COUNT( * ) AS col2 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL + MAX ( ( + + col2 ) ) * - COUNT ( * ) AS col2 FROM tab1
----
-288

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT NULL >= - col0 * - col1 + - + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9225
SELECT - COUNT( * ) FROM tab2, tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-9225
SELECT - COUNT ( * ) FROM tab2, tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-9

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT col0 <= col2 )
----
15
81
47
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9227
SELECT DISTINCT 47 DIV + + col1 AS col1 FROM tab0
----
0
2
47

skipif mysql # not compatible
query I rowsort label-9227
SELECT DISTINCT 47 / + + col1 AS col1 FROM tab0
----
0
2
47

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 WHERE NOT - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT + MIN( ALL + col2 ) * + COUNT( * ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-9229
SELECT + MIN ( ALL + col2 ) * + COUNT ( * ) FROM tab2
----
69

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE ( NULL ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9231
SELECT ALL + ( - CAST( col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL + ( - CAST ( col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-9232
SELECT + 68 * COUNT( * ), - 81 col2 FROM tab0 AS cor0
----
204
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9232
SELECT + 68 * COUNT ( * ), - 81 col2 FROM tab0 AS cor0
----
204
-81

query I rowsort
SELECT - 97 + - 3 FROM tab2 AS cor0 WHERE col0 < + col1
----
-100
-100

query III rowsort
SELECT * FROM tab1 WHERE + + ( + 54 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT DISTINCT + - COUNT( + col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT + - COUNT ( + col0 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT 54 * col2 + - col0 FROM tab2 AS cor0
----
1196
2096
3057

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - ( 51 ) - - + ( + 28 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col2 col2 FROM tab0 cor0
----
-11
-34
98

query I rowsort
SELECT ALL - col2 - + 21 AS col2 FROM tab1 AS cor0
----
-117
-80
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT DISTINCT MAX( + col2 ) + - 34 col1 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9240
SELECT DISTINCT MAX ( + col2 ) + - 34 col1 FROM tab2 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT DISTINCT + + 18 - - COUNT( * ) FROM tab0 cor0
----
21

skipif mysql # not compatible
query I rowsort label-9241
SELECT DISTINCT + + 18 - - COUNT ( * ) FROM tab0 cor0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9242
SELECT DISTINCT 33 - - CAST( col0 AS SIGNED ) AS col1 FROM tab0
----
120
130
48

skipif mysql # not compatible
query I rowsort label-9242
SELECT DISTINCT 33 - - CAST ( col0 AS INTEGER ) AS col1 FROM tab0
----
120
130
48

query I rowsort
SELECT ALL col0 * + + 93 AS col0 FROM tab1
----
4743
7905
8463

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( + col1 ) * + 28 IS NULL
----

query I rowsort
SELECT col2 * + 3 - - 54 FROM tab2
----
123
174
228

query III rowsort
SELECT * FROM tab2 WHERE - + 91 IS NULL
----

query I rowsort
SELECT + - 32 FROM tab1 WHERE NOT + 10 >= - + ( - - col2 )
----

query II rowsort
SELECT ( - + col0 ) AS col1, - col0 FROM tab0
----
-15
-15
-87
-87
-97
-97

query II rowsort
SELECT ALL ( - col1 ) AS col0, - ( 33 ) FROM tab0
----
-1
-33
-21
-33
-81
-33

query I rowsort
SELECT ALL - - 45 FROM tab0 AS cor0
----
45
45
45

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col2 * col2 IN ( - ( col0 ), - col2, + col1 + + + col2, - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT ALL ( + COUNT( * ) ) * - COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9252
SELECT ALL ( + COUNT ( * ) ) * - COUNT ( * ) FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT - 5 * - ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9253
SELECT - 5 * - ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 24 AND 7
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * col1 NOT BETWEEN + - 17 * col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9256
SELECT ALL - col2 DIV + ( + 41 ) + + + col2 AS col2 FROM tab1 AS cor0
----
58
67
94

skipif mysql # not compatible
query I rowsort label-9256
SELECT ALL - col2 / + ( + 41 ) + + + col2 AS col2 FROM tab1 AS cor0
----
58
67
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT ALL - COUNT( - col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9257
SELECT ALL - COUNT ( - col0 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 9 * + - col2 + - + col1 NOT BETWEEN col1 + - col0 + + ( col0 ) * + col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9259
SELECT ALL - 93 * + CAST( NULL AS SIGNED ) / + - COUNT( - + col0 ) * - COUNT( * ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9259
SELECT ALL - 93 * + CAST ( NULL AS INTEGER ) / + - COUNT ( - + col0 ) * - COUNT ( * ) col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 col2 FROM tab2
----
58
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9261
SELECT - col1 * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9261
SELECT - col1 * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT DISTINCT MAX( - + 12 ) AS col2 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-9262
SELECT DISTINCT MAX ( - + 12 ) AS col2 FROM tab2
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 49 col2, - 24 + + col1 AS col1 FROM tab1
----
49
-10
49
-19
49
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT MIN( DISTINCT - + 2 ) + 63 / + + SUM( DISTINCT col0 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9264
SELECT MIN ( DISTINCT - + 2 ) + 63 / + + SUM ( DISTINCT col0 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9265
SELECT - CAST( NULL AS SIGNED ) / col0 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9265
SELECT - CAST ( NULL AS INTEGER ) / col0 col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 65, col1 FROM tab0
----
65
1
65
21
65
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9267
SELECT SUM( ALL + - col2 ) * 61 + MIN( DISTINCT + - 87 ) + CAST( NULL AS SIGNED ) / COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9267
SELECT SUM ( ALL + - col2 ) * 61 + MIN ( DISTINCT + - 87 ) + CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col0 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT - col1, col1 AS col0 FROM tab0
----
-1
1
-21
21
-81
81

query II rowsort
SELECT DISTINCT 97 + + col0 AS col0, col2 * - + col0 * - 68 + - col2 + - + col1 * + col0 AS col1 FROM tab2
----
143
69575
161
169112
172
290717

query I rowsort
SELECT ALL + col1 + - - 51 + + - col1 FROM tab2
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT ALL - - COUNT( ALL 55 ) + 93 col2 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9271
SELECT ALL - - COUNT ( ALL 55 ) + 93 col2 FROM tab0 AS cor0
----
96

query I rowsort
SELECT ALL ( - + col1 ) * col0 * 44 FROM tab0 AS cor0 WHERE NULL <> + col0
----

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( - col1 ) - - 27 + - - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9275
SELECT * FROM tab1 WHERE + col2 / - + col1 * - CAST( NULL AS SIGNED ) + - + 75 / 39 + - - ( + + 23 ) < + - ( + + CAST( - - col1 AS SIGNED ) ) * col0
----

skipif mysql # not compatible
query III rowsort label-9275
SELECT * FROM tab1 WHERE + col2 / - + col1 * - CAST ( NULL AS INTEGER ) + - + 75 / 39 + - - ( + + 23 ) < + - ( + + CAST ( - - col1 AS INTEGER ) ) * col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9276
SELECT ALL - COUNT( * ) * - + 98 * - - MIN( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL - COUNT ( * ) * - + 98 * - - MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NULL IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT + MIN( + col0 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9278
SELECT + MIN ( + col0 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9279
SELECT ALL + + col2 * + + col0 + - col0 DIV - - col0 col0 FROM tab1 cor0
----
4895
5014
6187

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9279
SELECT ALL + + col2 * + + col0 + - col0 / - - col0 col0 FROM tab1 cor0
----
4895
5014
6187

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT COUNT( * ) - 92 AS col0 FROM tab0 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-9280
SELECT COUNT ( * ) - 92 AS col0 FROM tab0 AS cor0
----
-89

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 95 + + ( - col0 ) BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT + - COUNT( - col1 ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9282
SELECT + - COUNT ( - col1 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL col0 - + 38 * + 77 FROM tab1 AS cor0
----
-2835
-2841
-2875

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT - 63 + + COUNT( * ) FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-9284
SELECT - 63 + + COUNT ( * ) FROM tab0
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-9285
SELECT + SUM( ALL + - ( - col0 ) ) col2, + COUNT( * ) FROM tab2
----
185
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9285
SELECT + SUM ( ALL + - ( - col0 ) ) col2, + COUNT ( * ) FROM tab2
----
185
3

query II rowsort
SELECT + 65, 12 * + col2 AS col1 FROM tab1
----
65
1152
65
708
65
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col0, - col1 col1 FROM tab0
----
1
-1
21
-21
81
-81

query II rowsort
SELECT DISTINCT 17, + 9 AS col2 FROM tab1
----
17
9

query II rowsort
SELECT ALL - col2 AS col2, + col1 AS col2 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9290
SELECT ALL + 49 DIV - COUNT( DISTINCT col2 ) FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL + 49 / - COUNT ( DISTINCT col2 ) FROM tab2 AS cor0
----
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 + col2 col0 FROM tab1 AS cor0 WHERE NOT col0 * - 84 + - 33 * + 62 IS NULL
----
-1248
-236
-3128

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT DISTINCT SUM( ALL + + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9292
SELECT DISTINCT SUM ( ALL + + col2 ) FROM tab0 AS cor0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, - col1 AS col1 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9294
SELECT ALL + CAST( 92 AS SIGNED ) FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9294
SELECT ALL + CAST ( 92 AS INTEGER ) FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( 11 ) FROM tab0
----
11
11
11

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT + col2 = ( col0 + - col0 )
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9297
SELECT * FROM tab1 WHERE NOT - col2 <> ( CAST( + col0 AS SIGNED ) ) * + 22 + - 2
----

skipif mysql # not compatible
query III rowsort label-9297
SELECT * FROM tab1 WHERE NOT - col2 <> ( CAST ( + col0 AS INTEGER ) ) * + 22 + - 2
----

query I rowsort
SELECT col2 FROM tab2 WHERE NOT col0 + 21 >= 67
----

query I rowsort
SELECT col2 FROM tab2 WHERE NOT + 53 / col1 - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 + - col1 * 91 AS col2 FROM tab2
----
-4590
-6030
-6930

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE 70 IN ( - col0 * + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 NOT BETWEEN NULL AND + 39
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9303
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE ( col1 * col0 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9303
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE ( col1 * col0 ) IS NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NULL BETWEEN ( 86 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT DISTINCT - SUM( ALL + 47 ) + - ( + 75 ) AS col1 FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-9305
SELECT DISTINCT - SUM ( ALL + 47 ) + - ( + 75 ) AS col1 FROM tab0
----
-216

query I rowsort
SELECT DISTINCT + col1 * 72 FROM tab0
----
1512
5832
72

query I rowsort
SELECT + 26 * ( col0 ) AS col1 FROM tab0
----
2262
2522
390

query I rowsort
SELECT - 16 + col1 AS col1 FROM tab2
----
35
51
61

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT DISTINCT + 49 + COUNT( * ) AS col2 FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-9310
SELECT DISTINCT + 49 + COUNT ( * ) AS col2 FROM tab0
----
52

query I rowsort
SELECT 39 * col1 FROM tab0 WHERE NOT 24 IS NULL
----
3159
39
819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9312
SELECT 64 * + COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9312
SELECT 64 * + COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 31 ) col1 FROM tab1
----
-31
-31
-31

query I rowsort
SELECT ALL 17 / col0 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT - col1 * + col2 + - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT - col1 * + col2 + - col1 IS NULL
----
3

query III rowsort
SELECT * FROM tab0 WHERE - 34 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT DISTINCT + MIN( ALL col1 ) + - COUNT( * ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-9317
SELECT DISTINCT + MIN ( ALL col1 ) + - COUNT ( * ) FROM tab2 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) + 57 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-9318
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) + 57 FROM tab1 AS cor0
----
48

query I rowsort
SELECT - ( 82 ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col0 * col1 AS col2 FROM tab2 AS cor0 WHERE ( 60 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9321
SELECT DISTINCT + ( col1 ) DIV 77 + - col2 * col2 AS col0 FROM tab2 AS cor0
----
-1599
-3364
-529

skipif mysql # not compatible
query I rowsort label-9321
SELECT DISTINCT + ( col1 ) / 77 + - col2 * col2 AS col0 FROM tab2 AS cor0
----
-1599
-3364
-529

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 <> 63 * 16
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 + 50 < + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( col1 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( col1 ) AND NULL
----
0

query I rowsort
SELECT + + ( col0 ) * 36 AS col2 FROM tab2 AS cor0
----
1656
2304
2700

query I rowsort
SELECT col1 + 49 AS col2 FROM tab0 AS cor0 WHERE ( + col1 ) IN ( 59 )
----

query I rowsort
SELECT - 79 * 92 FROM tab2 AS cor0
----
-7268
-7268
-7268

onlyif mysql # DIV for integer division: 
query I rowsort label-9328
SELECT DISTINCT + - 54 DIV - 70 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9328
SELECT DISTINCT + - 54 / - 70 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9329
SELECT ALL + COUNT( * ) DIV 10 + - 99 AS col2 FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9329
SELECT ALL + COUNT ( * ) / 10 + - 99 AS col2 FROM tab1 AS cor0
----
-99

query I rowsort
SELECT + + col0 * 34 AS col0 FROM tab0 AS cor0
----
2958
3298
510

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * col1 + col2 NOT IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT + 77 BETWEEN ( - col0 - 35 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( + col1 ) ) <> + col0 * - col2 + col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT DISTINCT COUNT( * ) * + 74 * + 32 FROM tab2
----
7104

skipif mysql # not compatible
query I rowsort label-9334
SELECT DISTINCT COUNT ( * ) * + 74 * + 32 FROM tab2
----
7104

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9335
SELECT DISTINCT * FROM tab0 WHERE ( 39 ) + + CAST( col2 AS DECIMAL ) * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9335
SELECT DISTINCT * FROM tab0 WHERE ( 39 ) + + CAST ( col2 AS REAL ) * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9336
SELECT DISTINCT + ( + col0 ) DIV + col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9336
SELECT DISTINCT + ( + col0 ) / + col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT ( ( COUNT( * ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9337
SELECT ( ( COUNT ( * ) ) ) FROM tab1
----
3

query I rowsort
SELECT 30 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT DISTINCT - COUNT( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9339
SELECT DISTINCT - COUNT ( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9340
SELECT DISTINCT col0 DIV 72 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9340
SELECT DISTINCT col0 / 72 FROM tab1 AS cor0
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT 56 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( 43 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 47 * + col1 AS col2 FROM tab2
----
-2397
-3149
-3619

query I rowsort
SELECT ALL - 55 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + + ( - 95 ) / ( col2 ) + col0 ) NOT BETWEEN ( NULL ) AND + col1 * + 80
----

query I rowsort
SELECT ALL - - ( + 44 ) AS col0 FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT ALL 98 FROM tab0 AS cor0 WHERE col0 < col0 * - col2
----

query I rowsort
SELECT ALL + col1 + - - 13 + + col0 FROM tab2 AS cor0
----
110
154
155

query I rowsort
SELECT - 72 FROM tab2 AS cor0 WHERE ( 67 ) IS NOT NULL
----
-72
-72
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - - col1 + + + col2 * - col2 col2 FROM tab0 AS cor0
----
-2113
-9703
8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 <> 12
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT COUNT( DISTINCT + 83 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9352
SELECT COUNT ( DISTINCT + 83 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT COUNT( * ) * + - 45 FROM tab2
----
-135

skipif mysql # not compatible
query I rowsort label-9353
SELECT COUNT ( * ) * + - 45 FROM tab2
----
-135

query I rowsort
SELECT + 86 + - 62 FROM tab0
----
24
24
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9355
SELECT ALL 4 + + col2 + - col2 + CAST( NULL AS SIGNED ) + - 47 * - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL 4 + + col2 + - col2 + CAST ( NULL AS INTEGER ) + - 47 * - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 33 + - ( + col2 ) FROM tab0
----
-14
-66
23

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE ( ( + 57 ) ) IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT - ( COUNT( * ) ) * - 99 * COUNT( * ) + ( + 63 ) AS col1 FROM tab1
----
954

skipif mysql # not compatible
query I rowsort label-9358
SELECT - ( COUNT ( * ) ) * - 99 * COUNT ( * ) + ( + 63 ) AS col1 FROM tab1
----
954

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9359
SELECT col1 + 96 FROM tab2 WHERE - - col0 + - - col1 / CAST( - ( - col1 ) + - CAST( NULL AS SIGNED ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9359
SELECT col1 + 96 FROM tab2 WHERE - - col0 + - - col1 / CAST ( - ( - col1 ) + - CAST ( NULL AS INTEGER ) AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9360
SELECT + ( - ( 65 ) ) DIV + 69 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9360
SELECT + ( - ( 65 ) ) / + 69 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9361
SELECT DISTINCT - 12 FROM tab2 AS cor0 WHERE NOT NULL < CAST( - + col0 AS SIGNED ) / - col0 * 67 + + col0
----

skipif mysql # not compatible
query I rowsort label-9361
SELECT DISTINCT - 12 FROM tab2 AS cor0 WHERE NOT NULL < CAST ( - + col0 AS INTEGER ) / - col0 * 67 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT ALL + SUM( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL + SUM ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
66

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( + 57 )
----

query I rowsort
SELECT + - 59 * + + col2 AS col2 FROM tab0 cor0
----
-2773
-5841
-590

query I rowsort
SELECT - ( 88 ) * + + col1 FROM tab1 AS cor0
----
-1232
-4136
-440

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT MIN( + 40 ) FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-9366
SELECT MIN ( + 40 ) FROM tab2 AS cor0
----
40

query I rowsort
SELECT DISTINCT 37 * - col0 * - + 80 FROM tab0
----
257520
287120
44400

query I rowsort
SELECT ALL 55 * + col1 AS col1 FROM tab0
----
1155
4455
55

query I rowsort
SELECT DISTINCT + col0 * - 42 FROM tab0
----
-3654
-4074
-630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9370
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL NOT IN ( - + col1, - col2 )
----

skipif mysql # not compatible
query I rowsort label-9370
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL NOT IN ( - + col1, - col2 )
----

query I rowsort
SELECT DISTINCT 11 * 3 * col0 * - + col0 FROM tab1
----
-238425
-273273
-85833

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT - SUM( ALL + 64 ) FROM tab2, tab1 AS cor0
----
-576

skipif mysql # not compatible
query I rowsort label-9372
SELECT - SUM ( ALL + 64 ) FROM tab2, tab1 AS cor0
----
-576

query I rowsort
SELECT ALL 24 FROM tab0 WHERE NOT col1 IS NULL
----
24
24
24

query I rowsort
SELECT - - 86 AS col1 FROM tab2 AS cor0 WHERE NOT - 75 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + + col2 AS col1, + col0 + - - ( + col1 ) * col1 AS col2 FROM tab0 AS cor0
----
10
528
47
6576
99
98

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9377
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - 45 + - - col1 / 88 <= - + CAST( NULL AS SIGNED ) + - col2
----

skipif mysql # not compatible
query III rowsort label-9377
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - 45 + - - col1 / 88 <= - + CAST ( NULL AS INTEGER ) + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT DISTINCT + COUNT( * ) * + ( + 45 ) FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-9378
SELECT DISTINCT + COUNT ( * ) * + ( + 45 ) FROM tab2
----
135

query I rowsort
SELECT 52 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9380
SELECT + + AVG ( CAST( NULL AS SIGNED ) ) + + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9380
SELECT + + AVG ( CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9381
SELECT ALL - COUNT( * ) + - COUNT( * ) AS col0, - ( 12 ) FROM tab1 cor0
----
-6
-12

skipif mysql # not compatible
query II rowsort label-9381
SELECT ALL - COUNT ( * ) + - COUNT ( * ) AS col0, - ( 12 ) FROM tab1 cor0
----
-6
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT DISTINCT - SUM( ALL + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9382
SELECT DISTINCT - SUM ( ALL + col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9383
SELECT + + col0 + - CAST( - col0 AS SIGNED ) AS col1, + 59 FROM tab2 AS cor0
----
128
59
150
59
92
59

skipif mysql # not compatible
query II rowsort label-9383
SELECT + + col0 + - CAST ( - col0 AS INTEGER ) AS col1, + 59 FROM tab2 AS cor0
----
128
59
150
59
92
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT DISTINCT - - COUNT( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN ( - 67 ) AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-9384
SELECT DISTINCT - - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN ( - 67 ) AND - col1
----
0

query I rowsort
SELECT + + col0 + - 13 AS col1 FROM tab0 AS cor0
----
2
74
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9386
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( + ( col2 ) ) * CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9386
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( + ( col2 ) ) * CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE - col1 * 70 NOT BETWEEN NULL AND ( + + 33 + col2 + + col0 * col1 / - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9387
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE - col1 * 70 NOT BETWEEN NULL AND ( + + 33 + col2 + + col0 * col1 / - col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9388
SELECT DISTINCT + CAST( - - col1 AS SIGNED ) + + col0 - col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9388
SELECT DISTINCT + CAST ( - - col1 AS INTEGER ) + + col0 - col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT DISTINCT - + 30 + - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
-30

skipif mysql # not compatible
query I rowsort label-9389
SELECT DISTINCT - + 30 + - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-9390
SELECT DISTINCT + 65 DIV - col0 + - + col1 FROM tab0
----
-1
-21
-85

skipif mysql # not compatible
query I rowsort label-9390
SELECT DISTINCT + 65 / - col0 + - + col1 FROM tab0
----
-1
-21
-85

query III rowsort
SELECT * FROM tab2 WHERE ( + 31 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - - col2, col1 )
----

query I rowsort
SELECT ALL col1 * - - col2 + + col2 * + + 33 FROM tab2
----
1932
4400
5800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9394
SELECT DISTINCT - CAST( - col1 AS SIGNED ) - - col1 AS col0 FROM tab1
----
10
28
94

skipif mysql # not compatible
query I rowsort label-9394
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) - - col1 AS col0 FROM tab1
----
10
28
94

query I rowsort
SELECT 36 * col2 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9396
SELECT col0 DIV 40 FROM tab0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-9396
SELECT col0 / 40 FROM tab0
----
0
2
2

query I rowsort
SELECT ALL 56 / col2 + col2 * col2 AS col1 FROM tab0 WHERE NOT ( - col2 ) NOT IN ( - 40 * col2 * - - col1 * ( 16 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 * - + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 + 74 + + 29 * + col2 * + 73 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col0 AS col1, - 43 * 50 AS col1 FROM tab2 WHERE + col0 IS NOT NULL
----
46
-2150
64
-2150
75
-2150

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT ALL + COUNT( + - 11 ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL + COUNT ( + - 11 ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query I rowsort
SELECT DISTINCT + - 62 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-62

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( col1 / + col1, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT DISTINCT - + ( + + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9405
SELECT DISTINCT - + ( + + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9406
SELECT + + COUNT( * ) DIV + 30 + - 21 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-9406
SELECT + + COUNT ( * ) / + 30 + - 21 FROM tab1 AS cor0
----
-21

query I rowsort
SELECT - col0 * - col1 - - col2 AS col1 FROM tab2 AS cor0
----
2369
4968
5083

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 10 NOT BETWEEN + col2 - + col2 + 66 AND - + col2
----

query I rowsort
SELECT - 29 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-29
-29
-29

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 * 94 / + - col1 + - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT ALL - COUNT( * ) * - + 51 AS col0 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-9411
SELECT ALL - COUNT ( * ) * - + 51 AS col0 FROM tab1
----
153

query I rowsort
SELECT DISTINCT col1 * + 77 * + col2 AS col1 FROM tab2
----
237160
299222
90321

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT ALL + 88 * - COUNT( * ) * 6 FROM tab1
----
-1584

skipif mysql # not compatible
query I rowsort label-9413
SELECT ALL + 88 * - COUNT ( * ) * 6 FROM tab1
----
-1584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 40 ) col2 FROM tab0
----
-40
-40
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col1 ) col0 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT - 47 * + - 85 FROM tab2 AS cor0
----
3995

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9417
SELECT * FROM tab2 cor0 WHERE NOT col1 + CAST( + col0 AS SIGNED ) + + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9417
SELECT * FROM tab2 cor0 WHERE NOT col1 + CAST ( + col0 AS INTEGER ) + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT DISTINCT - COUNT( * ) * + + COUNT( * ) + + 87 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
6

skipif mysql # not compatible
query I rowsort label-9418
SELECT DISTINCT - COUNT ( * ) * + + COUNT ( * ) + + 87 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
6

query I rowsort
SELECT DISTINCT - + 18 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col0 ) BETWEEN - 75 AND NULL OR NOT NULL IN ( - col2 )
----
87
21
10
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 + - col2 AS col2, col0 col0 FROM tab0 AS cor0
----
-196
97
-62
15
-97
87

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 * 4 BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT + SUM( ALL + - ( - 55 ) ) FROM tab1 cor0 WHERE - 57 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9423
SELECT + SUM ( ALL + - ( - 55 ) ) FROM tab1 cor0 WHERE - 57 <> NULL
----
NULL

query I rowsort
SELECT DISTINCT - - 76 * - 67 + - col0 FROM tab0 AS cor0
----
-5107
-5179
-5189

query I rowsort
SELECT ALL + - col0 - + col0 AS col1 FROM tab1 AS cor0
----
-102
-170
-182

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> - 8 * + col0
----

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9428
SELECT - col1 DIV col1 * - col1 + 90 FROM tab2
----
141
157
167

skipif mysql # not compatible
query I rowsort label-9428
SELECT - col1 / col1 * - col1 + 90 FROM tab2
----
141
157
167

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT ALL - ( - ( - - SUM( + + 92 ) ) ) AS col2 FROM tab2
----
276

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL - ( - ( - - SUM ( + + 92 ) ) ) AS col2 FROM tab2
----
276

query I rowsort
SELECT ALL col0 * - 48 FROM tab1
----
-2448
-4080
-4368

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( + 82 ) col1, - col2 FROM tab1
----
-82
-59
-82
-68
-82
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9432
SELECT ALL ( 49 ) + - CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-18
-2
-28

skipif mysql # not compatible
query I rowsort label-9432
SELECT ALL ( 49 ) + - CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-18
-2
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9433
SELECT - CAST( - COUNT( * ) AS SIGNED ), - 38 col1 FROM tab2 AS cor0
----
3
-38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9433
SELECT - CAST ( - COUNT ( * ) AS INTEGER ), - 38 col1 FROM tab2 AS cor0
----
3
-38

onlyif mysql # DIV for integer division: 
query II rowsort label-9434
SELECT ALL - 40 DIV + + 57, + col2 * + 12 AS col2 FROM tab0 AS cor0
----
0
1188
0
120
0
564

skipif mysql # not compatible
query II rowsort label-9434
SELECT ALL - 40 / + + 57, + col2 * + 12 AS col2 FROM tab0 AS cor0
----
0
1188
0
120
0
564

query I rowsort
SELECT DISTINCT - - ( 53 ) FROM tab1 AS cor0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9436
SELECT + CAST( + 84 AS SIGNED ) AS col1 FROM tab0
----
84
84
84

skipif mysql # not compatible
query I rowsort label-9436
SELECT + CAST ( + 84 AS INTEGER ) AS col1 FROM tab0
----
84
84
84

query I rowsort
SELECT + + 29 / - - col2 AS col0 FROM tab2 WHERE NOT 70 * + 92 * + col2 IS NOT NULL
----

query I rowsort
SELECT ALL - 45 * col1 + 68 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT - COUNT( * ) * 24 FROM tab1 cor0 WHERE NOT NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9439
SELECT - COUNT ( * ) * 24 FROM tab1 cor0 WHERE NOT NULL <> ( NULL )
----
0

query II rowsort
SELECT DISTINCT + + col0 AS col2, - 52 AS col1 FROM tab1 AS cor0
----
51
-52
85
-52
91
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT DISTINCT - + COUNT( ALL - ( - ( 79 ) ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9441
SELECT DISTINCT - + COUNT ( ALL - ( - ( 79 ) ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9442
SELECT col0 DIV + + 62 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9442
SELECT col0 / + + 62 FROM tab1 AS cor0
----
0
1
1

query II rowsort
SELECT DISTINCT + col0 AS col2, col0 AS col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT ALL + - 90 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL + - 90 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
270

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9445
SELECT * FROM tab0 cor0 WHERE NOT ( + CAST( + col0 AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-9445
SELECT * FROM tab0 cor0 WHERE NOT ( + CAST ( + col0 AS INTEGER ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT DISTINCT - COUNT( * ) * - 28 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-9446
SELECT DISTINCT - COUNT ( * ) * - 28 FROM tab1 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT DISTINCT SUM( DISTINCT - - col1 ) col0 FROM tab0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9447
SELECT DISTINCT SUM ( DISTINCT - - col1 ) col0 FROM tab0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9448
SELECT ALL col0 * + col0 AS col2 FROM tab2 WHERE NOT CAST( + col1 AS SIGNED ) * + - col2 IS NULL
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-9448
SELECT ALL col0 * + col0 AS col2 FROM tab2 WHERE NOT CAST ( + col1 AS INTEGER ) * + - col2 IS NULL
----
2116
4096
5625

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IS NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 = - - 28
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9451
SELECT COUNT( DISTINCT - 16 ) AS col1, + COUNT( * ) col0 FROM tab2
----
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9451
SELECT COUNT ( DISTINCT - 16 ) AS col1, + COUNT ( * ) col0 FROM tab2
----
1
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + - 25 ), + 71 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9453
SELECT ALL - 30 + + COUNT( * ) DIV + - 30 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-9453
SELECT ALL - 30 + + COUNT ( * ) / + - 30 FROM tab1 AS cor0
----
-30

query I rowsort
SELECT DISTINCT - ( + - 13 ) FROM tab1, tab2 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT DISTINCT SUM( ALL - + 36 ) AS col0 FROM tab0
----
-108

skipif mysql # not compatible
query I rowsort label-9455
SELECT DISTINCT SUM ( ALL - + 36 ) AS col0 FROM tab0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT 91 + + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
100

skipif mysql # not compatible
query I rowsort label-9456
SELECT 91 + + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
100

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9457
SELECT - 30 * + ( - + COUNT( * ) ) + ( CAST( NULL AS DECIMAL ) ) * + COUNT( * ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9457
SELECT - 30 * + ( - + COUNT ( * ) ) + ( CAST ( NULL AS REAL ) ) * + COUNT ( * ) FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 36 * - - col2 <> + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = + col2 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9460
SELECT ALL + - CAST( NULL AS SIGNED ) + 4 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL + - CAST ( NULL AS INTEGER ) + 4 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 39 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT - + COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9462
SELECT - + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9463
SELECT ALL + 49 DIV - + 20 + + ( + ( - col2 ) ) FROM tab1 AS cor0
----
-61
-70
-98

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL + 49 / - + 20 + + ( + ( - col2 ) ) FROM tab1 AS cor0
----
-61
-70
-98

query I rowsort
SELECT - - ( + 79 ) FROM tab1 AS cor0
----
79
79
79

query I rowsort
SELECT DISTINCT + col0 + + 6 AS col0 FROM tab1 AS cor0
----
57
91
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9466
SELECT - + CAST( NULL AS SIGNED ) / + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9466
SELECT - + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9467
SELECT ALL + + 55 + col1 * col0 col0, + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1270
NULL
152
NULL
1882
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9467
SELECT ALL + + 55 + col1 * col0 col0, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1270
NULL
152
NULL
1882
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9468
SELECT DISTINCT * FROM tab2 cor0 WHERE 51 BETWEEN + 12 + + CAST( NULL AS SIGNED ) + - 24 * + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9468
SELECT DISTINCT * FROM tab2 cor0 WHERE 51 BETWEEN + 12 + + CAST ( NULL AS INTEGER ) + - 24 * + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9469
SELECT ALL col1 + + CAST( CAST( + col0 AS DECIMAL ) AS SIGNED ), + col0 AS col2 FROM tab0
----
108
87
96
15
98
97

skipif mysql # not compatible
query II rowsort label-9469
SELECT ALL col1 + + CAST ( CAST ( + col0 AS REAL ) AS INTEGER ), + col0 AS col2 FROM tab0
----
108
87
96
15
98
97

query I rowsort
SELECT DISTINCT ( 70 ) AS col0 FROM tab2 WHERE NULL > col2
----

query I rowsort
SELECT DISTINCT ( - 94 ) AS col0 FROM tab1
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9472
SELECT ALL CAST( + MIN( CAST( - col2 AS SIGNED ) ) AS SIGNED ) * + - 28 - - 16 FROM tab1
----
2704

skipif mysql # not compatible
query I rowsort label-9472
SELECT ALL CAST ( + MIN ( CAST ( - col2 AS INTEGER ) ) AS INTEGER ) * + - 28 - - 16 FROM tab1
----
2704

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT + COUNT( DISTINCT col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9473
SELECT + COUNT ( DISTINCT col1 ) AS col2 FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 WHERE - + 84 <> - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 * - 17 - + - col2 AS col1 FROM tab1
----
-1088
-1536
-944

onlyif mysql # DIV for integer division: 
query I rowsort label-9476
SELECT DISTINCT + 38 DIV col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9476
SELECT DISTINCT + 38 / col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT + MIN( + 53 ) - - 12 FROM tab0 cor0
----
65

skipif mysql # not compatible
query I rowsort label-9477
SELECT + MIN ( + 53 ) - - 12 FROM tab0 cor0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9478
SELECT - + col0 * - ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9478
SELECT - + col0 * - ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT ALL - MAX( DISTINCT + col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL - MAX ( DISTINCT + col2 ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT + col2 + + col2 AS col0 FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( - 63 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 32 col2 FROM tab0 AS cor0
----
32
32
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9482
SELECT ALL col2 * col0 / CAST( NULL AS SIGNED ) * col2 / ( + col1 ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9482
SELECT ALL col2 * col0 / CAST ( NULL AS INTEGER ) * col2 / ( + col1 ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT DISTINCT + MAX( DISTINCT - col0 ) FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9483
SELECT DISTINCT + MAX ( DISTINCT - col0 ) FROM tab2 cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT DISTINCT + SUM( DISTINCT - 61 ) FROM tab1
----
-61

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT + SUM ( DISTINCT - 61 ) FROM tab1
----
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 8 col0 FROM tab2
----
408
536
616

onlyif mysql # aggregate syntax: 
query II rowsort label-9486
SELECT ALL - COUNT( * ) AS col2, + 42 AS col2 FROM tab0
----
-3
42

skipif mysql # not compatible
query II rowsort label-9486
SELECT ALL - COUNT ( * ) AS col2, + 42 AS col2 FROM tab0
----
-3
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT ( COUNT( * ) ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9487
SELECT ( COUNT ( * ) ) col0 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + ( col0 ) * 69 * - col1 - - 43 + - - col1 - - col0 col2 FROM tab1 AS cor0
----
-29251
-295000
-49254

query I rowsort
SELECT ALL - - ( ( + col2 ) ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT + col0 + col1 FROM tab1 AS cor0 WHERE col2 + + col2 IS NOT NULL
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT COUNT( * ) * + MAX( - col2 ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-9491
SELECT COUNT ( * ) * + MAX ( - col2 ) FROM tab2
----
-69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9492
SELECT CAST( NULL AS DECIMAL ) * + col1 / + + 65 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9492
SELECT CAST ( NULL AS REAL ) * + col1 / + + 65 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 31 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( ( + col0 ) ) AS col0 FROM tab2 AS cor0 WHERE NULL < - ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT DISTINCT + + COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9495
SELECT DISTINCT + + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL col2 + - 66 FROM tab2 AS cor0
----
-26
-43
-8

query I rowsort
SELECT - - 87 AS col1 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT + col1 + col0 - + 21 FROM tab2 AS cor0
----
120
121
76

query I rowsort
SELECT 32 * + col2 + - - col0 FROM tab1
----
1973
2267
3123

query I rowsort
SELECT ALL col1 - + col2 + + - col0 + 51 * + - 44 * 39 + - col0 * - + col2 - - col1 FROM tab2
----
-83165
-84906
-86425

query I rowsort
SELECT - - ( 58 ) * + 62 AS col2 FROM tab2 cor0
----
3596
3596
3596

onlyif mysql # DIV for integer division: 
query II rowsort label-9502
SELECT ALL + 93 DIV col0 + + col1 - + - col2 + col2 AS col1, 77 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN + col2 * 30 * - col0 AND - 35
----
124
77
184
77
207
77

skipif mysql # not compatible
query II rowsort label-9502
SELECT ALL + 93 / col0 + + col1 - + - col2 + col2 AS col1, 77 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN + col2 * 30 * - col0 AND - 35
----
124
77
184
77
207
77

query I rowsort
SELECT ALL - - 28 * - + 92 AS col1 FROM tab2 AS cor0
----
-2576
-2576
-2576

query I rowsort
SELECT + col0 * + + col1 FROM tab0 AS cor0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 86 * col1 + col1 + + + 26 + - + col1 col0, col1 AS col0 FROM tab2 AS cor0
----
4412
51
5788
67
6648
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9506
SELECT ALL + COUNT( * ) / ( - + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9506
SELECT ALL + COUNT ( * ) / ( - + CAST ( NULL AS REAL ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9507
SELECT - 99, + 59 DIV + 65 AS col0 FROM tab1 AS cor0
----
-99
0
-99
0
-99
0

skipif mysql # not compatible
query II rowsort label-9507
SELECT - 99, + 59 / + 65 AS col0 FROM tab1 AS cor0
----
-99
0
-99
0
-99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT ALL + COUNT( - col2 ) * - + 17 AS col2 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL + COUNT ( - col2 ) * - + 17 AS col2 FROM tab0 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT ALL - COUNT( + col0 ) * COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9509
SELECT ALL - COUNT ( + col0 ) * COUNT ( * ) FROM tab0 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + - col2 + + col1 + + - 32 * + col0 AS col2 FROM tab1 AS cor0
----
-1714
-2774
-2933

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9511
SELECT * FROM tab2 WHERE NULL IN ( - CAST( + ( 92 ) AS SIGNED ) * 52 + - + col0, - 54 * - - 84 * + + ( - col2 ) )
----

skipif mysql # not compatible
query III rowsort label-9511
SELECT * FROM tab2 WHERE NULL IN ( - CAST ( + ( 92 ) AS INTEGER ) * 52 + - + col0, - 54 * - - 84 * + + ( - col2 ) )
----

query I rowsort
SELECT DISTINCT col2 * - col1 FROM tab0 WHERE NULL <= - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 + - col2 col0 FROM tab2 WHERE NULL > col0
----

query I rowsort
SELECT 98 + + 20 FROM tab2 AS cor0
----
118
118
118

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9515
SELECT ALL + + CAST( + + 1 AS SIGNED ) + - 86, + ( - - col2 ) AS col0 FROM tab1 AS cor0
----
-85
59
-85
68
-85
96

skipif mysql # not compatible
query II rowsort label-9515
SELECT ALL + + CAST ( + + 1 AS INTEGER ) + - 86, + ( - - col2 ) AS col0 FROM tab1 AS cor0
----
-85
59
-85
68
-85
96

query I rowsort
SELECT ALL 54 * + col0 - - col0 * - col1 AS col1 FROM tab0 AS cor0
----
-405
2871
5141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 6 ) col0 FROM tab2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9518
SELECT CAST( - 92 AS SIGNED ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9518
SELECT CAST ( - 92 AS INTEGER ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9519
SELECT - col0 + col1 DIV 98 AS col2, 33 FROM tab2
----
-46
33
-64
33
-75
33

skipif mysql # not compatible
query II rowsort label-9519
SELECT - col0 + col1 / 98 AS col2, 33 FROM tab2
----
-46
33
-64
33
-75
33

query I rowsort
SELECT DISTINCT - - col0 * 90 + - col2 FROM tab1 AS cor0
----
4494
7591
8122

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - 68 IN ( + col1 )
----
3

skipif mysql # not compatible
query I rowsort label-9521
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - 68 IN ( + col1 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT ALL - 22 * - 46 * + COUNT( * ) + + - 31 FROM tab0 AS cor0
----
3005

skipif mysql # not compatible
query I rowsort label-9522
SELECT ALL - 22 * - 46 * + COUNT ( * ) + + - 31 FROM tab0 AS cor0
----
3005

onlyif mysql # aggregate syntax: 
query II rowsort label-9523
SELECT COUNT( * ) AS col1, - COUNT( * ) FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-9523
SELECT COUNT ( * ) AS col1, - COUNT ( * ) FROM tab1 AS cor0
----
3
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) < + + col0
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 * + + ( col2 ) + + col2 NOT IN ( - + col0 - col0 / + col1 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * - 4 * - - col2 - + + col2 FROM tab1 WHERE NOT + 70 + col1 IS NULL
----
-13983
-18564
-36960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 83 * - 89 col1 FROM tab1
----
-435833
-502316
-709152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9528
SELECT col1 * - + CAST( + 74 AS SIGNED ) FROM tab0
----
-1554
-5994
-74

skipif mysql # not compatible
query I rowsort label-9528
SELECT col1 * - + CAST ( + 74 AS INTEGER ) FROM tab0
----
-1554
-5994
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9529
SELECT ALL + CAST( NULL AS SIGNED ) * 5 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9529
SELECT ALL + CAST ( NULL AS INTEGER ) * 5 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + ( col2 ) ) FROM tab1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - col0 * + ( + col1 ) AS col2 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9532
SELECT DISTINCT ( - COUNT( * ) ), COUNT( col1 ) DIV - 59 AS col2 FROM tab0
----
-3
0

skipif mysql # not compatible
query II rowsort label-9532
SELECT DISTINCT ( - COUNT ( * ) ), COUNT ( col1 ) / - 59 AS col2 FROM tab0
----
-3
0

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT col2 * col0 + - col1 / - 97 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col1 * + - ( col0 ) + - 85 FROM tab0 AS cor0
----
1130
12
1742

query I rowsort
SELECT ALL + + AVG ( ALL 58 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL > - 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT DISTINCT 56 * + MAX( ALL - col2 ) FROM tab2 cor0
----
-1288

skipif mysql # not compatible
query I rowsort label-9536
SELECT DISTINCT 56 * + MAX ( ALL - col2 ) FROM tab2 cor0
----
-1288

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT DISTINCT 0 * - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9537
SELECT DISTINCT 0 * - COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT + col2 * col1 * + + col2 AS col2 FROM tab2
----
123200
225388
26979

query I rowsort
SELECT DISTINCT - col0 * col0 * - + col1 + - - col2 AS col0 FROM tab2 AS cor0
----
107939
315432
376933

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT DISTINCT - 73 + COUNT( * ) AS col0 FROM tab0 cor0
----
-70

skipif mysql # not compatible
query I rowsort label-9540
SELECT DISTINCT - 73 + COUNT ( * ) AS col0 FROM tab0 cor0
----
-70

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN ( col2 ) AND NULL
----
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 / - col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9544
SELECT DISTINCT + 5 / CAST( NULL AS SIGNED ) col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9544
SELECT DISTINCT + 5 / CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9545
SELECT ALL - + COUNT( * ) DIV 91 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9545
SELECT ALL - + COUNT ( * ) / 91 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col2 * - 69 AS col1 FROM tab0
----
-3243
-6831
-690

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9547
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + col0 col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9547
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + col0 col2 FROM tab1
----
NULL

query I rowsort
SELECT - col0 * + - 4 FROM tab2
----
184
256
300

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT - 20 + + COUNT( * ) AS col0 FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-9549
SELECT - 20 + + COUNT ( * ) AS col0 FROM tab1
----
-17

query I rowsort
SELECT ALL col1 * col0 + + 46 * + col1 AS col1 FROM tab0
----
143
2793
4941

onlyif mysql # DIV for integer division: 
query I rowsort label-9551
SELECT col2 DIV + col0 + 2 AS col1 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9551
SELECT col2 / + col0 + 2 AS col1 FROM tab2
----
2
2
2

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 8 NOT IN ( 63, - 47 )
----

query I rowsort
SELECT ALL + + ( + + col0 ) AS col1 FROM tab2 cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT DISTINCT COUNT( - col1 ) FROM tab1 AS cor0 WHERE NULL > + col0
----
0

skipif mysql # not compatible
query I rowsort label-9554
SELECT DISTINCT COUNT ( - col1 ) FROM tab1 AS cor0 WHERE NULL > + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT DISTINCT - COUNT( * ) * - 16 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9555
SELECT DISTINCT - COUNT ( * ) * - 16 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - col1 * + col2 * 50 + - col2 * + + col2 + + 0 FROM tab0 AS cor0
----
-10600
-14751
-192559

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 68 <= + 49
----

query I rowsort
SELECT ALL 46 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) * 2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
27

skipif mysql # not compatible
query I rowsort label-9559
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) * 2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
27

query I rowsort
SELECT + + col0 + + + col1 + + + ( - 40 ) * 11 FROM tab0 AS cor0
----
-332
-342
-344

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 38 col1 FROM tab1 AS cor0
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-9562
SELECT MIN( DISTINCT - col1 ) AS col0, COUNT( * ) AS col1 FROM tab2 AS cor0
----
-77
3

skipif mysql # not compatible
query II rowsort label-9562
SELECT MIN ( DISTINCT - col1 ) AS col0, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-77
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9563
SELECT ALL CAST( NULL AS SIGNED ) * + COUNT( * ) / 69 AS col1, 34 + 36 AS col2 FROM tab0
----
NULL
70

skipif mysql # not compatible
query II rowsort label-9563
SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( * ) / 69 AS col1, 34 + 36 AS col2 FROM tab0
----
NULL
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT - COUNT( * ) * MIN( + col0 ) AS col2 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-9564
SELECT - COUNT ( * ) * MIN ( + col0 ) AS col2 FROM tab0
----
-45

query I rowsort
SELECT + 18 * + - col0 FROM tab1
----
-1530
-1638
-918

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9566
SELECT - col1, ( + 24 ) - CAST( NULL AS SIGNED ) * + 78 AS col1 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-9566
SELECT - col1, ( + 24 ) - CAST ( NULL AS INTEGER ) * + 78 AS col1 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

query I rowsort
SELECT DISTINCT ( 38 ) FROM tab0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT DISTINCT MAX( - 1 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9568
SELECT DISTINCT MAX ( - 1 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9569
SELECT DISTINCT + 7 FROM tab2 WHERE NULL NOT IN ( - CAST( NULL AS SIGNED ), col1 + + 69 / + col1, - col2 + - col1 )
----

skipif mysql # not compatible
query I rowsort label-9569
SELECT DISTINCT + 7 FROM tab2 WHERE NULL NOT IN ( - CAST ( NULL AS INTEGER ), col1 + + 69 / + col1, - col2 + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9570
SELECT DISTINCT col0 * - col0 FROM tab1 WHERE + col1 - 15 + + col2 + ( + CAST( NULL AS SIGNED ) ) * col0 * - col1 * + + col1 / - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9570
SELECT DISTINCT col0 * - col0 FROM tab1 WHERE + col1 - 15 + + col2 + ( + CAST ( NULL AS INTEGER ) ) * col0 * - col1 * + + col1 / - col0 IS NOT NULL
----

query I rowsort
SELECT ALL + 22 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT - 71 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-9573
SELECT - 71 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT DISTINCT COUNT( * ) + + 76 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-9574
SELECT DISTINCT COUNT ( * ) + + 76 FROM tab1 AS cor0
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9575
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9575
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9576
SELECT DISTINCT + + 32 DIV SUM( ALL + - 57 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9576
SELECT DISTINCT + + 32 / SUM ( ALL + - 57 ) AS col0 FROM tab0 AS cor0
----
0

query II rowsort
SELECT - col0 + - - col2, col0 + - col1 AS col0 FROM tab0 AS cor0
----
-77
66
2
96
32
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9578
SELECT ALL ( CAST( NULL AS SIGNED ) ) / COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9578
SELECT ALL ( CAST ( NULL AS INTEGER ) ) / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 74 * - col0 FROM tab0 AS cor0
----
-1110
-6438
-7178

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT ALL COUNT( ALL - col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9580
SELECT ALL COUNT ( ALL - col2 ) AS col1 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 10 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT DISTINCT MAX( ALL 71 ) FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-9582
SELECT DISTINCT MAX ( ALL 71 ) FROM tab2
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9583
SELECT ALL - ( - col0 ) * + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL - ( - col0 ) * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT ALL - MAX( DISTINCT + col0 ) * + 95 AS col2 FROM tab1
----
-8645

skipif mysql # not compatible
query I rowsort label-9584
SELECT ALL - MAX ( DISTINCT + col0 ) * + 95 AS col2 FROM tab1
----
-8645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9585
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) * 38 * + col2 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9585
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) * 38 * + col2 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9586
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) <= - 42
----

skipif mysql # not compatible
query III rowsort label-9586
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) <= - 42
----

query I rowsort
SELECT ALL + ( + - 90 ) * 25 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 979aa16227f1242c4909d9a936015dba

onlyif mysql # DIV for integer division: 
query I rowsort label-9588
SELECT + 16 DIV + col0 + + 28 FROM tab2
----
28
28
28

skipif mysql # not compatible
query I rowsort label-9588
SELECT + 16 / + col0 + + 28 FROM tab2
----
28
28
28

query I rowsort
SELECT + col2 * + 5 FROM tab0
----
235
495
50

query I rowsort
SELECT - 67 * + 77 FROM tab0 AS cor0
----
-5159
-5159
-5159

onlyif mysql # DIV for integer division: 
query I rowsort label-9591
SELECT col2 DIV col1 DIV - 16 AS col1 FROM tab0 cor0
----
-6
0
0

skipif mysql # not compatible
query I rowsort label-9591
SELECT col2 / col1 / - 16 AS col1 FROM tab0 cor0
----
-6
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9592
SELECT ALL + col1 DIV - + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9592
SELECT ALL + col1 / - + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 76 * - - ( + 23 ) AS col1 FROM tab1 AS cor0
----
1748
1748
1748

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT COUNT( DISTINCT + col0 ) col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9594
SELECT COUNT ( DISTINCT + col0 ) col2 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9595
SELECT DISTINCT + + SUM( DISTINCT - CAST( col0 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9595
SELECT DISTINCT + + SUM ( DISTINCT - CAST ( col0 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9596
SELECT + CAST( + 17 AS SIGNED ) FROM tab0 AS cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-9596
SELECT + CAST ( + 17 AS INTEGER ) FROM tab0 AS cor0
----
17
17
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9597
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - COUNT( * ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9597
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - COUNT ( * ) col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9598
SELECT ( COUNT( * ) ), - 78 AS col0 FROM tab1
----
3
-78

skipif mysql # not compatible
query II rowsort label-9598
SELECT ( COUNT ( * ) ), - 78 AS col0 FROM tab1
----
3
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT ALL + + MIN( DISTINCT 53 ) FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-9599
SELECT ALL + + MIN ( DISTINCT 53 ) FROM tab2 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN + 82 / - + 68 * + 49 * - + 89 / + + col1 * + + col0 / + col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9600
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN + 82 / - + 68 * + 49 * - + 89 / + + col1 * + + col0 / + col1 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT + MAX( ALL - col0 ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9601
SELECT + MAX ( ALL - col0 ) AS col1 FROM tab2
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-9602
SELECT 21 DIV + col1 * - ( - col1 ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9602
SELECT 21 / + col1 * - ( - col1 ) AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9603
SELECT - 67, COUNT( - ( - 17 ) ) DIV + 58 * + 45 + - COUNT( * ) col1 FROM tab0 AS cor0
----
-67
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9603
SELECT - 67, COUNT ( - ( - 17 ) ) / + 58 * + 45 + - COUNT ( * ) col1 FROM tab0 AS cor0
----
-67
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT - + MIN( + ( + 95 ) ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9604
SELECT - + MIN ( + ( + 95 ) ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT - col0 + col2 * - 15 * + 93 FROM tab2
----
-32131
-55864
-80985

query II rowsort
SELECT col1 + - col2 AS col2, + col0 AS col1 FROM tab1
----
-21
91
-54
85
-82
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9607
SELECT - 54 DIV col1 + + 91 AS col0 FROM tab0
----
37
89
91

skipif mysql # not compatible
query I rowsort label-9607
SELECT - 54 / col1 + + 91 AS col0 FROM tab0
----
37
89
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT DISTINCT + 21 + - COUNT( ALL + col2 ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-9608
SELECT DISTINCT + 21 + - COUNT ( ALL + col2 ) FROM tab2
----
18

query I rowsort
SELECT DISTINCT ( - - 70 ) * + 77 AS col0 FROM tab0
----
5390

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + 3 * col1 >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE ( col2 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9611
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE ( col2 ) IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - ( + col2 ) col0 FROM tab2 cor0
----
-117
-125
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9613
SELECT DISTINCT + col2 + CAST( 74 AS SIGNED ) FROM tab1 AS cor0
----
133
142
170

skipif mysql # not compatible
query I rowsort label-9613
SELECT DISTINCT + col2 + CAST ( 74 AS INTEGER ) FROM tab1 AS cor0
----
133
142
170

query I rowsort
SELECT DISTINCT + + col0 + + ( col0 ) AS col0 FROM tab1 WHERE ( 67 ) > - 8
----
102
170
182

onlyif mysql # DIV for integer division: 
query I rowsort label-9615
SELECT DISTINCT col2 DIV - - col1 * - col0 + + + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9615
SELECT DISTINCT col2 / - - col1 * - col0 + + + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL - + 35 AS col1 FROM tab2 AS cor0
----
-35
-35
-35

query II rowsort
SELECT DISTINCT - col2 * + 77 AS col2, + ( + col0 ) AS col0 FROM tab0
----
-3619
15
-7623
97
-770
87

query I rowsort
SELECT DISTINCT ( + + 21 ) FROM tab0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9619
SELECT * FROM tab1 WHERE NOT - 85 + + - col0 + + - col2 * + CAST( + + col0 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-9619
SELECT * FROM tab1 WHERE NOT - 85 + + - col0 + + - col2 * + CAST ( + + col0 AS INTEGER ) > NULL
----

query II rowsort
SELECT ALL col1 AS col1, + ( + + ( - col2 ) ) FROM tab2
----
51
-23
67
-58
77
-40

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 WHERE ( + 72 IS NULL )
----

query I rowsort
SELECT DISTINCT - ( - ( col0 ) ) * col0 FROM tab2
----
2116
4096
5625

query III rowsort
SELECT * FROM tab0 WHERE NOT - 59 / + - col2 < - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT DISTINCT - SUM( + col2 ) + MIN( + - 56 ) * - 87 FROM tab0 cor0
----
4716

skipif mysql # not compatible
query I rowsort label-9624
SELECT DISTINCT - SUM ( + col2 ) + MIN ( + - 56 ) * - 87 FROM tab0 cor0
----
4716

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9625
SELECT ALL - ( + + COUNT( * ) ) DIV + 17 col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9625
SELECT ALL - ( + + COUNT ( * ) ) / + 17 col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9626
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) + - - 92 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9626
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) + - - 92 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT + MAX( DISTINCT + 91 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9627
SELECT + MAX ( DISTINCT + 91 ) FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT + - MIN( - 5 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9628
SELECT + - MIN ( - 5 ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT col2 + 19 * - col1 * + col0 AS col0 FROM tab2
----
-44551
-93592
-95417

query I rowsort
SELECT + - col0 FROM tab1 AS cor0 WHERE ( 34 IS NOT NULL )
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT - COUNT( * ) + + + 43 * 48 * 62 FROM tab1 AS cor0
----
127965

skipif mysql # not compatible
query I rowsort label-9631
SELECT - COUNT ( * ) + + + 43 * 48 * 62 FROM tab1 AS cor0
----
127965

query I rowsort
SELECT DISTINCT - 1 * + col2 + col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - - col1 * 38 + + + col2 FROM tab2 AS cor0
----
1961
2604
2966

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 + + + col1 + col2 IS NULL
----

query I rowsort
SELECT - ( 66 ) AS col1 FROM tab2 AS cor0
----
-66
-66
-66

query I rowsort
SELECT ALL ( - + col2 ) AS col1 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-9637
SELECT DISTINCT + 78 + + 53, COUNT( * ) AS col1 FROM tab2 AS cor0
----
131
3

skipif mysql # not compatible
query II rowsort label-9637
SELECT DISTINCT + 78 + + 53, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
131
3

query I rowsort
SELECT - - 13 * - 19 + - 88 FROM tab0 AS cor0
----
-335
-335
-335

query I rowsort
SELECT DISTINCT col1 + + - col2 AS col2 FROM tab1 cor0
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9640
SELECT DISTINCT * FROM tab0 WHERE NOT + + CAST( NULL AS SIGNED ) <> - col1 * - - col0 * - 96 - 87 - col0 + + ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-9640
SELECT DISTINCT * FROM tab0 WHERE NOT + + CAST ( NULL AS INTEGER ) <> - col1 * - - col0 * - 96 - 87 - col0 + + ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT MAX( DISTINCT 57 ) FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-9641
SELECT MAX ( DISTINCT 57 ) FROM tab0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9642
SELECT ALL CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * 49 AS col1 FROM tab1
----
2303
245
686

query I rowsort
SELECT - col0 - + - 56 FROM tab1
----
-29
-35
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 NOT BETWEEN NULL AND - 82
----

query II rowsort
SELECT DISTINCT - 77, col2 FROM tab0
----
-77
10
-77
47
-77
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT DISTINCT + + COUNT( * ) * - 11 AS col1 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-9647
SELECT DISTINCT + + COUNT ( * ) * - 11 AS col1 FROM tab2 AS cor0
----
-33

query I rowsort
SELECT ALL + - 62 AS col0 FROM tab2 AS cor0
----
-62
-62
-62

query I rowsort
SELECT 71 * col1 AS col2 FROM tab0
----
1491
5751
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9650
SELECT col0 * CAST( NULL AS SIGNED ) / - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9650
SELECT col0 * CAST ( NULL AS INTEGER ) / - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( col0 ) AS col2, - col0 col0 FROM tab2 cor0
----
46
-46
64
-64
75
-75

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 56 / col1 / + - col0 / + col0 AND 61 * ( 75 ) + - 37
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9653
SELECT ALL ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT ALL + COUNT( DISTINCT - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL + COUNT ( DISTINCT - col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT col1 * + + col2 AS col0 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL = + 24
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 52 = - + col2 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < + - col2 * + col0 + - col1 + + col2 * col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9659
SELECT COUNT( DISTINCT - 81 ) * - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9659
SELECT COUNT ( DISTINCT - 81 ) * - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9660
SELECT COUNT( * ) AS col0, 97 AS col0 FROM tab0
----
3
97

skipif mysql # not compatible
query II rowsort label-9660
SELECT COUNT ( * ) AS col0, 97 AS col0 FROM tab0
----
3
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9661
SELECT DISTINCT ( - + CAST( NULL AS SIGNED ) ) / col0 * col0 * - col2, col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-9661
SELECT DISTINCT ( - + CAST ( NULL AS INTEGER ) ) / col0 * col0 * - col2, col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9662
SELECT - col0 DIV + - CAST( - col0 AS SIGNED ) AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9662
SELECT - col0 / + - CAST ( - col0 AS INTEGER ) AS col2 FROM tab1
----
-1
-1
-1

query II rowsort
SELECT ALL - col2 * + ( - - 77 ) AS col2, 12 * 49 AS col0 FROM tab1
----
-4543
588
-5236
588
-7392
588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9664
SELECT ALL CAST( + - 40 AS SIGNED ) FROM tab2
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL CAST ( + - 40 AS INTEGER ) FROM tab2
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT ALL + COUNT( * ) + 41 col1 FROM tab2 AS cor0
----
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9665
SELECT ALL + COUNT ( * ) + 41 col1 FROM tab2 AS cor0
----
44

query I rowsort
SELECT 77 + + + col0 AS col0 FROM tab1 AS cor0
----
128
162
168

query I rowsort
SELECT - - 71 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # aggregate syntax: 
query II rowsort label-9668
SELECT + + COUNT( * ), COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9668
SELECT + + COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0
----
3
3

query I rowsort
SELECT ALL + + col1 + + - col0 AS col2 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT ALL 2 + - - col1 + - - 57 + col2 FROM tab0 AS cor0
----
159
187
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT ALL - - 38 * + - COUNT( * ) - + + 46 FROM tab2 AS cor0
----
-160

skipif mysql # not compatible
query I rowsort label-9671
SELECT ALL - - 38 * + - COUNT ( * ) - + + 46 FROM tab2 AS cor0
----
-160

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL AND NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 + + - 72 FROM tab2 AS cor0
----
-14
-32
-49

query I rowsort
SELECT - col0 + + col2 * - 87 FROM tab1
----
-5218
-6007
-8403

query I rowsort
SELECT - + col0 * - col1 FROM tab1 WHERE - col0 * - 3 IN ( - - col2 - col1 - - - col1, col2, - - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9676
SELECT DISTINCT - col1 * - + CAST( NULL AS SIGNED ) - - col2 - col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9676
SELECT DISTINCT - col1 * - + CAST ( NULL AS INTEGER ) - - col2 - col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - 14 / - col0 + - 3 BETWEEN NULL AND + col2 * - ( - - col1 ) * + 43 + - 30
----

query II rowsort
SELECT ALL + col0 * + col2 + + col2, col2 AS col2 FROM tab2 WHERE NOT col0 * col0 * - col2 + + col0 + + col1 / + 84 >= - col2
----
1081
23
2600
40
4408
58

query I rowsort
SELECT ALL - col1 - + + col2 FROM tab0
----
-100
-128
-31

query I rowsort
SELECT + 29 * - col2 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( 40 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 16 AS col1 FROM tab0 cor0
----
-16

query I rowsort
SELECT 76 FROM tab2 cor0 WHERE NOT NULL = ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT DISTINCT 83 + COUNT( ALL 65 ) AS col2 FROM tab1 WHERE - col2 + - 43 * + + 28 NOT IN ( - ( 63 ) + + col1, col0, - col2 - + + col1 * + + 49 * - col0, 62, + - 73, + 60 + - col0 * col0 * - 7 + - col2 - - col2 )
----
86

skipif mysql # not compatible
query I rowsort label-9685
SELECT DISTINCT 83 + COUNT ( ALL 65 ) AS col2 FROM tab1 WHERE - col2 + - 43 * + + 28 NOT IN ( - ( 63 ) + + col1, col0, - col2 - + + col1 * + + 49 * - col0, 62, + - 73, + 60 + - col0 * col0 * - 7 + - col2 - - col2 )
----
86

query I rowsort
SELECT DISTINCT - 31 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-31

query I rowsort
SELECT ALL - 75 AS col1 FROM tab0 cor0
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT + - MIN( ALL + 48 ) AS col0 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-9688
SELECT + - MIN ( ALL + 48 ) AS col0 FROM tab2 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9689
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT - MIN( DISTINCT + + 56 ) AS col0 FROM tab0 cor0
----
-56

skipif mysql # not compatible
query I rowsort label-9690
SELECT - MIN ( DISTINCT + + 56 ) AS col0 FROM tab0 cor0
----
-56

query I rowsort
SELECT - ( - 75 ) AS col0 FROM tab2 AS cor0
----
75
75
75

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( ( NOT NULL <= NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9693
SELECT DISTINCT COUNT( * ) DIV - 33 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9693
SELECT DISTINCT COUNT ( * ) / - 33 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT - COUNT( * ) + + ( - - 8 ) * 56 FROM tab2 AS cor0
----
445

skipif mysql # not compatible
query I rowsort label-9694
SELECT - COUNT ( * ) + + ( - - 8 ) * 56 FROM tab2 AS cor0
----
445

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9695
SELECT DISTINCT - COUNT( * ) DIV SUM( ALL col2 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9695
SELECT DISTINCT - COUNT ( * ) / SUM ( ALL col2 ) AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT 40 * + 84 * + SUM( 77 ) AS col0 FROM tab0
----
776160

skipif mysql # not compatible
query I rowsort label-9696
SELECT 40 * + 84 * + SUM ( 77 ) AS col0 FROM tab0
----
776160

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT ALL + COUNT( * ) * + - 98 FROM tab2
----
-294

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL + COUNT ( * ) * + - 98 FROM tab2
----
-294

query I rowsort
SELECT - col2 * - 97 AS col0 FROM tab2 WHERE NOT + - 71 * - col0 IS NULL
----
2231
3880
5626

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + col0 * - 98 + + col0, col2 * - 74, col1 )
----

query I rowsort
SELECT DISTINCT - col0 * - 63 * + col1 AS col2 FROM tab0 AS cor0
----
115101
6111
76545

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0, col1 col1 FROM tab2
----
46
51
64
77
75
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 + 77 col0 FROM tab2 cor0
----
76
76
76

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT - 5 + + + 15 FROM tab1 AS cor0
----
10
10
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9705
SELECT - col1 / + col2 * + CAST( + + col1 AS SIGNED ) - 26 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9705
SELECT - col1 / + col2 * + CAST ( + + col1 AS INTEGER ) - 26 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( 12 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - ( 75 ) - + col2 FROM tab1 AS cor0
----
-21
16
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT DISTINCT COUNT( * ) + 92 FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-9708
SELECT DISTINCT COUNT ( * ) + 92 FROM tab1 AS cor0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT DISTINCT - + SUM( - - col0 ) - - 91 AS col2 FROM tab0 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-9709
SELECT DISTINCT - + SUM ( - - col0 ) - - 91 AS col2 FROM tab0 AS cor0
----
-108

query I rowsort
SELECT DISTINCT col1 - 18 AS col0 FROM tab2
----
33
49
59

query I rowsort
SELECT - col2 * col0 - + + 19 FROM tab2
----
-1077
-2579
-4369

query I rowsort
SELECT DISTINCT - 77 - - col1 + col1 * + col0 FROM tab1
----
353
4247
651

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT - COUNT( * ) FROM tab2 WHERE NULL <= NULL AND + - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9713
SELECT - COUNT ( * ) FROM tab2 WHERE NULL <= NULL AND + - col1 IS NOT NULL
----
0

query II rowsort
SELECT - 69, + col2 * + - col2 AS col0 FROM tab0
----
-69
-100
-69
-2209
-69
-9801

onlyif mysql # aggregate syntax: 
query II rowsort label-9715
SELECT ALL MAX( DISTINCT - col2 ) AS col1, ( + 54 ) FROM tab2
----
-23
54

skipif mysql # not compatible
query II rowsort label-9715
SELECT ALL MAX ( DISTINCT - col2 ) AS col1, ( + 54 ) FROM tab2
----
-23
54

query I rowsort
SELECT - - col2 AS col1 FROM tab2 WHERE NOT 42 < + 23 / - col2
----
23
40
58

query II rowsort
SELECT + - col0, col2 AS col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9718
SELECT + + col2 * col1 * 77 DIV col0 + 95 * - col2 + col0 - - col2 FROM tab0 AS cor0
----
-668
-9131
15139

skipif mysql # not compatible
query I rowsort label-9718
SELECT + + col2 * col1 * 77 / col0 + 95 * - col2 + col0 - - col2 FROM tab0 AS cor0
----
-668
-9131
15139

query I rowsort
SELECT DISTINCT + 57 AS col2 FROM tab1 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-9720
SELECT - COUNT( * ) AS col0, 68 FROM tab0 AS cor0
----
-3
68

skipif mysql # not compatible
query II rowsort label-9720
SELECT - COUNT ( * ) AS col0, 68 FROM tab0 AS cor0
----
-3
68

query II rowsort
SELECT DISTINCT + - col1, - col2 + + col2 AS col2 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT + SUM( DISTINCT - + 98 ) AS col1 FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-9722
SELECT + SUM ( DISTINCT - + 98 ) AS col1 FROM tab1
----
-98

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 92 + + + 85 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT + MAX( DISTINCT 2 ) AS col0 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-9724
SELECT + MAX ( DISTINCT 2 ) AS col0 FROM tab1
----
2

query I rowsort
SELECT DISTINCT - ( + - col1 ) AS col1 FROM tab1
----
14
47
5

query II rowsort
SELECT + col0 AS col0, + 49 FROM tab0
----
15
49
87
49
97
49

query II rowsort
SELECT ALL + col0, 60 AS col2 FROM tab0
----
15
60
87
60
97
60

query II rowsort
SELECT - 72, - col1 + col1 AS col0 FROM tab0 WHERE ( ( NULL ) < - - col2 * + 61 + + 29 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 65 <> - 78 + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT DISTINCT - + COUNT( - col1 ) + - - 17 * + - 37 AS col2 FROM tab2 cor0
----
-632

skipif mysql # not compatible
query I rowsort label-9730
SELECT DISTINCT - + COUNT ( - col1 ) + - - 17 * + - 37 AS col2 FROM tab2 cor0
----
-632

query II rowsort
SELECT + + col0 + - ( - col2 ) + + col0, col0 AS col1 FROM tab0 AS cor0
----
184
87
293
97
77
15

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 94 ) NOT BETWEEN NULL AND col0 * col0
----

query I rowsort
SELECT + 69 FROM tab0 WHERE NOT 98 NOT IN ( - 99 )
----

query I rowsort
SELECT + col1 - - 8 FROM tab2
----
59
75
85

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * col1 > col1 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT MAX( ( col2 ) ) + COUNT( * ) * SUM( + 78 * 29 ) AS col0 FROM tab1 WHERE NOT col1 IS NULL
----
20454

skipif mysql # not compatible
query I rowsort label-9736
SELECT MAX ( ( col2 ) ) + COUNT ( * ) * SUM ( + 78 * 29 ) AS col0 FROM tab1 WHERE NOT col1 IS NULL
----
20454

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9737
SELECT col1 DIV CAST( - 39 AS SIGNED ) AS col0 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-9737
SELECT col1 / CAST ( - 39 AS INTEGER ) AS col0 FROM tab0
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) - 13 col2 FROM tab1
----
-8
1
34

onlyif mysql # DIV for integer division: 
query I rowsort label-9739
SELECT col2 DIV + 77 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9739
SELECT col2 / + 77 AS col2 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9740
SELECT CAST( NULL AS SIGNED ) / - col1 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9740
SELECT CAST ( NULL AS INTEGER ) / - col1 col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT ALL + 85 + + COUNT( * ) FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL + 85 + + COUNT ( * ) FROM tab2
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-9742
SELECT + 78 DIV col1 AS col0 FROM tab0
----
0
3
78

skipif mysql # not compatible
query I rowsort label-9742
SELECT + 78 / col1 AS col0 FROM tab0
----
0
3
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT SUM( col1 ) * 39 col2 FROM tab0
----
4017

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9743
SELECT SUM ( col1 ) * 39 col2 FROM tab0
----
4017

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9744
SELECT DISTINCT + COUNT( * ) DIV COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9744
SELECT DISTINCT + COUNT ( * ) / COUNT ( * ) FROM tab2
----
1

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 76 ) = 20
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 NOT BETWEEN col2 AND ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 BETWEEN ( 64 ) AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( - col2 )
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE NOT col0 IN ( col2 / col1 )
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 11 - col2 NOT IN ( - col0 + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9751
SELECT * FROM tab2 WHERE NOT 78 + + 56 / CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-9751
SELECT * FROM tab2 WHERE NOT 78 + + 56 / CAST ( NULL AS INTEGER ) = NULL
----

query I rowsort
SELECT col0 + - 91 AS col1 FROM tab2
----
-16
-27
-45

query I rowsort
SELECT ALL + col0 * 6 AS col0 FROM tab1 WHERE NOT + 51 + col1 * ( - col1 + + col0 ) IS NULL
----
306
510
546

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT COUNT( * ) FROM tab2 WHERE NOT + col2 IN ( 88 )
----
3

skipif mysql # not compatible
query I rowsort label-9754
SELECT COUNT ( * ) FROM tab2 WHERE NOT + col2 IN ( 88 )
----
3

query I rowsort
SELECT DISTINCT + 32 FROM tab0 AS cor0 CROSS JOIN tab0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT DISTINCT COUNT( * ) - + 75 * - ( - SUM( 3 ) ) col2 FROM tab1 WHERE NOT 1 <> ( - ( + col2 ) )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9756
SELECT DISTINCT COUNT ( * ) - + 75 * - ( - SUM ( 3 ) ) col2 FROM tab1 WHERE NOT 1 <> ( - ( + col2 ) )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 75 col1 FROM tab1 AS cor0 CROSS JOIN tab0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT - 73 * - col0 FROM tab1
----
3723
6205
6643

query I rowsort
SELECT ALL + col1 + + 33 * + ( 42 - + 53 ) FROM tab1 AS cor0
----
-316
-349
-358

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT DISTINCT + 59 * - MIN( ALL col1 ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-9760
SELECT DISTINCT + 59 * - MIN ( ALL col1 ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-56

query I rowsort
SELECT - col2 + ( - 6 ) FROM tab0 cor0
----
-105
-16
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT + - COUNT( * ) + 30 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-9762
SELECT + - COUNT ( * ) + 30 FROM tab1 AS cor0
----
27

query I rowsort
SELECT DISTINCT + 62 + 97 AS col2 FROM tab0 AS cor0
----
159

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT ( col1 + - 57 ) IS NULL
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 65 > col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9766
SELECT 84 + 5 DIV + 79 FROM tab1 AS cor0
----
84
84
84

skipif mysql # not compatible
query I rowsort label-9766
SELECT 84 + 5 / + 79 FROM tab1 AS cor0
----
84
84
84

query I rowsort
SELECT ALL - col1 * - col0 AS col0 FROM tab1 cor0 WHERE NOT - 72 > - col0
----
714

query I rowsort
SELECT col2 / col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 72 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + - 12 AS col1 FROM tab0 WHERE NULL IS NULL
----
-2
35
87

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 72 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT - COUNT( * ) * + ( - 8 ) AS col0 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-9772
SELECT - COUNT ( * ) * + ( - 8 ) AS col0 FROM tab2
----
24

query I rowsort
SELECT + 35 FROM tab0 WHERE NULL BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - ( + + 97 ) * + col0 AS col0 FROM tab0
----
-1455
-8439
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT MIN( DISTINCT - 65 ) AS col0 FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-9775
SELECT MIN ( DISTINCT - 65 ) AS col0 FROM tab0
----
-65

query I rowsort
SELECT 5 - - col2 FROM tab0 AS cor0
----
104
15
52

query I rowsort
SELECT + col2 / + ( col0 ) FROM tab1 AS cor0 WHERE + col0 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0 cor0 LEFT JOIN tab2 AS cor1 ON ( 64 ) IS NULL
----
18 values hashing to 3bb2bca130a6dfa84e4c44460040062d

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9779
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 53 >= ( + CAST( 81 AS SIGNED ) * - 13 )
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif mysql # not compatible
query IIIIII rowsort label-9779
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 53 >= ( + CAST ( 81 AS INTEGER ) * - 13 )
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT + - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9780
SELECT + - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT 16 + + ( - + 69 ) - + col0 AS col0 FROM tab1
----
-104
-138
-144

query I rowsort
SELECT DISTINCT + col2 + - 60 AS col1 FROM tab2 AS cor0
----
-2
-20
-37

query I rowsort
SELECT DISTINCT - + col0 * + + col1 * ( - 80 ) * col2 AS col2 FROM tab0 AS cor0
----
1461600
4568400
768240

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 * col0 )
----

query I rowsort
SELECT ALL col2 + - col0 - + col0 AS col2 FROM tab2 AS cor0
----
-69
-88
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-9786
SELECT - 41 DIV col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9786
SELECT - 41 / col1 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9787
SELECT CAST( + 35 AS SIGNED ) * - + 16 FROM tab0 AS cor0
----
-560
-560
-560

skipif mysql # not compatible
query I rowsort label-9787
SELECT CAST ( + 35 AS INTEGER ) * - + 16 FROM tab0 AS cor0
----
-560
-560
-560

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT 9 * - 20 FROM tab1 AS cor0
----
-180
-180
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT ALL + + COUNT( DISTINCT + 75 ) * COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9790
SELECT ALL + + COUNT ( DISTINCT + 75 ) * COUNT ( * ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + 28 AS col1 FROM tab0 cor0
----
-28

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE + + 36 NOT IN ( 57 )
----
23
40
58

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 ) NOT IN ( ( + 30 ) ) AND NOT + 9 IS NULL
----

query I rowsort
SELECT + ( + col0 ) AS col1 FROM tab1 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT + + 43 + - col2 < + 80
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> - - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 54 BETWEEN - col2 * + col1 AND NULL
----

query I rowsort
SELECT ALL - 32 * + + col1 FROM tab2
----
-1632
-2144
-2464

query I rowsort
SELECT ALL col1 * 30 * col0 AS col0 FROM tab0
----
2910
36450
54810

onlyif mysql # DIV for integer division: 
query II rowsort label-9800
SELECT DISTINCT - 99 DIV + col1 AS col2, - col0 FROM tab1
----
-19
-85
-2
-91
-7
-51

skipif mysql # not compatible
query II rowsort label-9800
SELECT DISTINCT - 99 / + col1 AS col2, - col0 FROM tab1
----
-19
-85
-2
-91
-7
-51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 42 AND + + ( - ( 44 ) )
----

query I rowsort
SELECT - ( + col0 ) * - col1 + col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * - col2 FROM tab0 AS cor0 WHERE NOT + col2 >= - + col2 * + - col1
----
-705
-870

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 ) IN ( 19 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT + 19 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
19
19
19

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
51
67
77

query II rowsort
SELECT DISTINCT + col2, - 85 * + col0 AS col0 FROM tab2 AS cor0 WHERE + 83 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9809
SELECT + COUNT( * ) AS col0, CAST( NULL AS SIGNED ) * 64 * + 68 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9809
SELECT + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) * 64 * + 68 FROM tab1 AS cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT DISTINCT + 75 * - 32 * - SUM( ALL - ( + + col1 ) ) - 68 + COUNT( * ) FROM tab1 cor0
----
-158465

skipif mysql # not compatible
query I rowsort label-9810
SELECT DISTINCT + 75 * - 32 * - SUM ( ALL - ( + + col1 ) ) - 68 + COUNT ( * ) FROM tab1 cor0
----
-158465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9811
SELECT DISTINCT + col2 + - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9811
SELECT DISTINCT + col2 + - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + - 72, - 98 AS col1 FROM tab1 AS cor0
----
-72
-98
-72
-98
-72
-98

query III rowsort
SELECT * FROM tab0 WHERE ( - - 47 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT ALL SUM( DISTINCT + + 48 ) FROM tab1, tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-9814
SELECT ALL SUM ( DISTINCT + + 48 ) FROM tab1, tab1 AS cor0
----
48

query II rowsort
SELECT col2 + - 53 * - ( - + col0 ) AS col1, + col0 FROM tab1
----
-2607
51
-4446
85
-4755
91

query III rowsort
SELECT * FROM tab0 WHERE + - col2 > + - 74 * + col0 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 7 * - col2 AS col1 FROM tab2
----
161
280
406

query III rowsort
SELECT * FROM tab0 WHERE + col0 - + 79 NOT IN ( + 93 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9819
SELECT DISTINCT + CAST( + 90 AS SIGNED ) FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT + CAST ( + 90 AS INTEGER ) FROM tab2
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 + + col1 col0 FROM tab0
----
-21
-41
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT DISTINCT + MAX( DISTINCT col2 ) * 26 col1 FROM tab1 WHERE NOT ( NOT + 57 + + 73 IS NOT NULL )
----
2496

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9821
SELECT DISTINCT + MAX ( DISTINCT col2 ) * 26 col1 FROM tab1 WHERE NOT ( NOT + 57 + + 73 IS NOT NULL )
----
2496

query I rowsort
SELECT - 55 + + + col2 AS col0 FROM tab2
----
-15
-32
3

query I rowsort
SELECT ALL 59 + 49 AS col2 FROM tab2 AS cor0
----
108
108
108

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT + COUNT( * ) col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9824
SELECT + COUNT ( * ) col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT ALL + + col1 + - col0 + - 60 AS col2 FROM tab2 AS cor0
----
-47
-55
-68

query II rowsort
SELECT + 69 * col2, col0 FROM tab2 AS cor0
----
1587
46
2760
64
4002
75

query II rowsort
SELECT + - 29 AS col2, - 82 + col2 AS col0 FROM tab0 AS cor0
----
-29
-35
-29
-72
-29
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9828
SELECT DISTINCT COUNT( * ) - - + COUNT( * ) + + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9828
SELECT DISTINCT COUNT ( * ) - - + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9829
SELECT ALL + COUNT( * ) * + COUNT( * ) - COUNT( * ) * + MIN( - 82 ) col2, COUNT( * ) * + COUNT( * ) FROM tab2
----
255
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9829
SELECT ALL + COUNT ( * ) * + COUNT ( * ) - COUNT ( * ) * + MIN ( - 82 ) col2, COUNT ( * ) * + COUNT ( * ) FROM tab2
----
255
9

query I rowsort
SELECT - 40 AS col2 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT + 44 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT DISTINCT + + col1 - col1 FROM tab1 AS cor0 WHERE NOT 19 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT - 46 - + + ( SUM( + - col0 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT - ( + col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9833
SELECT - 46 - + + ( SUM ( + - col0 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT - ( + col2 ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + ( - col0 ) IS NULL )
----

query I rowsort
SELECT col2 * - col1 * col0 FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT SUM( + col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-9836
SELECT SUM ( + col0 ) AS col2 FROM tab1 AS cor0
----
227

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL ) >= ( NULL ) )
----

query I rowsort
SELECT ALL 4 * - - 55 * 97 * - - 75 AS col0 FROM tab0 AS cor0
----
1600500
1600500
1600500

query I rowsort
SELECT - 4 FROM tab1 cor0
----
-4
-4
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9840
SELECT DISTINCT - COUNT( DISTINCT + + CAST( col1 AS SIGNED ) ) * - 34 * - 68 AS col2 FROM tab1
----
-6936

skipif mysql # not compatible
query I rowsort label-9840
SELECT DISTINCT - COUNT ( DISTINCT + + CAST ( col1 AS INTEGER ) ) * - 34 * - 68 AS col2 FROM tab1
----
-6936

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT 0 * + - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9841
SELECT 0 * + - COUNT ( * ) FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col1, - 61 col1 FROM tab1
----
51
-61
85
-61
91
-61

query I rowsort
SELECT ALL 13 * 88 AS col2 FROM tab0
----
1144
1144
1144

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT COUNT( DISTINCT + 28 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9844
SELECT COUNT ( DISTINCT + 28 ) FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9845
SELECT - CAST( NULL AS SIGNED ) AS col0, col2 AS col1 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-9845
SELECT - CAST ( NULL AS INTEGER ) AS col0, col2 AS col1 FROM tab1
----
NULL
59
NULL
68
NULL
96

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) col0 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 51 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT - + MAX( DISTINCT - - col2 ) FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9849
SELECT - + MAX ( DISTINCT - - col2 ) FROM tab0 cor0
----
-99

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 AS cor0 WHERE + col1 * 66 IS NULL
----

query I rowsort
SELECT + 54 * + col0 AS col0 FROM tab2 AS cor0
----
2484
3456
4050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * + 92 col2 FROM tab2 AS cor0
----
-2116
-3680
-5336

query I rowsort
SELECT col2 * + ( - col0 ) FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT DISTINCT - COUNT( * ) + - - 22 + + + COUNT( * ) AS col0 FROM tab1, tab0 AS cor0 WHERE NULL IS NULL
----
22

skipif mysql # not compatible
query I rowsort label-9854
SELECT DISTINCT - COUNT ( * ) + - - 22 + + + COUNT ( * ) AS col0 FROM tab1, tab0 AS cor0 WHERE NULL IS NULL
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-9855
SELECT COUNT( * ) * 88 AS col1, COUNT( * ) AS col0 FROM tab0
----
264
3

skipif mysql # not compatible
query II rowsort label-9855
SELECT COUNT ( * ) * 88 AS col1, COUNT ( * ) AS col0 FROM tab0
----
264
3

query I rowsort
SELECT - 82 + + col0 * - 29 + - ( + col0 ) FROM tab0 AS cor0
----
-2692
-2992
-532

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 24 + - + 28 * col2 col1 FROM tab1 AS cor0
----
-1628
-1880
-2664

query I rowsort
SELECT ALL - 53 AS col2 FROM tab1 cor0 WHERE + col2 + 79 / + 71 NOT BETWEEN + col0 AND col1
----
-53
-53
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + 12 + - col0 col2 FROM tab0 AS cor0
----
-162
-18
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT + MIN( ALL ( col0 ) ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-9860
SELECT + MIN ( ALL ( col0 ) ) FROM tab0 cor0
----
15

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col1 + 64 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( - col0 * + 55 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT - + AVG ( DISTINCT - - col2 ) - + COUNT( col1 ) col2 FROM tab0 WHERE col1 IN ( col0, col1 * col1 - 94 + + col1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9863
SELECT - + AVG ( DISTINCT - - col2 ) - + COUNT ( col1 ) col2 FROM tab0 WHERE col1 IN ( col0, col1 * col1 - 94 + + col1 )
----
NULL

query I rowsort
SELECT DISTINCT - ( - 95 ) - - col1 * col1 AS col2 FROM tab0
----
536
6656
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9865
SELECT ALL 63 DIV + col0 + + 48 AS col2 FROM tab2
----
48
48
49

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL 63 / + col0 + + 48 AS col2 FROM tab2
----
48
48
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT COUNT( * ) - + + 75 + 41 + 12 AS col0 FROM tab1 cor0
----
-19

skipif mysql # not compatible
query I rowsort label-9866
SELECT COUNT ( * ) - + + 75 + 41 + 12 AS col0 FROM tab1 cor0
----
-19

query I rowsort
SELECT + + col1 - - 40 + + col1 FROM tab0 AS cor0
----
202
42
82

query I rowsort
SELECT ALL + col0 * - col1 + 36 + col2 AS col1 FROM tab2 AS cor0
----
-2287
-4852
-4931

query I rowsort
SELECT col2 + - 38 FROM tab2 AS cor0
----
-15
2
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9870
SELECT ALL + col1 - + CAST( + - col0 AS SIGNED ) FROM tab0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-9870
SELECT ALL + col1 - + CAST ( + - col0 AS INTEGER ) FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9871
SELECT ALL - 50 + + COUNT( * ) DIV COUNT( * ) AS col1 FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL - 50 + + COUNT ( * ) / COUNT ( * ) AS col1 FROM tab1
----
-49

query I rowsort
SELECT 90 AS col0 FROM tab0 WHERE NULL IN ( + - col1, 77 * + col1 )
----

query II rowsort
SELECT col2, 34 + col2 + + 41 * col0 AS col0 FROM tab2
----
23
1943
40
2698
58
3167

query I rowsort
SELECT DISTINCT col1 * col0 * + col0 AS col1 FROM tab2
----
107916
315392
376875

query I rowsort
SELECT - + col0 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

query II rowsort
SELECT ALL + col0 AS col2, 38 AS col2 FROM tab0
----
15
38
87
38
97
38

onlyif mysql # aggregate syntax: 
query II rowsort label-9877
SELECT DISTINCT - 6 AS col1, COUNT( * ) AS col2 FROM tab0
----
-6
3

skipif mysql # not compatible
query II rowsort label-9877
SELECT DISTINCT - 6 AS col1, COUNT ( * ) AS col2 FROM tab0
----
-6
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9879
SELECT ALL 46 AS col0, CAST( NULL AS SIGNED ) - + 12 / 67 FROM tab2 AS cor0
----
46
NULL
46
NULL
46
NULL

skipif mysql # not compatible
query II rowsort label-9879
SELECT ALL 46 AS col0, CAST ( NULL AS INTEGER ) - + 12 / 67 FROM tab2 AS cor0
----
46
NULL
46
NULL
46
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9880
SELECT - - COUNT( * ) AS col1, + COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9880
SELECT - - COUNT ( * ) AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT ALL + + ( - 20 ) AS col0 FROM tab2 AS cor0
----
-20
-20
-20

query I rowsort
SELECT - - ( + col1 ) * col1 AS col0 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # DIV for integer division: 
query I rowsort label-9883
SELECT - col2 DIV + - col0 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-9883
SELECT - col2 / + - col0 FROM tab0 AS cor0
----
0
1
3

query II rowsort
SELECT ALL col2, + col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT DISTINCT - col2 * + col0 + + col1 AS col2 FROM tab2 AS cor0
----
-1007
-2483
-4283

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 93 col2 FROM tab1
----
1302
4371
465

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9887
SELECT DISTINCT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) + - ( + - col2 ) * + 98 * + + col0 + + col1 <> ( 77 + col2 )
----

skipif mysql # not compatible
query III rowsort label-9887
SELECT DISTINCT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) + - ( + - col2 ) * + 98 * + + col0 + + col1 <> ( 77 + col2 )
----

query I rowsort
SELECT + ( ( + 33 ) ) FROM tab2
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT - 44 * + MIN( ALL - - col2 ) AS col0 FROM tab0
----
-440

skipif mysql # not compatible
query I rowsort label-9889
SELECT - 44 * + MIN ( ALL - - col2 ) AS col0 FROM tab0
----
-440

query I rowsort
SELECT ALL - 16 FROM tab0 cor0 WHERE col2 IS NOT NULL
----
-16
-16
-16

query I rowsort
SELECT + ( - - 97 ) + + col2 FROM tab1 AS cor0
----
156
165
193

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9892
SELECT ALL - 85 + + MIN( ALL - - col1 ) - + + 79 * + - 35 * SUM( + - col1 ) - + + 89 DIV SUM( - + col1 ) FROM tab2 AS cor0
----
-539209

skipif mysql # not compatible
query I rowsort label-9892
SELECT ALL - 85 + + MIN ( ALL - - col1 ) - + + 79 * + - 35 * SUM ( + - col1 ) - + + 89 / SUM ( - + col1 ) FROM tab2 AS cor0
----
-539209

query I rowsort
SELECT 41 - - 8 + + col2 * + 82 FROM tab0 AS cor0 WHERE NOT ( col2 ) IN ( 69 * + - ( col0 ), + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9894
SELECT CAST( NULL AS SIGNED ) * + - 25 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9894
SELECT CAST ( NULL AS INTEGER ) * + - 25 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9895
SELECT COUNT( * ) * + + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9895
SELECT COUNT ( * ) * + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT + col2 AS col1, ( + ( 42 ) ) * + 80 + col0 AS col2, + ( + 31 ) + - 60 AS col2 FROM tab0
----
9 values hashing to 9bcba279894805172e644eeb93a32cd3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9897
SELECT CAST( col1 AS SIGNED ) * - 47 + - col1 AS col2 FROM tab1
----
-2256
-240
-672

skipif mysql # not compatible
query I rowsort label-9897
SELECT CAST ( col1 AS INTEGER ) * - 47 + - col1 AS col2 FROM tab1
----
-2256
-240
-672

query III rowsort
SELECT * FROM tab0 WHERE col1 / - 40 <= NULL
----

query I rowsort
SELECT DISTINCT col0 * - 65 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT - - MAX( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9900
SELECT - - MAX ( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
-46

query II rowsort
SELECT DISTINCT + 46, + col0 FROM tab1 AS cor0
----
46
51
46
85
46
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 93 ) >= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 * + - col2 FROM tab0 AS cor0 WHERE NOT NULL <= col2 * - + col2 - 97
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9904
SELECT ALL + + col1 * - - col2 + - 22 DIV + ( col1 ) AS col2 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL + + col1 * - - col2 + - 22 / + ( col1 ) AS col2 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT - + 62 + + 63 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9906
SELECT DISTINCT ( + 2 ) AS col1, 32 DIV - + 53 FROM tab0
----
2
0

skipif mysql # not compatible
query II rowsort label-9906
SELECT DISTINCT ( + 2 ) AS col1, 32 / - + 53 FROM tab0
----
2
0

query I rowsort
SELECT - 4 * + 88 + - - col2 FROM tab1
----
-256
-284
-293

query II rowsort
SELECT DISTINCT 36 - + + col2, + col1 FROM tab1
----
-23
5
-32
47
-60
14

onlyif mysql # aggregate syntax: 
query II rowsort label-9909
SELECT DISTINCT - - COUNT( * ) * COUNT( * ), 25 + - + 87 AS col0 FROM tab2 AS cor0
----
9
-62

skipif mysql # not compatible
query II rowsort label-9909
SELECT DISTINCT - - COUNT ( * ) * COUNT ( * ), 25 + - + 87 AS col0 FROM tab2 AS cor0
----
9
-62

query II rowsort
SELECT - col2 AS col0, + col1 FROM tab2
----
-23
51
-40
77
-58
67

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 76 + - - 49 * + col2 NOT BETWEEN - - col0 AND NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND + col2
----
15
87

query I rowsort
SELECT + + col0 * + ( - col1 ) + + col0 AS col1 FROM tab1 AS cor0
----
-340
-4186
-663

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 / 12 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * - + 5 + + col2 FROM tab2 AS cor0
----
278
393
425

query I rowsort
SELECT - 60 * + col1 FROM tab2 cor0
----
-3060
-4020
-4620

query I rowsort
SELECT + col0 * - 68 AS col2 FROM tab2 AS cor0
----
-3128
-4352
-5100

query II rowsort
SELECT - + 25 AS col2, col0 + - col1 + + col0 AS col0 FROM tab1 AS cor0
----
-25
135
-25
165
-25
88

query I rowsort
SELECT - + col0 * + - col1 AS col1 FROM tab2 cor0
----
2346
4928
5025

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 / + col2 = + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 89, col1 FROM tab1
----
89
14
89
47
89
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT ALL - COUNT( ALL + col1 ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9922
SELECT ALL - COUNT ( ALL + col1 ) col2 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9923
SELECT DISTINCT - CAST( 9 AS SIGNED ) + 84 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-9923
SELECT DISTINCT - CAST ( 9 AS INTEGER ) + 84 FROM tab2
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab1 WHERE NOT NULL >= - col2 * - + 73
----

query II rowsort
SELECT - col2 AS col0, col2 * + + col1 - - - col2 FROM tab0
----
-10
200
-47
3760
-99
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, col1 * ( + col2 ) FROM tab0 AS cor0
----
15
3807
87
210
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT ALL - 17 + - COUNT( * ) * COUNT( * ) + - + COUNT( * ) + - 18 AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL - 17 + - COUNT ( * ) * COUNT ( * ) + - + COUNT ( * ) + - 18 AS col2 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT ALL + - col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
-1
-21
-81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + + 46 + + 7 + ( - ( - col1 ) ) * + 85 BETWEEN 43 AND - 91
----

query I rowsort
SELECT - 94 + + - col2 - col1 FROM tab0
----
-125
-194
-222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 45 - - col2 col2 FROM tab2 AS cor0 WHERE ( NULL ) <= + + 2
----

query I rowsort
SELECT DISTINCT col2 * - - 7 FROM tab0 AS cor0
----
329
693
70

query II rowsort
SELECT DISTINCT - col2 + - col2 AS col2, + 45 AS col1 FROM tab2 AS cor0
----
-116
45
-46
45
-80
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9934
SELECT ALL + 68 + + 51, + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
119
NULL
119
NULL
119
NULL

skipif mysql # not compatible
query II rowsort label-9934
SELECT ALL + 68 + + 51, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
119
NULL
119
NULL
119
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( - col2 ) + - col1 * + 54 + - col1 * + + 63 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - - 8 + - 91 AS col2, + col2 AS col0 FROM tab1 AS cor0
----
-83
59
-83
68
-83
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( 66 ), col0 + - 82 col0 FROM tab2 AS cor0
----
66
-18
66
-36
66
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9938
SELECT - 50 DIV - COUNT( * ) FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-9938
SELECT - 50 / - COUNT ( * ) FROM tab0 AS cor0
----
16

query I rowsort
SELECT ALL col2 * - + col2 + + col0 * col0 FROM tab0 AS cor0
----
-1984
-392
7469

query II rowsort
SELECT DISTINCT col0 - - col0 AS col0, + 12 * col2 AS col1 FROM tab1 AS cor0
----
102
1152
170
708
182
816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9941
SELECT ALL + CAST( NULL AS SIGNED ) * + 1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL + CAST ( NULL AS INTEGER ) * + 1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - col1 + + + col2 - - + ( 75 ) + col1 AS col2 FROM tab1
----
134
143
171

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT DISTINCT - MAX( ALL - 96 ) FROM tab2 WHERE NOT + - 81 NOT BETWEEN NULL AND - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9943
SELECT DISTINCT - MAX ( ALL - 96 ) FROM tab2 WHERE NOT + - 81 NOT BETWEEN NULL AND - col1
----
NULL

query I rowsort
SELECT ALL 26 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE + + 97 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT + - col0 * col1 FROM tab2 WHERE NULL < - col0
----

query I rowsort
SELECT 78 * - col2 AS col1 FROM tab0
----
-3666
-7722
-780

onlyif mysql # DIV for integer division: 
query I rowsort label-9948
SELECT DISTINCT - - col1 DIV 62 AS col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9948
SELECT DISTINCT - - col1 / 62 AS col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT col1 * - ( - col0 ) AS col2 FROM tab1 AS cor0
----
425
4277
714

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 + + col2 / + + col1 NOT IN ( col0, col0 * col0 / + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT ALL + MAX( DISTINCT + 14 ) AS col1 FROM tab0 cor0
----
14

skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL + MAX ( DISTINCT + 14 ) AS col1 FROM tab0 cor0
----
14

query II rowsort
SELECT DISTINCT + col0, col2 + + col2 FROM tab0 AS cor0
----
15
94
87
20
97
198

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT - + COUNT( * ) AS col0 FROM tab1 WHERE NOT + - col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9953
SELECT - + COUNT ( * ) AS col0 FROM tab1 WHERE NOT + - col2 < NULL
----
0

query I rowsort
SELECT DISTINCT 31 * - 96 AS col0 FROM tab1
----
-2976

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( + ( + col2 ) ) + - - 2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9956
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN + - 48 + + col0 + - col0 * - 29 * + 27 + - CAST( NULL AS SIGNED ) AND + col1
----

skipif mysql # not compatible
query III rowsort label-9956
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN + - 48 + + col0 + - col0 * - 29 * + 27 + - CAST ( NULL AS INTEGER ) AND + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 72 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 11 NOT BETWEEN ( col2 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9959
SELECT ALL + COUNT( * ) DIV 93 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL + COUNT ( * ) / 93 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9960
SELECT DISTINCT + CAST( col2 AS SIGNED ) DIV col1 FROM tab0 AS cor0
----
0
99

skipif mysql # not compatible
query I rowsort label-9960
SELECT DISTINCT + CAST ( col2 AS INTEGER ) / col1 FROM tab0 AS cor0
----
0
99

query I rowsort
SELECT ALL + - col2 AS col2 FROM tab1 cor0 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > + ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT ALL - MAX( ALL - col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9963
SELECT ALL - MAX ( ALL - col1 ) FROM tab1
----
5

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = - 49
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9965
SELECT + 25 AS col2, COUNT( * ) col2 FROM tab2
----
25
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9965
SELECT + 25 AS col2, COUNT ( * ) col2 FROM tab2
----
25
3

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 <> - 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT - COUNT( ALL 95 ) + - COUNT( * ) + - 16 AS col2 FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-9967
SELECT - COUNT ( ALL 95 ) + - COUNT ( * ) + - 16 AS col2 FROM tab0
----
-22

query I rowsort
SELECT DISTINCT - 65 AS col0 FROM tab1 WHERE NOT NULL > + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT + COUNT( * ) + + 19 + - ( 25 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9969
SELECT + COUNT ( * ) + + 19 + - ( 25 ) AS col1 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 38 + col0 <= NULL
----

query I rowsort
SELECT ALL + + 21 + col2 AS col2 FROM tab2 AS cor0
----
44
61
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9972
SELECT DISTINCT - - 95 DIV + - SUM( - 70 ) + + COUNT( * ) * - - 88 AS col1 FROM tab0 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-9972
SELECT DISTINCT - - 95 / + - SUM ( - 70 ) + + COUNT ( * ) * - - 88 AS col1 FROM tab0 AS cor0
----
264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9973
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) * COUNT( * ) + + CAST( ( + 7 ) AS SIGNED ) + COUNT( * ) - - - 99 / + CAST( NULL AS SIGNED ) + + COUNT( * ) / MIN( DISTINCT - col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9973
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) * COUNT ( * ) + + CAST ( ( + 7 ) AS INTEGER ) + COUNT ( * ) - - - 99 / + CAST ( NULL AS INTEGER ) + + COUNT ( * ) / MIN ( DISTINCT - col2 ) FROM tab0 AS cor0
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NOT - 25 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT ALL + COUNT( 64 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL + COUNT ( 64 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9976
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT ALL col1 + - + col2 AS col2 FROM tab1
----
-21
-54
-82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9978
SELECT DISTINCT - col0 * col2 / - 54 * - CAST( NULL AS DECIMAL ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9978
SELECT DISTINCT - col0 * col2 / - 54 * - CAST ( NULL AS REAL ) col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9979
SELECT * FROM tab0 WHERE + CAST( - ( col0 ) AS SIGNED ) + + 85 <> NULL
----

skipif mysql # not compatible
query III rowsort label-9979
SELECT * FROM tab0 WHERE + CAST ( - ( col0 ) AS INTEGER ) + + 85 <> NULL
----

query I rowsort
SELECT ALL col0 * - col0 * - col1 AS col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
107916
315392
376875

query I rowsort
SELECT - 33 + + 80 AS col0 FROM tab2 cor0
----
47
47
47

query I rowsort
SELECT + col1 + 59 AS col2 FROM tab1 AS cor0
----
106
64
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9983
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - ( + col1 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9983
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - ( + col1 ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - + col2 = - col1
----

query I rowsort
SELECT 21 * + col0 + + col1 + + - 2 AS col1 FROM tab0
----
1846
2036
394

query I rowsort
SELECT ALL - 35 - - 65 FROM tab1
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT ALL COUNT( * ) * + 85 * - 48 AS col0 FROM tab2
----
-12240

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL COUNT ( * ) * + 85 * - 48 AS col0 FROM tab2
----
-12240

query II rowsort
SELECT ALL col0 * - + col2 AS col2, 48 * - col2 FROM tab2
----
-1058
-1104
-2560
-1920
-4350
-2784

query I rowsort
SELECT ALL col2 * + col2 * col1 AS col0 FROM tab0
----
178929
2100
9801

query I rowsort
SELECT + col2 * + + 76 - - ( col2 ) FROM tab1 cor0
----
4543
5236
7392

query I rowsort
SELECT ALL + 85 * + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 46 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT - COUNT( - + col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9993
SELECT - COUNT ( - + col0 ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT col2 AS col0, - col1 FROM tab2
----
23
-51
40
-77
58
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9995
SELECT CAST( + 28 AS SIGNED ) AS col0 FROM tab1
----
28
28
28

skipif mysql # not compatible
query I rowsort label-9995
SELECT CAST ( + 28 AS INTEGER ) AS col0 FROM tab1
----
28
28
28

query I rowsort
SELECT DISTINCT + 89 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
89

query I rowsort
SELECT ALL col0 * + - 76 FROM tab0
----
-1140
-6612
-7372

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * + - 60 IS NOT NULL
----

