sqllogictest
Artifact Content
Not logged in

Artifact e438e244bc81f436ac2d5f6f9bc68ef2b4a55ba1:


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 III rowsort
SELECT * FROM tab2 WHERE NOT + 98 NOT BETWEEN + col1 AND + + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT - CAST( - col0 AS SIGNED ) IN ( col2, + col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-1
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT - CAST ( - col0 AS INTEGER ) IN ( col2, + col2 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT COUNT( * ) * 50 FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-2
SELECT COUNT ( * ) * 50 FROM tab1
----
150

onlyif mysql # DIV for integer division: 
query I rowsort label-3
SELECT ALL - col2 DIV - + col1 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-3
SELECT ALL - col2 / - + col1 FROM tab0
----
0
0
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT DISTINCT - - COUNT( * ) + + - 66 col2 FROM tab2 WHERE ( ( + - 71 IS NULL ) )
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5
SELECT DISTINCT - - COUNT ( * ) + + - 66 col2 FROM tab2 WHERE ( ( + - 71 IS NULL ) )
----
-66

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

skipif mysql # not compatible
query I rowsort label-6
SELECT MIN ( DISTINCT col0 ) AS col0 FROM tab1 cor0
----
51

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

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

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

query I rowsort
SELECT DISTINCT + - 76 AS col1 FROM tab2 AS cor0
----
-76

query II rowsort
SELECT DISTINCT 18, col2 - + + col0 AS col1 FROM tab1 cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT + 15 * col1 + + 45 + - ( - col2 ) FROM tab0 AS cor0
----
1307
159
370

query II rowsort
SELECT DISTINCT col2 + 9, 52 AS col0 FROM tab1
----
105
52
68
52
77
52

query I rowsort
SELECT DISTINCT - 23 * col0 FROM tab1
----
-1173
-1955
-2093

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

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

query I rowsort
SELECT DISTINCT - ( + col1 ) * - + col0 + col1 FROM tab2
----
2397
5005
5092

query I rowsort
SELECT + col2 + + col2 * + ( - - col1 ) AS col0 FROM tab1
----
1440
3264
354

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

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

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

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

query I rowsort
SELECT ALL - 60 + + - ( - - col1 ) AS col0 FROM tab1 AS cor0
----
-107
-65
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT ALL - 62 - - - MIN( - col0 ) col2 FROM tab0
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-21
SELECT ALL - 62 - - - MIN ( - col0 ) col2 FROM tab0
----
35

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

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT 17 * + COUNT( * ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-23
SELECT 17 * + COUNT ( * ) FROM tab1
----
51

query I rowsort
SELECT - 79 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query I rowsort
SELECT col2 * + 69 FROM tab2
----
1587
2760
4002

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 54 * col0 <= NULL
----

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

skipif mysql # not compatible
query II rowsort label-27
SELECT DISTINCT + COUNT ( * ) AS col2, COUNT ( * ) FROM tab1 AS cor0
----
3
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-29
SELECT - + col0 DIV + + 24 FROM tab1 AS cor0
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-29
SELECT - + col0 / + + 24 FROM tab1 AS cor0
----
-2
-3
-3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT DISTINCT + MAX( ALL - col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-32
SELECT DISTINCT + MAX ( ALL - col2 ) FROM tab2
----
-23

query I rowsort
SELECT + 21 * - + col2 FROM tab0
----
-2079
-210
-987

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-34
SELECT + SUM( DISTINCT col0 ) * SUM( 9 ) DIV 32 AS col2 FROM tab1
----
191

skipif mysql # not compatible
query I rowsort label-34
SELECT + SUM ( DISTINCT col0 ) * SUM ( 9 ) / 32 AS col2 FROM tab1
----
191

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

query I rowsort
SELECT ALL - ( + + ( + col1 ) ) AS col0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT - - 87 * 95 AS col1 FROM tab0 AS cor0
----
8265
8265
8265

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

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

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

query II rowsort
SELECT ALL col2 + + col0 + + 84, - col0 AS col2 FROM tab2
----
153
-46
188
-64
217
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-42
SELECT - + 11 * + col2 * + col0 + + 52 + - + CAST( - 60 AS SIGNED ) FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-42
SELECT - + 11 * + col2 * + col0 + + 52 + - + CAST ( - 60 AS INTEGER ) FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 - 38 * col0 IS NULL
----
14
47
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 35 > + 24 * + 45 + + 49
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col1 + + 79 FROM tab1 AS cor0 WHERE + 29 IS NOT NULL
----
32
65
74

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + - 83 <= NULL
----

query II rowsort
SELECT col2 * + col1, col2 FROM tab2 AS cor0
----
1173
23
3080
40
3886
58

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-50
SELECT ALL 48 - - COUNT( * ) DIV - - 18 FROM tab2 cor0
----
48

skipif mysql # not compatible
query I rowsort label-50
SELECT ALL 48 - - COUNT ( * ) / - - 18 FROM tab2 cor0
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 * + 17 AS col1, 41 col2 FROM tab0 AS cor0
----
-1683
41
-170
41
-799
41

query I rowsort
SELECT ALL - + col2 FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL NOT BETWEEN col0 AND + ( + 21 ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-53
SELECT - 25 * + CAST( + + COUNT( ALL - 61 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-53
SELECT - 25 * + CAST ( + + COUNT ( ALL - 61 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-75

query II rowsort
SELECT DISTINCT - col2, - 15 AS col2 FROM tab0
----
-10
-15
-47
-15
-99
-15

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

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

query I rowsort
SELECT DISTINCT 92 * - - col1 AS col0 FROM tab0
----
1932
7452
92

query I rowsort
SELECT ALL + 24 + - col2 FROM tab1
----
-35
-44
-72

query I rowsort
SELECT ALL 77 * + + 54 AS col2 FROM tab2
----
4158
4158
4158

query I rowsort
SELECT DISTINCT + col0 + - col0 + + + 53 * - col0 * col0 + + - 44 + col1 + - - 3 FROM tab0
----
-11885
-401177
-498717

query I rowsort
SELECT ALL 31 + 76 FROM tab0
----
107
107
107

onlyif mysql # DIV for integer division: 
query I rowsort label-61
SELECT DISTINCT col2 DIV - 33 + col2 + - col1 AS col2 FROM tab2 AS cor0
----
-10
-28
-38

skipif mysql # not compatible
query I rowsort label-61
SELECT DISTINCT col2 / - 33 + col2 + - col1 AS col2 FROM tab2 AS cor0
----
-10
-28
-38

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-62
SELECT ( + + ( - col1 ) ) DIV - col0 + + CAST( 53 AS SIGNED ) AS col2, + col2 AS col2 FROM tab0 AS cor0
----
53
10
53
99
58
47

skipif mysql # not compatible
query II rowsort label-62
SELECT ( + + ( - col1 ) ) / - col0 + + CAST ( 53 AS INTEGER ) AS col2, + col2 AS col2 FROM tab0 AS cor0
----
53
10
53
99
58
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 ) <> + 3
----

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

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

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

skipif mysql # not compatible
query I rowsort label-65
SELECT DISTINCT MAX ( - 83 ) FROM tab2 AS cor0
----
-83

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 * + col2, + col0, - col2, - + 3 + col0 - col1, col2 + col0, - col2, col2 )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-68
SELECT DISTINCT + COUNT( * ) * + 95 * ( - CAST( + - 46 AS SIGNED ) ) FROM tab0 AS cor0
----
13110

skipif mysql # not compatible
query I rowsort label-68
SELECT DISTINCT + COUNT ( * ) * + 95 * ( - CAST ( + - 46 AS INTEGER ) ) FROM tab0 AS cor0
----
13110

query I rowsort
SELECT + 30 * + col2 AS col2 FROM tab0
----
1410
2970
300

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * - 27 + + col2 FROM tab0
----
-1222
-2574
-260

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

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT ALL - - ( + - COUNT( * ) ) + + + COUNT( * ) * 92 AS col0 FROM tab2 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL - - ( + - COUNT ( * ) ) + + + COUNT ( * ) * 92 AS col0 FROM tab2 AS cor0
----
273

onlyif mysql # DIV for integer division: 
query I rowsort label-77
SELECT + - ( - 24 ) DIV - + col0 * 35 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-77
SELECT + - ( - 24 ) / - + col0 * 35 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-78
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED ) * - - 74 FROM tab2 AS cor0 WHERE + col1 IN ( + - 95, col1, + col1 * col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-78
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - - 74 FROM tab2 AS cor0 WHERE + col1 IN ( + - 95, col1, + col1 * col0 )
----
NULL

query I rowsort
SELECT ALL 59 + - col2 * + + 29 AS col0 FROM tab0 AS cor0
----
-1304
-231
-2812

query I rowsort
SELECT - col2 + col0 + - 40 FROM tab0 AS cor0
----
-42
-72
37

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > 98
----

query I rowsort
SELECT ALL - col1 + 50 - - - col1 + + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-3441
-4668
-9194

query I rowsort
SELECT DISTINCT + - col0 - + + 63 + 18 AS col1 FROM tab0 AS cor0
----
-132
-142
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-84
SELECT ALL MIN( - col1 ) DIV COUNT( * ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-84
SELECT ALL MIN ( - col1 ) / COUNT ( * ) FROM tab2 AS cor0
----
-25

query I rowsort
SELECT ALL 22 - - ( + + col2 ) FROM tab0 AS cor0
----
121
32
69

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT + - 27 + 32 + + - ( COUNT( * ) ) FROM tab2 cor0
----
2

skipif mysql # not compatible
query I rowsort label-86
SELECT + - 27 + 32 + + - ( COUNT ( * ) ) FROM tab2 cor0
----
2

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

query I rowsort
SELECT DISTINCT + 96 * + + col2 AS col1 FROM tab1
----
5664
6528
9216

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 86 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT DISTINCT + SUM( ALL + col2 ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
363

skipif mysql # not compatible
query I rowsort label-91
SELECT DISTINCT + SUM ( ALL + col2 ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
363

onlyif mysql # DIV for integer division: 
query I rowsort label-92
SELECT DISTINCT - 78 DIV - + col2 FROM tab2 WHERE NOT col0 + + col0 IS NULL
----
1
3

skipif mysql # not compatible
query I rowsort label-92
SELECT DISTINCT - 78 / - + col2 FROM tab2 WHERE NOT col0 + + col0 IS NULL
----
1
3

onlyif mysql # aggregate syntax: 
query II rowsort label-93
SELECT - SUM( + - ( - col1 ) ), - 80 AS col2 FROM tab0
----
-103
-80

skipif mysql # not compatible
query II rowsort label-93
SELECT - SUM ( + - ( - col1 ) ), - 80 AS col2 FROM tab0
----
-103
-80

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-95
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT col2 = + col0 / col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-95
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT col2 = + col0 / col0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 ) < + col0
----
51
14
96

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 < + - col2
----

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

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

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

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

query I rowsort
SELECT - col0 * + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-4896
-5015
-6188

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

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

query I rowsort
SELECT ALL col2 + + + col1 + - - 95 * col0 AS col0 FROM tab1
----
4955
8139
8760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-107
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 WHERE - + ( - 87 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-107
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE - + ( - 87 ) IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 75 * - 25 + col1 IS NOT NULL
----

query I rowsort
SELECT ALL 45 + - col1 FROM tab0 AS cor0
----
-36
24
44

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

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

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

query I rowsort
SELECT 95 + + - col1 - - col0 FROM tab2
----
103
82
90

query I rowsort
SELECT DISTINCT 18 FROM tab1, tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col0 - ( - - col2 ) + + + col1 FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
-31
31
70

query I rowsort
SELECT ALL - - col0 + + 12 AS col1 FROM tab1 AS cor0
----
103
63
97

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT ALL + - 7 * + 67 - - - ( COUNT( ALL - col1 ) ) FROM tab0 AS cor0
----
-472

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL + - 7 * + 67 - - - ( COUNT ( ALL - col1 ) ) FROM tab0 AS cor0
----
-472

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 22 = NULL
----

query I rowsort
SELECT DISTINCT 28 + - - col0 FROM tab1 AS cor0
----
113
119
79

query I rowsort
SELECT 74 * + - ( - - ( col0 ) ) - col0 AS col2 FROM tab1 cor0 WHERE NULL <> - 3
----

onlyif mysql # DIV for integer division: 
query I rowsort label-120
SELECT DISTINCT - col1 - - col2 - col2 DIV + 50 FROM tab2 AS cor0
----
-10
-28
-37

skipif mysql # not compatible
query I rowsort label-120
SELECT DISTINCT - col1 - - col2 - col2 / + 50 FROM tab2 AS cor0
----
-10
-28
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-66
-66
-66

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-123
SELECT DISTINCT 58 AS col0 FROM tab1 AS cor0 WHERE NOT col0 * col1 = + CAST( col1 AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-123
SELECT DISTINCT 58 AS col0 FROM tab1 AS cor0 WHERE NOT col0 * col1 = + CAST ( col1 AS INTEGER )
----
58

query I rowsort
SELECT 61 * + 58 - - - 37 FROM tab2
----
3501
3501
3501

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL 77, col2 col1, + + col2 + - 90 + + 3 * col2 * col1 + - col2 col2 FROM tab2
----
9 values hashing to 96419eab0f1910163da6722474d4113b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-127
SELECT + COUNT( * ) - - CAST( - - 32 AS SIGNED ) FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-127
SELECT + COUNT ( * ) - - CAST ( - - 32 AS INTEGER ) FROM tab1
----
35

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-130
SELECT DISTINCT - 30 AS col2, col2 + - col2 DIV - 98 FROM tab2
----
-30
23
-30
40
-30
58

skipif mysql # not compatible
query II rowsort label-130
SELECT DISTINCT - 30 AS col2, col2 + - col2 / - 98 FROM tab2
----
-30
23
-30
40
-30
58

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT ALL 73 * - COUNT( * ) col0 FROM tab1 cor0
----
-219

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

query I rowsort
SELECT + + col2 * + 48 FROM tab0 cor0
----
2256
4752
480

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

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

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

query I rowsort
SELECT - 87 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT + 21 >= NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-138
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - col1 + + 80, 54 * + 3, - 29, + CAST( - col1 AS SIGNED ) + 54, - - col0 * 64 )
----

skipif mysql # not compatible
query III rowsort label-138
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - col1 + + 80, 54 * + 3, - 29, + CAST ( - col1 AS INTEGER ) + 54, - - col0 * 64 )
----

query I rowsort
SELECT DISTINCT - + 45 * + col1 + + col2 FROM tab1 AS cor0
----
-166
-2047
-534

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-142
SELECT COUNT( * ) DIV - 3, - 4 DIV CAST( + + AVG ( DISTINCT col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query II rowsort label-142
SELECT COUNT ( * ) / - 3, - 4 / CAST ( + + AVG ( DISTINCT col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT 80 + + col0 FROM tab2
----
126
144
155

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

skipif mysql # not compatible
query I rowsort label-144
SELECT DISTINCT - COUNT ( * ) + + 65 FROM tab2
----
62

query I rowsort
SELECT 88 + + + ( - - col2 ) AS col2 FROM tab0
----
135
187
98

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT DISTINCT + COUNT( ALL - 89 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-146
SELECT DISTINCT + COUNT ( ALL - 89 ) FROM tab2 AS cor0
----
3

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

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

skipif mysql # not compatible
query II rowsort label-148
SELECT - - col0, + col0 / - col1 AS col1 FROM tab0 AS cor0
----
15
0
87
-4
97
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-149
SELECT DISTINCT col2 + col2 AS col1 FROM tab2 WHERE NOT - 89 * CAST( NULL AS DECIMAL ) IS NOT NULL
----
116
46
80

skipif mysql # not compatible
query I rowsort label-149
SELECT DISTINCT col2 + col2 AS col1 FROM tab2 WHERE NOT - 89 * CAST ( NULL AS REAL ) IS NOT NULL
----
116
46
80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT SUM( 89 ) - COUNT( * ) AS col1 FROM tab1 WHERE NOT ( col1 ) IS NULL
----
264

skipif mysql # not compatible
query I rowsort label-151
SELECT SUM ( 89 ) - COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( col1 ) IS NULL
----
264

query I rowsort
SELECT ALL 53 * - 77 FROM tab1
----
-4081
-4081
-4081

query I rowsort
SELECT DISTINCT + col1 + - 55 * - col2 AS col1 FROM tab1
----
3250
3787
5294

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT COUNT( * ) - 19 col2 FROM tab0
----
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-154
SELECT COUNT ( * ) - 19 col2 FROM tab0
----
-16

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-156
SELECT col0 - + col1 DIV - col1 AS col0 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-156
SELECT col0 - + col1 / - col1 AS col0 FROM tab2
----
47
65
76

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

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

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

query I rowsort
SELECT ALL + 48 + - col0 FROM tab1
----
-3
-37
-43

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT col2 * col0 + + col0 >= + ( + 58 ) * + col2
----
96

query I rowsort
SELECT - 73 * col0 AS col1 FROM tab0
----
-1095
-6351
-7081

query I rowsort
SELECT - 56 * 97 AS col0 FROM tab0
----
-5432
-5432
-5432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-163
SELECT - ( + ( CAST( 61 AS SIGNED ) ) ) * col0 AS col2 FROM tab1
----
-3111
-5185
-5551

skipif mysql # not compatible
query I rowsort label-163
SELECT - ( + ( CAST ( 61 AS INTEGER ) ) ) * col0 AS col2 FROM tab1
----
-3111
-5185
-5551

query I rowsort
SELECT - 61 * col1 + - col1 * 67 AS col0 FROM tab1
----
-1792
-6016
-640

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT ALL - MIN( ALL + 16 ) FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-165
SELECT ALL - MIN ( ALL + 16 ) FROM tab1
----
-16

query I rowsort
SELECT + 52 - - col0 FROM tab0
----
139
149
67

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT DISTINCT - COUNT( + 56 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-167
SELECT DISTINCT - COUNT ( + 56 ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT col0 * + col2 + - col1 AS col1 FROM tab0 WHERE col1 NOT IN ( col1 + + 86 )
----
624
849
9602

query III rowsort
SELECT * FROM tab0 WHERE ( 46 ) IS NULL
----

query I rowsort
SELECT ALL + 53 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT ALL SUM( + ( col0 ) ) * + 95 - 32 FROM tab2
----
17543

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL SUM ( + ( col0 ) ) * + 95 - 32 FROM tab2
----
17543

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

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

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

query I rowsort
SELECT + ( col0 ) * + 35 FROM tab0 AS cor0
----
3045
3395
525

query I rowsort
SELECT col1 / 0 + 8 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT ALL SUM( - ( col0 ) ) * 50 FROM tab2 cor0
----
-9250

skipif mysql # not compatible
query I rowsort label-177
SELECT ALL SUM ( - ( col0 ) ) * 50 FROM tab2 cor0
----
-9250

onlyif mysql # DIV for integer division: 
query I rowsort label-178
SELECT ALL col1 + ( col2 + + col2 * col1 ) DIV 44 FROM tab0 AS cor0 WHERE NULL IS NULL
----
168
26
5

skipif mysql # not compatible
query I rowsort label-178
SELECT ALL col1 + ( col2 + + col2 * col1 ) / 44 FROM tab0 AS cor0 WHERE NULL IS NULL
----
168
26
5

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT - MAX( ( 54 ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
-54

skipif mysql # not compatible
query I rowsort label-179
SELECT - MAX ( ( 54 ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
-54

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-181
SELECT col2 + CAST( - col2 AS SIGNED ) * col2 col0 FROM tab1
----
-3422
-4556
-9120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-181
SELECT col2 + CAST ( - col2 AS INTEGER ) * col2 col0 FROM tab1
----
-3422
-4556
-9120

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-182
SELECT + 92 + CAST( NULL AS DECIMAL ) * AVG ( - col1 / col2 ) col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-182
SELECT + 92 + CAST ( NULL AS REAL ) * AVG ( - col1 / col2 ) col1 FROM tab0 cor0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-185
SELECT ALL - SUM( ALL ( + col1 ) ) * - SUM( - col1 + + 79 ) AS col0 FROM tab0 AS cor0
----
13802

skipif mysql # not compatible
query I rowsort label-185
SELECT ALL - SUM ( ALL ( + col1 ) ) * - SUM ( - col1 + + 79 ) AS col0 FROM tab0 AS cor0
----
13802

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

query I rowsort
SELECT ALL col0 + col0 FROM tab1 AS cor0 WHERE NOT ( + col0 * + ( + 93 ) ) IS NULL
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT ALL 54 * - + MAX( col1 ) FROM tab2
----
-4158

skipif mysql # not compatible
query I rowsort label-188
SELECT ALL 54 * - + MAX ( col1 ) FROM tab2
----
-4158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-189
SELECT ALL CAST( - col2 AS SIGNED ) FROM tab0 WHERE NOT NULL NOT BETWEEN col1 AND + ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-189
SELECT ALL CAST ( - col2 AS INTEGER ) FROM tab0 WHERE NOT NULL NOT BETWEEN col1 AND + ( + col0 )
----

query I rowsort
SELECT - 52 + + col1 AS col0 FROM tab1 WHERE - col1 + + col2 IN ( ( - col2 ) ) OR col2 <> - 57
----
-38
-47
-5

query I rowsort
SELECT DISTINCT + col2 + - col1 + + 27 * - 51 FROM tab1
----
-1295
-1323
-1356

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-192
SELECT COUNT( * ) DIV - 77 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-192
SELECT COUNT ( * ) / - 77 AS col1 FROM tab0
----
0

query I rowsort
SELECT + 26 + col1 FROM tab2 WHERE NULL NOT IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-194
SELECT * FROM tab1 WHERE + col0 > col2 + CAST( NULL AS SIGNED ) * - 55
----

skipif mysql # not compatible
query III rowsort label-194
SELECT * FROM tab1 WHERE + col0 > col2 + CAST ( NULL AS INTEGER ) * - 55
----

query I rowsort
SELECT ALL col2 + + 89 - col0 AS col0 FROM tab0
----
12
121
91

query I rowsort
SELECT DISTINCT + col0 * - - 89 FROM tab1
----
4539
7565
8099

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-197
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - ( + col0 ) / + col0 col1 FROM tab0
----
NULL

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

query I rowsort
SELECT DISTINCT col1 + 98 + col0 * + col0 FROM tab2
----
2265
4271
5790

query I rowsort
SELECT DISTINCT col1 + + + ( col2 ) * - col2 FROM tab2 AS cor0
----
-1523
-3297
-478

onlyif mysql # DIV for integer division: 
query I rowsort label-201
SELECT ALL + + ( col0 ) DIV col0 + + col2 AS col1 FROM tab1 AS cor0
----
60
69
97

skipif mysql # not compatible
query I rowsort label-201
SELECT ALL + + ( col0 ) / col0 + + col2 AS col1 FROM tab1 AS cor0
----
60
69
97

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

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

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

query I rowsort
SELECT - col1 + - 84 - - - col0 AS col0 FROM tab2
----
-181
-225
-226

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

query I rowsort
SELECT ALL col0 + + col1 + - 7 * + col0 AS col2 FROM tab0 AS cor0
----
-501
-581
-9

query I rowsort
SELECT ALL 65 + + + 72 AS col0 FROM tab0 AS cor0
----
137
137
137

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT DISTINCT - MIN( + ( - col0 ) ) * - 20 + 79 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 IN ( - col1 * col2 )
----
-1421

skipif mysql # not compatible
query I rowsort label-208
SELECT DISTINCT - MIN ( + ( - col0 ) ) * - 20 + 79 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 IN ( - col1 * col2 )
----
-1421

query I rowsort
SELECT DISTINCT + + 72 AS col2 FROM tab2 cor0
----
72

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

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

query I rowsort
SELECT ALL 34 FROM tab0 AS cor0 WHERE 76 * + - col2 IS NOT NULL
----
34
34
34

query I rowsort
SELECT + col1 * + + 6 FROM tab0 AS cor0
----
126
486
6

query II rowsort
SELECT DISTINCT - ( - col2 ) AS col1, + col2 AS col0 FROM tab1
----
59
59
68
68
96
96

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-215
SELECT MIN( col1 ) col2, + MAX( DISTINCT - 40 ) AS col0 FROM tab1
----
5
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-215
SELECT MIN ( col1 ) col2, + MAX ( DISTINCT - 40 ) AS col0 FROM tab1
----
5
-40

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - + 61 ) IN ( 28 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-217
SELECT DISTINCT CAST( NULL AS SIGNED ) col2 FROM tab2 WHERE NOT NULL BETWEEN + col0 / + 12 AND col0 * 57
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-217
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2 FROM tab2 WHERE NOT NULL BETWEEN + col0 / + 12 AND col0 * 57
----

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT ( NULL ) IN ( 70 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-220
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) < + 46 * - 57
----

skipif mysql # not compatible
query III rowsort label-220
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) < + 46 * - 57
----

query I rowsort
SELECT - col0 * 85 * 11 FROM tab1 AS cor0
----
-47685
-79475
-85085

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT DISTINCT - - COUNT( * ) * - MAX( ALL + col2 ) * - SUM( col2 ) + COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
21060

skipif mysql # not compatible
query I rowsort label-222
SELECT DISTINCT - - COUNT ( * ) * - MAX ( ALL + col2 ) * - SUM ( col2 ) + COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
21060

query I rowsort
SELECT - ( - + 20 ) * - col1 AS col0 FROM tab2
----
-1020
-1340
-1540

query I rowsort
SELECT ALL - 70 * col0 FROM tab2
----
-3220
-4480
-5250

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= ( col2 * + + col0 * + col2 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT + - 46 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-228
SELECT + - 46 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-138

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

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT - 26 + - COUNT( + ( - 12 ) ) FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-230
SELECT - 26 + - COUNT ( + ( - 12 ) ) FROM tab1 AS cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT DISTINCT COUNT( ( + col2 ) ) * - + 38 FROM tab2 cor0
----
-114

skipif mysql # not compatible
query I rowsort label-231
SELECT DISTINCT COUNT ( ( + col2 ) ) * - + 38 FROM tab2 cor0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-232
SELECT ALL + 60 * + COUNT( * ) col1 FROM tab1
----
180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-232
SELECT ALL + 60 * + COUNT ( * ) col1 FROM tab1
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-233
SELECT ALL - CAST( - + col1 AS SIGNED ) * - col1 * - col0 AS col1 FROM tab1
----
201019
2125
9996

skipif mysql # not compatible
query I rowsort label-233
SELECT ALL - CAST ( - + col1 AS INTEGER ) * - col1 * - col0 AS col1 FROM tab1
----
201019
2125
9996

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

skipif mysql # not compatible
query I rowsort label-234
SELECT - + COUNT ( - col0 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL 64 * + 26 FROM tab0
----
1664
1664
1664

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT ALL COUNT( * ) + - - 78 AS col1 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-236
SELECT ALL COUNT ( * ) + - - 78 AS col1 FROM tab2
----
81

query I rowsort
SELECT DISTINCT col2 * - + 82 AS col2 FROM tab0
----
-3854
-8118
-820

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-238
SELECT * FROM tab0 WHERE ( ( NOT ( NOT ( col0 / col2 + CAST( 58 AS SIGNED ) ) NOT IN ( col1 + - col1 ) ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-238
SELECT * FROM tab0 WHERE ( ( NOT ( NOT ( col0 / col2 + CAST ( 58 AS INTEGER ) ) NOT IN ( col1 + - col1 ) ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * - 95 + + + col1 AS col1 FROM tab1
----
-5600
-6413
-9106

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col0 > ( + col1 )
----

query II rowsort
SELECT + + col1, col0 * - col2 FROM tab0 AS cor0
----
1
-9603
21
-870
81
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT ALL COUNT( * ) FROM tab1 cor0 WHERE - 46 / - col0 > - col0 * - - ( col2 ) + + 75
----
3

skipif mysql # not compatible
query I rowsort label-242
SELECT ALL COUNT ( * ) FROM tab1 cor0 WHERE - 46 / - col0 > - col0 * - - ( col2 ) + + 75
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-243
SELECT 40 AS col1, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
40
-3

skipif mysql # not compatible
query II rowsort label-243
SELECT 40 AS col1, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
40
-3

query II rowsort
SELECT - col1, col1 + - 38 AS col1 FROM tab2 AS cor0
----
-51
13
-67
29
-77
39

query I rowsort
SELECT ALL - - col1 + + ( + 72 ) FROM tab1 AS cor0
----
119
77
86

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( - 85 * col2 ) AND 69 / - col0 * col0
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE col2 <> + col2
----

query I rowsort
SELECT DISTINCT - 22 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-22

query I rowsort
SELECT col1 + - 97 + - 95 + + + col1 + col0 + col1 * + ( 80 ) FROM tab0
----
-13
1617
6465

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT ALL + COUNT( * ) * - 29 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL + COUNT ( * ) * - 29 FROM tab0 AS cor0
----
-87

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col0 BETWEEN 97 AND - col0 + col1 + col2 + + 80 * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - ( + col2 ) FROM tab1 AS cor0 WHERE NOT NULL >= + 78
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-256
SELECT - 3 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-256
SELECT - 3 * + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-257
SELECT DISTINCT - CAST( - col1 AS SIGNED ) DIV col0 FROM tab0
----
0
5

skipif mysql # not compatible
query I rowsort label-257
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) / col0 FROM tab0
----
0
5

query I rowsort
SELECT + col0 * + ( + col1 ) FROM tab1
----
425
4277
714

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-260
SELECT col2 * + CAST( CAST( - + col0 AS SIGNED ) AS SIGNED ) AS col0, col0 + + + col1 FROM tab2
----
-1058
97
-2560
141
-4350
142

skipif mysql # not compatible
query II rowsort label-260
SELECT col2 * + CAST ( CAST ( - + col0 AS INTEGER ) AS INTEGER ) AS col0, col0 + + + col1 FROM tab2
----
-1058
97
-2560
141
-4350
142

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 = - 28
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-263
SELECT 56 - - col2 * 35 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 3 AND + 92 / col0 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-263
SELECT 56 - - col2 * 35 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 3 AND + 92 / col0 * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 40 + col2 AS col0 FROM tab0
----
139
50
87

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT DISTINCT + MAX( DISTINCT - - col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-265
SELECT DISTINCT + MAX ( DISTINCT - - col2 ) FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-266
SELECT COUNT( DISTINCT - - 81 ) FROM tab1, tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-266
SELECT COUNT ( DISTINCT - - 81 ) FROM tab1, tab1 AS cor0
----
1

query I rowsort
SELECT 88 + - - col2 * - - 28 FROM tab1
----
1740
1992
2776

query I rowsort
SELECT + 32 + col2 AS col0 FROM tab1 AS cor0
----
100
128
91

query I rowsort
SELECT DISTINCT + + col0 + + col1 AS col2 FROM tab2 cor0
----
141
142
97

query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT + 93 * + 54 + + col1 * - 58 + 80 * - 9 IS NULL OR NOT NULL <> col0
----
23
40
58

query I rowsort
SELECT ALL - + ( + col1 ) AS col0 FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-272
SELECT - ( + - COUNT( + ( - col1 ) ) ) DIV 88 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-272
SELECT - ( + - COUNT ( + ( - col1 ) ) ) / 88 FROM tab1
----
0

query I rowsort
SELECT 12 FROM tab2 WHERE - + 18 IS NOT NULL
----
12
12
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-274
SELECT DISTINCT 46 * - col0 / + CAST( NULL AS SIGNED ) * + 50 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-274
SELECT DISTINCT 46 * - col0 / + CAST ( NULL AS INTEGER ) * + 50 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( 13 ) IN ( - col0 + + - col2, + col1 / 50 )
----

query I rowsort
SELECT ALL + 25 + - 89 + - col0 * - col1 FROM tab1
----
361
4213
650

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-279
SELECT DISTINCT col2 col1 FROM tab0 WHERE + - CAST ( NULL AS INTEGER ) IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT + MAX( + + col0 ) - 29 AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-280
SELECT + MAX ( + + col0 ) - 29 AS col2 FROM tab2
----
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN 20 AND NULL
----

query I rowsort
SELECT - 94 + - - 2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col0, col2 + 32 AS col0 FROM tab2
----
23
55
40
72
58
90

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-285
SELECT DISTINCT + 84 DIV + + ( 28 ) - - COUNT( * ) * - COUNT( * ) * 51 * - 13 FROM tab1 AS cor0
----
5970

skipif mysql # not compatible
query I rowsort label-285
SELECT DISTINCT + 84 / + + ( 28 ) - - COUNT ( * ) * - COUNT ( * ) * 51 * - 13 FROM tab1 AS cor0
----
5970

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 78 col2, - col2 + + col2 AS col0 FROM tab0 AS cor0
----
-78
0

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

skipif mysql # not compatible
query II rowsort label-288
SELECT DISTINCT + col1, - col0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * col0 col1 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-291
SELECT DISTINCT + col2 DIV + 81 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-291
SELECT DISTINCT + col2 / + 81 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-292
SELECT - SUM( + CAST( NULL AS SIGNED ) ), 20 AS col0 FROM tab0
----
NULL
20

skipif mysql # not compatible
query II rowsort label-292
SELECT - SUM ( + CAST ( NULL AS INTEGER ) ), 20 AS col0 FROM tab0
----
NULL
20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-293
SELECT DISTINCT + col2 DIV + 4, - CAST( 98 AS SIGNED ) AS col1 FROM tab1
----
14
-98
17
-98
24
-98

skipif mysql # not compatible
query II rowsort label-293
SELECT DISTINCT + col2 / + 4, - CAST ( 98 AS INTEGER ) AS col1 FROM tab1
----
14
-98
17
-98
24
-98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = + - 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT - SUM( 22 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-295
SELECT - SUM ( 22 ) FROM tab1
----
-66

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT ( - - col1 * col0 ) <> 31
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > + 42
----

query II rowsort
SELECT ALL ( + col1 ) AS col2, - 64 FROM tab2
----
51
-64
67
-64
77
-64

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-300
SELECT DISTINCT + COUNT( * ), ( + + 48 ) AS col1 FROM tab1, tab1 AS cor0
----
9
48

skipif mysql # not compatible
query II rowsort label-300
SELECT DISTINCT + COUNT ( * ), ( + + 48 ) AS col1 FROM tab1, tab1 AS cor0
----
9
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-301
SELECT COUNT( * ) + 23 DIV + 86 * + SUM( DISTINCT + + col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-301
SELECT COUNT ( * ) + 23 / + 86 * + SUM ( DISTINCT + + col2 ) FROM tab2 AS cor0
----
3

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

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

query I rowsort
SELECT - col2 + + col2 * + 33 FROM tab1 AS cor0
----
1888
2176
3072

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

query I rowsort
SELECT 40 * + ( col1 ) AS col1 FROM tab1 AS cor0
----
1880
200
560

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

query I rowsort
SELECT DISTINCT - 91 + + 22 AS col2 FROM tab1 AS cor0
----
-69

query I rowsort
SELECT - + col2 + - 2 FROM tab2 cor0
----
-25
-42
-60

query I rowsort
SELECT - col0 + col2 + + col2 - col0 FROM tab1 AS cor0
----
-46
-52
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-310
SELECT - CAST( NULL AS DECIMAL ) + + - col1 - 47 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-310
SELECT - CAST ( NULL AS REAL ) + + - col1 - 47 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + AVG ( ALL - col1 ) FROM tab0 cor0 WHERE - 25 > NULL
----
NULL

query I rowsort
SELECT + col0 + - 12 FROM tab2 AS cor0
----
34
52
63

query I rowsort
SELECT DISTINCT + 98 - - col2 FROM tab2 AS cor0
----
121
138
156

query II rowsort
SELECT ALL + 97 AS col0, 75 FROM tab0 AS cor0 WHERE NOT NULL = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT - COUNT( * ) + - 29 AS col0 FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-315
SELECT - COUNT ( * ) + - 29 AS col0 FROM tab1
----
-32

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

query I rowsort
SELECT ALL col1 + 28 + + + 22 + + col1 FROM tab0
----
212
52
92

query I rowsort
SELECT ALL 72 + - col2 + + col2 * + col2 - + col1 + - col1 FROM tab0
----
120
2072
9772

onlyif mysql # DIV for integer division: 
query II rowsort label-319
SELECT + col2 DIV col2, 63 AS col1 FROM tab1
----
1
63
1
63
1
63

skipif mysql # not compatible
query II rowsort label-319
SELECT + col2 / col2, 63 AS col1 FROM tab1
----
1
63
1
63
1
63

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT DISTINCT COUNT( * ) + MAX( col2 ) * + ( + - 26 ) FROM tab2 AS cor0
----
-1505

skipif mysql # not compatible
query I rowsort label-320
SELECT DISTINCT COUNT ( * ) + MAX ( col2 ) * + ( + - 26 ) FROM tab2 AS cor0
----
-1505

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-321
SELECT ALL col1, - ( - ( + col1 ) ) + + 59 - - CAST( NULL AS SIGNED ) * + col0 * + col0 * - 37 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 - - 74 > NULL
----

skipif mysql # not compatible
query II rowsort label-321
SELECT ALL col1, - ( - ( + col1 ) ) + + 59 - - CAST ( NULL AS INTEGER ) * + col0 * + col0 * - 37 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 - - 74 > NULL
----

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

skipif mysql # not compatible
query I rowsort label-322
SELECT ALL + col2 / + col2 FROM tab2 cor0
----
1
1
1

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 26 ) * 92 + - + 32 col2 FROM tab2
----
2360
2360
2360

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - + col0 col0 FROM tab0 cor0
----
-705
-870
-9603

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 50 * + col2 * - + col1 IS NULL
----

query I rowsort
SELECT + col0 * + col1 - - 51 AS col0 FROM tab0 AS cor0
----
1266
148
1878

query II rowsort
SELECT + ( + - col1 ) AS col1, 99 AS col1 FROM tab0
----
-1
99
-21
99
-81
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, col2 * - + col2 AS col1 FROM tab1
----
-59
-3481
-68
-4624
-96
-9216

query II rowsort
SELECT - col0 AS col2, - 78 FROM tab0
----
-15
-78
-87
-78
-97
-78

query I rowsort
SELECT - col0 * col2 * 94 AS col0 FROM tab1
----
-460224
-471410
-581672

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

query I rowsort
SELECT ALL + - 21 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 41
----

onlyif mysql # DIV for integer division: 
query II rowsort label-339
SELECT ALL col2 AS col0, col0 DIV - col0 col0 FROM tab1 AS cor0
----
59
-1
68
-1
96
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-339
SELECT ALL col2 AS col0, col0 / - col0 col0 FROM tab1 AS cor0
----
59
-1
68
-1
96
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT DISTINCT + + COUNT( - 16 ) col0 FROM tab0 AS cor0
----
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-341
SELECT ( + 23 ) + + CAST( - col1 AS SIGNED ) AS col1 FROM tab2
----
-28
-44
-54

skipif mysql # not compatible
query I rowsort label-341
SELECT ( + 23 ) + + CAST ( - col1 AS INTEGER ) AS col1 FROM tab2
----
-28
-44
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 95 + col0 col2, 12 * - ( 20 ) + + + ( 51 ) FROM tab1
----
146
-189
180
-189
186
-189

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-343
SELECT ALL - col2 + - CAST( NULL AS SIGNED ), - col2 AS col1 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-343
SELECT ALL - col2 + - CAST ( NULL AS INTEGER ), - col2 AS col1 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

query I rowsort
SELECT DISTINCT - col2 + 64 + + col0 FROM tab2 cor0
----
81
87
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT ALL - - 17 + + - MAX( + - 9 ) AS col0 FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-347
SELECT ALL - - 17 + + - MAX ( + - 9 ) AS col0 FROM tab1 AS cor0
----
26

query I rowsort
SELECT + col0 FROM tab0 cor0 WHERE + col1 IS NOT NULL
----
15
87
97

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

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

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

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

query I rowsort
SELECT col1 - - + 73 + - col1 * + 98 + - col0 AS col2 FROM tab2
----
-4920
-6501
-7460

query II rowsort
SELECT ALL col2, 34 AS col2 FROM tab0
----
10
34
47
34
99
34

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

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL >= - col2
----

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

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

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

query I rowsort
SELECT 51 * - col1 AS col2 FROM tab0
----
-1071
-4131
-51

query II rowsort
SELECT DISTINCT col2 * col2, col0 AS col0 FROM tab1
----
3481
85
4624
91
9216
51

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 74 >= - + 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT ( - COUNT( * ) ) * ( 34 ) * + - 72 AS col0 FROM tab1 AS cor0
----
7344

skipif mysql # not compatible
query I rowsort label-363
SELECT ( - COUNT ( * ) ) * ( 34 ) * + - 72 AS col0 FROM tab1 AS cor0
----
7344

query I rowsort
SELECT DISTINCT - col0 * + + 90 + col0 FROM tab1 AS cor0
----
-4539
-7565
-8099

query I rowsort
SELECT col2 * 53 * col1 + + + ( - - col2 ) AS col2 FROM tab0 cor0
----
11140
201818
5346

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-366
SELECT + col2 * + col2 + + CAST( + - 2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3479
4622
9214

skipif mysql # not compatible
query I rowsort label-366
SELECT + col2 * + col2 + + CAST ( + - 2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3479
4622
9214

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT col1 * ( + 27 ) / ( 44 ) IS NOT NULL
----

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

query I rowsort
SELECT ALL + col0 * + 83 * - 9 FROM tab1
----
-38097
-63495
-67977

query I rowsort
SELECT ALL ( + - col2 ) FROM tab2 WHERE ( - - col1 ) <= NULL
----

query I rowsort
SELECT ALL + 19 + - + col2 AS col0 FROM tab2
----
-21
-39
-4

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

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

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

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

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE - - col0 BETWEEN NULL AND 81
----

query I rowsort
SELECT + col2 * - 72 * col2 * + + col1 * + - col1 + - 45 FROM tab0 AS cor0
----
1043513883
3175155
705627

query I rowsort
SELECT DISTINCT - - 88 AS col0 FROM tab1 AS cor0
----
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT + MIN( - + col2 ) * + 60 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-17280

skipif mysql # not compatible
query I rowsort label-378
SELECT + MIN ( - + col2 ) * + 60 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-17280

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

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

query I rowsort
SELECT - ( + 6 ) * - col2 + 51 + - col2 + + 86 * col0 AS col1 FROM tab0 AS cor0
----
1576
7583
8888

query I rowsort
SELECT DISTINCT - + col0 - 6 FROM tab2 AS cor0
----
-52
-70
-81

query I rowsort
SELECT + - col1 * col1 + - 58 FROM tab2 AS cor0
----
-2659
-4547
-5987

query I rowsort
SELECT DISTINCT col0 + col0 * 3 FROM tab2 AS cor0
----
184
256
300

query I rowsort
SELECT ALL - 86 FROM tab0 AS cor0 WHERE 77 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 0 + col2 FROM tab2 WHERE 7 NOT IN ( col0 )
----
23
40
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT COUNT( * ) * - 63 AS col2 FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-387
SELECT COUNT ( * ) * - 63 AS col2 FROM tab0
----
-189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 * + col0 col2 FROM tab1
----
4692
7820
8372

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 AS cor0 WHERE NOT NULL < 44
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT - MAX( - 26 ) FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-391
SELECT - MAX ( - 26 ) FROM tab0
----
26

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

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

query I rowsort
SELECT ALL + col0 * - ( col1 ) AS col1 FROM tab0 cor0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-394
SELECT ALL + 16 AS col1, + 99 + 13 * COUNT( * ) FROM tab2 AS cor0 WHERE col0 / + col1 * col0 + 83 * + 71 * + CAST( - col1 AS SIGNED ) + + col1 * + 29 < NULL
----
16
99

skipif mysql # not compatible
query II rowsort label-394
SELECT ALL + 16 AS col1, + 99 + 13 * COUNT ( * ) FROM tab2 AS cor0 WHERE col0 / + col1 * col0 + 83 * + 71 * + CAST ( - col1 AS INTEGER ) + + col1 * + 29 < NULL
----
16
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-395
SELECT DISTINCT COUNT( * ) AS col0, - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-395
SELECT DISTINCT COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
3
NULL

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

skipif mysql # not compatible
query I rowsort label-396
SELECT MAX ( - + 11 ) FROM tab0 AS cor0
----
-11

query I rowsort
SELECT DISTINCT col0 * - - col1 AS col2 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN - col0 + + + 67 AND + 61
----
425
4277

query I rowsort
SELECT ALL col1 * 25 AS col2 FROM tab0
----
2025
25
525

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

skipif mysql # not compatible
query I rowsort label-399
SELECT + ( + SUM ( col1 ) ) FROM tab0
----
103

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

query I rowsort
SELECT ALL - 71 + - 47 FROM tab1
----
-118
-118
-118

onlyif mysql # DIV for integer division: 
query I rowsort label-402
SELECT ALL col1 DIV - 11 + + + 52 FROM tab1
----
48
51
52

skipif mysql # not compatible
query I rowsort label-402
SELECT ALL col1 / - 11 + + + 52 FROM tab1
----
48
51
52

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

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT ALL - + MIN( - 86 ) + + + ( - ( - 77 ) ) FROM tab2 AS cor0
----
163

skipif mysql # not compatible
query I rowsort label-404
SELECT ALL - + MIN ( - 86 ) + + + ( - ( - 77 ) ) FROM tab2 AS cor0
----
163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-405
SELECT ALL 64 FROM tab0 AS cor0 WHERE NOT + 41 + CAST( NULL AS SIGNED ) * - 41 IS NULL
----

skipif mysql # not compatible
query I rowsort label-405
SELECT ALL 64 FROM tab0 AS cor0 WHERE NOT + 41 + CAST ( NULL AS INTEGER ) * - 41 IS NULL
----

query I rowsort
SELECT col0 * - col1 + - 71 AS col2 FROM tab2
----
-2417
-4999
-5096

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-408
SELECT ALL + 0 * - + 11 + + - col1 DIV + 34 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-408
SELECT ALL + 0 * - + 11 + + - col1 / + 34 FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT col1 * - col0 + + 36 FROM tab1 AS cor0
----
-389
-4241
-678

query I rowsort
SELECT - - 76 - - 52 AS col1 FROM tab1 AS cor0
----
128
128
128

onlyif mysql # DIV for integer division: 
query I rowsort label-411
SELECT DISTINCT + + col0 DIV - col0 + - + col0 AS col2 FROM tab1 AS cor0
----
-52
-86
-92

skipif mysql # not compatible
query I rowsort label-411
SELECT DISTINCT + + col0 / - col0 + - + col0 AS col2 FROM tab1 AS cor0
----
-52
-86
-92

query I rowsort
SELECT - col0 * + 57 AS col0 FROM tab0 AS cor0
----
-4959
-5529
-855

query I rowsort
SELECT ALL col2 * - - 73 FROM tab1 AS cor0
----
4307
4964
7008

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

onlyif mysql # DIV for integer division: 
query II rowsort label-415
SELECT DISTINCT - 26 DIV - col0, col1 AS col1 FROM tab0
----
0
1
0
21
1
81

skipif mysql # not compatible
query II rowsort label-415
SELECT DISTINCT - 26 / - col0, col1 AS col1 FROM tab0
----
0
1
0
21
1
81

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + + col0 / + 95, - 6 * + ( + + col0 ) - + + 86 - 24 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 86 col1, - ( + 21 ) FROM tab2 WHERE NOT - col1 IS NULL
----
86
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col1, col1 col0, - 20 * - 89 + + + col0 FROM tab2
----
9 values hashing to 36a583c423525e2b72c5117adfb13dc0

query I rowsort
SELECT - 74 * col0 FROM tab1
----
-3774
-6290
-6734

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-421
SELECT + - COUNT( * ) * + 52 DIV + 10 + 73 * 40 AS col0 FROM tab1 AS cor0
----
2905

skipif mysql # not compatible
query I rowsort label-421
SELECT + - COUNT ( * ) * + 52 / + 10 + 73 * 40 AS col0 FROM tab1 AS cor0
----
2905

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-422
SELECT + MIN ( ALL - col1 ) col2 FROM tab1 AS cor0
----
-47

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

skipif mysql # not compatible
query I rowsort label-423
SELECT COUNT ( - - 13 ) FROM tab2 AS cor0
----
3

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

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

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

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

query I rowsort
SELECT - col1 * + 91 AS col1 FROM tab0 AS cor0
----
-1911
-7371
-91

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 44 = - col0
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col2 + - - ( - 17 ) + + 70 * col2 col0 FROM tab1 AS cor0
----
15919
7594
9367

query I rowsort
SELECT + ( ( + col2 ) ) + 72 FROM tab0 AS cor0
----
119
171
82

query II rowsort
SELECT + col1 * - col1 + + + col2, - col0 AS col2 FROM tab2
----
-2578
-46
-4431
-75
-5889
-64

query I rowsort
SELECT DISTINCT col2 + + + col1 + - 39 AS col0 FROM tab2
----
35
78
86

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

query II rowsort
SELECT DISTINCT - col1 * - 40 + - - col2 + - + col0, - col0 AS col0 FROM tab1
----
174
-85
1857
-91
605
-51

query I rowsort
SELECT ALL ( - + col1 ) + - 83 AS col1 FROM tab0
----
-104
-164
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-438
SELECT ALL - COUNT( * ) - - 70 DIV 43 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL - COUNT ( * ) - - 70 / 43 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT + 51 * - col2 FROM tab1 cor0
----
-3009
-3468
-4896

query I rowsort
SELECT + 70 * - col1 - 43 FROM tab1
----
-1023
-3333
-393

query I rowsort
SELECT DISTINCT - 91 + col1 FROM tab0 WHERE - col0 + 20 * + col2 * + + 11 IS NOT NULL
----
-10
-70
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT SUM( ALL 14 ) AS col0 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-442
SELECT SUM ( ALL 14 ) AS col0 FROM tab1 AS cor0
----
42

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 65 * + - col2 <= + 14
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-445
SELECT ALL + - ( + COUNT( * ) ) DIV 74 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-445
SELECT ALL + - ( + COUNT ( * ) ) / 74 FROM tab1 AS cor0
----
0

query I rowsort
SELECT 48 FROM tab1 AS cor0 WHERE NOT - 0 + + 66 IS NULL
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT DISTINCT + 54 * COUNT( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-447
SELECT DISTINCT + 54 * COUNT ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
162

query II rowsort
SELECT ALL + + 53 * - 62 AS col2, col0 FROM tab0 cor0
----
-3286
15
-3286
87
-3286
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 87 * 77 IS NOT NULL
----

query II rowsort
SELECT ALL 9 * + col2, 65 AS col0 FROM tab1 WHERE ( ( NOT ( NOT NULL IS NOT NULL ) ) )
----

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

query I rowsort
SELECT - col0 * + 0 * - - 78 FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 + col0 >= + col0
----

query I rowsort
SELECT - 56 * - col0 FROM tab1
----
2856
4760
5096

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT DISTINCT ( - SUM( + + 83 ) ) col1 FROM tab1 AS cor0
----
-249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-455
SELECT DISTINCT ( - SUM ( + + 83 ) ) col1 FROM tab1 AS cor0
----
-249

query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE NOT NULL <= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-458
SELECT + COUNT( * ) * - 98 AS col1 FROM tab0 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-458
SELECT + COUNT ( * ) * - 98 AS col1 FROM tab0 AS cor0
----
-294

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

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

query I rowsort
SELECT ALL + 72 AS col0 FROM tab0 cor0
----
72
72
72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-461
SELECT + ( - 67 ) * - 62 AS col1 FROM tab1 AS cor0 WHERE - col2 * CAST( 96 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-461
SELECT + ( - 67 ) * - 62 AS col1 FROM tab1 AS cor0 WHERE - col2 * CAST ( 96 AS REAL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-462
SELECT - CAST( col1 AS SIGNED ) * - col0 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-462
SELECT - CAST ( col1 AS INTEGER ) * - col0 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-463
SELECT - CAST( - ( - col1 ) AS SIGNED ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-463
SELECT - CAST ( - ( - col1 ) AS INTEGER ) FROM tab0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-464
SELECT col0 DIV - + col2 AS col2, - col2 + 28 FROM tab2
----
-1
-12
-1
-30
-2
5

skipif mysql # not compatible
query II rowsort label-464
SELECT col0 / - + col2 AS col2, - col2 + 28 FROM tab2
----
-1
-12
-1
-30
-2
5

query II rowsort
SELECT + 97 * - col0, + col0 FROM tab2
----
-4462
46
-6208
64
-7275
75

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

skipif mysql # not compatible
query I rowsort label-466
SELECT - CAST ( - 95 AS INTEGER ) AS col0 FROM tab1
----
95
95
95

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

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

query I rowsort
SELECT DISTINCT col0 * + col1 + - 51 AS col0 FROM tab2
----
2295
4877
4974

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 92, + col2 col2 FROM tab1 WHERE - + col2 - + - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-471
SELECT ALL + col0 + - CAST( 40 AS SIGNED ) col0 FROM tab0
----
-25
47
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-471
SELECT ALL + col0 + - CAST ( 40 AS INTEGER ) col0 FROM tab0
----
-25
47
57

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * + - 57 * 62 <> - 38 + + + col2 * + col1 + - - ( col1 ) + + col1
----

query II rowsort
SELECT ALL + 16, + 70 AS col2 FROM tab0 AS cor0
----
16
70
16
70
16
70

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-475
SELECT DISTINCT + 51, 1 - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
51
-2

skipif mysql # not compatible
query II rowsort label-475
SELECT DISTINCT + 51, 1 - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
51
-2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT DISTINCT 76 * + MIN( ALL + col2 ) FROM tab2 AS cor0
----
1748

skipif mysql # not compatible
query I rowsort label-477
SELECT DISTINCT 76 * + MIN ( ALL + col2 ) FROM tab2 AS cor0
----
1748

query II rowsort
SELECT - col1 AS col0, 82 * + + col0 FROM tab2 AS cor0
----
-51
3772
-67
6150
-77
5248

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT DISTINCT ( - - ( + COUNT( col2 ) ) ) * 67 FROM tab2 WHERE NOT NULL IN ( + col2 * - col0 * + col2 + + - 33 + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-480
SELECT DISTINCT ( - - ( + COUNT ( col2 ) ) ) * 67 FROM tab2 WHERE NOT NULL IN ( + col2 * - col0 * + col2 + + - 33 + - col2 )
----
0

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE + - 29 - + - 27 <= 59
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( + + col2 ) - - + 31 FROM tab1 AS cor0
----
127
90
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-486
SELECT + 37 * COUNT( * ) + + 47 DIV COUNT( * ) DIV COUNT( * ) FROM tab0
----
116

skipif mysql # not compatible
query I rowsort label-486
SELECT + 37 * COUNT ( * ) + + 47 / COUNT ( * ) / COUNT ( * ) FROM tab0
----
116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) + 85 col2 FROM tab2
----
136
152
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col0 col2 FROM tab1 WHERE NULL = NULL
----

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

query I rowsort
SELECT ALL - col0 - - col1 * + col1 * - + col0 * - col2 AS col2 FROM tab1
----
125290
13669201
959565

query I rowsort
SELECT - col1 + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-66
66
96

query I rowsort
SELECT DISTINCT - 4 - + col0 FROM tab2 AS cor0
----
-50
-68
-79

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

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

query I rowsort
SELECT DISTINCT ( 19 ) AS col0 FROM tab0 cor0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-495
SELECT ALL - CAST( - 82 AS SIGNED ) * COUNT( * ) AS col2 FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-495
SELECT ALL - CAST ( - 82 AS INTEGER ) * COUNT ( * ) AS col2 FROM tab1
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT - 59 * - 50 * + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
8850

skipif mysql # not compatible
query I rowsort label-496
SELECT - 59 * - 50 * + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
8850

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

onlyif mysql # DIV for integer division: 
query I rowsort label-498
SELECT - + ( col2 ) DIV - col1 + col1 * - col1 AS col0 FROM tab1 cor0
----
-14
-190
-2208

skipif mysql # not compatible
query I rowsort label-498
SELECT - + ( col2 ) / - col1 + col1 * - col1 AS col0 FROM tab1 cor0
----
-14
-190
-2208

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

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

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

query I rowsort
SELECT ALL 30 * + ( - + 95 ) AS col2 FROM tab1 AS cor0 WHERE - col2 * + + col0 + - - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, 99 * + 34 FROM tab1
----
51
3366
85
3366
91
3366

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, + col1 col0 FROM tab0 WHERE NOT + col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-506
SELECT ALL - col0 * col0 * + + col0 DIV + col0 FROM tab2
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-506
SELECT ALL - col0 * col0 * + + col0 / + col0 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-507
SELECT ALL CAST( NULL AS DECIMAL ), col2 - col2 + + 23 * - - 13 + col1 col2 FROM tab1
----
NULL
304
NULL
313
NULL
346

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-507
SELECT ALL CAST ( NULL AS REAL ), col2 - col2 + + 23 * - - 13 + col1 col2 FROM tab1
----
NULL
304
NULL
313
NULL
346

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT - 50 * + + COUNT( * ) FROM tab0 WHERE NOT col1 + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-508
SELECT - 50 * + + COUNT ( * ) FROM tab0 WHERE NOT col1 + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT MIN( ALL + - 88 ) FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-509
SELECT MIN ( ALL + - 88 ) FROM tab0
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-510
SELECT ALL MIN( col0 ) DIV - SUM( DISTINCT + col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL MIN ( col0 ) / - SUM ( DISTINCT + col0 ) FROM tab0
----
0

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

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

query I rowsort
SELECT DISTINCT + + 75 FROM tab0 cor0
----
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 < + col0
----
75
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-514
SELECT DISTINCT + - col0 FROM tab1 cor0 WHERE - 10 <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-514
SELECT DISTINCT + - col0 FROM tab1 cor0 WHERE - 10 <= CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT DISTINCT + 45 * + COUNT( * ) + - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-515
SELECT DISTINCT + 45 * + COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
132

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

query I rowsort
SELECT DISTINCT col0 * + 71 * col1 AS col2 FROM tab2 cor0
----
166566
349888
356775

query I rowsort
SELECT ALL - 87 - + + col2 * + col1 FROM tab1 AS cor0
----
-1431
-3283
-382

query I rowsort
SELECT DISTINCT col2 * 14 * + + col2 * - 52 FROM tab0
----
-1608152
-7135128
-72800

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

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

query I rowsort
SELECT col1 - - - col0 * - - 95 - - - 23 FROM tab1
----
-4854
-8093
-8621

query I rowsort
SELECT - ( 62 ) - - col2 FROM tab2
----
-22
-39
-4

query I rowsort
SELECT ALL 68 * - 67 FROM tab2
----
-4556
-4556
-4556

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-525
SELECT DISTINCT + ( - col1 ) DIV + + 59 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-525
SELECT DISTINCT + ( - col1 ) / + + 59 AS col2 FROM tab1
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 11 * - - 67 + + col2 col2 FROM tab0
----
-541
-640
-675

query I rowsort
SELECT DISTINCT + col1 * - + col2 + + 35 AS col2 FROM tab2
----
-1138
-3045
-3851

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( col2 ) ) col0 FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT - ( + col2 ) + - col2 * - 54 FROM tab2 AS cor0
----
1219
2120
3074

query I rowsort
SELECT DISTINCT - + col0 * - col1 + + 85 + - col2 AS col2 FROM tab1 AS cor0
----
4294
451
703

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

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

query I rowsort
SELECT 20 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-535
SELECT - CAST( - - ( - 78 ) AS SIGNED ) FROM tab0
----
78
78
78

skipif mysql # not compatible
query I rowsort label-535
SELECT - CAST ( - - ( - 78 ) AS INTEGER ) FROM tab0
----
78
78
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-536
SELECT ALL - CAST( NULL AS SIGNED ), + col2 AS col1 FROM tab2 cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-536
SELECT ALL - CAST ( NULL AS INTEGER ), + col2 AS col1 FROM tab2 cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-537
SELECT * FROM tab0 AS cor0 WHERE NOT col0 - CAST( - 87 AS SIGNED ) - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-537
SELECT * FROM tab0 AS cor0 WHERE NOT col0 - CAST ( - 87 AS INTEGER ) - col2 IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-539
SELECT ALL - col1 AS col0, - 71 DIV + col2 AS col0 FROM tab1 AS cor0
----
-14
0
-47
-1
-5
-1

skipif mysql # not compatible
query II rowsort label-539
SELECT ALL - col1 AS col0, - 71 / + col2 AS col0 FROM tab1 AS cor0
----
-14
0
-47
-1
-5
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT - COUNT( * ) FROM tab0 cor0 WHERE NOT NULL > col1
----
0

skipif mysql # not compatible
query I rowsort label-540
SELECT - COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL > col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-542
SELECT + COUNT( * ), + SUM( ALL + col0 ) AS col0 FROM tab2 cor0
----
3
185

skipif mysql # not compatible
query II rowsort label-542
SELECT + COUNT ( * ), + SUM ( ALL + col0 ) AS col0 FROM tab2 cor0
----
3
185

query I rowsort
SELECT col0 * + 84 FROM tab1 cor0
----
4284
7140
7644

query II rowsort
SELECT - col0, - 27 + + - col1 AS col0 FROM tab2 AS cor0
----
-46
-78
-64
-104
-75
-94

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

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

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

query I rowsort
SELECT - 81 + - col2 + 93 AS col0 FROM tab0 AS cor0
----
-35
-87
2

query I rowsort
SELECT DISTINCT + + col2 * + - col0 + - + 89 + + col2 + - - col0 AS col1 FROM tab1 AS cor0
----
-4838
-4960
-6118

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

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

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

query I rowsort
SELECT + - col0 FROM tab0 WHERE col2 IS NULL
----

query I rowsort
SELECT - col1 * + col1 + col0 * + col0 * 7 * - + col0 AS col1 FROM tab1
----
-4298900
-5277206
-928753

onlyif mysql # DIV for integer division: 
query I rowsort label-553
SELECT + ( col0 ) + col1 DIV + col0 + 99 + - col1 AS col2 FROM tab0 AS cor0
----
165
195
38

skipif mysql # not compatible
query I rowsort label-553
SELECT + ( col0 ) + col1 / + col0 + 99 + - col1 AS col2 FROM tab0 AS cor0
----
165
195
38

query I rowsort
SELECT + col1 - 6 FROM tab2 AS cor0 WHERE col2 > col2 - + 9 * - - col2
----
45
61
71

query I rowsort
SELECT + 16 + - 99 FROM tab1 AS cor0
----
-83
-83
-83

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

query I rowsort
SELECT ALL 33 * - col1 FROM tab1
----
-1551
-165
-462

onlyif mysql # DIV for integer division: 
query I rowsort label-558
SELECT DISTINCT - col0 DIV + 27 AS col1 FROM tab0
----
-3
0

skipif mysql # not compatible
query I rowsort label-558
SELECT DISTINCT - col0 / + 27 AS col1 FROM tab0
----
-3
0

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

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

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

query I rowsort
SELECT - col1 * col1 * 94 FROM tab1
----
-18424
-207646
-2350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-562
SELECT + CAST( NULL AS SIGNED ) + - 47 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-562
SELECT + CAST ( NULL AS INTEGER ) + - 47 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-563
SELECT + 95 DIV + col2 + col1 + - 65 * + col1 AS col2 FROM tab2 WHERE NOT - 43 * - + 55 IS NULL
----
-3260
-4287
-4926

skipif mysql # not compatible
query I rowsort label-563
SELECT + 95 / + col2 + col1 + - 65 * + col1 AS col2 FROM tab2 WHERE NOT - 43 * - + 55 IS NULL
----
-3260
-4287
-4926

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 >= - col2
----
15
81
47
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-565
SELECT 66 DIV + col0 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-565
SELECT 66 / + col0 AS col1 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-566
SELECT ALL + 60 DIV - 10 AS col1 FROM tab2 cor0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-566
SELECT ALL + 60 / - 10 AS col1 FROM tab2 cor0
----
-6
-6
-6

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

query II rowsort
SELECT ALL - 77 AS col1, - col1 FROM tab0
----
-77
-1
-77
-21
-77
-81

query I rowsort
SELECT - + 58 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-58
-58
-58

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-571
SELECT - 50 DIV + COUNT( * ) AS col1 FROM tab1 WHERE NOT - + col0 + + col0 IN ( + - col2 * + col1 * col0 * + col2, col2 * - 84, + - col0 * - 2 - + col2 + 5, + col0, + CAST( + col0 AS SIGNED ), - + col2 )
----
-16

skipif mysql # not compatible
query I rowsort label-571
SELECT - 50 / + COUNT ( * ) AS col1 FROM tab1 WHERE NOT - + col0 + + col0 IN ( + - col2 * + col1 * col0 * + col2, col2 * - 84, + - col0 * - 2 - + col2 + 5, + col0, + CAST ( + col0 AS INTEGER ), - + col2 )
----
-16

query II rowsort
SELECT DISTINCT + 0 AS col0, col1 FROM tab2
----
0
51
0
67
0
77

query I rowsort
SELECT ALL col0 + - col0 * - 62 AS col0 FROM tab0
----
5481
6111
945

query I rowsort
SELECT ALL ( - - 28 ) AS col1 FROM tab2
----
28
28
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-575
SELECT ALL - 51 * + CAST( - - col0 AS SIGNED ) + 88 + col1 * 21 + + + col0 * + col1 FROM tab0 AS cor0
----
-2081
-4741
2239

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL - 51 * + CAST ( - - col0 AS INTEGER ) + 88 + col1 * 21 + + + col0 * + col1 FROM tab0 AS cor0
----
-2081
-4741
2239

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

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

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NULL IN ( + 31, - 36 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT + 9 + MIN( DISTINCT + + col1 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-578
SELECT + 9 + MIN ( DISTINCT + + col1 ) FROM tab0
----
10

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

query I rowsort
SELECT DISTINCT + - col2 * 58 FROM tab0 cor0 WHERE + col2 <> NULL
----

query I rowsort
SELECT DISTINCT - col0 * - + col0 * 88 FROM tab1 AS cor0
----
228888
635800
728728

query I rowsort
SELECT DISTINCT + - 58 - col0 FROM tab1 AS cor0
----
-109
-143
-149

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

query I rowsort
SELECT - col0 - + - 99 AS col2 FROM tab0 cor0
----
12
2
84

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT + MAX( DISTINCT col1 ) - + 27 + + + 80 FROM tab2
----
130

skipif mysql # not compatible
query I rowsort label-585
SELECT + MAX ( DISTINCT col1 ) - + 27 + + + 80 FROM tab2
----
130

query I rowsort
SELECT ALL ( col0 ) - + + col1 AS col0 FROM tab2
----
-13
-5
8

query I rowsort
SELECT col1 - - 24 AS col0 FROM tab1
----
29
38
71

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

query I rowsort
SELECT + 73 AS col2 FROM tab0, tab0 AS cor0 WHERE + 21 > NULL
----

query II rowsort
SELECT 58 AS col0, col2 + + col1 AS col0 FROM tab1
----
58
110
58
115
58
64

query I rowsort
SELECT + + col0 FROM tab1 AS cor0 WHERE NOT NULL >= col1 + 49
----

onlyif mysql # DIV for integer division: 
query I rowsort label-592
SELECT - - 57 DIV + + col1 + - - col2 FROM tab1 AS cor0
----
100
69
70

skipif mysql # not compatible
query I rowsort label-592
SELECT - - 57 / + + col1 + - - col2 FROM tab1 AS cor0
----
100
69
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-593
SELECT ALL 26 DIV + MAX( - col0 ) col0, - COUNT( * ) + COUNT( * ) + + 67 * 30 FROM tab0 cor0
----
-1
2010

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-593
SELECT ALL 26 / + MAX ( - col0 ) col0, - COUNT ( * ) + COUNT ( * ) + + 67 * 30 FROM tab0 cor0
----
-1
2010

onlyif mysql # DIV for integer division: 
query I rowsort label-594
SELECT + - 87 DIV - - 55 + + + col1 AS col2 FROM tab2 cor0
----
50
66
76

skipif mysql # not compatible
query I rowsort label-594
SELECT + - 87 / - - 55 + + + col1 AS col2 FROM tab2 cor0
----
50
66
76

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

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

query I rowsort
SELECT ALL 49 AS col0 FROM tab0 WHERE NULL IN ( 84 )
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 69 NOT IN ( + 68 * col0 )
----

query I rowsort
SELECT DISTINCT - col1 / + 54 AS col0 FROM tab1 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 72 + + 22 * col1 NOT BETWEEN col1 - + ( + 33 - - col2 * + 89 ) AND col0 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT MIN( + col2 ) + - COUNT( * ) AS col1 FROM tab1 WHERE ( NULL ) BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-603
SELECT MIN ( + col2 ) + - COUNT ( * ) AS col1 FROM tab1 WHERE ( NULL ) BETWEEN NULL AND ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT + SUM( - col1 ) * COUNT( * ) AS col2 FROM tab0
----
-309

skipif mysql # not compatible
query I rowsort label-604
SELECT + SUM ( - col1 ) * COUNT ( * ) AS col2 FROM tab0
----
-309

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-605
SELECT COUNT( * ) + AVG ( col0 + CAST( col1 AS SIGNED ) ) col0 FROM tab1 WHERE col1 IN ( + col2 + - col0 )
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-606
SELECT DISTINCT col1 FROM tab1 WHERE 42 = - col2 / + CAST( NULL AS SIGNED ) + 29
----

skipif mysql # not compatible
query I rowsort label-606
SELECT DISTINCT col1 FROM tab1 WHERE 42 = - col2 / + CAST ( NULL AS INTEGER ) + 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT ALL + 61 * COUNT( * ) AS col1 FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-607
SELECT ALL + 61 * COUNT ( * ) AS col1 FROM tab1
----
183

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

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

query I rowsort
SELECT DISTINCT 82 + 72 FROM tab1 AS cor0
----
154

query I rowsort
SELECT DISTINCT + col2 + 14 FROM tab0 AS cor0
----
113
24
61

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

query I rowsort
SELECT ALL + col2 + 24 FROM tab2 AS cor0
----
47
64
82

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

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

query I rowsort
SELECT + 91 + col1 FROM tab2 AS cor0
----
142
158
168

query I rowsort
SELECT DISTINCT + - 65 + + col0 FROM tab2 AS cor0
----
-1
-19
10

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

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

query I rowsort
SELECT + col0 * - col2 + 98 AS col1 FROM tab0 AS cor0
----
-607
-772
-9505

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

query I rowsort
SELECT + + 4 + + col0 FROM tab1 cor0
----
55
89
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 10 * col1 + col2 * + col0 col0 FROM tab0 AS cor0
----
-105
660
9593

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 58 IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-628
SELECT ALL * FROM tab2 WHERE NOT col2 <= CAST( col2 AS SIGNED ) + + 29
----

skipif mysql # not compatible
query III rowsort label-628
SELECT ALL * FROM tab2 WHERE NOT col2 <= CAST ( col2 AS INTEGER ) + + 29
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-630
SELECT ALL - ( - CAST( col1 AS SIGNED ) ) col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-630
SELECT ALL - ( - CAST ( col1 AS INTEGER ) ) col0 FROM tab1
----
14
47
5

query I rowsort
SELECT + col2 * + - 91 AS col1 FROM tab1
----
-5369
-6188
-8736

query III rowsort
SELECT * FROM tab2 WHERE NOT 13 + - 78 / + 48 NOT BETWEEN ( NULL ) AND + col0
----

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

skipif mysql # not compatible
query I rowsort label-633
SELECT DISTINCT 25 * + COUNT ( * ) FROM tab0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-634
SELECT ALL 73 * MAX( ALL + col1 ) AS col2 FROM tab0
----
5913

skipif mysql # not compatible
query I rowsort label-634
SELECT ALL 73 * MAX ( ALL + col1 ) AS col2 FROM tab0
----
5913

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-636
SELECT + col0 / + + col0 col0 FROM tab1 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - ( - 9 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 + 92 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT ( SUM( DISTINCT + col1 ) ) * 44 FROM tab0
----
4532

skipif mysql # not compatible
query I rowsort label-640
SELECT ( SUM ( DISTINCT + col1 ) ) * 44 FROM tab0
----
4532

query I rowsort
SELECT DISTINCT + 11 * + 25 FROM tab0
----
275

query I rowsort
SELECT col2 + + col0 + + col2 * col0 AS col2 FROM tab0
----
767
967
9799

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT DISTINCT - 78 * - + MAX( + - 97 ) AS col1 FROM tab2
----
-7566

skipif mysql # not compatible
query I rowsort label-643
SELECT DISTINCT - 78 * - + MAX ( + - 97 ) AS col1 FROM tab2
----
-7566

query I rowsort
SELECT DISTINCT col1 + + col0 * - ( 22 ) FROM tab1
----
-1108
-1865
-1955

query I rowsort
SELECT + col2 * + 49 + - - 60 AS col0 FROM tab0 AS cor0
----
2363
4911
550

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-646
SELECT COUNT ( - 86 ) col2 FROM tab1 AS cor0
----
3

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

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE ( - 22 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + + 96 * col2 + col2 + + 18 FROM tab2 AS cor0
----
2249
3898
5644

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

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

query I rowsort
SELECT DISTINCT 43 + + 57 + 29 + + col1 AS col0 FROM tab1
----
134
143
176

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-652
SELECT * FROM tab1 WHERE - CAST( - col2 AS SIGNED ) <> col2
----

skipif mysql # not compatible
query III rowsort label-652
SELECT * FROM tab1 WHERE - CAST ( - col2 AS INTEGER ) <> col2
----

query I rowsort
SELECT DISTINCT - col2 * + col1 * - 41 FROM tab1
----
12095
131036
55104

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

query I rowsort
SELECT DISTINCT - 91 FROM tab2 WHERE - + col1 >= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT 66 - + + COUNT( DISTINCT - + 97 ) + + - COUNT( * ) AS col1 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-657
SELECT 66 - + + COUNT ( DISTINCT - + 97 ) + + - COUNT ( * ) AS col1 FROM tab2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-658
SELECT COUNT( * ) + 96 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-658
SELECT COUNT ( * ) + 96 FROM tab1
----
99

query I rowsort
SELECT ALL - col2 + - - 93 - + 81 - + + 71 - col1 AS col2 FROM tab1 AS cor0
----
-123
-169
-174

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

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT - 62 * + COUNT( * ) FROM tab1
----
-186

skipif mysql # not compatible
query I rowsort label-661
SELECT - 62 * + COUNT ( * ) FROM tab1
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT DISTINCT - MAX( + col1 ) AS col1 FROM tab2 WHERE NOT - - col2 <= ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-662
SELECT DISTINCT - MAX ( + col1 ) AS col1 FROM tab2 WHERE NOT - - col2 <= ( + col1 )
----
NULL

query I rowsort
SELECT + col1 * + col0 * - 95 * + - col2 FROM tab0
----
1735650
5424975
912285

onlyif mysql # aggregate syntax: 
query I rowsort label-664
SELECT ALL SUM( DISTINCT 6 ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-664
SELECT ALL SUM ( DISTINCT 6 ) FROM tab2 AS cor0
----
6

query I rowsort
SELECT ALL + 65 FROM tab2 AS cor0 WHERE NOT + 84 IS NULL
----
65
65
65

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

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

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

query I rowsort
SELECT - col1 * - 90 FROM tab1
----
1260
4230
450

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-673
SELECT DISTINCT - SUM ( - + ( + col2 ) ) FROM tab1
----
223

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

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

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

query II rowsort
SELECT + col1 * col2 + - ( col1 ), - col0 AS col0 FROM tab1 AS cor0
----
1330
-51
290
-85
3149
-91

query I rowsort
SELECT - 24 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-679
SELECT DISTINCT col0 + CAST( col2 AS SIGNED ) + - + col0 * col0 * 88 FROM tab0
----
-19738
-665975
-827796

skipif mysql # not compatible
query I rowsort label-679
SELECT DISTINCT col0 + CAST ( col2 AS INTEGER ) + - + col0 * col0 * 88 FROM tab0
----
-19738
-665975
-827796

query I rowsort
SELECT DISTINCT - 21 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-21

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

onlyif mysql # aggregate syntax: 
query II rowsort label-682
SELECT - + COUNT( * ) * 89, 48 AS col0 FROM tab1 cor0 WHERE - col2 >= col2
----
0
48

skipif mysql # not compatible
query II rowsort label-682
SELECT - + COUNT ( * ) * 89, 48 AS col0 FROM tab1 cor0 WHERE - col2 >= col2
----
0
48

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT DISTINCT - - 62 + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-683
SELECT DISTINCT - - 62 + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
59

query I rowsort
SELECT DISTINCT col1 FROM tab2 cor0 WHERE NOT col1 NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE ( col0 * - - 36 NOT IN ( + ( 72 ) ) )
----
46
64
75

query I rowsort
SELECT 59 + - ( - 94 ) AS col0 FROM tab0 AS cor0
----
153
153
153

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-689
SELECT 30 + + col0 DIV - col0 FROM tab1
----
29
29
29

skipif mysql # not compatible
query I rowsort label-689
SELECT 30 + + col0 / - col0 FROM tab1
----
29
29
29

query III rowsort
SELECT ALL 40 * 91 + - 61, col0 AS col2, + + col0 FROM tab0
----
9 values hashing to 5688a0a572612bdaaaa7d97d2efb8a38

query I rowsort
SELECT DISTINCT 74 * - 81 FROM tab0
----
-5994

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT + - AVG ( ALL - col2 ) + + + COUNT( * ) AS col1 FROM tab1 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-694
SELECT + - AVG ( ALL - col2 ) + + + COUNT ( * ) AS col1 FROM tab1 WHERE + col1 IS NULL
----
NULL

query I rowsort
SELECT ALL + 48 AS col1 FROM tab1 WHERE 32 <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + + col1 IN ( + 99 * + col0 + - + col1, 38 * - col2 + + col2 * col0 )
----

query I rowsort
SELECT DISTINCT col0 + 64 FROM tab1
----
115
149
155

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-698
SELECT * FROM tab1 WHERE NULL IN ( - CAST( NULL AS SIGNED ) - + col0 / - col2, - col1 + + - 97 )
----

skipif mysql # not compatible
query III rowsort label-698
SELECT * FROM tab1 WHERE NULL IN ( - CAST ( NULL AS INTEGER ) - + col0 / - col2, - col1 + + - 97 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-699
SELECT + CAST( NULL AS SIGNED ) AS col1, CAST( - col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-699
SELECT + CAST ( NULL AS INTEGER ) AS col1, CAST ( - col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

query I rowsort
SELECT DISTINCT col0 - - + col0 AS col1 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT 69 * + col0 FROM tab2 AS cor0
----
3174
4416
5175

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT NULL >= + 28 )
----

query I rowsort
SELECT - col1 * - 44 AS col2 FROM tab0
----
3564
44
924

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

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

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

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

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

query I rowsort
SELECT ( - 14 ) FROM tab0 AS cor0
----
-14
-14
-14

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

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT ALL + + MAX( DISTINCT - col0 ) * + 55 AS col0 FROM tab1 cor0
----
-2805

skipif mysql # not compatible
query I rowsort label-709
SELECT ALL + + MAX ( DISTINCT - col0 ) * + 55 AS col0 FROM tab1 cor0
----
-2805

query I rowsort
SELECT - 97 * 51 FROM tab1 WHERE NOT + col1 * + + col1 * 21 IS NULL
----
-4947
-4947
-4947

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT + col1 IS NULL
----
-15
-87
-97

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

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE NOT ( - 55 + - col2 + + ( - - ( + - 39 ) ) / - 72 * col1 ) IS NOT NULL
----

query I rowsort
SELECT - 34 * col2 * - col2 FROM tab0
----
333234
3400
75106

query I rowsort
SELECT - 76 FROM tab0 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT DISTINCT - + 0 * + COUNT( * ) + - MAX( 57 ) + - - MIN( ALL - col1 ) col2 FROM tab0 AS cor0 WHERE NOT NULL > 70 * + + col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-717
SELECT DISTINCT - + 0 * + COUNT ( * ) + - MAX ( 57 ) + - - MIN ( ALL - col1 ) col2 FROM tab0 AS cor0 WHERE NOT NULL > 70 * + + col1
----
NULL

query I rowsort
SELECT ALL - 20 * - + col1 AS col1 FROM tab2 AS cor0
----
1020
1340
1540

query II rowsort
SELECT + ( 60 ) AS col0, - 76 * - col1 + col1 AS col0 FROM tab0 cor0
----
60
1617
60
6237
60
77

onlyif mysql # DIV for integer division: 
query II rowsort label-720
SELECT + + col2, col2 DIV + + col0 col1 FROM tab2 AS cor0
----
23
0
40
0
58
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-720
SELECT + + col2, col2 / + + col0 col1 FROM tab2 AS cor0
----
23
0
40
0
58
0

onlyif mysql # aggregate syntax: 
query I rowsort label-721
SELECT COUNT( * ) + + - 54 FROM tab1 AS cor0 WHERE - 48 = NULL
----
-54

skipif mysql # not compatible
query I rowsort label-721
SELECT COUNT ( * ) + + - 54 FROM tab1 AS cor0 WHERE - 48 = NULL
----
-54

query I rowsort
SELECT ALL - - col1 * - 10 + + + 33 AS col1 FROM tab0 AS cor0
----
-177
-777
23

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

query III rowsort
SELECT * FROM tab0 WHERE ( - + col1 ) IN ( col1 + + 58 )
----

query I rowsort
SELECT + col1 * + + 52 AS col2 FROM tab2
----
2652
3484
4004

query I rowsort
SELECT - + 41 AS col1 FROM tab0 WHERE ( NOT + col1 + - col0 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 - - col1 + - - col1 col2 FROM tab0
----
-49
-9
111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * col2 + - col1, col0 col0 FROM tab2
----
-1109
46
-2637
64
-4417
75

query I rowsort
SELECT DISTINCT + ( 56 ) + - 67 AS col1 FROM tab2 AS cor0
----
-11

query I rowsort
SELECT DISTINCT col2 - + 47 FROM tab2 cor0
----
-24
-7
11

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

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

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 ) >= - ( + col1 ) AND 23 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT DISTINCT + 43 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-733
SELECT DISTINCT + 43 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT - + MAX( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 92 = - + 44 + - 87
----
-75

skipif mysql # not compatible
query I rowsort label-734
SELECT - + MAX ( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 92 = - + 44 + - 87
----
-75

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

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

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

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

query I rowsort
SELECT ALL + - 94 AS col0 FROM tab1 AS cor0
----
-94
-94
-94

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-740
SELECT DISTINCT 25 * + - 59 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

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

query I rowsort
SELECT + col2 + - ( + col0 ) FROM tab0
----
-77
2
32

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-744
SELECT + - 90 DIV + col0 + + col1 AS col2 FROM tab2 AS cor0
----
50
66
76

skipif mysql # not compatible
query I rowsort label-744
SELECT + - 90 / + col0 + + col1 AS col2 FROM tab2 AS cor0
----
50
66
76

query III rowsort
SELECT * FROM tab2 WHERE NULL <= + 68
----

query I rowsort
SELECT ALL col0 + + - 39 FROM tab1 AS cor0
----
12
46
52

query I rowsort
SELECT - 73 + - - ( - ( + + col2 ) ) AS col0 FROM tab0 AS cor0
----
-120
-172
-83

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

query I rowsort
SELECT - - col0 + - 0 * + col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT - 63 * 49 + + COUNT( * ) FROM tab0 AS cor0
----
-3084

skipif mysql # not compatible
query I rowsort label-750
SELECT - 63 * 49 + + COUNT ( * ) FROM tab0 AS cor0
----
-3084

query I rowsort
SELECT - ( col1 ) + - + col1 + 87 * + 5 - 63 + - - col1 FROM tab1 AS cor0
----
325
358
367

query I rowsort
SELECT ALL 83 - - - 82 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + - col0 + + col1 AS col2 FROM tab2 AS cor0 WHERE + col2 + + 23 IN ( + col1 + col0, - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-754
SELECT DISTINCT + CAST( + col1 AS SIGNED ) - - 90 AS col1, col1 * 72 FROM tab1 cor0
----
104
1008
137
3384
95
360

skipif mysql # not compatible
query II rowsort label-754
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) - - 90 AS col1, col1 * 72 FROM tab1 cor0
----
104
1008
137
3384
95
360

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT - COUNT( * ) + - 84 FROM tab2 cor0
----
-87

skipif mysql # not compatible
query I rowsort label-755
SELECT - COUNT ( * ) + - 84 FROM tab2 cor0
----
-87

query I rowsort
SELECT + + 96 + col0 AS col1 FROM tab0 cor0
----
111
183
193

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT + COUNT( * ) * 72 col0 FROM tab0
----
216

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

onlyif mysql # DIV for integer division: 
query I rowsort label-759
SELECT DISTINCT + 84 * + + col1 * col2 - - col0 DIV + - col1 AS col0 FROM tab2
----
258720
326423
98532

skipif mysql # not compatible
query I rowsort label-759
SELECT DISTINCT + 84 * + + col1 * col2 - - col0 / + - col1 AS col0 FROM tab2
----
258720
326423
98532

query I rowsort
SELECT - + col1 - + + ( 65 ) FROM tab0 AS cor0
----
-146
-66
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-761
SELECT ALL 24 DIV + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-761
SELECT ALL 24 / + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-2
0
0

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - - ( ( - 26 ) ) - 33 NOT BETWEEN ( - + 77 ) AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-764
SELECT col2 DIV + col1 * col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-764
SELECT col2 / + col1 * col1 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - 63 * - - col1 * + 63 FROM tab1 cor0
----
-186543
-19845
-55566

onlyif mysql # aggregate syntax: 
query II rowsort label-766
SELECT + SUM( - + 88 ) AS col0, MIN( DISTINCT col1 ) FROM tab0 AS cor0
----
-264
1

skipif mysql # not compatible
query II rowsort label-766
SELECT + SUM ( - + 88 ) AS col0, MIN ( DISTINCT col1 ) FROM tab0 AS cor0
----
-264
1

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT COUNT( * ) * + 35 AS col0 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-767
SELECT COUNT ( * ) * + 35 AS col0 FROM tab1 AS cor0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT ALL - - COUNT( * ) * + 98 FROM tab2 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-768
SELECT ALL - - COUNT ( * ) * + 98 FROM tab2 AS cor0
----
294

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-769
SELECT - COUNT ( + 40 ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - 59 * + 58 IS NOT NULL
----

query II rowsort
SELECT - col1 AS col1, + col0 FROM tab0
----
-1
97
-21
87
-81
15

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

query II rowsort
SELECT - + col0, 23 FROM tab2 AS cor0 WHERE col0 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT - SUM( + - 38 ) - + 66 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
276

skipif mysql # not compatible
query I rowsort label-777
SELECT - SUM ( + - 38 ) - + 66 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
276

query I rowsort
SELECT col2 + + 61 AS col1 FROM tab2
----
101
119
84

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT COUNT( * ) * - 85 AS col0 FROM tab0
----
-255

skipif mysql # not compatible
query I rowsort label-779
SELECT COUNT ( * ) * - 85 AS col0 FROM tab0
----
-255

query I rowsort
SELECT DISTINCT - - col2 - + - ( + 86 ) FROM tab1 AS cor0
----
145
154
182

query I rowsort
SELECT 36 + + col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT - 32 - - MAX( 70 ) AS col1 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-786
SELECT - 32 - - MAX ( 70 ) AS col1 FROM tab2 AS cor0
----
38

query I rowsort
SELECT col1 * + + 41 - - 40 FROM tab0
----
3361
81
901

query I rowsort
SELECT - 59 + + col1 AS col1 FROM tab1
----
-12
-45
-54

query I rowsort
SELECT - 57 * - - col0 AS col0 FROM tab0
----
-4959
-5529
-855

query I rowsort
SELECT DISTINCT - 78 * - col2 FROM tab0
----
3666
7722
780

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT ALL COUNT( * ) * + COUNT( * ) * 66 AS col0 FROM tab0
----
594

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL COUNT ( * ) * + COUNT ( * ) * 66 AS col0 FROM tab0
----
594

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-792
SELECT ALL CAST ( - - 27 AS INTEGER ) col1 FROM tab2 AS cor0
----
27
27
27

query II rowsort
SELECT ALL + + 86 * - col0 * - ( + col2 ) + + col1, + col2 FROM tab2 cor0
----
220237
40
374167
58
91039
23

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

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

query I rowsort
SELECT DISTINCT col2 * ( - - 74 ) AS col0 FROM tab0
----
3478
7326
740

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT + - MAX( ALL + ( + 60 ) ) * + + 97 FROM tab1 AS cor0
----
-5820

skipif mysql # not compatible
query I rowsort label-796
SELECT + - MAX ( ALL + ( + 60 ) ) * + + 97 FROM tab1 AS cor0
----
-5820

query I rowsort
SELECT 68 * col2 FROM tab1 cor0
----
4012
4624
6528

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-798
SELECT DISTINCT - ( - + COUNT( * ) ) * - CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-798
SELECT DISTINCT - ( - + COUNT ( * ) ) * - CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
NULL

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

query I rowsort
SELECT - col2 * - - col1 + 11 FROM tab0 AS cor0
----
-199
-3796
-88

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

query I rowsort
SELECT DISTINCT + col2 * - ( - col0 ) + col2 FROM tab2
----
1081
2600
4408

query I rowsort
SELECT ALL col1 + 27 - + + ( - col1 ) FROM tab1
----
121
37
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * - + col1, + col2 col0 FROM tab1
----
1344
96
295
59
3196
68

query I rowsort
SELECT ALL + 51 + - col1 FROM tab1
----
37
4
46

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT DISTINCT 36 + - - MIN( DISTINCT + col2 ) AS col1 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-806
SELECT DISTINCT 36 + - - MIN ( DISTINCT + col2 ) AS col1 FROM tab0
----
46

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-808
SELECT ALL - col2 + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-808
SELECT ALL - col2 + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

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

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

query II rowsort
SELECT DISTINCT - - 7 * col2, + ( ( - col0 ) ) * - 55 + col0 AS col2 FROM tab2 AS cor0
----
161
2576
280
3584
406
4200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-811
SELECT ALL + CAST( + + COUNT( - - CAST( NULL AS DECIMAL ) ) AS SIGNED ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-811
SELECT ALL + CAST ( + + COUNT ( - - CAST ( NULL AS REAL ) ) AS INTEGER ) FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-812
SELECT DISTINCT + col0 * - CAST( + ( - 43 ) AS SIGNED ) FROM tab2
----
1978
2752
3225

skipif mysql # not compatible
query I rowsort label-812
SELECT DISTINCT + col0 * - CAST ( + ( - 43 ) AS INTEGER ) FROM tab2
----
1978
2752
3225

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT 33 * + + MAX( - 13 ) + - 70 AS col1 FROM tab2
----
-499

skipif mysql # not compatible
query I rowsort label-813
SELECT 33 * + + MAX ( - 13 ) + - 70 AS col1 FROM tab2
----
-499

onlyif mysql # DIV for integer division: 
query I rowsort label-814
SELECT DISTINCT col0 - + + 31 - + + col2 * col1 + col0 + - col2 DIV - col2 - 33 * - col0 FROM tab2 AS cor0
----
-1291
-870
407

skipif mysql # not compatible
query I rowsort label-814
SELECT DISTINCT col0 - + + 31 - + + col2 * col1 + col0 + - col2 / - col2 - 33 * - col0 FROM tab2 AS cor0
----
-1291
-870
407

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-815
SELECT 93 + + COUNT( * ) DIV - - 39 col1, - 57 col0 FROM tab1 cor0
----
93
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-815
SELECT 93 + + COUNT ( * ) / - - 39 col1, - 57 col0 FROM tab1 cor0
----
93
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + - 79 - + + 98 * - ( - 14 ) col2 FROM tab1 AS cor0
----
2657
5343
5817

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 40 - + 20 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-818
SELECT - 8 + + - col1 + + ( - 11 ) DIV + - col0 AS col1 FROM tab1 AS cor0
----
-13
-22
-55

skipif mysql # not compatible
query I rowsort label-818
SELECT - 8 + + - col1 + + ( - 11 ) / + - col0 AS col1 FROM tab1 AS cor0
----
-13
-22
-55

query I rowsort
SELECT ALL col2 - - 92 AS col2 FROM tab2 AS cor0
----
115
132
150

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-823
SELECT ALL + CAST( NULL AS SIGNED ) * + - COUNT( * ) / 35 / - + AVG ( ALL 80 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-823
SELECT ALL + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) / 35 / - + AVG ( ALL 80 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT col2 + col1 IS NULL
----
59
68
96

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

query II rowsort
SELECT - col0 * - col0, - col0 * - 82 AS col1 FROM tab2
----
2116
3772
4096
5248
5625
6150

query II rowsort
SELECT col0 * + + col0, - col0 * - col1 AS col1 FROM tab0
----
225
1215
7569
1827
9409
97

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-829
SELECT - col0 DIV 18 FROM tab2
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-829
SELECT - col0 / 18 FROM tab2
----
-2
-3
-4

query I rowsort
SELECT - 79 * - 37 FROM tab0 cor0
----
2923
2923
2923

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col0 + + - col0 BETWEEN + 78 / + col0 + - col2 - + 12 + + - 82 AND NULL
----

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

query II rowsort
SELECT ALL - col1 AS col1, + col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

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

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

query I rowsort
SELECT - col2 * + 17 + - + 19 FROM tab0 AS cor0
----
-1702
-189
-818

query I rowsort
SELECT + - col1 * + col2 * col1 AS col1 FROM tab1 cor0
----
-1475
-150212
-18816

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 11 + - col1 FROM tab0
----
-12
-32
-92

query I rowsort
SELECT DISTINCT 46 * + 97 AS col2 FROM tab1
----
4462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-845
SELECT ALL 55 * + ( - - CAST( - col1 AS SIGNED ) ) + - col1 FROM tab2
----
-2856
-3752
-4312

skipif mysql # not compatible
query I rowsort label-845
SELECT ALL 55 * + ( - - CAST ( - col1 AS INTEGER ) ) + - col1 FROM tab2
----
-2856
-3752
-4312

query II rowsort
SELECT 92, 66 * col0 AS col2 FROM tab1
----
92
3366
92
5610
92
6006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-847
SELECT DISTINCT - col2 * - + CAST( - - col2 AS SIGNED ) + - + col0 FROM tab2
----
1536
3289
483

skipif mysql # not compatible
query I rowsort label-847
SELECT DISTINCT - col2 * - + CAST ( - - col2 AS INTEGER ) + - + col0 FROM tab2
----
1536
3289
483

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT - SUM( + 35 ) FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-848
SELECT - SUM ( + 35 ) FROM tab0
----
-105

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

query I rowsort
SELECT ALL + col1 + + 59 FROM tab1
----
106
64
73

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 98 >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= + 65 + + + col1 + col2 * + 7 - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-857
SELECT DISTINCT col1 * + + 68, CAST( NULL AS SIGNED ) col2 FROM tab2
----
3468
NULL
4556
NULL
5236
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-857
SELECT DISTINCT col1 * + + 68, CAST ( NULL AS INTEGER ) col2 FROM tab2
----
3468
NULL
4556
NULL
5236
NULL

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

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

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

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

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

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

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

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

query I rowsort
SELECT 42 * + - 74 / + + 20 - + 5 FROM tab2 AS cor0 WHERE NULL <= + col2 - + ( + 75 )
----

query II rowsort
SELECT DISTINCT + col2, + 25 AS col0 FROM tab1
----
59
25
68
25
96
25

query I rowsort
SELECT DISTINCT 87 / + col0 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL - + col0 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT + COUNT( * ) * + 5 FROM tab2 AS cor0 WHERE NOT NULL <> + col0
----
0

skipif mysql # not compatible
query I rowsort label-869
SELECT + COUNT ( * ) * + 5 FROM tab2 AS cor0 WHERE NOT NULL <> + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT 24 * COUNT( * ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-870
SELECT 24 * COUNT ( * ) FROM tab2 AS cor0
----
72

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

query I rowsort
SELECT + + 63 + - col2 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN - + col0 AND - 10 * + - col0
----
23
40
5

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

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

query I rowsort
SELECT ALL - - 92 * - col2 FROM tab2 cor0
----
-2116
-3680
-5336

query I rowsort
SELECT + col1 * + 23 FROM tab2 AS cor0
----
1173
1541
1771

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 - - 97 IN ( - - 66, ( - ( - ( - + col2 ) ) ), col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT - MIN( - 88 ) FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-877
SELECT - MIN ( - 88 ) FROM tab0 AS cor0
----
88

query I rowsort
SELECT DISTINCT + - 12 AS col2 FROM tab1 AS cor0
----
-12

query I rowsort
SELECT + 88 + - col2 FROM tab1 AS cor0
----
-8
20
29

query I rowsort
SELECT col2 + ( - - col1 ) AS col1 FROM tab2 AS cor0
----
117
125
74

query II rowsort
SELECT DISTINCT - ( - col2 ) * col2 - - 33 AS col1, + col0 AS col2 FROM tab0 AS cor0
----
133
87
2242
15
9834
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT MAX( 74 ) AS col0 FROM tab1 WHERE + ( - + ( + 99 ) ) + + - col2 + - 70 * + col2 IS NOT NULL
----
74

skipif mysql # not compatible
query I rowsort label-883
SELECT MAX ( 74 ) AS col0 FROM tab1 WHERE + ( - + ( + 99 ) ) + + - col2 + - 70 * + col2 IS NOT NULL
----
74

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

query I rowsort
SELECT ALL col2 + + 60 * + 67 FROM tab2
----
4043
4060
4078

query I rowsort
SELECT ALL col1 * - - col1 * + 52 * - 37 + - + col0 + col0 FROM tab1
----
-377104
-4250116
-48100

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

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

query I rowsort
SELECT DISTINCT + - 6 * col0 * 29 + + + 31 + - 24 AS col1 FROM tab1 AS cor0
----
-14783
-15827
-8867

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 90 * + - 71 / - - col2 IN ( + col0 / - col2 * - col2 + col1 + - col2 / + ( - - col1 ) * - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 * - - col1 + - col1 FROM tab1 AS cor0 WHERE 9 + - col0 BETWEEN col2 AND + + 40 + - 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT ALL 77 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-891
SELECT ALL 77 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
231

query I rowsort
SELECT DISTINCT col0 * - ( + 44 ) FROM tab1 cor0
----
-2244
-3740
-4004

onlyif mysql # DIV for integer division: 
query I rowsort label-893
SELECT DISTINCT - col0 DIV - col2 AS col2 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-893
SELECT DISTINCT - col0 / - col2 AS col2 FROM tab2 AS cor0
----
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-894
SELECT DISTINCT COUNT( * ) * + AVG ( + col2 ) * SUM( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-894
SELECT DISTINCT COUNT ( * ) * + AVG ( + col2 ) * SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE NULL <> NULL
----
NULL

query II rowsort
SELECT - 47 * + 70 AS col2, col0 FROM tab2
----
-3290
46
-3290
64
-3290
75

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT - MIN( DISTINCT + + 52 ) + - COUNT( 33 ) FROM tab0 WHERE NOT col0 * - 81 + 32 * + + ( + col2 ) IS NULL
----
-55

skipif mysql # not compatible
query I rowsort label-896
SELECT - MIN ( DISTINCT + + 52 ) + - COUNT ( 33 ) FROM tab0 WHERE NOT col0 * - 81 + 32 * + + ( + col2 ) IS NULL
----
-55

query I rowsort
SELECT ( - + 1 ) FROM tab1
----
-1
-1
-1

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

skipif mysql # not compatible
query II rowsort label-898
SELECT col0 / + col1 AS col2, ( - 31 ) AS col1 FROM tab2
----
0
-31
0
-31
1
-31

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

skipif mysql # not compatible
query I rowsort label-899
SELECT DISTINCT + 73 * - + COUNT ( * ) FROM tab1
----
-219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + - 83 col0 FROM tab0
----
-1743
-6723
-83

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( 72 * 75 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > 36 * + col0 + 94
----

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

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

query I rowsort
SELECT ALL 35 + - 93 FROM tab1
----
-58
-58
-58

query I rowsort
SELECT DISTINCT 19 + col2 FROM tab1
----
115
78
87

query I rowsort
SELECT ALL - col0 + 84 AS col1 FROM tab0
----
-13
-3
69

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL > ( NULL )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-909
SELECT ALL - 3, + ( - 41 ) * - - COUNT( ALL + ( - col2 ) ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3
-369

skipif mysql # not compatible
query II rowsort label-909
SELECT ALL - 3, + ( - 41 ) * - - COUNT ( ALL + ( - col2 ) ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3
-369

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

query I rowsort
SELECT ALL + 34 + - 95 + - col0 * + 53 AS col0 FROM tab0 AS cor0
----
-4672
-5202
-856

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

query I rowsort
SELECT - col2 * + 33 AS col1 FROM tab2
----
-1320
-1914
-759

onlyif mysql # DIV for integer division: 
query I rowsort label-914
SELECT + col2 DIV - 24 - - col0 AS col1 FROM tab1
----
47
83
89

skipif mysql # not compatible
query I rowsort label-914
SELECT + col2 / - 24 - - col0 AS col1 FROM tab1
----
47
83
89

query I rowsort
SELECT col0 * + col1 - - col1 + + col2 FROM tab2
----
2420
5045
5150

query I rowsort
SELECT DISTINCT + col0 * 91 + + col0 + 88 + col2 * - + col0 FROM tab1
----
-116
2272
2893

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT DISTINCT 53 + - + COUNT( * ) + + + 56 FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-917
SELECT DISTINCT 53 + - + COUNT ( * ) + + + 56 FROM tab0
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-918
SELECT COUNT( * ) * + + MIN( DISTINCT - 39 ) + - 48, - 13 col1 FROM tab2
----
-165
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-918
SELECT COUNT ( * ) * + + MIN ( DISTINCT - 39 ) + - 48, - 13 col1 FROM tab2
----
-165
-13

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-919
SELECT ALL + - 72 + - - CAST ( NULL AS INTEGER ), + COUNT ( * ) col2 FROM tab2 AS cor0
----
NULL
3

query I rowsort
SELECT - col0 + + ( col1 ) + 5 AS col0 FROM tab2 AS cor0
----
-3
10
18

query I rowsort
SELECT DISTINCT + 9 AS col2 FROM tab0 cor0
----
9

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 + + - 40 <> + - col1 / - col2
----

query II rowsort
SELECT ALL - 68 AS col2, + 76 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 834fcfe0f1f4070aad2428b8e2790d74

query I rowsort
SELECT + 17 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 43298e43365fccb5146ea32003753c92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 37 ) col0 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-926
SELECT DISTINCT - col2 DIV 62 AS col1 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-926
SELECT DISTINCT - col2 / 62 AS col1 FROM tab1 AS cor0
----
-1
0

query II rowsort
SELECT ALL col2, 23 * - col2 AS col1 FROM tab0 AS cor0
----
10
-230
47
-1081
99
-2277

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - 4, 70 + - col0 + col1 col1, - + col2 AS col0 FROM tab2
----
9 values hashing to 26192ef8d7e3e1a9b57dfd11392cbd8b

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT COUNT( - 49 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-933
SELECT COUNT ( - 49 ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-934
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col2, 88 AS col2 FROM tab2 AS cor0
----
NULL
88

skipif mysql # not compatible
query II rowsort label-934
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col2, 88 AS col2 FROM tab2 AS cor0
----
NULL
88

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

query I rowsort
SELECT DISTINCT + col1 + + - ( - + 93 ) + + 33 * + col0 * + 68 AS col0 FROM tab0
----
195342
217762
33834

query I rowsort
SELECT 6 * + col0 * - 31 AS col0 FROM tab0
----
-16182
-18042
-2790

query I rowsort
SELECT ALL col2 + - - 24 * ( col0 ) AS col2 FROM tab2 AS cor0
----
1127
1576
1858

onlyif mysql # DIV for integer division: 
query I rowsort label-939
SELECT - 62 + + col1 + - col0 DIV ( - + col1 ) + + 36 + - col1 * - - col2 AS col0 FROM tab2 AS cor0
----
-1148
-3029
-3844

skipif mysql # not compatible
query I rowsort label-939
SELECT - 62 + + col1 + - col0 / ( - + col1 ) + + 36 + - col1 * - - col2 AS col0 FROM tab2 AS cor0
----
-1148
-3029
-3844

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-940
SELECT + 30 + col0 col0, - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
117
NULL
127
NULL
45
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-940
SELECT + 30 + col0 col0, - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
117
NULL
127
NULL
45
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT - - MIN( 67 ) + + COUNT( * ) FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-942
SELECT - - MIN ( 67 ) + + COUNT ( * ) FROM tab0 AS cor0
----
70

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

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

query I rowsort
SELECT ALL col1 + col1 + - + col0 * col2 AS col1 FROM tab0
----
-543
-828
-9601

onlyif mysql # DIV for integer division: 
query I rowsort label-946
SELECT DISTINCT + 74 * + + 49 + - 66 - col1 + - col2 DIV + - col0 col2 FROM tab2
----
3483
3493
3509

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-946
SELECT DISTINCT + 74 * + + 49 + - 66 - col1 + - col2 / + - col0 col2 FROM tab2
----
3483
3493
3509

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-949
SELECT 10 * + col0 DIV - col0 FROM tab2 AS cor0
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-949
SELECT 10 * + col0 / - col0 FROM tab2 AS cor0
----
-10
-10
-10

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

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

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

query I rowsort
SELECT + 30 * + col1 FROM tab0 AS cor0
----
2430
30
630

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) - + + 86 AS col2 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-953
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) - + + 86 AS col2 FROM tab1 AS cor0
----
-95

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

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

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

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

query I rowsort
SELECT DISTINCT 20 * + - col1 * - col1 + + col0 FROM tab1 AS cor0
----
3971
44271
585

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

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

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

query I rowsort
SELECT DISTINCT + col2 * + + 41 FROM tab2
----
1640
2378
943

onlyif mysql # DIV for integer division: 
query I rowsort label-961
SELECT ALL col2 DIV - 6 AS col1 FROM tab1
----
-11
-16
-9

skipif mysql # not compatible
query I rowsort label-961
SELECT ALL col2 / - 6 AS col1 FROM tab1
----
-11
-16
-9

query I rowsort
SELECT ALL col0 + - 51 FROM tab1
----
0
34
40

query I rowsort
SELECT - col2 * - 76 * + col1 FROM tab2
----
234080
295336
89148

query I rowsort
SELECT DISTINCT 41 + + + col2 FROM tab1
----
100
109
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-965
SELECT DISTINCT + col1 + + 78 + - 74 * + - CAST( 81 AS SIGNED ) col2 FROM tab1
----
6077
6086
6119

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-965
SELECT DISTINCT + col1 + + 78 + - 74 * + - CAST ( 81 AS INTEGER ) col2 FROM tab1
----
6077
6086
6119

query I rowsort
SELECT + - 47 * - ( - 20 ) FROM tab0 AS cor0 WHERE NOT col1 + - col0 + + col1 - - - 63 * - col0 IS NOT NULL
----

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

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

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

query I rowsort
SELECT DISTINCT - col0 * - 41 + - 69 FROM tab0
----
3498
3908
546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 10 + + - col0 col1 FROM tab1 AS cor0
----
-41
-75
-81

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

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

query II rowsort
SELECT DISTINCT - col2, - ( col2 ) * + 79 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT - + 95 * + + 34 * 10 FROM tab0 AS cor0
----
-32300
-32300
-32300

query I rowsort
SELECT ALL - 45 * + 32 * - 41 FROM tab0 AS cor0
----
59040
59040
59040

query I rowsort
SELECT ALL 60 * col1 * - col0 FROM tab0
----
-109620
-5820
-72900

query I rowsort
SELECT col1 - - col1 - + col1 - + 3 FROM tab0
----
-2
18
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 - + col2 col2 FROM tab0
----
-27
25
62

query II rowsort
SELECT - 34 * + col1 + + col0 AS col1, - 49 AS col1 FROM tab0
----
-2739
-49
-627
-49
63
-49

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 + - col1 col2 FROM tab1
----
-42
-9
0

query I rowsort
SELECT + 92 * col0 * 77 + col0 FROM tab0
----
106275
616395
687245

query I rowsort
SELECT ALL col2 * + 87 + - + col1 * 0 + + col2 + - ( + ( + - col0 ) ) AS col1 FROM tab2
----
2070
3584
5179

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT 28 + + + MIN( + col0 ) FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-986
SELECT 28 + + + MIN ( + col0 ) FROM tab1 AS cor0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-987
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> ( - + CAST( NULL AS SIGNED ) ) / col1
----

skipif mysql # not compatible
query III rowsort label-987
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> ( - + CAST ( NULL AS INTEGER ) ) / col1
----

query I rowsort
SELECT ALL - - col1 FROM tab2 AS cor0 WHERE ( NOT + 34 + + - 62 * 50 IS NOT NULL )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-990
SELECT ALL - col2 + + + 33 DIV col1 FROM tab1
----
-53
-68
-94

skipif mysql # not compatible
query I rowsort label-990
SELECT ALL - col2 + + + 33 / col1 FROM tab1
----
-53
-68
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT ALL 78 * SUM( ALL - + col1 ) FROM tab1
----
-5148

skipif mysql # not compatible
query I rowsort label-991
SELECT ALL 78 * SUM ( ALL - + col1 ) FROM tab1
----
-5148

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT 96 + + - MAX( DISTINCT col0 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-992
SELECT 96 + + - MAX ( DISTINCT col0 ) AS col2 FROM tab1
----
5

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * + - 25 * + 45 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # DIV for integer division: 
query I rowsort label-995
SELECT DISTINCT + 71 DIV + ( + col1 ) + - + 99 FROM tab0 AS cor0
----
-28
-96
-99

skipif mysql # not compatible
query I rowsort label-995
SELECT DISTINCT + 71 / + ( + col1 ) + - + 99 FROM tab0 AS cor0
----
-28
-96
-99

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

onlyif mysql # DIV for integer division: 
query I rowsort label-997
SELECT + col0 DIV - + 92 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-997
SELECT + col0 / - + 92 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL 65 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT ALL - 51 + 92 + - 35 AS col0 FROM tab1 AS cor0
----
6
6
6

query I rowsort
SELECT col0 + + + col0 - col1 * - col2 AS col1 FROM tab2 AS cor0
----
1265
3208
4036

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

query I rowsort
SELECT ALL - col2 * - 80 + - 97 AS col1 FROM tab2 AS cor0
----
1743
3103
4543

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1003
SELECT - CAST( NULL AS SIGNED ) + 24 + - 84 * - col2 + 58 + col1 * - col0 / + col1 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-1003
SELECT - CAST ( NULL AS INTEGER ) + 24 + - 84 * - col2 + 58 + col1 * - col0 / + col1 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 5 - - + col2 AS col2 FROM tab2 AS cor0
----
28
45
63

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN - col2 / + col1 + - - col2 AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-1006
SELECT DISTINCT COUNT( * ) + MAX( DISTINCT col1 ), - 6 AS col1 FROM tab2 AS cor0 WHERE NULL IN ( col1 )
----
NULL
-6

skipif mysql # not compatible
query II rowsort label-1006
SELECT DISTINCT COUNT ( * ) + MAX ( DISTINCT col1 ), - 6 AS col1 FROM tab2 AS cor0 WHERE NULL IN ( col1 )
----
NULL
-6

query I rowsort
SELECT ALL 94 * - col0 FROM tab1 cor0
----
-4794
-7990
-8554

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT DISTINCT + - SUM( - 51 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
459

skipif mysql # not compatible
query I rowsort label-1008
SELECT DISTINCT + - SUM ( - 51 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
459

query II rowsort
SELECT - 44 * - 56 AS col1, - col2 AS col2 FROM tab0
----
2464
-10
2464
-47
2464
-99

query I rowsort
SELECT 95 * - col2 AS col2 FROM tab0 AS cor0
----
-4465
-9405
-950

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT IN ( 64 * - - col0, col2 / 23, - col0 * col0 * - col0, - col1 )
----

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

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

query I rowsort
SELECT 51 * - 55 FROM tab1, tab0 AS cor0
----
9 values hashing to c5f5076b96ecc980d61f0fb005c570ef

query I rowsort
SELECT DISTINCT col2 + - 56 FROM tab0
----
-46
-9
43

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

skipif mysql # not compatible
query I rowsort label-1016
SELECT DISTINCT col0 * - - 44 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1017
SELECT ALL + col1 DIV 88 + + col1 * + col1 AS col1 FROM tab1
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL + col1 / 88 + + col1 * + col1 AS col1 FROM tab1
----
196
2209
25

query I rowsort
SELECT - col1 - ( - 88 ) AS col0 FROM tab1
----
41
74
83

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1020
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL > NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1021
SELECT ALL + 76 DIV col2 AS col1 FROM tab2 WHERE NOT - col1 IS NULL
----
1
1
3

skipif mysql # not compatible
query I rowsort label-1021
SELECT ALL + 76 / col2 AS col1 FROM tab2 WHERE NOT - col1 IS NULL
----
1
1
3

query I rowsort
SELECT ALL col0 + 3 FROM tab1
----
54
88
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT ALL + 57 * + COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL < + col0 * + 5
----
0

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL + 57 * + COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL < + col0 * + 5
----
0

query I rowsort
SELECT DISTINCT ( - col2 ) * + 44 AS col0 FROM tab2
----
-1012
-1760
-2552

onlyif mysql # DIV for integer division: 
query I rowsort label-1025
SELECT + col0 + - col0 DIV col1 AS col0 FROM tab1
----
48
68
90

skipif mysql # not compatible
query I rowsort label-1025
SELECT + col0 + - col0 / col1 AS col0 FROM tab1
----
48
68
90

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

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

skipif mysql # not compatible
query I rowsort label-1027
SELECT - COUNT ( * ) / COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2
----
-4

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1029
SELECT DISTINCT 67 DIV + col2 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-1029
SELECT DISTINCT 67 / + col2 FROM tab2
----
1
2

query I rowsort
SELECT col0 + + 54 * + col1 FROM tab0
----
1221
151
4389

onlyif mysql # DIV for integer division: 
query I rowsort label-1031
SELECT 1 DIV - 4 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1031
SELECT 1 / - 4 AS col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1032
SELECT ALL - SUM( col2 ) * MIN( col0 + + 80 ) - + COUNT( CAST( NULL AS SIGNED ) ) FROM tab1
----
-29213

skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL - SUM ( col2 ) * MIN ( col0 + + 80 ) - + COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
-29213

onlyif mysql # DIV for integer division: 
query I rowsort label-1033
SELECT ALL 57 DIV 83 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1033
SELECT ALL 57 / 83 FROM tab1
----
0
0
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT ALL COUNT( * ) + MAX( + 64 + + ( col2 ) ) FROM tab2
----
125

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL COUNT ( * ) + MAX ( + 64 + + ( col2 ) ) FROM tab2
----
125

query I rowsort
SELECT 32 * col1 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( 50 )
----

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

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

query I rowsort
SELECT ALL AVG ( DISTINCT + 52 ) FROM tab1 WHERE NULL IN ( - col0 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 96 NOT IN ( - 7 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE col1 * col1 IS NULL
----

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 WHERE NULL <> - 52 * + 54
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT ALL 71 + + COUNT( * ) FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-1044
SELECT ALL 71 + + COUNT ( * ) FROM tab1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT + MAX( DISTINCT + col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1045
SELECT + MAX ( DISTINCT + col2 ) AS col0 FROM tab0
----
99

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT - col0 IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1047
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT NULL BETWEEN - 91 * CAST( NULL AS SIGNED ) AND col0 + 35
----
0

skipif mysql # not compatible
query I rowsort label-1047
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT NULL BETWEEN - 91 * CAST ( NULL AS INTEGER ) AND col0 + 35
----
0

query I rowsort
SELECT 64 * - col0 FROM tab2 WHERE NOT 56 * - col0 IS NOT NULL
----

query I rowsort
SELECT col1 AS col2 FROM tab1 cor0 WHERE NOT ( - 72 + col1 ) = col1
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1050
SELECT ALL + col2 DIV - 19 FROM tab0 AS cor0
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-1050
SELECT ALL + col2 / - 19 FROM tab0 AS cor0
----
-2
-5
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1051
SELECT ALL * FROM tab1 cor0 WHERE + col2 + + col0 <= ( CAST( NULL AS SIGNED ) * 47 + col1 )
----

skipif mysql # not compatible
query III rowsort label-1051
SELECT ALL * FROM tab1 cor0 WHERE + col2 + + col0 <= ( CAST ( NULL AS INTEGER ) * 47 + col1 )
----

query I rowsort
SELECT DISTINCT 53 * 42 FROM tab1 AS cor0
----
2226

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT ALL - - SUM( ALL - ( + ( col1 ) ) ) * + 8 AS col1 FROM tab2 cor0
----
-1560

skipif mysql # not compatible
query I rowsort label-1053
SELECT ALL - - SUM ( ALL - ( + ( col1 ) ) ) * + 8 AS col1 FROM tab2 cor0
----
-1560

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT DISTINCT + SUM( ALL 15 ) AS col2 FROM tab2 AS cor0 WHERE NOT + 76 * + 34 + + col1 NOT BETWEEN ( + col1 ) AND ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT + SUM ( ALL 15 ) AS col2 FROM tab2 AS cor0 WHERE NOT + 76 * + 34 + + col1 NOT BETWEEN ( + col1 ) AND ( col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT DISTINCT + SUM( - col1 ) * - COUNT( * ) FROM tab2 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-1055
SELECT DISTINCT + SUM ( - col1 ) * - COUNT ( * ) FROM tab2 AS cor0
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT COUNT( - col1 ) + 60 AS col0 FROM tab1 AS cor0 WHERE NOT - 15 IS NULL
----
63

skipif mysql # not compatible
query I rowsort label-1056
SELECT COUNT ( - col1 ) + 60 AS col0 FROM tab1 AS cor0 WHERE NOT - 15 IS NULL
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1057
SELECT * FROM tab1 cor0 WHERE NOT CAST( NULL AS SIGNED ) * col2 NOT IN ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-1057
SELECT * FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) * col2 NOT IN ( + col0 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1058
SELECT + ( + MAX ( - 36 ) ) col2 FROM tab2 AS cor0
----
-36

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

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

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

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

query I rowsort
SELECT - 57 + - ( col1 + - col1 ) * col2 FROM tab1 AS cor0
----
-57
-57
-57

query I rowsort
SELECT + 61 + col2 * - col2 FROM tab0 AS cor0
----
-2148
-39
-9740

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

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

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

query I rowsort
SELECT ( - - 46 ) * col1 + - col2 AS col2 FROM tab0
----
-53
3679
956

query I rowsort
SELECT col1 + - col1 + col2 FROM tab2
----
23
40
58

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 * col1 + + col0 col2 FROM tab0
----
1221
151
4389

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT DISTINCT COUNT( * ) + 14 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-1070
SELECT DISTINCT COUNT ( * ) + 14 FROM tab0
----
17

query I rowsort
SELECT DISTINCT col2 * col1 FROM tab0 WHERE NOT ( - col0 - 61 * + col1 ) IS NULL
----
210
3807
99

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

query I rowsort
SELECT + ( 83 ) * col2 AS col1 FROM tab1 cor0
----
4897
5644
7968

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

skipif mysql # not compatible
query I rowsort label-1074
SELECT - - CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT DISTINCT COUNT( * ) + COUNT( * ) AS col1 FROM tab0 WHERE - col0 NOT IN ( + col0 )
----
6

skipif mysql # not compatible
query I rowsort label-1078
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 WHERE - col0 NOT IN ( + col0 )
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 59 * - + col1 + + + col0 col1 FROM tab2 AS cor0
----
-2963
-3878
-4479

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

query I rowsort
SELECT - col2 + + - 63 FROM tab0 AS cor0
----
-110
-162
-73

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

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

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

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

query I rowsort
SELECT DISTINCT + 81 - + col0 FROM tab0 AS cor0
----
-16
-6
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1085
SELECT CAST( 57 AS SIGNED ) + - col1 * col2 AS col0 FROM tab1 AS cor0
----
-1287
-238
-3139

skipif mysql # not compatible
query I rowsort label-1085
SELECT CAST ( 57 AS INTEGER ) + - col1 * col2 AS col0 FROM tab1 AS cor0
----
-1287
-238
-3139

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT SUM( + 78 ) FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-1086
SELECT SUM ( + 78 ) FROM tab0 AS cor0
----
234

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

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

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

skipif mysql # not compatible
query I rowsort label-1088
SELECT ALL - 23 / + CAST ( - SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS INTEGER ) + - 14 FROM tab2 AS cor0
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 col0 FROM tab2 AS cor0 WHERE NOT + col1 * 76 / col0 IS NOT NULL
----

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

query I rowsort
SELECT ALL + col0 * + 90 FROM tab0
----
1350
7830
8730

onlyif mysql # DIV for integer division: 
query II rowsort label-1093
SELECT col0 * + col2 AS col1, col1 DIV - col1 AS col2 FROM tab2
----
1058
-1
2560
-1
4350
-1

skipif mysql # not compatible
query II rowsort label-1093
SELECT col0 * + col2 AS col1, col1 / - col1 AS col2 FROM tab2
----
1058
-1
2560
-1
4350
-1

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

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

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

query I rowsort
SELECT ALL - col1 * - col0 * + col2 + - + col1 FROM tab0 AS cor0
----
18249
57024
9602

onlyif mysql # DIV for integer division: 
query I rowsort label-1097
SELECT DISTINCT + + col1 DIV col1 + - + col2 FROM tab1 AS cor0
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-1097
SELECT DISTINCT + + col1 / col1 + - + col2 FROM tab1 AS cor0
----
-58
-67
-95

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1098
SELECT CAST ( NULL AS REAL ) / + COUNT ( * ) * COUNT ( * ) * - + 6 col0 FROM tab1 cor0
----
NULL

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

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

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

query I rowsort
SELECT ALL + - 75 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1102
SELECT ALL CAST( col1 AS SIGNED ) * - - col1 + + col0 * + col2 AS col0 FROM tab0
----
1311
7266
9604

skipif mysql # not compatible
query I rowsort label-1102
SELECT ALL CAST ( col1 AS INTEGER ) * - - col1 + + col0 * + col2 AS col0 FROM tab0
----
1311
7266
9604

query I rowsort
SELECT DISTINCT col1 * - col0 + + col0 FROM tab0 WHERE NOT + - col0 IS NULL
----
-1200
-1740
0

query I rowsort
SELECT 28 + col2 AS col0 FROM tab2
----
51
68
86

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1106
SELECT ALL + col2 DIV 87 + - col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1106
SELECT ALL + col2 / 87 + - col0 FROM tab2 AS cor0
----
-46
-64
-75

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

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

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

skipif mysql # not compatible
query I rowsort label-1108
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 / col1 - + col0 + - - col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1109
SELECT + 26 DIV col0 + + col1 + + col0 + - CAST( col2 AS SIGNED ) + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-2272
-4827
-4941

skipif mysql # not compatible
query I rowsort label-1109
SELECT + 26 / col0 + + col1 + + col0 + - CAST ( col2 AS INTEGER ) + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-2272
-4827
-4941

query I rowsort
SELECT ALL + col0 * + + 83 AS col1 FROM tab2
----
3818
5312
6225

onlyif mysql # DIV for integer division: 
query I rowsort label-1111
SELECT col1 DIV + 20 col0 FROM tab2
----
2
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1111
SELECT col1 / + 20 col0 FROM tab2
----
2
3
3

query I rowsort
SELECT - 77 AS col2 FROM tab2 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT + col2 - - + col2 + + col2 AS col0 FROM tab1
----
177
204
288

onlyif mysql # DIV for integer division: 
query I rowsort label-1114
SELECT + col1 * - col1 - - - 21 - col2 * + col2 DIV ( - col2 ) + col1 AS col1 FROM tab0
----
-431
-6454
78

skipif mysql # not compatible
query I rowsort label-1114
SELECT + col1 * - col1 - - - 21 - col2 * + col2 / ( - col2 ) + col1 AS col1 FROM tab0
----
-431
-6454
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 8 + + + 85 * - 69 col1 FROM tab2
----
-5857

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

query I rowsort
SELECT ALL 22 + - + col1 FROM tab2
----
-29
-45
-55

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

query I rowsort
SELECT DISTINCT 87 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
87

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1120
SELECT * FROM tab0 WHERE - 25 - - col0 NOT BETWEEN NULL AND 55 * - col2 AND ( - CAST( 3 AS DECIMAL ) ) * + col2 <= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-1120
SELECT * FROM tab0 WHERE - 25 - - col0 NOT BETWEEN NULL AND 55 * - col2 AND ( - CAST ( 3 AS REAL ) ) * + col2 <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 66 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT ALL - SUM( col2 ) * + + COUNT( * ) FROM tab2 AS cor0
----
-363

skipif mysql # not compatible
query I rowsort label-1122
SELECT ALL - SUM ( col2 ) * + + COUNT ( * ) FROM tab2 AS cor0
----
-363

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 / - 19 IS NOT NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1124
SELECT DISTINCT + MIN ( - + col0 ) col1 FROM tab2 cor0
----
-75

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1126
SELECT COUNT( * ) * CAST( 39 AS SIGNED ) AS col1 FROM tab0
----
117

skipif mysql # not compatible
query I rowsort label-1126
SELECT COUNT ( * ) * CAST ( 39 AS INTEGER ) AS col1 FROM tab0
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1127
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-1127
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) <= NULL
----

query II rowsort
SELECT col1, - col1 + - col2 * - 48 AS col0 FROM tab0
----
1
4751
21
459
81
2175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 * + 69 col2 FROM tab1
----
897
897
897

query I rowsort
SELECT DISTINCT + col0 * - 69 * + 60 FROM tab1
----
-211140
-351900
-376740

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

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

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

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

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

query I rowsort
SELECT - - col0 * 14 FROM tab1 cor0
----
1190
1274
714

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT DISTINCT MAX( + + col2 ) * + 72 FROM tab2
----
4176

skipif mysql # not compatible
query I rowsort label-1138
SELECT DISTINCT MAX ( + + col2 ) * + 72 FROM tab2
----
4176

onlyif mysql # DIV for integer division: 
query I rowsort label-1139
SELECT ALL 11 DIV + + col0 + col2 AS col0 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL 11 / + + col0 + col2 AS col0 FROM tab0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1140
SELECT DISTINCT 69 DIV + + col2 + + col1 col2 FROM tab2
----
54
68
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1140
SELECT DISTINCT 69 / + + col2 + + col1 col2 FROM tab2
----
54
68
78

query I rowsort
SELECT ALL 2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT DISTINCT + 68 * + + 17 + - col0 AS col1 FROM tab2 cor0
----
1081
1092
1110

onlyif mysql # DIV for integer division: 
query I rowsort label-1143
SELECT ALL - + col0 * 28 + 6 - ( + col0 ) DIV col1 * - col0 + - + col0 + + 73 + - col1 FROM tab1 AS cor0
----
-1261
-2516
-946

skipif mysql # not compatible
query I rowsort label-1143
SELECT ALL - + col0 * 28 + 6 - ( + col0 ) / col1 * - col0 + - + col0 + + 73 + - col1 FROM tab1 AS cor0
----
-1261
-2516
-946

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT + COUNT( * ) * + COUNT( * ) + + 36 * COUNT( * ) - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-1145
SELECT + COUNT ( * ) * + COUNT ( * ) + + 36 * COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
114

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1147
SELECT - col2 + + - 63 DIV col0 AS col0 FROM tab2 AS cor0
----
-24
-40
-58

skipif mysql # not compatible
query I rowsort label-1147
SELECT - col2 + + - 63 / col0 AS col0 FROM tab2 AS cor0
----
-24
-40
-58

query II rowsort
SELECT DISTINCT + 38 + 17 + - 59 * - + col2 AS col2, col1 * + col0 AS col0 FROM tab0 AS cor0
----
2828
1215
5896
97
645
1827

query I rowsort
SELECT DISTINCT - 74 * + 63 FROM tab0
----
-4662

query I rowsort
SELECT ALL + col1 + + 33 FROM tab2
----
100
110
84

query I rowsort
SELECT - col2 + - - 68 AS col0 FROM tab0
----
-31
21
58

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 WHERE NOT ( - col2 ) IN ( - ( + 74 ), col2 )
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - + col2 * col2 + + + col0 col2 FROM tab0
----
-103808
-913
-970202

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 86 * + col2 + - 86 col0 FROM tab0 AS cor0
----
3956
774
8428

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1155
SELECT ALL * FROM tab2 cor0 WHERE NULL IN ( - col0 * + CAST( + + col2 AS SIGNED ), 43, - + col2 - + 19 )
----

skipif mysql # not compatible
query III rowsort label-1155
SELECT ALL * FROM tab2 cor0 WHERE NULL IN ( - col0 * + CAST ( + + col2 AS INTEGER ), 43, - + col2 - + 19 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1156
SELECT COUNT( * ) + + + 29 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
38

skipif mysql # not compatible
query I rowsort label-1156
SELECT COUNT ( * ) + + + 29 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
38

query I rowsort
SELECT DISTINCT 19 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
19

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1159
SELECT ALL col2, CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
23
23
40
40
58
58

skipif mysql # not compatible
query II rowsort label-1159
SELECT ALL col2, CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
23
23
40
40
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - col1, col0, + 11 col0 FROM tab1 cor0
----
9 values hashing to 2cc3bfbdc64143cfeeb4e086f858888c

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1165
SELECT DISTINCT MAX( ALL 12 ), COUNT( DISTINCT + col2 ) AS col0 FROM tab2
----
12
3

skipif mysql # not compatible
query II rowsort label-1165
SELECT DISTINCT MAX ( ALL 12 ), COUNT ( DISTINCT + col2 ) AS col0 FROM tab2
----
12
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT COUNT( * ) * + 82 FROM tab2
----
246

skipif mysql # not compatible
query I rowsort label-1166
SELECT COUNT ( * ) * + 82 FROM tab2
----
246

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1167
SELECT SUM( 29 ) DIV COUNT( * ) FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-1167
SELECT SUM ( 29 ) / COUNT ( * ) FROM tab2 AS cor0
----
29

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

skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL - 24 * + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1169
SELECT DISTINCT CAST( - 63 AS SIGNED ) AS col0 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-1169
SELECT DISTINCT CAST ( - 63 AS INTEGER ) AS col0 FROM tab0
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 + - - 80 col2 FROM tab1
----
151
151
151

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

query I rowsort
SELECT col1 + col1 - + 64 * - 51 AS col2 FROM tab1
----
3274
3292
3358

onlyif mysql # DIV for integer division: 
query I rowsort label-1173
SELECT ALL - 87 DIV + col0 + + - col1 + - col1 AS col2 FROM tab2 AS cor0
----
-103
-135
-155

skipif mysql # not compatible
query I rowsort label-1173
SELECT ALL - 87 / + col0 + + - col1 + - col1 AS col2 FROM tab2 AS cor0
----
-103
-135
-155

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

query I rowsort
SELECT ALL + + col2 * - - col2 + + col0 + - + ( - - col1 ) * + col0 + - col0 FROM tab2 AS cor0
----
-1661
-1817
-3328

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 63 * - ( col2 ) >= ( col1 - col1 + + 23 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 54 * - col2 * - - col2 >= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 51 * - col1 AS col0 FROM tab2 AS cor0
----
-2601
-3417
-3927

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

query I rowsort
SELECT - + 1 * - 97 AS col2 FROM tab2 AS cor0
----
97
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1183
SELECT DISTINCT - - col1 AS col1 FROM tab0 WHERE - 22 + CAST( + col0 AS SIGNED ) - + + col1 BETWEEN + + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-1183
SELECT DISTINCT - - col1 AS col1 FROM tab0 WHERE - 22 + CAST ( + col0 AS INTEGER ) - + + col1 BETWEEN + + col2 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1184
SELECT ALL + 64 DIV COUNT( col1 ) AS col2 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-1184
SELECT ALL + 64 / COUNT ( col1 ) AS col2 FROM tab1
----
21

query I rowsort
SELECT - col1 - col1 + + - col2 + + ( + + 69 ) AS col2 FROM tab2
----
-123
-125
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab1 WHERE NOT - col2 * - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1187
SELECT DISTINCT + 31 DIV + col2 FROM tab0
----
0
3

skipif mysql # not compatible
query I rowsort label-1187
SELECT DISTINCT + 31 / + col2 FROM tab0
----
0
3

query I rowsort
SELECT ALL + col1 * + - col2 + + - col0 * + - col0 AS col2 FROM tab2
----
1016
1739
943

onlyif mysql # DIV for integer division: 
query I rowsort label-1189
SELECT - col1 * + col0 - - + col2 DIV - 11 + - + col2 * + col0 FROM tab1
----
-10471
-5445
-5618

skipif mysql # not compatible
query I rowsort label-1189
SELECT - col1 * + col0 - - + col2 / - 11 + - + col2 * + col0 FROM tab1
----
-10471
-5445
-5618

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + + col1 / 14, 83 )
----

query II rowsort
SELECT ALL - col1 + col1, + col1 FROM tab1
----
0
14
0
47
0
5

query I rowsort
SELECT 51 * + col0 + + col1 FROM tab0
----
4458
4948
846

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT - - 65 * - - COUNT( ALL col2 ) col1 FROM tab2 WHERE 19 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1193
SELECT - - 65 * - - COUNT ( ALL col2 ) col1 FROM tab2 WHERE 19 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1194
SELECT COUNT( * ) * 47 * - + 84 + 96 AS col2, 16 AS col2 FROM tab0
----
-11748
16

skipif mysql # not compatible
query II rowsort label-1194
SELECT COUNT ( * ) * 47 * - + 84 + 96 AS col2, 16 AS col2 FROM tab0
----
-11748
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1195
SELECT col1 DIV col0 + + 4 AS col1 FROM tab1
----
4
4
4

skipif mysql # not compatible
query I rowsort label-1195
SELECT col1 / col0 + + 4 AS col1 FROM tab1
----
4
4
4

query I rowsort
SELECT ALL - col0 * - col2 - - col0 FROM tab2 AS cor0
----
1104
2624
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT DISTINCT 18 - - COUNT( * ) FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-1197
SELECT DISTINCT 18 - - COUNT ( * ) FROM tab2 AS cor0
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 10 - - 19 col1 FROM tab1 AS cor0
----
9
9
9

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 79 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * - 66 + + - col2 * col1 AS col1 FROM tab1 AS cor0
----
-420
-94
35

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * + 88 * - 35 <= NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1205
SELECT ALL - - 57, - 68 * - + SUM( - col0 ) AS col2 FROM tab1 AS cor0
----
57
-15436

skipif mysql # not compatible
query II rowsort label-1205
SELECT ALL - - 57, - 68 * - + SUM ( - col0 ) AS col2 FROM tab1 AS cor0
----
57
-15436

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT - - COUNT( * ) * 7 AS col1 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-1206
SELECT - - COUNT ( * ) * 7 AS col1 FROM tab1 AS cor0
----
21

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 83 <= - + col1
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 89 / + col1 + - 92 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * - 13 + 58 FROM tab0
----
1189
1319
253

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

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

query I rowsort
SELECT 2 AS col2 FROM tab1 AS cor0 WHERE NULL < + 99
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1214
SELECT 38 + + 56 DIV - + COUNT( * ) FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
20

skipif mysql # not compatible
query I rowsort label-1214
SELECT 38 + + 56 / - + COUNT ( * ) FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-1215
SELECT 84 DIV - + col1 FROM tab1
----
-1
-16
-6

skipif mysql # not compatible
query I rowsort label-1215
SELECT 84 / - + col1 FROM tab1
----
-1
-16
-6

query I rowsort
SELECT DISTINCT - 85 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-85

query I rowsort
SELECT + + col1 + + + 52 AS col0 FROM tab2 AS cor0
----
103
119
129

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

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL - MAX ( ( - - col0 ) ) - - 88 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT - + col0 * col2 + + col1 AS col0 FROM tab1 AS cor0
----
-4882
-5010
-6141

query I rowsort
SELECT DISTINCT - + 42 - + col1 FROM tab1 AS cor0 WHERE NOT col0 > NULL
----

query I rowsort
SELECT + ( - ( + 97 ) ) + col0 AS col1 FROM tab0 cor0
----
-10
-82
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1223
SELECT ALL 54 DIV - MIN( ALL + 66 ) col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1223
SELECT ALL 54 / - MIN ( ALL + 66 ) col2 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 47 col2 FROM tab1
----
2209
235
658

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

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

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

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

query I rowsort
SELECT DISTINCT - 69 + col1 AS col0 FROM tab2
----
-18
-2
8

query I rowsort
SELECT ALL - col0 * - 25 AS col1 FROM tab1 AS cor0
----
1275
2125
2275

onlyif mysql # DIV for integer division: 
query I rowsort label-1230
SELECT + + 13 DIV + ( + col1 ) * + + 98 DIV - + col1 + + col2 * col2 AS col1 FROM tab2 AS cor0
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-1230
SELECT + + 13 / + ( + col1 ) * + + 98 / - + col1 + + col2 * col2 AS col1 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1231
SELECT DISTINCT 80 DIV - COUNT( * ) FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-1231
SELECT DISTINCT 80 / - COUNT ( * ) FROM tab1 AS cor0
----
-26

query I rowsort
SELECT DISTINCT - col0 * 15 FROM tab2
----
-1125
-690
-960

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 >= 64 / + col1 * - 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT ALL - COUNT( * ) * - + MAX( DISTINCT + + col0 ) AS col2 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-1234
SELECT ALL - COUNT ( * ) * - + MAX ( DISTINCT + + col0 ) AS col2 FROM tab0 AS cor0
----
291

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

skipif mysql # not compatible
query II rowsort label-1235
SELECT DISTINCT + col1 / + + col0, col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1236
SELECT + - col2 DIV - 62 + + 23 AS col2 FROM tab1 AS cor0
----
23
24
24

skipif mysql # not compatible
query I rowsort label-1236
SELECT + - col2 / - 62 + + 23 AS col2 FROM tab1 AS cor0
----
23
24
24

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1239
SELECT + + col0, col0 / 26 / - 18 AS col1 FROM tab0 cor0 WHERE NOT col2 / - + 17 NOT IN ( - CAST( - - col2 AS SIGNED ), col1 )
----

skipif mysql # not compatible
query II rowsort label-1239
SELECT + + col0, col0 / 26 / - 18 AS col1 FROM tab0 cor0 WHERE NOT col2 / - + 17 NOT IN ( - CAST ( - - col2 AS INTEGER ), col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1240
SELECT - + CAST( - COUNT( * ) AS SIGNED ) AS col0, 55 FROM tab1 AS cor0
----
3
55

skipif mysql # not compatible
query II rowsort label-1240
SELECT - + CAST ( - COUNT ( * ) AS INTEGER ) AS col0, 55 FROM tab1 AS cor0
----
3
55

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT DISTINCT MIN( - 39 ) AS col2 FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT MIN ( - 39 ) AS col2 FROM tab1
----
-39

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1245
SELECT MAX( ALL col2 ), + COUNT( * ) AS col2 FROM tab1
----
96
3

skipif mysql # not compatible
query II rowsort label-1245
SELECT MAX ( ALL col2 ), + COUNT ( * ) AS col2 FROM tab1
----
96
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1246
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL < NULL
----
0

query I rowsort
SELECT DISTINCT + 70 * - - col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
4130
4760
6720

query II rowsort
SELECT DISTINCT col2 - + col1, col0 + - col0 AS col2 FROM tab0 AS cor0
----
-11
0
-34
0
98
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT ALL - 96 + - ( 71 ) * - MAX( ALL - col2 ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1729

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1249
SELECT ALL - 96 + - ( 71 ) * - MAX ( ALL - col2 ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1729

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 <> + col2 + - 73 AND NOT ( - 95 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT - 82 + MIN( DISTINCT + col1 ) col0 FROM tab1
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1254
SELECT - 82 + MIN ( DISTINCT + col1 ) col0 FROM tab1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT COUNT( ALL 23 ) + - 90 AS col2 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-1255
SELECT COUNT ( ALL 23 ) + - 90 AS col2 FROM tab1
----
-87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT + 49 * - SUM( DISTINCT + + ( 83 ) ) FROM tab1
----
-4067

skipif mysql # not compatible
query I rowsort label-1257
SELECT + 49 * - SUM ( DISTINCT + + ( 83 ) ) FROM tab1
----
-4067

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1260
SELECT DISTINCT - COUNT( * ) * MAX( + CAST( 21 AS SIGNED ) ) + - MIN( + - 93 ) FROM tab1 cor0
----
30

skipif mysql # not compatible
query I rowsort label-1260
SELECT DISTINCT - COUNT ( * ) * MAX ( + CAST ( 21 AS INTEGER ) ) + - MIN ( + - 93 ) FROM tab1 cor0
----
30

query I rowsort
SELECT + 37 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
37
37
37

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1262
SELECT + - MIN ( - col0 ) col2 FROM tab1 AS cor0
----
91

query III rowsort
SELECT ALL - col1 * - col2 - col0 - - - col1, col1 / - col2 AS col0, col2 * - col2 AS col0 FROM tab0 cor0 WHERE col1 IN ( + - 81 * + 38 )
----

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

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

query I rowsort
SELECT DISTINCT + 88 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
88

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

skipif mysql # not compatible
query II rowsort label-1266
SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( DISTINCT - col1 ) FROM tab2 AS cor0
----
3
3

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

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

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

query I rowsort
SELECT - col1 * - 88 AS col2 FROM tab1 AS cor0
----
1232
4136
440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1270
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) DIV + 7 - - - COUNT( * ) * 67 FROM tab1 cor0 WHERE + 59 IS NOT NULL
----
-201

skipif mysql # not compatible
query I rowsort label-1270
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) / + 7 - - - COUNT ( * ) * 67 FROM tab1 cor0 WHERE + 59 IS NOT NULL
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT ALL 99 + MIN( col1 ) FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-1271
SELECT ALL 99 + MIN ( col1 ) FROM tab2 AS cor0
----
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 - - col0 AS col2, 51 col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-2
51
-32
51
77
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT + COUNT( * ) + - 29 FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-1273
SELECT + COUNT ( * ) + - 29 FROM tab1
----
-26

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 * - ( - col1 ) col1 FROM tab2
----
153
201
231

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT COUNT( * ) + - 55 col2 FROM tab1
----
-52

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

query II rowsort
SELECT ALL col1 AS col1, + ( 51 ) + + + ( + - 95 ) FROM tab0 WHERE - col0 > - + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col2 + col1 > + 38 * col0 )
----

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

query I rowsort
SELECT AVG ( - 73 ) FROM tab1 cor0 WHERE + 69 + - - ( col0 ) IS NULL
----
NULL

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT + 70 BETWEEN + 48 - + col1 * col0 AND - 15
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1282
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 5 - - CAST( NULL AS SIGNED ) * - - col2 AND - col2
----

skipif mysql # not compatible
query III rowsort label-1282
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 5 - - CAST ( NULL AS INTEGER ) * - - col2 AND - col2
----

query I rowsort
SELECT DISTINCT + 65 - + ( - 2 ) FROM tab0 WHERE NOT + col1 IS NULL
----
67

query I rowsort
SELECT ALL + 57 * + col1 FROM tab0
----
1197
4617
57

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

query I rowsort
SELECT DISTINCT + col1 * + 30 AS col0 FROM tab2
----
1530
2010
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT SUM( + 32 ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1287
SELECT SUM ( + 32 ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
288

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 + - col1 col2 FROM tab2 AS cor0
----
10
20
36

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

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

query I rowsort
SELECT ALL col1 - + + 50 FROM tab1 AS cor0
----
-3
-36
-45

query II rowsort
SELECT DISTINCT - + col0 + + col2 + + col2, + col0 AS col0 FROM tab1 AS cor0
----
141
51
33
85
45
91

query I rowsort
SELECT DISTINCT - 33 - col1 FROM tab0 AS cor0
----
-114
-34
-54

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT DISTINCT + MAX( ALL - col0 ) - + MIN( col1 ) AS col1 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-1296
SELECT DISTINCT + MAX ( ALL - col0 ) - + MIN ( col1 ) AS col1 FROM tab0 AS cor0
----
-16

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1298
SELECT + col1 col1, - col1 * + 30 * CAST( NULL AS SIGNED ) + col0 - + col2 - - - col0 AS col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT DISTINCT COUNT( 42 ) col0 FROM tab1
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT ALL - MIN( - - col0 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-1300
SELECT ALL - MIN ( - - col0 ) AS col0 FROM tab0
----
-15

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

query II rowsort
SELECT DISTINCT + ( - + col0 ) AS col0, col0 AS col2 FROM tab2
----
-46
46
-64
64
-75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1303
SELECT col1 DIV - + 86 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1303
SELECT col1 / - + 86 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - 74 AS col1 FROM tab1 WHERE ( - 96 * + col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT - MIN( DISTINCT - + col0 ) FROM tab1 WHERE NOT col0 + col1 IS NULL
----
91

skipif mysql # not compatible
query I rowsort label-1305
SELECT - MIN ( DISTINCT - + col0 ) FROM tab1 WHERE NOT col0 + col1 IS NULL
----
91

query I rowsort
SELECT - - col2 * + col2 - + 5 FROM tab0 AS cor0
----
2204
95
9796

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT COUNT( * ) * ( + ( + 25 ) ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1307
SELECT COUNT ( * ) * ( + ( + 25 ) ) FROM tab1 AS cor0
----
75

query I rowsort
SELECT 53 * + col0 FROM tab2 AS cor0
----
2438
3392
3975

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 NOT BETWEEN - col2 AND col1
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT + MIN( 24 ) * ( - - 31 ) AS col0 FROM tab2 cor0
----
744

skipif mysql # not compatible
query I rowsort label-1310
SELECT + MIN ( 24 ) * ( - - 31 ) AS col0 FROM tab2 cor0
----
744

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = 52 + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 * - 90 + - - col2 col1 FROM tab0 AS cor0
----
7300
7337
7389

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1314
SELECT DISTINCT - COUNT( * ) * CAST( 27 AS SIGNED ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-1314
SELECT DISTINCT - COUNT ( * ) * CAST ( 27 AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-84

query I rowsort
SELECT ALL + + 95 AS col0 FROM tab2 cor0
----
95
95
95

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1317
SELECT * FROM tab2 WHERE + col1 <= + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1317
SELECT * FROM tab2 WHERE + col1 <= + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 59 * - col0 AS col2 FROM tab0
----
-5133
-5723
-885

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * ( + 44 ) col2 FROM tab2
----
2244
2948
3388

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

query I rowsort
SELECT 46 + - col2 FROM tab2
----
-12
23
6

query I rowsort
SELECT - ( 34 ) + + + 77 * - ( col0 ) FROM tab0
----
-1189
-6733
-7503

query II rowsort
SELECT + col1 AS col0, 64 * + col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
51
1472
67
3712
77
2560

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 87 <= - - col2
----
51
14
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 * col2 col1 FROM tab1 AS cor0
----
1888
2176
3072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1326
SELECT ALL - 56 * + col0 + + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-2627
-3661
-4267

skipif mysql # not compatible
query I rowsort label-1326
SELECT ALL - 56 * + col0 + + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-2627
-3661
-4267

query II rowsort
SELECT DISTINCT - col1 + + col2, - 33 AS col2 FROM tab2
----
-28
-33
-37
-33
-9
-33

query I rowsort
SELECT + col0 / - ( ( + 64 ) ) FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1329
SELECT DISTINCT col1 DIV + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-1329
SELECT DISTINCT col1 / + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1

query I rowsort
SELECT DISTINCT - 99 FROM tab0 cor0
----
-99

query I rowsort
SELECT - 91 * 98 FROM tab2
----
-8918
-8918
-8918

query II rowsort
SELECT + 59 AS col1, col0 + - ( - - 26 ) FROM tab0
----
59
-11
59
61
59
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1333
SELECT 21 * - CAST( + 54 AS SIGNED ) FROM tab1
----
-1134
-1134
-1134

skipif mysql # not compatible
query I rowsort label-1333
SELECT 21 * - CAST ( + 54 AS INTEGER ) FROM tab1
----
-1134
-1134
-1134

query I rowsort
SELECT DISTINCT + + ( + col0 ) + + + 40 FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 47 * - 61 + - 7 NOT BETWEEN - col2 + col2 AND col0 + + + 38
----

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

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

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

query I rowsort
SELECT - 55 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT ALL + - COUNT( - + 52 ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1339
SELECT ALL + - COUNT ( - + 52 ) col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1340
SELECT + 65 * + ( + 32 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NULL <= ( col2 )
----

skipif mysql # not compatible
query I rowsort label-1340
SELECT + 65 * + ( + 32 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NULL <= ( col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1341
SELECT - - ( + - COUNT( * ) ) DIV + 8 + + COUNT( * ) AS col2, COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
3
6

skipif mysql # not compatible
query II rowsort label-1341
SELECT - - ( + - COUNT ( * ) ) / + 8 + + COUNT ( * ) AS col2, COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
3
6

query I rowsort
SELECT + 44 + + col0 FROM tab2 AS cor0
----
108
119
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1343
SELECT COUNT( * ) + - 37 AS col2, + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-1343
SELECT COUNT ( * ) + - 37 AS col2, + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-34
NULL

query I rowsort
SELECT + + 53 + 25 FROM tab1 AS cor0
----
78
78
78

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 76 * - - 27 * + + col0 NOT BETWEEN - col2 AND - 20
----

query I rowsort
SELECT + col0 * + + 52 + - col2 AS col0 FROM tab2 AS cor0
----
2369
3288
3842

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1347
SELECT col2 + + 80 + + col0 - - col0 * CAST( NULL AS SIGNED ) * + + ( + col2 ) + - - 8 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1347
SELECT col2 + + 80 + + col0 - - col0 * CAST ( NULL AS INTEGER ) * + + ( + col2 ) + - - 8 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL 47 + col2 FROM tab1
----
106
115
143

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

query I rowsort
SELECT ALL + col0 * + 4 FROM tab0
----
348
388
60

query II rowsort
SELECT DISTINCT 47 + - col0 AS col0, + 43 FROM tab1
----
-38
43
-4
43
-44
43

query I rowsort
SELECT - 28 * - 58 AS col2 FROM tab0 AS cor0
----
1624
1624
1624

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

query I rowsort
SELECT - col1 - + 43 + - + col0 + + col1 FROM tab2 cor0
----
-107
-118
-89

query I rowsort
SELECT - 53 + - col0 * + - 88 AS col0 FROM tab0
----
1267
7603
8483

query I rowsort
SELECT - ( + col0 ) FROM tab1 WHERE NOT + ( col0 ) / - + 2 <= NULL
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1359
SELECT DISTINCT col2, 44 * + col2 - + col0 DIV + col1 AS col0 FROM tab2 AS cor0
----
23
1012
40
1760
58
2551

skipif mysql # not compatible
query II rowsort label-1359
SELECT DISTINCT col2, 44 * + col2 - + col0 / + col1 AS col0 FROM tab2 AS cor0
----
23
1012
40
1760
58
2551

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

skipif mysql # not compatible
query II rowsort label-1360
SELECT ALL - COUNT ( * ) * + COUNT ( * ) + - 18 AS col1, COUNT ( * ) FROM tab0 AS cor0
----
-27
3

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

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

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

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

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

query I rowsort
SELECT + ( - col2 ) + - 40 + 77 - - col0 * col2 + col1 * - 99 * + - 24 AS col1 FROM tab0 cor0 WHERE NOT + col1 * - col1 <= + - col1
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1367
SELECT + - 69 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1367
SELECT + - 69 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1368
SELECT - COUNT( * ) * + + 25 AS col0, MIN( + + col1 ) FROM tab0
----
-75
1

skipif mysql # not compatible
query II rowsort label-1368
SELECT - COUNT ( * ) * + + 25 AS col0, MIN ( + + col1 ) FROM tab0
----
-75
1

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 * + + col2 > NULL
----

query II rowsort
SELECT - col1 * - - col2 AS col2, + col0 FROM tab0
----
-210
87
-3807
15
-99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE NOT + ( + 47 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1371
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE NOT + ( + 47 ) IS NULL
----
3

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

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

query I rowsort
SELECT 94 * + + 64 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b5b039528dbf8066b378ac73c2be2b4f

query I rowsort
SELECT ALL + - 32 + + col2 FROM tab1 AS cor0
----
27
36
64

query I rowsort
SELECT ALL - + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= 44 * - ( col2 ) + - - 7 / + col1
----

query I rowsort
SELECT DISTINCT - - 49 AS col2 FROM tab0 AS cor0 WHERE NOT + 89 * 37 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT - 65 * + COUNT( * ) + + 61 AS col1 FROM tab2 AS cor0
----
-134

skipif mysql # not compatible
query I rowsort label-1378
SELECT - 65 * + COUNT ( * ) + + 61 AS col1 FROM tab2 AS cor0
----
-134

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT DISTINCT - + 50 * - 55 - - + COUNT( * ) AS col1 FROM tab1 cor0
----
2753

skipif mysql # not compatible
query I rowsort label-1380
SELECT DISTINCT - + 50 * - 55 - - + COUNT ( * ) AS col1 FROM tab1 cor0
----
2753

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1383
SELECT - CAST( ( + + 86 ) AS SIGNED ) + - col1 * - col1 FROM tab2 WHERE NULL IS NULL
----
2515
4403
5843

skipif mysql # not compatible
query I rowsort label-1383
SELECT - CAST ( ( + + 86 ) AS INTEGER ) + - col1 * - col1 FROM tab2 WHERE NULL IS NULL
----
2515
4403
5843

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1385
SELECT + 97 - + ( - col2 ) * + + CAST( - + 59 AS SIGNED ) AS col2 FROM tab0
----
-2676
-493
-5744

skipif mysql # not compatible
query I rowsort label-1385
SELECT + 97 - + ( - col2 ) * + + CAST ( - + 59 AS INTEGER ) AS col2 FROM tab0
----
-2676
-493
-5744

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

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

query I rowsort
SELECT - col2 * col1 + + col1 FROM tab0
----
-189
-3726
-98

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

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

query I rowsort
SELECT - 64 * - col0 + - + col2 + - - col2 * 67 FROM tab0
----
12742
4062
6228

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1390
SELECT 17 / + col2 + + CAST( NULL AS DECIMAL ) * col2 * 91 * - col1 AS col1, col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-1390
SELECT 17 / + col2 + + CAST ( NULL AS REAL ) * col2 * 91 * - col1 AS col1, col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT DISTINCT - col0 * - col2 - - col1 * ( + - col1 ) AS col1 FROM tab2
----
-139
-1543
-3369

query I rowsort
SELECT 30 + + col0 AS col0 FROM tab0
----
117
127
45

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

query I rowsort
SELECT col2 + - + col0 + col1 AS col2 FROM tab2 cor0
----
28
50
53

onlyif mysql # DIV for integer division: 
query I rowsort label-1395
SELECT DISTINCT + - col1 DIV col1 + + 66 * + - 5 - col2 AS col2 FROM tab1 AS cor0
----
-390
-399
-427

skipif mysql # not compatible
query I rowsort label-1395
SELECT DISTINCT + - col1 / col1 + + 66 * + - 5 - col2 AS col2 FROM tab1 AS cor0
----
-390
-399
-427

query I rowsort
SELECT 84 * 13 FROM tab0
----
1092
1092
1092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1397
SELECT COUNT( ALL + CAST( NULL AS SIGNED ) ) * 30 col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1397
SELECT COUNT ( ALL + CAST ( NULL AS INTEGER ) ) * 30 col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT DISTINCT - 1 * + + col2 AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT ALL - col0 + - + ( + 34 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col2 * col2 AND ( 94 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1400
SELECT ALL + col2 DIV 3 + - + 62 + - col1 * + col0 * - + col0 AS col2 FROM tab1 AS cor0
----
36082
36384
389167

skipif mysql # not compatible
query I rowsort label-1400
SELECT ALL + col2 / 3 + - + 62 + - col1 * + col0 * - + col0 AS col2 FROM tab1 AS cor0
----
36082
36384
389167

onlyif mysql # DIV for integer division: 
query II rowsort label-1401
SELECT + - col0 DIV 87 DIV col0, col2 - - - ( col1 ) AS col2 FROM tab2 AS cor0
----
0
-28
0
-37
0
-9

skipif mysql # not compatible
query II rowsort label-1401
SELECT + - col0 / 87 / col0, col2 - - - ( col1 ) AS col2 FROM tab2 AS cor0
----
0
-28
0
-37
0
-9

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1403
SELECT + 37, + COUNT( * ) AS col0 FROM tab0
----
37
3

skipif mysql # not compatible
query II rowsort label-1403
SELECT + 37, + COUNT ( * ) AS col0 FROM tab0
----
37
3

query II rowsort
SELECT ALL - 62, + col0 FROM tab1
----
-62
51
-62
85
-62
91

query I rowsort
SELECT + 33 FROM tab0 WHERE NOT NULL > - 90 + - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1406
SELECT DISTINCT * FROM tab0 WHERE NOT 44 <= + CAST( NULL AS SIGNED ) + - 2 / CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1406
SELECT DISTINCT * FROM tab0 WHERE NOT 44 <= + CAST ( NULL AS INTEGER ) + - 2 / CAST ( + col2 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1407
SELECT 21 * - CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1408
SELECT DISTINCT col1 * - - 77 + + col0 * - - CAST( - col0 AS SIGNED ) FROM tab2
----
-466
1811
1833

skipif mysql # not compatible
query I rowsort label-1408
SELECT DISTINCT col1 * - - 77 + + col0 * - - CAST ( - col0 AS INTEGER ) FROM tab2
----
-466
1811
1833

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 20 < + col1
----
97
1
99

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1412
SELECT + col0 DIV + - 33 AS col2 FROM tab0 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-1412
SELECT + col0 / + - 33 AS col2 FROM tab0 AS cor0
----
-2
-2
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1414
SELECT ALL + CAST( NULL AS SIGNED ) + - 19 AS col1, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-1414
SELECT ALL + CAST ( NULL AS INTEGER ) + - 19 AS col1, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

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

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

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

query I rowsort
SELECT - col1 + + + col2 + col0 + + col2 - - col0 + + col2 AS col2 FROM tab2 AS cor0
----
110
171
257

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

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

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL CAST ( NULL AS INTEGER ) + - + MIN ( DISTINCT col1 ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL 60 + + col2 FROM tab1
----
119
128
156

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT DISTINCT - COUNT( * ) - 27 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-1421
SELECT DISTINCT - COUNT ( * ) - 27 FROM tab2 AS cor0
----
-30

query I rowsort
SELECT + - ( 7 ) * + - 80 * ( col2 ) - - col0 AS col0 FROM tab0 AS cor0
----
26335
55537
5687

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT - 65 - - COUNT( + col0 ) col2 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1423
SELECT - 65 - - COUNT ( + col0 ) col2 FROM tab2 AS cor0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1424
SELECT CAST( NULL AS SIGNED ) AS col2, - col0 AS col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-1424
SELECT CAST ( NULL AS INTEGER ) AS col2, - col0 AS col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 14 NOT BETWEEN NULL AND - 67
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 34 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + - col0
----

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

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

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

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

query II rowsort
SELECT ALL col1 * - + 67, 76 AS col2 FROM tab2
----
-3417
76
-4489
76
-5159
76

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = + 97
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1435
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT - 94 < CAST( + col0 AS DECIMAL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1435
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT - 94 < CAST ( + col0 AS REAL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

query I rowsort
SELECT - 52 + 16 AS col2 FROM tab0
----
-36
-36
-36

query I rowsort
SELECT DISTINCT - + 88 * - col1 + - col1 AS col1 FROM tab0 AS cor0
----
1827
7047
87

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( NOT 39 NOT IN ( + 80 - + col0, col0 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1443
SELECT ALL + 7 - 90 * - ( + COUNT( * ) ) / - + 43 - ( - - CAST( NULL AS SIGNED ) ) + - MAX( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1443
SELECT ALL + 7 - 90 * - ( + COUNT ( * ) ) / - + 43 - ( - - CAST ( NULL AS INTEGER ) ) + - MAX ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

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

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

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

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

query I rowsort
SELECT 82 + - ( + + 6 ) FROM tab0
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 + - col0 * - + col2 col2 FROM tab2
----
1074
2576
4366

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1448
SELECT ALL + ( ( - - col0 ) ) * + - col2 + - ( col0 ) - - + ( ( - 47 ) ) * + - ( + CAST( + + ( - col1 ) AS SIGNED ) ) FROM tab0
----
-1944
-4527
-9747

skipif mysql # not compatible
query I rowsort label-1448
SELECT ALL + ( ( - - col0 ) ) * + - col2 + - ( col0 ) - - + ( ( - 47 ) ) * + - ( + CAST ( + + ( - col1 ) AS INTEGER ) ) FROM tab0
----
-1944
-4527
-9747

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1450
SELECT ALL - ( 78 ) DIV - col0 + - + col2 AS col0 FROM tab2
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-1450
SELECT ALL - ( 78 ) / - col0 + - + col2 AS col0 FROM tab2
----
-22
-39
-57

query I rowsort
SELECT ( + col2 ) + col1 FROM tab2
----
117
125
74

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 <= - + col1
----

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

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - ( - + 66 ) IS NULL
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 + 59 col1 FROM tab2
----
114
114
114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 88 + col0 * - 12 col0 FROM tab0
----
-1076
-92
-956

query I rowsort
SELECT 73 + - - col2 + + - col1 FROM tab0
----
171
39
62

query I rowsort
SELECT DISTINCT - 27 * - col1 AS col0 FROM tab1
----
1269
135
378

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

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

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

query I rowsort
SELECT ALL - col2 * 65 + - col1 FROM tab1
----
-3840
-4467
-6254

query I rowsort
SELECT ALL 62 + 79 FROM tab1
----
141
141
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 38 col0 FROM tab0 AS cor0
----
119
39
59

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

skipif mysql # not compatible
query I rowsort label-1467
SELECT COUNT ( * ) / - + 60 AS col2 FROM tab0 cor0
----
0

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 * - + 14 AS col0 FROM tab2
----
322
560
812

onlyif mysql # aggregate syntax: 
query II rowsort label-1472
SELECT ( - + COUNT( * ) ) - - 79 AS col1, + 98 FROM tab1
----
76
98

skipif mysql # not compatible
query II rowsort label-1472
SELECT ( - + COUNT ( * ) ) - - 79 AS col1, + 98 FROM tab1
----
76
98

query I rowsort
SELECT + + col0 + + 75 * + + col1 FROM tab0 WHERE + - 55 IS NOT NULL
----
1662
172
6090

query I rowsort
SELECT + col0 * col2 + 4 FROM tab2
----
1062
2564
4354

query I rowsort
SELECT - + 98 + + 37 * + 28 FROM tab0 AS cor0
----
938
938
938

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

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

query I rowsort
SELECT ALL col1 + - 51 * - col1 AS col0 FROM tab1 AS cor0
----
2444
260
728

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

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

query II rowsort
SELECT ALL ( + + 8 ) * 47 AS col2, 46 * + col0 FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT DISTINCT - - 64 + col0 AS col0 FROM tab0 AS cor0
----
151
161
79

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

query I rowsort
SELECT - col2 + - ( 87 ) FROM tab0 AS cor0
----
-134
-186
-97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1483
SELECT ALL + + 68 - + COUNT( * ), 5 / + - MIN( - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0 AS cor0
----
65
NULL

skipif mysql # not compatible
query II rowsort label-1483
SELECT ALL + + 68 - + COUNT ( * ), 5 / + - MIN ( - CAST ( NULL AS REAL ) ) AS col2 FROM tab0 AS cor0
----
65
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT MIN( - 36 ) AS col0 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-1484
SELECT MIN ( - 36 ) AS col0 FROM tab1 AS cor0
----
-36

query I rowsort
SELECT DISTINCT - 8 AS col0 FROM tab2 WHERE NOT - 74 IS NULL
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-1486
SELECT ALL col1 DIV - 60 AS col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1486
SELECT ALL col1 / - 60 AS col0 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1487
SELECT ALL - COUNT( * ) col1, - MAX( DISTINCT - 0 ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + 1
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1487
SELECT ALL - COUNT ( * ) col1, - MAX ( DISTINCT - 0 ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + 1
----
0
NULL

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

query I rowsort
SELECT - 21 AS col1 FROM tab0 AS cor0 WHERE NOT - 86 * - - col1 * 64 NOT BETWEEN - + col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( - + 43 ) / col0 / col0 + - ( + + 6 ) * col0 - + col1 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab1 WHERE NOT col0 NOT IN ( col1 - + col1 / - 85 )
----

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE + 77 IN ( - 12 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab2 WHERE NOT col1 + - col2 NOT BETWEEN ( - 92 ) AND 8
----

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

query I rowsort
SELECT DISTINCT col0 + col1 * - 95 AS col1 FROM tab1
----
-1279
-390
-4374

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

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

query I rowsort
SELECT ALL - 4 + col0 FROM tab2
----
42
60
71

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

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

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

query I rowsort
SELECT 25 + + col1 * + col2 AS col2 FROM tab0
----
124
235
3832

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

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

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

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

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

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

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

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE ( + ( col1 ) ) < - col2
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * ( - col2 * col1 ) col2 FROM tab2
----
-123200
-225388
-26979

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

skipif mysql # not compatible
query I rowsort label-1510
SELECT DISTINCT + 65 * COUNT ( * ) FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT - SUM( DISTINCT - col1 ) - - 99 FROM tab2
----
294

skipif mysql # not compatible
query I rowsort label-1511
SELECT - SUM ( DISTINCT - col1 ) - - 99 FROM tab2
----
294

query I rowsort
SELECT ALL 37 + - 24 AS col1 FROM tab1 AS cor0
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT DISTINCT ( - 66 ) + + MIN( - col0 ) AS col1 FROM tab1 AS cor0
----
-157

skipif mysql # not compatible
query I rowsort label-1513
SELECT DISTINCT ( - 66 ) + + MIN ( - col0 ) AS col1 FROM tab1 AS cor0
----
-157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1514
SELECT DISTINCT 67 DIV 21 + - MIN( 91 + + col2 DIV - col1 ) FROM tab0 cor0
----
11

skipif mysql # not compatible
query I rowsort label-1514
SELECT DISTINCT 67 / 21 + - MIN ( 91 + + col2 / - col1 ) FROM tab0 cor0
----
11

query I rowsort
SELECT ALL col2 * + col1 FROM tab0 AS cor0 WHERE col2 <= col2
----
210
3807
99

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

skipif mysql # not compatible
query I rowsort label-1516
SELECT COUNT ( * ) + - COUNT ( * ) * + COUNT ( * ) FROM tab1
----
-6

query I rowsort
SELECT 29 FROM tab1 WHERE ( - col1 ) IS NOT NULL
----
29
29
29

onlyif mysql # DIV for integer division: 
query I rowsort label-1518
SELECT DISTINCT + col1 DIV col2 AS col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1518
SELECT DISTINCT + col1 / col2 AS col2 FROM tab0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT ALL - MAX( 77 ) col0 FROM tab1 WHERE col0 IS NOT NULL
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1519
SELECT ALL - MAX ( 77 ) col0 FROM tab1 WHERE col0 IS NOT NULL
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1520
SELECT + COUNT( * ) * CAST( ( ( - COUNT( DISTINCT + ( + col2 ) ) ) ) + + 15 AS SIGNED ) FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-1520
SELECT + COUNT ( * ) * CAST ( ( ( - COUNT ( DISTINCT + ( + col2 ) ) ) ) + + 15 AS INTEGER ) FROM tab0 AS cor0
----
36

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

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

query I rowsort
SELECT ALL - col1 - col2 AS col2 FROM tab1 AS cor0 WHERE - col0 * + ( 70 ) > col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1523
SELECT DISTINCT + - 93 DIV - col0 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT + - 93 / - col0 FROM tab0 AS cor0
----
0
1
6

query I rowsort
SELECT + 53 - 31 FROM tab1 AS cor0
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT DISTINCT - 53 - 21 * COUNT( * ) AS col1 FROM tab0 cor0
----
-116

skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT - 53 - 21 * COUNT ( * ) AS col1 FROM tab0 cor0
----
-116

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

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

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

query I rowsort
SELECT ALL ( col0 ) * - 63 AS col2 FROM tab2 AS cor0
----
-2898
-4032
-4725

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1529
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND ( - col2 + CAST( 33 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1529
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND ( - col2 + CAST ( 33 AS INTEGER ) )
----

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

query I rowsort
SELECT + 11 * ( - col2 ) AS col0 FROM tab2
----
-253
-440
-638

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT + 77 * - + COUNT( DISTINCT - col1 ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-1532
SELECT + 77 * - + COUNT ( DISTINCT - col1 ) FROM tab2
----
-231

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1534
SELECT MAX( ALL + - ( CAST( 85 AS SIGNED ) ) ) DIV 45 AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1534
SELECT MAX ( ALL + - ( CAST ( 85 AS INTEGER ) ) ) / 45 AS col0 FROM tab2
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1536
SELECT DISTINCT SUM( ALL - col1 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1536
SELECT DISTINCT SUM ( ALL - col1 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + 6 <> ( 49 )
----

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

query I rowsort
SELECT DISTINCT col2 * - - ( 12 ) + - 25 FROM tab2 AS cor0
----
251
455
671

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

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

query I rowsort
SELECT DISTINCT + col1 + + 54 * - - col2 AS col0 FROM tab1
----
3191
3719
5198

query I rowsort
SELECT DISTINCT ( - + col0 ) * - col2 AS col0 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT DISTINCT - ( - 4 ) + - col0 * 69 AS col2 FROM tab0
----
-1031
-5999
-6689

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN + + col1 * + col1 AND - col1 * 19 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query II rowsort
SELECT + col1 AS col1, - col2 * + - 59 FROM tab1 AS cor0
----
14
5664
47
4012
5
3481

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT ALL SUM( ALL - ( 78 ) ) FROM tab2 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-1548
SELECT ALL SUM ( ALL - ( 78 ) ) FROM tab2 AS cor0
----
-234

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1550
SELECT DISTINCT - 54 DIV col2 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1550
SELECT DISTINCT - 54 / col2 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT 5 * - col0 * + 12 + - col1 + - 9 FROM tab2 cor0
----
-2820
-3926
-4576

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 32 IS NULL
----

query II rowsort
SELECT DISTINCT col0 AS col0, 48 AS col2 FROM tab1 AS cor0
----
51
48
85
48
91
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 + + 66 + - - col0 col1 FROM tab0
----
179
251
261

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

skipif mysql # not compatible
query I rowsort label-1556
SELECT + COUNT ( * ) + - CAST ( + CAST ( - 18 AS INTEGER ) AS INTEGER ) AS col2 FROM tab1
----
21

query I rowsort
SELECT DISTINCT - col2 + - 92 AS col1 FROM tab1
----
-151
-160
-188

query I rowsort
SELECT ALL col1 + - - col2 * 30 + col2 FROM tab1
----
1834
2155
2990

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - + 76 * - 35 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT + SUM( 36 ) + - COUNT( * ) AS col2 FROM tab1 WHERE NULL >= 85
----
NULL

skipif mysql # not compatible
query I rowsort label-1560
SELECT + SUM ( 36 ) + - COUNT ( * ) AS col2 FROM tab1 WHERE NULL >= 85
----
NULL

query I rowsort
SELECT DISTINCT + 32 + + col0 AS col2 FROM tab1
----
117
123
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT DISTINCT COUNT( * ) + - 78 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-1562
SELECT DISTINCT COUNT ( * ) + - 78 FROM tab0
----
-75

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col2 / + 67 ) IN ( + col2 * col2 )
----

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

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

query I rowsort
SELECT + - ( + 3 ) * 4 + + + col0 * col1 AS col1 FROM tab2 AS cor0
----
2334
4916
5013

query I rowsort
SELECT DISTINCT - + col0 - - 59 FROM tab0 AS cor0
----
-28
-38
44

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN col0 AND 94 OR NOT ( + col1 - col2 ) NOT BETWEEN - 86 * - 46 AND col1
----

query I rowsort
SELECT + col0 - + 94 AS col1 FROM tab0
----
-7
-79
3

query I rowsort
SELECT DISTINCT col0 * + 39 * + col1 + + 46 AS col0 FROM tab2
----
192238
196021
91540

query I rowsort
SELECT DISTINCT + col0 + 62 - - col1 * col2 AS col1 FROM tab1
----
1457
3349
442

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN col1 * + 61 * + 14 + col0 AND NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 + + col0 col1 FROM tab0 AS cor0
----
-29
43
53

query I rowsort
SELECT col1 + - col2 + - col1 + - 71 + - 44 * - col2 AS col0 FROM tab0 AS cor0
----
1950
359
4186

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1576
SELECT CAST( - - 90 AS SIGNED ) FROM tab0 AS cor0
----
90
90
90

skipif mysql # not compatible
query I rowsort label-1576
SELECT CAST ( - - 90 AS INTEGER ) FROM tab0 AS cor0
----
90
90
90

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

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

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

query I rowsort
SELECT DISTINCT col0 - col2 AS col2 FROM tab1 AS cor0 WHERE ( + 76 ) NOT IN ( col2 * + + col0 )
----
-45
23
26

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 32 ) col1 FROM tab1 WHERE NOT + 51 = - col2
----
32
32
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + + col0 col0 FROM tab1
----
4896
5015
6188

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( NOT col0 * col2 BETWEEN col1 AND NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1587
SELECT DISTINCT 1 DIV - ( - col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1587
SELECT DISTINCT 1 / - ( - col1 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT ALL 41 * - COUNT( * ) AS col0 FROM tab0
----
-123

skipif mysql # not compatible
query I rowsort label-1588
SELECT ALL 41 * - COUNT ( * ) AS col0 FROM tab0
----
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-1589
SELECT 43 DIV - col1 FROM tab0
----
-2
-43
0

skipif mysql # not compatible
query I rowsort label-1589
SELECT 43 / - col1 FROM tab0
----
-2
-43
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + ( + 68 ) BETWEEN NULL AND - - col1
----

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

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

query I rowsort
SELECT ALL + + col1 * + - ( ( + col1 ) ) FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT ALL - - ( + COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( 14, col0 - + 80 )
----
0

skipif mysql # not compatible
query I rowsort label-1593
SELECT ALL - - ( + COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( 14, col0 - + 80 )
----
0

query I rowsort
SELECT 55 * - 73 FROM tab2 AS cor0
----
-4015
-4015
-4015

query I rowsort
SELECT DISTINCT 92 - 58 FROM tab2 AS cor0 WHERE NULL IN ( col1 * - - col2 + 29 * + col0 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
51
67
77

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1599
SELECT ALL - 25 DIV col2 + - 10 FROM tab2 AS cor0
----
-10
-10
-11

skipif mysql # not compatible
query I rowsort label-1599
SELECT ALL - 25 / col2 + - 10 FROM tab2 AS cor0
----
-10
-10
-11

query I rowsort
SELECT ALL + 99 FROM tab2 cor0 WHERE ( NULL ) > ( - col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 NOT IN ( + col0 + - 78 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

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

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

query I rowsort
SELECT ALL - + col2 / - + col2 * col2 * - 50 + + ( - ( + ( + col0 ) ) ) - col2 AS col2 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 69 + + col0 = col2
----

query I rowsort
SELECT + col1 * + - col0 FROM tab2 WHERE 59 <= ( - + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1609
SELECT DISTINCT CAST( + col1 AS SIGNED ) + - ( col2 ) DIV 38 * col1 AS col2, + ( - + 93 ) AS col2 FROM tab2
----
0
-93
51
-93

skipif mysql # not compatible
query II rowsort label-1609
SELECT DISTINCT CAST ( + col1 AS INTEGER ) + - ( col2 ) / 38 * col1 AS col2, + ( - + 93 ) AS col2 FROM tab2
----
0
-93
51
-93

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

skipif mysql # not compatible
query II rowsort label-1610
SELECT DISTINCT COUNT ( * ) AS col2, + 23 AS col0 FROM tab0
----
3
23

query I rowsort
SELECT DISTINCT + ( - + col0 ) + + col0 * + 11 FROM tab1
----
510
850
910

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

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

query I rowsort
SELECT ALL 45 + - - col1 AS col2 FROM tab2
----
112
122
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT + COUNT( * ) + + 32 AS col1 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-1614
SELECT + COUNT ( * ) + + 32 AS col1 FROM tab2
----
35

query II rowsort
SELECT AVG ( ALL - col0 ), 95 AS col2 FROM tab2 WHERE col0 * + col0 IS NULL
----
NULL
95

query II rowsort
SELECT 21 + - - col1 + col0, col2 FROM tab2
----
118
23
162
40
163
58

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1618
SELECT DISTINCT + 87 * col0 + - col0 DIV - col0 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
4438
7396
7918

skipif mysql # not compatible
query I rowsort label-1618
SELECT DISTINCT + 87 * col0 + - col0 / - col0 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
4438
7396
7918

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

skipif mysql # not compatible
query I rowsort label-1619
SELECT ALL + CAST ( + MIN ( ALL - 33 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT - COUNT( * ) FROM tab0 WHERE ( 36 / + col1 NOT BETWEEN + 93 AND NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-1620
SELECT - COUNT ( * ) FROM tab0 WHERE ( 36 / + col1 NOT BETWEEN + 93 AND NULL )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-1621
SELECT COUNT( * ) * + - COUNT( * ) AS col2, - 38 col1 FROM tab0
----
-9
-38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1621
SELECT COUNT ( * ) * + - COUNT ( * ) AS col2, - 38 col1 FROM tab0
----
-9
-38

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) col1 FROM tab2 AS cor0 WHERE 99 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT DISTINCT + SUM( + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-1625
SELECT DISTINCT + SUM ( + col0 ) FROM tab2 AS cor0
----
185

query II rowsort
SELECT + col1, 25 * - col0 + - ( col0 ) AS col2 FROM tab1
----
14
-1326
47
-2366
5
-2210

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT 7 * - - COUNT( ALL 98 ) AS col1 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-1627
SELECT 7 * - - COUNT ( ALL 98 ) AS col1 FROM tab2
----
21

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

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

query I rowsort
SELECT ALL - 50 * - ( 62 ) FROM tab2
----
3100
3100
3100

query I rowsort
SELECT DISTINCT - 39 * col0 FROM tab0
----
-3393
-3783
-585

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

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

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

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

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE NOT 38 + + + col2 <= + col0 * - + 40 * + 27
----
59
68
96

query I rowsort
SELECT + 82 * - + ( + 24 ) FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 * col2 + 27 AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT ALL + MIN( - 13 ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-13

skipif mysql # not compatible
query I rowsort label-1638
SELECT ALL + MIN ( - 13 ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-13

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 16 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1640
SELECT - CAST( - col1 AS SIGNED ) * + col0, col2 FROM tab2 AS cor0
----
2346
23
4928
40
5025
58

skipif mysql # not compatible
query II rowsort label-1640
SELECT - CAST ( - col1 AS INTEGER ) * + col0, col2 FROM tab2 AS cor0
----
2346
23
4928
40
5025
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 32 * - - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - ( 29 ) col0 FROM tab1 AS cor0
----
1479
2465
2639

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

query I rowsort
SELECT + 41 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 + 94 FROM tab0 AS cor0
----
13
73
93

query II rowsort
SELECT DISTINCT + 65 AS col0, + ( - col0 ) AS col2 FROM tab2 AS cor0
----
65
-46
65
-64
65
-75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 90 + + - col2 * - 28 + - 52 * + ( col2 ) IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT - SUM( DISTINCT - - col1 ) + 19 FROM tab2 AS cor0
----
-176

skipif mysql # not compatible
query I rowsort label-1650
SELECT - SUM ( DISTINCT - - col1 ) + 19 FROM tab2 AS cor0
----
-176

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1653
SELECT ( - 28 ) DIV - col1 + - 87 AS col0 FROM tab0 cor0
----
-59
-86
-87

skipif mysql # not compatible
query I rowsort label-1653
SELECT ( - 28 ) / - col1 + - 87 AS col0 FROM tab0 cor0
----
-59
-86
-87

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE ( NOT NULL IN ( col1, + 91 ) )
----

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

query III rowsort
SELECT * FROM tab2 WHERE col2 * + - col1 / - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1657
SELECT DISTINCT 60 FROM tab2 WHERE CAST( NULL AS SIGNED ) > - col2
----

skipif mysql # not compatible
query I rowsort label-1657
SELECT DISTINCT 60 FROM tab2 WHERE CAST ( NULL AS INTEGER ) > - col2
----

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

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

query I rowsort
SELECT + + ( 39 ) - - - col1 * - - col0 * - 70 + - col1 AS col2 FROM tab0 AS cor0
----
127908
6828
85008

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL BETWEEN + 6 AND NULL
----

query I rowsort
SELECT col1 * - - col2 AS col0 FROM tab1 AS cor0
----
1344
295
3196

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT ALL - - MAX( - col2 ) col0 FROM tab0 AS cor0
----
-10

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

query I rowsort
SELECT DISTINCT + + 81 AS col2 FROM tab1 cor0
----
81

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

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

query I rowsort
SELECT 29 * + col2 - - 56 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - 65 * col2 + 3 IS NOT NULL
----

query II rowsort
SELECT 25 * col2 AS col2, - 68 AS col0 FROM tab0
----
1175
-68
2475
-68
250
-68

query I rowsort
SELECT DISTINCT - 27 + + col1 FROM tab2
----
24
40
50

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

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

query I rowsort
SELECT - - col2 * 93 AS col1 FROM tab2 AS cor0
----
2139
3720
5394

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT ALL + 99 * + COUNT( * ) * - MIN( + + 13 ) FROM tab2
----
-3861

skipif mysql # not compatible
query I rowsort label-1674
SELECT ALL + 99 * + COUNT ( * ) * - MIN ( + + 13 ) FROM tab2
----
-3861

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NULL < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 20 < NULL
----

query I rowsort
SELECT DISTINCT + - ( - 30 ) + - col1 AS col1 FROM tab0 AS cor0
----
-51
29
9

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

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

query I rowsort
SELECT - - col2 AS col1 FROM tab1 WHERE 78 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1680
SELECT + 34 - - col2 DIV + + col2 FROM tab2
----
35
35
35

skipif mysql # not compatible
query I rowsort label-1680
SELECT + 34 - - col2 / + + col2 FROM tab2
----
35
35
35

query I rowsort
SELECT ALL + col2 * + - 18 AS col2 FROM tab0
----
-1782
-180
-846

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1682
SELECT 76 * 64 * - 6 + + + CAST( NULL AS SIGNED ) * + CAST( col0 AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1682
SELECT 76 * 64 * - 6 + + + CAST ( NULL AS INTEGER ) * + CAST ( col0 AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT + 32 + - - COUNT( * ) FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-1683
SELECT + 32 + - - COUNT ( * ) FROM tab1
----
35

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

query I rowsort
SELECT ALL - 94 + - + col2 FROM tab1
----
-153
-162
-190

query I rowsort
SELECT + - ( - 82 ) + 41 * col2 AS col1 FROM tab2 AS cor0
----
1025
1722
2460

query I rowsort
SELECT ALL - + col0 - + col1 * - col0 * col2 + - + col0 AS col0 FROM tab1 cor0
----
24905
290654
68442

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

skipif mysql # not compatible
query I rowsort label-1688
SELECT DISTINCT + + MIN ( + + 63 ) FROM tab1 cor0
----
63

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col2 * + 41 * + col2 < NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - 73 ) * + + col1 col1 FROM tab1
----
1022
3431
365

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 88 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1693
SELECT COUNT( * ) + - - AVG ( ALL - col0 ) AS col0, - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= - 49
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1693
SELECT COUNT ( * ) + - - AVG ( ALL - col0 ) AS col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= - 49
----
NULL
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col2 * - col1 col0, - col1, - col1 FROM tab2 AS cor0
----
9 values hashing to 4e70851f41149a7b86652e75e38cd784

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 38 + + 76 * + col1 / col2 <> NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1697
SELECT - ( + ( - + ( col1 ) ) ) FROM tab2 AS cor0 WHERE NOT ( CAST( - col1 AS SIGNED ) ) BETWEEN - 1 + - col2 AND NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1697
SELECT - ( + ( - + ( col1 ) ) ) FROM tab2 AS cor0 WHERE NOT ( CAST ( - col1 AS INTEGER ) ) BETWEEN - 1 + - col2 AND NULL
----
51
67
77

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1699
SELECT DISTINCT + col0 DIV 50 AS col2, col2 * + col0 FROM tab0 AS cor0
----
0
705
1
870
1
9603

skipif mysql # not compatible
query II rowsort label-1699
SELECT DISTINCT + col0 / 50 AS col2, col2 * + col0 FROM tab0 AS cor0
----
0
705
1
870
1
9603

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

query I rowsort
SELECT col1 + + col1 + 58 FROM tab2
----
160
192
212

query I rowsort
SELECT - col2 + + 49 AS col1 FROM tab1
----
-10
-19
-47

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col1 * + 56 + - + col0 + - - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - 61 + + - 35 FROM tab0
----
-96
-96
-96

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT - 76 * - SUM( + col0 ) FROM tab1
----
17252

skipif mysql # not compatible
query I rowsort label-1707
SELECT - 76 * - SUM ( + col0 ) FROM tab1
----
17252

query I rowsort
SELECT ALL ( - + col0 ) * - 1 + 4 FROM tab2
----
50
68
79

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col2 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1711
SELECT DISTINCT + ( CAST( NULL AS DECIMAL ) ) * MAX( DISTINCT - + ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1711
SELECT DISTINCT + ( CAST ( NULL AS REAL ) ) * MAX ( DISTINCT - + ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1713
SELECT + 36 + col2 DIV - 22 FROM tab0 AS cor0
----
32
34
36

skipif mysql # not compatible
query I rowsort label-1713
SELECT + 36 + col2 / - 22 FROM tab0 AS cor0
----
32
34
36

query I rowsort
SELECT ALL col0 - - 98 AS col1 FROM tab1 AS cor0
----
149
183
189

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

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

query II rowsort
SELECT ALL + col2 * - + col1 - + 88 + 59 AS col1, 63 FROM tab1 AS cor0
----
-1373
63
-3225
63
-324
63

onlyif mysql # DIV for integer division: 
query I rowsort label-1717
SELECT ALL - 46 DIV + 93 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL - 46 / + 93 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT col2 IN ( col0 )
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 16 <= NULL
----

query I rowsort
SELECT ALL + 38 FROM tab0 WHERE NOT NULL = + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT - - COUNT( * ) * + COUNT( * ) col0 FROM tab2 WHERE col2 >= + col2
----
9

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT DISTINCT + COUNT( ALL + + 23 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT + COUNT ( ALL + + 23 ) AS col1 FROM tab2
----
3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 + + - 64 col2 FROM tab0 AS cor0
----
-769
-934
-9667

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT - SUM( - - 68 ) AS col0 FROM tab1 cor0
----
-204

skipif mysql # not compatible
query I rowsort label-1726
SELECT - SUM ( - - 68 ) AS col0 FROM tab1 cor0
----
-204

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

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

query I rowsort
SELECT col2 * + 63 AS col2 FROM tab1
----
3717
4284
6048

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

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

query I rowsort
SELECT + 36 * - - 79 + - + col0 FROM tab2 AS cor0
----
2769
2780
2798

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1732
SELECT ALL + ( + - MIN( - ( - 63 ) ) ) AS col2, ( - ( - 66 ) ) AS col1 FROM tab2 AS cor0
----
-63
66

skipif mysql # not compatible
query II rowsort label-1732
SELECT ALL + ( + - MIN ( - ( - 63 ) ) ) AS col2, ( - ( - 66 ) ) AS col1 FROM tab2 AS cor0
----
-63
66

onlyif mysql # DIV for integer division: 
query I rowsort label-1733
SELECT DISTINCT + - col0 DIV col2 * + col1 FROM tab0 AS cor0
----
-168
0

skipif mysql # not compatible
query I rowsort label-1733
SELECT DISTINCT + - col0 / col2 * + col1 FROM tab0 AS cor0
----
-168
0

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1739
SELECT ALL + 44 DIV + 6 + col2 AS col0 FROM tab2
----
30
47
65

skipif mysql # not compatible
query I rowsort label-1739
SELECT ALL + 44 / + 6 + col2 AS col0 FROM tab2
----
30
47
65

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

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

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

query II rowsort
SELECT DISTINCT ( + 22 ) AS col1, + 34 * 27 + - col2 FROM tab2 AS cor0
----
22
860
22
878
22
895

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN + col0 + + 54 + + col1 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 * - - col2 = - 97 + + 16 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT DISTINCT - SUM( col2 ) * - COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1748
SELECT DISTINCT - SUM ( col2 ) * - COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT COUNT( * ) + 69 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-1749
SELECT COUNT ( * ) + 69 FROM tab2
----
72

onlyif mysql # DIV for integer division: 
query II rowsort label-1750
SELECT + col1, - col1 DIV col1 AS col0 FROM tab0
----
1
-1
21
-1
81
-1

skipif mysql # not compatible
query II rowsort label-1750
SELECT + col1, - col1 / col1 AS col0 FROM tab0
----
1
-1
21
-1
81
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1751
SELECT CAST( MIN( + col2 ) AS SIGNED ) FROM tab2
----
23

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

query I rowsort
SELECT DISTINCT + 37 - col1 + + - col2 AS col2 FROM tab1 AS cor0
----
-27
-73
-78

query I rowsort
SELECT ALL - - col0 - - - ( - - ( - 89 ) ) FROM tab0 cor0
----
104
176
186

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT DISTINCT SUM( col2 ) + + 57 AS col2 FROM tab0 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-1754
SELECT DISTINCT SUM ( col2 ) + + 57 AS col2 FROM tab0 AS cor0
----
213

query II rowsort
SELECT DISTINCT 38, + ( + + col2 ) AS col1 FROM tab2 AS cor0
----
38
23
38
40
38
58

query I rowsort
SELECT + 25 * - col0 FROM tab2
----
-1150
-1600
-1875

query II rowsort
SELECT DISTINCT + col0 * + col0, - 58 AS col1 FROM tab1 cor0
----
2601
-58
7225
-58
8281
-58

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT - + ( COUNT( * ) ) + + - ( 10 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-19

skipif mysql # not compatible
query I rowsort label-1761
SELECT - + ( COUNT ( * ) ) + + - ( 10 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-19

query I rowsort
SELECT + 14 * - - col1 FROM tab2 AS cor0
----
1078
714
938

query I rowsort
SELECT ALL - - 18 * + 50 FROM tab0 cor0 WHERE 83 IS NOT NULL
----
900
900
900

onlyif mysql # DIV for integer division: 
query I rowsort label-1764
SELECT ALL 84 DIV - 29 AS col1 FROM tab1 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-1764
SELECT ALL 84 / - 29 AS col1 FROM tab1 AS cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-1765
SELECT ALL - COUNT( * ) AS col2, + 24 - 16 AS col0 FROM tab1 AS cor0
----
-3
8

skipif mysql # not compatible
query II rowsort label-1765
SELECT ALL - COUNT ( * ) AS col2, + 24 - 16 AS col0 FROM tab1 AS cor0
----
-3
8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT COUNT( * ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1767
SELECT COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3

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

query I rowsort
SELECT + col0 + - + 54 + - + 48 FROM tab1
----
-11
-17
-51

query I rowsort
SELECT ALL - col0 + ( col0 ) FROM tab0
----
0
0
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1772
SELECT DISTINCT + ( - col2 ) AS col0 FROM tab2 WHERE - col1 NOT IN ( 8, + col2, 53 + + + 29 + + - col2 * + CAST( - + col0 AS SIGNED ) )
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1772
SELECT DISTINCT + ( - col2 ) AS col0 FROM tab2 WHERE - col1 NOT IN ( 8, + col2, 53 + + + 29 + + - col2 * + CAST ( - + col0 AS INTEGER ) )
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT ALL + COUNT( ALL - col0 ) + - 79 FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-1773
SELECT ALL + COUNT ( ALL - col0 ) + - 79 FROM tab2
----
-76

query I rowsort
SELECT DISTINCT col0 + 99 + + + col2 AS col0 FROM tab1 AS cor0
----
243
246
258

query I rowsort
SELECT DISTINCT col1 + - 75 FROM tab1 AS cor0
----
-28
-61
-70

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < col2 / - 59
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1778
SELECT ALL 51 + + CAST( NULL AS SIGNED ) - - - 17 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1778
SELECT ALL 51 + + CAST ( NULL AS INTEGER ) - - - 17 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 80 * - ( col1 ) FROM tab1 WHERE NULL <= 90
----

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

query I rowsort
SELECT + - 18 * + + col2 * + col0 + - col0 AS col2 FROM tab0 AS cor0
----
-12705
-15747
-172951

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1782
SELECT - + COUNT( + + CAST( NULL AS SIGNED ) ) + - 22 + - - 60 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-1782
SELECT - + COUNT ( + + CAST ( NULL AS INTEGER ) ) + - 22 + - - 60 FROM tab2 AS cor0
----
38

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1784
SELECT ALL + + col0 * - - 15 * - 81 - - - col0 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL + + col0 * - - 15 * - 81 - - - col0 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 44 col2, + 6 FROM tab1
----
44
6
44
6
44
6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT DISTINCT - - MIN( ALL 10 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-1788
SELECT DISTINCT - - MIN ( ALL 10 ) AS col0 FROM tab0 AS cor0
----
10

query I rowsort
SELECT - col1 * + col2 * + col0 FROM tab1 AS cor0
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT + - SUM( 95 ) * - 79 FROM tab2 AS cor0
----
22515

skipif mysql # not compatible
query I rowsort label-1790
SELECT + - SUM ( 95 ) * - 79 FROM tab2 AS cor0
----
22515

query I rowsort
SELECT DISTINCT 74 * col0 * ( - col2 ) AS col1 FROM tab0
----
-52170
-64380
-710622

query I rowsort
SELECT ALL - col2 * - 70 AS col1 FROM tab0
----
3290
6930
700

query I rowsort
SELECT ALL + col0 + + 32 + ( + - col0 ) FROM tab2
----
32
32
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1794
SELECT * FROM tab2 WHERE + ( - - col2 ) IN ( + + col1, + CAST( - ( - + 83 ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1794
SELECT * FROM tab2 WHERE + ( - - col2 ) IN ( + + col1, + CAST ( - ( - + 83 ) AS INTEGER ) )
----

query I rowsort
SELECT + 42 + + 59 AS col0 FROM tab2
----
101
101
101

query I rowsort
SELECT col2 + - 30 * - col2 AS col2 FROM tab0
----
1457
3069
310

query I rowsort
SELECT 24 + - + col2 FROM tab2
----
-16
-34
1

query I rowsort
SELECT 5 * + col0 + + + col1 * - - col0 AS col0 FROM tab0
----
1290
2262
582

query I rowsort
SELECT - 48 + - col1 FROM tab2
----
-115
-125
-99

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1801
SELECT DISTINCT - CAST( - 46 AS SIGNED ) * - + 52 + + - CAST( - col2 AS SIGNED ) + - - col1 * col0 * + col1 / + col2 FROM tab0 WHERE ( ( NULL ) > - + ( + - col2 ) )
----

skipif mysql # not compatible
query I rowsort label-1801
SELECT DISTINCT - CAST ( - 46 AS INTEGER ) * - + 52 + + - CAST ( - col2 AS INTEGER ) + - - col1 * col0 * + col1 / + col2 FROM tab0 WHERE ( ( NULL ) > - + ( + - col2 ) )
----

query I rowsort
SELECT ALL - 92 * + col2 FROM tab1 AS cor0
----
-5428
-6256
-8832

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 60 * - 0 / + + 78 * + 10 + - col2 / + 5 <> + 18
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 * ( + - 84 ) FROM tab2
----
4284
5628
6468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 39 col1 FROM tab2
----
103
114
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT + MAX( 58 ) col1 FROM tab2
----
58

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

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

query I rowsort
SELECT - - col0 * col1 * + col0 - + + 5 FROM tab2 AS cor0
----
107911
315387
376870

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1811
SELECT 53, ( - 28 ) DIV - col2 AS col0 FROM tab2 cor0
----
53
0
53
0
53
1

skipif mysql # not compatible
query II rowsort label-1811
SELECT 53, ( - 28 ) / - col2 AS col0 FROM tab2 cor0
----
53
0
53
0
53
1

query I rowsort
SELECT + col1 * 33 * + col2 - - col2 AS col0 FROM tab1 AS cor0
----
105536
44448
9794

query I rowsort
SELECT ALL + + 4 FROM tab0 WHERE col2 + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1814
SELECT ALL 79 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1814
SELECT ALL 79 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - 85 * 47 * - col2 FROM tab1
----
1178525
12768020
5369280

query I rowsort
SELECT 98 * + col2 AS col0 FROM tab0
----
4606
9702
980

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT - 80 * - MAX( + 46 ) FROM tab2
----
3680

skipif mysql # not compatible
query I rowsort label-1817
SELECT - 80 * - MAX ( + 46 ) FROM tab2
----
3680

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT 5 * + SUM( - + 89 ) AS col2 FROM tab2
----
-1335

skipif mysql # not compatible
query I rowsort label-1818
SELECT 5 * + SUM ( - + 89 ) AS col2 FROM tab2
----
-1335

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT + 47 * - COUNT( * ) * 21 AS col2 FROM tab0
----
-2961

skipif mysql # not compatible
query I rowsort label-1819
SELECT + 47 * - COUNT ( * ) * 21 AS col2 FROM tab0
----
-2961

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 BETWEEN NULL AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - col2 / - col2 AS col2 FROM tab2 AS cor0 WHERE NULL IN ( + 6, + col0 * - 19 * + col1, + col2, + + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1822
SELECT DISTINCT - col1 * - + col0 DIV col0 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1822
SELECT DISTINCT - col1 * - + col0 / col0 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 64 <= NULL
----

query I rowsort
SELECT + col0 + + - col2 * - col0 FROM tab2 AS cor0
----
1104
2624
4425

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

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

query I rowsort
SELECT ALL - 46 * + + col1 FROM tab2 AS cor0
----
-2346
-3082
-3542

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 29 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1829
SELECT DISTINCT + col0 * col0 + + CAST( NULL AS SIGNED ) AS col2, col0 * col0 - - col2 * - + col0 FROM tab1 AS cor0
----
NULL
-2295
NULL
2093
NULL
2210

skipif mysql # not compatible
query II rowsort label-1829
SELECT DISTINCT + col0 * col0 + + CAST ( NULL AS INTEGER ) AS col2, col0 * col0 - - col2 * - + col0 FROM tab1 AS cor0
----
NULL
-2295
NULL
2093
NULL
2210

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

query I rowsort
SELECT + ( - col0 ) + - 35 + 72 AS col2 FROM tab0 AS cor0
----
-50
-60
22

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1832
SELECT col1 + - ( + CAST ( NULL AS INTEGER ) ) - col0 * + 25 col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + + - 85 AS col2 FROM tab0
----
-100
-172
-182

onlyif mysql # DIV for integer division: 
query I rowsort label-1834
SELECT DISTINCT + col2 DIV + - col2 + + + col1 * + col1 AS col2 FROM tab1
----
195
2208
24

skipif mysql # not compatible
query I rowsort label-1834
SELECT DISTINCT + col2 / + - col2 + + + col1 * + col1 AS col2 FROM tab1
----
195
2208
24

query III rowsort
SELECT * FROM tab0 WHERE col1 * + col2 NOT IN ( - col0 + - 86 + - 74 * 16 * col1, 40 - - 91 * - 77 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 + ( - col1 ) FROM tab1
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1837
SELECT ALL ( + CAST( NULL AS SIGNED ) ) + 6 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1837
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) + 6 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 - + + 16 + + - col0 FROM tab0 AS cor0
----
-112
-114
-124

query II rowsort
SELECT ALL + + col1 * + - 1 AS col2, col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT DISTINCT - COUNT( ALL - - 44 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1840
SELECT DISTINCT - COUNT ( ALL - - 44 ) AS col0 FROM tab1
----
-3

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 89 > NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 / + col1 <> + - 83
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1843
SELECT ALL 22 AS col1, - COUNT( * ) FROM tab1 cor0
----
22
-3

skipif mysql # not compatible
query II rowsort label-1843
SELECT ALL 22 AS col1, - COUNT ( * ) FROM tab1 cor0
----
22
-3

query I rowsort
SELECT + col2 * col0 + + ( - 78 ) AS col1 FROM tab1 AS cor0
----
4818
4937
6110

query I rowsort
SELECT + col0 * + + 18 FROM tab1 cor0
----
1530
1638
918

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT + MIN( col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-1846
SELECT + MIN ( col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, ( - ( + 44 ) ) col1 FROM tab0 AS cor0
----
1
-44
21
-44
81
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT - SUM( DISTINCT 74 ) AS col1 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-1848
SELECT - SUM ( DISTINCT 74 ) AS col1 FROM tab1 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT ALL 49 * - ( COUNT( * ) ) AS col1 FROM tab1
----
-147

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL 49 * - ( COUNT ( * ) ) AS col1 FROM tab1
----
-147

onlyif mysql # DIV for integer division: 
query I rowsort label-1850
SELECT DISTINCT 76 DIV + col1 FROM tab0
----
0
3
76

skipif mysql # not compatible
query I rowsort label-1850
SELECT DISTINCT 76 / + col1 FROM tab0
----
0
3
76

query I rowsort
SELECT - col0 * - 73 AS col2 FROM tab1
----
3723
6205
6643

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1852
SELECT ALL ( - - 15 ) / col1 * - - CAST( + + 72 AS SIGNED ) AS col1 FROM tab1 WHERE NOT - 88 * + CAST( NULL AS SIGNED ) + + col1 * + - 75 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL ( - - 15 ) / col1 * - - CAST ( + + 72 AS INTEGER ) AS col1 FROM tab1 WHERE NOT - 88 * + CAST ( NULL AS INTEGER ) + + col1 * + - 75 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT + COUNT( * ) * - + 52 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-1853
SELECT + COUNT ( * ) * - + 52 FROM tab0
----
-156

query I rowsort
SELECT - col0 * + 76 FROM tab0
----
-1140
-6612
-7372

query I rowsort
SELECT ALL - 87 * - - col0 * - col1 AS col1 FROM tab0
----
105705
158949
8439

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT + - 11 * COUNT( * ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-1856
SELECT + - 11 * COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT ALL - col0 * col1 * - col0 AS col0 FROM tab1 AS cor0
----
36125
36414
389207

query II rowsort
SELECT DISTINCT col2, + col2 AS col1 FROM tab0 cor0
----
10
10
47
47
99
99

query II rowsort
SELECT col0, + 70 * + - col0 AS col0 FROM tab0 cor0
----
15
-1050
87
-6090
97
-6790

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT + ( + + 68 ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-1860
SELECT + ( + + 68 ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
71

query I rowsort
SELECT ALL + + 5 AS col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL BETWEEN + 34 AND + - 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT MIN( ALL ( - - 39 ) ) col1 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1863
SELECT MIN ( ALL ( - - 39 ) ) col1 FROM tab2 AS cor0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-1864
SELECT + col0 DIV + - col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1864
SELECT + col0 / + - col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1865
SELECT ALL - - 9 + - 91 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL - - 9 + - 91 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT - COUNT( - col0 ) * 38 FROM tab1 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-1866
SELECT - COUNT ( - col0 ) * 38 FROM tab1 AS cor0
----
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1867
SELECT ALL - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1868
SELECT ALL ( + ( - col2 ) ), col0 DIV + + col1 + + 82 + col1 col0 FROM tab0 AS cor0
----
-10
107
-47
163
-99
180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1868
SELECT ALL ( + ( - col2 ) ), col0 / + + col1 + + 82 + col1 col0 FROM tab0 AS cor0
----
-10
107
-47
163
-99
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1869
SELECT + col2 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) + - + col0 * - + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1869
SELECT + col2 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + - + col0 * - + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1870
SELECT DISTINCT col0 * col0 + + - col1 DIV + col2 AS col1 FROM tab2
----
2114
4095
5624

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT col0 * col0 + + - col1 / + col2 AS col1 FROM tab2
----
2114
4095
5624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1871
SELECT COUNT( * ) * + COUNT( + ( - col1 ) ) - + 91 DIV - MAX( + - col2 ) AS col1 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-1871
SELECT COUNT ( * ) * + COUNT ( + ( - col1 ) ) - + 91 / - MAX ( + - col2 ) AS col1 FROM tab1
----
8

query I rowsort
SELECT + col0 - + 63 FROM tab0
----
-48
24
34

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 >= - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT + COUNT( * ) + - 96 + 94 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1874
SELECT + COUNT ( * ) + - 96 + 94 FROM tab1
----
1

query II rowsort
SELECT ALL col1, - ( + + 62 ) + + ( ( - col1 ) ) FROM tab1
----
14
-76
47
-109
5
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT ALL COUNT( * ) + + 12 * - - 0 col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1876
SELECT ALL COUNT ( * ) + + 12 * - - 0 col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1877
SELECT DISTINCT - CAST( + 12 AS SIGNED ) + - - col1 FROM tab0
----
-11
69
9

skipif mysql # not compatible
query I rowsort label-1877
SELECT DISTINCT - CAST ( + 12 AS INTEGER ) + - - col1 FROM tab0
----
-11
69
9

query I rowsort
SELECT DISTINCT + - 76 - - + ( + 11 ) + 38 AS col2 FROM tab2 AS cor0
----
-27

query I rowsort
SELECT col2 * + col2 * - 19 + - + col1 AS col0 FROM tab1 AS cor0
----
-175118
-66144
-87903

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 46 IS NULL
----

query I rowsort
SELECT ALL + 61 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT ALL - col0 * - ( 57 ) AS col1 FROM tab1 cor0
----
2907
4845
5187

query I rowsort
SELECT ALL + ( + 84 ) AS col1 FROM tab0 AS cor0
----
84
84
84

onlyif mysql # DIV for integer division: 
query I rowsort label-1884
SELECT DISTINCT + + col0 * ( - + col1 ) DIV ( col2 ) FROM tab0 AS cor0
----
-182
-25
0

skipif mysql # not compatible
query I rowsort label-1884
SELECT DISTINCT + + col0 * ( - + col1 ) / ( col2 ) FROM tab0 AS cor0
----
-182
-25
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1885
SELECT ALL - + COUNT( * ) DIV - + SUM( + + col0 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL - + COUNT ( * ) / - + SUM ( + + col0 ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab1 WHERE + col1 + + 48 + + 65 = + col1 + + + 66
----
0

skipif mysql # not compatible
query I rowsort label-1886
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab1 WHERE + col1 + + 48 + + 65 = + col1 + + + 66
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1887
SELECT DISTINCT - col1 DIV col0 col0 FROM tab2
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1887
SELECT DISTINCT - col1 / col0 col0 FROM tab2
----
-1
0

query II rowsort
SELECT - col0 AS col1, col0 AS col1 FROM tab2
----
-46
46
-64
64
-75
75

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col2 >= - + 83 + 10
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1890
SELECT - CAST( NULL AS SIGNED ) AS col0, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-1890
SELECT - CAST ( NULL AS INTEGER ) AS col0, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT - MAX( + col2 ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-1891
SELECT - MAX ( + col2 ) AS col0 FROM tab1
----
-96

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= 75 * 82 + - 42
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1893
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) + - col1 > - + col1 * + + col1 * + col2
----

skipif mysql # not compatible
query III rowsort label-1893
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) + - col1 > - + col1 * + + col1 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1894
SELECT ALL CAST( NULL AS SIGNED ) / + ( + col2 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1894
SELECT ALL CAST ( NULL AS INTEGER ) / + ( + col2 ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT col0 - - col1, - ( - col2 ) / + - 10 FROM tab1 AS cor0 WHERE NOT ( NOT col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT DISTINCT - COUNT( * ) * MAX( col2 ) - 63 FROM tab1 cor0
----
-351

skipif mysql # not compatible
query I rowsort label-1896
SELECT DISTINCT - COUNT ( * ) * MAX ( col2 ) - 63 FROM tab1 cor0
----
-351

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT - + MAX( - 57 ) AS col2 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-1897
SELECT - + MAX ( - 57 ) AS col2 FROM tab0 AS cor0
----
57

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT + col1 * - col0 - - col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT + MAX( - - col0 ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-1899
SELECT + MAX ( - - col0 ) AS col1 FROM tab1 AS cor0
----
91

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 29 <> + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 + + 30 FROM tab0
----
-57
-67
15

query I rowsort
SELECT 78 + + - col1 FROM tab1 AS cor0
----
31
64
73

query I rowsort
SELECT DISTINCT ( + + ( ( 25 ) ) ) FROM tab2 AS cor0
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - 30 col2 FROM tab2 AS cor0
----
-105
-76
-94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - col2, - col1, + 46 * col1, ( + 33 ), + 51 * col0 - - + 33 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1906
SELECT + + CAST( + ( + ( - 82 ) ) AS SIGNED ) * 62 + - 21, - col2 * + ( - col1 ) col0 FROM tab0 AS cor0
----
-5105
210
-5105
3807
-5105
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1906
SELECT + + CAST ( + ( + ( - 82 ) ) AS INTEGER ) * 62 + - 21, - col2 * + ( - col1 ) col0 FROM tab0 AS cor0
----
-5105
210
-5105
3807
-5105
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * + col0 <> NULL
----

query I rowsort
SELECT + - col1 FROM tab1 AS cor0 WHERE + 74 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1909
SELECT DISTINCT + + SUM( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT + + SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + ( + 59 ) AS col2 FROM tab0 AS cor0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1911
SELECT - 59 DIV + MIN( ALL - col2 ), + 35 * ( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1911
SELECT - 59 / + MIN ( ALL - col2 ), + 35 * ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
1
NULL

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE - col0 <> - 11 + + col0
----
51
67
77

query I rowsort
SELECT DISTINCT col2 / - + col0 FROM tab2 WHERE NOT + ( col2 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT ALL SUM( DISTINCT - col1 ) + + SUM( - col0 ) FROM tab0
----
-302

skipif mysql # not compatible
query I rowsort label-1914
SELECT ALL SUM ( DISTINCT - col1 ) + + SUM ( - col0 ) FROM tab0
----
-302

query I rowsort
SELECT 68 - 46 - - 89 FROM tab0
----
111
111
111

query I rowsort
SELECT DISTINCT - col0 + - col2 + col2 AS col1 FROM tab0
----
-15
-87
-97

query II rowsort
SELECT - ( 52 ) AS col2, col1 AS col0 FROM tab1 AS cor0
----
-52
14
-52
47
-52
5

query II rowsort
SELECT + col1 AS col1, 44 + - + col2 / 58 FROM tab0 AS cor0 WHERE NOT ( ( + col0 ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 cor0 WHERE col1 IS NOT NULL
----
1
21
81

query I rowsort
SELECT - col1 AS col0 FROM tab2 cor0 WHERE NOT - 15 NOT IN ( - 0 - - - col1 + col1 )
----

query I rowsort
SELECT ALL col2 * - + ( + col0 ) * col1 AS col1 FROM tab0 AS cor0
----
-18270
-57105
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1922
SELECT DISTINCT CAST( col2 AS SIGNED ) FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT CAST ( col2 AS INTEGER ) FROM tab1 cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT - + MIN( - - 85 ) FROM tab1 cor0
----
-85

skipif mysql # not compatible
query I rowsort label-1923
SELECT - + MIN ( - - 85 ) FROM tab1 cor0
----
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 col1 FROM tab0 AS cor0
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT DISTINCT + - MIN( ALL + 42 ) + - - MAX( ALL - col2 ) col2 FROM tab1 AS cor0 WHERE NOT 28 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1925
SELECT DISTINCT + - MIN ( ALL + 42 ) + - - MAX ( ALL - col2 ) col2 FROM tab1 AS cor0 WHERE NOT 28 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 74 BETWEEN - - col1 AND NULL
----

query I rowsort
SELECT ( + col2 ) FROM tab1 WHERE NOT - col2 * - col2 NOT BETWEEN col0 AND - - col2 + col0
----

query I rowsort
SELECT DISTINCT + ( - ( + 30 ) ) AS col0 FROM tab2 AS cor0
----
-30

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 83 + - + 82 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * - - col2 * + - 74 FROM tab1 AS cor0
----
-21830
-236504
-99456

query I rowsort
SELECT - + 78 * 15 + + 0 FROM tab0 AS cor0
----
-1170
-1170
-1170

query I rowsort
SELECT DISTINCT - col0 - 98 AS col0 FROM tab2 AS cor0
----
-144
-162
-173

query I rowsort
SELECT + - col0 - + col2 + col1 AS col0 FROM tab1 AS cor0
----
-112
-133
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT ALL + - MIN( + + 25 ) FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-1934
SELECT ALL + - MIN ( + + 25 ) FROM tab0 AS cor0
----
-25

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT - 98 IN ( col1 )
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT + COUNT( * ) - - COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1936
SELECT + COUNT ( * ) - - COUNT ( * ) FROM tab1 AS cor0
----
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - col2 * col0 * - 47
----

query II rowsort
SELECT col1 + - - col0, 0 AS col1 FROM tab2
----
141
0
142
0
97
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + col0 col0 FROM tab2
----
128
150
92

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN + + ( - col1 ) AND - - col1
----

query I rowsort
SELECT - ( + 31 ) + col2 + - 54 FROM tab2
----
-27
-45
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 82 col0 FROM tab2
----
18
36
7

query I rowsort
SELECT ALL + col2 + + col1 + 57 AS col2 FROM tab1
----
121
167
172

query I rowsort
SELECT + col0 + 61 * - col0 AS col0 FROM tab2
----
-2760
-3840
-4500

query II rowsort
SELECT 75 AS col2, + col2 * + col1 AS col2 FROM tab1
----
75
1344
75
295
75
3196

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1946
SELECT - + ( - + col1 ), CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-1946
SELECT - + ( - + col1 ), CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * - - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 >= + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 42 AS col0 FROM tab1 cor0
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1950
SELECT - 75 DIV - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-1950
SELECT - 75 / - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
25

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1951
SELECT DISTINCT ( + CAST( NULL AS DECIMAL ) ), + ( col2 ) + - - 27 AS col0 FROM tab2 AS cor0
----
NULL
50
NULL
67
NULL
85

skipif mysql # not compatible
query II rowsort label-1951
SELECT DISTINCT ( + CAST ( NULL AS REAL ) ), + ( col2 ) + - - 27 AS col0 FROM tab2 AS cor0
----
NULL
50
NULL
67
NULL
85

query I rowsort
SELECT - col0 + - + 50 - + col1 AS col1 FROM tab1 AS cor0
----
-115
-140
-188

query I rowsort
SELECT + 68 + 49 * - - col2 + - col2 FROM tab1
----
2900
3332
4676

onlyif mysql # aggregate syntax: 
query II rowsort label-1954
SELECT ( + - COUNT( * ) ) + - - COUNT( * ) AS col0, - 45 FROM tab1
----
0
-45

skipif mysql # not compatible
query II rowsort label-1954
SELECT ( + - COUNT ( * ) ) + - - COUNT ( * ) AS col0, - 45 FROM tab1
----
0
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-1955
SELECT col0 + - - col1 DIV - 41 AS col2 FROM tab2
----
45
63
74

skipif mysql # not compatible
query I rowsort label-1955
SELECT col0 + - - col1 / - 41 AS col2 FROM tab2
----
45
63
74

query II rowsort
SELECT DISTINCT col2, - col0 FROM tab0
----
10
-87
47
-15
99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT DISTINCT MIN( 46 ) + - - COUNT( * ) FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-1957
SELECT DISTINCT MIN ( 46 ) + - - COUNT ( * ) FROM tab2
----
49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 73 * col0 * - col1 + - col2 AS col0, - col0 AS col2 FROM tab2 AS cor0
----
-171281
-46
-359784
-64
-366883
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT + + COUNT( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1960
SELECT + + COUNT ( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1961
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1961
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT ALL + - COUNT( * ) * + 14 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-1962
SELECT ALL + - COUNT ( * ) * + 14 FROM tab0 AS cor0
----
-42

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE + col2 + - col0 BETWEEN - ( col2 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1964
SELECT ALL 67 * col0 - col0 DIV - col2 FROM tab1
----
3417
5696
6098

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL 67 * col0 - col0 / - col2 FROM tab1
----
3417
5696
6098

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1965
SELECT DISTINCT * FROM tab0 WHERE ( + col2 + CAST( NULL AS SIGNED ) / col0 ) NOT IN ( col2 )
----

skipif mysql # not compatible
query III rowsort label-1965
SELECT DISTINCT * FROM tab0 WHERE ( + col2 + CAST ( NULL AS INTEGER ) / col0 ) NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT + 40 - - 38 FROM tab1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT ALL - 15 * + COUNT( * ) FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-1967
SELECT ALL - 15 * + COUNT ( * ) FROM tab0
----
-45

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE + col0 IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL - 24 AS col0 FROM tab2 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * - col1 AS col0 FROM tab2 WHERE col1 IS NULL
----

query I rowsort
SELECT + col0 * + 33 AS col0 FROM tab2
----
1518
2112
2475

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT DISTINCT - SUM( DISTINCT - col1 ) - COUNT( * ) AS col1 FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-1972
SELECT DISTINCT - SUM ( DISTINCT - col1 ) - COUNT ( * ) AS col1 FROM tab2
----
192

query I rowsort
SELECT + col1 + + 71 * col1 AS col1 FROM tab0
----
1512
5832
72

query III rowsort
SELECT ALL * FROM tab1 WHERE - 49 * - col2 BETWEEN col2 AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE 74 * - 76 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1976
SELECT + 7 FROM tab2 WHERE NOT NULL NOT IN ( 93 * - CAST( 32 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1976
SELECT + 7 FROM tab2 WHERE NOT NULL NOT IN ( 93 * - CAST ( 32 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1977
SELECT ALL - col2 + col2 DIV + 26 FROM tab0
----
-10
-46
-96

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL - col2 + col2 / + 26 FROM tab0
----
-10
-46
-96

query III rowsort
SELECT * FROM tab1 WHERE ( + 81 ) <> ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1979
SELECT col2 - + 6 DIV + col2 AS col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1979
SELECT col2 - + 6 / + col2 AS col2 FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT - 42 AS col0 FROM tab2 WHERE NOT ( col0 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1981
SELECT DISTINCT - col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1981
SELECT DISTINCT - col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1982
SELECT DISTINCT - 60 DIV - col0 AS col2 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-1982
SELECT DISTINCT - 60 / - col0 AS col2 FROM tab2
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 ) < ( - ( - ( + col0 ) ) )
----
51
14
96

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( col0 * + col0 )
----

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NOT col2 IS NULL
----
59
68
96

query I rowsort
SELECT ( + col1 ) * + 87 + col0 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1987
SELECT col0 DIV - col0 + col1 AS col0 FROM tab2 WHERE + 33 NOT IN ( col1 )
----
50
66
76

skipif mysql # not compatible
query I rowsort label-1987
SELECT col0 / - col0 + col1 AS col0 FROM tab2 WHERE + 33 NOT IN ( col1 )
----
50
66
76

query I rowsort
SELECT 79 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( + col1 - + 64 * col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1990
SELECT ALL col2 DIV + col0 FROM tab1 WHERE 34 NOT IN ( col0 )
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1990
SELECT ALL col2 / + col0 FROM tab1 WHERE 34 NOT IN ( col0 )
----
0
0
1

query I rowsort
SELECT ALL + col0 * - col2 + - col1 FROM tab1
----
-4910
-5020
-6235

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 16 ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 68 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1994
SELECT 35 DIV col1 FROM tab2 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1994
SELECT 35 / col1 FROM tab2 WHERE NULL IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT COUNT( * ) FROM tab1 WHERE col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1995
SELECT COUNT ( * ) FROM tab1 WHERE col1 <> NULL
----
0

query I rowsort
SELECT DISTINCT + 5 + col0 * - ( - col2 + + 6 ) AS col1 FROM tab0 WHERE col0 + + col0 / + 83 <= + 60
----
620

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE + col0 NOT BETWEEN NULL AND ( col0 * + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col0 - col1 ) < NULL
----

query I rowsort
SELECT + 53 * col0 AS col2 FROM tab2 AS cor0
----
2438
3392
3975

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT - col2 NOT BETWEEN col2 AND ( col2 )
----

query I rowsort
SELECT + 53 FROM tab0 WHERE NOT ( 87 + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT - MIN( DISTINCT col2 ) * - 81 col1 FROM tab2
----
1863

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2002
SELECT - MIN ( DISTINCT col2 ) * - 81 col1 FROM tab2
----
1863

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - + 62 * col1 FROM tab0 AS cor0
----
-1302
-5022
-62

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 50 BETWEEN 71 AND ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 89 * 57 FROM tab0 cor0
----
-5073

query I rowsort
SELECT DISTINCT col2 * + ( ( + 86 ) * col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL = col1
----

query I rowsort
SELECT DISTINCT - + 26 AS col0 FROM tab0 AS cor0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2009
SELECT ALL col2 * - + CAST( col1 AS SIGNED ) FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-2009
SELECT ALL col2 * - + CAST ( col1 AS INTEGER ) FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2010
SELECT DISTINCT + col0 + - - CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2010
SELECT DISTINCT + col0 + - - CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2011
SELECT DISTINCT col1 + CAST( col0 AS SIGNED ) * 96 AS col2 FROM tab1
----
4910
8165
8783

skipif mysql # not compatible
query I rowsort label-2011
SELECT DISTINCT col1 + CAST ( col0 AS INTEGER ) * 96 AS col2 FROM tab1
----
4910
8165
8783

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2012
SELECT * FROM tab1 WHERE + ( - CAST( NULL AS SIGNED ) ) + col1 < col0
----

skipif mysql # not compatible
query III rowsort label-2012
SELECT * FROM tab1 WHERE + ( - CAST ( NULL AS INTEGER ) ) + col1 < col0
----

query I rowsort
SELECT + ( - col0 ) + - col0 AS col1 FROM tab1
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT 84 + + - MAX( col0 ) * + MIN( DISTINCT + 66 ) FROM tab2 AS cor0
----
-4866

skipif mysql # not compatible
query I rowsort label-2014
SELECT 84 + + - MAX ( col0 ) * + MIN ( DISTINCT + 66 ) FROM tab2 AS cor0
----
-4866

onlyif mysql # DIV for integer division: 
query I rowsort label-2015
SELECT col2 DIV - col2 + - col2 * - col0 AS col2 FROM tab0 AS cor0
----
704
869
9602

skipif mysql # not compatible
query I rowsort label-2015
SELECT col2 / - col2 + - col2 * - col0 AS col2 FROM tab0 AS cor0
----
704
869
9602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 col0 FROM tab2 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT ALL + ( SUM( DISTINCT + 1 ) ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL + ( SUM ( DISTINCT + 1 ) ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 <= ( + - 10 / col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 ) NOT BETWEEN - col0 AND 61
----

query I rowsort
SELECT DISTINCT 80 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2021
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + 26 + - col1 + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2021
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 26 + - col1 + col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT DISTINCT - 90 * MIN( ALL + 75 ) AS col0 FROM tab0 AS cor0
----
-6750

skipif mysql # not compatible
query I rowsort label-2022
SELECT DISTINCT - 90 * MIN ( ALL + 75 ) AS col0 FROM tab0 AS cor0
----
-6750

query I rowsort
SELECT ALL - - 20 * col2 FROM tab2 AS cor0
----
1160
460
800

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT DISTINCT ( COUNT( - 50 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2024
SELECT DISTINCT ( COUNT ( - 50 ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE ( col2 + + col1 + - 8 ) IN ( col1 / col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col2 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT COUNT( * ) * - - MIN( + - 1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2027
SELECT COUNT ( * ) * - - MIN ( + - 1 ) FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 >= - 33 * 69
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2029
SELECT DISTINCT MIN( - + 41 ) DIV SUM( + + col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT MIN ( - + 41 ) / SUM ( + + col2 ) FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - + 63 + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 col2 FROM tab1
----
38
38
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2033
SELECT col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT - col2 > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2033
SELECT col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT - col2 > ( NULL )
----

query I rowsort
SELECT DISTINCT 54 FROM tab0 WHERE NOT col2 / + + 81 * col0 IS NULL
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE + col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2035
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE + col1 < NULL
----
0

query I rowsort
SELECT - - col1 AS col2 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT ALL - ( + + COUNT( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL - ( + + COUNT ( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > ( 51 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT ALL MAX( + 42 ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-2039
SELECT ALL MAX ( + 42 ) FROM tab0 AS cor0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2040
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) + + col2 * - 8 ) < NULL
----

skipif mysql # not compatible
query III rowsort label-2040
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) + + col2 * - 8 ) < NULL
----

query I rowsort
SELECT ALL - ( + 78 ) FROM tab0 AS cor0 WHERE NOT + col0 * + + col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2042
SELECT ALL col1 DIV 90 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2042
SELECT ALL col1 / 90 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT 51 + + 43 + col0 + - col0 FROM tab0 AS cor0
----
94
94
94

query I rowsort
SELECT col2 + 40 AS col2 FROM tab2 AS cor0
----
63
80
98

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2046
SELECT - 86 * - + COUNT( * ) + + COUNT( * ) * CAST( NULL AS SIGNED ) * + - 74 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2046
SELECT - 86 * - + COUNT ( * ) + + COUNT ( * ) * CAST ( NULL AS INTEGER ) * + - 74 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2047
SELECT * FROM tab1 WHERE + CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2047
SELECT * FROM tab1 WHERE + CAST ( col0 AS INTEGER ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= 85
----

query I rowsort
SELECT ALL + 57 + + - col0 FROM tab1
----
-28
-34
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2050
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) + + + MIN( DISTINCT + + col1 ) col1 FROM tab1
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2050
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) + + + MIN ( DISTINCT + + col1 ) col1 FROM tab1
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2051
SELECT CAST( NULL AS SIGNED ) AS col0, ( 4 ) FROM tab1 WHERE - col2 >= ( NULL )
----

skipif mysql # not compatible
query II rowsort label-2051
SELECT CAST ( NULL AS INTEGER ) AS col0, ( 4 ) FROM tab1 WHERE - col2 >= ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE + 22 < - - col1
----
15
81
47

query I rowsort
SELECT DISTINCT - 32 * - col1 + + 90 * - 23 * - 79 + - col1 - 4 AS col1 FROM tab1 AS cor0
----
163681
163960
164983

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 41 * + col1 + ( col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2054
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 41 * + col1 + ( col0 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT ALL + + 81 - + ( COUNT( * ) ) + + + MIN( + 72 ) FROM tab0 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL + + 81 - + ( COUNT ( * ) ) + + + MIN ( + 72 ) FROM tab0 AS cor0
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2056
SELECT col2 - CAST( + 53 AS SIGNED ) FROM tab1 AS cor0
----
15
43
6

skipif mysql # not compatible
query I rowsort label-2056
SELECT col2 - CAST ( + 53 AS INTEGER ) FROM tab1 AS cor0
----
15
43
6

query III rowsort
SELECT * FROM tab2 WHERE - col2 * col0 IN ( + + col2 - + 35 + - col1 * - 1 ) AND 47 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT ALL - + COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL - + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

query III rowsort
SELECT * FROM tab0 WHERE col0 + - col1 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - col1 * col0 col1 FROM tab2
----
-197120
-291450
-53958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + + 65 * - - 28 col2 FROM tab0 AS cor0
----
-158340
-176540
-27300

query I rowsort
SELECT ALL col1 * + + col0 AS col1 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT ALL 6 * - - col2 FROM tab1 AS cor0
----
354
408
576

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT DISTINCT - MIN( - - 46 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2064
SELECT DISTINCT - MIN ( - - 46 ) FROM tab2 AS cor0
----
-46

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 74 + col1 IS NULL
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT - col0 NOT IN ( - col0 )
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-2067
SELECT DISTINCT - - 46 * 49 AS col2, - MIN( ALL - col1 ) FROM tab0 AS cor0
----
2254
81

skipif mysql # not compatible
query II rowsort label-2067
SELECT DISTINCT - - 46 * 49 AS col2, - MIN ( ALL - col1 ) FROM tab0 AS cor0
----
2254
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 48 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT DISTINCT COUNT( DISTINCT - col2 ) FROM tab0 WHERE NOT - col2 NOT IN ( - 91, col1 * + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT COUNT ( DISTINCT - col2 ) FROM tab0 WHERE NOT - col2 NOT IN ( - 91, col1 * + col2 )
----
0

query II rowsort
SELECT ALL + col1 AS col0, + col2 * + col0 * - - 84 AS col2 FROM tab2
----
51
88872
67
365400
77
215040

query II rowsort
SELECT DISTINCT + col0 + - ( 27 ), - 43 FROM tab2 WHERE NOT NULL NOT BETWEEN + 76 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2073
SELECT + + 3 DIV 87 + - 40 + + + col1 AS col1 FROM tab2 AS cor0
----
11
27
37

skipif mysql # not compatible
query I rowsort label-2073
SELECT + + 3 / 87 + - 40 + + + col1 AS col1 FROM tab2 AS cor0
----
11
27
37

query I rowsort
SELECT ALL - - col1 * - 75 * + col0 - col0 FROM tab1 AS cor0
----
-31960
-320866
-53601

query II rowsort
SELECT DISTINCT col1 AS col1, col2 * - + col0 * - col1 * + col0 FROM tab2 AS cor0
----
51
2482068
67
21858750
77
12615680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2076
SELECT - - COUNT( * ) DIV 33 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2076
SELECT - - COUNT ( * ) / 33 FROM tab0 cor0
----
0

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NULL IN ( + col2 ) AND NOT ( + 6 ) BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT ALL - + SUM( - 25 ) AS col0 FROM tab0 cor0
----
75

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL - + SUM ( - 25 ) AS col0 FROM tab0 cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT DISTINCT + - 87 + + MAX( ALL + col0 ) * 87 FROM tab2 AS cor0
----
6438

skipif mysql # not compatible
query I rowsort label-2079
SELECT DISTINCT + - 87 + + MAX ( ALL + col0 ) * 87 FROM tab2 AS cor0
----
6438

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NULL IN ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2081
SELECT DISTINCT - 28 + + + col0 / col0 * + CAST( + 63 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE col2 + + 22 = ( + col0 + + col2 )
----

skipif mysql # not compatible
query I rowsort label-2081
SELECT DISTINCT - 28 + + + col0 / col0 * + CAST ( + 63 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE col2 + + 22 = ( + col0 + + col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2082
SELECT DISTINCT + col2 DIV - - 38 AS col0, + 97 + - 88 AS col2 FROM tab1 AS cor0
----
1
9
2
9

skipif mysql # not compatible
query II rowsort label-2082
SELECT DISTINCT + col2 / - - 38 AS col0, + 97 + - 88 AS col2 FROM tab1 AS cor0
----
1
9
2
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 75 * + 3 NOT BETWEEN ( + 24 ) AND NULL
----

query I rowsort
SELECT 26 FROM tab0 AS cor0 WHERE NULL IN ( col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 12 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2086
SELECT ALL CAST( - + MAX( + - col1 ) AS SIGNED ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL CAST ( - + MAX ( + - col1 ) AS INTEGER ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT - 69 - - 93 AS col0 FROM tab0
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT - COUNT( * ) + - - 82 FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-2088
SELECT - COUNT ( * ) + - - 82 FROM tab1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2089
SELECT CAST( NULL AS SIGNED ) / + 2 + + 77 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2089
SELECT CAST ( NULL AS INTEGER ) / + 2 + + 77 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2090
SELECT - COUNT( + + CAST( + col0 AS SIGNED ) ) + - ( + COUNT( * ) ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-2090
SELECT - COUNT ( + + CAST ( + col0 AS INTEGER ) ) + - ( + COUNT ( * ) ) FROM tab2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT + COUNT( * ) + + - MIN( ALL 42 ) FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-2091
SELECT + COUNT ( * ) + + - MIN ( ALL 42 ) FROM tab0
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + + col1 + - ( 31 ) * - - col0 + + + col0 - - - col1 col0 FROM tab2
----
-4032
-6806
-7926

query I rowsort
SELECT - 70 + + col2 FROM tab1
----
-11
-2
26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 <= ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 + - col1 ) BETWEEN NULL AND + col1 + - col1
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2096
SELECT + COUNT( - - CAST( - col0 AS SIGNED ) ) AS col1 FROM tab2 cor0 WHERE col0 IN ( + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2096
SELECT + COUNT ( - - CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab2 cor0 WHERE col0 IN ( + + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT MAX( DISTINCT + col2 ) - 94 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-2097
SELECT MAX ( DISTINCT + col2 ) - 94 FROM tab0
----
5

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 65 col0 FROM tab1 AS cor0
----
65
65
65

query I rowsort
SELECT DISTINCT - 17 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-17

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > 77 + - + col1
----

query I rowsort
SELECT ALL + 8 * + col0 FROM tab2
----
368
512
600

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col1 < + 85 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT MIN( + ( - col1 ) ) * - 80 FROM tab0
----
6480

skipif mysql # not compatible
query I rowsort label-2104
SELECT MIN ( + ( - col1 ) ) * - 80 FROM tab0
----
6480

query I rowsort
SELECT DISTINCT - 39 * - col0 AS col1 FROM tab1
----
1989
3315
3549

query I rowsort
SELECT ALL - - 53 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT MIN( + - col1 ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2107
SELECT MIN ( + - col1 ) AS col0 FROM tab0
----
-81

query I rowsort
SELECT ALL - 45 * - col2 FROM tab0
----
2115
4455
450

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2109
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2109
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2110
SELECT DISTINCT + + CAST( col0 AS SIGNED ) DIV - + 84 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2110
SELECT DISTINCT + + CAST ( col0 AS INTEGER ) / - + 84 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 71 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 99 AS col1, col0 AS col2 FROM tab1
----
99
51
99
85
99
91

query I rowsort
SELECT ALL col2 * + 63 AS col2 FROM tab1
----
3717
4284
6048

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT DISTINCT + col0 + ( + + 97 ) AS col2 FROM tab1
----
148
182
188

query I rowsort
SELECT col1 + + + col0 AS col0 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT + SUM( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0 WHERE 71 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2117
SELECT + SUM ( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0 WHERE 71 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 * 3 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - ( col0 ) * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2120
SELECT ALL col1 DIV - CAST( + ( + col1 ) AS SIGNED ) + - ( + col2 ) FROM tab1
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-2120
SELECT ALL col1 / - CAST ( + ( + col1 ) AS INTEGER ) + - ( + col2 ) FROM tab1
----
-60
-69
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT DISTINCT - 6 + + MAX( DISTINCT - 76 ) FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-2121
SELECT DISTINCT - 6 + + MAX ( DISTINCT - 76 ) FROM tab0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2122
SELECT * FROM tab0 WHERE CAST( NULL AS SIGNED ) * + 13 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2122
SELECT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) * + 13 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = + + ( - col0 )
----

query I rowsort
SELECT DISTINCT - 72 - col1 AS col0 FROM tab0 AS cor0
----
-153
-73
-93

query I rowsort
SELECT DISTINCT + - col2 - + col2 AS col2 FROM tab2 AS cor0
----
-116
-46
-80

query II rowsort
SELECT ALL + col2 - - 71, - 10 AS col0 FROM tab1 AS cor0
----
130
-10
139
-10
167
-10

query I rowsort
SELECT DISTINCT - 35 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2128
SELECT CAST( NULL AS SIGNED ) * + col2 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2128
SELECT CAST ( NULL AS INTEGER ) * + col2 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + 67 AS col1 FROM tab1 WHERE NOT - - ( - 83 ) <> col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 col0 FROM tab1 AS cor0
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT + MIN( 60 ) AS col1 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-2131
SELECT + MIN ( 60 ) AS col1 FROM tab1 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT + - SUM( 36 ) FROM tab2 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-2132
SELECT + - SUM ( 36 ) FROM tab2 AS cor0
----
-108

query III rowsort
SELECT + col1, + col2 - - col0 AS col0, - col1 AS col2 FROM tab2 AS cor0
----
9 values hashing to 470818bdec7d229bff29960375398088

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 = + 7
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 28 AS col0, 60 AS col0 FROM tab2
----
28
60

query I rowsort
SELECT ( 33 ) AS col1 FROM tab2
----
33
33
33

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * + 52 / - 20 IN ( - col2, + col1, - col0, - 84 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 52 + - - 50 AS col2 FROM tab2
----
102
102
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT ALL - MAX( + ( + 62 ) ) FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL - MAX ( + ( + 62 ) ) FROM tab0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT 73 NOT IN ( 20 )
----
0

skipif mysql # not compatible
query I rowsort label-2140
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 73 NOT IN ( 20 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 + + col2 col2 FROM tab1 AS cor0
----
58
67
95

query I rowsort
SELECT ( + + 41 ) FROM tab2
----
41
41
41

query II rowsort
SELECT DISTINCT - col0 + + + col2, col0 FROM tab2
----
-17
75
-23
46
-24
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT ALL - MIN( col1 ) + COUNT( * ) AS col1 FROM tab1 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL - MIN ( col1 ) + COUNT ( * ) AS col1 FROM tab1 cor0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2145
SELECT - CAST( + - col0 AS SIGNED ), 59 AS col2 FROM tab1 AS cor0
----
51
59
85
59
91
59

skipif mysql # not compatible
query II rowsort label-2145
SELECT - CAST ( + - col0 AS INTEGER ), 59 AS col2 FROM tab1 AS cor0
----
51
59
85
59
91
59

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 NOT BETWEEN ( NULL ) AND + 37 + + col2 * + col1 * col1 + + - col0
----

query II rowsort
SELECT DISTINCT - + col0 * + col0, col2 FROM tab1 AS cor0
----
-2601
96
-7225
59
-8281
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 * col2 col0 FROM tab1
----
295
340
480

query I rowsort
SELECT 15 + + - col1 FROM tab2
----
-36
-52
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-2150
SELECT ALL + 45 DIV col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL + 45 / col2 FROM tab2
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2151
SELECT DISTINCT + 52 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2151
SELECT DISTINCT + 52 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - 53 AS col0 FROM tab1 WHERE + 68 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT COUNT( * ) + ( MIN( 78 ) ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-2153
SELECT COUNT ( * ) + ( MIN ( 78 ) ) FROM tab1
----
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= - ( + col2 )
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - 29 * - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT - 31 * + COUNT( * ) col2 FROM tab1 cor0
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2156
SELECT - 31 * + COUNT ( * ) col2 FROM tab1 cor0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2157
SELECT DISTINCT - 47 AS col2, 25 / - CAST( NULL AS SIGNED ) * + - ( + col2 ) AS col0 FROM tab2 AS cor0 WHERE NULL IN ( - col0 * col0 )
----

skipif mysql # not compatible
query II rowsort label-2157
SELECT DISTINCT - 47 AS col2, 25 / - CAST ( NULL AS INTEGER ) * + - ( + col2 ) AS col0 FROM tab2 AS cor0 WHERE NULL IN ( - col0 * col0 )
----

query II rowsort
SELECT DISTINCT + col2 AS col0, col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2159
SELECT ALL - col1 + + + CAST( NULL AS SIGNED ) + - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL - col1 + + + CAST ( NULL AS INTEGER ) + - col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2160
SELECT + + col2 * col0 + - col0 AS col0, + col2 - + 8 + - + col2 DIV ( + - 44 ) * - - 28 AS col1 FROM tab0 cor0
----
690
67
783
2
9506
147

skipif mysql # not compatible
query II rowsort label-2160
SELECT + + col2 * col0 + - col0 AS col0, + col2 - + 8 + - + col2 / ( + - 44 ) * - - 28 AS col1 FROM tab0 cor0
----
690
67
783
2
9506
147

onlyif mysql # DIV for integer division: 
query I rowsort label-2161
SELECT ALL + + col2 * 31 DIV - + col1 FROM tab1 cor0
----
-212
-365
-44

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL + + col2 * 31 / - + col1 FROM tab1 cor0
----
-212
-365
-44

query II rowsort
SELECT + col1 AS col0, col0 AS col2 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT + - 53 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * + 86 AS col0 FROM tab0 AS cor0
----
1806
6966
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2165
SELECT + - col2 - - col0 * + col0 / - col0 * + - col0 * - col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE + 5 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2165
SELECT + - col2 - - col0 * + col0 / - col0 * + - col0 * - col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE + 5 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + - 57 + 18 * ( - col1 ) AS col2 FROM tab0
----
-1596
-456
-76

query I rowsort
SELECT ALL + + 79 + - 43 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT DISTINCT - 17 + - + 19 + + COUNT( * ) + 15 * - 24 FROM tab2 AS cor0
----
-393

skipif mysql # not compatible
query I rowsort label-2168
SELECT DISTINCT - 17 + - + 19 + + COUNT ( * ) + 15 * - 24 FROM tab2 AS cor0
----
-393

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 * + 58 + - col0 col1 FROM tab2 AS cor0
----
-3584
-3602
-3613

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 68 - + 59 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - col2 + 92 FROM tab2 cor0
----
115
132
150

query I rowsort
SELECT DISTINCT col2 * + + col0 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT DISTINCT - + 26 - 53 FROM tab0 AS cor0
----
-79

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 99 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col0 - + - 72 FROM tab2 AS cor0
----
-3
26
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT DISTINCT 53 * - ( + - SUM( 90 ) ) * SUM( + + 10 ) AS col1 FROM tab2
----
429300

skipif mysql # not compatible
query I rowsort label-2176
SELECT DISTINCT 53 * - ( + - SUM ( 90 ) ) * SUM ( + + 10 ) AS col1 FROM tab2
----
429300

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 ) > + col1 + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2178
SELECT * FROM tab2 WHERE - 27 * + col1 / col1 + - col1 * - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2178
SELECT * FROM tab2 WHERE - 27 * + col1 / col1 + - col1 * - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 51 * - - ( - 87 ) AS col2 FROM tab2
----
-4437
-4437
-4437

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT ALL SUM( - ( - col0 ) ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL SUM ( - ( - col0 ) ) AS col0 FROM tab0
----
199

query II rowsort
SELECT DISTINCT + 82 * col0 AS col1, - col1 FROM tab0 AS cor0
----
1230
-81
7134
-21
7954
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > 62 * col0
----

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT 21 * - col0 IS NOT NULL )
----
-14
-47
-5

query I rowsort
SELECT ALL col1 * + - col2 + + + 62 + col1 + + - col2 FROM tab0 AS cor0
----
-135
-137
-3711

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL >= NULL
----

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT - SUM( DISTINCT col1 ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2187
SELECT - SUM ( DISTINCT col1 ) FROM tab1 cor0
----
-66

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + + 76 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2190
SELECT ALL CAST( NULL AS SIGNED ) AS col1, - COUNT( * ) - - + 34 AS col0 FROM tab1 AS cor0
----
NULL
31

skipif mysql # not compatible
query II rowsort label-2190
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) - - + 34 AS col0 FROM tab1 AS cor0
----
NULL
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT DISTINCT - ( + 35 ) + - 60 + + + COUNT( * ) FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT - ( + 35 ) + - 60 + + + COUNT ( * ) FROM tab2
----
-92

query I rowsort
SELECT ALL 23 * 87 + + 76 FROM tab1
----
2077
2077
2077

query I rowsort
SELECT DISTINCT col1 + + + 93 AS col0 FROM tab0
----
114
174
94

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 ALL * FROM tab2 AS cor0 WHERE NOT col1 + + col1 = col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( + - 63 ) FROM tab2
----
-63

query II rowsort
SELECT ALL + 24 AS col0, 95 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 5f6948045df5f450b85bd732adbcb447

query III rowsort
SELECT * FROM tab0 WHERE - - col1 <= NULL
----

query I rowsort
SELECT DISTINCT - col0 * + 4 * + - col0 - + col2 AS col2 FROM tab0
----
30266
37537
853

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - ( - 97 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 76 + 4 FROM tab2 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT ALL - - MIN( - col1 ) - - - 17 AS col0 FROM tab1 cor0
----
-64

skipif mysql # not compatible
query I rowsort label-2202
SELECT ALL - - MIN ( - col1 ) - - - 17 AS col0 FROM tab1 cor0
----
-64

query I rowsort
SELECT DISTINCT + - 55 - - - col1 FROM tab0 AS cor0
----
-136
-56
-76

query I rowsort
SELECT + 65 + 66 + - col2 - col1 FROM tab2 AS cor0
----
14
57
6

query I rowsort
SELECT + col0 + 94 - 45 FROM tab1 AS cor0
----
100
134
140

query I rowsort
SELECT + ( + 82 ) * - col2 * 78 FROM tab1 AS cor0 WHERE col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * ( + col1 ) col0 FROM tab1
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2208
SELECT + CAST( col2 AS SIGNED ) * + col0 AS col2 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-2208
SELECT + CAST ( col2 AS INTEGER ) * + col0 AS col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT col0 * + + 68 FROM tab2
----
3128
4352
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT + 17 * - - MIN( ALL - col2 ) FROM tab0
----
-1683

skipif mysql # not compatible
query I rowsort label-2210
SELECT + 17 * - - MIN ( ALL - col2 ) FROM tab0
----
-1683

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 >= + 7
----

query I rowsort
SELECT - ( + - 57 ) FROM tab2
----
57
57
57

query I rowsort
SELECT 2 * ( + + 31 ) FROM tab0
----
62
62
62

query III rowsort
SELECT * FROM tab2 WHERE NOT + 34 <> NULL
----

query I rowsort
SELECT - col2 * - 61 FROM tab1
----
3599
4148
5856

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT ALL COUNT( * ) * - 63 AS col1 FROM tab1 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL COUNT ( * ) * - 63 AS col1 FROM tab1 AS cor0
----
-189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2217
SELECT + 54 / + col2 AS col1 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2217
SELECT + 54 / + col2 AS col1 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL - 81 + - 55 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-136
-136
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT ALL - - SUM( - 80 ) FROM tab1 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-2219
SELECT ALL - - SUM ( - 80 ) FROM tab1 AS cor0
----
-240

query III rowsort
SELECT * FROM tab1 WHERE NOT - 10 >= NULL
----

query I rowsort
SELECT ALL + 32 * ( + col1 ) FROM tab2 cor0
----
1632
2144
2464

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 + - col0 col1 FROM tab2 AS cor0
----
-136
-154
-165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2223
SELECT ALL - + CAST( 27 AS SIGNED ) FROM tab0 AS cor0
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL - + CAST ( 27 AS INTEGER ) FROM tab0 AS cor0
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT COUNT( * ) + + - 14 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-2224
SELECT COUNT ( * ) + + - 14 FROM tab2
----
-11

query I rowsort
SELECT ALL ( + + ( + + col1 ) ) AS col1 FROM tab2
----
51
67
77

query I rowsort
SELECT col2 + + col2 * - - 72 AS col2 FROM tab2
----
1679
2920
4234

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT MIN( DISTINCT - + col0 ) + - 70 FROM tab2 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2227
SELECT MIN ( DISTINCT - + col0 ) + - 70 FROM tab2 WHERE NULL >= NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 55 + col2 FROM tab0
----
-45
-8
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT DISTINCT ( - COUNT( ALL - 64 ) ) + - COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-2230
SELECT DISTINCT ( - COUNT ( ALL - 64 ) ) + - COUNT ( * ) FROM tab1
----
-6

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 * + + col0 / - 6 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 * col0 col0 FROM tab0
----
-178
-7559
-9310

query II rowsort
SELECT DISTINCT 21, - 79 + + col1 + - + col2 AS col0 FROM tab0
----
21
-177
21
-45
21
-68

query I rowsort
SELECT ALL col2 + - 67 AS col2 FROM tab2
----
-27
-44
-9

query I rowsort
SELECT ALL + col0 + + col1 * - + col0 FROM tab0
----
-1200
-1740
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2236
SELECT ALL * FROM tab1 WHERE NOT 94 >= + CAST( 49 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2236
SELECT ALL * FROM tab1 WHERE NOT 94 >= + CAST ( 49 AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2237
SELECT DISTINCT 88 DIV + COUNT( * ) FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-2237
SELECT DISTINCT 88 / + COUNT ( * ) FROM tab1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT + COUNT( * ) FROM tab1 WHERE col2 <= - col0 + 25
----
0

skipif mysql # not compatible
query I rowsort label-2238
SELECT + COUNT ( * ) FROM tab1 WHERE col2 <= - col0 + 25
----
0

query III rowsort
SELECT * FROM tab1 WHERE - - col2 - + col1 NOT IN ( + 48 * + col2 * + + 12, 90, - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, col1 col0 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query I rowsort
SELECT ALL - + 56 AS col1 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 + - 85 + 29 IS NULL
----

query I rowsort
SELECT ALL ( col1 ) - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT ALL ( + COUNT( 86 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL ( + COUNT ( 86 ) ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2246
SELECT DISTINCT CAST( NULL AS SIGNED ), - col2 * 26 * + col0 AS col0 FROM tab0
----
NULL
-18330
NULL
-22620
NULL
-249678

skipif mysql # not compatible
query II rowsort label-2246
SELECT DISTINCT CAST ( NULL AS INTEGER ), - col2 * 26 * + col0 AS col0 FROM tab0
----
NULL
-18330
NULL
-22620
NULL
-249678

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2247
SELECT DISTINCT - + 3 + - 27 / + SUM( + CAST( + 23 AS SIGNED ) ) FROM tab2 WHERE NOT - - col2 <= + - ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2247
SELECT DISTINCT - + 3 + - 27 / + SUM ( + CAST ( + 23 AS INTEGER ) ) FROM tab2 WHERE NOT - - col2 <= + - ( - col1 )
----
NULL

query I rowsort
SELECT - 48 * + col2 * - col1 AS col0 FROM tab2
----
147840
186528
56304

query II rowsort
SELECT - ( - + ( col1 ) ) AS col2, col2 + - col1 AS col1 FROM tab1
----
14
82
47
21
5
54

query I rowsort
SELECT + - col0 * + ( col0 ) FROM tab1 WHERE NOT NULL BETWEEN - 45 AND + 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT - 33 * - - COUNT( * ) FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-2251
SELECT - 33 * - - COUNT ( * ) FROM tab2
----
-99

query I rowsort
SELECT + - 28 * - col2 + col0 + 40 FROM tab0 AS cor0
----
1371
2909
407

query I rowsort
SELECT + + ( + + 21 ) AS col2 FROM tab0 AS cor0
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2254
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + 47 * + col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 47 * + col0 FROM tab0
----
NULL

query I rowsort
SELECT + ( - 58 ) * + - col2 * - 75 FROM tab2 AS cor0
----
-100050
-174000
-252300

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT + COUNT( * ) * COUNT( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2257
SELECT + COUNT ( * ) * COUNT ( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
9

query II rowsort
SELECT DISTINCT col2 AS col1, + col1 AS col2 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT ALL + 26 * + col2 FROM tab1 AS cor0
----
1534
1768
2496

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col1 NOT BETWEEN + - 20 AND NULL
----

query I rowsort
SELECT + col0 + col2 * + 1 AS col2 FROM tab2
----
104
133
69

query I rowsort
SELECT ALL - col1 + col2 + - - col1 AS col1 FROM tab1
----
59
68
96

query I rowsort
SELECT - col2 + - 90 + - col0 FROM tab2
----
-159
-194
-223

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT + ( 63 ) IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT DISTINCT + COUNT( * ) + - 49 FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-2265
SELECT DISTINCT + COUNT ( * ) + - 49 FROM tab1
----
-46

query I rowsort
SELECT DISTINCT + col0 + - col2 + + - 35 FROM tab0
----
-37
-67
42

query I rowsort
SELECT + col0 * - col0 + + + col1 FROM tab1
----
-2587
-7220
-8234

onlyif mysql # aggregate syntax: 
query II rowsort label-2268
SELECT - 17 + + + COUNT( * ), - MAX( ALL + col1 ) * + COUNT( * ) * + MAX( col0 ) - ( + + 43 ) AS col0 FROM tab2 AS cor0
----
-14
-17368

skipif mysql # not compatible
query II rowsort label-2268
SELECT - 17 + + + COUNT ( * ), - MAX ( ALL + col1 ) * + COUNT ( * ) * + MAX ( col0 ) - ( + + 43 ) AS col0 FROM tab2 AS cor0
----
-14
-17368

query I rowsort
SELECT ALL col0 * + 18 * + + col1 FROM tab2 cor0
----
42228
88704
90450

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 73 * + col1 * - + col0 + 46 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL > - 79
----
0

skipif mysql # not compatible
query I rowsort label-2272
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL > - 79
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2273
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 81 + ( + 49 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2273
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 81 + ( + 49 ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 10 - 43 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-33

query II rowsort
SELECT - - col0 AS col1, - 99 AS col2 FROM tab2 AS cor0
----
46
-99
64
-99
75
-99

query II rowsort
SELECT ALL col1, + col0 AS col2 FROM tab2 AS cor0 WHERE NULL <> col0
----

query II rowsort
SELECT DISTINCT - - 40 AS col1, col1 AS col0 FROM tab1 AS cor0
----
40
14
40
47
40
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT + COUNT( ALL - col2 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2278
SELECT + COUNT ( ALL - col2 ) FROM tab1 cor0
----
3

query II rowsort
SELECT - col1, col2 AS col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query II rowsort
SELECT ( + - col2 ) AS col2, 86 AS col0 FROM tab2
----
-23
86
-40
86
-58
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT COUNT( - + 36 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2281
SELECT COUNT ( - + 36 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT DISTINCT - MIN( ALL - - 47 ) FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT - MIN ( ALL - - 47 ) FROM tab0
----
-47

query II rowsort
SELECT DISTINCT + + 23 * + col0 AS col1, 77 FROM tab0 WHERE NOT col2 * col2 * - col2 IS NULL
----
2001
77
2231
77
345
77

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + + + col1 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2285
SELECT CAST( col0 AS SIGNED ) * col1 AS col2 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-2285
SELECT CAST ( col0 AS INTEGER ) * col1 AS col2 FROM tab1
----
425
4277
714

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 + - 8 <> NULL
----

query I rowsort
SELECT + 24 * - + col2 AS col2 FROM tab0
----
-1128
-2376
-240

query II rowsort
SELECT DISTINCT 42 * + + 63 AS col0, col0 - + 27 + - col2 + - col1 + - col1 FROM tab2
----
2646
-106
2646
-144
2646
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2289
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT DISTINCT + MIN( col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT + MIN ( col0 ) AS col0 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT MIN( ALL - 68 ) AS col0 FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-2291
SELECT MIN ( ALL - 68 ) AS col0 FROM tab2
----
-68

query I rowsort
SELECT ALL - 42 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2293
SELECT ALL + 17 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL + 17 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 col0 FROM tab2 AS cor0 WHERE col1 * - - 98 * - 84 * - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2295
SELECT DISTINCT - 43 - col0 - + col0 AS col0 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN - + CAST( NULL AS SIGNED ) AND + col2
----
-213
-225

skipif mysql # not compatible
query I rowsort label-2295
SELECT DISTINCT - 43 - col0 - + col0 AS col0 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN - + CAST ( NULL AS INTEGER ) AND + col2
----
-213
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT DISTINCT - MIN( DISTINCT - col0 ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-2296
SELECT DISTINCT - MIN ( DISTINCT - col0 ) FROM tab1 cor0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2297
SELECT DISTINCT - COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2297
SELECT DISTINCT - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2298
SELECT - + col2 DIV CAST( - 94 AS SIGNED ) + - col0 * - col0 + + col0 FROM tab2 AS cor0
----
2162
4160
5700

skipif mysql # not compatible
query I rowsort label-2298
SELECT - + col2 / CAST ( - 94 AS INTEGER ) + - col0 * - col0 + + col0 FROM tab2 AS cor0
----
2162
4160
5700

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT - + ( COUNT( * ) ) + + ( + COUNT( * ) ) + - MAX( DISTINCT + 78 ) col2 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2299
SELECT - + ( COUNT ( * ) ) + + ( + COUNT ( * ) ) + - MAX ( DISTINCT + 78 ) col2 FROM tab2 AS cor0
----
-78

query I rowsort
SELECT + col0 + - col2 AS col0 FROM tab0 cor0
----
-2
-32
77

query I rowsort
SELECT col2 + col2 * + - col1 AS col1 FROM tab1 AS cor0
----
-1248
-236
-3128

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT ALL + COUNT( * ) * + 58 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
174

skipif mysql # not compatible
query I rowsort label-2302
SELECT ALL + COUNT ( * ) * + 58 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
174

query I rowsort
SELECT ALL 95 * - col2 AS col1 FROM tab1
----
-5605
-6460
-9120

query I rowsort
SELECT ALL col1 + - - col0 AS col0 FROM tab2
----
141
142
97

query II rowsort
SELECT DISTINCT + col2 * col0 AS col0, col1 * + 73 FROM tab0
----
705
5913
870
1533
9603
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT ALL 54 * + - 41 + - + COUNT( * ) FROM tab2
----
-2217

skipif mysql # not compatible
query I rowsort label-2306
SELECT ALL 54 * + - 41 + - + COUNT ( * ) FROM tab2
----
-2217

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2307
SELECT ALL * FROM tab1 WHERE + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2307
SELECT ALL * FROM tab1 WHERE + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 86 * col2 * - 56 + 81 AS col0 FROM tab1
----
284225
327569
462417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2309
SELECT DISTINCT CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) - - col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) - - col0 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2310
SELECT DISTINCT CAST( + - 12 AS SIGNED ) * + col0 + 82 FROM tab2
----
-470
-686
-818

skipif mysql # not compatible
query I rowsort label-2310
SELECT DISTINCT CAST ( + - 12 AS INTEGER ) * + col0 + 82 FROM tab2
----
-470
-686
-818

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT ALL - ( COUNT( * ) ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL - ( COUNT ( * ) ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 > + - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2313
SELECT - MAX( col2 ), - MAX( ALL CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-2313
SELECT - MAX ( col2 ), - MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT ALL + COUNT( * ) * + 52 + - + 46 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
113

skipif mysql # not compatible
query I rowsort label-2314
SELECT ALL + COUNT ( * ) * + 52 + - + 46 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2315
SELECT + - SUM( DISTINCT CAST( NULL AS SIGNED ) ) / 52 + 34 * + COUNT( * ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2315
SELECT + - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) / 52 + 34 * + COUNT ( * ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT DISTINCT SUM( 67 ) AS col1 FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-2316
SELECT DISTINCT SUM ( 67 ) AS col1 FROM tab2
----
201

query II rowsort
SELECT col0, - 77 + col2 AS col2 FROM tab2
----
46
-54
64
-37
75
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 * + - 34 * col0 col1 FROM tab0
----
121278
135218
20910

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT SUM( ALL + 17 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2319
SELECT SUM ( ALL + 17 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL + col2 + + col2 + + col1 AS col2 FROM tab0 WHERE NOT + - 40 IS NULL
----
175
199
41

query I rowsort
SELECT DISTINCT 86 + 89 * + col2 FROM tab0
----
4269
8897
976

query II rowsort
SELECT DISTINCT col0, 67 * - 9 - + col0 AS col2 FROM tab2
----
46
-649
64
-667
75
-678

query I rowsort
SELECT ( - + 75 ) FROM tab0 AS cor0
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT DISTINCT - + 57 * + + 44 * - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
22572

skipif mysql # not compatible
query I rowsort label-2324
SELECT DISTINCT - + 57 * + + 44 * - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
22572

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2325
SELECT - 29 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2325
SELECT - 29 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - 64 + - 77 * col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col0 * - - col0 + + col0 AS col2 FROM tab0 AS cor0
----
-210
-7482
-9312

query I rowsort
SELECT - - col0 * - + 66 AS col2 FROM tab0 AS cor0
----
-5742
-6402
-990

query I rowsort
SELECT + col2 FROM tab1 cor0 WHERE NULL < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) col1 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2330
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) col1 FROM tab2
----
-9

query II rowsort
SELECT - col1 + + + 16 - - + col2, - 99 AS col0 FROM tab1
----
37
-99
70
-99
98
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE 51 * + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * 78 + col1 AS col2 FROM tab1
----
4607
5351
7502

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 44 col0, col1 * + 91 FROM tab0
----
-44
1911
-44
7371
-44
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2335
SELECT col1 DIV - ( + col0 ) + - col1 AS col0 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2335
SELECT col1 / - ( + col0 ) + - col1 AS col0 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL col1 - - 14 AS col0 FROM tab1
----
19
28
61

query I rowsort
SELECT ALL - 97 * - + col2 AS col1 FROM tab2 WHERE + col0 > - col1 - - col2
----
2231
3880
5626

onlyif mysql # DIV for integer division: 
query I rowsort label-2338
SELECT DISTINCT - 12 DIV col2 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2338
SELECT DISTINCT - 12 / col2 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
0

query II rowsort
SELECT ALL - col0 AS col2, - 82 FROM tab2 AS cor0
----
-46
-82
-64
-82
-75
-82

query I rowsort
SELECT ALL col0 * - col1 * + col0 AS col2 FROM tab1 AS cor0
----
-36125
-36414
-389207

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + + 81 * + 0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2342
SELECT DISTINCT + 73 DIV col1 AS col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT + 73 / col1 AS col0 FROM tab2 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT - + SUM( - 16 ) AS col2 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-2343
SELECT - + SUM ( - 16 ) AS col2 FROM tab0 AS cor0
----
48

query I rowsort
SELECT DISTINCT - col0 - col2 FROM tab1 WHERE + - col2 BETWEEN ( + col2 ) / - col0 + + col1 * col2 - - ( 51 ) * - + ( + 44 ) AND NULL
----

query II rowsort
SELECT - ( + col0 ), col0 AS col1 FROM tab2
----
-46
46
-64
64
-75
75

query I rowsort
SELECT col1 * ( - col0 ) AS col0 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col0 - + 83 = col0 / + col2 + col2 + + 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * ( + + 24 ) FROM tab1
----
1416
1632
2304

query I rowsort
SELECT ALL - ( 44 ) FROM tab1 cor0
----
-44
-44
-44

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * + col2 = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2351
SELECT + - SUM( ALL + + col0 ) DIV - COUNT( - col1 ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2351
SELECT + - SUM ( ALL + + col0 ) / - COUNT ( - col1 ) FROM tab0 AS cor0
----
66

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 < ( - ( col0 ) )
----

query I rowsort
SELECT ALL + col1 * + col1 * - 37 + + col1 AS col0 FROM tab2
----
-166026
-219296
-96186

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT DISTINCT + - 86 * - COUNT( * ) + - COUNT( ALL + col0 ) * - COUNT( * ) FROM tab1 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-2354
SELECT DISTINCT + - 86 * - COUNT ( * ) + - COUNT ( ALL + col0 ) * - COUNT ( * ) FROM tab1 AS cor0
----
267

query I rowsort
SELECT + - col2 + col0 * + + col0 * col1 FROM tab2 AS cor0
----
107893
315352
376817

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2356
SELECT ALL 72 + COUNT( * ) * - CAST( NULL AS SIGNED ) * + 83 + + ( + 56 ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL 72 + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + 83 + + ( + 56 ) FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2357
SELECT DISTINCT col2 / + 26 + col0 + - + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN + col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2357
SELECT DISTINCT col2 / + 26 + col0 + - + CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN + col0 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2358
SELECT - - col2 AS col1 FROM tab1 AS cor0 WHERE - col1 <> ( 10 ) + + ( 45 ) * + CAST( - col1 AS DECIMAL )
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2358
SELECT - - col2 AS col1 FROM tab1 AS cor0 WHERE - col1 <> ( 10 ) + + ( 45 ) * + CAST ( - col1 AS REAL )
----
59
68
96

query I rowsort
SELECT + col0 + - col2 * - col1 FROM tab1 cor0
----
1395
3287
380

query I rowsort
SELECT + 67 * - col2 + - ( - 23 ) FROM tab1 AS cor0
----
-3930
-4533
-6409

query I rowsort
SELECT ( 37 ) * - col0 FROM tab2
----
-1702
-2368
-2775

query I rowsort
SELECT DISTINCT + ( + col1 ) AS col2 FROM tab2 WHERE NOT - 54 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < - + 76 - + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2364
SELECT + COUNT( * ) - - CAST( - 91 AS SIGNED ) AS col0 FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-2364
SELECT + COUNT ( * ) - - CAST ( - 91 AS INTEGER ) AS col0 FROM tab1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT + COUNT( ALL + col1 ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2365
SELECT + COUNT ( ALL + col1 ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT + 49 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2367
SELECT ALL * FROM tab2 WHERE NOT + 38 + + col1 <= - - 18 + - + col0 + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2367
SELECT ALL * FROM tab2 WHERE NOT + 38 + + col1 <= - - 18 + - + col0 + + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT ALL + 64 * COUNT( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL + 64 * COUNT ( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
192

query I rowsort
SELECT DISTINCT col1 * - 23 AS col2 FROM tab0 AS cor0
----
-1863
-23
-483

query I rowsort
SELECT 89 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 * - + col1 + col1 FROM tab0 AS cor0
----
-1134
-1806
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2372
SELECT ALL 83 DIV - + ( col2 ) + - - col1 * col0 AS col0 FROM tab2 AS cor0
----
2343
4926
5024

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL 83 / - + ( col2 ) + - - col1 * col0 AS col0 FROM tab2 AS cor0
----
2343
4926
5024

onlyif mysql # DIV for integer division: 
query I rowsort label-2373
SELECT - 58 DIV - col0 AS col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2373
SELECT - 58 / - col0 AS col1 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2374
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= + ( + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2374
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= + ( + + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - col1 * - - ( - 12 ) FROM tab1
----
168
564
60

query I rowsort
SELECT - 21 AS col0 FROM tab1 WHERE NOT + - col1 * - - 68 - + col1 >= col2
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT COUNT( ALL - + 68 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2377
SELECT COUNT ( ALL - + 68 ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2378
SELECT ALL 60 DIV col0 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2378
SELECT ALL 60 / col0 AS col1 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT ALL + ( - + 56 ) + COUNT( * ) FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-2379
SELECT ALL + ( - + 56 ) + COUNT ( * ) FROM tab0
----
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - - col1 col0 FROM tab2
----
141
142
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2381
SELECT DISTINCT ( col2 ) DIV + + 54 FROM tab0 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2381
SELECT DISTINCT ( col2 ) / + + 54 FROM tab0 cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT DISTINCT + + ( + COUNT( * ) ) * COUNT( * ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2382
SELECT DISTINCT + + ( + COUNT ( * ) ) * COUNT ( * ) FROM tab1 cor0
----
9

query I rowsort
SELECT DISTINCT 77 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-2384
SELECT COUNT( * ) - + + 12 AS col1, + 31 AS col0 FROM tab1 AS cor0
----
-9
31

skipif mysql # not compatible
query II rowsort label-2384
SELECT COUNT ( * ) - + + 12 AS col1, + 31 AS col0 FROM tab1 AS cor0
----
-9
31

query I rowsort
SELECT DISTINCT - - 20 * + col2 * 72 - + 48 FROM tab2 cor0
----
33072
57552
83472

query I rowsort
SELECT 4 * - 79 + + col0 * + + col1 + 20 FROM tab0
----
-199
1531
919

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT ( - col0 ) IS NULL
----
-10
-47
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT ALL + COUNT( DISTINCT 95 ) AS col0 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL + COUNT ( DISTINCT 95 ) AS col0 FROM tab2 cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 37 + + 25 + + col0 + - col0 - ( + col0 ) * - + col2 * - - col1 * 64 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2391
SELECT DISTINCT - 81 AS col0, COUNT( * ) * + - 97 AS col0 FROM tab1 cor0
----
-81
-291

skipif mysql # not compatible
query II rowsort label-2391
SELECT DISTINCT - 81 AS col0, COUNT ( * ) * + - 97 AS col0 FROM tab1 cor0
----
-81
-291

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 / col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT COUNT( * ) FROM tab2 WHERE NOT 69 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2393
SELECT COUNT ( * ) FROM tab2 WHERE NOT 69 IS NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2394
SELECT ALL CAST( NULL AS DECIMAL ) * 80 + + 46 col1 FROM tab0 WHERE NULL BETWEEN col1 AND - col2 + + 48
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2394
SELECT ALL CAST ( NULL AS REAL ) * 80 + + 46 col1 FROM tab0 WHERE NULL BETWEEN col1 AND - col2 + + 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT + COUNT( * ) * 79 FROM tab1 WHERE NULL IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2395
SELECT + COUNT ( * ) * 79 FROM tab1 WHERE NULL IN ( col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2396
SELECT DISTINCT + CAST( NULL AS SIGNED ) col2 FROM tab1 WHERE NOT ( - CAST( NULL AS SIGNED ) - col2 ) = NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2396
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col2 FROM tab1 WHERE NOT ( - CAST ( NULL AS INTEGER ) - col2 ) = NULL
----

query I rowsort
SELECT + col0 - 97 FROM tab2 WHERE NOT + col1 >= ( - 15 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2398
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT + col2 NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT + col2 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT + COUNT( - col2 ) * ( ( - COUNT( DISTINCT col2 ) ) * + 88 ) FROM tab1
----
-792

skipif mysql # not compatible
query I rowsort label-2399
SELECT + COUNT ( - col2 ) * ( ( - COUNT ( DISTINCT col2 ) ) * + 88 ) FROM tab1
----
-792

query I rowsort
SELECT + 63 + ( 53 + - col1 ) AS col2 FROM tab0
----
115
35
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT DISTINCT COUNT( * ) - 88 FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-2401
SELECT DISTINCT COUNT ( * ) - 88 FROM tab0
----
-85

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 * col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT COUNT( * ) * - ( - 64 ) col0 FROM tab2
----
192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2403
SELECT COUNT ( * ) * - ( - 64 ) col0 FROM tab2
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT ALL - COUNT( * ) FROM tab2 WHERE ( - col2 ) >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL - COUNT ( * ) FROM tab2 WHERE ( - col2 ) >= ( NULL )
----
0

query I rowsort
SELECT ALL - 86 + - 82 * - col0 FROM tab2
----
3686
5162
6064

query I rowsort
SELECT ALL + 9 * - 60 FROM tab1
----
-540
-540
-540

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT NULL BETWEEN 21 AND ( 73 )
----

query I rowsort
SELECT ( 79 ) * 57 FROM tab2 WHERE NOT NULL BETWEEN NULL AND 80
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( - col2 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2410
SELECT ALL CAST( 35 AS SIGNED ) + col1 FROM tab2
----
102
112
86

skipif mysql # not compatible
query I rowsort label-2410
SELECT ALL CAST ( 35 AS INTEGER ) + col1 FROM tab2
----
102
112
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT ALL + COUNT( * ) * 98 + + 51 AS col2 FROM tab1 cor0
----
345

skipif mysql # not compatible
query I rowsort label-2411
SELECT ALL + COUNT ( * ) * 98 + + 51 AS col2 FROM tab1 cor0
----
345

query I rowsort
SELECT - 12 * - col1 AS col2 FROM tab0 AS cor0
----
12
252
972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2413
SELECT DISTINCT MIN( ALL CAST( NULL AS SIGNED ) ) * ( SUM( - col2 ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT MIN ( ALL CAST ( NULL AS INTEGER ) ) * ( SUM ( - col2 ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2414
SELECT ALL CAST( NULL AS SIGNED ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2414
SELECT ALL CAST ( NULL AS INTEGER ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2415
SELECT DISTINCT + 22 * + 83 + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2415
SELECT DISTINCT + 22 * + 83 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( 24 ) NOT IN ( + 23 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT ALL + SUM( DISTINCT col0 ) - - 8 AS col2 FROM tab0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2417
SELECT ALL + SUM ( DISTINCT col0 ) - - 8 AS col2 FROM tab0 WHERE NOT col0 IS NOT NULL
----
NULL

query I rowsort
SELECT 40 * col0 AS col0 FROM tab2 WHERE col0 * - col0 BETWEEN + col1 AND - col2 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2419
SELECT DISTINCT + col0 + - col0 AS col1 FROM tab1 WHERE - 12 / CAST( col2 AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2419
SELECT DISTINCT + col0 + - col0 AS col1 FROM tab1 WHERE - 12 / CAST ( col2 AS INTEGER ) IS NOT NULL
----
0

query I rowsort
SELECT ALL col1 + + 88 * + col2 FROM tab0 cor0
----
4217
8713
901

query I rowsort
SELECT - col2 * + col2 + + 99 FROM tab2 AS cor0
----
-1501
-3265
-430

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 + col2 * - 56 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + 5 AS col2 FROM tab2 AS cor0 WHERE + 15 + col1 IN ( - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 - - 30 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT DISTINCT SUM( DISTINCT + 81 ) AS col1 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT SUM ( DISTINCT + 81 ) AS col1 FROM tab1 AS cor0
----
81

query I rowsort
SELECT DISTINCT + ( - col0 ) * 29 FROM tab0 AS cor0
----
-2523
-2813
-435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2427
SELECT - CAST( - col1 AS SIGNED ) * col0 FROM tab0 cor0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-2427
SELECT - CAST ( - col1 AS INTEGER ) * col0 FROM tab0 cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT ALL - 20 - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL - 20 - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-23

query I rowsort
SELECT ALL + 91 * + col1 AS col2 FROM tab0 AS cor0
----
1911
7371
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT ALL - + SUM( ALL - ( + col0 ) ) - + COUNT( * ) AS col2 FROM tab0 cor0
----
196

skipif mysql # not compatible
query I rowsort label-2430
SELECT ALL - + SUM ( ALL - ( + col0 ) ) - + COUNT ( * ) AS col2 FROM tab0 cor0
----
196

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col1 - + col0 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT + 28 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
28

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * - col1 IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 82 / col0 + - col1 BETWEEN NULL AND + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 7 - - 21 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT ALL COUNT( col1 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2436
SELECT ALL COUNT ( col1 ) col2 FROM tab1
----
3

query I rowsort
SELECT - 15 AS col0 FROM tab0 WHERE NOT + 25 IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab2 WHERE NOT col1 / col0 + - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2439
SELECT + col2 DIV + 58 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2439
SELECT + col2 / + 58 AS col2 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2440
SELECT - 49 DIV - ( COUNT( * ) ) FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-2440
SELECT - 49 / - ( COUNT ( * ) ) FROM tab0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2441
SELECT - + ( + SUM( CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2441
SELECT - + ( + SUM ( CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 * + 12 AS col0 FROM tab0 AS cor0
----
-12
-252
-972

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND 28
----

query II rowsort
SELECT ALL - col2, - col2 * - 6 * + col0 AS col1 FROM tab1
----
-59
30090
-68
37128
-96
29376

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT + MAX( 70 ) FROM tab2, tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-2445
SELECT + MAX ( 70 ) FROM tab2, tab1 AS cor0
----
70

query I rowsort
SELECT - + ( + 40 ) * col1 + + col1 * ( - col1 ) FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT ALL - - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL - - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2448
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2448
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) - col1 IS NULL
----

query I rowsort
SELECT ALL + 70 * + col2 AS col2 FROM tab1 AS cor0
----
4130
4760
6720

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > ( + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2451
SELECT ALL AVG ( + col2 ) / COUNT( * ) col1 FROM tab1 AS cor0 WHERE NOT CAST( + 13 AS SIGNED ) * col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2451
SELECT ALL AVG ( + col2 ) / COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT CAST ( + 13 AS INTEGER ) * col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT DISTINCT - SUM( + + col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2452
SELECT DISTINCT - SUM ( + + col0 ) AS col1 FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT - COUNT( 55 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2453
SELECT - COUNT ( 55 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( col0 * - ( ( + col1 ) ) ) <> ( NULL )
----

query I rowsort
SELECT ALL 67 * - col1 * - col1 FROM tab1
----
13132
148003
1675

query I rowsort
SELECT ALL + col1 * + 71 + + col0 - - - col0 * + 37 FROM tab2
----
1965
2057
3163

query I rowsort
SELECT col2 * col1 + + 44 AS col2 FROM tab2 WHERE ( NULL ) IS NULL
----
1217
3124
3930

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT DISTINCT + MAX( col2 ) + + - 54 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-2458
SELECT DISTINCT + MAX ( col2 ) + + - 54 FROM tab2
----
4

query I rowsort
SELECT 99 + - col0 FROM tab1
----
14
48
8

query I rowsort
SELECT 96 * col1 + - col0 FROM tab2
----
4850
6357
7328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2461
SELECT col2 AS col2 FROM tab1 WHERE + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2461
SELECT col2 AS col2 FROM tab1 WHERE + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT col2 * col1 * - col2 + + - 33 - + col2 * - 62 * col2 FROM tab2
----
-16853
-24033
5786

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2463
SELECT + CAST( NULL AS SIGNED ) / 24 + 57 * + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2463
SELECT + CAST ( NULL AS INTEGER ) / 24 + 57 * + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2464
SELECT col2 + - 9 - 47 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2464
SELECT col2 + - 9 - 47 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col2 col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2466
SELECT - col0 * 52 DIV - - col0 + - + col0 AS col0 FROM tab0 AS cor0
----
-139
-149
-67

skipif mysql # not compatible
query I rowsort label-2466
SELECT - col0 * 52 / - - col0 + - + col0 AS col0 FROM tab0 AS cor0
----
-139
-149
-67

query I rowsort
SELECT DISTINCT - col2 * - col0 * + col2 * + ( col1 ) AS col2 FROM tab1 cor0
----
1479425
19776848
6580224

onlyif mysql # DIV for integer division: 
query I rowsort label-2468
SELECT ALL - col2 DIV + 40 AS col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2468
SELECT ALL - col2 / + 40 AS col0 FROM tab0 AS cor0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + - 49 col1 FROM tab2
----
-2254
-3136
-3675

onlyif mysql # DIV for integer division: 
query I rowsort label-2470
SELECT DISTINCT - 59 DIV col2 col1 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2470
SELECT DISTINCT - 59 / col2 col1 FROM tab0
----
-1
-5
0

query I rowsort
SELECT ALL 67 * + + 22 + col1 * - + col1 AS col1 FROM tab2
----
-1127
-3015
-4455

query I rowsort
SELECT + + col0 - col0 * + col2 FROM tab1 AS cor0
----
-4845
-4930
-6097

query I rowsort
SELECT ALL + ( + + col2 ) * - + 99 - + col0 AS col2 FROM tab0 AS cor0
----
-1077
-4668
-9898

query I rowsort
SELECT + - 97 * + col0 * + col0 + col0 - + 27 AS col1 FROM tab2 AS cor0
----
-205233
-397275
-545577

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT ALL - ( - 24 ) + 57 + - COUNT( * ) * + - MAX( + col1 ) FROM tab1 cor0
----
222

skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL - ( - 24 ) + 57 + - COUNT ( * ) * + - MAX ( + col1 ) FROM tab1 cor0
----
222

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 IN ( + + col2 * col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 * + col0 col1 FROM tab2 AS cor0
----
4140
5760
6750

query I rowsort
SELECT ALL + 84 * - - ( - + 0 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - ( + 24 ) * - col2 FROM tab2
----
1392
552
960

query I rowsort
SELECT ALL + + col0 FROM tab2 WHERE NOT + col0 - + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + 50 * + 78 * 89 + + col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT ALL MAX( + + col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL MAX ( + + col1 ) AS col0 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT - MAX( + + col0 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-75

skipif mysql # not compatible
query I rowsort label-2484
SELECT - MAX ( + + col0 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-75

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 40 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + ( 68 ) col0 FROM tab2 cor0
----
3128
4352
5100

query II rowsort
SELECT DISTINCT 47, col2 * - + col0 AS col1 FROM tab1 cor0
----
47
-4896
47
-5015
47
-6188

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) NOT IN ( ( col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2489
SELECT col2 DIV - 87 + + col1 + + + 99 DIV + col0 FROM tab0 AS cor0
----
1
22
87

skipif mysql # not compatible
query I rowsort label-2489
SELECT col2 / - 87 + + col1 + + + 99 / + col0 FROM tab0 AS cor0
----
1
22
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT ALL - SUM( + - col1 ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2490
SELECT ALL - SUM ( + - col1 ) AS col1 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT ALL + + COUNT( ALL 52 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL + + COUNT ( ALL 52 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT DISTINCT - MAX( - col2 ) + - - COUNT( * ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT - MAX ( - col2 ) + - - COUNT ( * ) FROM tab1
----
62

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( col1 / col1 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col1 + + 27 FROM tab1 AS cor0
----
32
41
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE + 56 BETWEEN - - col0 AND ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2495
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE + 56 BETWEEN - - col0 AND ( + col0 )
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 90 BETWEEN NULL AND + col1
----

query I rowsort
SELECT - + 40 + - + col2 * + - col2 * - col1 FROM tab1 AS cor0
----
-129064
-17445
-217368

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * - 13 / - col2 + col2 BETWEEN + 27 * - col0 + 50 AND 87
----
51
14
96

query I rowsort
SELECT + col1 * 72 * 12 + + 28 + + + ( - + col1 ) AS col0 FROM tab1 AS cor0
----
12110
40589
4343

query I rowsort
SELECT ALL + col1 * + - col0 - - + 47 AS col0 FROM tab0 AS cor0
----
-1168
-1780
-50

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col2 ) <= + col1 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col0, + col0 + - col1 AS col0 FROM tab2
----
-46
-5
-64
-13
-75
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2503
SELECT DISTINCT col1 + col1 * CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2503
SELECT DISTINCT col1 + col1 * CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col2 * col1 + col2 AS col0 FROM tab2
----
-1150
-3040
-3828

onlyif mysql # DIV for integer division: 
query II rowsort label-2505
SELECT 84 DIV - - col2 - - 0 * + 53, col1 FROM tab2 AS cor0
----
1
67
2
77
3
51

skipif mysql # not compatible
query II rowsort label-2505
SELECT 84 / - - col2 - - 0 * + 53, col1 FROM tab2 AS cor0
----
1
67
2
77
3
51

query I rowsort
SELECT ALL + + 57 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 1 BETWEEN + 82 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - + 33 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE - 64 IS NOT NULL
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # DIV for integer division: 
query I rowsort label-2510
SELECT - 55 DIV - 79 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2510
SELECT - 55 / - 79 AS col1 FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT - COUNT( + + col2 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2512
SELECT - COUNT ( + + col2 ) AS col1 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col2 + + col0 col1 FROM tab1 AS cor0 WHERE col1 < NULL
----

query I rowsort
SELECT DISTINCT - col1 * + 6 * - - 49 * - col1 AS col2 FROM tab1 AS cor0
----
57624
649446
7350

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 49 * + - col2 BETWEEN - 88 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2516
SELECT ALL + - col0 DIV col2 + + col2 AS col1 FROM tab0 AS cor0
----
2
47
99

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL + - col0 / col2 + + col2 AS col1 FROM tab0 AS cor0
----
2
47
99

query II rowsort
SELECT + col0 * - - col1 AS col2, + col1 FROM tab2 AS cor0 WHERE NOT ( - col0 * + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2518
SELECT - CAST( + col2 AS SIGNED ) * + - 48 FROM tab0 AS cor0
----
2256
4752
480

skipif mysql # not compatible
query I rowsort label-2518
SELECT - CAST ( + col2 AS INTEGER ) * + - 48 FROM tab0 AS cor0
----
2256
4752
480

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT DISTINCT + - COUNT( + + 66 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2519
SELECT DISTINCT + - COUNT ( + + 66 ) AS col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 78 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2521
SELECT ALL 1 * + - COUNT( ALL col2 ), MAX( DISTINCT 22 ) AS col1 FROM tab1
----
-3
22

skipif mysql # not compatible
query II rowsort label-2521
SELECT ALL 1 * + - COUNT ( ALL col2 ), MAX ( DISTINCT 22 ) AS col1 FROM tab1
----
-3
22

query I rowsort
SELECT DISTINCT col1 * - col2 * - col1 FROM tab2
----
237160
260362
59823

query I rowsort
SELECT ALL + ( - - 68 ) * + col2 AS col1 FROM tab1 cor0
----
4012
4624
6528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2524
SELECT - CAST( - - col1 AS SIGNED ) * col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-2524
SELECT - CAST ( - - col1 AS INTEGER ) * col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2525
SELECT + 23 AS col1, - col1 - - 19 + ( + ( CAST( + 58 AS SIGNED ) ) ) AS col1 FROM tab1 AS cor0
----
23
30
23
63
23
72

skipif mysql # not compatible
query II rowsort label-2525
SELECT + 23 AS col1, - col1 - - 19 + ( + ( CAST ( + 58 AS INTEGER ) ) ) AS col1 FROM tab1 AS cor0
----
23
30
23
63
23
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT 68 * + COUNT( * ) FROM tab1 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-2526
SELECT 68 * + COUNT ( * ) FROM tab1 AS cor0
----
204

query I rowsort
SELECT ALL + 21 * + - col1 AS col0 FROM tab2 AS cor0
----
-1071
-1407
-1617

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 75 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT 83 * + 23 IS NULL
----
-10
-47
-99

query II rowsort
SELECT DISTINCT - col0 + + col1, col1 FROM tab0
----
-66
21
-96
1
66
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2531
SELECT - MAX( + - 78 ) AS col2, + 55 FROM tab1
----
78
55

skipif mysql # not compatible
query II rowsort label-2531
SELECT - MAX ( + - 78 ) AS col2, + 55 FROM tab1
----
78
55

query I rowsort
SELECT col2 * + - 32 + - col0 FROM tab1 AS cor0
----
-1973
-2267
-3123

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2533
SELECT col1 / - col0 AS col2, col2 + col1 FROM tab2 cor0 WHERE col1 IN ( + CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query II rowsort label-2533
SELECT col1 / - col0 AS col2, col2 + col1 FROM tab2 cor0 WHERE col1 IN ( + CAST ( col2 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2534
SELECT ALL - col2 AS col2, - 91 + - - col0 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-2534
SELECT ALL - col2 AS col2, - 91 + - - col0 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

query I rowsort
SELECT ALL + ( - 30 ) AS col2 FROM tab0 AS cor0
----
-30
-30
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-2536
SELECT + col2, col2 DIV - 16 AS col0 FROM tab0 AS cor0
----
10
0
47
-2
99
-6

skipif mysql # not compatible
query II rowsort label-2536
SELECT + col2, col2 / - 16 AS col0 FROM tab0 AS cor0
----
10
0
47
-2
99
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2537
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-2537
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, - 64 FROM tab1 AS cor0
----
14
-64
47
-64
5
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 WHERE NOT - col0 <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2539
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT - col0 <> ( NULL )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + + 48 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( - - ( + - 7 ) ) + - 3 * col2 col0 FROM tab0
----
-16
-303
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2542
SELECT col0 + - CAST( - + 81 AS SIGNED ) AS col2 FROM tab0
----
168
178
96

skipif mysql # not compatible
query I rowsort label-2542
SELECT col0 + - CAST ( - + 81 AS INTEGER ) AS col2 FROM tab0
----
168
178
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2543
SELECT ALL - col1 DIV - col2 + + 39 + - col1 FROM tab1
----
-8
25
34

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL - col1 / - col2 + + 39 + - col1 FROM tab1
----
-8
25
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2544
SELECT DISTINCT MAX( ALL - CAST( - ( + col0 ) AS SIGNED ) ) - - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2544
SELECT DISTINCT MAX ( ALL - CAST ( - ( + col0 ) AS INTEGER ) ) - - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + - 97 NOT BETWEEN - 88 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 3 + - + col0 AS col0 FROM tab0
----
-100
-18
-90

query I rowsort
SELECT DISTINCT - col2 - + col2 AS col2 FROM tab0 AS cor0
----
-198
-20
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 - - col1 * + col0 col0 FROM tab0 AS cor0
----
1137
1749
19

query III rowsort
SELECT * FROM tab2 WHERE + ( + 12 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 4 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
4

query I rowsort
SELECT 16 * - - col0 AS col1 FROM tab2
----
1024
1200
736

query II rowsort
SELECT col2 * - col2 * - col0 * col2 AS col0, col1 AS col0 FROM tab0
----
1557345
81
87000
21
94119003
1

query I rowsort
SELECT DISTINCT 71 * - + col1 FROM tab0 cor0
----
-1491
-5751
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2554
SELECT ALL col0 / - - 97 - col0 * - CAST( NULL AS SIGNED ) - - ( + col0 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL col0 / - - 97 - col0 * - CAST ( NULL AS INTEGER ) - - ( + col0 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col0, 18 * - 77 FROM tab1 AS cor0
----
51
-1386
85
-1386
91
-1386

query I rowsort
SELECT DISTINCT col0 * col0 AS col2 FROM tab0 AS cor0 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT ( - + 35 ) FROM tab2
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-2558
SELECT DISTINCT - 64 * - + 94 AS col0, COUNT( * ) * ( - + 5 ) * - + 4 FROM tab0
----
6016
60

skipif mysql # not compatible
query II rowsort label-2558
SELECT DISTINCT - 64 * - + 94 AS col0, COUNT ( * ) * ( - + 5 ) * - + 4 FROM tab0
----
6016
60

query I rowsort
SELECT DISTINCT + col0 * - 49 FROM tab0
----
-4263
-4753
-735

query I rowsort
SELECT ALL - 70 * col2 FROM tab0
----
-3290
-6930
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT + SUM( - + col1 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-66

skipif mysql # not compatible
query I rowsort label-2561
SELECT + SUM ( - + col1 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 38 ) col0 FROM tab2 WHERE NOT col0 NOT IN ( + + col2, ( - - col1 ), - - col2 )
----

query I rowsort
SELECT ALL + col2 * + - 75 + - - col0 AS col0 FROM tab0 cor0
----
-3510
-663
-7328

onlyif mysql # DIV for integer division: 
query I rowsort label-2564
SELECT + col1 DIV - col2 + + - 63 FROM tab2 AS cor0
----
-64
-64
-65

skipif mysql # not compatible
query I rowsort label-2564
SELECT + col1 / - col2 + + - 63 FROM tab2 AS cor0
----
-64
-64
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-2565
SELECT col2 DIV - 92 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2565
SELECT col2 / - 92 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - - col1 col2 FROM tab2
----
28
37
9

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
-14
-47
-5

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NULL <> - - 79
----

query II rowsort
SELECT ALL - col2 AS col2, col0 AS col0 FROM tab0
----
-10
87
-47
15
-99
97

query II rowsort
SELECT DISTINCT - 9, + col1 FROM tab1 cor0
----
-9
14
-9
47
-9
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2571
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( CAST( + col2 AS SIGNED ) ) NOT BETWEEN NULL AND + 18
----

skipif mysql # not compatible
query III rowsort label-2571
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( CAST ( + col2 AS INTEGER ) ) NOT BETWEEN NULL AND + 18
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2572
SELECT ALL * FROM tab0 cor0 WHERE NOT + CAST( NULL AS SIGNED ) * 68 + - 31 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2572
SELECT ALL * FROM tab0 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * 68 + - 31 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2573
SELECT + col2 FROM tab0 AS cor0 WHERE - 93 BETWEEN NULL AND - - CAST( col2 AS SIGNED ) * - col1 + - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2573
SELECT + col2 FROM tab0 AS cor0 WHERE - 93 BETWEEN NULL AND - - CAST ( col2 AS INTEGER ) * - col1 + - + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2574
SELECT DISTINCT COUNT( * ) * + COUNT( * ) + + + COUNT( * ) + - - MAX( ALL - 11 ) AS col0, + COUNT( * ) FROM tab2 AS cor0
----
1
3

skipif mysql # not compatible
query II rowsort label-2574
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) + + + COUNT ( * ) + - - MAX ( ALL - 11 ) AS col0, + COUNT ( * ) FROM tab2 AS cor0
----
1
3

query I rowsort
SELECT ALL - col2 + - 52 AS col0 FROM tab1
----
-111
-120
-148

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 + + col0 >= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2577
SELECT - col1 - + ( CAST( NULL AS SIGNED ) ) + + ( + col0 ) / col2 * col1 + + col2 + - 94 + - - col0 * + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2577
SELECT - col1 - + ( CAST ( NULL AS INTEGER ) ) + + ( + col0 ) / col2 * col1 + + col2 + - 94 + - - col0 * + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT + ( ( - 13 ) ) - + COUNT( * ) FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-2578
SELECT + ( ( - 13 ) ) - + COUNT ( * ) FROM tab1 AS cor0
----
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - 19 col0 FROM tab0 AS cor0
----
-106
-116
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT 36 * + COUNT( * ) FROM tab1 AS cor0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2580
SELECT 36 * + COUNT ( * ) FROM tab1 AS cor0 WHERE + col0 IS NULL
----
0

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + - 28 AS col2, - col0 col0 FROM tab2 AS cor0
----
23
-46
39
-75
49
-64

query I rowsort
SELECT ALL - - col1 - - 32 AS col2 FROM tab2 AS cor0
----
109
83
99

query I rowsort
SELECT DISTINCT 4 * + + 98 FROM tab2
----
392

onlyif mysql # DIV for integer division: 
query I rowsort label-2585
SELECT + 63 DIV - col1 AS col0 FROM tab0 AS cor0
----
-3
-63
0

skipif mysql # not compatible
query I rowsort label-2585
SELECT + 63 / - col1 AS col0 FROM tab0 AS cor0
----
-3
-63
0

query I rowsort
SELECT DISTINCT - - col0 + - - ( - col0 ) + + ( + col1 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 15 * + col0 AND NULL
----

query I rowsort
SELECT DISTINCT 93 AS col1 FROM tab1 cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT DISTINCT 35 * - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-2588
SELECT DISTINCT 35 * - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT ( - - 87 ) * - - MAX( - - col0 ) AS col0 FROM tab1 cor0
----
7917

skipif mysql # not compatible
query I rowsort label-2589
SELECT ( - - 87 ) * - - MAX ( - - col0 ) AS col0 FROM tab1 cor0
----
7917

query II rowsort
SELECT + ( - - col2 ) AS col0, + col0 AS col2 FROM tab2 AS cor0
----
23
46
40
64
58
75

query I rowsort
SELECT DISTINCT 70 AS col0 FROM tab1 cor0
----
70

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) <= + ( col1 ) * + col1 + + - col2 * - 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT DISTINCT MAX( - - col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-2593
SELECT DISTINCT MAX ( - - col2 ) FROM tab0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 95 col0 FROM tab2
----
146
162
172

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT ALL COUNT( * ) * - + COUNT( * ) + + 86 AS col1 FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-2595
SELECT ALL COUNT ( * ) * - + COUNT ( * ) + + 86 AS col1 FROM tab1
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + 86 col2 FROM tab1 AS cor0
----
1204
4042
430

query I rowsort
SELECT ALL + - ( - - col1 ) FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT - col2 + - 4 AS col0 FROM tab1 AS cor0
----
-100
-63
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT + MAX( - col0 ) + 20 AS col0 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-2599
SELECT + MAX ( - col0 ) + 20 AS col0 FROM tab1 AS cor0
----
-31

query II rowsort
SELECT ALL - 41 AS col1, + 16 FROM tab1 AS cor0
----
-41
16
-41
16
-41
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2601
SELECT DISTINCT col1 + CAST( + 37 AS SIGNED ) + - ( - - col2 ) AS col1 FROM tab1
----
-17
-45
16

skipif mysql # not compatible
query I rowsort label-2601
SELECT DISTINCT col1 + CAST ( + 37 AS INTEGER ) + - ( - - col2 ) AS col1 FROM tab1
----
-17
-45
16

query I rowsort
SELECT - col0 * + + col0 AS col2 FROM tab2
----
-2116
-4096
-5625

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL + 35 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT ALL col1 + 5 + 39 AS col1 FROM tab0
----
125
45
65

query I rowsort
SELECT DISTINCT + 28 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
28

query I rowsort
SELECT + ( - + col0 ) * + + col2 AS col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2608
SELECT - CAST( - + 59 AS SIGNED ) FROM tab2 AS cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-2608
SELECT - CAST ( - + 59 AS INTEGER ) FROM tab2 AS cor0
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT - + ( - - COUNT( * ) ) FROM tab2 AS cor0 WHERE - col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2609
SELECT - + ( - - COUNT ( * ) ) FROM tab2 AS cor0 WHERE - col2 <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT DISTINCT - COUNT( * ) + - ( + 37 ) FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-2610
SELECT DISTINCT - COUNT ( * ) + - ( + 37 ) FROM tab0 AS cor0
----
-40

query I rowsort
SELECT DISTINCT + - col2 * + + col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT ALL + COUNT( * ) * - ( - 51 ) * - COUNT( * ) AS col0 FROM tab2
----
-459

skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL + COUNT ( * ) * - ( - 51 ) * - COUNT ( * ) AS col0 FROM tab2
----
-459

query I rowsort
SELECT DISTINCT + 82 + - col1 FROM tab2 WHERE NOT 85 + + col0 <> - + col2 * + col1 * - 22 + + 50 + - - 80
----

query I rowsort
SELECT - ( + - 84 ) + + 86 * - col2 + - 31 FROM tab0
----
-3989
-807
-8461

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT DISTINCT MIN( - ( + 38 ) ) + + COUNT( * ) - ( 59 ) + - 64 FROM tab0
----
-158

skipif mysql # not compatible
query I rowsort label-2615
SELECT DISTINCT MIN ( - ( + 38 ) ) + + COUNT ( * ) - ( 59 ) + - 64 FROM tab0
----
-158

query I rowsort
SELECT 11 + + 35 FROM tab1
----
46
46
46

query I rowsort
SELECT 27 + + 29 AS col0 FROM tab2
----
56
56
56

query III rowsort
SELECT * FROM tab1 WHERE - - ( ( - col0 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + col0 + - + col1 col0 FROM tab1 AS cor0
----
420
4230
700

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2620
SELECT ALL ( + col0 ) col0, - CAST( NULL AS SIGNED ) - 62 - - col0 AS col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2620
SELECT ALL ( + col0 ) col0, - CAST ( NULL AS INTEGER ) - 62 - - col0 AS col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 87 col2, col0 * + ( - 68 ) FROM tab1
----
87
-3468
87
-5780
87
-6188

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 33 IS NULL OR - - 52 >= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 16 AS col2, + col0 * col1 AS col0 FROM tab2 AS cor0
----
16
2346
16
4928
16
5025

query II rowsort
SELECT DISTINCT col0, ( - col1 ) FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT ALL - + MIN( + col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL - + MIN ( + col1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + 2 + col2 FROM tab0 AS cor0
----
101
12
49

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + ( - col2 ) - + 25 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT - ( 23 ) + COUNT( DISTINCT col1 ) AS col0 FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-2628
SELECT - ( 23 ) + COUNT ( DISTINCT col1 ) AS col0 FROM tab0
----
-20

query I rowsort
SELECT DISTINCT - col2 + + - ( + col2 ) + + + col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT 78 AS col2 FROM tab0 WHERE ( NULL ) <= NULL AND NULL IS NULL
----

query I rowsort
SELECT ALL col0 + + - 64 + + 91 - + - col1 * - 90 FROM tab0
----
-1776
-7248
34

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 12 = col1 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT ALL 90 * - 70 + MAX( 94 ) FROM tab0
----
-6206

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL 90 * - 70 + MAX ( 94 ) FROM tab0
----
-6206

onlyif mysql # DIV for integer division: 
query II rowsort label-2634
SELECT ALL + col0 + - col0 AS col1, col0 DIV 69 col0 FROM tab2
----
0
0
0
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2634
SELECT ALL + col0 + - col0 AS col1, col0 / 69 col0 FROM tab2
----
0
0
0
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT ALL + MAX( ALL + - col2 ) FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-10

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL + MAX ( ALL + - col2 ) FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-10

query I rowsort
SELECT - 71 * + col0 * - - 94 FROM tab0 AS cor0
----
-100110
-580638
-647378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2637
SELECT ALL - col0 FROM tab2 AS cor0 WHERE - CAST( + col0 AS SIGNED ) * + col0 IS NOT NULL
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL - col0 FROM tab2 AS cor0 WHERE - CAST ( + col0 AS INTEGER ) * + col0 IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2638
SELECT DISTINCT 6 + - COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT 6 + - COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) AS col1 FROM tab2
----
6

query I rowsort
SELECT DISTINCT 72 * - 57 FROM tab2
----
-4104

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT DISTINCT - 25 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-2640
SELECT DISTINCT - 25 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2641
SELECT ALL - col1 * ( - + col2 ) AS col1 FROM tab1 AS cor0 WHERE - 95 * + CAST( NULL AS SIGNED ) > - ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-2641
SELECT ALL - col1 * ( - + col2 ) AS col1 FROM tab1 AS cor0 WHERE - 95 * + CAST ( NULL AS INTEGER ) > - ( + col1 )
----

query I rowsort
SELECT + 13 * + + col2 FROM tab2 cor0
----
299
520
754

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 <> - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT ALL + 66 * - MIN( ALL + + col2 ) col2 FROM tab2 AS cor0
----
-1518

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2644
SELECT ALL + 66 * - MIN ( ALL + + col2 ) col2 FROM tab2 AS cor0
----
-1518

query I rowsort
SELECT ALL ( - 14 ) * 37 + 60 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-458
-458
-458

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2646
SELECT DISTINCT + + col2 - - CAST( NULL AS SIGNED ) + + 20, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2646
SELECT DISTINCT + + col2 - - CAST ( NULL AS INTEGER ) + + 20, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2647
SELECT DISTINCT - CAST( 8 AS SIGNED ) FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-2647
SELECT DISTINCT - CAST ( 8 AS INTEGER ) FROM tab1 AS cor0
----
-8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - 35 * + col1, + col2 * - - col2, - 67 - - col2, - - 90 / - - col1, - - 60 / + + 11 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2649
SELECT DISTINCT col1 DIV - col2 + ( col0 ) AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2649
SELECT DISTINCT col1 / - col2 + ( col0 ) AS col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2650
SELECT + 11 DIV + ( + + col1 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2650
SELECT + 11 / + ( + + col1 ) AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + ( + col1 ) - + ( - col2 ) <= NULL
----

query I rowsort
SELECT ALL col1 * - 93 * + 79 FROM tab0
----
-154287
-595107
-7347

query I rowsort
SELECT + - 61 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query II rowsort
SELECT 32 AS col1, ( - col0 ) AS col1 FROM tab2 cor0
----
32
-46
32
-64
32
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2655
SELECT + SUM( - col1 ) DIV + ( - 48 ) FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-2655
SELECT + SUM ( - col1 ) / + ( - 48 ) FROM tab2 AS cor0
----
4

query II rowsort
SELECT 95, 47 AS col0 FROM tab0 AS cor0
----
95
47
95
47
95
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2657
SELECT DISTINCT + + 49 DIV + - col0 AS col1 FROM tab0 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-2657
SELECT DISTINCT + + 49 / + - col0 AS col1 FROM tab0 AS cor0
----
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 30 + - 59 col0, col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT ALL col2 + 34 FROM tab2
----
57
74
92

query I rowsort
SELECT ALL - col0 * + col2 * - - col2 * col1 FROM tab0
----
-182700
-2683935
-950697

query II rowsort
SELECT ALL 73 AS col1, + ( + - 36 ) AS col0 FROM tab0
----
73
-36
73
-36
73
-36

query I rowsort
SELECT ALL col2 + - col2 * - - col2 AS col0 FROM tab1
----
-3422
-4556
-9120

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 * + 87 * + ( - 84 ) ) <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2664
SELECT + CAST( NULL AS SIGNED ) / ( + col0 ) + + - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2664
SELECT + CAST ( NULL AS INTEGER ) / ( + col0 ) + + - col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2665
SELECT ALL COUNT( * ) AS col2, ( 88 ) AS col1 FROM tab2
----
3
88

skipif mysql # not compatible
query II rowsort label-2665
SELECT ALL COUNT ( * ) AS col2, ( 88 ) AS col1 FROM tab2
----
3
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT COUNT( * ) + - + 81 FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-2666
SELECT COUNT ( * ) + - + 81 FROM tab2
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-2667
SELECT - 56 + - MIN( - + col1 ) - + 79 * + MAX( - 52 ) AS col0, ( - 95 ) FROM tab1
----
4099
-95

skipif mysql # not compatible
query II rowsort label-2667
SELECT - 56 + - MIN ( - + col1 ) - + 79 * + MAX ( - 52 ) AS col0, ( - 95 ) FROM tab1
----
4099
-95

query I rowsort
SELECT - + 32 + - col1 AS col1 FROM tab1 AS cor0
----
-37
-46
-79

query I rowsort
SELECT DISTINCT col1 + - col2 + - - col1 AS col2 FROM tab2 AS cor0
----
114
76
79

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 49 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2671
SELECT - SUM( CAST( - ( - - 27 ) AS SIGNED ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
243

skipif mysql # not compatible
query I rowsort label-2671
SELECT - SUM ( CAST ( - ( - - 27 ) AS INTEGER ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
243

query I rowsort
SELECT DISTINCT col2 + + 51 * + - 6 AS col1 FROM tab2
----
-248
-266
-283

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT NULL IS NOT NULL )
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT DISTINCT COUNT( * ) + - COUNT( + + 90 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2674
SELECT DISTINCT COUNT ( * ) + - COUNT ( + + 90 ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2675
SELECT DISTINCT + + 15 - - col2 + - - CAST( NULL AS SIGNED ) * + - col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT + + 15 - - col2 + - - CAST ( NULL AS INTEGER ) * + - col0 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - col2 + 17 FROM tab0 AS cor0
----
116
27
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2677
SELECT ALL + col2 AS col1 FROM tab1 AS cor0 WHERE - col2 + - 70 * + 50 * - 21 / CAST( + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2677
SELECT ALL + col2 AS col1 FROM tab1 AS cor0 WHERE - col2 + - 70 * + 50 * - 21 / CAST ( + col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + 40 - - - col2 FROM tab0 AS cor0
----
-59
-7
30

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL OR NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT + COUNT( * ) * - 21 + + - 24 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-2680
SELECT + COUNT ( * ) * - 21 + + - 24 FROM tab1 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT + + MIN( - 32 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2681
SELECT + + MIN ( - 32 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2682
SELECT ALL - CAST( - 32 AS SIGNED ) AS col0 FROM tab2
----
32
32
32

skipif mysql # not compatible
query I rowsort label-2682
SELECT ALL - CAST ( - 32 AS INTEGER ) AS col0 FROM tab2
----
32
32
32

query I rowsort
SELECT 70 * + ( col1 ) * + col2 FROM tab0
----
14700
266490
6930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2684
SELECT ALL col2 * + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL col2 * + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col2, + col0 + + col1 FROM tab0
----
10
108
47
96
99
98

query I rowsort
SELECT 11 * col2 AS col0 FROM tab0
----
1089
110
517

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 73 * + col0 * + ( - col1 ) col0 FROM tab2
----
-171258
-359744
-366825

query I rowsort
SELECT - col1 * - 18 AS col1 FROM tab2
----
1206
1386
918

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT DISTINCT - COUNT( * ) * - 91 FROM tab1 WHERE - col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT - COUNT ( * ) * - 91 FROM tab1 WHERE - col1 < NULL
----
0

query II rowsort
SELECT col1 AS col0, + 77 + col0 FROM tab1
----
14
128
47
168
5
162

query II rowsort
SELECT DISTINCT + - col2 * + col2 + + 14, - 13 AS col2 FROM tab0 AS cor0
----
-2195
-13
-86
-13
-9787
-13

query I rowsort
SELECT ALL + ( - 46 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + - col2 + - + col1 col2 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 ) > col0
----
85
5
59
91
47
68

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2696
SELECT ALL + + col2 DIV + 27 + - + 11 AS col0 FROM tab1 AS cor0
----
-8
-9
-9

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL + + col2 / + 27 + - + 11 AS col0 FROM tab1 AS cor0
----
-8
-9
-9

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab1 AS cor0 WHERE NOT 24 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 < NULL
----

query I rowsort
SELECT - col0 * 21 + + - col2 FROM tab2 AS cor0
----
-1384
-1633
-989

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE ( col2 ) = NULL
----

query I rowsort
SELECT DISTINCT + col0 + - - col0 AS col2 FROM tab2
----
128
150
92

query III rowsort
SELECT * FROM tab1 WHERE col0 > 10 * + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col2 FROM tab0 WHERE NULL <= + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2704
SELECT ALL col2 DIV - col2 + 68 col2 FROM tab0
----
67
67
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2704
SELECT ALL col2 / - col2 + 68 col2 FROM tab0
----
67
67
67

query I rowsort
SELECT - - 46 - + - col0 FROM tab1 WHERE - col0 <> NULL
----

query I rowsort
SELECT + 84 + - - 11 FROM tab2 AS cor0
----
95
95
95

query II rowsort
SELECT DISTINCT - col1 AS col0, - col0 AS col1 FROM tab2
----
-51
-46
-67
-75
-77
-64

query III rowsort
SELECT * FROM tab0 WHERE NULL > - 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT - 6 * COUNT( * ) - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-63

skipif mysql # not compatible
query I rowsort label-2709
SELECT - 6 * COUNT ( * ) - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-63

onlyif mysql # DIV for integer division: 
query II rowsort label-2710
SELECT - - ( - col0 ) col2, - col2 DIV - col1 FROM tab0 cor0
----
-15
0
-87
0
-97
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2710
SELECT - - ( - col0 ) col2, - col2 / - col1 FROM tab0 cor0
----
-15
0
-87
0
-97
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2711
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2711
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT + + MIN( ALL + - 32 ) FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-2712
SELECT + + MIN ( ALL + - 32 ) FROM tab1 AS cor0
----
-32

query II rowsort
SELECT 93, col1 FROM tab1 AS cor0
----
93
14
93
47
93
5

query I rowsort
SELECT + + ( + 59 ) FROM tab0 AS cor0
----
59
59
59

query II rowsort
SELECT DISTINCT - col0, col1 + col2 AS col2 FROM tab1 AS cor0
----
-51
110
-85
64
-91
115

query I rowsort
SELECT ALL - col2 + - col2 FROM tab1 cor0 WHERE NULL IS NULL
----
-118
-136
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2717
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT DISTINCT - MAX( ALL 75 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-2718
SELECT DISTINCT - MAX ( ALL 75 ) FROM tab2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2719
SELECT DISTINCT - CAST( - 61 AS SIGNED ) FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-2719
SELECT DISTINCT - CAST ( - 61 AS INTEGER ) FROM tab0
----
61

query I rowsort
SELECT - + col2 FROM tab0 WHERE NOT col2 NOT BETWEEN + col1 AND NULL
----

query I rowsort
SELECT 39 * - 84 FROM tab0
----
-3276
-3276
-3276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 90 col0 FROM tab0
----
-1350
-7830
-8730

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT SUM( 78 ) AS col1 FROM tab2
----
234

skipif mysql # not compatible
query I rowsort label-2723
SELECT SUM ( 78 ) AS col1 FROM tab2
----
234

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 42 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 57 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 97 IS NOT NULL
----

query I rowsort
SELECT + + col2 * - col1 + + 17 FROM tab1 AS cor0
----
-1327
-278
-3179

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2728
SELECT + col2, ( + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-2728
SELECT + col2, ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT ALL + COUNT( + - 84 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2729
SELECT ALL + COUNT ( + - 84 ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 + - 38 col2 FROM tab2
----
-25
-25
-25

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * ( + col0 ) IS NULL AND NOT NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - - ( - col2 ) col0 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT ALL - col1 + + 16 * + - 39 * - + 26 + ( - col2 ) FROM tab0
----
16096
16124
16193

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT DISTINCT + 63 * + + 90 + - + COUNT( * ) FROM tab1
----
5667

skipif mysql # not compatible
query I rowsort label-2734
SELECT DISTINCT + 63 * + + 90 + - + COUNT ( * ) FROM tab1
----
5667

onlyif mysql # DIV for integer division: 
query I rowsort label-2735
SELECT ALL col0 * - col1 + - col0 DIV + col0 + 62 + + + col2 AS col1 FROM tab0
----
-1107
-1756
63

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL col0 * - col1 + - col0 / + col0 + 62 + + + col2 AS col1 FROM tab0
----
-1107
-1756
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT - ( + - COUNT( * ) ) FROM tab2 WHERE NULL < + col0 * - 24
----
0

skipif mysql # not compatible
query I rowsort label-2736
SELECT - ( + - COUNT ( * ) ) FROM tab2 WHERE NULL < + col0 * - 24
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT 72 + + + 47 * - ( + + MIN( col1 ) ) AS col0 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-2737
SELECT 72 + + + 47 * - ( + + MIN ( col1 ) ) AS col0 FROM tab0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2738
SELECT COUNT( * ) + + CAST( AVG ( ALL + - 42 ) AS SIGNED ) + + - MIN( - - col0 ) * 57 FROM tab2
----
-2661

skipif mysql # not compatible
query I rowsort label-2738
SELECT COUNT ( * ) + + CAST ( AVG ( ALL + - 42 ) AS INTEGER ) + + - MIN ( - - col0 ) * 57 FROM tab2
----
-2661

query I rowsort
SELECT ALL col1 + - - 39 AS col1 FROM tab0
----
120
40
60

query I rowsort
SELECT - - 66 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
66
66
66

query I rowsort
SELECT - 94 * + col0 AS col2 FROM tab0 AS cor0
----
-1410
-8178
-9118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2742
SELECT ALL - ( + col2 ) + - - CAST( - + CAST( - col0 AS SIGNED ) AS SIGNED ) + + + col0 AS col1 FROM tab0 AS cor0
----
-17
164
95

skipif mysql # not compatible
query I rowsort label-2742
SELECT ALL - ( + col2 ) + - - CAST ( - + CAST ( - col0 AS INTEGER ) AS INTEGER ) + + + col0 AS col1 FROM tab0 AS cor0
----
-17
164
95

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( + 75, 39 * + col2 * col1 + col1 + - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT ALL - COUNT( * ) FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN 27 AND + 82
----
0

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL - COUNT ( * ) FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN 27 AND + 82
----
0

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NOT - ( - 40 ) <= NULL
----

query I rowsort
SELECT DISTINCT - col2 * 8 FROM tab0
----
-376
-792
-80

query I rowsort
SELECT - 25 AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL AND NOT col2 NOT BETWEEN NULL AND + + 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT DISTINCT - COUNT( 24 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2748
SELECT DISTINCT - COUNT ( 24 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT MAX( ALL 72 ) AS col1 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-2749
SELECT MAX ( ALL 72 ) AS col1 FROM tab2 AS cor0
----
72

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 96 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 48 * col1 * + - col1 FROM tab1
----
106032
1200
9408

query III rowsort
SELECT * FROM tab1 WHERE NOT 26 / + + col1 + 16 * 47 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 67 * + ( col1 ) AS col2 FROM tab2
----
3417
4489
5159

query III rowsort
SELECT * FROM tab0 WHERE NOT + 36 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col0, 71 AS col2 FROM tab2
----
46
71
64
71
75
71

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 66 IS NOT NULL
----

query I rowsort
SELECT - ( + 85 ) * + col1 FROM tab2
----
-4335
-5695
-6545

query I rowsort
SELECT - ( - 63 ) AS col2 FROM tab0 cor0
----
63
63
63

query II rowsort
SELECT ALL + + col0, - 9 AS col2 FROM tab1 AS cor0
----
51
-9
85
-9
91
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + col1 ) col0, + col2 FROM tab2
----
51
23
67
58
77
40

query II rowsort
SELECT + ( + col1 ), + col0 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT - - 52 * - 36 + - col2 FROM tab2 AS cor0 WHERE col0 + - col1 + 38 + + 9 IS NULL
----

query I rowsort
SELECT col1 / + col2 * - + col0 / + col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 + - + col1 * - + col0 AS col0 FROM tab2 AS cor0
----
2369
4968
5083

query I rowsort
SELECT + - col0 + - - col2 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT - 26 + - COUNT( * ) col1 FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2766
SELECT - 26 + - COUNT ( * ) col1 FROM tab2 AS cor0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2767
SELECT CAST( + + col2 AS SIGNED ) + + col0 * + - col0 + - 17 FROM tab2 AS cor0
----
-2110
-4073
-5584

skipif mysql # not compatible
query I rowsort label-2767
SELECT CAST ( + + col2 AS INTEGER ) + + col0 * + - col0 + - 17 FROM tab2 AS cor0
----
-2110
-4073
-5584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 76 col2 FROM tab2 AS cor0
----
-3496
-4864
-5700

query I rowsort
SELECT DISTINCT 2 * + col1 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT DISTINCT + COUNT( * ) + - - 21 + - 85 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-2770
SELECT DISTINCT + COUNT ( * ) + - - 21 + - 85 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-231

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT col1 / + col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * + col1 * ( - col1 ) FROM tab0
----
-1
-531441
-9261

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2773
SELECT 44, + 55 / - - CAST( NULL AS SIGNED ) * + col2 + - 30 AS col1 FROM tab2
----
44
NULL
44
NULL
44
NULL

skipif mysql # not compatible
query II rowsort label-2773
SELECT 44, + 55 / - - CAST ( NULL AS INTEGER ) * + col2 + - 30 AS col1 FROM tab2
----
44
NULL
44
NULL
44
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, ( + 95 ) FROM tab1
----
59
95
68
95
96
95

onlyif mysql # DIV for integer division: 
query II rowsort label-2775
SELECT + 19 DIV - - col1 * + col0 col0, 88 * + 62 AS col1 FROM tab2
----
0
5456
0
5456
0
5456

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2775
SELECT + 19 / - - col1 * + col0 col0, 88 * + 62 AS col1 FROM tab2
----
0
5456
0
5456
0
5456

onlyif mysql # DIV for integer division: 
query II rowsort label-2776
SELECT DISTINCT - col1 DIV col0 * col0 col2, - col2 AS col2 FROM tab2
----
-46
-23
-64
-40
0
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2776
SELECT DISTINCT - col1 / col0 * col0 col2, - col2 AS col2 FROM tab2
----
-46
-23
-64
-40
0
-58

query III rowsort
SELECT * FROM tab2 WHERE + + 0 IS NULL
----

query I rowsort
SELECT ALL + col1 + + ( - + ( col0 ) ) * col2 AS col0 FROM tab1
----
-4882
-5010
-6141

query II rowsort
SELECT ALL 0 * + + col1, col1 * + - col1 FROM tab0 WHERE + + col1 - - col0 IS NULL
----

query I rowsort
SELECT 42 AS col1 FROM tab1 WHERE NULL IS NULL
----
42
42
42

query I rowsort
SELECT DISTINCT + col1 + - + col1 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2782
SELECT DISTINCT - col0 DIV col0 + col1 AS col1 FROM tab2 AS cor0
----
50
66
76

skipif mysql # not compatible
query I rowsort label-2782
SELECT DISTINCT - col0 / col0 + col1 AS col1 FROM tab2 AS cor0
----
50
66
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT DISTINCT MAX( + 6 ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2783
SELECT DISTINCT MAX ( + 6 ) AS col0 FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2784
SELECT ALL col1 AS col2, CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-2784
SELECT ALL col1 AS col2, CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2785
SELECT - 53 + - + 15 / - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2785
SELECT - 53 + - + 15 / - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 col2 FROM tab2
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2787
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( + + col2 AS SIGNED ) + + col1 BETWEEN ( - + 84 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2787
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( + + col2 AS INTEGER ) + + col1 BETWEEN ( - + 84 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT DISTINCT + SUM( ALL ( - - col2 ) ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2788
SELECT DISTINCT + SUM ( ALL ( - - col2 ) ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT DISTINCT col2 / + + 34 * + 65 AS col1 FROM tab2 WHERE - - col2 = - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 65 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 67 FROM tab1 WHERE NOT + + 27 * - + 1 - - - col2 / - + col2 IS NULL
----
-67
-67
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT - 64 * MIN( col2 ) * - - COUNT( * ) AS col0 FROM tab0
----
-1920

skipif mysql # not compatible
query I rowsort label-2792
SELECT - 64 * MIN ( col2 ) * - - COUNT ( * ) AS col0 FROM tab0
----
-1920

onlyif mysql # aggregate syntax: 
query II rowsort label-2793
SELECT - 37 * - 90 AS col0, COUNT( * ) * MIN( col0 ) col2 FROM tab2 WHERE NOT col0 IS NULL
----
3330
138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2793
SELECT - 37 * - 90 AS col0, COUNT ( * ) * MIN ( col0 ) col2 FROM tab2 WHERE NOT col0 IS NULL
----
3330
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2794
SELECT + CAST( NULL AS SIGNED ) * - + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2794
SELECT + CAST ( NULL AS INTEGER ) * - + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 31 * + + 81 AS col1 FROM tab0
----
-2511
-2511
-2511

query II rowsort
SELECT ALL 96, 32 AS col0 FROM tab1
----
96
32
96
32
96
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT + 55 * + - SUM( DISTINCT - - 88 ) * - 99 FROM tab0 AS cor0
----
479160

skipif mysql # not compatible
query I rowsort label-2797
SELECT + 55 * + - SUM ( DISTINCT - - 88 ) * - 99 FROM tab0 AS cor0
----
479160

query I rowsort
SELECT ALL + ( - + ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 48 BETWEEN col0 + - 44 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 69 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT DISTINCT + 9 * + col2 FROM tab0 cor0
----
423
891
90

query I rowsort
SELECT + 93 - + + 15 FROM tab2 AS cor0
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - + ( + col2 ) col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab1 WHERE + col1 BETWEEN - 25 * col0 AND + 71
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE + col0 + + 99 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT ALL + - SUM( - 49 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
147

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL + - SUM ( - 49 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
147

query I rowsort
SELECT ALL - col0 + col1 * - 68 FROM tab1
----
-1003
-3287
-425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2808
SELECT DISTINCT - 8 - + col0 / col2 * col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2808
SELECT DISTINCT - 8 - + col0 / col2 * col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 * + 82 FROM tab1 cor0
----
4838
5576
7872

query II rowsort
SELECT DISTINCT col1 * + col1 - - 45 AS col2, - 88 FROM tab0 AS cor0
----
46
-88
486
-88
6606
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT + MIN( ALL 90 ) * - 10 AS col2 FROM tab1 AS cor0
----
-900

skipif mysql # not compatible
query I rowsort label-2811
SELECT + MIN ( ALL 90 ) * - 10 AS col2 FROM tab1 AS cor0
----
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT DISTINCT COUNT( DISTINCT - 9 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2812
SELECT DISTINCT COUNT ( DISTINCT - 9 ) FROM tab2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2813
SELECT ALL MAX( + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL MAX ( + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2814
SELECT DISTINCT COUNT( * ) DIV + 65 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2814
SELECT DISTINCT COUNT ( * ) / + 65 FROM tab0 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL > - col2 )
----

query I rowsort
SELECT + col1 * - col1 + + ( + col1 ) - + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2596
-4497
-5916

query I rowsort
SELECT ALL ( - col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 * col1 col2 FROM tab1
----
-1475
-150212
-18816

query I rowsort
SELECT ALL + ( 89 ) * - 79 AS col1 FROM tab2
----
-7031
-7031
-7031

query II rowsort
SELECT + ( col0 ) AS col0, col1 FROM tab1
----
51
14
85
5
91
47

query II rowsort
SELECT + col0 * + col0 AS col0, + 13 + - + 80 * + ( - ( + col0 ) ) + + - col2 FROM tab2
----
2116
3670
4096
5093
5625
5955

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT ALL 27 + COUNT( DISTINCT - 19 ) FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL 27 + COUNT ( DISTINCT - 19 ) FROM tab1
----
28

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT 18 + 2 IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT + - 16 AS col2 FROM tab2 AS cor0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-2825
SELECT 98 DIV - ( - 60 ) FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2825
SELECT 98 / - ( - 60 ) FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT ALL MAX( ALL - col2 ) + - - 19 AS col2 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-2826
SELECT ALL MAX ( ALL - col2 ) + - - 19 AS col2 FROM tab2
----
-4

query I rowsort
SELECT DISTINCT col2 + - + col2 - - col0 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL 60 + + ( ( + col1 ) ) FROM tab1
----
107
65
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2829
SELECT - CAST( NULL AS SIGNED ) + + col1 col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2829
SELECT - CAST ( NULL AS INTEGER ) + + col1 col0 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 50 * - col0 * - + col0 / col1 BETWEEN + col0 AND NULL
----

query I rowsort
SELECT + + 76 * - + 67 - 92 + + col2 AS col1 FROM tab1 AS cor0
----
-5088
-5116
-5125

query I rowsort
SELECT DISTINCT - + 24 * 34 FROM tab2 AS cor0
----
-816

query I rowsort
SELECT ALL + col2 - - + col1 + + 51 AS col1 FROM tab2 AS cor0
----
125
168
176

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col1 ) + + + col1 >= + + col0 * + + ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2835
SELECT * FROM tab2 cor0 WHERE CAST( NULL AS DECIMAL ) * + 34 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2835
SELECT * FROM tab2 cor0 WHERE CAST ( NULL AS REAL ) * + 34 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT ALL - + COUNT( * ) * + 60 AS col2 FROM tab1 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL - + COUNT ( * ) * + 60 AS col2 FROM tab1 AS cor0
----
-180

query I rowsort
SELECT - + col0 * col2 + - ( 33 ) AS col1 FROM tab2 AS cor0
----
-1091
-2593
-4383

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL <> ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT + - ( + COUNT( DISTINCT + col1 ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2839
SELECT + - ( + COUNT ( DISTINCT + col1 ) ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2840
SELECT ALL col2 + + CAST( - ( + col1 ) AS SIGNED ) FROM tab1
----
21
54
82

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL col2 + + CAST ( - ( + col1 ) AS INTEGER ) FROM tab1
----
21
54
82

query I rowsort
SELECT ALL - col1 + col0 + - col2 AS col2 FROM tab1
----
-24
-59
21

query I rowsort
SELECT DISTINCT + 3 * + col1 + - ( - 1 ) FROM tab0
----
244
4
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 * + col1 + + 45 col2 FROM tab2
----
2391
3127
3587

query I rowsort
SELECT + col2 - - 31 FROM tab2
----
54
71
89

query II rowsort
SELECT ALL + 55, - col0 AS col1 FROM tab0 cor0
----
55
-15
55
-87
55
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT ALL - 67 * + COUNT( * ) FROM tab0 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL - 67 * + COUNT ( * ) FROM tab0 AS cor0
----
-201

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2847
SELECT SUM( ALL - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT SUM ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT + ( ( - COUNT( DISTINCT + col0 ) ) ) * COUNT( * ) * - + COUNT( * ) + + MIN( 32 ) * - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 + col1 - + col0 * - col2 IS NULL
----
-69

skipif mysql # not compatible
query I rowsort label-2848
SELECT + ( ( - COUNT ( DISTINCT + col0 ) ) ) * COUNT ( * ) * - + COUNT ( * ) + + MIN ( 32 ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 + col1 - + col0 * - col2 IS NULL
----
-69

query I rowsort
SELECT ALL - ( 16 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT ( + col1 ) * + - 95 + 43 + + 97 AS col0 FROM tab0
----
-1855
-7555
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2851
SELECT ALL + + SUM( - 42 ) * - CAST( - COUNT( * ) AS DECIMAL ) / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2851
SELECT ALL + + SUM ( - 42 ) * - CAST ( - COUNT ( * ) AS REAL ) / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2852
SELECT - + col1 DIV + ( + 74 ) + 32 FROM tab0 AS cor0
----
31
32
32

skipif mysql # not compatible
query I rowsort label-2852
SELECT - + col1 / + ( + 74 ) + 32 FROM tab0 AS cor0
----
31
32
32

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN + ( - col2 ) * - + ( + + col1 ) AND + + 45
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2854
SELECT + + col2 DIV - + col0 AS col2, col0 * 67 FROM tab0 AS cor0
----
-1
6499
-3
1005
0
5829

skipif mysql # not compatible
query II rowsort label-2854
SELECT + + col2 / - + col0 AS col2, col0 * 67 FROM tab0 AS cor0
----
-1
6499
-3
1005
0
5829

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT - SUM( DISTINCT - 42 ) AS col0 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-2855
SELECT - SUM ( DISTINCT - 42 ) AS col0 FROM tab1 AS cor0
----
42

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * - + 29 / - - col2 - - - col1 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT + + MAX( - ( - - col1 ) ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2857
SELECT + + MAX ( - ( - - col1 ) ) FROM tab1 AS cor0
----
-5

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 60 <> - 74
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * + col1 * col0 AS col0 FROM tab2
----
119646
336675
379456

onlyif mysql # aggregate syntax: 
query II rowsort label-2860
SELECT ALL - 19, COUNT( * ) AS col0 FROM tab1 AS cor0
----
-19
3

skipif mysql # not compatible
query II rowsort label-2860
SELECT ALL - 19, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-19
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT DISTINCT - COUNT( * ) + COUNT( * ) + + COUNT( ALL - - 17 ) * + ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) + + COUNT ( ALL - - 17 ) * + ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2862
SELECT CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2862
SELECT CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 AND - 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT COUNT( * ) FROM tab2 WHERE NOT + 51 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2864
SELECT COUNT ( * ) FROM tab2 WHERE NOT + 51 <> NULL
----
0

query I rowsort
SELECT DISTINCT ( col2 ) * col2 AS col1 FROM tab1
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2866
SELECT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) < col2 * ( col0 * col2 )
----

skipif mysql # not compatible
query III rowsort label-2866
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) < col2 * ( col0 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT DISTINCT + COUNT( * ) * - 86 FROM tab1
----
-258

skipif mysql # not compatible
query I rowsort label-2867
SELECT DISTINCT + COUNT ( * ) * - 86 FROM tab1
----
-258

query I rowsort
SELECT DISTINCT + ( 27 ) * - 21 AS col2 FROM tab0
----
-567

query III rowsort
SELECT * FROM tab1 WHERE - 95 / 61 = NULL
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT NULL >= + ( - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2871
SELECT 4 + + col2 DIV - col2 AS col0 FROM tab0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-2871
SELECT 4 + + col2 / - col2 AS col0 FROM tab0
----
3
3
3

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 >= - 97 + 80
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2873
SELECT DISTINCT - COUNT( * ) DIV - MIN( - col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2873
SELECT DISTINCT - COUNT ( * ) / - MIN ( - col2 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2874
SELECT DISTINCT 81 DIV COUNT( * ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-2874
SELECT DISTINCT 81 / COUNT ( * ) FROM tab2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2875
SELECT CAST( NULL AS SIGNED ) / COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2875
SELECT CAST ( NULL AS INTEGER ) / COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2876
SELECT * FROM tab2 WHERE NOT ( - CAST( col0 AS DECIMAL ) * col1 ) NOT IN ( + col0 * 40 )
----

skipif mysql # not compatible
query III rowsort label-2876
SELECT * FROM tab2 WHERE NOT ( - CAST ( col0 AS REAL ) * col1 ) NOT IN ( + col0 * 40 )
----

query I rowsort
SELECT col0 + - 49 * + col2 FROM tab2
----
-1081
-1896
-2767

onlyif mysql # DIV for integer division: 
query I rowsort label-2878
SELECT DISTINCT col2 DIV col0 + ( col1 + + ( ( - ( col2 ) ) ) ) AS col0 FROM tab1
----
-21
-54
-81

skipif mysql # not compatible
query I rowsort label-2878
SELECT DISTINCT col2 / col0 + ( col1 + + ( ( - ( col2 ) ) ) ) AS col0 FROM tab1
----
-21
-54
-81

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 * - 83 ) IN ( - 13 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT - 49 * + COUNT( * ) FROM tab0
----
-147

skipif mysql # not compatible
query I rowsort label-2880
SELECT - 49 * + COUNT ( * ) FROM tab0
----
-147

onlyif mysql # DIV for integer division: 
query I rowsort label-2881
SELECT DISTINCT 94 DIV 4 col0 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2881
SELECT DISTINCT 94 / 4 col0 FROM tab2
----
23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2882
SELECT DISTINCT ( + ( + CAST( NULL AS DECIMAL ) ) ) + col2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2882
SELECT DISTINCT ( + ( + CAST ( NULL AS REAL ) ) ) + col2 AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT + COUNT( ALL col2 ) * + 56 col0 FROM tab2
----
168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2883
SELECT + COUNT ( ALL col2 ) * + 56 col0 FROM tab2
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT - 39 * MIN( - 8 ) FROM tab0
----
312

skipif mysql # not compatible
query I rowsort label-2884
SELECT - 39 * MIN ( - 8 ) FROM tab0
----
312

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT ALL COUNT( * ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL COUNT ( * ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT - col0 + - col2 AS col1 FROM tab0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT 56 - - col0 AS col1 FROM tab2
----
102
120
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2888
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) * col1 <> + col0
----

skipif mysql # not compatible
query I rowsort label-2888
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) * col1 <> + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = ( + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < - 57
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 58 - - col0 IN ( 43 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 54 + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 > - col2 / 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT + COUNT( * ) * ( - 90 * - MAX( 21 ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
17010

skipif mysql # not compatible
query I rowsort label-2895
SELECT + COUNT ( * ) * ( - 90 * - MAX ( 21 ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
17010

query I rowsort
SELECT col0 * - ( + 51 ) FROM tab1
----
-2601
-4335
-4641

query I rowsort
SELECT DISTINCT - 16 AS col2 FROM tab0 cor0 CROSS JOIN tab0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT ALL + 77 * - COUNT( * ) col2 FROM tab2
----
-231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2898
SELECT ALL + 77 * - COUNT ( * ) col2 FROM tab2
----
-231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 23 col0 FROM tab1 AS cor0
----
23
23
23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + 98 IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2901
SELECT DISTINCT + + col0 DIV CAST( col0 + 9 AS SIGNED ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2901
SELECT DISTINCT + + col0 / CAST ( col0 + 9 AS INTEGER ) FROM tab1 cor0
----
0

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT - col2 / 97 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2903
SELECT ALL SUM( - 60 ) DIV - COUNT( * ) FROM tab2 AS cor0 WHERE ( 14 * - col1 ) NOT BETWEEN - col0 AND col1
----
60

skipif mysql # not compatible
query I rowsort label-2903
SELECT ALL SUM ( - 60 ) / - COUNT ( * ) FROM tab2 AS cor0 WHERE ( 14 * - col1 ) NOT BETWEEN - col0 AND col1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2904
SELECT - 47 + + CAST( 10 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-2904
SELECT - 47 + + CAST ( 10 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT + 68 * COUNT( * ) + - COUNT( * ) FROM tab2 cor0
----
201

skipif mysql # not compatible
query I rowsort label-2905
SELECT + 68 * COUNT ( * ) + - COUNT ( * ) FROM tab2 cor0
----
201

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE NOT + col2 <> + col0
----

query I rowsort
SELECT + col1 + - 59 AS col0 FROM tab1 AS cor0
----
-12
-45
-54

query I rowsort
SELECT - - col1 + col0 * + col1 FROM tab1 cor0
----
430
4324
728

query I rowsort
SELECT DISTINCT + 42 * col2 FROM tab0 AS cor0 WHERE NOT - col1 * + 76 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT 46 * + MIN( DISTINCT col0 ) FROM tab0 AS cor0 WHERE NOT ( - 41 ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2910
SELECT 46 * + MIN ( DISTINCT col0 ) FROM tab0 AS cor0 WHERE NOT ( - 41 ) > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT ALL + MAX( ALL 14 ) FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL + MAX ( ALL 14 ) FROM tab0
----
14

query I rowsort
SELECT DISTINCT col1 * + + 27 FROM tab2
----
1377
1809
2079

query I rowsort
SELECT ALL ( - col1 ) + - col0 FROM tab2
----
-141
-142
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2914
SELECT DISTINCT col2 DIV + ( + col0 ) + + col1 AS col1 FROM tab1
----
15
47
5

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT col2 / + ( + col0 ) + + col1 AS col1 FROM tab1
----
15
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT ALL - 73 * - COUNT( * ) AS col1 FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL - 73 * - COUNT ( * ) AS col1 FROM tab1
----
219

query I rowsort
SELECT ALL - col2 + + - 15 - ( 86 ) * ( col2 * + ( col0 ) ) FROM tab0
----
-60692
-74845
-825972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2917
SELECT DISTINCT 62 + + CAST( col0 AS SIGNED ) * + col1 AS col1 FROM tab0
----
1277
159
1889

skipif mysql # not compatible
query I rowsort label-2917
SELECT DISTINCT 62 + + CAST ( col0 AS INTEGER ) * + col1 AS col1 FROM tab0
----
1277
159
1889

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT ALL MAX( col0 ) + COUNT( * ) * - 45 FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL MAX ( col0 ) + COUNT ( * ) * - 45 FROM tab0
----
-38

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 81 / col1 NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2920
SELECT ALL CAST( - 95 AS SIGNED ) DIV col1 + + 53 AS col0 FROM tab1 cor0
----
34
47
51

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL CAST ( - 95 AS INTEGER ) / col1 + + 53 AS col0 FROM tab1 cor0
----
34
47
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + + col0 ) col2 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT + - ( - 64 ) - - col0 FROM tab1 AS cor0
----
115
149
155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2923
SELECT ALL - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT + 96 * - col0 IS NOT NULL AND NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT + 96 * - col0 IS NOT NULL AND NULL IS NULL
----

query I rowsort
SELECT col1 + + + 6 AS col1 FROM tab0 AS cor0
----
27
7
87

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT DISTINCT + 79 * - col0 + - + col0 AS col0 FROM tab0
----
-1200
-6960
-7760

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 11 + + 50 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( - col2 ) * - col0 + col2 FROM tab0 AS cor0
----
752
880
9702

query I rowsort
SELECT DISTINCT - - col1 - + col2 * - - col0 AS col0 FROM tab2 AS cor0
----
-1007
-2483
-4283

query II rowsort
SELECT + + 90, 11 + - col2 - - 70 AS col2 FROM tab0 AS cor0
----
90
-18
90
34
90
71

query I rowsort
SELECT ALL + col2 * + - 14 + 19 * col1 FROM tab2 AS cor0
----
461
647
903

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT ALL + 22 - - COUNT( * ) FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-2933
SELECT ALL + 22 - - COUNT ( * ) FROM tab1 AS cor0
----
25

query II rowsort
SELECT - + col0 AS col1, ( + col2 ) AS col0 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT DISTINCT + 6 * col1 - + 16 - + col0 * col1 + col0 FROM tab1 AS cor0
----
-326
-3920
-595

query I rowsort
SELECT DISTINCT + + col0 * - + 10 AS col0 FROM tab0 AS cor0
----
-150
-870
-970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2937
SELECT + - 33 * + CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2937
SELECT + - 33 * + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
99

query I rowsort
SELECT ALL + 55 * 55 - - - col2 AS col0 FROM tab0 AS cor0
----
2926
2978
3015

query II rowsort
SELECT ALL - col2 AS col0, col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

query I rowsort
SELECT - - ( + + col2 ) AS col1 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col2 + col0 * col2 AND NULL
----

query I rowsort
SELECT DISTINCT + 32 AS col0 FROM tab0 WHERE NOT ( col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 60 + + 13 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 83 - - col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 80 AS col1 FROM tab1 WHERE 62 IN ( - col2 - + 79 )
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NOT + - ( - - col1 ) * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2947
SELECT - col2 * - + ( + col0 ) * 18 * - 48 - + CAST( col0 AS SIGNED ) col0 FROM tab0
----
-609135
-751767
-8297089

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2947
SELECT - col2 * - + ( + col0 ) * 18 * - 48 - + CAST ( col0 AS INTEGER ) col0 FROM tab0
----
-609135
-751767
-8297089

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 IN ( - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT - ( + SUM( - - 0 ) ) col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2949
SELECT - ( + SUM ( - - 0 ) ) col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE ( NOT + col2 >= NULL )
----

query I rowsort
SELECT DISTINCT + 67 + - col1 FROM tab0
----
-14
46
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 5 col2 FROM tab1 AS cor0
----
5
5
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 94 - - col1 < NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 / - + col0 * + col0 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT ALL SUM( DISTINCT + 91 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL SUM ( DISTINCT + 91 ) FROM tab1 AS cor0
----
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT NULL <= col0 / + col0 * - 26 - + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col1 col1 FROM tab1 AS cor0
----
196
2209
25

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 30 IS NULL
----

query I rowsort
SELECT ALL 60 FROM tab0 WHERE 85 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT ALL - COUNT( * ) * - ( + - COUNT( * ) ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL - COUNT ( * ) * - ( + - COUNT ( * ) ) FROM tab0
----
-9

query I rowsort
SELECT col1 + - + col0 + - col1 AS col1 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 ) IN ( col2 )
----

query I rowsort
SELECT DISTINCT col2 + + 50 * - - col1 * - col0 * + col2 + + - col2 AS col1 FROM tab2
----
-14572500
-2697900
-9856000

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN ( NULL ) AND + 18 * col2 * - + col2
----

query I rowsort
SELECT col1 * 96 + 52 FROM tab1
----
1396
4564
532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2967
SELECT 28 + + 98 + + + 37 / - + COUNT( * ) * - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2967
SELECT 28 + + 98 + + + 37 / - + COUNT ( * ) * - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2968
SELECT - col2 + + col1 + + col1 DIV col0 AS col1 FROM tab2 cor0
----
29
38
9

skipif mysql # not compatible
query I rowsort label-2968
SELECT - col2 + + col1 + + col1 / col0 AS col1 FROM tab2 cor0
----
29
38
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2969
SELECT DISTINCT 77 DIV + 98 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2969
SELECT DISTINCT 77 / + 98 FROM tab0
----
0

query I rowsort
SELECT ALL + col0 + - - col2 * - col2 * + col1 AS col0 FROM tab1
----
-128973
-17320
-217237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2971
SELECT DISTINCT 1 - + COUNT( CAST( + 0 AS SIGNED ) ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2971
SELECT DISTINCT 1 - + COUNT ( CAST ( + 0 AS INTEGER ) ) FROM tab0 AS cor0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2972
SELECT + ( - 41 ) * - 31 + + col1 DIV - col2 FROM tab0 AS cor0
----
1269
1270
1271

skipif mysql # not compatible
query I rowsort label-2972
SELECT + ( - 41 ) * - 31 + + col1 / - col2 FROM tab0 AS cor0
----
1269
1270
1271

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT ( - col0 ) * col0 + 28 FROM tab0 AS cor0 WHERE NOT ( NULL IN ( + - 15 ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2975
SELECT ALL + + 56 DIV + - 1, col2 AS col0 FROM tab1 cor0
----
-56
59
-56
68
-56
96

skipif mysql # not compatible
query II rowsort label-2975
SELECT ALL + + 56 / + - 1, col2 AS col0 FROM tab1 cor0
----
-56
59
-56
68
-56
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2976
SELECT col0, + 67 * - CAST( NULL AS SIGNED ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-2976
SELECT col0, + 67 * - CAST ( NULL AS INTEGER ) FROM tab1
----
51
NULL
85
NULL
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT ALL COUNT( ALL + col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL COUNT ( ALL + col2 ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2978
SELECT col1 FROM tab0 WHERE NOT + + CAST( + col1 AS SIGNED ) IS NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2978
SELECT col1 FROM tab0 WHERE NOT + + CAST ( + col1 AS INTEGER ) IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2979
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST( - - 81 AS SIGNED ) + + col2 NOT BETWEEN ( + CAST( - 74 AS SIGNED ) * + + col1 ) AND - 69
----
87
21
10

skipif mysql # not compatible
query III rowsort label-2979
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST ( - - 81 AS INTEGER ) + + col2 NOT BETWEEN ( + CAST ( - 74 AS INTEGER ) * + + col1 ) AND - 69
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT DISTINCT MAX( ALL col2 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2980
SELECT DISTINCT MAX ( ALL col2 ) AS col2 FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2981
SELECT + col0 DIV 15 DIV - + CAST( - 39 AS SIGNED ) AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2981
SELECT + col0 / 15 / - + CAST ( - 39 AS INTEGER ) AS col2 FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col0 / + + col1 BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT + 87, + ( col0 ) FROM tab0
----
87
15
87
87
87
97

query II rowsort
SELECT ALL col2 AS col2, col0 AS col2 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT - ( + 92 ) FROM tab1
----
-92
-92
-92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 30 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 NOT BETWEEN NULL AND - ( 34 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2988
SELECT ALL + 41 AS col1, MIN( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
41
NULL

skipif mysql # not compatible
query II rowsort label-2988
SELECT ALL + 41 AS col1, MIN ( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
41
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 99 * col1 > col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT ALL + MIN( ALL - + 87 ) FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL + MIN ( ALL - + 87 ) FROM tab2 AS cor0
----
-87

query I rowsort
SELECT + 88 + col2 FROM tab1 cor0
----
147
156
184

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT ALL COUNT( * ) col1 FROM tab0 cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2992
SELECT ALL COUNT ( * ) col1 FROM tab0 cor0 WHERE NOT - col0 IS NOT NULL
----
0

query II rowsort
SELECT + + col2 * - - col0 + + - ( + - col1 ), col1 AS col2 FROM tab2 AS cor0
----
1109
51
2637
77
4417
67

query I rowsort
SELECT DISTINCT 64 * 39 * - + 4 AS col1 FROM tab0 AS cor0
----
-9984

query I rowsort
SELECT ALL - ( - ( + + 78 ) ) * col0 FROM tab2 AS cor0
----
3588
4992
5850

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2996
SELECT ALL + CAST( + CAST( col2 AS SIGNED ) AS SIGNED ) * - col0 * - col2 + - col0 DIV - 77 FROM tab2 AS cor0
----
102400
24334
252300

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL + CAST ( + CAST ( col2 AS INTEGER ) AS INTEGER ) * - col0 * - col2 + - col0 / - 77 FROM tab2 AS cor0
----
102400
24334
252300

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT ALL + COUNT( * ) FROM tab1 WHERE + col0 < - 62
----
0

skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL + COUNT ( * ) FROM tab1 WHERE + col0 < - 62
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col1 * - - 44 * + 89 <= - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 70 ) col1 FROM tab1
----
70
70
70

query III rowsort
SELECT * FROM tab2 WHERE + col0 > + + col1
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT ALL 22 - MIN( ALL col0 ) FROM tab2 WHERE ( + col2 * - col2 * 28 - + col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL 22 - MIN ( ALL col0 ) FROM tab2 WHERE ( + col2 * - col2 * 28 - + col2 ) IS NULL
----
NULL

query I rowsort
SELECT 53 AS col2 FROM tab1 WHERE NULL > + + col2
----

query I rowsort
SELECT col2 - - - col0 + ( + - col2 ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3004
SELECT + col1 - col2 + + col2 DIV - col0 AS col1 FROM tab1 AS cor0
----
-21
-54
-83

skipif mysql # not compatible
query I rowsort label-3004
SELECT + col1 - col2 + + col2 / - col0 AS col1 FROM tab1 AS cor0
----
-21
-54
-83

query I rowsort
SELECT + 5 + - 73 FROM tab2 AS cor0
----
-68
-68
-68

query I rowsort
SELECT 32 + + - col1 + + 40 FROM tab1 AS cor0
----
25
58
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3007
SELECT - col2 + + 96 DIV 73 AS col0 FROM tab2 AS cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-3007
SELECT - col2 + + 96 / 73 AS col0 FROM tab2 AS cor0
----
-22
-39
-57

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( - col2 ) <= - col2
----

query I rowsort
SELECT col2 + - - 32 + - col0 * + + col2 FROM tab2
----
-1003
-2488
-4260

query I rowsort
SELECT - col2 FROM tab1 WHERE + - 0 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT - col2 * col0 + col2 FROM tab2 WHERE NULL < 31
----

query I rowsort
SELECT DISTINCT + 66 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3013
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE - col0 IS NULL
----
0

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) < + ( - - col0 )
----

query I rowsort
SELECT DISTINCT 75 * + col1 FROM tab1 AS cor0
----
1050
3525
375

query II rowsort
SELECT ALL + col1 * - col2, col1 FROM tab1 AS cor0
----
-1344
14
-295
5
-3196
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3017
SELECT ALL - SUM( ALL + ( - + col1 ) ) DIV + 17 AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL - SUM ( ALL + ( - + col1 ) ) / + 17 AS col0 FROM tab0 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2 col2, col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT MAX( DISTINCT 48 ) FROM tab0 cor0
----
48

skipif mysql # not compatible
query I rowsort label-3019
SELECT MAX ( DISTINCT 48 ) FROM tab0 cor0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3020
SELECT ALL - col0 DIV + col0 + 11 FROM tab0 AS cor0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-3020
SELECT ALL - col0 / + col0 + 11 FROM tab0 AS cor0
----
10
10
10

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3021
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3021
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT ALL + - 38 * COUNT( * ) FROM tab2 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-3022
SELECT ALL + - 38 * COUNT ( * ) FROM tab2 AS cor0
----
-114

query I rowsort
SELECT - 83 FROM tab1 WHERE NOT col2 >= 23
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3024
SELECT + 80 DIV + + ( col2 ) FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3024
SELECT + 80 / + + ( col2 ) FROM tab1
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 25 + 54 NOT BETWEEN + col0 AND ( 28 / - - 87 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 62 * col2 >= + col0 * - + col1
----

query IIIIII rowsort
SELECT * FROM tab0, tab0 cor0 WHERE + - ( + 9 ) <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 88 / - col0 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3029
SELECT DISTINCT + 33 * - 72 + col2 + 96 DIV - - col2 FROM tab2 AS cor0
----
-2317
-2334
-2349

skipif mysql # not compatible
query I rowsort label-3029
SELECT DISTINCT + 33 * - 72 + col2 + 96 / - - col2 FROM tab2 AS cor0
----
-2317
-2334
-2349

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3030
SELECT DISTINCT - - col1, CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-3030
SELECT DISTINCT - - col1, CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 + + col2 / col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 + col0 * col1 NOT IN ( + col1, col1 * - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 48 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-48

query II rowsort
SELECT DISTINCT 35 AS col0, ( col2 ) FROM tab0 AS cor0
----
35
10
35
47
35
99

query I rowsort
SELECT ALL 70 + - + col0 AS col1 FROM tab1 AS cor0
----
-15
-21
19

query I rowsort
SELECT + col0 + - col2 + - col0 / + 99 - - col0 * col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL - 12 AS col2 FROM tab2 cor0
----
-12
-12
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3038
SELECT ALL CAST( + col1 AS SIGNED ) * col0 AS col2, col0 AS col1 FROM tab2 AS cor0
----
2346
46
4928
64
5025
75

skipif mysql # not compatible
query II rowsort label-3038
SELECT ALL CAST ( + col1 AS INTEGER ) * col0 AS col2, col0 AS col1 FROM tab2 AS cor0
----
2346
46
4928
64
5025
75

query I rowsort
SELECT - + col2 - col1 * + 51 AS col0 FROM tab0 AS cor0
----
-1081
-150
-4178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3040
SELECT DISTINCT 26 DIV - COUNT( * ) FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-3040
SELECT DISTINCT 26 / - COUNT ( * ) FROM tab2 AS cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT ALL + MAX( + 53 ) FROM tab0 AS cor0 WHERE ( + 66 * 60 ) IS NOT NULL
----
53

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL + MAX ( + 53 ) FROM tab0 AS cor0 WHERE ( + 66 * 60 ) IS NOT NULL
----
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 31 col2 FROM tab1 cor0
----
-31

query II rowsort
SELECT DISTINCT - 62 + - col1, 19 AS col2 FROM tab1
----
-109
19
-67
19
-76
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3044
SELECT + col0 + + - col2 * + - 97 + col2 - + 65 DIV + col0 col1 FROM tab2
----
2299
3983
5759

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3044
SELECT + col0 + + - col2 * + - 97 + col2 - + 65 / + col0 col1 FROM tab2
----
2299
3983
5759

query II rowsort
SELECT ALL col2 AS col1, + col0 FROM tab1 WHERE NOT + 51 = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3046
SELECT DISTINCT * FROM tab0 WHERE CAST( NULL AS SIGNED ) * - - col2 * 44 <= ( + - col1 / - col1 - + col0 )
----

skipif mysql # not compatible
query III rowsort label-3046
SELECT DISTINCT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) * - - col2 * 44 <= ( + - col1 / - col1 - + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3047
SELECT ALL + + 13 DIV - col0 * - + col0 - + col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3047
SELECT ALL + + 13 / - col0 * - + col0 - + col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT DISTINCT SUM( ALL + col1 ) col0 FROM tab0 cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3048
SELECT DISTINCT SUM ( ALL + col1 ) col0 FROM tab0 cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT - + COUNT( ALL - col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3049
SELECT - + COUNT ( ALL - col0 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 44 IN ( - col0 ) AND 9 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 90 col1 FROM tab2
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-3052
SELECT 41 DIV + - col2 AS col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3052
SELECT 41 / + - col2 AS col1 FROM tab2
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3053
SELECT col0 DIV - 74 col0 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3053
SELECT col0 / - 74 col0 FROM tab0
----
-1
-1
0

query I rowsort
SELECT + 54 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT DISTINCT 23 * + col0 AS col0 FROM tab1
----
1173
1955
2093

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3056
SELECT + + CAST( NULL AS SIGNED ) * 9 - - col1 + col1 * - ( - col1 ) * 74 * + 65 - + col2 - + - col2 * - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3056
SELECT + + CAST ( NULL AS INTEGER ) * 9 - - col1 + col1 * - ( - col1 ) * 74 * + 65 - + col2 - + - col2 * - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT ALL - COUNT( * ) * - MAX( - + 11 ) AS col0 FROM tab0 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL - COUNT ( * ) * - MAX ( - + 11 ) AS col0 FROM tab0 cor0
----
-33

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 88 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3059
SELECT + CAST( + COUNT( * ) AS SIGNED ) AS col1, + COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-3059
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col1, + COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT ALL - COUNT( * ) AS col0 FROM tab1 WHERE + - 40 + col0 NOT IN ( - col0, col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 WHERE + - 40 + col0 NOT IN ( - col0, col2 )
----
-3

query I rowsort
SELECT DISTINCT - col1 * col1 * - 16 AS col0 FROM tab1
----
3136
35344
400

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT MIN( - col0 ) * 44 FROM tab1
----
-4004

skipif mysql # not compatible
query I rowsort label-3062
SELECT MIN ( - col0 ) * 44 FROM tab1
----
-4004

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT ALL - 28 * - COUNT( * ) * - - 41 FROM tab0
----
3444

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL - 28 * - COUNT ( * ) * - - 41 FROM tab0
----
3444

onlyif mysql # DIV for integer division: 
query I rowsort label-3064
SELECT DISTINCT col2 * col0 DIV + col1 FROM tab0
----
41
8
9603

skipif mysql # not compatible
query I rowsort label-3064
SELECT DISTINCT col2 * col0 / + col1 FROM tab0
----
41
8
9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3065
SELECT - + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL = col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3065
SELECT - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL = col2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + + col1 )
----

query I rowsort
SELECT col1 * ( + col0 ) FROM tab1
----
425
4277
714

query I rowsort
SELECT DISTINCT - 60 * - col1 AS col0 FROM tab2
----
3060
4020
4620

query II rowsort
SELECT + + col2 AS col0, 96 FROM tab1 AS cor0
----
59
96
68
96
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3070
SELECT * FROM tab1 WHERE + CAST( 86 AS SIGNED ) >= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3070
SELECT * FROM tab1 WHERE + CAST ( 86 AS INTEGER ) >= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 32 + - + col0 AS col0 FROM tab2
----
-107
-78
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT DISTINCT + COUNT( * ) + + + 74 + - - SUM( DISTINCT + + col2 ) AS col0 FROM tab1
----
300

skipif mysql # not compatible
query I rowsort label-3072
SELECT DISTINCT + COUNT ( * ) + + + 74 + - - SUM ( DISTINCT + + col2 ) AS col0 FROM tab1
----
300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 6 col1 FROM tab2
----
57
73
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) + + + 11 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-3074
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) + + + 11 FROM tab2 AS cor0
----
20

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 / + 65 * - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 97 * + + col1 + + col2 AS col1 FROM tab2 AS cor0
----
4970
6557
7509

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT DISTINCT + ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT 26 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT + ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT 26 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT DISTINCT - MIN( - 18 ) AS col1 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-3078
SELECT DISTINCT - MIN ( - 18 ) AS col1 FROM tab0 AS cor0
----
18

query I rowsort
SELECT DISTINCT + col0 * col1 - - col0 AS col2 FROM tab0 AS cor0
----
1230
1914
194

query I rowsort
SELECT ALL - 83 * + ( 67 ) FROM tab2 AS cor0
----
-5561
-5561
-5561

query I rowsort
SELECT + col2 * 69 * - col1 FROM tab2
----
-212520
-268134
-80937

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT COUNT( * ) * - 40 AS col2 FROM tab0
----
-120

skipif mysql # not compatible
query I rowsort label-3082
SELECT COUNT ( * ) * - 40 AS col2 FROM tab0
----
-120

query I rowsort
SELECT DISTINCT col1 * + - col0 + + 91 - - 14 * + 98 FROM tab1
----
-2814
1038
749

query I rowsort
SELECT + - col1 * + 42 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col2 + - 10 * - col1 AS col1 FROM tab0 AS cor0
----
-89
200
763

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3086
SELECT ALL - MAX( ALL + 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-3086
SELECT ALL - MAX ( ALL + CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 95 AS col2 FROM tab0 cor0
----
95

query I rowsort
SELECT + 2 * - 82 AS col0 FROM tab2
----
-164
-164
-164

query I rowsort
SELECT - + ( + 90 ) * - col2 + + - 93 FROM tab0 AS cor0
----
4137
807
8817

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT ALL - - ( SUM( ALL - - 32 ) ) AS col2 FROM tab0 cor0
----
96

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL - - ( SUM ( ALL - - 32 ) ) AS col2 FROM tab0 cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3091
SELECT + CAST( + + 86 AS SIGNED ) FROM tab2 AS cor0
----
86
86
86

skipif mysql # not compatible
query I rowsort label-3091
SELECT + CAST ( + + 86 AS INTEGER ) FROM tab2 AS cor0
----
86
86
86

query III rowsort
SELECT * FROM tab2 WHERE NOT + 15 / + 68 - - - col1 + - col1 <= - + 58
----

query I rowsort
SELECT DISTINCT AVG ( DISTINCT ( + - 5 ) ) * - - 63 AS col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT DISTINCT ( COUNT( * ) ) * + 28 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-3094
SELECT DISTINCT ( COUNT ( * ) ) * + 28 FROM tab2
----
84

query I rowsort
SELECT - 13 FROM tab1 WHERE NOT - 2 * ( - - 53 ) + + col1 <> - - col1 + + - ( + 95 ) + col2
----

query I rowsort
SELECT ALL 54 + - - 78 AS col0 FROM tab2
----
132
132
132

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT DISTINCT MAX( col1 ) * 83 * + 85 FROM tab0
----
571455

skipif mysql # not compatible
query I rowsort label-3097
SELECT DISTINCT MAX ( col1 ) * 83 * + 85 FROM tab0
----
571455

query I rowsort
SELECT DISTINCT + col0 + col2 AS col1 FROM tab1 WHERE NULL BETWEEN - + ( + col2 ) + - col0 + + 86 + + 80 * - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) * + col1 + 70 col1 FROM tab1 AS cor0
----
-355
-4207
-644

query I rowsort
SELECT DISTINCT + + col2 * - - col1 AS col2 FROM tab0 AS cor0
----
210
3807
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 18 / + 76 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3102
SELECT ALL - COUNT( ALL - col0 ) * CAST( NULL AS SIGNED ) + + - ( - 46 ) + + MIN( ALL - ( 46 ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL - COUNT ( ALL - col0 ) * CAST ( NULL AS INTEGER ) + + - ( - 46 ) + + MIN ( ALL - ( 46 ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3103
SELECT - CAST( - 14 AS SIGNED ) + - col2 AS col2, + col0 * 48 AS col2 FROM tab0 AS cor0
----
-33
720
-85
4656
4
4176

skipif mysql # not compatible
query II rowsort label-3103
SELECT - CAST ( - 14 AS INTEGER ) + - col2 AS col2, + col0 * 48 AS col2 FROM tab0 AS cor0
----
-33
720
-85
4656
4
4176

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT ALL + SUM( col1 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
66

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL + SUM ( col1 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
66

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE - 70 < col1 + - col0 + + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT ALL + - MIN( + col1 ) * 58 * - ( - COUNT( * ) ) + COUNT( DISTINCT 2 ) AS col2 FROM tab1 AS cor0
----
-869

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL + - MIN ( + col1 ) * 58 * - ( - COUNT ( * ) ) + COUNT ( DISTINCT 2 ) AS col2 FROM tab1 AS cor0
----
-869

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3108
SELECT 35 DIV - COUNT( * ) AS col1 FROM tab2, tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3108
SELECT 35 / - COUNT ( * ) AS col1 FROM tab2, tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT + ( - MAX( DISTINCT + 47 ) ) FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-3109
SELECT + ( - MAX ( DISTINCT + 47 ) ) FROM tab2
----
-47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 44 IN ( - col2, 48 - + - col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3111
SELECT DISTINCT col2 - + - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3111
SELECT DISTINCT col2 - + - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 40 <= ( NULL )
----

query I rowsort
SELECT - - col0 AS col2 FROM tab2 WHERE - col2 < col2
----
46
64
75

query I rowsort
SELECT DISTINCT - 60 + + + ( col0 ) AS col1 FROM tab1
----
-9
25
31

query I rowsort
SELECT 88 + + col1 + + + 54 AS col1 FROM tab0
----
143
163
223

onlyif mysql # DIV for integer division: 
query II rowsort label-3116
SELECT col1 + - + col2 AS col1, ( - 91 ) + + col2 + col2 DIV col2 AS col1 FROM tab0
----
-98
9
11
-80
34
-43

skipif mysql # not compatible
query II rowsort label-3116
SELECT col1 + - + col2 AS col1, ( - 91 ) + + col2 + col2 / col2 AS col1 FROM tab0
----
-98
9
11
-80
34
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3117
SELECT - col1 / - col2 * + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) * col0, + ( col0 ) FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-3117
SELECT - col1 / - col2 * + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * col0, + ( col0 ) FROM tab2
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT ALL - 66 + - ( + col1 ) * + col0 FROM tab0
----
-1281
-163
-1893

onlyif mysql # DIV for integer division: 
query I rowsort label-3119
SELECT ALL - 61 - col0 DIV + + col2 AS col2 FROM tab2
----
-62
-62
-63

skipif mysql # not compatible
query I rowsort label-3119
SELECT ALL - 61 - col0 / + + col2 AS col2 FROM tab2
----
-62
-62
-63

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NOT + col0 / col1 + - - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 85 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3122
SELECT ALL - col2 / col0 * - + ( - + CAST( NULL AS SIGNED ) ) * col0 * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL - col2 / col0 * - + ( - + CAST ( NULL AS INTEGER ) ) * col0 * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + - 83, col1 AS col0 FROM tab0 cor0
----
-83
1
-83
21
-83
81

query II rowsort
SELECT ALL + + col0 AS col2, 76 FROM tab1 AS cor0
----
51
76
85
76
91
76

query I rowsort
SELECT + col1 + - 3 AS col2 FROM tab1 AS cor0
----
11
2
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT DISTINCT - MAX( - 16 ) FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT - MAX ( - 16 ) FROM tab0 AS cor0
----
16

query I rowsort
SELECT ALL - col0 * - 30 FROM tab2 AS cor0
----
1380
1920
2250

query II rowsort
SELECT col2, 14 AS col0 FROM tab1 cor0
----
59
14
68
14
96
14

query I rowsort
SELECT DISTINCT - col1 * + ( + col1 ) AS col0 FROM tab1
----
-196
-2209
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3130
SELECT 37 AS col2, - COUNT( DISTINCT col0 ) * CAST( NULL AS SIGNED ), + 3 AS col2 FROM tab2 WHERE NOT - col2 IS NULL
----
37
NULL
3

skipif mysql # not compatible
query III rowsort label-3130
SELECT 37 AS col2, - COUNT ( DISTINCT col0 ) * CAST ( NULL AS INTEGER ), + 3 AS col2 FROM tab2 WHERE NOT - col2 IS NULL
----
37
NULL
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3131
SELECT - CAST( - COUNT( 91 ) AS SIGNED ) AS col0 FROM tab1 WHERE NOT - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3131
SELECT - CAST ( - COUNT ( 91 ) AS INTEGER ) AS col0 FROM tab1 WHERE NOT - col2 IS NULL
----
3

query I rowsort
SELECT ALL - col1 + + + col1 * - 57 FROM tab1
----
-2726
-290
-812

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 43 + + - col1 - + - col0 col0 FROM tab1 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3134
SELECT + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / - + 3 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3134
SELECT + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / - + 3 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3135
SELECT + - 3 DIV - ( + + 96 ) FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3135
SELECT + - 3 / - ( + + 96 ) FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 * col0 col2 FROM tab2 AS cor0
----
2392
4992
5100

query I rowsort
SELECT DISTINCT 37 * - + 4 AS col2 FROM tab0
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT + COUNT( DISTINCT + - col1 ) + 10 AS col1 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-3138
SELECT + COUNT ( DISTINCT + - col1 ) + 10 AS col1 FROM tab1 AS cor0
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * 25 - 88 col0, + ( + col2 ) FROM tab1 AS cor0
----
-1563
59
-1788
68
-2488
96

query I rowsort
SELECT DISTINCT + 97 - 77 * - col2 FROM tab0 AS cor0
----
3716
7720
867

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3141
SELECT ALL + col1 + - 77 * - + CAST( NULL AS SIGNED ) / 27 - - col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL + col1 + - 77 * - + CAST ( NULL AS INTEGER ) / 27 - - col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * + 24 + + + 76 AS col2 FROM tab2 AS cor0
----
-1148
-1532
-1772

query I rowsort
SELECT - ( - 59 ) * col1 AS col1 FROM tab2 AS cor0
----
3009
3953
4543

query I rowsort
SELECT + col0 * + + col0 AS col2 FROM tab1 AS cor0
----
2601
7225
8281

query I rowsort
SELECT DISTINCT + col2 * + col0 * - col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

query II rowsort
SELECT col2 * + col1 + - - col0, + col2 AS col0 FROM tab1 AS cor0
----
1395
96
3287
68
380
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT DISTINCT + COUNT( * ) - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3147
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3148
SELECT - CAST( - COUNT( * ) AS SIGNED ) - - COUNT( - col0 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3148
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) - - COUNT ( - col0 ) FROM tab0
----
6

query I rowsort
SELECT DISTINCT ( + col0 ) * + + col1 AS col1 FROM tab0
----
1215
1827
97

query II rowsort
SELECT ALL + 75, - 91 AS col1 FROM tab1
----
75
-91
75
-91
75
-91

query I rowsort
SELECT + 8 * + + col1 FROM tab2
----
408
536
616

query I rowsort
SELECT + 75 * - 3 AS col1 FROM tab0
----
-225
-225
-225

query II rowsort
SELECT - 43 / 58 / - col1 AS col1, + 5 * + 50 AS col1 FROM tab2 WHERE NOT - + col2 <= NULL
----

query II rowsort
SELECT 71 AS col2, + 63 FROM tab0 AS cor0
----
71
63
71
63
71
63

query I rowsort
SELECT ALL - + col0 * + 61 AS col0 FROM tab1 AS cor0
----
-3111
-5185
-5551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3156
SELECT DISTINCT col2 * - CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-3156
SELECT DISTINCT col2 * - CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3481
-4624
-9216

query II rowsort
SELECT col0, + col0 AS col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3158
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( - 88 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3158
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( - 88 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT 90 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-3159
SELECT 90 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-270

query I rowsort
SELECT + + 24 AS col1 FROM tab1 AS cor0
----
24
24
24

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col1 * - col0 > 78 + ( col0 )
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 * + + col2 * + col0 - + - 49 * col1 * col0 * + - col1 col0 FROM tab2 AS cor0
----
-16170825
-18401344
-5783304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 29 + + 65 col0 FROM tab0 AS cor0
----
-2458
-2748
-370

query I rowsort
SELECT ( 91 ) AS col0 FROM tab2 AS cor0
----
91
91
91

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT ALL + COUNT( * ) * 2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL + COUNT ( * ) * 2 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT DISTINCT 13 * + + 12 + - COUNT( * ) + - COUNT( * ) + - 68 FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-3167
SELECT DISTINCT 13 * + + 12 + - COUNT ( * ) + - COUNT ( * ) + - 68 FROM tab2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT + - COUNT( * ) FROM tab2 WHERE - ( + 53 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3168
SELECT + - COUNT ( * ) FROM tab2 WHERE - ( + 53 ) IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE + + ( - 7 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT DISTINCT COUNT( - - col2 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3170
SELECT DISTINCT COUNT ( - - col2 ) col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT DISTINCT 46 + + COUNT( - + 3 ) AS col0 FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT 46 + + COUNT ( - + 3 ) AS col0 FROM tab1
----
49

query I rowsort
SELECT 89 FROM tab2 WHERE NOT - col1 >= 99 AND NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3173
SELECT ALL + CAST( + + col2 AS SIGNED ) AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL + CAST ( + + col2 AS INTEGER ) AS col0 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL - 89 + + + col2 AS col2 FROM tab1 AS cor0
----
-21
-30
7

query I rowsort
SELECT - 91 + + + col0 AS col0 FROM tab2 AS cor0
----
-16
-27
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + 22 col2 FROM tab0 AS cor0
----
-1914
-2134
-330

onlyif mysql # aggregate syntax: 
query II rowsort label-3177
SELECT 16 * + 95 * MIN( + col2 ), MIN( DISTINCT + col0 ) AS col2 FROM tab0
----
15200
15

skipif mysql # not compatible
query II rowsort label-3177
SELECT 16 * + 95 * MIN ( + col2 ), MIN ( DISTINCT + col0 ) AS col2 FROM tab0
----
15200
15

query I rowsort
SELECT 55 * - col1 - - 6 AS col1 FROM tab1
----
-2579
-269
-764

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 - + + col1 col1, + 7 col0 FROM tab2
----
0
7
0
7
0
7

query I rowsort
SELECT DISTINCT 47 + - 35 * + col1 + + + col1 + + col1 * col0 FROM tab0
----
-1492
110
1160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3181
SELECT - col2 + + 26 * + + CAST( + - 40 AS SIGNED ) * - + ( + ( - + col0 ) ) AS col0 FROM tab1 AS cor0
----
-53136
-88459
-94708

skipif mysql # not compatible
query I rowsort label-3181
SELECT - col2 + + 26 * + + CAST ( + - 40 AS INTEGER ) * - + ( + ( - + col0 ) ) AS col0 FROM tab1 AS cor0
----
-53136
-88459
-94708

onlyif mysql # DIV for integer division: 
query I rowsort label-3182
SELECT DISTINCT - + col2 DIV + + col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-3182
SELECT DISTINCT - + col2 / + + col0 FROM tab0 AS cor0
----
-1
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3183
SELECT DISTINCT col1 * - 4 - col2 FROM tab0 AS cor0 WHERE CAST( 99 AS SIGNED ) + col0 IS NOT NULL
----
-103
-371
-94

skipif mysql # not compatible
query I rowsort label-3183
SELECT DISTINCT col1 * - 4 - col2 FROM tab0 AS cor0 WHERE CAST ( 99 AS INTEGER ) + col0 IS NOT NULL
----
-103
-371
-94

query I rowsort
SELECT - + col2 * - - col0 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query II rowsort label-3185
SELECT DISTINCT + 36, + COUNT( * ) AS col2 FROM tab1
----
36
3

skipif mysql # not compatible
query II rowsort label-3185
SELECT DISTINCT + 36, + COUNT ( * ) AS col2 FROM tab1
----
36
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT - MIN( col0 ) * + ( - COUNT( * ) ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-3186
SELECT - MIN ( col0 ) * + ( - COUNT ( * ) ) FROM tab0
----
45

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT + + 56 IS NULL
----
15
87
97

query I rowsort
SELECT + 98 * 11 FROM tab1
----
1078
1078
1078

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT ALL - MIN( DISTINCT - 30 ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL - MIN ( DISTINCT - 30 ) FROM tab0
----
30

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT 32 BETWEEN ( NULL ) AND col0 * + 0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - ( - col0 ) BETWEEN - + 31 + - 91 * + - 46 * col0 AND + 61
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - + 32 ) FROM tab0 AS cor0
----
-32
-32
-32

query II rowsort
SELECT - col2 AS col2, 79 FROM tab1
----
-59
79
-68
79
-96
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3194
SELECT + 96 DIV + COUNT( * ) FROM tab0 WHERE NOT - ( + - col0 ) = + col1 * + col0 - + 50
----
32

skipif mysql # not compatible
query I rowsort label-3194
SELECT + 96 / + COUNT ( * ) FROM tab0 WHERE NOT - ( + - col0 ) = + col1 * + col0 - + 50
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT 71 * + + SUM( - col1 ) * - - COUNT( * ) AS col1 FROM tab1
----
-14058

skipif mysql # not compatible
query I rowsort label-3195
SELECT 71 * + + SUM ( - col1 ) * - - COUNT ( * ) AS col1 FROM tab1
----
-14058

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 80 - + - col1 < + ( + col2 )
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * - col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3197
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * - col0 <= NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3198
SELECT 95 - 27 * + 71 AS col0, - CAST( + ( COUNT( * ) ) AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT 40 NOT BETWEEN + col0 AND NULL
----
-1822
0

skipif mysql # not compatible
query II rowsort label-3198
SELECT 95 - 27 * + 71 AS col0, - CAST ( + ( COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT 40 NOT BETWEEN + col0 AND NULL
----
-1822
0

query II rowsort
SELECT ALL + col2, + col2 * + ( 26 ) FROM tab1 AS cor0
----
59
1534
68
1768
96
2496

query I rowsort
SELECT + + col0 * - + col2 + - - col2 AS col0 FROM tab1 AS cor0
----
-4800
-4956
-6120

query I rowsort
SELECT ALL - - 12 + ( - - col2 ) - - 3 FROM tab0 AS cor0
----
114
25
62

query II rowsort
SELECT ALL + 10 AS col1, - ( - + col2 ) FROM tab1 AS cor0
----
10
59
10
68
10
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT col0 * - + col1 * - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3203
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT col0 * - + col1 * - col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT + SUM( DISTINCT + col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-3204
SELECT + SUM ( DISTINCT + col0 ) FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT - MIN( + 58 ) AS col0 FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-3205
SELECT - MIN ( + 58 ) AS col0 FROM tab1
----
-58

query I rowsort
SELECT col2 * - + 16 FROM tab2
----
-368
-640
-928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT ALL 62 * MIN( 39 ) + - COUNT( * ) AS col2 FROM tab2
----
2415

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL 62 * MIN ( 39 ) + - COUNT ( * ) AS col2 FROM tab2
----
2415

query III rowsort
SELECT * FROM tab2 WHERE + 42 < + 72
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 + - ( + 68 ) FROM tab2
----
-108
-126
-91

query I rowsort
SELECT ALL col2 + + 85 * + - col1 AS col1 FROM tab0
----
-1775
-6838
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT DISTINCT - MAX( DISTINCT + col0 ) + - + COUNT( * ) * + 66 + + 12 * - SUM( ALL + - 89 ) AS col0 FROM tab0
----
2909

skipif mysql # not compatible
query I rowsort label-3212
SELECT DISTINCT - MAX ( DISTINCT + col0 ) + - + COUNT ( * ) * + 66 + + 12 * - SUM ( ALL + - 89 ) AS col0 FROM tab0
----
2909

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT - + COUNT( * ) - + 74 AS col2 FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3213
SELECT - + COUNT ( * ) - + 74 AS col2 FROM tab0 AS cor0
----
-77

query I rowsort
SELECT col1 + 92 * - + 95 * + + 26 + - col0 AS col1 FROM tab0 AS cor0
----
-227174
-227306
-227336

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL = NULL
----

query I rowsort
SELECT + 78 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT DISTINCT - + col0 * + - 58 - - col2 AS col1 FROM tab0 AS cor0
----
5056
5725
917

query I rowsort
SELECT + + ( 12 ) AS col0 FROM tab1 AS cor0
----
12
12
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3219
SELECT ALL - - CAST( NULL AS SIGNED ) * + - col1 / - + col2 AS col0, col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-3219
SELECT ALL - - CAST ( NULL AS INTEGER ) * + - col1 / - + col2 AS col0, col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT DISTINCT - - SUM( ALL - - 66 ) FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-3220
SELECT DISTINCT - - SUM ( ALL - - 66 ) FROM tab2 AS cor0
----
198

query I rowsort
SELECT DISTINCT + col0 * + col0 AS col1 FROM tab1 cor0 WHERE + col0 >= - 20
----
2601
7225
8281

query I rowsort
SELECT col0 + - - 44 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3223
SELECT DISTINCT - 54, - ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-54
3

skipif mysql # not compatible
query II rowsort label-3223
SELECT DISTINCT - 54, - ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-54
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT - MIN( - col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3224
SELECT - MIN ( - col2 ) AS col2 FROM tab1 AS cor0
----
96

query I rowsort
SELECT - col0 * col1 + + - col1 + - 55 / - + col2 * + 24 * + + col1 * + + 5 * - 1 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 91, col1 FROM tab0 AS cor0
----
91
1
91
21
91
81

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE NOT + 84 = - 88
----
-1
-21
-81

query I rowsort
SELECT ALL - col1 * - 31 FROM tab2
----
1581
2077
2387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 61 col0 FROM tab0 AS cor0
----
-61

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + + 34 IS NULL
----

query I rowsort
SELECT ALL + 41 * col1 + col2 FROM tab2
----
2114
2805
3197

query I rowsort
SELECT DISTINCT + 40 + - col1 AS col0 FROM tab1
----
-7
26
35

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 <> - - 27 * + + ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( + 2 ) FROM tab0
----
2
2
2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 19 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT - - 34 * COUNT( * ) FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-3236
SELECT - - 34 * COUNT ( * ) FROM tab0 AS cor0
----
102

query I rowsort
SELECT ALL - + 41 FROM tab2 cor0
----
-41
-41
-41

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * 80 >= - - 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT + 16 * + COUNT( * ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3239
SELECT + 16 * + COUNT ( * ) FROM tab2 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT DISTINCT + MAX( ALL - + col1 ) * - - 16 * 19 FROM tab0 AS cor0
----
-304

skipif mysql # not compatible
query I rowsort label-3240
SELECT DISTINCT + MAX ( ALL - + col1 ) * - - 16 * 19 FROM tab0 AS cor0
----
-304

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT DISTINCT + + MIN( - - col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT + + MIN ( - - col2 ) FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT ALL + - MIN( - 79 ) FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-3242
SELECT ALL + - MIN ( - 79 ) FROM tab0 AS cor0
----
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3243
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE 32 < CAST( - col0 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-3243
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE 32 < CAST ( - col0 AS REAL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3244
SELECT + + CAST( NULL AS SIGNED ) * + 18 + - MIN( DISTINCT + col0 ) AS col1 FROM tab2 WHERE NULL >= CAST( ( - col0 ) AS SIGNED ) * - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3244
SELECT + + CAST ( NULL AS INTEGER ) * + 18 + - MIN ( DISTINCT + col0 ) AS col1 FROM tab2 WHERE NULL >= CAST ( ( - col0 ) AS INTEGER ) * - col1
----
NULL

query I rowsort
SELECT ALL - col0 + col1 * + 0 AS col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT + 87 + + 71 AS col0 FROM tab2
----
158
158
158

query I rowsort
SELECT col2 * - col0 + col1 AS col1 FROM tab2
----
-1007
-2483
-4283

query I rowsort
SELECT - 54 + col2 - + - ( 20 ) AS col0 FROM tab2
----
-11
24
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3249
SELECT DISTINCT + + 62 FROM tab2 AS cor0 WHERE NULL = 16 / + - col2 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3249
SELECT DISTINCT + + 62 FROM tab2 AS cor0 WHERE NULL = 16 / + - col2 + + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3250
SELECT - 85 DIV - + ( - col1 ) AS col2, + 17 FROM tab0
----
-1
17
-4
17
-85
17

skipif mysql # not compatible
query II rowsort label-3250
SELECT - 85 / - + ( - col1 ) AS col2, + 17 FROM tab0
----
-1
17
-4
17
-85
17

query I rowsort
SELECT ALL - + ( + + col0 ) FROM tab1 AS cor0 WHERE 14 >= + 95
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col1 FROM tab2 AS cor0 WHERE NOT 47 = - + 37
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT ALL COUNT( col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL COUNT ( col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - ( 31 ) AS col1 FROM tab1
----
-31
-31
-31

query II rowsort
SELECT 49 AS col1, col2 AS col1 FROM tab0
----
49
10
49
47
49
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT DISTINCT 59 * - COUNT( * ) col0 FROM tab0
----
-177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3256
SELECT DISTINCT 59 * - COUNT ( * ) col0 FROM tab0
----
-177

query II rowsort
SELECT ALL col2, - col2 AS col0 FROM tab2
----
23
-23
40
-40
58
-58

query I rowsort
SELECT DISTINCT + col0 * + 43 AS col2 FROM tab1
----
2193
3655
3913

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE NOT 54 + - col2 - - + col1 + col2 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT 49 * + COUNT( * ) FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-3260
SELECT 49 * + COUNT ( * ) FROM tab2
----
147

query I rowsort
SELECT ALL + col1 * + col0 + col2 FROM tab1
----
4345
484
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + - 40 ) * - col2 * col2 + - - col1 col2 FROM tab1
----
139245
185007
368654

query I rowsort
SELECT + + 50 FROM tab1 WHERE - col0 NOT IN ( - 44, 23 )
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT DISTINCT MIN( - - col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3264
SELECT DISTINCT MIN ( - - col0 ) FROM tab0
----
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > + col2 / - col1 * col2
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3266
SELECT + - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3266
SELECT + - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= + 2 * 47 + - col2 - - + col0 + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 * + ( + col2 ) col0 FROM tab1 AS cor0
----
5251
6052
8544

onlyif mysql # DIV for integer division: 
query I rowsort label-3269
SELECT col2 DIV - 29 FROM tab1 cor0
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-3269
SELECT col2 / - 29 FROM tab1 cor0
----
-2
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 99 * - col0 col1 FROM tab0 AS cor0
----
-1485
-8613
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT MIN( - - col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3271
SELECT MIN ( - - col0 ) AS col0 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3272
SELECT DISTINCT MAX( DISTINCT - ( - col0 ) ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3272
SELECT DISTINCT MAX ( DISTINCT - ( - col0 ) ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 64 * col2 + - + col2 + - col0 AS col2 FROM tab1
----
3632
4193
5997

query II rowsort
SELECT DISTINCT col1, - col2 * - ( - col2 ) AS col1 FROM tab2 WHERE NOT - 20 * - 10 IS NULL
----
51
-529
67
-3364
77
-1600

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT ALL MAX( DISTINCT - + 26 ) col0 FROM tab1 WHERE ( 98 * - col0 ) IS NOT NULL AND NOT NULL IS NOT NULL
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3275
SELECT ALL MAX ( DISTINCT - + 26 ) col0 FROM tab1 WHERE ( 98 * - col0 ) IS NOT NULL AND NOT NULL IS NOT NULL
----
-26

query I rowsort
SELECT ALL + col2 + + ( - col0 ) FROM tab0
----
-77
2
32

query I rowsort
SELECT DISTINCT col2 - - col1 * + + col0 FROM tab2
----
2369
4968
5083

query I rowsort
SELECT DISTINCT 35 - - 1 AS col0 FROM tab0 AS cor0
----
36

query I rowsort
SELECT - - col2 + - 33 FROM tab2 AS cor0
----
-10
25
7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) >= + - 6
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3281
SELECT DISTINCT + 25 DIV + col0 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT + 25 / + col0 AS col0 FROM tab1 AS cor0
----
0

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3283
SELECT DISTINCT - + COUNT( * ) * + COUNT( * ) col2, + 83 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-81
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3283
SELECT DISTINCT - + COUNT ( * ) * + COUNT ( * ) col2, + 83 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-81
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3284
SELECT - col1 DIV col0 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-3284
SELECT - col1 / col0 / + + col0 col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT ALL - - SUM( ALL col2 ) FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-3285
SELECT ALL - - SUM ( ALL col2 ) FROM tab0 cor0
----
156

query I rowsort
SELECT ALL + - col1 AS col1 FROM tab0 AS cor0 WHERE 40 >= col1
----
-1
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 WHERE NOT + 89 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 WHERE NOT + 89 IS NULL
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 * col1 + 59 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 0 + - col1 - + 59 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 35 + + col0 FROM tab0 AS cor0
----
122
132
50

query I rowsort
SELECT - - col0 FROM tab1 cor0 WHERE NULL < col0
----

query I rowsort
SELECT ALL col2 * - - col2 + + + col2 FROM tab1
----
3540
4692
9312

query II rowsort
SELECT + col1 AS col1, - col1 * + col1 * + col2 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col2 + col0 + + + 55 FROM tab0
----
117
152
251

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT DISTINCT + 80 + COUNT( col0 ) FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-3295
SELECT DISTINCT + 80 + COUNT ( col0 ) FROM tab2 AS cor0
----
83

query II rowsort
SELECT ALL + + col1, + col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT COUNT( * ) - + - 37 + + + 41 * - 67 FROM tab0 cor0
----
-2707

skipif mysql # not compatible
query I rowsort label-3297
SELECT COUNT ( * ) - + - 37 + + + 41 * - 67 FROM tab0 cor0
----
-2707

query I rowsort
SELECT + 51 - col1 FROM tab0 AS cor0
----
-30
30
50

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 29 < NULL
----

query II rowsort
SELECT DISTINCT - col1 - - 65 * + - 1, col0 FROM tab0 cor0
----
-146
15
-66
97
-86
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3301
SELECT DISTINCT - - CAST( + + COUNT( * ) AS SIGNED ) DIV - 70 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3301
SELECT DISTINCT - - CAST ( + + COUNT ( * ) AS INTEGER ) / - 70 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3302
SELECT DISTINCT + ( - - 72 ) DIV COUNT( * ) + + ( - + 90 ) FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3302
SELECT DISTINCT + ( - - 72 ) / COUNT ( * ) + + ( - + 90 ) FROM tab2 AS cor0
----
-66

query I rowsort
SELECT ALL + ( + ( - ( - col0 ) ) ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3304
SELECT + col1 * - 47 * - + CAST( + 41 AS SIGNED ) * + - col2 + - 8 FROM tab1
----
-2589896
-568473
-6158700

skipif mysql # not compatible
query I rowsort label-3304
SELECT + col1 * - 47 * - + CAST ( + 41 AS INTEGER ) * + - col2 + - 8 FROM tab1
----
-2589896
-568473
-6158700

query I rowsort
SELECT DISTINCT - col1 * 77 AS col1 FROM tab1
----
-1078
-3619
-385

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3306
SELECT DISTINCT - ( - COUNT( * ) ) + + + CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3306
SELECT DISTINCT - ( - COUNT ( * ) ) + + + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + col2 + - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 92 * col0 * - + col0 + + ( col2 ) + - col0 * + - col0 FROM tab0
----
20972
703927
875136

query I rowsort
SELECT DISTINCT - col2 + - + 56 FROM tab1
----
-115
-124
-152

onlyif mysql # DIV for integer division: 
query I rowsort label-3310
SELECT DISTINCT - 57 DIV - ( + 54 ) + col2 + - col0 AS col2 FROM tab0 cor0
----
-76
3
33

skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT - 57 / - ( + 54 ) + col2 + - col0 AS col2 FROM tab0 cor0
----
-76
3
33

query I rowsort
SELECT - col1 * - ( + col1 ) + col0 FROM tab2 AS cor0
----
2647
4564
5993

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + col2 IS NOT NULL
----

query II rowsort
SELECT + col1, - 19 FROM tab2
----
51
-19
67
-19
77
-19

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 55 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT - MAX( ALL + 61 ) * - - 24 FROM tab2, tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3315
SELECT - MAX ( ALL + 61 ) * - - 24 FROM tab2, tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3316
SELECT ALL + + 7 DIV + 3 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif mysql # not compatible
query I rowsort label-3316
SELECT ALL + + 7 / + 3 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # DIV for integer division: 
query I rowsort label-3317
SELECT ( + 58 ) DIV - col2 AS col2 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-3317
SELECT ( + 58 ) / - col2 AS col2 FROM tab0
----
-1
-5
0

query I rowsort
SELECT DISTINCT 70 FROM tab0 AS cor0 WHERE NULL IS NULL
----
70

query I rowsort
SELECT + 68 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - ( col2 ) ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3321
SELECT ALL + ( - 17 ) DIV + + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL + ( - 17 ) / + + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 83 ) + col2 <> NULL
----

query II rowsort
SELECT + col1, - ( + col2 ) FROM tab2
----
51
-23
67
-58
77
-40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3324
SELECT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN - 32 AND + 56
----

skipif mysql # not compatible
query III rowsort label-3324
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN - 32 AND + 56
----

query I rowsort
SELECT ALL - ( col0 ) * - col0 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT - + 40 + + 9 FROM tab0 AS cor0
----
-31
-31
-31

query I rowsort
SELECT DISTINCT - col1 * - col0 * + col2 AS col2 FROM tab2 AS cor0
----
197120
291450
53958

query I rowsort
SELECT DISTINCT 40 + ( - col2 ) FROM tab0 AS cor0
----
-59
-7
30

query I rowsort
SELECT - col0 - - col1 AS col0 FROM tab1 AS cor0 WHERE NULL = - 64
----

query I rowsort
SELECT + 35 AS col1 FROM tab2 cor0 WHERE 98 IS NOT NULL
----
35
35
35

onlyif mysql # aggregate syntax: 
query II rowsort label-3331
SELECT + ( - COUNT( ALL + - 66 ) ), 8 AS col0 FROM tab0 AS cor0
----
-3
8

skipif mysql # not compatible
query II rowsort label-3331
SELECT + ( - COUNT ( ALL + - 66 ) ), 8 AS col0 FROM tab0 AS cor0
----
-3
8

query I rowsort
SELECT col1 * col1 * 99 - - col1 FROM tab0
----
100
43680
649620

query I rowsort
SELECT - col2 * 68 - + col2 AS col0 FROM tab1
----
-4071
-4692
-6624

query I rowsort
SELECT DISTINCT 82 AS col1 FROM tab2, tab2 cor0
----
82

query II rowsort
SELECT ALL + 6, col1 AS col1 FROM tab2
----
6
51
6
67
6
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 42 * + col2 col1 FROM tab0 cor0
----
-1974
-4158
-420

query II rowsort
SELECT ALL - col1 * - col2 * col1 AS col2, + col0 * + col1 AS col0 FROM tab0 AS cor0
----
308367
1215
4410
1827
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT + MAX( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3338
SELECT + MAX ( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 / - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT - COUNT( + 93 ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3340
SELECT - COUNT ( + 93 ) AS col1 FROM tab2 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col2 < - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3342
SELECT + ( 95 ) AS col0 FROM tab0 WHERE NOT ( 69 * 92 ) NOT BETWEEN - 4 - + col0 AND ( + CAST( + col2 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-3342
SELECT + ( 95 ) AS col0 FROM tab0 WHERE NOT ( 69 * 92 ) NOT BETWEEN - 4 - + col0 AND ( + CAST ( + col2 AS REAL ) )
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3344
SELECT + 61 + col0 / + ( + col2 / CAST( NULL AS SIGNED ) ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3344
SELECT + 61 + col0 / + ( + col2 / CAST ( NULL AS INTEGER ) ) col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3345
SELECT ( + col1 ) - + col1 DIV - CAST( + 49 AS SIGNED ) AS col1 FROM tab0
----
1
21
82

skipif mysql # not compatible
query I rowsort label-3345
SELECT ( + col1 ) - + col1 / - CAST ( + 49 AS INTEGER ) AS col1 FROM tab0
----
1
21
82

query I rowsort
SELECT + col1 * - 32 + - col1 * col2 FROM tab1
----
-1792
-455
-4700

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 = col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT COUNT( * ) + ( COUNT( ALL col1 ) ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3348
SELECT COUNT ( * ) + ( COUNT ( ALL col1 ) ) FROM tab0
----
6

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 66 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 41 ) col0 FROM tab1
----
41
41
41

query I rowsort
SELECT ALL - col0 * col2 AS col2 FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 ) NOT BETWEEN 0 + + col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 < + col1 * col1
----

query I rowsort
SELECT col1 FROM tab0 WHERE NULL > - col1 + - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 * - col2 ) >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 * + col0 col1 FROM tab2
----
-1564
-2176
-2550

query I rowsort
SELECT 5 * col1 AS col0 FROM tab1
----
235
25
70

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col1 ) BETWEEN NULL AND col2
----

query I rowsort
SELECT 42 * col0 FROM tab0
----
3654
4074
630

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3360
SELECT ALL + CAST( NULL AS DECIMAL ) + ( 13 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL + CAST ( NULL AS REAL ) + ( 13 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3361
SELECT ALL CAST( col1 AS SIGNED ) col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3361
SELECT ALL CAST ( col1 AS INTEGER ) col0 FROM tab0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3362
SELECT ALL col2 DIV col1 + + 5 col2 FROM tab0
----
104
5
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3362
SELECT ALL col2 / col1 + + 5 col2 FROM tab0
----
104
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3363
SELECT * FROM tab1 WHERE - 16 + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3363
SELECT * FROM tab1 WHERE - 16 + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3364
SELECT - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3364
SELECT - CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN + 13 * col0 AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT ALL COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NOT ( NULL ) IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 + ( 51 + 24 ) ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3368
SELECT 25 - 9 DIV + col1 FROM tab1
----
24
25
25

skipif mysql # not compatible
query I rowsort label-3368
SELECT 25 - 9 / + col1 FROM tab1
----
24
25
25

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE 50 + 42 IS NOT NULL
----
59
68
96

query I rowsort
SELECT + + col1 - 25 FROM tab0 AS cor0
----
-24
-4
56

query I rowsort
SELECT - 41 - + col1 AS col1 FROM tab2 AS cor0
----
-108
-118
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT ALL COUNT( * ) * + 56 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
168

skipif mysql # not compatible
query I rowsort label-3372
SELECT ALL COUNT ( * ) * + 56 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
168

query I rowsort
SELECT - - 40 * + 4 + - col1 FROM tab0 AS cor0
----
139
159
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT DISTINCT 18 - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-3374
SELECT DISTINCT 18 - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 col1 FROM tab2 AS cor0 WHERE 25 IN ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - ( - 46 ) AND - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 91 + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT ALL - 23 - SUM( DISTINCT 71 ) AS col1 FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL - 23 - SUM ( DISTINCT 71 ) AS col1 FROM tab2 AS cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT ALL - - COUNT( DISTINCT - col1 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3379
SELECT ALL - - COUNT ( DISTINCT - col1 ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3380
SELECT ALL - 39 DIV - 35 + - col0 * col2 AS col2 FROM tab2 AS cor0
----
-1057
-2559
-4349

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL - 39 / - 35 + - col0 * col2 AS col2 FROM tab2 AS cor0
----
-1057
-2559
-4349

query I rowsort
SELECT DISTINCT + col1 * + + col0 * + col2 FROM tab2
----
197120
291450
53958

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( col2 ) < 51
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN + ( 97 ) * - col1 AND + col2 * - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3384
SELECT - CAST( COUNT( * ) AS SIGNED ) DIV - COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3384
SELECT - CAST ( COUNT ( * ) AS INTEGER ) / - COUNT ( * ) FROM tab0
----
1

query I rowsort
SELECT + col2 * - col1 FROM tab1 WHERE NOT ( col0 + ( + ( - col0 ) ) ) BETWEEN ( col1 ) AND + col2
----
-1344
-295
-3196

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 * + col1 <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3388
SELECT + CAST( - 57 AS SIGNED ) FROM tab1 AS cor0
----
-57
-57
-57

skipif mysql # not compatible
query I rowsort label-3388
SELECT + CAST ( - 57 AS INTEGER ) FROM tab1 AS cor0
----
-57
-57
-57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 43 ) < col2 * + 10 - + col0 / 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT COUNT( * ) FROM tab1 WHERE NOT ( NULL ) BETWEEN 38 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3390
SELECT COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) BETWEEN 38 AND NULL
----
0

query I rowsort
SELECT 98 * col0 FROM tab0
----
1470
8526
9506

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT NULL >= + 38 + + 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT ALL MIN( DISTINCT + col2 ) FROM tab1 WHERE NOT ( col1 <> NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3393
SELECT ALL MIN ( DISTINCT + col2 ) FROM tab1 WHERE NOT ( col1 <> NULL )
----
NULL

query I rowsort
SELECT ALL - 58 + + - 58 + + col2 FROM tab1
----
-20
-48
-57

query I rowsort
SELECT DISTINCT + + 20 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
20

query I rowsort
SELECT ALL + + col0 * - col1 AS col1 FROM tab0 cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT SUM( ALL + col1 ) FROM tab2 cor0 WHERE NOT col0 NOT IN ( - col0 / col0 + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3397
SELECT SUM ( ALL + col1 ) FROM tab2 cor0 WHERE NOT col0 NOT IN ( - col0 / col0 + col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT DISTINCT SUM( DISTINCT + col2 ) col0 FROM tab2 cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3398
SELECT DISTINCT SUM ( DISTINCT + col2 ) col0 FROM tab2 cor0
----
121

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3399
SELECT - ( COUNT( * ) ) col2 FROM tab0 AS cor0 WHERE NOT ( + CAST( NULL AS DECIMAL ) ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3399
SELECT - ( COUNT ( * ) ) col2 FROM tab0 AS cor0 WHERE NOT ( + CAST ( NULL AS REAL ) ) IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3400
SELECT DISTINCT - 18 * MIN( ALL + CAST( NULL AS SIGNED ) ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3400
SELECT DISTINCT - 18 * MIN ( ALL + CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 > ( - col0 + - col0 )
----

query I rowsort
SELECT + + col2 + - - col1 FROM tab1 cor0
----
110
115
64

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE NOT 64 / - + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> ( + 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT ALL + MAX( - + 46 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL + MAX ( - + 46 ) FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT ALL + COUNT( * ) + + - COUNT( * ) * - COUNT( * ) AS col0 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL + COUNT ( * ) + + - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1
----
12

query I rowsort
SELECT ( + 38 ) AS col1 FROM tab0
----
38
38
38

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE + - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT - 86 * + 68 * + COUNT( * ) FROM tab1
----
-17544

skipif mysql # not compatible
query I rowsort label-3409
SELECT - 86 * + 68 * + COUNT ( * ) FROM tab1
----
-17544

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT DISTINCT COUNT( DISTINCT - ( col0 ) ) * - 14 AS col1 FROM tab1 WHERE NOT NULL IN ( + 88 )
----
0

skipif mysql # not compatible
query I rowsort label-3410
SELECT DISTINCT COUNT ( DISTINCT - ( col0 ) ) * - 14 AS col1 FROM tab1 WHERE NOT NULL IN ( + 88 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 78 * - ( + 93 ) * - 77 <= ( + col0 )
----

query I rowsort
SELECT 18 + + col2 AS col0 FROM tab0 cor0
----
117
28
65

query I rowsort
SELECT col2 + - col2 + + + 30 + 14 + - 21 * + ( - col1 ) AS col2 FROM tab2 AS cor0
----
1115
1451
1661

query III rowsort
SELECT * FROM tab1 WHERE ( + - col0 ) = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) >= + col0 + - col2
----

query I rowsort
SELECT - col1 FROM tab0 WHERE 28 <= ( - + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 90 - + col1 col0 FROM tab1 AS cor0
----
43
76
85

onlyif mysql # aggregate syntax: 
query II rowsort label-3418
SELECT - - 69, COUNT( * ) * + + 82 AS col1 FROM tab0 AS cor0
----
69
246

skipif mysql # not compatible
query II rowsort label-3418
SELECT - - 69, COUNT ( * ) * + + 82 AS col1 FROM tab0 AS cor0
----
69
246

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT ALL + COUNT( - + col0 ) + 91 + - ( + 54 ) FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL + COUNT ( - + col0 ) + 91 + - ( + 54 ) FROM tab2 AS cor0
----
40

query I rowsort
SELECT ALL 91 * - 25 FROM tab1 AS cor0 WHERE 62 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT ALL + + COUNT( ALL col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL + + COUNT ( ALL col0 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 >= + - col0
----

query I rowsort
SELECT DISTINCT + - 99 FROM tab2 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT + MAX( DISTINCT + - col1 ) * + + ( - 17 ) AS col0 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-3425
SELECT + MAX ( DISTINCT + - col1 ) * + + ( - 17 ) AS col0 FROM tab1 AS cor0
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3426
SELECT DISTINCT MIN( ALL CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3426
SELECT DISTINCT MIN ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 NOT IN ( + col1 * + 73 ) )
----

query I rowsort
SELECT - 28 / + col2 FROM tab2 WHERE NOT NULL IN ( + 97 * - 28 / 28 )
----

query II rowsort
SELECT ALL col1 AS col2, col2 - - + col0 FROM tab2
----
51
69
67
133
77
104

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT + col1 BETWEEN + + 2 AND ( 43 )
----
23
40
58

query III rowsort
SELECT * FROM tab2 WHERE NOT - 19 NOT BETWEEN + col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 NOT BETWEEN - 73 * - + 79 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3433
SELECT - ( - col1 ) DIV - col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3433
SELECT - ( - col1 ) / - col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3434
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3434
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + + ( - + col1 ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT - + 43 FROM tab1 cor0
----
-43
-43
-43

query II rowsort
SELECT ALL 32, + col0 + - col0 AS col1 FROM tab0 AS cor0
----
32
0
32
0
32
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 70 + - col2 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > + ( - 65 )
----

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT ( col0 + 35 + - ( + + col2 ) - 22 <= NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - - col2 ) col0, - 91 FROM tab1 AS cor0
----
-59
-91
-68
-91
-96
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3442
SELECT DISTINCT + - CAST( + - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3442
SELECT DISTINCT + - CAST ( + - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL 63 * + - 35 FROM tab1 AS cor0
----
-2205
-2205
-2205

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 67 + 53 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT NULL <= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3446
SELECT ALL col2 * col2 * + 4 * + 23 / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3446
SELECT ALL col2 * col2 * + 4 * + 23 / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + - col1 + 45 + + + col0 + + 97 * + col1 * + 88 AS col2 FROM tab2
----
435353
571907
657264

query I rowsort
SELECT col2 + + - 84 AS col1 FROM tab1
----
-16
-25
12

query I rowsort
SELECT ( - col2 ) + + 44 + col2 * + 82 FROM tab2
----
1907
3284
4742

query I rowsort
SELECT ALL col2 * + col0 * col0 + + 54 * - 71 AS col2 FROM tab0
----
6741
71856
927657

query I rowsort
SELECT DISTINCT 19 + + + col2 + + - col2 AS col1 FROM tab2 AS cor0
----
19

query I rowsort
SELECT DISTINCT col2 - 27 AS col1 FROM tab0 cor0
----
-17
20
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3453
SELECT DISTINCT + - 22 * - - 21 * + CAST( - 43 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
19866

skipif mysql # not compatible
query I rowsort label-3453
SELECT DISTINCT + - 22 * - - 21 * + CAST ( - 43 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
19866

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3454
SELECT * FROM tab2 AS cor0 WHERE + 3 = + CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3454
SELECT * FROM tab2 AS cor0 WHERE + 3 = + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3455
SELECT - - col0 DIV + 40 AS col1 FROM tab1 cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-3455
SELECT - - col0 / + 40 AS col1 FROM tab1 cor0
----
1
2
2

query I rowsort
SELECT - col2 - - 51 AS col2 FROM tab0
----
-48
4
41

query III rowsort
SELECT * FROM tab2 WHERE - col0 NOT IN ( + - 62 + col2, + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 * + + 78 + + 32 FROM tab2 WHERE - - col1 IS NOT NULL
----
-1762
-3088
-4492

query I rowsort
SELECT ALL col0 * - 47 FROM tab0 AS cor0
----
-4089
-4559
-705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3460
SELECT DISTINCT - CAST( - - col0 AS SIGNED ) AS col0 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3460
SELECT DISTINCT - CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2 cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 67 * col2 col1 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 61 ) <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3463
SELECT ALL - COUNT( * ) DIV + + 46 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL - COUNT ( * ) / + + 46 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - + 64 * - col2 * col0 AS col1 FROM tab2 AS cor0
----
163840
278400
67712

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT ALL - ( + COUNT( DISTINCT col1 ) ) AS col0 FROM tab0 AS cor0 WHERE + col2 + - col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL - ( + COUNT ( DISTINCT col1 ) ) AS col0 FROM tab0 AS cor0 WHERE + col2 + - col2 <> NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3466
SELECT DISTINCT + col1 * + CAST( + 90 AS SIGNED ) AS col1 FROM tab0
----
1890
7290
90

skipif mysql # not compatible
query I rowsort label-3466
SELECT DISTINCT + col1 * + CAST ( + 90 AS INTEGER ) AS col1 FROM tab0
----
1890
7290
90

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 61 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( - 57 ) FROM tab1
----
-57
-57
-57

query II rowsort
SELECT + col2 * + col0 * + col2, + col1 AS col1 FROM tab0
----
33135
81
8700
21
950697
1

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - col0 ) / col1 * ( + - col0 ) + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 col1 FROM tab0 WHERE NOT + col1 IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT ( 91 ) FROM tab0
----
91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 * + + 40 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 / col1 FROM tab0 WHERE NOT ( NULL ) <> + + col1 AND NULL NOT IN ( - col2, 52 * + col2 * col2, col1 + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3475
SELECT COUNT( * ) DIV MAX( col2 ), + COUNT( + col2 ) * + + 52 AS col0 FROM tab2
----
0
156

skipif mysql # not compatible
query II rowsort label-3475
SELECT COUNT ( * ) / MAX ( col2 ), + COUNT ( + col2 ) * + + 52 AS col0 FROM tab2
----
0
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 + + + 49 * - - 70 = + col1 * - 57
----
-3

skipif mysql # not compatible
query I rowsort label-3476
SELECT + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 + + + 49 * - - 70 = + col1 * - 57
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3477
SELECT + 4 * - CAST( NULL AS SIGNED ) * - 19 * - + 86 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3477
SELECT + 4 * - CAST ( NULL AS INTEGER ) * - 19 * - + 86 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - - 2 ) FROM tab1 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT + - col2 <> NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3479
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT + - col2 <> NULL )
----
0

query I rowsort
SELECT DISTINCT 59 * ( - - col0 ) AS col0 FROM tab0
----
5133
5723
885

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT + COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3481
SELECT + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9

query II rowsort
SELECT + 64, col2 FROM tab1
----
64
59
64
68
64
96

query I rowsort
SELECT ALL 37 / - 88 FROM tab1 WHERE NULL NOT IN ( + col0, - col1 * - + col0 )
----

query I rowsort
SELECT - - 82 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 74 BETWEEN + 6 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 col0 FROM tab2 cor0
----
128
150
92

query II rowsort
SELECT DISTINCT col2, 9 + col0 FROM tab1 cor0
----
59
94
68
100
96
60

query II rowsort
SELECT - + col0 + + 31 AS col1, - col1 FROM tab1 cor0
----
-20
-14
-54
-5
-60
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT COUNT( * ) + + + MIN( - col0 ) AS col2 FROM tab0 cor0
----
-94

skipif mysql # not compatible
query I rowsort label-3489
SELECT COUNT ( * ) + + + MIN ( - col0 ) AS col2 FROM tab0 cor0
----
-94

query I rowsort
SELECT ALL - col1 * - + 97 * - col1 + + - ( + - col1 ) AS col0 FROM tab0 AS cor0
----
-42756
-636336
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT ALL - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, 43 FROM tab2 AS cor0
----
46
43
64
43
75
43

onlyif mysql # aggregate syntax: 
query II rowsort label-3493
SELECT DISTINCT - - COUNT( * ), + COUNT( * ) col0 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3493
SELECT DISTINCT - - COUNT ( * ), + COUNT ( * ) col0 FROM tab2 AS cor0
----
3
3

query II rowsort
SELECT DISTINCT col1, - ( - - 11 ) + - - col1 FROM tab2 AS cor0
----
51
40
67
56
77
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 58 col1 FROM tab0 WHERE - col1 IS NULL
----

query II rowsort
SELECT col2 * 63 AS col2, + col2 AS col0 FROM tab2
----
1449
23
2520
40
3654
58

query III rowsort
SELECT * FROM tab0 WHERE + col2 IN ( col1 * - col0, ( + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT COUNT( * ) * - 28 col1 FROM tab2
----
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3498
SELECT COUNT ( * ) * - 28 col1 FROM tab2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT DISTINCT 93 + COUNT( * ) FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-3499
SELECT DISTINCT 93 + COUNT ( * ) FROM tab0
----
96

query I rowsort
SELECT DISTINCT + 47 - - + col2 FROM tab1
----
106
115
143

query I rowsort
SELECT ALL col2 + - + 91 FROM tab2
----
-33
-51
-68

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 WHERE + 46 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > ( + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3504
SELECT - 29 + - COUNT( * ) col2, CAST( 44 AS SIGNED ) FROM tab1 AS cor0
----
-32
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3504
SELECT - 29 + - COUNT ( * ) col2, CAST ( 44 AS INTEGER ) FROM tab1 AS cor0
----
-32
44

query I rowsort
SELECT + col1 * + col0 + - 48 AS col1 FROM tab0 AS cor0
----
1167
1779
49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( - col2 + - - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3507
SELECT ALL + 51 / + 59 - - 9 + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL + 51 / + 59 - - 9 + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col1 + 14 * col0 - - 61 * - col1, 5 * - col1 AS col2 FROM tab2 AS cor0
----
-2416
-255
-2970
-335
-3724
-385

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3509
SELECT + 90 + - CAST( NULL AS SIGNED ), col1 AS col0 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-3509
SELECT + 90 + - CAST ( NULL AS INTEGER ), col1 AS col0 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col0, + 7 + + col2 col1 FROM tab0 WHERE NULL IS NULL
----
10
17
47
54
99
106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, 98 FROM tab0
----
10
98
47
98
99
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3512
SELECT ALL 70 * - - CAST( - col2 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
243670
323680
645120

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL 70 * - - CAST ( - col2 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
243670
323680
645120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 74 AS col1, col1 col2 FROM tab0 AS cor0
----
74
1
74
21
74
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT - COUNT( ALL - col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3514
SELECT - COUNT ( ALL - col2 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT ALL + 36 * COUNT( * ) FROM tab2 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL + 36 * COUNT ( * ) FROM tab2 AS cor0
----
108

query I rowsort
SELECT col1 * + col2 * - 0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3517
SELECT ( + col0 ) - ( - - CAST( NULL AS DECIMAL ) ) + + 28 + + - 62 + - - col1 - col1 * - - 52 * + col1 FROM tab0 WHERE NOT - - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3517
SELECT ( + col0 ) - ( - - CAST ( NULL AS REAL ) ) + + 28 + + - 62 + - - col1 - col1 * - - 52 * + col1 FROM tab0 WHERE NOT - - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 BETWEEN NULL AND - 28 OR NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 84 * + 75 AS col1 FROM tab2
----
6300
6300
6300

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT ALL - MAX( ALL + col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL - MAX ( ALL + col1 ) FROM tab2
----
-77

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( - - col0 ) >= 57
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT - 70 * + + MIN( - col0 ) FROM tab1
----
6370

skipif mysql # not compatible
query I rowsort label-3522
SELECT - 70 * + + MIN ( - col0 ) FROM tab1
----
6370

query I rowsort
SELECT DISTINCT + 46 * + ( - col1 ) AS col0 FROM tab2
----
-2346
-3082
-3542

onlyif mysql # DIV for integer division: 
query I rowsort label-3524
SELECT + col2 DIV col1 DIV + 63 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3524
SELECT + col2 / col1 / + 63 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3525
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( col0 AS DECIMAL ) NOT IN ( + + ( ( col0 ) ) * + - col1 - 11 * - + col1 * - + col0 )
----

skipif mysql # not compatible
query III rowsort label-3525
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( col0 AS REAL ) NOT IN ( + + ( ( col0 ) ) * + - col1 - 11 * - + col1 * - + col0 )
----

query I rowsort
SELECT ALL - + 72 AS col2 FROM tab0 AS cor0
----
-72
-72
-72

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( col1 + - - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 76 + + col0 FROM tab0 AS cor0
----
-61
11
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT + COUNT( * ) + COUNT( ALL + + col2 ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3529
SELECT + COUNT ( * ) + COUNT ( ALL + + col2 ) FROM tab0 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 + col1 + + col2 col2 FROM tab0
----
124
152
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT ALL COUNT( * ) + 59 AS col1 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL COUNT ( * ) + 59 AS col1 FROM tab1 AS cor0
----
62

query I rowsort
SELECT ALL + 86 * - 72 FROM tab0 AS cor0
----
-6192
-6192
-6192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col2 col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3534
SELECT ALL - - MAX( DISTINCT + + 20 ) DIV + COUNT( * ) + + + COUNT( * ) * - 74 + MAX( + col1 ) FROM tab2 cor0
----
-139

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL - - MAX ( DISTINCT + + 20 ) / + COUNT ( * ) + + + COUNT ( * ) * - 74 + MAX ( + col1 ) FROM tab2 cor0
----
-139

query I rowsort
SELECT col0 + - - 3 FROM tab0 AS cor0
----
100
18
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3536
SELECT * FROM tab0 AS cor0 WHERE + 63 + - col0 * - + CAST( NULL AS SIGNED ) * + 94 + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3536
SELECT * FROM tab0 AS cor0 WHERE + 63 + - col0 * - + CAST ( NULL AS INTEGER ) * + 94 + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT ALL - ( - + SUM( ALL + - ( - + col1 ) ) ) * + - 41 + - COUNT( * ) AS col0 FROM tab1
----
-2709

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL - ( - + SUM ( ALL + - ( - + col1 ) ) ) * + - 41 + - COUNT ( * ) AS col0 FROM tab1
----
-2709

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT COUNT( * ) + + MIN( DISTINCT - col0 ) FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-3538
SELECT COUNT ( * ) + + MIN ( DISTINCT - col0 ) FROM tab2
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-3539
SELECT DISTINCT col1 + - ( - - col2 ) + - ( + col0 ) DIV col1 FROM tab0
----
-195
34
7

skipif mysql # not compatible
query I rowsort label-3539
SELECT DISTINCT col1 + - ( - - col2 ) + - ( + col0 ) / col1 FROM tab0
----
-195
34
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT DISTINCT + + MAX( + 49 ) - 93 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT + + MAX ( + 49 ) - 93 FROM tab2 AS cor0
----
-44

query I rowsort
SELECT - col2 + - col1 FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3542
SELECT ALL + col0 * - 96 + + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-1425
-8265
-9215

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL + col0 * - 96 + + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-1425
-8265
-9215

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 = - + col0
----

query I rowsort
SELECT ALL - 88 * - 90 + + col0 FROM tab2 cor0
----
7966
7984
7995

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3545
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 + + 16 / + col0 * + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3545
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 + + 16 / + col0 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * 65 FROM tab0
----
3055
6435
650

query I rowsort
SELECT ALL 47 * + - 85 AS col1 FROM tab2
----
-3995
-3995
-3995

query II rowsort
SELECT 62 AS col2, 31 - col2 + - + col0 + + col0 FROM tab0
----
62
-16
62
-68
62
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3549
SELECT * FROM tab0 WHERE NOT + col2 = - CAST( NULL AS SIGNED ) * 59 * + col2 + - - col0 + + 31
----

skipif mysql # not compatible
query III rowsort label-3549
SELECT * FROM tab0 WHERE NOT + col2 = - CAST ( NULL AS INTEGER ) * 59 * + col2 + - - col0 + + 31
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3550
SELECT - col1 AS col1, CAST( col2 AS SIGNED ) * - ( - + col2 ) AS col0 FROM tab1
----
-14
9216
-47
4624
-5
3481

skipif mysql # not compatible
query II rowsort label-3550
SELECT - col1 AS col1, CAST ( col2 AS INTEGER ) * - ( - + col2 ) AS col0 FROM tab1
----
-14
9216
-47
4624
-5
3481

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT ALL - - COUNT( * ) FROM tab2 WHERE NOT ( NULL ) <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3551
SELECT ALL - - COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) <> ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3552
SELECT COUNT( * ), - MIN( DISTINCT - col1 ) AS col0 FROM tab1
----
3
47

skipif mysql # not compatible
query II rowsort label-3552
SELECT COUNT ( * ), - MIN ( DISTINCT - col1 ) AS col0 FROM tab1
----
3
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT DISTINCT + 85 * + - COUNT( * ) AS col2 FROM tab1
----
-255

skipif mysql # not compatible
query I rowsort label-3553
SELECT DISTINCT + 85 * + - COUNT ( * ) AS col2 FROM tab1
----
-255

query I rowsort
SELECT - 8 AS col2 FROM tab2 AS cor0 WHERE 92 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT DISTINCT - MIN( ALL - col2 ) FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-3555
SELECT DISTINCT - MIN ( ALL - col2 ) FROM tab0 cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT + + 65 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-3556
SELECT + + 65 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-195

query I rowsort
SELECT 10 * + col1 + col0 AS col0 FROM tab1
----
135
191
561

onlyif mysql # DIV for integer division: 
query II rowsort label-3558
SELECT col1 + - + col0 * col1 DIV - + col1, col1 FROM tab0
----
108
21
96
81
98
1

skipif mysql # not compatible
query II rowsort label-3558
SELECT col1 + - + col0 * col1 / - + col1, col1 FROM tab0
----
108
21
96
81
98
1

query I rowsort
SELECT + col0 + + + col0 + 12 AS col0 FROM tab2
----
104
140
162

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT ALL - COUNT( - col1 ) + + - 22 * - + 46 - - 18 AS col1 FROM tab1
----
1027

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL - COUNT ( - col1 ) + + - 22 * - + 46 - - 18 AS col1 FROM tab1
----
1027

query I rowsort
SELECT ALL col2 * - col0 + - 23 AS col2 FROM tab1
----
-4919
-5038
-6211

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT ALL - col1 + - col0 * + + 82 AS col0 FROM tab2 AS cor0
----
-3823
-5325
-6217

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * - 64 + - - 3 * - - col0 + + - 13 NOT BETWEEN - col1 - - + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT ALL SUM( ALL - 58 ) AS col2 FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-3565
SELECT ALL SUM ( ALL - 58 ) AS col2 FROM tab2 AS cor0
----
-174

query I rowsort
SELECT + 0 * - - ( 70 ) FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT - COUNT( * ) FROM tab0 cor0 WHERE ( NULL ) < ( + - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3567
SELECT - COUNT ( * ) FROM tab0 cor0 WHERE ( NULL ) < ( + - col0 )
----
0

query I rowsort
SELECT - ( - 17 ) AS col1 FROM tab2 AS cor0
----
17
17
17

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 68 + + 70 BETWEEN + - 16 AND col1 + - 94
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3570
SELECT col1 DIV - + col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3570
SELECT col1 / - + col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT - col2 - + - col0 + - - col2 + ( - + col2 ) AS col2 FROM tab2
----
17
23
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3572
SELECT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) * - col1 + + col2 = + - col0
----

skipif mysql # not compatible
query III rowsort label-3572
SELECT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) * - col1 + + col2 = + - col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 63 + - + 36 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + - col2 + + 65 <= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3575
SELECT DISTINCT col2 + - - CAST( - - col0 AS SIGNED ) + - 32 + 97 * - 34, col0 * + CAST( NULL AS SIGNED ) + - col1 col0 FROM tab1
----
-3171
NULL
-3183
NULL
-3186
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3575
SELECT DISTINCT col2 + - - CAST ( - - col0 AS INTEGER ) + - 32 + 97 * - 34, col0 * + CAST ( NULL AS INTEGER ) + - col1 col0 FROM tab1
----
-3171
NULL
-3183
NULL
-3186
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + + col2 col1 FROM tab2 AS cor0
----
104
133
69

query II rowsort
SELECT DISTINCT + col1, col0 * - col0 FROM tab1 AS cor0 WHERE NULL >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT - - ( + - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3578
SELECT - - ( + - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 col0, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT DISTINCT + MIN( ALL + 23 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3580
SELECT DISTINCT + MIN ( ALL + 23 ) FROM tab2 AS cor0
----
23

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NOT - + 67 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col1, col0 col2 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col1 - - + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT DISTINCT SUM( DISTINCT - 9 ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3584
SELECT DISTINCT SUM ( DISTINCT - 9 ) AS col0 FROM tab2 AS cor0
----
-9

query II rowsort
SELECT + ( + - col2 ) AS col2, + col0 * - 12 AS col0 FROM tab0 AS cor0
----
-10
-1044
-47
-180
-99
-1164

query II rowsort
SELECT - col1 AS col1, - col2 FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-3587
SELECT + col0, 14 DIV - 56 FROM tab2 AS cor0
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-3587
SELECT + col0, 14 / - 56 FROM tab2 AS cor0
----
46
0
64
0
75
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3588
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab2 WHERE + + 31 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3588
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab2 WHERE + + 31 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT ALL MIN( - + col0 ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-3589
SELECT ALL MIN ( - + col0 ) AS col0 FROM tab2
----
-75

query I rowsort
SELECT DISTINCT + 57 + - 55 AS col2 FROM tab1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3591
SELECT ALL * FROM tab0 WHERE NOT - 56 / - + col0 + col0 NOT IN ( + - col2, col0 + - 43, - - 25 + - col0 + 21, - CAST( + 78 AS SIGNED ), - + 11 * + 85 - + - col0 )
----

skipif mysql # not compatible
query III rowsort label-3591
SELECT ALL * FROM tab0 WHERE NOT - 56 / - + col0 + col0 NOT IN ( + - col2, col0 + - 43, - - 25 + - col0 + 21, - CAST ( + 78 AS INTEGER ), - + 11 * + 85 - + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT ALL COUNT( * ) + + 38 AS col0 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-3592
SELECT ALL COUNT ( * ) + + 38 AS col0 FROM tab1
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 + - + 96 col2 FROM tab1
----
-127
-127
-127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3594
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) / + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) / + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT DISTINCT - COUNT( ALL - + col1 ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3595
SELECT DISTINCT - COUNT ( ALL - + col1 ) col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT col2 - + 79 - + + col1 + + - col0 * - 7 * - 54 AS col0 FROM tab1
----
-19275
-32155
-34456

query III rowsort
SELECT * FROM tab2 cor0 WHERE 94 * + col0 <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 65 >= + 97 * + - 76
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL = - col0
----
0

skipif mysql # not compatible
query I rowsort label-3599
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL = - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT DISTINCT - COUNT( ALL col2 ) * COUNT( * ) * ( ( + 61 ) ) FROM tab1
----
-549

skipif mysql # not compatible
query I rowsort label-3600
SELECT DISTINCT - COUNT ( ALL col2 ) * COUNT ( * ) * ( ( + 61 ) ) FROM tab1
----
-549

query I rowsort
SELECT - 1 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 * 9 * + col1 AS col1 FROM tab0
----
10935
16443
873

query I rowsort
SELECT - 36 * - ( - + 62 ) FROM tab2
----
-2232
-2232
-2232

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT DISTINCT + - COUNT( ALL ( - col1 ) ) FROM tab1 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3604
SELECT DISTINCT + - COUNT ( ALL ( - col1 ) ) FROM tab1 WHERE NULL >= NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col0 - - 62 AND NULL
----

query I rowsort
SELECT + ( - col1 ) * - col0 * col1 FROM tab2
----
119646
336675
379456

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3607
SELECT col0 AS col1, - CAST( NULL AS SIGNED ) * col2 + + CAST( col0 AS SIGNED ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-3607
SELECT col0 AS col1, - CAST ( NULL AS INTEGER ) * col2 + + CAST ( col0 AS INTEGER ) FROM tab1
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT 77 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT ALL ( ( + col0 ) ) AS col1 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT - SUM( ALL - col1 ) + 70 AS col0 FROM tab0 cor0
----
173

skipif mysql # not compatible
query I rowsort label-3610
SELECT - SUM ( ALL - col1 ) + 70 AS col0 FROM tab0 cor0
----
173

query I rowsort
SELECT DISTINCT + ( - - 54 ) FROM tab2 AS cor0
----
54

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 > + - col2
----

query I rowsort
SELECT ALL + 5 * - col0 FROM tab2 AS cor0
----
-230
-320
-375

query I rowsort
SELECT DISTINCT + + col1 + + col0 - col2 * + col0 FROM tab0 AS cor0
----
-609
-762
-9505

query I rowsort
SELECT ( - - 67 ) FROM tab2
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT + SUM( - + col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-3616
SELECT + SUM ( - + col1 ) FROM tab0
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, 11 col0 FROM tab1
----
51
11
85
11
91
11

query II rowsort
SELECT - 36, + col2 FROM tab0
----
-36
10
-36
47
-36
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT DISTINCT COUNT( * ) + + + 56 * COUNT( * ) AS col1 FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-3619
SELECT DISTINCT COUNT ( * ) + + + 56 * COUNT ( * ) AS col1 FROM tab2
----
171

query I rowsort
SELECT DISTINCT + col1 * - ( + col1 ) + + col2 FROM tab2
----
-2578
-4431
-5889

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 15, 35 * + 28 + + ( + col0 ) col1 FROM tab0
----
15
1067
15
1077
15
995

query I rowsort
SELECT ALL - col1 + 0 AS col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL < ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT ALL COUNT( * ) * - COUNT( * ) + 58 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL COUNT ( * ) * - COUNT ( * ) + 58 FROM tab0 AS cor0
----
49

query I rowsort
SELECT DISTINCT + 69 + - col2 AS col0 FROM tab0 cor0
----
-30
22
59

query I rowsort
SELECT DISTINCT - + col1 * + + col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT + - col2 + + 89 AS col2 FROM tab2 AS cor0
----
31
49
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE - 9 + + 99 * + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE - 9 + + 99 * + col0 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - + 21 + + 47 * 74 FROM tab1 AS cor0
----
3457

query I rowsort
SELECT ALL - col2 - - - col0 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT ALL 24 * 80 * + - ( - - 84 ) + - COUNT( * ) * COUNT( * ) AS col0 FROM tab0 cor0
----
-161289

skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL 24 * 80 * + - ( - - 84 ) + - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 cor0
----
-161289

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - - col2 * - 73 * + col2 col2 FROM tab2 AS cor0
----
1776382
18417900
7475200

query I rowsort
SELECT DISTINCT col0 * + - col2 * - col2 - - col1 AS col0 FROM tab0 AS cor0
----
33216
8721
950698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3634
SELECT - CAST( MIN( + col0 ) AS SIGNED ) * - 43 FROM tab2 AS cor0
----
1978

skipif mysql # not compatible
query I rowsort label-3634
SELECT - CAST ( MIN ( + col0 ) AS INTEGER ) * - 43 FROM tab2 AS cor0
----
1978

query I rowsort
SELECT DISTINCT - 47 * + col2 * + + col1 * + col2 FROM tab0 AS cor0
----
-460647
-8409663
-98700

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= - - col2
----

query I rowsort
SELECT DISTINCT + 64 * + 97 AS col0 FROM tab0
----
6208

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3638
SELECT DISTINCT col0 AS col0, + ( - + CAST( NULL AS SIGNED ) ) / col0 col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3638
SELECT DISTINCT col0 AS col0, + ( - + CAST ( NULL AS INTEGER ) ) / col0 col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3639
SELECT ALL 47 DIV - 28 col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3639
SELECT ALL 47 / - 28 col2 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3640
SELECT ALL CAST( - 6 AS SIGNED ) FROM tab1
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL CAST ( - 6 AS INTEGER ) FROM tab1
----
-6
-6
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3641
SELECT DISTINCT 65 DIV + - COUNT( * ) * 1 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-3641
SELECT DISTINCT 65 / + - COUNT ( * ) * 1 FROM tab1
----
-21

query II rowsort
SELECT ALL col2, col0 + + - col0 AS col1 FROM tab0
----
10
0
47
0
99
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 col2 FROM tab2
----
44
44
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3644
SELECT DISTINCT + 6 * - 31 + col1 AS col1, + 34 / - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
-139
NULL
-172
NULL
-181
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3644
SELECT DISTINCT + 6 * - 31 + col1 AS col1, + 34 / - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
-139
NULL
-172
NULL
-181
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, - 18 col1 FROM tab2 AS cor0
----
-51
-18
-67
-18
-77
-18

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 44 BETWEEN NULL AND + - col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 4 >= NULL
----

query II rowsort
SELECT col2, col1 AS col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT - + 68 AS col0 FROM tab2 cor0
----
-68
-68
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3650
SELECT - - COUNT( * ) * - COUNT( - CAST( - 72 AS SIGNED ) ) - - MIN( + col2 ) AS col1 FROM tab1 cor0
----
50

skipif mysql # not compatible
query I rowsort label-3650
SELECT - - COUNT ( * ) * - COUNT ( - CAST ( - 72 AS INTEGER ) ) - - MIN ( + col2 ) AS col1 FROM tab1 cor0
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3651
SELECT MAX( ALL - col1 ) DIV + COUNT( DISTINCT - + col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3651
SELECT MAX ( ALL - col1 ) / + COUNT ( DISTINCT - + col1 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT - + ( + + 49 ) * + + col0 FROM tab1 AS cor0
----
-2499
-4165
-4459

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT - SUM( ALL col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3653
SELECT - SUM ( ALL col2 ) FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3654
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND + CAST( NULL AS SIGNED ) + + col0
----

skipif mysql # not compatible
query III rowsort label-3654
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER ) + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 + + - 24 col1 FROM tab1
----
14
14
14

query III rowsort
SELECT * FROM tab2 WHERE 8 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 83 + - col1 AS col1 FROM tab0
----
2
62
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - - col1 * 38 * col2 col2 FROM tab2
----
117117
147735
44625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3659
SELECT CAST( NULL AS SIGNED ) + - 25 * + col2 * - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3659
SELECT CAST ( NULL AS INTEGER ) + - 25 * + col2 * - col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3660
SELECT 41 DIV + col1 + - col1 FROM tab1
----
-12
-47
3

skipif mysql # not compatible
query I rowsort label-3660
SELECT 41 / + col1 + - col1 FROM tab1
----
-12
-47
3

query I rowsort
SELECT col2 + + col1 AS col0 FROM tab2 cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT DISTINCT + + 53 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT + + 53 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + + 37 col1 FROM tab1 AS cor0
----
2183
2516
3552

query I rowsort
SELECT 41 - 43 FROM tab2
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT DISTINCT MAX( DISTINCT - 69 ) * COUNT( ALL - 57 ) + 88 AS col1 FROM tab0
----
-119

skipif mysql # not compatible
query I rowsort label-3665
SELECT DISTINCT MAX ( DISTINCT - 69 ) * COUNT ( ALL - 57 ) + 88 AS col1 FROM tab0
----
-119

onlyif mysql # DIV for integer division: 
query I rowsort label-3666
SELECT col2 DIV col1 - col1 FROM tab0
----
-21
-81
98

skipif mysql # not compatible
query I rowsort label-3666
SELECT col2 / col1 - col1 FROM tab0
----
-21
-81
98

query I rowsort
SELECT + col0 - - + col0 + + + col0 AS col2 FROM tab1
----
153
255
273

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT COUNT( * ) + - SUM( col2 ) AS col2 FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-3668
SELECT COUNT ( * ) + - SUM ( col2 ) AS col2 FROM tab0
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3669
SELECT ALL CAST( - - col2 AS SIGNED ) - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL CAST ( - - col2 AS INTEGER ) - col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT - 38 + + + COUNT( + - col2 ) * COUNT( * ) FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-3670
SELECT - 38 + + + COUNT ( + - col2 ) * COUNT ( * ) FROM tab2 AS cor0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3671
SELECT DISTINCT CAST( + col0 AS SIGNED ) + col2 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
196
62
97

skipif mysql # not compatible
query I rowsort label-3671
SELECT DISTINCT CAST ( + col0 AS INTEGER ) + col2 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
196
62
97

query II rowsort
SELECT ALL - - col0 - + - 99, - col2 AS col2 FROM tab0 AS cor0
----
114
-47
186
-10
196
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3673
SELECT SUM( DISTINCT CAST( NULL AS SIGNED ) ) + + CAST( - 47 AS SIGNED ) * + + 3 col0 FROM tab2 AS cor0 WHERE NOT NULL = - col2 - + - col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3673
SELECT SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) + + CAST ( - 47 AS INTEGER ) * + + 3 col0 FROM tab2 AS cor0 WHERE NOT NULL = - col2 - + - col0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 67 = - - 37 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3675
SELECT CAST( - 26 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3675
SELECT CAST ( - 26 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3676
SELECT ALL + + COUNT( * ) * - CAST( SUM( DISTINCT col0 ) AS SIGNED ), COUNT( * ) AS col1 FROM tab2 AS cor0
----
-555
3

skipif mysql # not compatible
query II rowsort label-3676
SELECT ALL + + COUNT ( * ) * - CAST ( SUM ( DISTINCT col0 ) AS INTEGER ), COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-555
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 25 * - col1 <= NULL
----

query I rowsort
SELECT 25 * - + col1 * - - col2 AS col1 FROM tab2
----
-29325
-77000
-97150

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT DISTINCT SUM( ALL - - col0 ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-3679
SELECT DISTINCT SUM ( ALL - - col0 ) AS col2 FROM tab1
----
227

query I rowsort
SELECT ALL col2 * ( - col0 ) AS col1 FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3681
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = col2 * - - 27 * + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3683
SELECT ALL - ( - col0 ) DIV - - col0 AS col2 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3683
SELECT ALL - ( - col0 ) / - - col0 AS col2 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - - ( + ( - col0 ) ) FROM tab1 AS cor0
----
-51
-85
-91

query II rowsort
SELECT DISTINCT + col1, 57 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) * + - 70 + ( ( + col2 ) ) + col2 col0 FROM tab1 AS cor0
----
-4012
-4624
-6528

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col1 * - - col2 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT - ( COUNT( * ) ) + - 82 * - - 45 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3693

skipif mysql # not compatible
query I rowsort label-3688
SELECT - ( COUNT ( * ) ) + - 82 * - - 45 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3693

query III rowsort
SELECT * FROM tab2 cor0 WHERE + ( - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1 col1, + col2 col0 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT + ( 3 ) AS col1 FROM tab0 cor0
----
3
3
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 82 * + col1 >= NULL
----

query I rowsort
SELECT - ( - + 44 ) FROM tab1
----
44
44
44

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 81 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-3695
SELECT col2 DIV + - col2, 13 + + col0 AS col0 FROM tab0
----
-1
100
-1
110
-1
28

skipif mysql # not compatible
query II rowsort label-3695
SELECT col2 / + - col2, 13 + + col0 AS col0 FROM tab0
----
-1
100
-1
110
-1
28

query III rowsort
SELECT ALL * FROM tab0 WHERE 75 IS NULL
----

query I rowsort
SELECT ALL + col1 + - + col2 AS col2 FROM tab0
----
-98
11
34

query II rowsort
SELECT DISTINCT - col1 + + 62 AS col1, col2 FROM tab2 cor0
----
-15
40
-5
58
11
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT ALL - - ( + + 54 ) * COUNT( * ) - + - 52 col2 FROM tab2 AS cor0
----
214

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3699
SELECT ALL - - ( + + 54 ) * COUNT ( * ) - + - 52 col2 FROM tab2 AS cor0
----
214

query I rowsort
SELECT + col0 - + + col1 AS col2 FROM tab1 AS cor0
----
37
44
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 71 col2 FROM tab0 AS cor0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3702
SELECT ALL CAST( + 98 AS SIGNED ) * 92 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( + col0 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL CAST ( + 98 AS INTEGER ) * 92 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( + col0 ) AND NULL
----

query I rowsort
SELECT + col2 + 78 + - col1 - + + col1 AS col0 FROM tab0
----
-37
175
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT - ( + COUNT( * ) ) + - - COUNT( * ) - MIN( col0 ) * COUNT( col0 ) * 83 FROM tab2
----
-11454

skipif mysql # not compatible
query I rowsort label-3704
SELECT - ( + COUNT ( * ) ) + - - COUNT ( * ) - MIN ( col0 ) * COUNT ( col0 ) * 83 FROM tab2
----
-11454

onlyif mysql # aggregate syntax: 
query II rowsort label-3705
SELECT DISTINCT COUNT( * ) AS col0, MAX( DISTINCT - col0 ) AS col0 FROM tab0
----
3
-15

skipif mysql # not compatible
query II rowsort label-3705
SELECT DISTINCT COUNT ( * ) AS col0, MAX ( DISTINCT - col0 ) AS col0 FROM tab0
----
3
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT + SUM( ALL + 21 ) AS col1 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-3706
SELECT + SUM ( ALL + 21 ) AS col1 FROM tab2
----
63

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + ( + col1 ) IN ( + 77 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3708
SELECT 97 AS col1, COUNT( * ) FROM tab0
----
97
3

skipif mysql # not compatible
query II rowsort label-3708
SELECT 97 AS col1, COUNT ( * ) FROM tab0
----
97
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT DISTINCT - - MAX( col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT - - MAX ( col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 col0, - col2 AS col1 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + - col1 >= NULL
----

query II rowsort
SELECT ALL - col2 * col2 AS col2, col1 FROM tab1
----
-3481
5
-4624
47
-9216
14

query II rowsort
SELECT col2 * + + col1 AS col2, + col0 * + col0 + - col1 FROM tab1
----
1344
2587
295
7220
3196
8234

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE NOT - 1 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT DISTINCT + + 6 FROM tab2 WHERE NOT ( NULL > - col1 )
----

query I rowsort
SELECT + 6 * - 2 FROM tab1
----
-12
-12
-12

query I rowsort
SELECT col2 * 1 AS col2 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT DISTINCT - MAX( ALL + 84 ) FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-3718
SELECT DISTINCT - MAX ( ALL + 84 ) FROM tab0 AS cor0
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3719
SELECT + - MAX( ALL col0 ) DIV - 5 FROM tab1 cor0
----
18

skipif mysql # not compatible
query I rowsort label-3719
SELECT + - MAX ( ALL col0 ) / - 5 FROM tab1 cor0
----
18

query I rowsort
SELECT DISTINCT + + col2 * - - 30 FROM tab2 AS cor0
----
1200
1740
690

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3721
SELECT ALL ( CAST( NULL AS DECIMAL ) ) AS col2, col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-3721
SELECT ALL ( CAST ( NULL AS REAL ) ) AS col2, col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT DISTINCT - - 23 AS col0 FROM tab1 AS cor0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3723
SELECT + COUNT( * ) / 30 / + CAST( NULL AS SIGNED ) * 15 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3723
SELECT + COUNT ( * ) / 30 / + CAST ( NULL AS INTEGER ) * 15 col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT - - COUNT( * ) * + SUM( DISTINCT + col1 ) + + + 47 FROM tab0 WHERE NULL IN ( + 5, col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3724
SELECT - - COUNT ( * ) * + SUM ( DISTINCT + col1 ) + + + 47 FROM tab0 WHERE NULL IN ( + 5, col2 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - col1 col0 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-3726
SELECT ALL ( col2 ) DIV col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL ( col2 ) / col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3727
SELECT ALL col1 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + 71 + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL col1 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + 71 + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3728
SELECT 78 * - + CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-4602
-5304
-7488

skipif mysql # not compatible
query I rowsort label-3728
SELECT 78 * - + CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-4602
-5304
-7488

query II rowsort
SELECT col1 * 59 + + col2, 64 AS col0 FROM tab2 AS cor0
----
3032
64
4011
64
4583
64

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 36 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3731
SELECT CAST( + col2 AS SIGNED ) + 33 FROM tab0
----
132
43
80

skipif mysql # not compatible
query I rowsort label-3731
SELECT CAST ( + col2 AS INTEGER ) + 33 FROM tab0
----
132
43
80

query I rowsort
SELECT ALL 58 + - 26 FROM tab2
----
32
32
32

query I rowsort
SELECT col1 + + 31 FROM tab0
----
112
32
52

query I rowsort
SELECT DISTINCT - + 92 - 21 AS col2 FROM tab0 AS cor0
----
-113

query II rowsort
SELECT + col1, - ( - 74 ) FROM tab0 AS cor0
----
1
74
21
74
81
74

query I rowsort
SELECT - col1 * - 61 * - col0 * - - col0 AS col1 FROM tab1 cor0
----
-2203625
-2221254
-23741627

query II rowsort
SELECT ALL + col1, col1 FROM tab0 cor0
----
1
1
21
21
81
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 51 > - + 93
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3739
SELECT DISTINCT CAST( + 25 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-3739
SELECT DISTINCT CAST ( + 25 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
25

query I rowsort
SELECT DISTINCT + + col2 AS col2 FROM tab0 cor0 WHERE col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3741
SELECT + - CAST( + - 59 AS SIGNED ) FROM tab2 AS cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-3741
SELECT + - CAST ( + - 59 AS INTEGER ) FROM tab2 AS cor0
----
59
59
59

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT - col0 = + col0 + - col0 + + col2
----
23
40
58

query I rowsort
SELECT ALL col2 * - 73 AS col0 FROM tab1
----
-4307
-4964
-7008

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 - - ( col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT ( - - MIN( - ( - col0 ) ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3745
SELECT ( - - MIN ( - ( - col0 ) ) ) FROM tab0
----
15

query I rowsort
SELECT DISTINCT - ( + 68 ) AS col1 FROM tab0
----
-68

query I rowsort
SELECT - col1 * 87 AS col2 FROM tab0
----
-1827
-7047
-87

query I rowsort
SELECT - 82 * + col2 FROM tab2
----
-1886
-3280
-4756

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 61 * col0 + - + 93 + - + 46 IS NOT NULL
----

query I rowsort
SELECT + + 75 FROM tab1 cor0
----
75
75
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 88 >= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT SUM( ALL + - 99 ) AS col2 FROM tab1
----
-297

skipif mysql # not compatible
query I rowsort label-3752
SELECT SUM ( ALL + - 99 ) AS col2 FROM tab1
----
-297

onlyif mysql # DIV for integer division: 
query I rowsort label-3753
SELECT 76 DIV - col0 + + 94 AS col0 FROM tab0
----
89
94
94

skipif mysql # not compatible
query I rowsort label-3753
SELECT 76 / - col0 + + 94 AS col0 FROM tab0
----
89
94
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - - col1 col1 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT ALL MAX( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL MAX ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
58

query I rowsort
SELECT 16 + 28 + - ( col1 ) * - col1 FROM tab2 AS cor0
----
2645
4533
5973

query I rowsort
SELECT DISTINCT + col2 * - 27 AS col0 FROM tab1 AS cor0
----
-1593
-1836
-2592

onlyif mysql # DIV for integer division: 
query I rowsort label-3758
SELECT + 60 DIV - 97 col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3758
SELECT + 60 / - 97 col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + + 33 AS col2 FROM tab2 cor0
----
33
33
33

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col2 * + 24 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 < 8
----

query I rowsort
SELECT ALL 74 * + col1 AS col0 FROM tab0 AS cor0
----
1554
5994
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT - COUNT( * ) * ( + SUM( - + col2 ) ) AS col2 FROM tab0 cor0
----
468

skipif mysql # not compatible
query I rowsort label-3763
SELECT - COUNT ( * ) * ( + SUM ( - + col2 ) ) AS col2 FROM tab0 cor0
----
468

onlyif mysql # aggregate syntax: 
query II rowsort label-3764
SELECT + COUNT( * ) - - 82 col2, - 70 FROM tab0
----
85
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3764
SELECT + COUNT ( * ) - - 82 col2, - 70 FROM tab0
----
85
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT DISTINCT MIN( + ( + - col0 ) ) + + 49 + - 10 + + COUNT( * ) FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-3765
SELECT DISTINCT MIN ( + ( + - col0 ) ) + + 49 + - 10 + + COUNT ( * ) FROM tab0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT + SUM( ALL + 75 ) + - 95 FROM tab2 AS cor0
----
130

skipif mysql # not compatible
query I rowsort label-3766
SELECT + SUM ( ALL + 75 ) + - 95 FROM tab2 AS cor0
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT COUNT( - ( - 17 ) ) * + - 55 + - + MIN( 50 ) AS col2 FROM tab0 cor0
----
-215

skipif mysql # not compatible
query I rowsort label-3767
SELECT COUNT ( - ( - 17 ) ) * + - 55 + - + MIN ( 50 ) AS col2 FROM tab0 cor0
----
-215

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 + 72 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT 1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 43, 30 AS col2 FROM tab1 AS cor0 WHERE + col2 < col2 + + - col1 + - - 54
----
43
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3771
SELECT * FROM tab0 cor0 WHERE NOT col0 * + + CAST( NULL AS SIGNED ) = - 48 * - col0 + + 33 / + - 20
----

skipif mysql # not compatible
query III rowsort label-3771
SELECT * FROM tab0 cor0 WHERE NOT col0 * + + CAST ( NULL AS INTEGER ) = - 48 * - col0 + + 33 / + - 20
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3772
SELECT + - MAX( 17 ) DIV - - COUNT( - ( + + col0 ) ) FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3772
SELECT + - MAX ( 17 ) / - - COUNT ( - ( + + col0 ) ) FROM tab0 AS cor0
----
-5

query II rowsort
SELECT ALL 79 AS col2, + col0 FROM tab1 AS cor0
----
79
51
79
85
79
91

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NULL <> 97 * - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3775
SELECT DISTINCT - + col1 DIV + + col0 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3775
SELECT DISTINCT - + col1 / + + col0 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT + col1 + + + col2 + - + 63 FROM tab2 WHERE NOT NULL IS NOT NULL
----
11
54
62

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3777
SELECT * FROM tab0 WHERE NOT + col2 NOT BETWEEN 40 AND - CAST( NULL AS DECIMAL ) * + 76
----

skipif mysql # not compatible
query III rowsort label-3777
SELECT * FROM tab0 WHERE NOT + col2 NOT BETWEEN 40 AND - CAST ( NULL AS REAL ) * + 76
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3778
SELECT ALL + CAST( + 25 AS SIGNED ) * + 89 + - 36 * - CAST( NULL AS SIGNED ) + + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL + CAST ( + 25 AS INTEGER ) * + 89 + - 36 * - CAST ( NULL AS INTEGER ) + + col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 - - ( 16 ) * + col1 * col2 * + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col2 + - col2 * + col2 <= + 37
----

query I rowsort
SELECT 99 + + 97 FROM tab0 AS cor0
----
196
196
196

query I rowsort
SELECT DISTINCT + + 98 AS col2 FROM tab0 AS cor0
----
98

query I rowsort
SELECT DISTINCT + 24 * + col1 AS col0 FROM tab0 AS cor0
----
1944
24
504

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT - MIN( - 91 ) col2 FROM tab2, tab0 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3784
SELECT - MIN ( - 91 ) col2 FROM tab2, tab0 AS cor0
----
91

query I rowsort
SELECT ALL - 49 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT + MIN( ALL + 58 ) AS col0 FROM tab0, tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3786
SELECT + MIN ( ALL + 58 ) AS col0 FROM tab0, tab1 AS cor0
----
58

query I rowsort
SELECT ALL 94 * + 34 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e73b546ac42746cffed0ffb5539e0d89

query I rowsort
SELECT DISTINCT + + 30 - 3 AS col0 FROM tab1 AS cor0
----
27

query III rowsort
SELECT * FROM tab2 cor0 WHERE 37 + col2 >= ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 - + + col0 col0 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT ALL - col1 * + col2 + + col0 FROM tab1 AS cor0
----
-1293
-210
-3105

query I rowsort
SELECT + - 41 * 13 - - col1 * + col2 AS col0 FROM tab1 cor0
----
-238
2663
811

query I rowsort
SELECT DISTINCT 44 * + 9 AS col1 FROM tab0 AS cor0
----
396

query I rowsort
SELECT ALL - col0 * + col0 * col2 FROM tab0 AS cor0
----
-10575
-75690
-931491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3795
SELECT ALL + + COUNT( * ) - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL + + COUNT ( * ) - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 71 col0 FROM tab2 cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT ALL + COUNT( * ) * + + 75 FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-3797
SELECT ALL + COUNT ( * ) * + + 75 FROM tab2 AS cor0
----
225

query III rowsort
SELECT ALL * FROM tab2 WHERE + 11 BETWEEN - col0 AND ( - 73 )
----

query I rowsort
SELECT DISTINCT 98 + + col1 FROM tab1
----
103
112
145

query I rowsort
SELECT DISTINCT - 77 - - ( + 90 ) AS col2 FROM tab0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3801
SELECT + COUNT( * ) AS col1, MAX( ALL CAST( + - CAST( NULL AS SIGNED ) AS DECIMAL ) ) AS col0 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3801
SELECT + COUNT ( * ) AS col1, MAX ( ALL CAST ( + - CAST ( NULL AS INTEGER ) AS REAL ) ) AS col0 FROM tab0
----
3
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3802
SELECT DISTINCT - COUNT( * ) * - CAST( NULL AS SIGNED ) - 46 * + 24 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3802
SELECT DISTINCT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) - 46 * + 24 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + col0 * - + 52 - + col0 * col1 AS col0 FROM tab1 cor0
----
-3366
-4845
-9009

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 = + ( 21 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3805
SELECT ALL - 19, - CAST( NULL AS DECIMAL ) / + + CAST( NULL AS SIGNED ) + + 10 * + + 82 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 22ffd6e9ec5746ca393bfae736b59efb

skipif mysql # not compatible
query II rowsort label-3805
SELECT ALL - 19, - CAST ( NULL AS REAL ) / + + CAST ( NULL AS INTEGER ) + + 10 * + + 82 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 22ffd6e9ec5746ca393bfae736b59efb

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3806
SELECT - MIN( DISTINCT + + col2 ) DIV 51 AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3806
SELECT - MIN ( DISTINCT + + col2 ) / 51 AS col2 FROM tab1
----
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 = - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + col1 * col2 AS col2 FROM tab2 cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3809
SELECT ALL + - COUNT( ALL 49 ) DIV + 27 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3809
SELECT ALL + - COUNT ( ALL 49 ) / + 27 FROM tab1 AS cor0
----
0

query II rowsort
SELECT col2 AS col0, - ( - col0 ) + col1 FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL - col0 * + + col0 AS col2, - col1 FROM tab1 cor0
----
-2601
-14
-7225
-5
-8281
-47

query I rowsort
SELECT DISTINCT - ( - col1 ) AS col2 FROM tab0 AS cor0 WHERE - col1 NOT IN ( col2 )
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3813
SELECT ( + + col0 ) DIV - + col2 + col0 * - 2 AS col1 FROM tab0 AS cor0 WHERE NOT ( - col2 + + + 86 ) IS NULL
----
-182
-194
-30

skipif mysql # not compatible
query I rowsort label-3813
SELECT ( + + col0 ) / - + col2 + col0 * - 2 AS col1 FROM tab0 AS cor0 WHERE NOT ( - col2 + + + 86 ) IS NULL
----
-182
-194
-30

query I rowsort
SELECT DISTINCT + 14 FROM tab2, tab0 AS cor0
----
14

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 * + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3816
SELECT + COUNT( * ) DIV - 8 FROM tab0, tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3816
SELECT + COUNT ( * ) / - 8 FROM tab0, tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT DISTINCT - COUNT( ALL 75 ) AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT - COUNT ( ALL 75 ) AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT COUNT( * ) * 83 AS col1 FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-3818
SELECT COUNT ( * ) * 83 AS col1 FROM tab2
----
249

query I rowsort
SELECT DISTINCT col0 + 16 AS col1 FROM tab0
----
103
113
31

query II rowsort
SELECT - col2, col2 AS col0 FROM tab0
----
-10
10
-47
47
-99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + + col0 col1 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT ALL + 44 + COUNT( * ) FROM tab0 WHERE ( + 32 ) * + 91 + col0 / col2 NOT BETWEEN NULL AND + col0
----
47

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL + 44 + COUNT ( * ) FROM tab0 WHERE ( + 32 ) * + 91 + col0 / col2 NOT BETWEEN NULL AND + col0
----
47

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 + + col2 NOT BETWEEN NULL AND ( 17 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 FROM tab1 WHERE 33 * col0 > NULL
----

query I rowsort
SELECT + 75 + - col2 * + 32 FROM tab0
----
-1429
-245
-3093

query I rowsort
SELECT - col0 + ( + ( 72 ) ) FROM tab1
----
-13
-19
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT + COUNT( * ) * 17 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3827
SELECT + COUNT ( * ) * 17 FROM tab2
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3828
SELECT COUNT( * ) DIV 97 + + ( - COUNT( * ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3828
SELECT COUNT ( * ) / 97 + + ( - COUNT ( * ) ) FROM tab2
----
-3

query I rowsort
SELECT - col2 + 89 * - col1 AS col2 FROM tab1
----
-1342
-4251
-504

query I rowsort
SELECT DISTINCT col1 * col2 + + col2 FROM tab1
----
1440
3264
354

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col0 + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3832
SELECT ALL CAST( + col0 AS SIGNED ) * + col0 AS col1 FROM tab0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL CAST ( + col0 AS INTEGER ) * + col0 AS col1 FROM tab0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT DISTINCT + COUNT( ALL col2 ) col0 FROM tab0 WHERE NOT - col0 / + col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3833
SELECT DISTINCT + COUNT ( ALL col2 ) col0 FROM tab0 WHERE NOT - col0 / + col0 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( - 45 ) > + ( - col2 )
----
75
67
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 * col0 col0 FROM tab0
----
1296
1848
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3836
SELECT DISTINCT - col0 DIV ( col0 ) col0 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3836
SELECT DISTINCT - col0 / ( col0 ) col0 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT ALL + ( COUNT( * ) ) AS col2 FROM tab2 WHERE - 69 * 16 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL + ( COUNT ( * ) ) AS col2 FROM tab2 WHERE - 69 * 16 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT DISTINCT - MAX( ALL - col1 ) - + COUNT( * ) * - COUNT( * ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT - MAX ( ALL - col1 ) - + COUNT ( * ) * - COUNT ( * ) FROM tab2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT - 97 - MIN( 77 ) AS col1 FROM tab1
----
-174

skipif mysql # not compatible
query I rowsort label-3839
SELECT - 97 - MIN ( 77 ) AS col1 FROM tab1
----
-174

onlyif mysql # DIV for integer division: 
query I rowsort label-3840
SELECT + 13 DIV col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3840
SELECT + 13 / col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - col2 * - col2 + + 30 FROM tab1 WHERE - col2 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3842
SELECT - COUNT( * ) DIV - COUNT( 11 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3842
SELECT - COUNT ( * ) / - COUNT ( 11 ) FROM tab0
----
1

query I rowsort
SELECT ALL 20 + - ( col0 ) FROM tab0 WHERE + col1 + - 75 * + col0 BETWEEN col0 / + 74 AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 NOT BETWEEN - 15 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3845
SELECT col0 DIV + 2 AS col1 FROM tab2
----
23
32
37

skipif mysql # not compatible
query I rowsort label-3845
SELECT col0 / + 2 AS col1 FROM tab2
----
23
32
37

query I rowsort
SELECT + ( - 2 ) FROM tab1
----
-2
-2
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3847
SELECT + CAST( + COUNT( * ) AS SIGNED ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3847
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3848
SELECT DISTINCT col0 + + CAST( 1 AS SIGNED ) FROM tab1 WHERE NULL IS NULL
----
52
86
92

skipif mysql # not compatible
query I rowsort label-3848
SELECT DISTINCT col0 + + CAST ( 1 AS INTEGER ) FROM tab1 WHERE NULL IS NULL
----
52
86
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT + COUNT( ( + col1 ) ) + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3849
SELECT + COUNT ( ( + col1 ) ) + COUNT ( * ) FROM tab1
----
6

query I rowsort
SELECT DISTINCT ( + 9 ) * col1 AS col2 FROM tab0 AS cor0
----
189
729
9

query I rowsort
SELECT ALL 32 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
32
32
32

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 JOIN tab0 ON NOT NULL IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT DISTINCT 67 FROM tab2 AS cor0 CROSS JOIN tab0
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3854
SELECT DISTINCT ( 61 ) DIV COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3854
SELECT DISTINCT ( 61 ) / COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
6

query I rowsort
SELECT DISTINCT + - col2 * ( - col1 * - ( ( col1 ) ) ) FROM tab1 AS cor0
----
-1475
-150212
-18816

onlyif mysql # DIV for integer division: 
query I rowsort label-3856
SELECT DISTINCT - 18 DIV + col1 FROM tab0 AS cor0
----
-18
0

skipif mysql # not compatible
query I rowsort label-3856
SELECT DISTINCT - 18 / + col1 FROM tab0 AS cor0
----
-18
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3857
SELECT + CAST( NULL AS SIGNED ) / col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3857
SELECT + CAST ( NULL AS INTEGER ) / col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT - COUNT( * ) * 69 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 80 )
----
0

skipif mysql # not compatible
query I rowsort label-3858
SELECT - COUNT ( * ) * 69 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 80 )
----
0

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) < ( col0 + + col2 / col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 9 * col1 NOT IN ( - 10 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col1 * + col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3862
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - col0 + - 83 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3862
SELECT DISTINCT - CAST ( NULL AS REAL ) * - col0 + - 83 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 72 FROM tab0 WHERE NOT + col0 + - col0 > ( + col1 + col1 * - 43 )
----

query I rowsort
SELECT ALL - col2 + + - 70 + + col2 * col2 FROM tab2
----
1490
3236
436

query I rowsort
SELECT ALL 87 * + col0 FROM tab2 WHERE ( + col0 ) > 35
----
4002
5568
6525

query I rowsort
SELECT 38 + - col1 + 25 AS col2 FROM tab0
----
-18
42
62

query I rowsort
SELECT DISTINCT col2 + ( - col2 ) + - 47 * + col0 FROM tab1
----
-2397
-3995
-4277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 * + ( + 39 ) col1 FROM tab1
----
136
1765
450

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT ALL COUNT( 97 ) + + 76 FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL COUNT ( 97 ) + + 76 FROM tab1
----
79

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL >= - 11
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3871
SELECT + ( + ( col0 ) ) / - CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE ( col2 ) BETWEEN ( col2 - - col0 ) AND 75
----

skipif mysql # not compatible
query I rowsort label-3871
SELECT + ( + ( col0 ) ) / - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE ( col2 ) BETWEEN ( col2 - - col0 ) AND 75
----

query I rowsort
SELECT col0 * - - col2 * col0 + ( 55 ) FROM tab0 AS cor0
----
10630
75745
931546

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE - col0 * + 70 NOT BETWEEN ( NULL ) AND col0 + col0
----
0

skipif mysql # not compatible
query I rowsort label-3873
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE - col0 * + 70 NOT BETWEEN ( NULL ) AND col0 + col0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 53 / - col2 IN ( + 6 - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3875
SELECT DISTINCT + col1 DIV + col1 + 78 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-3875
SELECT DISTINCT + col1 / + col1 + 78 FROM tab1 AS cor0
----
79

query I rowsort
SELECT DISTINCT col1 * col1 + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3877
SELECT ALL - 73 * + 26 + + col1 - 18 DIV + col1 * - col2 FROM tab2
----
-1821
-1831
-1847

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL - 73 * + 26 + + col1 - 18 / + col1 * - col2 FROM tab2
----
-1821
-1831
-1847

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT + COUNT( * ) - - + 24 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-3878
SELECT + COUNT ( * ) - - + 24 FROM tab1
----
27

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 AS cor0 WHERE 25 * + + 26 IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 - + 66 * - col0 + - col0 col0 FROM tab0 AS cor0
----
1056
5676
6306

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT - 89 * + 34 + - COUNT( * ) FROM tab2 AS cor0
----
-3029

skipif mysql # not compatible
query I rowsort label-3881
SELECT - 89 * + 34 + - COUNT ( * ) FROM tab2 AS cor0
----
-3029

query I rowsort
SELECT col2 + + col0 + + col0 AS col0 FROM tab1 AS cor0
----
198
229
250

query I rowsort
SELECT DISTINCT + 25 - + + ( col2 ) FROM tab2 AS cor0
----
-15
-33
2

query II rowsort
SELECT DISTINCT - col1 AS col2, 87 * col1 * 97 AS col2 FROM tab1 AS cor0
----
-14
118146
-47
396633
-5
42195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3885
SELECT ALL - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * - - col0 IN ( + ( col2 ) + + 96 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( 99 ) / col0 NOT IN ( - col1 * + col2 + - col2 )
----

query I rowsort
SELECT + 78 * - col0 AS col0 FROM tab2
----
-3588
-4992
-5850

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 + - col0 + - ( col1 ) < col0 * col0 + col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 26 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 21 * - + col2 FROM tab2
----
1218
483
840

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT + 45 + + MAX( ALL + + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
136

skipif mysql # not compatible
query I rowsort label-3892
SELECT + 45 + + MAX ( ALL + + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
136

query I rowsort
SELECT ALL - col1 * 19 AS col2 FROM tab2
----
-1273
-1463
-969

query I rowsort
SELECT - 78 * col1 FROM tab1
----
-1092
-3666
-390

query I rowsort
SELECT DISTINCT col2 * col1 * + - col0 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT - COUNT( * ) + + MIN( ALL col2 ) FROM tab2 WHERE NOT ( col0 ) > - col0 * col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3896
SELECT - COUNT ( * ) + + MIN ( ALL col2 ) FROM tab2 WHERE NOT ( col0 ) > - col0 * col1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * col1 = NULL
----

query I rowsort
SELECT DISTINCT - col2 * - 32 FROM tab0
----
1504
3168
320

query I rowsort
SELECT + col2 * + col2 + + + col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 76 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - col1 AS col2, - col0 AS col1 FROM tab0 cor0
----
-1
-97
-21
-87
-81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IN ( 36 / - col1, col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3902
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IN ( 36 / - col1, col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3903
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 * + 12 - - - col0 / + 97 NOT BETWEEN col1 / + 62 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3903
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 * + 12 - - - col0 / + 97 NOT BETWEEN col1 / + 62 AND CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3904
SELECT + col1 DIV - col2 * + col1 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3904
SELECT + col1 / - col2 * + col1 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 99 * col2 AS col2 FROM tab2 AS cor0
----
2277
3960
5742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 col0 FROM tab2 AS cor0 WHERE ( col2 ) IS NOT NULL
----
1173
3080
3886

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3907
SELECT DISTINCT col0 + + 71 AS col0 FROM tab1 WHERE NULL >= CAST( col2 AS DECIMAL ) - + + 68 * col2
----

skipif mysql # not compatible
query I rowsort label-3907
SELECT DISTINCT col0 + + 71 AS col0 FROM tab1 WHERE NULL >= CAST ( col2 AS REAL ) - + + 68 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT DISTINCT MIN( + 66 ) AS col0 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-3908
SELECT DISTINCT MIN ( + 66 ) AS col0 FROM tab2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3909
SELECT 98, + CAST( + col2 AS SIGNED ) AS col0 FROM tab1
----
98
59
98
68
98
96

skipif mysql # not compatible
query II rowsort label-3909
SELECT 98, + CAST ( + col2 AS INTEGER ) AS col0 FROM tab1
----
98
59
98
68
98
96

query I rowsort
SELECT DISTINCT 63 + 56 FROM tab0
----
119

query I rowsort
SELECT ALL + col0 * - - col0 * - 56 AS col0 FROM tab1
----
-145656
-404600
-463736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3912
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 + + CAST( + - col2 AS SIGNED ) * - ( + col2 ) * + col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3912
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 + + CAST ( + - col2 AS INTEGER ) * - ( + col2 ) * + col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3913
SELECT + COUNT( * ) + - COUNT( * ) col2 FROM tab0 WHERE ( + col2 * - - CAST( NULL AS DECIMAL ) * + col1 - - CAST( + col0 AS SIGNED ) + - 27 ) NOT IN ( + 99 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3913
SELECT + COUNT ( * ) + - COUNT ( * ) col2 FROM tab0 WHERE ( + col2 * - - CAST ( NULL AS REAL ) * + col1 - - CAST ( + col0 AS INTEGER ) + - 27 ) NOT IN ( + 99 )
----
0

query I rowsort
SELECT - 86 + - col1 * 45 AS col1 FROM tab1 WHERE col1 >= ( col2 + + - col2 )
----
-2201
-311
-716

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE - + col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col0 * + col0 BETWEEN + + 20 AND + 41 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND 25
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3918
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - + 75 AND - 53
----

skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - + 75 AND - 53
----

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 cor0 WHERE NOT col1 IS NULL
----
15
87
97

query I rowsort
SELECT - - AVG ( - col0 ) AS col2 FROM tab2 WHERE NULL BETWEEN col2 + - ( - col0 ) AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3921
SELECT - 8 AS col1 FROM tab1 WHERE - + ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3921
SELECT - 8 AS col1 FROM tab1 WHERE - + ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 2 * 55 col1 FROM tab0 AS cor0 WHERE col0 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 57 - 10 AS col0, 93 col1 FROM tab1 AS cor0
----
47
93
47
93
47
93

query I rowsort
SELECT col2 * + - 94 - + col2 FROM tab1 cor0
----
-5605
-6460
-9120

query I rowsort
SELECT DISTINCT ( col0 ) + col0 * + col0 AS col0 FROM tab2 AS cor0 WHERE ( 34 * col1 * + ( + ( - - col0 ) ) * + col1 + 68 / 49 ) NOT BETWEEN col2 AND 88
----
2162
4160
5700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3926
SELECT DISTINCT - COUNT( ALL + col2 ) AS col1, CAST( - 85 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3
-85

skipif mysql # not compatible
query II rowsort label-3926
SELECT DISTINCT - COUNT ( ALL + col2 ) AS col1, CAST ( - 85 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3
-85

query I rowsort
SELECT ALL 66 * - + 16 AS col0 FROM tab1 AS cor0
----
-1056
-1056
-1056

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3928
SELECT - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col1 <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT SUM( ALL 78 ) AS col0 FROM tab2 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-3929
SELECT SUM ( ALL 78 ) AS col0 FROM tab2 AS cor0
----
234

query II rowsort
SELECT 34, col1 FROM tab1
----
34
14
34
47
34
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 + + - col1 NOT BETWEEN NULL AND ( - col2 )
----

query I rowsort
SELECT ALL ( + 65 ) AS col1 FROM tab2
----
65
65
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3933
SELECT - 40 DIV - col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3933
SELECT - 40 / - col0 AS col0 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT - 87 AS col2, + 6 AS col1 FROM tab0
----
-87
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT ALL ( 9 ) * - COUNT( ( + 54 ) ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL ( 9 ) * - COUNT ( ( + 54 ) ) FROM tab1
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-3936
SELECT - - col1 DIV - + col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3936
SELECT - - col1 / - + col2 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT - - 20 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3938
SELECT * FROM tab0 WHERE NOT CAST( - - col1 AS SIGNED ) + - CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-3938
SELECT * FROM tab0 WHERE NOT CAST ( - - col1 AS INTEGER ) + - CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT + col1 * + col2 * 40 * col1 * + col0 FROM tab1 WHERE NOT + col0 BETWEEN NULL AND - 63
----
38384640
5015000
546771680

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT DISTINCT - MAX( ( + + col0 ) ) col2 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3940
SELECT DISTINCT - MAX ( ( + + col0 ) ) col2 FROM tab1
----
-91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( - col0 * + col1 - + + 25 )
----

query I rowsort
SELECT DISTINCT - + ( + 14 ) FROM tab0 AS cor0
----
-14

query I rowsort
SELECT - col2 * - 79 FROM tab1 AS cor0
----
4661
5372
7584

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT 79 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-3944
SELECT 79 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3945
SELECT ALL + COUNT( + + col0 ) + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL + COUNT ( + + col0 ) + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3946
SELECT - 42 + + col2 DIV col1 AS col1 FROM tab2 cor0
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-3946
SELECT - 42 + + col2 / col1 AS col1 FROM tab2 cor0
----
-42
-42
-42

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3947
SELECT * FROM tab0 WHERE CAST( + + 87 AS DECIMAL ) * - col2 + col2 + + 9 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3947
SELECT * FROM tab0 WHERE CAST ( + + 87 AS REAL ) * - col2 + col2 + + 9 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 NOT BETWEEN NULL AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3949
SELECT DISTINCT - 27 + - col1 + CAST( NULL AS SIGNED ) + - col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT - 27 + - col1 + CAST ( NULL AS INTEGER ) + - col2 FROM tab0
----
NULL

query I rowsort
SELECT - - 74 AS col0 FROM tab1 WHERE NULL IS NULL
----
74
74
74

query III rowsort
SELECT ALL * FROM tab0 WHERE + 59 * + 41 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 58 + + ( + col1 ) FROM tab1
----
-11
-44
-53

query I rowsort
SELECT ALL 28 + + 12 AS col1 FROM tab2
----
40
40
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 97 col1 FROM tab1 AS cor0
----
-97

query I rowsort
SELECT - - col2 * + 40 + col0 * - - 46 AS col2 FROM tab0 AS cor0
----
2570
4402
8422

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT + 80 + COUNT( * ) + 83 AS col0 FROM tab1 WHERE + col0 IS NOT NULL
----
166

skipif mysql # not compatible
query I rowsort label-3956
SELECT + 80 + COUNT ( * ) + 83 AS col0 FROM tab1 WHERE + col0 IS NOT NULL
----
166

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + ( - - col1 ), col1 col2 FROM tab1 WHERE NULL IS NULL
----
-14
14
-47
47
-5
5

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + + 14 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT - SUM( + - 27 ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-3959
SELECT - SUM ( + - 27 ) FROM tab1
----
81

query II rowsort
SELECT + 72, + col1 AS col1 FROM tab0 AS cor0
----
72
1
72
21
72
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3961
SELECT ALL * FROM tab2 AS cor0 WHERE 62 + + col1 IN ( CAST( - col2 AS SIGNED ), + 11 )
----

skipif mysql # not compatible
query III rowsort label-3961
SELECT ALL * FROM tab2 AS cor0 WHERE 62 + + col1 IN ( CAST ( - col2 AS INTEGER ), + 11 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3962
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND CAST( + col0 AS SIGNED ) + + col0
----

skipif mysql # not compatible
query I rowsort label-3962
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND CAST ( + col0 AS INTEGER ) + + col0
----

query I rowsort
SELECT ALL - col1 * + col2 - - col1 FROM tab0 AS cor0
----
-189
-3726
-98

query I rowsort
SELECT DISTINCT - col2 - 63 FROM tab0 AS cor0 WHERE NOT + 78 + - - col2 NOT BETWEEN NULL AND - 37
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3965
SELECT + CAST( + - 39 AS SIGNED ) / - 41 FROM tab0 WHERE NOT 55 * + + col0 + 22 <> NULL
----

skipif mysql # not compatible
query I rowsort label-3965
SELECT + CAST ( + - 39 AS INTEGER ) / - 41 FROM tab0 WHERE NOT 55 * + + col0 + 22 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT 28 * - + COUNT( * ) * 23 col1 FROM tab1
----
-1932

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3966
SELECT 28 * - + COUNT ( * ) * 23 col1 FROM tab1
----
-1932

query I rowsort
SELECT col0 * + col0 * col1 * - col0 FROM tab2
----
-20185088
-28265625
-4964136

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT DISTINCT - SUM( + col0 ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-3968
SELECT DISTINCT - SUM ( + col0 ) AS col2 FROM tab0
----
-199

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3969
SELECT + CAST( NULL AS DECIMAL ) * 96 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3969
SELECT + CAST ( NULL AS REAL ) * 96 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 0 * - - col1 FROM tab2
----
0
0
0

query II rowsort
SELECT - col2 * - 45, - col1 - + - col2 AS col1 FROM tab2
----
1035
-28
1800
-37
2610
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3972
SELECT + CAST( + COUNT( * ) AS SIGNED ) AS col2, COUNT( * ) AS col1 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-3972
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col2, COUNT ( * ) AS col1 FROM tab1
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3973
SELECT ALL + col2 + + - col0 col2, - CAST( + - col1 AS SIGNED ) FROM tab0 AS cor0
----
-77
21
2
1
32
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3973
SELECT ALL + col2 + + - col0 col2, - CAST ( + - col1 AS INTEGER ) FROM tab0 AS cor0
----
-77
21
2
1
32
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - col1 ) + 62 - + + 29 + 75 col1 FROM tab2 cor0
----
159
175
185

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT 77 + 15 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT ALL + - ( - COUNT( * ) ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL + - ( - COUNT ( * ) ) AS col0 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3977
SELECT ALL col1 AS col0, col2 * + CAST( + - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
-9801
21
-100
81
-2209

skipif mysql # not compatible
query II rowsort label-3977
SELECT ALL col1 AS col0, col2 * + CAST ( + - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
-9801
21
-100
81
-2209

query I rowsort
SELECT + - col2 * + - col1 + 26 - + col1 * + - col0 FROM tab1 AS cor0
----
2084
746
7499

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT + 5 * - - SUM( ALL + col1 ) FROM tab0 cor0 WHERE - col2 + col0 + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3979
SELECT + 5 * - - SUM ( ALL + col1 ) FROM tab0 cor0 WHERE - col2 + col0 + col1 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - 13 * + col2 AS col0 FROM tab1 AS cor0
----
-1248
-767
-884

query I rowsort
SELECT + 37 * - 30 FROM tab0
----
-1110
-1110
-1110

query I rowsort
SELECT ALL + col1 + - col0 + + col1 FROM tab2
----
56
59
90

query I rowsort
SELECT + col0 * 15 FROM tab0
----
1305
1455
225

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT SUM( ALL 73 ) FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-3984
SELECT SUM ( ALL 73 ) FROM tab1
----
219

query I rowsort
SELECT ALL + col2 + - col1 + - col0 AS col2 FROM tab1
----
-31
-70
31

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 1 IS NULL
----

query I rowsort
SELECT ALL - - col1 * + col0 - col0 AS col0 FROM tab2 AS cor0
----
2300
4864
4950

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3988
SELECT * FROM tab0 AS cor0 WHERE + col2 * - CAST( NULL AS SIGNED ) * + - col1 * - 15 * - col0 + - + 27 >= col2 + + 19
----

skipif mysql # not compatible
query III rowsort label-3988
SELECT * FROM tab0 AS cor0 WHERE + col2 * - CAST ( NULL AS INTEGER ) * + - col1 * - 15 * - col0 + - + 27 >= col2 + + 19
----

query I rowsort
SELECT - 29 * 73 + col1 AS col0 FROM tab0 AS cor0 WHERE - col0 + - ( + 24 ) IS NOT NULL
----
-2036
-2096
-2116

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT + + 84 - + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
75

skipif mysql # not compatible
query I rowsort label-3990
SELECT + + 84 - + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT DISTINCT COUNT( * ) * ( - COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-3991
SELECT DISTINCT COUNT ( * ) * ( - COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT ALL - - COUNT( * ) - + 58 - - 10 * + 72 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
671

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL - - COUNT ( * ) - + 58 - - 10 * + 72 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
671

query I rowsort
SELECT DISTINCT + 18 * - 15 FROM tab0 AS cor0
----
-270

query I rowsort
SELECT ALL - + col0 FROM tab0 AS cor0 WHERE 42 / - + col2 <= - col0
----

query I rowsort
SELECT ALL - - col1 FROM tab2 AS cor0 WHERE NULL IN ( 39 * - col2, col1, - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT DISTINCT - COUNT( * ) * - 53 AS col1 FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-3996
SELECT DISTINCT - COUNT ( * ) * - 53 AS col1 FROM tab0 AS cor0
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-3997
SELECT DISTINCT - 78 DIV + + col1 AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT - 78 / + + col1 AS col2 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( - col0 ) * 33 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3999
SELECT DISTINCT + col0 DIV - 4 col2 FROM tab1 AS cor0
----
-12
-21
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3999
SELECT DISTINCT + col0 / - 4 col2 FROM tab1 AS cor0
----
-12
-21
-22

query I rowsort
SELECT 57 * - 67 + + + 73 AS col1 FROM tab1 AS cor0
----
-3746
-3746
-3746

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1, - 21 col0 FROM tab1 cor0
----
14
-21
47
-21
5
-21

query I rowsort
SELECT 89 FROM tab0 WHERE NOT NULL IS NOT NULL
----
89
89
89

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col0 NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT ALL SUM( + col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4004
SELECT ALL SUM ( + col2 ) AS col0 FROM tab0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-4005
SELECT ( - + 85 ) DIV - 73 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4005
SELECT ( - + 85 ) / - 73 FROM tab2
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 56 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT DISTINCT - MAX( 23 ) FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT - MAX ( 23 ) FROM tab1 AS cor0
----
-23

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 * - col0 IS NOT NULL
----

query II rowsort
SELECT ALL - col2 AS col0, 37 AS col2 FROM tab1 AS cor0
----
-59
37
-68
37
-96
37

query I rowsort
SELECT col2 + + col2 + - 55 + + col1 AS col1 FROM tab0 AS cor0
----
-14
120
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT ALL COUNT( * ) + - + 8 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL COUNT ( * ) + - + 8 FROM tab0
----
-5

query I rowsort
SELECT DISTINCT + - 31 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-31

query I rowsort
SELECT - - 94 - + 22 AS col1 FROM tab2 AS cor0
----
72
72
72

query I rowsort
SELECT + 12 + + + 62 + - col1 FROM tab0 AS cor0
----
-7
53
73

query I rowsort
SELECT + + col0 + + 31 + + col1 * ( - col1 ) FROM tab0 AS cor0
----
-323
-6515
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4016
SELECT ALL CAST( + 5 AS SIGNED ) AS col0 FROM tab1
----
5
5
5

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL CAST ( + 5 AS INTEGER ) AS col0 FROM tab1
----
5
5
5

query I rowsort
SELECT DISTINCT col1 * + col0 + + ( - ( - - col0 ) ) FROM tab0
----
0
1200
1740

query I rowsort
SELECT ALL col1 + - 24 FROM tab2
----
27
43
53

query II rowsort
SELECT DISTINCT col2 - col1 + - col2 AS col2, col2 + col0 + - col1 AS col0 FROM tab1
----
-14
133
-47
112
-5
139

onlyif mysql # aggregate syntax: 
query II rowsort label-4020
SELECT COUNT( * ), 89 + 92 * COUNT( ALL 84 ) AS col0 FROM tab2 cor0
----
3
365

skipif mysql # not compatible
query II rowsort label-4020
SELECT COUNT ( * ), 89 + 92 * COUNT ( ALL 84 ) AS col0 FROM tab2 cor0
----
3
365

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 = ( 98 * col1 * + 92 / + 46 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 - + col0 - + 26 / - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( + col2 ) * - 1 AS col2 FROM tab1 WHERE + - col1 - + + 58 IS NULL
----

query II rowsort
SELECT DISTINCT - col0 * + col2, col0 AS col2 FROM tab1
----
-4896
51
-5015
85
-6188
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT MAX( ALL - col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4025
SELECT MAX ( ALL - col1 ) AS col2 FROM tab0
----
-1

query I rowsort
SELECT - 68 AS col1 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NULL
----
-68
-68
-68

query I rowsort
SELECT DISTINCT + col1 * + - col0 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT ALL col1 * + + col0 AS col0 FROM tab1 cor0
----
425
4277
714

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 3 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 56 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + 63 + + col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 46 + - - 85 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT DISTINCT MIN( ALL + + col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4033
SELECT DISTINCT MIN ( ALL + + col0 ) AS col2 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT DISTINCT - ( + + ( + MAX( ALL + + 33 ) ) ) FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-4034
SELECT DISTINCT - ( + + ( + MAX ( ALL + + 33 ) ) ) FROM tab0
----
-33

query I rowsort
SELECT - ( - 62 ) AS col0 FROM tab1
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT - 26 * + - COUNT( * ) * 34 AS col2 FROM tab0
----
2652

skipif mysql # not compatible
query I rowsort label-4036
SELECT - 26 * + - COUNT ( * ) * 34 AS col2 FROM tab0
----
2652

query I rowsort
SELECT ALL col1 * + 24 FROM tab1
----
1128
120
336

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT COUNT( * ) * + COUNT( * ) * + 89 FROM tab1
----
801

skipif mysql # not compatible
query I rowsort label-4038
SELECT COUNT ( * ) * + COUNT ( * ) * + 89 FROM tab1
----
801

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 + + - 21 = + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT ALL + COUNT( * ) * + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-81

skipif mysql # not compatible
query I rowsort label-4040
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-81

query I rowsort
SELECT + col0 + + 69 + - 73 FROM tab1
----
47
81
87

query I rowsort
SELECT DISTINCT - col2 - + col1 * - 96 AS col2 FROM tab1
----
1248
421
4444

query II rowsort
SELECT - 71 AS col1, + col2 * + ( + col1 ) FROM tab0 AS cor0
----
-71
210
-71
3807
-71
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 10 col0 FROM tab2 AS cor0
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT - ( MAX( DISTINCT - + col2 ) ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4045
SELECT - ( MAX ( DISTINCT - + col2 ) ) AS col0 FROM tab0 AS cor0
----
10

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 65 * 32 + + 74 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT ALL - + MIN( ALL col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4047
SELECT ALL - + MIN ( ALL col2 ) AS col2 FROM tab2 AS cor0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-4048
SELECT - col0 DIV - col0 + col0 * + - col2 FROM tab1 AS cor0
----
-4895
-5014
-6187

skipif mysql # not compatible
query I rowsort label-4048
SELECT - col0 / - col0 + col0 * + - col2 FROM tab1 AS cor0
----
-4895
-5014
-6187

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4049
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4050
SELECT - 96 DIV col1 - - col2 * + 19 AS col1 FROM tab0
----
1785
186
892

skipif mysql # not compatible
query I rowsort label-4050
SELECT - 96 / col1 - - col2 * + 19 AS col1 FROM tab0
----
1785
186
892

query I rowsort
SELECT DISTINCT col2 + - col1 + - 45 + + 76 FROM tab2
----
-6
22
3

query III rowsort
SELECT * FROM tab2 WHERE 80 NOT BETWEEN + col1 + + - col1 + - + 99 AND ( ( - 6 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * col1 + - col2 * + col0 + 68 FROM tab1
----
-1843
-4114
-4522

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT DISTINCT + COUNT( - col1 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT + COUNT ( - col1 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE col0 < + 41
----
-81

onlyif mysql # aggregate syntax: 
query III rowsort label-4056
SELECT - - 89, COUNT( * ) AS col2, + COUNT( * ) + + - COUNT( * ) * 95 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
89
9
-846

skipif mysql # not compatible
query III rowsort label-4056
SELECT - - 89, COUNT ( * ) AS col2, + COUNT ( * ) + + - COUNT ( * ) * 95 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
89
9
-846

query II rowsort
SELECT ALL 62 * - ( + 53 ), col0 AS col2 FROM tab1
----
-3286
51
-3286
85
-3286
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4058
SELECT DISTINCT + 44 DIV + 54 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4058
SELECT DISTINCT + 44 / + 54 AS col2 FROM tab2 AS cor0
----
0

query II rowsort
SELECT - col2, - col2 AS col2 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

query II rowsort
SELECT + 40 AS col0, + 16 FROM tab0 AS cor0
----
40
16
40
16
40
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4061
SELECT DISTINCT SUM( + + CAST( + col1 AS SIGNED ) ) AS col0, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
103
-3

skipif mysql # not compatible
query II rowsort label-4061
SELECT DISTINCT SUM ( + + CAST ( + col1 AS INTEGER ) ) AS col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
103
-3

query II rowsort
SELECT ALL - col2, 55 AS col2 FROM tab0 AS cor0
----
-10
55
-47
55
-99
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4063
SELECT + ( - + CAST( - + COUNT( + col2 ) AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4063
SELECT + ( - + CAST ( - + COUNT ( + col2 ) AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 2 * 18 col2 FROM tab2 WHERE + 44 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT DISTINCT MIN( DISTINCT - col1 ) + + 0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-4065
SELECT DISTINCT MIN ( DISTINCT - col1 ) + + 0 FROM tab0
----
-81

query I rowsort
SELECT DISTINCT - col2 + + - col1 * + col2 AS col0 FROM tab0
----
-198
-220
-3854

query I rowsort
SELECT ALL ( col1 ) + + 2 + - col2 + + col1 + + col0 * 8 FROM tab2
----
449
628
678

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4068
SELECT CAST( NULL AS SIGNED ) * - col1 + - + 88 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4068
SELECT CAST ( NULL AS INTEGER ) * - col1 + - + 88 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 56 + - - col2 AS col2 FROM tab2
----
114
79
96

query II rowsort
SELECT - - 0 + + col2 * + 36 * col2, - col1 AS col2 FROM tab1 AS cor0
----
125316
-5
166464
-47
331776
-14

query I rowsort
SELECT - - col2 * - col1 + col1 - 49 FROM tab2 AS cor0
----
-1171
-3052
-3868

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT COUNT( * ) + + + 82 AS col1 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-4072
SELECT COUNT ( * ) + + + 82 AS col1 FROM tab2 AS cor0
----
85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4073
SELECT - col2 * + col0 + - 19 - - col2 * CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4073
SELECT - col2 * + col0 + - 19 - - col2 * CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - 20 AS col0 FROM tab0 AS cor0
----
-19
1
61

onlyif mysql # DIV for integer division: 
query I rowsort label-4075
SELECT + 17 DIV col2 + - ( + 24 ) + + + 61 * col1 AS col0 FROM tab2 AS cor0 WHERE ( NOT + ( - col1 ) BETWEEN + col1 AND + col1 )
----
3087
4063
4673

skipif mysql # not compatible
query I rowsort label-4075
SELECT + 17 / col2 + - ( + 24 ) + + + 61 * col1 AS col0 FROM tab2 AS cor0 WHERE ( NOT + ( - col1 ) BETWEEN + col1 AND + col1 )
----
3087
4063
4673

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT + 18 + - 7 + + + 24 FROM tab1 AS cor0 WHERE ( NULL ) >= + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT 27 * + ( 12 ) + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----
324

skipif mysql # not compatible
query I rowsort label-4078
SELECT 27 * + ( 12 ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----
324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4079
SELECT DISTINCT + 77 * col2 + CAST( + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1794
3120
4524

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT + 77 * col2 + CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1794
3120
4524

onlyif mysql # DIV for integer division: 
query I rowsort label-4080
SELECT DISTINCT - col0 DIV col1 * + 50 AS col1 FROM tab1 cor0
----
-150
-50
-850

skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT - col0 / col1 * + 50 AS col1 FROM tab1 cor0
----
-150
-50
-850

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + - col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 + + + col1 AS col1 FROM tab0
----
162
2
42

query I rowsort
SELECT 42 * col1 AS col1 FROM tab0
----
3402
42
882

query I rowsort
SELECT ALL - + 20 AS col1 FROM tab0 AS cor0
----
-20
-20
-20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4085
SELECT * FROM tab1 AS cor0 WHERE NOT 93 > CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4085
SELECT * FROM tab1 AS cor0 WHERE NOT 93 > CAST ( + col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT ALL COUNT( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL COUNT ( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT ALL COUNT( + 97 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL COUNT ( + 97 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT + 69 * - - col0 FROM tab2 AS cor0
----
3174
4416
5175

query II rowsort
SELECT DISTINCT ( col1 ) AS col1, - col0 + + col2 FROM tab2 AS cor0
----
51
-23
67
-17
77
-24

query I rowsort
SELECT ALL - ( - col2 ) + - 77 AS col0 FROM tab0 AS cor0 WHERE NOT 53 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4091
SELECT DISTINCT CAST( 87 AS SIGNED ) FROM tab0 cor0
----
87

skipif mysql # not compatible
query I rowsort label-4091
SELECT DISTINCT CAST ( 87 AS INTEGER ) FROM tab0 cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT MAX( - 90 ) FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-4092
SELECT MAX ( - 90 ) FROM tab1
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4093
SELECT DISTINCT - CAST( 88 AS SIGNED ) + - col0 * col2 + + 30 AS col0 FROM tab2
----
-1116
-2618
-4408

skipif mysql # not compatible
query I rowsort label-4093
SELECT DISTINCT - CAST ( 88 AS INTEGER ) + - col0 * col2 + + 30 AS col0 FROM tab2
----
-1116
-2618
-4408

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 27 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 14 ) + - - col2 + + - col2 col0 FROM tab1
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-4096
SELECT ALL + 62 AS col1, COUNT( * ) AS col0 FROM tab2 AS cor0
----
62
3

skipif mysql # not compatible
query II rowsort label-4096
SELECT ALL + 62 AS col1, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
62
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + - - 89 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 31 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col0 * - - 21 * - 70 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT DISTINCT - - MIN( ALL - + col1 ) FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4099
SELECT DISTINCT - - MIN ( ALL - + col1 ) FROM tab0 cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT + COUNT( * ) + - 64 FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-4100
SELECT + COUNT ( * ) + - 64 FROM tab2 AS cor0
----
-61

query I rowsort
SELECT DISTINCT 86 * ( - + 96 ) FROM tab2 AS cor0
----
-8256

query I rowsort
SELECT 28 + - col0 AS col2 FROM tab2
----
-18
-36
-47

query I rowsort
SELECT col1 * + - col1 + - ( - 28 ) AS col0 FROM tab0
----
-413
-6533
27

query III rowsort
SELECT * FROM tab1 WHERE + col1 * + - col2 + - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + col2 - col0 FROM tab0 cor0
----
-196
-62
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + - col1 <> + col1 / + 65
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 51 * + ( + - col2 ) - - col0 + - col1 FROM tab2 AS cor0
----
-1178
-2053
-2950

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT ALL + - 53 - COUNT( * ) FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL + - 53 - COUNT ( * ) FROM tab2 AS cor0
----
-56

query II rowsort
SELECT ALL + col1 * + 58 AS col0, 10 AS col2 FROM tab1 AS cor0
----
2726
10
290
10
812
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT - MIN( DISTINCT - - 48 ) - - 50 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-4110
SELECT - MIN ( DISTINCT - - 48 ) - - 50 FROM tab1 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4111
SELECT + + 10 - + col0 - - col1 - - CAST( - col1 AS SIGNED ) * 55 col1 FROM tab2 cor0
----
-2790
-3683
-4212

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4111
SELECT + + 10 - + col0 - - col1 - - CAST ( - col1 AS INTEGER ) * 55 col1 FROM tab2 cor0
----
-2790
-3683
-4212

onlyif mysql # DIV for integer division: 
query I rowsort label-4112
SELECT DISTINCT + col2 DIV + - ( - col1 ) FROM tab0 AS cor0
----
0
99

skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT + col2 / + - ( - col1 ) FROM tab0 AS cor0
----
0
99

query I rowsort
SELECT - col1 * + - 21 FROM tab2 AS cor0
----
1071
1407
1617

query I rowsort
SELECT 32 * + + col1 AS col2 FROM tab1
----
1504
160
448

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT DISTINCT SUM( ALL - 22 ) AS col0 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-4115
SELECT DISTINCT SUM ( ALL - 22 ) AS col0 FROM tab2
----
-66

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 BETWEEN NULL AND - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT 82 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT DISTINCT + SUM( + + 93 ) AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4118
SELECT DISTINCT + SUM ( + + 93 ) AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT 24 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT + SUM( - - col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-4120
SELECT + SUM ( - - col2 ) FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT COUNT( - 74 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4121
SELECT COUNT ( - 74 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4122
SELECT DISTINCT MIN( col2 ) DIV + 2 FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-4122
SELECT DISTINCT MIN ( col2 ) / + 2 FROM tab1 AS cor0
----
29

query I rowsort
SELECT DISTINCT - - col0 * - 33 AS col2 FROM tab1 AS cor0
----
-1683
-2805
-3003

onlyif mysql # DIV for integer division: 
query I rowsort label-4124
SELECT ALL 57 + - col1 DIV - ( - col2 ) AS col1 FROM tab1
----
57
57
57

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL 57 + - col1 / - ( - col2 ) AS col1 FROM tab1
----
57
57
57

onlyif mysql # aggregate syntax: 
query II rowsort label-4125
SELECT ALL - + COUNT( * ), - 27 AS col0 FROM tab0 AS cor0
----
-3
-27

skipif mysql # not compatible
query II rowsort label-4125
SELECT ALL - + COUNT ( * ), - 27 AS col0 FROM tab0 AS cor0
----
-3
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT - 48 * + + COUNT( * ) FROM tab2 cor0
----
-144

skipif mysql # not compatible
query I rowsort label-4126
SELECT - 48 * + + COUNT ( * ) FROM tab2 cor0
----
-144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 col0 FROM tab2 AS cor0
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 + + col0 col1 FROM tab2 AS cor0
----
39
57
68

query III rowsort
SELECT * FROM tab2 WHERE 37 * + + ( + col2 ) IS NULL
----

query I rowsort
SELECT ALL - 37 FROM tab0 WHERE NULL <> - - col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 14 NOT BETWEEN - col1 + - - 88 AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 89 * ( col2 ) + + col0 FROM tab0
----
4198
8908
977

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 17 * + 79 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4134
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 72 * - col2 FROM tab1 AS cor0
----
-4248
-4896
-6912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4136
SELECT ALL - CAST( NULL AS SIGNED ) * + 19 * - - ( - col1 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL - CAST ( NULL AS INTEGER ) * + 19 * - - ( - col1 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT ALL - COUNT( * ) * - + 63 AS col2 FROM tab1, tab2 AS cor0
----
567

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL - COUNT ( * ) * - + 63 AS col2 FROM tab1, tab2 AS cor0
----
567

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT 17 - COUNT( * ) FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-4138
SELECT 17 - COUNT ( * ) FROM tab2
----
14

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT col1 IS NULL
----
51
85
91

query I rowsort
SELECT ( + col1 ) - col0 AS col2 FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT SUM( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4141
SELECT SUM ( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT DISTINCT 24 * + + COUNT( * ) FROM tab0 cor0
----
72

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT 24 * + + COUNT ( * ) FROM tab0 cor0
----
72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4143
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 WHERE NOT + col0 + + + col2 + 12 * - - 56 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-4143
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 WHERE NOT + col0 + + + col2 + 12 * - - 56 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4144
SELECT ALL SUM( - - CAST( NULL AS DECIMAL ) ) * - 27 * - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4144
SELECT ALL SUM ( - - CAST ( NULL AS REAL ) ) * - 27 * - COUNT ( * ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - col1 * - + ( - col1 ) * + col0 + - ( - - 64 ) FROM tab0
----
-161
-38431
-98479

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4146
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - col0 * - 74 col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4146
SELECT DISTINCT CAST ( NULL AS REAL ) * - col0 * - 74 col0 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 19 < + col1 / - - col1 + 67
----

query I rowsort
SELECT DISTINCT col0 * ( - col1 ) * + 20 AS col1 FROM tab1 AS cor0
----
-14280
-8500
-85540

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4149
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL - CAST ( NULL AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT + 29, - col0 AS col1 FROM tab1
----
29
-51
29
-85
29
-91

query I rowsort
SELECT - 65 * + 71 FROM tab1
----
-4615
-4615
-4615

onlyif mysql # DIV for integer division: 
query I rowsort label-4152
SELECT ALL + - col0 DIV + col0 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4152
SELECT ALL + - col0 / + col0 FROM tab0 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT DISTINCT + - SUM( + col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4153
SELECT DISTINCT + - SUM ( + col1 ) AS col0 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
23
40
58

query II rowsort
SELECT col2, col0 AS col0 FROM tab1 cor0 WHERE 91 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4156
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4157
SELECT 56 DIV + col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4157
SELECT 56 / + col0 FROM tab1
----
0
0
1

query I rowsort
SELECT col2 * - 18 FROM tab2
----
-1044
-414
-720

query I rowsort
SELECT + ( - 85 ) AS col0 FROM tab0
----
-85
-85
-85

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> + 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT ALL COUNT( * ) - + 11 col1 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4161
SELECT ALL COUNT ( * ) - + 11 col1 FROM tab1 AS cor0
----
-8

query I rowsort
SELECT ALL - 73 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 85 NOT BETWEEN + col1 AND - + col1 + - ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - 38 - + - ( + col0 ) FROM tab1 AS cor0
----
13
47
53

query I rowsort
SELECT col2 + + + col2 * col2 + - + 9 FROM tab2 AS cor0
----
1631
3413
543

query II rowsort
SELECT DISTINCT 90 AS col0, col1 AS col1 FROM tab1 AS cor0
----
90
14
90
47
90
5

query I rowsort
SELECT DISTINCT + + col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( NULL BETWEEN NULL AND ( col1 + + - col0 ) ) )
----

query I rowsort
SELECT ALL + 14 * + - 96 AS col0 FROM tab2 cor0
----
-1344
-1344
-1344

query I rowsort
SELECT ( + + 63 ) FROM tab2 AS cor0
----
63
63
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 61 col1 FROM tab1 cor0
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT ALL - MIN( ALL + 75 ) col0 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4172
SELECT ALL - MIN ( ALL + 75 ) col0 FROM tab0 AS cor0
----
-75

query I rowsort
SELECT DISTINCT - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT col2 + col0 IS NULL
----
46
64
75

query II rowsort
SELECT 79 * - col0 AS col0, + col0 AS col0 FROM tab2 AS cor0
----
-3634
46
-5056
64
-5925
75

query II rowsort
SELECT ALL + col2 AS col0, 5 FROM tab1
----
59
5
68
5
96
5

query I rowsort
SELECT - col1 + - col0 FROM tab0 WHERE NOT ( NULL ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col0 NOT IN ( + ( 75 ) )
----

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-4179
SELECT SUM( 36 ) + 23 FROM tab0 cor0 WHERE NOT col1 / - 83 NOT BETWEEN 3 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4179
SELECT SUM ( 36 ) + 23 FROM tab0 cor0 WHERE NOT col1 / - 83 NOT BETWEEN 3 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT - COUNT( * ) * + + 0 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4180
SELECT - COUNT ( * ) * + + 0 AS col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, col1 + + + col2 FROM tab1 AS cor0
----
14
110
47
115
5
64

query I rowsort
SELECT ALL ( + - 90 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query II rowsort
SELECT ALL - ( - + 88 ), + 45 AS col0 FROM tab1
----
88
45
88
45
88
45

query I rowsort
SELECT + col1 FROM tab0 WHERE - + col2 >= + + col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col0 FROM tab0 WHERE ( - col0 = NULL )
----

query I rowsort
SELECT + col1 * + + col1 AS col1 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT + 31 * - 93 AS col0 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
-2883
-2883
-2883

onlyif mysql # DIV for integer division: 
query I rowsort label-4189
SELECT DISTINCT + col2 DIV - + col1 - - + col2 FROM tab1 AS cor0
----
48
67
90

skipif mysql # not compatible
query I rowsort label-4189
SELECT DISTINCT + col2 / - + col1 - - + col2 FROM tab1 AS cor0
----
48
67
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT ALL COUNT( - col2 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4190
SELECT ALL COUNT ( - col2 ) col0 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 col1 FROM tab1 cor0
----
-21
-21
-21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4192
SELECT ALL + MIN( DISTINCT - - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL + MIN ( DISTINCT - - CAST ( NULL AS REAL ) ) AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 BETWEEN ( + - col0 ) AND col2 * + col2 - - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT - 92 + - + SUM( - col2 ) FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-4194
SELECT - 92 + - + SUM ( - col2 ) FROM tab2 AS cor0
----
29

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 24 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + + col0 + - - 41 < ( - - col1 + col0 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT DISTINCT SUM( DISTINCT - + 96 ) + COUNT( * ) FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT SUM ( DISTINCT - + 96 ) + COUNT ( * ) FROM tab2
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4199
SELECT - CAST( NULL AS SIGNED ) + - - ( - col1 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4199
SELECT - CAST ( NULL AS INTEGER ) + - - ( - col1 ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col1 + - + col1 + + 4, + 44 AS col2 FROM tab1
----
-24
44
-6
44
-90
44

onlyif mysql # DIV for integer division: 
query II rowsort label-4201
SELECT DISTINCT - 62 - - col2 DIV - 43 + - + 10 DIV + 66 + ( + ( + 87 ) ) + col1 * - col2 AS col2, - col1 FROM tab0
----
-185
-21
-3783
-81
-76
-1

skipif mysql # not compatible
query II rowsort label-4201
SELECT DISTINCT - 62 - - col2 / - 43 + - + 10 / + 66 + ( + ( + 87 ) ) + col1 * - col2 AS col2, - col1 FROM tab0
----
-185
-21
-3783
-81
-76
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4202
SELECT ALL 11 * + col0 * + CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL 11 * + col0 * + CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col1 * col1 - - col1 AS col2, 39 * + col0 AS col0 FROM tab2 AS cor0
----
2652
1794
4556
2925
6006
2496

onlyif mysql # DIV for integer division: 
query I rowsort label-4204
SELECT + col2 * - 1 * ( + 82 ) - col0 + - 50 DIV col1 AS col2 FROM tab0 AS cor0
----
-3869
-8265
-909

skipif mysql # not compatible
query I rowsort label-4204
SELECT + col2 * - 1 * ( + 82 ) - col0 + - 50 / col1 AS col2 FROM tab0 AS cor0
----
-3869
-8265
-909

query I rowsort
SELECT + + col0 AS col2 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
15
87
97

query I rowsort
SELECT - 19 AS col2 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT 89 * + COUNT( * ) * + + COUNT( * ) FROM tab1
----
801

skipif mysql # not compatible
query I rowsort label-4207
SELECT 89 * + COUNT ( * ) * + + COUNT ( * ) FROM tab1
----
801

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT + - COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4208
SELECT + - COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4209
SELECT DISTINCT - - 80 AS col0, + CAST( - col2 AS SIGNED ) + col0 / + col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
80
NULL

skipif mysql # not compatible
query II rowsort label-4209
SELECT DISTINCT - - 80 AS col0, + CAST ( - col2 AS INTEGER ) + col0 / + col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
80
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 8 BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT + + col2, - col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

query II rowsort
SELECT DISTINCT - + 36 AS col1, 29 FROM tab0 AS cor0
----
-36
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT + COUNT( + + col0 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4213
SELECT + COUNT ( + + col0 ) FROM tab1 cor0
----
3

query II rowsort
SELECT + col2 * col0, 48 AS col0 FROM tab2
----
1058
48
2560
48
4350
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4215
SELECT DISTINCT + COUNT( * ), + 15 AS col2 FROM tab2, tab2 AS cor0
----
9
15

skipif mysql # not compatible
query II rowsort label-4215
SELECT DISTINCT + COUNT ( * ), + 15 AS col2 FROM tab2, tab2 AS cor0
----
9
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT DISTINCT - 11 * - COUNT( * ) * - - COUNT( col2 ) AS col2 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-4216
SELECT DISTINCT - 11 * - COUNT ( * ) * - - COUNT ( col2 ) AS col2 FROM tab1
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 20 ) * + - 88 col0 FROM tab2 AS cor0
----
1760
1760
1760

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT 30 IS NOT NULL
----

query I rowsort
SELECT - 60 + 41 - - col2 * - ( - - 48 ) FROM tab1
----
-2851
-3283
-4627

query I rowsort
SELECT 70 + + 61 + + ( + 94 ) FROM tab0
----
225
225
225

query I rowsort
SELECT ALL - ( + 25 ) AS col1 FROM tab0
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT DISTINCT 71 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-4222
SELECT DISTINCT 71 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
74

query II rowsort
SELECT ALL - col2 AS col2, col2 AS col2 FROM tab2 cor0
----
-23
23
-40
40
-58
58

query I rowsort
SELECT ALL - + col2 + - 17 FROM tab2 AS cor0
----
-40
-57
-75

query II rowsort
SELECT ALL col0, + 20 * + 67 * - - 21 * col0 FROM tab0 cor0
----
15
422100
87
2448180
97
2729580

onlyif mysql # aggregate syntax: 
query II rowsort label-4226
SELECT + - COUNT( * ) col0, + 66 FROM tab0 AS cor0
----
-3
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4226
SELECT + - COUNT ( * ) col0, + 66 FROM tab0 AS cor0
----
-3
66

query II rowsort
SELECT - 17 AS col2, 86 * + col1 FROM tab2 AS cor0
----
-17
4386
-17
5762
-17
6622

onlyif mysql # DIV for integer division: 
query I rowsort label-4228
SELECT + col2 DIV 75 + 27 FROM tab1 AS cor0
----
27
27
28

skipif mysql # not compatible
query I rowsort label-4228
SELECT + col2 / 75 + 27 FROM tab1 AS cor0
----
27
27
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT DISTINCT + + 49 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-4229
SELECT DISTINCT + + 49 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT + COUNT( * ) * 0 + - 93 AS col0 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-4230
SELECT + COUNT ( * ) * 0 + - 93 AS col0 FROM tab1 AS cor0
----
-93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 50 NOT BETWEEN 53 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT SUM( + + col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4232
SELECT SUM ( + + col2 ) AS col0 FROM tab0 AS cor0
----
156

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NOT - ( + col1 ) IS NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4234
SELECT - 92 DIV - - COUNT( * ) AS col1 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-4234
SELECT - 92 / - - COUNT ( * ) AS col1 FROM tab1
----
-30

query I rowsort
SELECT DISTINCT ( - + col1 ) * - col2 * + + 98 + + - col0 + 13 FROM tab2
----
114921
301789
380766

query I rowsort
SELECT ALL + 1 + + 55 AS col0 FROM tab2
----
56
56
56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4237
SELECT ALL + CAST( NULL AS DECIMAL ) + - MIN( ALL + col1 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL + CAST ( NULL AS REAL ) + - MIN ( ALL + col1 ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL 66 - 3 FROM tab1
----
63
63
63

query II rowsort
SELECT ALL 98 * + - col1 + + col0 * - + col0 AS col1, 93 AS col2 FROM tab1
----
-12887
93
-3973
93
-7715
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + ( + 62 ) * + col2 * + col0 col2 FROM tab0 AS cor0
----
43629
53919
595385

query I rowsort
SELECT + 31 * - - 37 AS col1 FROM tab2
----
1147
1147
1147

query I rowsort
SELECT ALL - + ( + 92 ) FROM tab1 AS cor0
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT + 56 * + COUNT( * ) AS col2 FROM tab0 cor0
----
168

skipif mysql # not compatible
query I rowsort label-4243
SELECT + 56 * + COUNT ( * ) AS col2 FROM tab0 cor0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT + COUNT( DISTINCT - 56 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4244
SELECT + COUNT ( DISTINCT - 56 ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT SUM( 42 ) FROM tab2 WHERE NOT - col1 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT SUM ( 42 ) FROM tab2 WHERE NOT - col1 > NULL
----
NULL

query I rowsort
SELECT ALL 98 + + 56 FROM tab0
----
154
154
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4247
SELECT ALL + CAST( - 11 AS SIGNED ) + + - CAST( NULL AS SIGNED ) + col0 / + - 56 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL + CAST ( - 11 AS INTEGER ) + + - CAST ( NULL AS INTEGER ) + col0 / + - 56 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * 25 + - - 3 FROM tab1 AS cor0
----
1278
2128
2278

query II rowsort
SELECT + 12 AS col0, col0 + - col2 FROM tab0 cor0
----
12
-2
12
-32
12
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4250
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col2 * col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 * col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4251
SELECT DISTINCT - COUNT( * ) DIV + COUNT( * ) + - 53 + + + 73 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-4251
SELECT DISTINCT - COUNT ( * ) / + COUNT ( * ) + - 53 + + + 73 FROM tab2
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-4252
SELECT - col0 DIV ( - col1 ) - - col1 AS col1 FROM tab0
----
25
81
98

skipif mysql # not compatible
query I rowsort label-4252
SELECT - col0 / ( - col1 ) - - col1 AS col1 FROM tab0
----
25
81
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT ALL + - 55 - - MIN( ALL + ( - col0 ) ) FROM tab0 AS cor0
----
-152

skipif mysql # not compatible
query I rowsort label-4253
SELECT ALL + - 55 - - MIN ( ALL + ( - col0 ) ) FROM tab0 AS cor0
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT ( - COUNT( * ) ) + MIN( ALL - col0 ) FROM tab0 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-4254
SELECT ( - COUNT ( * ) ) + MIN ( ALL - col0 ) FROM tab0 AS cor0
----
-100

query I rowsort
SELECT - + col1 + - - ( + col1 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 23 + col0 AS col1 FROM tab1 AS cor0
----
28
62
68

query I rowsort
SELECT + col0 + + + col0 + - col1 AS col2 FROM tab0 AS cor0
----
-51
153
193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4258
SELECT ALL + col0 * - + col1 * + CAST( col1 AS SIGNED ) col2 FROM tab0
----
-38367
-97
-98415

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4258
SELECT ALL + col0 * - + col1 * + CAST ( col1 AS INTEGER ) col2 FROM tab0
----
-38367
-97
-98415

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 NOT BETWEEN + col0 AND - + 49 * + 37 - - + 5
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4260
SELECT DISTINCT - 74 DIV - + 89 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4260
SELECT DISTINCT - 74 / - + 89 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + col1 + + 68 AS col2 FROM tab1
----
115
73
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4262
SELECT - 75 DIV - col2 AS col2 FROM tab0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-4262
SELECT - 75 / - col2 AS col2 FROM tab0
----
0
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT ALL - SUM( - + ( + col0 ) ) + - COUNT( - col1 ) FROM tab0
----
196

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL - SUM ( - + ( + col0 ) ) + - COUNT ( - col1 ) FROM tab0
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT DISTINCT SUM( ALL - 28 ) FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-4264
SELECT DISTINCT SUM ( ALL - 28 ) FROM tab2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4265
SELECT - - col1 AS col1, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-4265
SELECT - - col1 AS col1, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT - COUNT( DISTINCT - col0 ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4266
SELECT - COUNT ( DISTINCT - col0 ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT col1 * - col0 AS col1 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4268
SELECT * FROM tab2 WHERE NOT + col0 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4268
SELECT * FROM tab2 WHERE NOT + col0 NOT IN ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( 66 * - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4270
SELECT - ( + CAST( COUNT( * ) AS SIGNED ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4270
SELECT - ( + CAST ( COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT - col1 * - 22 + - 50 FROM tab0
----
-28
1732
412

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT + 52 + COUNT( * ) FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-4272
SELECT + 52 + COUNT ( * ) FROM tab1
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 13 col0 FROM tab2
----
38
54
64

onlyif mysql # DIV for integer division: 
query I rowsort label-4274
SELECT ALL + 94 DIV - col2 - col2 AS col2 FROM tab1
----
-60
-69
-96

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL + 94 / - col2 - col2 AS col2 FROM tab1
----
-60
-69
-96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT IN ( ( ( - 51 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT DISTINCT - 78 + + COUNT( * ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-4276
SELECT DISTINCT - 78 + + COUNT ( * ) AS col2 FROM tab2
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4277
SELECT ALL - COUNT( * ) DIV 48 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL - COUNT ( * ) / 48 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT 35 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col1 ) NOT BETWEEN ( 72 / + col2 ) AND ( - 63 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT DISTINCT + MIN( 97 ) + + MAX( ALL + col2 ) AS col1 FROM tab2
----
155

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT + MIN ( 97 ) + + MAX ( ALL + col2 ) AS col1 FROM tab2
----
155

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col0 ) BETWEEN - col0 + + col2 * 11 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT + COUNT( * ) + + 93 * 73 FROM tab0
----
6792

skipif mysql # not compatible
query I rowsort label-4282
SELECT + COUNT ( * ) + + 93 * 73 FROM tab0
----
6792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4283
SELECT ALL + MIN( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4283
SELECT ALL + MIN ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 92 * + col2 col1 FROM tab1
----
5433
6303
8846

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 / col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE col0 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 39 AS col1 FROM tab1 WHERE ( + 61 ) NOT BETWEEN NULL AND 0
----
39
39
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4288
SELECT - 45 * + ( + CAST( NULL AS SIGNED ) ) col0 FROM tab2 WHERE ( NULL ) NOT IN ( + 53 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4288
SELECT - 45 * + ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab2 WHERE ( NULL ) NOT IN ( + 53 )
----

query I rowsort
SELECT ALL + 48 AS col1 FROM tab1 WHERE NOT col2 BETWEEN col1 + + 48 AND ( col2 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT ( SUM( 92 ) ) FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-4290
SELECT ( SUM ( 92 ) ) FROM tab0
----
276

query I rowsort
SELECT col1 + 37 * + col1 FROM tab0 AS cor0
----
3078
38
798

query I rowsort
SELECT + ( ( + ( + col1 ) ) ) + + 34 AS col2 FROM tab2 cor0
----
101
111
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT 13 + COUNT( * ) AS col1 FROM tab1 cor0
----
16

skipif mysql # not compatible
query I rowsort label-4293
SELECT 13 + COUNT ( * ) AS col1 FROM tab1 cor0
----
16

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 89 ) < NULL
----

query I rowsort
SELECT + 14 AS col0 FROM tab1 WHERE ( - 80 ) IS NOT NULL
----
14
14
14

query I rowsort
SELECT DISTINCT ( 56 ) AS col0 FROM tab0
----
56

query I rowsort
SELECT - 39 AS col0 FROM tab2 WHERE + 68 * + col2 IS NOT NULL
----
-39
-39
-39

query I rowsort
SELECT 28 + - 91 AS col2 FROM tab0
----
-63
-63
-63

query I rowsort
SELECT DISTINCT col2 + 87 FROM tab0
----
134
186
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4300
SELECT DISTINCT 20 + - col0 DIV col2 AS col2 FROM tab1
----
19
20

skipif mysql # not compatible
query I rowsort label-4300
SELECT DISTINCT 20 + - col0 / col2 AS col2 FROM tab1
----
19
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 35 + + col2 col2 FROM tab0
----
-25
12
64

query I rowsort
SELECT DISTINCT col2 - 93 AS col1 FROM tab2
----
-35
-53
-70

query I rowsort
SELECT - 67 AS col2 FROM tab2 AS cor0 WHERE ( + 18 + col2 * - col1 ) < col0
----
-67
-67
-67

query I rowsort
SELECT DISTINCT col2 * 83 + col0 * col1 AS col1 FROM tab2 cor0
----
4255
8248
9839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 col2 FROM tab2 cor0
----
33
33
33

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) * col1 + + col2 NOT BETWEEN - ( ( + col1 ) ) * col2 AND ( 5 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 2 - + col0 * - 89 AS col0 FROM tab1 AS cor0
----
4537
7563
8097

onlyif mysql # DIV for integer division: 
query I rowsort label-4308
SELECT ALL - col1 DIV - 85 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL - col1 / - 85 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 * col2 + col0 AS col2 FROM tab1 AS cor0
----
-3396
-4533
-9165

query I rowsort
SELECT - col0 AS col2 FROM tab1 cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT + - col0 - col0 FROM tab1 cor0
----
-102
-170
-182

query I rowsort
SELECT - 85 - col2 AS col1 FROM tab0
----
-132
-184
-95

query I rowsort
SELECT ALL col0 + col1 AS col0 FROM tab1 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4314
SELECT DISTINCT CAST( + col0 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-4314
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT ALL - col1 * - col0 + - 6 FROM tab2 AS cor0
----
2340
4922
5019

query I rowsort
SELECT 97 + + 99 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4317
SELECT DISTINCT - col1 * CAST( col0 AS SIGNED ) * 75 col1 FROM tab1 AS cor0
----
-31875
-320775
-53550

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4317
SELECT DISTINCT - col1 * CAST ( col0 AS INTEGER ) * 75 col1 FROM tab1 AS cor0
----
-31875
-320775
-53550

query I rowsort
SELECT DISTINCT 14 - + 5 * ( - col0 * 53 ) AS col0 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col0 + + 50 FROM tab2 AS cor0 WHERE NOT - col0 * col2 IS NULL AND NOT col2 * - col2 - col0 < - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4320
SELECT DISTINCT 57 DIV - - col1 col0 FROM tab2
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4320
SELECT DISTINCT 57 / - - col1 col0 FROM tab2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT ALL + + COUNT( * ) col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4321
SELECT ALL + + COUNT ( * ) col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-4322
SELECT col2, 28 DIV + col1 + col0 FROM tab2
----
23
46
40
64
58
75

skipif mysql # not compatible
query II rowsort label-4322
SELECT col2, 28 / + col1 + col0 FROM tab2
----
23
46
40
64
58
75

query I rowsort
SELECT + + 49 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 57 / col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4325
SELECT ALL col1 DIV ( ( 76 ) ) * 37 AS col1 FROM tab0 AS cor0
----
0
0
37

skipif mysql # not compatible
query I rowsort label-4325
SELECT ALL col1 / ( ( 76 ) ) * 37 AS col1 FROM tab0 AS cor0
----
0
0
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4326
SELECT - 3 DIV - + col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4326
SELECT - 3 / - + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 * - - col2 AS col1 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # DIV for integer division: 
query I rowsort label-4328
SELECT col2 DIV ( col1 ) col2 FROM tab1 cor0
----
1
11
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4328
SELECT col2 / ( col1 ) col2 FROM tab1 cor0
----
1
11
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4329
SELECT ( + col0 ) * + ( - CAST( NULL AS SIGNED ) ) * - 93 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4329
SELECT ( + col0 ) * + ( - CAST ( NULL AS INTEGER ) ) * - 93 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + - 59 FROM tab1 AS cor0
----
-2773
-295
-826

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT - + COUNT( * ) * - - 5 AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4331
SELECT - + COUNT ( * ) * - - 5 AS col1 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT + 97 * - 93 AS col2 FROM tab0 AS cor0
----
-9021
-9021
-9021

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - col1 * + 2 + 41 * + 27 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4335
SELECT ALL CAST( 34 AS SIGNED ) * 30 AS col1 FROM tab1 AS cor0 WHERE ( 32 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4335
SELECT ALL CAST ( 34 AS INTEGER ) * 30 AS col1 FROM tab1 AS cor0 WHERE ( 32 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 + + - col1 ) NOT BETWEEN ( NULL ) AND 34 / 37
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col1 * - col1 + 52 FROM tab0 AS cor0
----
493
53
6613

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( + + col0 + - col0 )
----

query I rowsort
SELECT + 79 + + col1 + + col2 * + 95 + - col2 FROM tab1
----
5630
6518
9117

query I rowsort
SELECT DISTINCT + 73 + 51 FROM tab1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT ALL MIN( ALL - - col2 ) + + 48 FROM tab1
----
107

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL MIN ( ALL - - col2 ) + + 48 FROM tab1
----
107

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 cor0 WHERE NOT + col1 - col1 * 35 * col0 + - 69 * 31 IS NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + + 54 * + + col1 + - 62 col0 FROM tab0
----
1082
4359
91

query I rowsort
SELECT + 87 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT + ( - 72 ) - - - col1 * + + col1 * + 34 - + 81 AS col2 FROM tab1
----
-1003
-6817
-75259

query I rowsort
SELECT ALL + 83 + - col1 - - + col0 FROM tab2
----
70
78
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4347
SELECT DISTINCT - 65 * + 24 + 91 - - COUNT( * ) DIV 23 AS col0 FROM tab0 AS cor0
----
-1469

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT - 65 * + 24 + 91 - - COUNT ( * ) / 23 AS col0 FROM tab0 AS cor0
----
-1469

query I rowsort
SELECT - 9 + + + 74 FROM tab0 AS cor0
----
65
65
65

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE 62 IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL + + 69 - col2 AS col0 FROM tab1 AS cor0
----
-27
1
10

query I rowsort
SELECT ALL - ( - + 41 ) AS col2 FROM tab2 AS cor0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT - COUNT( * ) + - 32 AS col2 FROM tab2 WHERE NOT col0 IS NULL
----
-35

skipif mysql # not compatible
query I rowsort label-4352
SELECT - COUNT ( * ) + - 32 AS col2 FROM tab2 WHERE NOT col0 IS NULL
----
-35

query II rowsort
SELECT ALL - 87 AS col1, col2 AS col1 FROM tab2
----
-87
23
-87
40
-87
58

query II rowsort
SELECT + col2 AS col0, - 22 AS col1 FROM tab0
----
10
-22
47
-22
99
-22

query I rowsort
SELECT ( + col1 ) * col0 AS col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT col0 * 19 FROM tab0
----
1653
1843
285

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT SUM( ALL - ( - 36 ) ) FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-4357
SELECT SUM ( ALL - ( - 36 ) ) FROM tab2
----
108

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT ( + 65 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 * 38 FROM tab2 AS cor0 WHERE NOT ( NULL ) > 59
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 IN ( + + col1 )
----

query I rowsort
SELECT DISTINCT - + 63 * + 88 FROM tab0 AS cor0
----
-5544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4362
SELECT ALL CAST( NULL AS SIGNED ) * col1 FROM tab1 WHERE NOT ( 57 * + col2 + + + 79 + col0 * + col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL CAST ( NULL AS INTEGER ) * col1 FROM tab1 WHERE NOT ( 57 * + col2 + + + 79 + col0 * + col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT 95 = - col2
----
14
47
5

query II rowsort
SELECT col1 AS col0, - col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT - + ( - col0 ), + col2 AS col0 FROM tab2 AS cor0
----
46
23
64
40
75
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - - ( + col1 ) ) * - ( + col1 ) col1 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT DISTINCT col2 * + 82 * + - col0 + col1 AS col2 FROM tab1
----
-401458
-411225
-507369

query I rowsort
SELECT DISTINCT - 45 * - + col2 AS col2 FROM tab1
----
2655
3060
4320

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4369
SELECT DISTINCT - 40 + - + CAST( NULL AS DECIMAL ) / + 61 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT - 40 + - + CAST ( NULL AS REAL ) / + 61 AS col1 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 97 NOT BETWEEN - col1 * - - col1 + - 0 - 47 AND 0 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4371
SELECT * FROM tab1 WHERE NULL BETWEEN + ( + ( - + 20 ) ) AND col1 * + CAST( NULL AS DECIMAL ) * - col2 * - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4371
SELECT * FROM tab1 WHERE NULL BETWEEN + ( + ( - + 20 ) ) AND col1 * + CAST ( NULL AS REAL ) * - col2 * - CAST ( NULL AS REAL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - - col0 ) IS NULL
----

query I rowsort
SELECT - AVG ( - 34 ) AS col2 FROM tab2 WHERE + col1 <= ( - col2 * col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT ALL - COUNT( * ) + 3 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL - COUNT ( * ) + 3 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT ALL MAX( - 51 ) + - ( MIN( DISTINCT - 29 ) ) AS col2 FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL MAX ( - 51 ) + - ( MIN ( DISTINCT - 29 ) ) AS col2 FROM tab1
----
-22

query I rowsort
SELECT DISTINCT + 18 + - 7 AS col0 FROM tab2
----
11

query II rowsort
SELECT ALL - col1, 94 + - col1 + + + 84 * 5 + + + 42 AS col0 FROM tab1
----
-14
542
-47
509
-5
551

query III rowsort
SELECT * FROM tab0 WHERE - - 64 NOT IN ( - - 99, + col1 * - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4379
SELECT ALL - CAST( - col1 AS SIGNED ) AS col2 FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL - CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT ALL 87 + + ( - - COUNT( * ) ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
87

skipif mysql # not compatible
query I rowsort label-4380
SELECT ALL 87 + + ( - - COUNT ( * ) ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
87

query I rowsort
SELECT + 22 + + 60 + - col1 * + - col1 FROM tab1 AS cor0
----
107
2291
278

onlyif mysql # DIV for integer division: 
query I rowsort label-4382
SELECT + col0 + + col0 DIV - 8 AS col2 FROM tab0 AS cor0
----
14
77
85

skipif mysql # not compatible
query I rowsort label-4382
SELECT + col0 + + col0 / - 8 AS col2 FROM tab0 AS cor0
----
14
77
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT COUNT( * ) + COUNT( ALL - col0 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4383
SELECT COUNT ( * ) + COUNT ( ALL - col0 ) FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 6 AND col2 / 46
----
0

skipif mysql # not compatible
query I rowsort label-4384
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 6 AND col2 / 46
----
0

query I rowsort
SELECT DISTINCT - ( + - ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE NOT - 45 BETWEEN + 44 AND ( - col1 + - - ( - col2 ) + - col0 - - - col2 * + col0 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT - 10 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4387
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT - 10 IS NULL
----
-3

query I rowsort
SELECT DISTINCT + 70 FROM tab0 WHERE NULL >= + - col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 50 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 51 FROM tab0 cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT - col2 * + 5 AS col2 FROM tab1 AS cor0
----
-295
-340
-480

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( NULL ) NOT BETWEEN + ( + ( + col2 ) ) AND NULL )
----

query I rowsort
SELECT - col0 * + + 95 AS col0 FROM tab1
----
-4845
-8075
-8645

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4394
SELECT DISTINCT 59 FROM tab0 AS cor0 WHERE NOT - ( + col2 ) IN ( + col2 - + + 59 + - CAST( 41 AS DECIMAL ) / + col0 * 31 )
----
59

skipif mysql # not compatible
query I rowsort label-4394
SELECT DISTINCT 59 FROM tab0 AS cor0 WHERE NOT - ( + col2 ) IN ( + col2 - + + 59 + - CAST ( 41 AS REAL ) / + col0 * 31 )
----
59

query II rowsort
SELECT ALL + col2 AS col1, - 30 FROM tab2 AS cor0
----
23
-30
40
-30
58
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4396
SELECT - 52 * - col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4396
SELECT - 52 * - col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col1 AS col2, col0 AS col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT ALL - - 54 * - col2 AS col2 FROM tab0 AS cor0
----
-2538
-5346
-540

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4399
SELECT + - col2 / CAST( - 69 AS SIGNED ) * + 53 * + CAST( NULL AS DECIMAL ) * col0 + col0 + - - col1 * 43 + + + 67 * - + col1 / 73 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4399
SELECT + - col2 / CAST ( - 69 AS INTEGER ) * + 53 * + CAST ( NULL AS REAL ) * col0 + col0 + - - col1 * 43 + + + 67 * - + col1 / 73 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col2 * 26 * col0 ) NOT BETWEEN 54 AND ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 + 25 + - - col2 - - col1 AS col1 FROM tab1
----
121
84
93

query II rowsort
SELECT DISTINCT 52 * + - 74, + col2 FROM tab2
----
-3848
23
-3848
40
-3848
58

query I rowsort
SELECT ALL - ( col2 ) * ( - col2 ) FROM tab2
----
1600
3364
529

query II rowsort
SELECT - col2 * ( + col1 ), - ( + 80 ) FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 col1 FROM tab2 WHERE NULL IS NULL
----
-81
-81
-81

query I rowsort
SELECT ALL - col2 + - 5 AS col0 FROM tab0
----
-104
-15
-52

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 39 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + 47 * - col2 FROM tab2
----
-1030
-1803
-2659

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT ALL - COUNT( * ) + + 13 + + 48 AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL - COUNT ( * ) + + 13 + + 48 AS col0 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT + SUM( ALL - ( - 48 ) ) FROM tab2 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-4410
SELECT + SUM ( ALL - ( - 48 ) ) FROM tab2 AS cor0
----
144

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4411
SELECT DISTINCT col0 * + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4411
SELECT DISTINCT col0 * + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT DISTINCT + 0 + COUNT( * ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4412
SELECT DISTINCT + 0 + COUNT ( * ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT + + MAX( DISTINCT - 83 ) AS col0 FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-4413
SELECT + + MAX ( DISTINCT - 83 ) AS col0 FROM tab2 AS cor0
----
-83

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 * + col1 <= NULL
----

query I rowsort
SELECT 43 * col2 FROM tab2 AS cor0 WHERE NOT ( + 81 * - col0 + col1 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT ALL + - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE 7 > col0
----
0

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL + - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE 7 > col0
----
0

query I rowsort
SELECT DISTINCT 34 * + col2 * - + col2 AS col1 FROM tab1 WHERE NOT - - col1 + - col1 IS NULL
----
-118354
-157216
-313344

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT ALL SUM( ALL + 89 ) AS col1 FROM tab1
----
267

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL SUM ( ALL + 89 ) AS col1 FROM tab1
----
267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4419
SELECT DISTINCT 70 * - + CAST( NULL AS SIGNED ) * + 19 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4419
SELECT DISTINCT 70 * - + CAST ( NULL AS INTEGER ) * + 19 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT + COUNT( * ) * + COUNT( ALL + - 30 ) col0 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4420
SELECT + COUNT ( * ) * + COUNT ( ALL + - 30 ) col0 FROM tab0
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-4421
SELECT 15 DIV + 90, col2 + col1 + - col0 * - + col1 AS col0 FROM tab0
----
0
1343
0
1858
0
197

skipif mysql # not compatible
query II rowsort label-4421
SELECT 15 / + 90, col2 + col1 + - col0 * - + col1 AS col0 FROM tab0
----
0
1343
0
1858
0
197

query I rowsort
SELECT - + col0 * + - col1 FROM tab1 cor0
----
425
4277
714

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 / - 30 < - 97 / - col2
----

query I rowsort
SELECT ALL col1 + - - col1 * - - 40 AS col0 FROM tab2
----
2091
2747
3157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4425
SELECT 79 DIV - COUNT( - col2 ) + + COUNT( * ) AS col2 FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-4425
SELECT 79 / - COUNT ( - col2 ) + + COUNT ( * ) AS col2 FROM tab0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT - MIN( - ( - - 59 ) ) + 69 FROM tab1
----
128

skipif mysql # not compatible
query I rowsort label-4426
SELECT - MIN ( - ( - - 59 ) ) + 69 FROM tab1
----
128

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 <= NULL
----

query I rowsort
SELECT ALL + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 82 NOT BETWEEN NULL AND + - col0
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4430
SELECT CAST( NULL AS SIGNED ) * - col2 / - 20 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4430
SELECT CAST ( NULL AS INTEGER ) * - col2 / - 20 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + col2 + ( 70 ) * 28 FROM tab1 AS cor0
----
6856
6975
8148

query I rowsort
SELECT ( + ( + col0 ) ) * + + col2 FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4433
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) * - + col2 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) * - + col2 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL + 48 * + + 81 + - + col0 FROM tab1
----
3797
3803
3837

onlyif mysql # DIV for integer division: 
query I rowsort label-4435
SELECT DISTINCT col1 DIV col1 + - col0 + + - 63 FROM tab2
----
-108
-126
-137

skipif mysql # not compatible
query I rowsort label-4435
SELECT DISTINCT col1 / col1 + - col0 + + - 63 FROM tab2
----
-108
-126
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT ALL SUM( ALL + - 42 ) + + - 32 FROM tab1
----
-158

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL SUM ( ALL + - 42 ) + + - 32 FROM tab1
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT ALL - COUNT( * ) - + 37 AS col2 FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL - COUNT ( * ) - + 37 AS col2 FROM tab0
----
-40

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - - 90 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT - + MAX( - col2 ) + + ( + 13 ) FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-4439
SELECT - + MAX ( - col2 ) + + ( + 13 ) FROM tab2 AS cor0
----
36

query I rowsort
SELECT - 56 * 72 * 61 FROM tab1 AS cor0
----
-245952
-245952
-245952

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT + 72 - ( - col0 ) * ( + + col0 ) + - + col1 NOT IN ( + col2 + - - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4441
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT + 72 - ( - col0 ) * ( + + col0 ) + - + col1 NOT IN ( + col2 + - - col1 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4442
SELECT ALL ( - COUNT( * ) ) FROM tab0 WHERE NOT + CAST( 88 AS SIGNED ) / - 88 + 97 IN ( + + col1 - + 72 )
----
-3

skipif mysql # not compatible
query I rowsort label-4442
SELECT ALL ( - COUNT ( * ) ) FROM tab0 WHERE NOT + CAST ( 88 AS INTEGER ) / - 88 + 97 IN ( + + col1 - + 72 )
----
-3

query I rowsort
SELECT ALL + col0 * + col2 * - + col1 AS col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NULL <> + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4445
SELECT ALL + 41 * col1 + col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL + 41 * col1 + col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4446
SELECT DISTINCT + 11 DIV col0 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT + 11 / col0 AS col1 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 * - col2 col0 FROM tab2 AS cor0
----
-1633
-2840
-4118

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT DISTINCT + + COUNT( + + col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4448
SELECT DISTINCT + + COUNT ( + + col2 ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + ( + - 34 ) ) col1 FROM tab1 cor0
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT + MAX( + 13 ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-4450
SELECT + MAX ( + 13 ) FROM tab0
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-4451
SELECT ALL - col0 DIV 97 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL - col0 / 97 FROM tab2
----
0
0
0

query I rowsort
SELECT - - col1 AS col0 FROM tab0 WHERE NOT + col2 <= - col1 / + col1 + col1
----
1

query I rowsort
SELECT DISTINCT - col2 + - + 26 AS col0 FROM tab0
----
-125
-36
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT ALL MAX( + 26 ) AS col1 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL MAX ( + 26 ) AS col1 FROM tab1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT + 54 + + + SUM( - col2 ) col0 FROM tab1 AS cor0
----
-169

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4455
SELECT + 54 + + + SUM ( - col2 ) col0 FROM tab1 AS cor0
----
-169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4456
SELECT DISTINCT - MAX( CAST( + col2 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4456
SELECT DISTINCT - MAX ( CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4457
SELECT * FROM tab2 AS cor0 WHERE - ( + - CAST( - col1 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4457
SELECT * FROM tab2 AS cor0 WHERE - ( + - CAST ( - col1 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4458
SELECT ALL col0 + col1 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4458
SELECT ALL col0 + col1 * CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 + + col2 AS col0 FROM tab2 WHERE - + col0 IS NULL
----

query I rowsort
SELECT ALL + col1 + - 7 - + - col2 FROM tab1
----
103
108
57

query I rowsort
SELECT + - col2 + - 20 + - col0 * + 32 AS col2 FROM tab1 AS cor0
----
-1748
-2799
-3000

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 99 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 33 + - + col1 AS col1 FROM tab2 cor0
----
-18
-34
-44

query I rowsort
SELECT col0 + - + col2 AS col0 FROM tab2 AS cor0
----
17
23
24

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 * col0 NOT BETWEEN NULL AND - ( + - 19 )
----

query II rowsort
SELECT + col1, 38 FROM tab2
----
51
38
67
38
77
38

query I rowsort
SELECT ALL + ( - col2 ) - col2 FROM tab0 AS cor0
----
-198
-20
-94

query I rowsort
SELECT ALL col2 * - 49 FROM tab1 AS cor0
----
-2891
-3332
-4704

query I rowsort
SELECT ALL - + col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4470
SELECT DISTINCT + 43 DIV - - col0 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT + 43 / - - col0 FROM tab0 AS cor0
----
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT DISTINCT 36 + - + COUNT( * ) FROM tab0 cor0 WHERE NULL IS NULL
----
33

skipif mysql # not compatible
query I rowsort label-4471
SELECT DISTINCT 36 + - + COUNT ( * ) FROM tab0 cor0 WHERE NULL IS NULL
----
33

query I rowsort
SELECT - 85 * - col0 FROM tab2 AS cor0
----
3910
5440
6375

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + col1 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4474
SELECT DISTINCT COUNT( * ) AS col1, - SUM( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
3
156

skipif mysql # not compatible
query II rowsort label-4474
SELECT DISTINCT COUNT ( * ) AS col1, - SUM ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
3
156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4475
SELECT + ( + col1 ), - 49 AS col0, + + CAST( NULL AS SIGNED ) col2 FROM tab1
----
9 values hashing to 04c0a3b2c00b0a7fb807174cf802494b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-4475
SELECT + ( + col1 ), - 49 AS col0, + + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
9 values hashing to 04c0a3b2c00b0a7fb807174cf802494b

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 41 ) NOT IN ( col2, 3 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 * col0 + - ( - col1 ) AS col1 FROM tab0
----
1296
1848
98

query I rowsort
SELECT 58 * + col0 * 71 FROM tab2
----
189428
263552
308850

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT + + col0 > NULL
----

query I rowsort
SELECT + ( + ( + col1 ) ) FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT DISTINCT + 72 * - - COUNT( * ) + 70 AS col0 FROM tab2
----
286

skipif mysql # not compatible
query I rowsort label-4481
SELECT DISTINCT + 72 * - - COUNT ( * ) + 70 AS col0 FROM tab2
----
286

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4482
SELECT ALL - CAST( + 55 AS SIGNED ), + 29 AS col0 FROM tab1
----
-55
29
-55
29
-55
29

skipif mysql # not compatible
query II rowsort label-4482
SELECT ALL - CAST ( + 55 AS INTEGER ), + 29 AS col0 FROM tab1
----
-55
29
-55
29
-55
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT + MIN( ALL - + col2 ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-4483
SELECT + MIN ( ALL - + col2 ) AS col1 FROM tab1
----
-96

query I rowsort
SELECT ALL col1 + + col1 + - 56 FROM tab1
----
-28
-46
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4485
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - CAST( + - ( + COUNT( * ) ) AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4485
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - CAST ( + - ( + COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4486
SELECT DISTINCT + CAST( 20 AS SIGNED ) DIV + 8 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT + CAST ( 20 AS INTEGER ) / + 8 FROM tab1 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4487
SELECT * FROM tab2 cor0 WHERE col2 + ( - CAST( + + col2 AS SIGNED ) ) * - col2 * - 7 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4487
SELECT * FROM tab2 cor0 WHERE col2 + ( - CAST ( + + col2 AS INTEGER ) ) * - col2 * - 7 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT col2 >= NULL )
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4490
SELECT ALL COUNT( + - col0 ) AS col2, + 68 AS col0 FROM tab1 AS cor0
----
3
68

skipif mysql # not compatible
query II rowsort label-4490
SELECT ALL COUNT ( + - col0 ) AS col2, + 68 AS col0 FROM tab1 AS cor0
----
3
68

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 + + + 72 * + col2 AND + ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4492
SELECT col1 DIV - - col2 + + 47 - - col2 col2 FROM tab0
----
146
59
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4492
SELECT col1 / - - col2 + + 47 - - col2 col2 FROM tab0
----
146
59
95

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + + col1 IS NULL
----

query I rowsort
SELECT ALL + + 82 FROM tab2 cor0
----
82
82
82

query I rowsort
SELECT col0 * 91 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 * + col2 * + + col0 - + 84 FROM tab2 AS cor0
----
102316
24250
252216

query I rowsort
SELECT 5 - + col0 + - col1 AS col0 FROM tab2 cor0
----
-136
-137
-92

query II rowsort
SELECT ALL ( 32 ) AS col0, - 39 AS col0 FROM tab0
----
32
-39
32
-39
32
-39

query I rowsort
SELECT ALL - ( + 4 ) + + 3 AS col0 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4500
SELECT DISTINCT - col2 + + CAST( - col1 AS SIGNED ) + CAST( - col1 AS SIGNED ) FROM tab1
----
-124
-162
-69

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT - col2 + + CAST ( - col1 AS INTEGER ) + CAST ( - col1 AS INTEGER ) FROM tab1
----
-124
-162
-69

query I rowsort
SELECT - col2 - - 85 FROM tab2
----
27
45
62

query II rowsort
SELECT + col0 - + col2 AS col0, - 31 AS col1 FROM tab1
----
-45
-31
23
-31
26
-31

query I rowsort
SELECT ALL col1 + - 10 + + + 47 AS col1 FROM tab0
----
118
38
58

query III rowsort
SELECT ALL * FROM tab2 WHERE 83 <= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4505
SELECT 14 DIV - col1, col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-4505
SELECT 14 / - col1, col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
51
0
67
0
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT DISTINCT COUNT( ALL 26 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4506
SELECT DISTINCT COUNT ( ALL 26 ) col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4507
SELECT DISTINCT + col1 * + + 5 - - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4507
SELECT DISTINCT + col1 * + + 5 - - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-1
-21
-81

query I rowsort
SELECT + ( + - ( col0 ) ) FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT DISTINCT 72 * COUNT( DISTINCT + col1 ) FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-4510
SELECT DISTINCT 72 * COUNT ( DISTINCT + col1 ) FROM tab0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT - ( - 61 ) * + MAX( ALL - + col0 ) FROM tab1 AS cor0
----
-3111

skipif mysql # not compatible
query I rowsort label-4511
SELECT - ( - 61 ) * + MAX ( ALL - + col0 ) FROM tab1 AS cor0
----
-3111

query I rowsort
SELECT ALL 77 * + + col0 * - col1 - + col1 AS col1 FROM tab0 AS cor0
----
-140700
-7470
-93636

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4513
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + 75 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4513
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + 75 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 col0 FROM tab1 AS cor0
----
-78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4515
SELECT + - col2 / 95 * + + col0 AS col1 FROM tab2 AS cor0 WHERE NOT - CAST( + + col1 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4515
SELECT + - col2 / 95 * + + col0 AS col1 FROM tab2 AS cor0 WHERE NOT - CAST ( + + col1 AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT - + MAX( ALL col2 ) col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4516
SELECT - + MAX ( ALL col2 ) col2 FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT DISTINCT SUM( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4517
SELECT DISTINCT SUM ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
199

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 39 * + 19 <= - 65
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4519
SELECT COUNT( * ) AS col1, 27 FROM tab1
----
3
27

skipif mysql # not compatible
query II rowsort label-4519
SELECT COUNT ( * ) AS col1, 27 FROM tab1
----
3
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col1, - col1 col0 FROM tab2
----
46
-51
64
-77
75
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 9 col2, - col2 col2 FROM tab1
----
9
-59
9
-68
9
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT ALL - COUNT( * ) * 12 - MIN( ALL 7 ) FROM tab0 WHERE NOT ( - - 54 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL - COUNT ( * ) * 12 - MIN ( ALL 7 ) FROM tab0 WHERE NOT ( - - 54 ) IS NOT NULL
----
NULL

query I rowsort
SELECT + 83 AS col0 FROM tab1 WHERE col1 IS NULL
----

query II rowsort
SELECT ALL + 45 + - - ( + col0 ) - + col1 * + col2 * + col0 AS col2, ( + 16 ) FROM tab1
----
-24945
16
-290700
16
-68448
16

query I rowsort
SELECT + 28 AS col0 FROM tab1 cor0 WHERE ( - col1 / 12 + + - ( + 53 ) ) NOT IN ( - col1, + col2 * col1 * - + col0, col1, + + 61 )
----
28
28
28

query I rowsort
SELECT ALL col1 + - + ( - ( - col1 ) ) + col0 AS col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT + MAX( ( col1 ) ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-4527
SELECT + MAX ( ( col1 ) ) FROM tab2 cor0
----
77

query I rowsort
SELECT ALL - ( + + 64 ) FROM tab1 AS cor0
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT COUNT( - 49 ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4529
SELECT COUNT ( - 49 ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT ALL - 11 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT DISTINCT COUNT( * ) + - + 99 FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT COUNT ( * ) + - + 99 FROM tab2 AS cor0
----
-96

query II rowsort
SELECT + col0 + col2 AS col0, + 15 * + 3 * + + col2 AS col2 FROM tab2 AS cor0
----
104
1800
133
2610
69
1035

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= + col1 / - 82 + - ( 36 ) + + col2
----

query II rowsort
SELECT ALL - + col2 - - col2, col2 + + col0 AS col1 FROM tab0 AS cor0
----
0
196
0
62
0
97

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 * col2 <> + + 78
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col0 AS col0, col1 AS col2 FROM tab1
----
-51
14
-85
5
-91
47

query II rowsort
SELECT ALL + + 59, + 30 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4538
SELECT ALL CAST( NULL AS DECIMAL ), col1 AS col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-4538
SELECT ALL CAST ( NULL AS REAL ), col1 AS col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT col1 FROM tab2 WHERE NOT NULL NOT BETWEEN + ( col2 ) AND 56
----

query II rowsort
SELECT col1 AS col0, 42 FROM tab0
----
1
42
21
42
81
42

query I rowsort
SELECT + 17 * 10 FROM tab0
----
170
170
170

query I rowsort
SELECT - col1 * + 53 FROM tab2
----
-2703
-3551
-4081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 35 col1 FROM tab1 WHERE NOT - 7 + - 5 - ( + 59 ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, - 94 FROM tab2
----
46
-94
64
-94
75
-94

query II rowsort
SELECT ALL - 27, col0 FROM tab2 AS cor0
----
-27
46
-27
64
-27
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4546
SELECT CAST( + 73 AS SIGNED ) + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
82

skipif mysql # not compatible
query I rowsort label-4546
SELECT CAST ( + 73 AS INTEGER ) + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
82

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 >= + col0
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + col2 ) + - - col2 = NULL
----

query I rowsort
SELECT + col0 * + 74 AS col2 FROM tab2
----
3404
4736
5550

query I rowsort
SELECT - 28 * + col1 AS col0 FROM tab0 AS cor0
----
-2268
-28
-588

query I rowsort
SELECT + + 64 + ( col2 ) AS col0 FROM tab2 cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT DISTINCT 57 * MAX( - 80 ) AS col2 FROM tab0
----
-4560

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT 57 * MAX ( - 80 ) AS col2 FROM tab0
----
-4560

query I rowsort
SELECT ALL - + col2 AS col1 FROM tab1 WHERE - col0 BETWEEN NULL AND - col2
----

query II rowsort
SELECT ALL 86 AS col1, + col0 FROM tab0
----
86
15
86
87
86
97

query I rowsort
SELECT ALL - col1 + + 32 FROM tab2
----
-19
-35
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4556
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + MIN( ALL 57 ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4556
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + MIN ( ALL 57 ) col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT ALL - COUNT( * ) * + COUNT( * ) col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4557
SELECT ALL - COUNT ( * ) * + COUNT ( * ) col2 FROM tab2 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4558
SELECT + col2 DIV - col1 + 75 + + 95 + + 69 * - col0 * + - col1 FROM tab2 AS cor0
----
162044
340202
346895

skipif mysql # not compatible
query I rowsort label-4558
SELECT + col2 / - col1 + 75 + + 95 + + 69 * - col0 * + - col1 FROM tab2 AS cor0
----
162044
340202
346895

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab2 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT MAX( ALL + + col1 ) + - COUNT( * ) FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-4560
SELECT MAX ( ALL + + col1 ) + - COUNT ( * ) FROM tab0 AS cor0
----
78

query I rowsort
SELECT DISTINCT 55 * 92 FROM tab1
----
5060

query I rowsort
SELECT + col2 * + col1 + - ( - + col0 ) * 92 FROM tab1
----
11568
6036
8115

query I rowsort
SELECT ALL 91 FROM tab2 WHERE col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 * - + col1 - + col1 * - col0 + - col0 * - col1 col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 14 + + + col0 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - col0 ) - - col1 FROM tab2 cor0
----
-8
13
5

query I rowsort
SELECT DISTINCT - col1 - + + col0 AS col0 FROM tab2 cor0
----
-141
-142
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4568
SELECT ALL - col0 * - + CAST( NULL AS SIGNED ) + - - ( - 55 ) - - ( + 76 ) AS col0, + ( 32 ) FROM tab1 AS cor0
----
NULL
32
NULL
32
NULL
32

skipif mysql # not compatible
query II rowsort label-4568
SELECT ALL - col0 * - + CAST ( NULL AS INTEGER ) + - - ( - 55 ) - - ( + 76 ) AS col0, + ( 32 ) FROM tab1 AS cor0
----
NULL
32
NULL
32
NULL
32

query I rowsort
SELECT DISTINCT - 82 * - col2 AS col2 FROM tab0 AS cor0
----
3854
8118
820

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 46 + + + col1 * - col2 >= ( col2 * - + col0 )
----

query I rowsort
SELECT - 7 * + col2 AS col0 FROM tab1 AS cor0
----
-413
-476
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT 80 * + COUNT( col1 ) FROM tab2
----
240

skipif mysql # not compatible
query I rowsort label-4572
SELECT 80 * + COUNT ( col1 ) FROM tab2
----
240

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> + col2 / col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col0 + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * - 97 AS col1 FROM tab1 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT - SUM( DISTINCT 69 ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-4576
SELECT - SUM ( DISTINCT 69 ) FROM tab2
----
-69

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 21 <= ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col0, + 72 col1 FROM tab2
----
23
72
40
72
58
72

query III rowsort
SELECT - 43 * + col1 * - 22, col1, - - col0 + ( + + col1 ) * + col0 AS col1 FROM tab1 AS cor0
----
9 values hashing to a3113ff93e831830a127e738ec69cf2c

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4580
SELECT - 10 DIV - 23 * + MIN( DISTINCT + ( - col0 ) ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4580
SELECT - 10 / - 23 * + MIN ( DISTINCT + ( - col0 ) ) FROM tab0 cor0
----
0

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( - - col2 ) OR NULL < NULL
----

query I rowsort
SELECT - - ( + + 92 ) FROM tab0 AS cor0
----
92
92
92

query II rowsort
SELECT DISTINCT - - 89, col0 AS col0 FROM tab0 AS cor0
----
89
15
89
87
89
97

query I rowsort
SELECT + col1 * + - col1 * 65 FROM tab2 AS cor0
----
-169065
-291785
-385385

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4585
SELECT - col0 + + col2 * 64 col2, CAST( NULL AS SIGNED ) * + + col1 * col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
3691
NULL
4261
NULL
6093
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4585
SELECT - col0 + + col2 * 64 col2, CAST ( NULL AS INTEGER ) * + + col1 * col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
3691
NULL
4261
NULL
6093
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT COUNT( * ) + ( - 29 ) + - + COUNT( * ) FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-4586
SELECT COUNT ( * ) + ( - 29 ) + - + COUNT ( * ) FROM tab1 AS cor0
----
-29

query I rowsort
SELECT - ( + 9 ) * col1 * col2 - - 18 - 71 * - - 44 FROM tab2 WHERE col2 IS NOT NULL
----
-13663
-30826
-38080

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT ALL COUNT( * ) + - + 9 col2 FROM tab1
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4588
SELECT ALL COUNT ( * ) + - + 9 col2 FROM tab1
----
-6

query I rowsort
SELECT + col2 * + + 92 * + col1 + + 72 FROM tab2 AS cor0
----
107988
283432
357584

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL <> - 40
----
0

skipif mysql # not compatible
query I rowsort label-4590
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL <> - 40
----
0

query I rowsort
SELECT DISTINCT + col1 * - 85 + + 18 AS col2 FROM tab0 AS cor0
----
-1767
-67
-6867

query I rowsort
SELECT + + col0 * + 38 AS col0 FROM tab2 WHERE 93 IS NOT NULL
----
1748
2432
2850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 74 + 12 col1 FROM tab2
----
-16
13
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 53 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT ALL - col0 * - col1 * - col0 FROM tab2 AS cor0
----
-107916
-315392
-376875

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( + col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 - + 59 BETWEEN 70 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 11 * - col0 * + col0 AS col0 FROM tab0 AS cor0
----
103499
2475
83259

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 32 <= - ( 73 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * + + col2 * - 98 AS col2 FROM tab1
----
-479808
-491470
-606424

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4601
SELECT col2 / CAST( NULL AS SIGNED ) * + - 67 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT col2 / CAST ( NULL AS INTEGER ) * + - 67 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4602
SELECT - 71 DIV - col2 col0 FROM tab2
----
1
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4602
SELECT - 71 / - col2 col0 FROM tab2
----
1
1
3

query I rowsort
SELECT + ( ( - + col1 ) ) AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT MIN( + + col1 ) * + 47 + - COUNT( * ) AS col1 FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-4604
SELECT MIN ( + + col1 ) * + 47 + - COUNT ( * ) AS col1 FROM tab0
----
44

query I rowsort
SELECT ALL + 92 + - + 23 * + col1 AS col1 FROM tab0
----
-1771
-391
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT - MAX( ALL - - col1 ) col1 FROM tab2
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4606
SELECT - MAX ( ALL - - col1 ) col1 FROM tab2
----
-77

query I rowsort
SELECT + 10 + + - col2 FROM tab1
----
-49
-58
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT ALL 32 * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
288

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL 32 * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
288

query I rowsort
SELECT DISTINCT 53 * + 77 FROM tab2 WHERE NOT - col0 IS NULL
----
4081

query I rowsort
SELECT - col1 + - - 68 FROM tab2
----
-9
1
17

query II rowsort
SELECT ALL - col0 * - col0 * col1 + - col0 * col0 AS col2, col2 * ( col0 ) FROM tab2
----
105800
1058
311296
2560
371250
4350

query I rowsort
SELECT + col0 + - 85 AS col1 FROM tab2
----
-10
-21
-39

query I rowsort
SELECT ALL - ( + + col2 ) + ( - col1 ) FROM tab1
----
-110
-115
-64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = col1 * - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( NOT col2 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4615
SELECT + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NOT col2 IS NOT NULL )
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 * col0 + + col1 = - 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT DISTINCT - SUM( DISTINCT - + col1 ) + + - COUNT( * ) AS col1 FROM tab2 cor0
----
192

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT - SUM ( DISTINCT - + col1 ) + + - COUNT ( * ) AS col1 FROM tab2 cor0
----
192

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN 52 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4619
SELECT DISTINCT col0 + - col0 + + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT col0 + - col0 + + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT - col2 FROM tab1 WHERE NULL > 91 / col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4621
SELECT ALL - col1 DIV - col2 + + - 82 + + col0 - + col1 * + - ( col0 ) FROM tab1
----
428
4286
683

skipif mysql # not compatible
query I rowsort label-4621
SELECT ALL - col1 / - col2 + + - 82 + + col0 - + col1 * + - ( col0 ) FROM tab1
----
428
4286
683

query I rowsort
SELECT ALL + 35 - + 49 * ( - col2 ) * col2 * + + col0 * 39 FROM tab1 cor0
----
565436270
804118259
898200611

query I rowsort
SELECT DISTINCT + col0 - - + col2 * col0 FROM tab0 AS cor0
----
720
957
9700

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4624
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * + - CAST( + col1 AS SIGNED ) * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4624
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * + - CAST ( + col1 AS INTEGER ) * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 47 + - col1 AS col2 FROM tab0 AS cor0
----
-34
26
46

query I rowsort
SELECT - col0 * - col1 + - col2 - - 66 AS col1 FROM tab2 AS cor0
----
2389
4954
5033

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4627
SELECT * FROM tab1 WHERE NOT - col1 <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4627
SELECT * FROM tab1 WHERE NOT - col1 <= + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ALL - col1 * + - 43, 14 AS col0 FROM tab2
----
2193
14
2881
14
3311
14

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE ( - col2 ) NOT BETWEEN - col0 + - col1 AND NULL
----
-14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 23 * col1 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4631
SELECT ALL + col2 * + + CAST( - - 95 AS SIGNED ) FROM tab1 AS cor0
----
5605
6460
9120

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL + col2 * + + CAST ( - - 95 AS INTEGER ) FROM tab1 AS cor0
----
5605
6460
9120

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 29 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 76 AS col0 FROM tab0 AS cor0
----
76
76
76

query I rowsort
SELECT DISTINCT - + col0 * - - col2 AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4635
SELECT CAST( - col1 AS SIGNED ) * + col1 FROM tab0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-4635
SELECT CAST ( - col1 AS INTEGER ) * + col1 FROM tab0
----
-1
-441
-6561

query II rowsort
SELECT DISTINCT - col2 AS col2, - col1 * + col1 AS col0 FROM tab0
----
-10
-441
-47
-6561
-99
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4637
SELECT DISTINCT 22 * - CAST( + + CAST( 43 AS SIGNED ) AS DECIMAL ) * + COUNT( * ) * + MAX( ALL - - CAST( NULL AS SIGNED ) ) + + SUM( ALL col2 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4637
SELECT DISTINCT 22 * - CAST ( + + CAST ( 43 AS INTEGER ) AS REAL ) * + COUNT ( * ) * + MAX ( ALL - - CAST ( NULL AS INTEGER ) ) + + SUM ( ALL col2 ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 BETWEEN NULL AND col2 / - col2 * + 67 + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4639
SELECT + 14 DIV - col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4639
SELECT + 14 / - col2 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + 4 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4641
SELECT DISTINCT * 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-4641
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( - CAST ( col0 AS INTEGER ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 51 + - + col1 AS col0 FROM tab1 AS cor0
----
37
4
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT - 87 + - COUNT( * ) AS col0 FROM tab1 cor0
----
-90

skipif mysql # not compatible
query I rowsort label-4643
SELECT - 87 + - COUNT ( * ) AS col0 FROM tab1 cor0
----
-90

query I rowsort
SELECT - 55 + - + col0 FROM tab2 AS cor0
----
-101
-119
-130

query I rowsort
SELECT + - ( 76 ) + - - col2 AS col1 FROM tab0 AS cor0
----
-29
-66
23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT DISTINCT - SUM( DISTINCT - col2 ) col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4647
SELECT DISTINCT - SUM ( DISTINCT - col2 ) col2 FROM tab2 AS cor0
----
121

query I rowsort
SELECT + col0 + - + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 3 + + col1 - col2 FROM tab2
----
25
34
6

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> - - 97
----

query I rowsort
SELECT ALL 60 * - + col1 + 81 AS col1 FROM tab2
----
-2979
-3939
-4539

query I rowsort
SELECT DISTINCT ( + 73 ) + + col0 AS col1 FROM tab1
----
124
158
164

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT DISTINCT - 13 * COUNT( * ) + + + COUNT( * ) col2 FROM tab0
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4653
SELECT DISTINCT - 13 * COUNT ( * ) + + + COUNT ( * ) col2 FROM tab0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-4654
SELECT ALL - - 98 * + - col0 - col1 DIV + col1 AS col2 FROM tab1 AS cor0
----
-4999
-8331
-8919

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL - - 98 * + - col0 - col1 / + col1 AS col2 FROM tab1 AS cor0
----
-4999
-8331
-8919

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) <= - col2 - - + 60 + col1
----

query I rowsort
SELECT + - 59 - 65 - + 32 + + 28 FROM tab0 AS cor0
----
-128
-128
-128

query I rowsort
SELECT DISTINCT + 70 - - 88 * - + col0 FROM tab0 AS cor0
----
-1250
-7586
-8466

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT MIN( 51 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4658
SELECT MIN ( 51 ) FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-4659
SELECT - COUNT( * ), + ( + 79 ) AS col1 FROM tab1 AS cor0
----
-3
79

skipif mysql # not compatible
query II rowsort label-4659
SELECT - COUNT ( * ), + ( + 79 ) AS col1 FROM tab1 AS cor0
----
-3
79

query I rowsort
SELECT DISTINCT - + col1 * + ( + + col0 ) + - 93 + + 65 AS col1 FROM tab1 cor0 WHERE + ( - col2 ) IS NOT NULL
----
-4305
-453
-742

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT DISTINCT 50 * + MIN( ALL col0 ) FROM tab2
----
2300

skipif mysql # not compatible
query I rowsort label-4661
SELECT DISTINCT 50 * + MIN ( ALL col0 ) FROM tab2
----
2300

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT ALL COUNT( DISTINCT - + 27 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4662
SELECT ALL COUNT ( DISTINCT - + 27 ) FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4663
SELECT * FROM tab1 WHERE NOT + - col1 * + 28 = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4663
SELECT * FROM tab1 WHERE NOT + - col1 * + 28 = - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT 77 * - + col0 FROM tab1
----
-3927
-6545
-7007

query II rowsort
SELECT + ( + col2 ) AS col2, 31 FROM tab1
----
59
31
68
31
96
31

query II rowsort
SELECT ALL col1 * + col2 AS col2, + col0 * col2 + + + 18 FROM tab1
----
1344
4914
295
5033
3196
6206

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 < 29 / + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 32 * + 70 * + 50 FROM tab2
----
112000
112000
112000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4669
SELECT ALL 51 * - col1 * + - CAST( + col0 AS SIGNED ) AS col0 FROM tab2
----
119646
251328
256275

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL 51 * - col1 * + - CAST ( + col0 AS INTEGER ) AS col0 FROM tab2
----
119646
251328
256275

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 73 BETWEEN ( + + col1 ) AND + 71
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * - col1 + - 32 AS col1 FROM tab1 AS cor0
----
-1376
-3228
-327

query I rowsort
SELECT DISTINCT - ( + + col2 ) * - col0 FROM tab2 cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT - COUNT( - - col2 ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4673
SELECT - COUNT ( - - col2 ) col2 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL + 70, - col0 AS col2 FROM tab1 cor0
----
70
-51
70
-85
70
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT + COUNT( * ) * 34 AS col0 FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-4675
SELECT + COUNT ( * ) * 34 AS col0 FROM tab2 AS cor0
----
102

query I rowsort
SELECT + AVG ( + col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4677
SELECT - AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0 WHERE 58 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4677
SELECT - AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 WHERE 58 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT ALL - 82 * - COUNT( * ) FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL - 82 * - COUNT ( * ) FROM tab0 AS cor0
----
246

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - - 31 * - + col0 col1 FROM tab2 AS cor0
----
-126976
-174375
-65596

query I rowsort
SELECT ALL - ( - - 68 ) FROM tab0 AS cor0
----
-68
-68
-68

query I rowsort
SELECT DISTINCT - col1 + + + 23 FROM tab1 AS cor0
----
-24
18
9

query I rowsort
SELECT DISTINCT + + col0 + ( + col2 ) FROM tab1 cor0
----
144
147
159

onlyif mysql # DIV for integer division: 
query I rowsort label-4684
SELECT - 93 DIV col2 - col2 + + ( - col2 ) * - col1 * - col0 * - - 82 - + col0 col2 FROM tab0
----
-1498246
-4682673
-787642

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4684
SELECT - 93 / col2 - col2 + + ( - col2 ) * - col1 * - col0 * - - 82 - + col0 col2 FROM tab0
----
-1498246
-4682673
-787642

query I rowsort
SELECT 14 - + col2 - - col1 AS col0 FROM tab0
----
-84
25
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 * + 25 * - + col1 col0 FROM tab1
----
-24500
-82250
-8750

query I rowsort
SELECT + col0 - + col1 + - col0 * - col0 * - 79 AS col1 FROM tab0
----
-17841
-597885
-743215

query I rowsort
SELECT ALL 58 + + - ( - 18 ) + - col2 FROM tab2
----
18
36
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT ALL MIN( - col1 ) - + COUNT( * ) AS col2 FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-4689
SELECT ALL MIN ( - col1 ) - + COUNT ( * ) AS col2 FROM tab1
----
-50

query I rowsort
SELECT DISTINCT - + 3 + + col0 AS col0 FROM tab1 AS cor0
----
48
82
88

query I rowsort
SELECT - 2 * + - col1 + - col2 FROM tab0 AS cor0
----
-97
115
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT - + MIN( ALL - - col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4692
SELECT - + MIN ( ALL - - col1 ) FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT + SUM( DISTINCT 22 ) * - - COUNT( * ) FROM tab2 cor0
----
66

skipif mysql # not compatible
query I rowsort label-4693
SELECT + SUM ( DISTINCT 22 ) * - - COUNT ( * ) FROM tab2 cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) + SUM( - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( ( - + 0 ) * - col2 ) > - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) + SUM ( - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( ( - + 0 ) * - col2 ) > - 80
----
NULL

query I rowsort
SELECT ( ( 5 ) ) * - + col1 AS col0 FROM tab0
----
-105
-405
-5

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 WHERE NOT - 2 + col2 <> col0 * + 44
----

query I rowsort
SELECT ALL 75 * - col0 AS col2 FROM tab0
----
-1125
-6525
-7275

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT - + ( - MAX( ALL - 14 ) ) FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-4698
SELECT - + ( - MAX ( ALL - 14 ) ) FROM tab0 AS cor0
----
-14

query I rowsort
SELECT + ( - 5 ) FROM tab2 cor0
----
-5
-5
-5

query I rowsort
SELECT ( + + 39 ) AS col0 FROM tab1 AS cor0
----
39
39
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 col0 FROM tab2 AS cor0
----
80
80
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4702
SELECT + CAST( - + 40 AS SIGNED ) FROM tab1 AS cor0
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-4702
SELECT + CAST ( - + 40 AS INTEGER ) FROM tab1 AS cor0
----
-40
-40
-40

query II rowsort
SELECT DISTINCT ( - col1 ) AS col2, col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query I rowsort
SELECT - + 52 + - + col1 FROM tab2 cor0 WHERE NOT NULL >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - + ( + col2 ) col2 FROM tab1
----
-21
-54
-82

onlyif mysql # DIV for integer division: 
query II rowsort label-4706
SELECT + 13 DIV + + col1 + + col0, + 81 AS col2 FROM tab0 AS cor0 WHERE 59 + col1 IS NOT NULL
----
110
81
15
81
87
81

skipif mysql # not compatible
query II rowsort label-4706
SELECT + 13 / + + col1 + + col0, + 81 AS col2 FROM tab0 AS cor0 WHERE 59 + col1 IS NOT NULL
----
110
81
15
81
87
81

onlyif mysql # DIV for integer division: 
query II rowsort label-4707
SELECT - + 18 DIV - ( + + col0 ), col0 - 19 AS col0 FROM tab1 AS cor0
----
0
32
0
66
0
72

skipif mysql # not compatible
query II rowsort label-4707
SELECT - + 18 / - ( + + col0 ), col0 - 19 AS col0 FROM tab1 AS cor0
----
0
32
0
66
0
72

query II rowsort
SELECT DISTINCT - - 69 AS col2, - col0 AS col2 FROM tab2 AS cor0
----
69
-46
69
-64
69
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-4709
SELECT DISTINCT 56, COUNT( * ) AS col1 FROM tab1 AS cor0
----
56
3

skipif mysql # not compatible
query II rowsort label-4709
SELECT DISTINCT 56, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
56
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4710
SELECT ALL + col2 AS col2, + col2 - + col0 + - CAST( + 59 AS SIGNED ) FROM tab2 AS cor0
----
23
-82
40
-83
58
-76

skipif mysql # not compatible
query II rowsort label-4710
SELECT ALL + col2 AS col2, + col2 - + col0 + - CAST ( + 59 AS INTEGER ) FROM tab2 AS cor0
----
23
-82
40
-83
58
-76

query I rowsort
SELECT ALL + col2 * - 75 AS col1 FROM tab1
----
-4425
-5100
-7200

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT col2 IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT - COUNT( * ) col1 FROM tab0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4713
SELECT - COUNT ( * ) col1 FROM tab0 WHERE NOT NULL < NULL
----
0

query I rowsort
SELECT + 49 + - col2 AS col1 FROM tab1
----
-10
-19
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 * col0 col0 FROM tab2
----
3818
5312
6225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4716
SELECT + CAST( NULL AS SIGNED ) + 77 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4716
SELECT + CAST ( NULL AS INTEGER ) + 77 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4717
SELECT ALL 66 DIV 73 + + col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL 66 / 73 + + col1 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL + col0 - + col2 * + col0 FROM tab1
----
-4845
-4930
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT MAX( - col1 ) * - 81 AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4719
SELECT MAX ( - col1 ) * - 81 AS col0 FROM tab0
----
81

query I rowsort
SELECT col2 FROM tab1 WHERE ( NULL ) IS NULL
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 <= ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * + 56 FROM tab0
----
1176
4536
56

query I rowsort
SELECT ALL ( - col2 ) + - col1 AS col1 FROM tab0
----
-100
-128
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 * 89 col1 FROM tab2
----
4094
4094
4094

query I rowsort
SELECT - 63 * col0 FROM tab0
----
-5481
-6111
-945

query I rowsort
SELECT 28 + 24 FROM tab2
----
52
52
52

query I rowsort
SELECT DISTINCT + col2 - col1 FROM tab2 WHERE NULL BETWEEN col0 + - col1 * col0 AND NULL
----

query I rowsort
SELECT ALL - ( + col1 ) + col2 FROM tab1 WHERE + 87 NOT IN ( col0 )
----
21
54
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4729
SELECT DISTINCT - col1 DIV + 41 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-4729
SELECT DISTINCT - col1 / + 41 FROM tab1
----
-1
0

query I rowsort
SELECT + 66 FROM tab1 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4731
SELECT ALL * FROM tab2 WHERE NOT 8 * col0 + 44 * - CAST( - ( + CAST( 89 AS DECIMAL ) ) + - CAST( NULL AS SIGNED ) AS DECIMAL ) >= 3 / col2
----

skipif mysql # not compatible
query III rowsort label-4731
SELECT ALL * FROM tab2 WHERE NOT 8 * col0 + 44 * - CAST ( - ( + CAST ( 89 AS REAL ) ) + - CAST ( NULL AS INTEGER ) AS REAL ) >= 3 / col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col0 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT ALL + 27 * - COUNT( * ) FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL + 27 * - COUNT ( * ) FROM tab1
----
-81

query I rowsort
SELECT ALL 66 * + 43 FROM tab1
----
2838
2838
2838

query I rowsort
SELECT DISTINCT 31 AS col2 FROM tab1 WHERE NOT ( ( - col2 ) ) NOT BETWEEN ( col0 ) AND col1 * + col1 - col1
----

query I rowsort
SELECT DISTINCT 50 * - 64 AS col0 FROM tab0
----
-3200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4737
SELECT CAST( + ( + 91 ) AS SIGNED ) AS col1 FROM tab0
----
91
91
91

skipif mysql # not compatible
query I rowsort label-4737
SELECT CAST ( + ( + 91 ) AS INTEGER ) AS col1 FROM tab0
----
91
91
91

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 IN ( - 36 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 * 20 AS col2 FROM tab1 cor0 WHERE - col2 IS NOT NULL
----
-100
-280
-940

query I rowsort
SELECT DISTINCT - col2 * + 1 AS col1 FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 AS cor0 WHERE ( + col0 ) IS NULL
----

query I rowsort
SELECT ALL col2 * - ( col2 ) FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4743
SELECT COUNT( * ) * CAST( + 41 AS SIGNED ) FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-4743
SELECT COUNT ( * ) * CAST ( + 41 AS INTEGER ) FROM tab2
----
123

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE NOT ( col0 * 24 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
2116
4096
5625

query I rowsort
SELECT col0 * col1 FROM tab1 AS cor0 WHERE NOT ( col2 ) >= ( col0 + + col1 )
----
425
4277

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT DISTINCT + - MAX( - 27 ) col0 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4747
SELECT DISTINCT + - MAX ( - 27 ) col0 FROM tab0 AS cor0
----
27

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4748
SELECT ALL - - CAST( 31 AS SIGNED ) DIV col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL - - CAST ( 31 AS INTEGER ) / col2 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT MAX( col1 ) col0 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4749
SELECT MAX ( col1 ) col0 FROM tab2
----
77

query I rowsort
SELECT ALL - 30 + + col0 FROM tab0
----
-15
57
67

query I rowsort
SELECT 61 FROM tab1 WHERE ( - col0 / - col0 ) >= ( + 4 )
----

query I rowsort
SELECT DISTINCT + 3 + + - 46 + ( 73 ) FROM tab2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4753
SELECT DISTINCT CAST( - col2 AS SIGNED ) AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4753
SELECT DISTINCT CAST ( - col2 AS INTEGER ) AS col1 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4754
SELECT ALL col1 + + + col1 + + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4754
SELECT ALL col1 + + + col1 + + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT ( - col0 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4756
SELECT ALL - COUNT( ALL + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - + 42 FROM tab2 cor0
----
-42
-42
-42

query III rowsort
SELECT * FROM tab0 cor0 WHERE 14 NOT BETWEEN NULL AND - 59 + - col2 / 60
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 18 + - - col0 + col2 AS col0 FROM tab2 AS cor0
----
122
151
87

query I rowsort
SELECT DISTINCT + + 39 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE - + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4761
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE - + col2 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( ( - col1 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 75 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4764
SELECT + CAST( - COUNT( * ) AS SIGNED ) + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
0

skipif mysql # not compatible
query I rowsort label-4764
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 - + col2 / col2 col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 58 FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN 75 * col2 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4767
SELECT + CAST( NULL AS SIGNED ) * MIN( DISTINCT col2 ) + - 64 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4767
SELECT + CAST ( NULL AS INTEGER ) * MIN ( DISTINCT col2 ) + - 64 AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 58 <> - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4769
SELECT DISTINCT - col2 - + CAST( NULL AS SIGNED ) * col1 + - col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT - col2 - + CAST ( NULL AS INTEGER ) * col1 + - col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT + - col1 - col0 + + col0 * col0 * col1 AS col2 FROM tab2 AS cor0
----
107819
315251
376733

query I rowsort
SELECT col1 FROM tab2 cor0 WHERE col0 * - col0 * col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT ALL ( - 15 ) - 61 + 81 * MAX( ALL + 66 ) FROM tab2 AS cor0
----
5270

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL ( - 15 ) - 61 + 81 * MAX ( ALL + 66 ) FROM tab2 AS cor0
----
5270

query I rowsort
SELECT col1 - + col2 - + + col2 * col1 AS col1 FROM tab0 AS cor0
----
-197
-199
-3773

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT + COUNT( DISTINCT col0 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4774
SELECT + COUNT ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col1 )
----

query I rowsort
SELECT + col0 FROM tab2 WHERE - + col2 IS NOT NULL
----
46
64
75

query I rowsort
SELECT + ( ( - col2 ) ) - - col1 * + col1 FROM tab0
----
-98
431
6514

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 - 16 * + col1 <= - 95 + ( - col1 ) * 73
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT + 54 < ( NULL )
----

query I rowsort
SELECT ALL 30 * 29 FROM tab0
----
870
870
870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4781
SELECT MAX( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4781
SELECT MAX ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT - ( - col0 ) AS col0, col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT ALL - ( - 0 ) FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT ( 16 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 ) IN ( col2 + + + 91 / + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 81 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 75 + - 8 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 97 IS NULL
----

query I rowsort
SELECT col0 + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 >= + + 78 + - col0
----
138
65
90

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND col1 * - + col2 + 29 * 19
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) >= - ( + 87 ) * + + 74 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4791
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 AND ( + col0 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4791
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 AND ( + col0 * - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4792
SELECT - - MAX( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4792
SELECT - - MAX ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 32 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 + col0 * + 59 FROM tab0 AS cor0
----
5046
5626
870

query I rowsort
SELECT ALL - col2 + + 9 AS col2 FROM tab2 AS cor0
----
-14
-31
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT + COUNT( col1 ) FROM tab2 WHERE ( 77 + col1 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4796
SELECT + COUNT ( col1 ) FROM tab2 WHERE ( 77 + col1 ) IS NOT NULL
----
3

query I rowsort
SELECT 92 + - + col1 AS col2 FROM tab2
----
15
25
41

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 47 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col1 * - + 49 + + 98 AS col0 FROM tab2
----
-2401
-3185
-3675

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4800
SELECT col0 AS col2, - col0 * - + col2 + + CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-4800
SELECT col0 AS col2, - col0 * - + col2 + + CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4801
SELECT - COUNT( * ) AS col0, - COUNT( * ) AS col1 FROM tab1 cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-4801
SELECT - COUNT ( * ) AS col0, - COUNT ( * ) AS col1 FROM tab1 cor0
----
-3
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-4802
SELECT DISTINCT + ( - col2 ), + ( + col0 ) DIV + + col0 AS col0 FROM tab2 AS cor0
----
-23
1
-40
1
-58
1

skipif mysql # not compatible
query II rowsort label-4802
SELECT DISTINCT + ( - col2 ), + ( + col0 ) / + + col0 AS col0 FROM tab2 AS cor0
----
-23
1
-40
1
-58
1

query I rowsort
SELECT DISTINCT 21 * - ( col1 ) AS col2 FROM tab2 AS cor0
----
-1071
-1407
-1617

query II rowsort
SELECT - col1 + - - col1 * - 24, ( col0 ) FROM tab1
----
-1175
91
-125
85
-350
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4805
SELECT ALL + 25 - - 8 DIV - col0 AS col2 FROM tab0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL + 25 - - 8 / - col0 AS col2 FROM tab0
----
25
25
25

query I rowsort
SELECT + col0 + + 35 AS col2 FROM tab2
----
110
81
99

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE 70 NOT BETWEEN - col1 AND - - 86 * + 72 + 43 + + + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4808
SELECT ALL - COUNT( * ) - ( + COUNT( * ) ) + ( + 12 ) DIV ( 23 ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL - COUNT ( * ) - ( + COUNT ( * ) ) + ( + 12 ) / ( 23 ) FROM tab2 AS cor0
----
-6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 NOT IN ( + 5 + + col2 * + ( - 26 ) * + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4810
SELECT ALL + + col0 * - - CAST( NULL AS SIGNED ) * col1 + 20 - - CAST( NULL AS SIGNED ) / 60 / + 58 * ( col1 ) - - 71 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL + + col0 * - - CAST ( NULL AS INTEGER ) * col1 + 20 - - CAST ( NULL AS INTEGER ) / 60 / + 58 * ( col1 ) - - 71 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 + + 62 * + ( col0 ) * - 36 + - col1 + + col2 * - 26 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4812
SELECT * FROM tab1 cor0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4812
SELECT * FROM tab1 cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NULL
----

query II rowsort
SELECT + col1, + col0 + col0 FROM tab0
----
1
194
21
174
81
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4814
SELECT ALL col0, + CAST( NULL AS SIGNED ) + col0 * - col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-4814
SELECT ALL col0, + CAST ( NULL AS INTEGER ) + col0 * - col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT 2 * - + 65 + - col1 + - - col1 * + + col0 > NULL
----

query I rowsort
SELECT + 7 * col0 AS col1 FROM tab1
----
357
595
637

query II rowsort
SELECT - col2 * - + ( - col0 ) AS col0, + col1 FROM tab2
----
-1058
51
-2560
77
-4350
67

query I rowsort
SELECT + col0 * + 77 AS col2 FROM tab0
----
1155
6699
7469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, + 77 FROM tab2 AS cor0
----
-51
77
-67
77
-77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT ALL + + COUNT( * ) * + - 95 FROM tab0 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL + + COUNT ( * ) * + - 95 FROM tab0 AS cor0
----
-285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4821
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4821
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE NOT col1 IS NULL
----
51
85
91

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT + - 29 <> col0 * - - col1 * col1 + - - col1
----

query I rowsort
SELECT - ( col1 ) + - 93 FROM tab1
----
-107
-140
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-4825
SELECT DISTINCT 60 col0, + COUNT( * ) col2 FROM tab2, tab2 AS cor0
----
60
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4825
SELECT DISTINCT 60 col0, + COUNT ( * ) col2 FROM tab2, tab2 AS cor0
----
60
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0, + 37 * + - 85 )
----

query I rowsort
SELECT DISTINCT - col2 + col1 FROM tab0 AS cor0 WHERE NOT 21 + - col1 < NULL
----

query I rowsort
SELECT 47 * - 9 FROM tab2 AS cor0
----
-423
-423
-423

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4829
SELECT DISTINCT + + CAST( - + col1 AS SIGNED ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4829
SELECT DISTINCT + + CAST ( - + col1 AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4830
SELECT + 34 DIV - + col2 + - + 11 AS col0 FROM tab1 AS cor0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-4830
SELECT + 34 / - + col2 + - + 11 AS col0 FROM tab1 AS cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT DISTINCT - COUNT( * ) + 57 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4831
SELECT DISTINCT - COUNT ( * ) + 57 FROM tab0 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4832
SELECT - CAST( + + col2 AS SIGNED ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4832
SELECT - CAST ( + + col2 AS INTEGER ) FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4833
SELECT ALL + CAST( - 25 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL + CAST ( - 25 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-25
-25
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-4834
SELECT + col1 DIV - col0 + - col2 FROM tab2 AS cor0
----
-24
-41
-58

skipif mysql # not compatible
query I rowsort label-4834
SELECT + col1 / - col0 + - col2 FROM tab2 AS cor0
----
-24
-41
-58

query I rowsort
SELECT + 47 + - 89 * + 91 * + 58 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to dd2d9a4d1c434c34be5a153d5438e80d

onlyif mysql # aggregate syntax: 
query II rowsort label-4836
SELECT - COUNT( * ) col1, - COUNT( * ) AS col2 FROM tab0
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4836
SELECT - COUNT ( * ) col1, - COUNT ( * ) AS col2 FROM tab0
----
-3
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 14 * - 24 - - col0 * + - 42 * + - 74 * - - col2 + col0, + col0, col1 )
----

query I rowsort
SELECT DISTINCT col0 * + col0 / + - col1 AS col1 FROM tab0 AS cor0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4839
SELECT ALL + CAST( NULL AS SIGNED ) col1, 84 AS col0 FROM tab2 AS cor0
----
NULL
84
NULL
84
NULL
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4839
SELECT ALL + CAST ( NULL AS INTEGER ) col1, 84 AS col0 FROM tab2 AS cor0
----
NULL
84
NULL
84
NULL
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT - - COUNT( ALL 16 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4840
SELECT - - COUNT ( ALL 16 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT + - COUNT( - + col2 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4841
SELECT + - COUNT ( - + col2 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4842
SELECT + + COUNT( * ), 16 AS col0 FROM tab2 cor0
----
3
16

skipif mysql # not compatible
query II rowsort label-4842
SELECT + + COUNT ( * ), 16 AS col0 FROM tab2 cor0
----
3
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT ALL ( - COUNT( + + col2 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL ( - COUNT ( + + col2 ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4844
SELECT - MIN( 36 ) AS col0, MAX( - col2 ) AS col1 FROM tab1
----
-36
-59

skipif mysql # not compatible
query II rowsort label-4844
SELECT - MIN ( 36 ) AS col0, MAX ( - col2 ) AS col1 FROM tab1
----
-36
-59

query I rowsort
SELECT - + col2 AS col1 FROM tab1 WHERE NOT 58 NOT IN ( + 65 * ( + - col0 ) - - 89, - 80 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4846
SELECT - COUNT( * ) DIV + CAST( + MAX( col0 ) AS SIGNED ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4846
SELECT - COUNT ( * ) / + CAST ( + MAX ( col0 ) AS INTEGER ) AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT 23 * - 95 FROM tab2
----
-2185

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 17 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT + + SUM( ALL 62 ) AS col1 FROM tab0 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-4849
SELECT + + SUM ( ALL 62 ) AS col1 FROM tab0 AS cor0
----
186

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - col2 * - + col1 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

query II rowsort
SELECT DISTINCT col2, + 48 AS col1 FROM tab1
----
59
48
68
48
96
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4853
SELECT + 71, - COUNT( * ) AS col1 FROM tab0
----
71
-3

skipif mysql # not compatible
query II rowsort label-4853
SELECT + 71, - COUNT ( * ) AS col1 FROM tab0
----
71
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4854
SELECT + col0 DIV ( col1 ) + - col2 AS col2 FROM tab0 AS cor0
----
-2
-47
-6

skipif mysql # not compatible
query I rowsort label-4854
SELECT + col0 / ( col1 ) + - col2 AS col2 FROM tab0 AS cor0
----
-2
-47
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-4855
SELECT ALL + - col0 * + + col2 DIV col2 * - col2 AS col2 FROM tab0 AS cor0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL + - col0 * + + col2 / col2 * - col2 AS col2 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT + col0 * col0 + + col1 AS col2 FROM tab1 AS cor0
----
2615
7230
8328

query I rowsort
SELECT - + 85 AS col2 FROM tab0 AS cor0 WHERE ( NOT - 29 < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT ALL ( - COUNT( * ) ) * - COUNT( * ) + 4 + - 8 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL ( - COUNT ( * ) ) * - COUNT ( * ) + 4 + - 8 FROM tab1
----
5

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE + ( - + ( - col1 ) ) IS NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE + 39 + 93 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT DISTINCT - COUNT( * ) * + - 94 + + + 57 col0 FROM tab0
----
339

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4861
SELECT DISTINCT - COUNT ( * ) * + - 94 + + + 57 col0 FROM tab0
----
339

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT DISTINCT + COUNT( DISTINCT - col1 ) + - ( - - ( - 53 ) ) FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT + COUNT ( DISTINCT - col1 ) + - ( - - ( - 53 ) ) FROM tab0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT + SUM( - 94 ) AS col1 FROM tab0
----
-282

skipif mysql # not compatible
query I rowsort label-4863
SELECT + SUM ( - 94 ) AS col1 FROM tab0
----
-282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4864
SELECT DISTINCT - col2 * - col2 + + - col2 * ( - CAST( 51 AS SIGNED ) ) FROM tab2
----
1702
3640
6322

skipif mysql # not compatible
query I rowsort label-4864
SELECT DISTINCT - col2 * - col2 + + - col2 * ( - CAST ( 51 AS INTEGER ) ) FROM tab2
----
1702
3640
6322

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4865
SELECT + + ( - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4865
SELECT + + ( - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT + + SUM( + col0 ) - 16 AS col1 FROM tab2 AS cor0
----
169

skipif mysql # not compatible
query I rowsort label-4866
SELECT + + SUM ( + col0 ) - 16 AS col1 FROM tab2 AS cor0
----
169

onlyif mysql # DIV for integer division: 
query I rowsort label-4867
SELECT - + 66 - ( + + col2 ) + - - 73 DIV col1 * + + col1 FROM tab2 cor0
----
-106
-38
-57

skipif mysql # not compatible
query I rowsort label-4867
SELECT - + 66 - ( + + col2 ) + - - 73 / col1 * + + col1 FROM tab2 cor0
----
-106
-38
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT DISTINCT + COUNT( * ) - SUM( 50 ) AS col2 FROM tab1 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-4868
SELECT DISTINCT + COUNT ( * ) - SUM ( 50 ) AS col2 FROM tab1 AS cor0
----
-147

query II rowsort
SELECT DISTINCT col1 AS col1, + col1 FROM tab0
----
1
1
21
21
81
81

query II rowsort
SELECT - col2 AS col2, - col2 + + ( col1 ) FROM tab1 AS cor0
----
-59
-54
-68
-21
-96
-82

query I rowsort
SELECT DISTINCT + col2 * + + 77 FROM tab1 AS cor0
----
4543
5236
7392

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col2 * col2 * + 6 * + 77 * - - 21 + - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT - MAX( - 81 ) AS col0 FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-4873
SELECT - MAX ( - 81 ) AS col0 FROM tab0 cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT ALL + + COUNT( DISTINCT + col0 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL + + COUNT ( DISTINCT + col0 ) FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4875
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 82 NOT IN ( - CAST( + 57 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4875
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 82 NOT IN ( - CAST ( + 57 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( col2 ) ) > + col1 + - col2
----
46
51
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4877
SELECT ALL 66 DIV + col1 FROM tab1
----
1
13
4

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL 66 / + col1 FROM tab1
----
1
13
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4878
SELECT ALL + CAST( - col1 AS SIGNED ), + col2 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-4878
SELECT ALL + CAST ( - col1 AS INTEGER ), + col2 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col1, + col0 FROM tab0
----
15
15
87
87
97
97

query III rowsort
SELECT * FROM tab1 WHERE NOT + 29 / 74 + - ( + 3 ) * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4881
SELECT + COUNT( * ) DIV - 48 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4881
SELECT + COUNT ( * ) / - 48 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 / - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4883
SELECT DISTINCT + + COUNT( * ) AS col1, 10 FROM tab2 AS cor0
----
3
10

skipif mysql # not compatible
query II rowsort label-4883
SELECT DISTINCT + + COUNT ( * ) AS col1, 10 FROM tab2 AS cor0
----
3
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + + 45 * - + 66 >= - 15 * - ( ( - 91 ) ) - + 58
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 73 * 36 AS col0 FROM tab1 AS cor0 WHERE + 40 IN ( - col2 + 80 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT ALL + + 45 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL + + 45 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4887
SELECT DISTINCT 6 * + col0 + - CAST( - 75 AS SIGNED ) FROM tab0
----
165
597
657

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT 6 * + col0 + - CAST ( - 75 AS INTEGER ) FROM tab0
----
165
597
657

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT DISTINCT + COUNT( * ) * - MIN( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-4888
SELECT DISTINCT + COUNT ( * ) * - MIN ( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
-177

query I rowsort
SELECT ALL col2 * - col2 * + ( 11 ) FROM tab2 cor0
----
-17600
-37004
-5819

query II rowsort
SELECT + + 88 * + col2 * - - 18 AS col1, - 22 FROM tab2 AS cor0
----
36432
-22
63360
-22
91872
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT + COUNT( * ) - + 77 AS col0 FROM tab0
----
-74

skipif mysql # not compatible
query I rowsort label-4891
SELECT + COUNT ( * ) - + 77 AS col0 FROM tab0
----
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 + + col0 col2 FROM tab2
----
131
149
160

query I rowsort
SELECT - col1 - - 87 FROM tab0
----
6
66
86

onlyif mysql # DIV for integer division: 
query I rowsort label-4894
SELECT DISTINCT col2 DIV + col0 + col2 AS col2 FROM tab1
----
59
68
97

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT col2 / + col0 + col2 AS col2 FROM tab1
----
59
68
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT ALL + COUNT( * ) + - 97 AS col2 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL + COUNT ( * ) + - 97 AS col2 FROM tab1
----
-94

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN 27 + - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT DISTINCT - COUNT( * ) + - MAX( + - col0 ) col1 FROM tab1
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4897
SELECT DISTINCT - COUNT ( * ) + - MAX ( + - col0 ) col1 FROM tab1
----
48

query II rowsort
SELECT DISTINCT + col0 - - 76 + + col2 * 99 AS col2, + col1 AS col1 FROM tab2
----
2399
51
4100
77
5893
67

query I rowsort
SELECT ALL - - 39 - + + ( - col2 ) AS col0 FROM tab2 cor0
----
62
79
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT 27 + + COUNT( * ) FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-4900
SELECT 27 + + COUNT ( * ) FROM tab1 AS cor0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4901
SELECT - col0 + - + 14 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4901
SELECT - col0 + - + 14 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4902
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 + CAST( - + col0 AS SIGNED ) AND + 73
----

skipif mysql # not compatible
query III rowsort label-4902
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 + CAST ( - + col0 AS INTEGER ) AND + 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT COUNT( DISTINCT + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4903
SELECT COUNT ( DISTINCT + col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4904
SELECT ALL - col0 / - + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL - col0 / - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT DISTINCT + MAX( ALL + 13 ) AS col2 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT + MAX ( ALL + 13 ) AS col2 FROM tab0
----
13

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 48 NOT BETWEEN + 64 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - ( + 29 ), - col1 AS col0 FROM tab1 AS cor0
----
-29
-14
-29
-47
-29
-5

query II rowsort
SELECT ALL - col2 AS col2, + 59 * + col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-23
1357
-40
2360
-58
3422

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col2 + + + col1 BETWEEN col2 AND NULL )
----

query I rowsort
SELECT ALL - 4 FROM tab1 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4911
SELECT ALL + ( + col0 ) DIV col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL + ( + col0 ) / col2 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT + col1 / + + col1 + 38 + + col2 - - col2 + 62 IS NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 * - 69 + 9 - - - 67 + - col2 col0 FROM tab0
----
4673
4725
4762

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 col2 FROM tab2
----
49

query II rowsort
SELECT ALL 4 AS col1, - col0 + - 33 AS col2 FROM tab2
----
4
-108
4
-79
4
-97

query I rowsort
SELECT DISTINCT 76 * - ( col0 ) FROM tab1
----
-3876
-6460
-6916

query I rowsort
SELECT 52 * - col0 FROM tab1 AS cor0
----
-2652
-4420
-4732

query I rowsort
SELECT ( + 64 ) AS col1 FROM tab1 AS cor0
----
64
64
64

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 / - 31 > - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2, col0 / - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT DISTINCT - SUM( ALL + 87 ) + - - 36 AS col1 FROM tab0 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-4921
SELECT DISTINCT - SUM ( ALL + 87 ) + - - 36 AS col1 FROM tab0 AS cor0
----
-225

query II rowsort
SELECT + ( 25 ) * + col2 AS col2, - col0 FROM tab2 AS cor0
----
1000
-64
1450
-75
575
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 * - - 20 col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 46167e4e06a08c585047a2f1261c1b47

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT - + COUNT( * ) FROM tab2 WHERE - col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4924
SELECT - + COUNT ( * ) FROM tab2 WHERE - col2 IS NOT NULL
----
-3

query I rowsort
SELECT ALL - 71 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4926
SELECT ALL - col2 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL - col2 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - + col0 ) + + col2 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4928
SELECT DISTINCT - - col1 + - - CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4928
SELECT DISTINCT - - col1 + - - CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4929
SELECT DISTINCT - - ( - ( col2 ) ) * + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT - - ( - ( col2 ) ) * + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-3481
-4624
-9216

query I rowsort
SELECT - - col0 + 55 FROM tab1 AS cor0
----
106
140
146

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT - COUNT( * ) + - COUNT( * ) + - 47 * - COUNT( * ) FROM tab0 cor0
----
135

skipif mysql # not compatible
query I rowsort label-4931
SELECT - COUNT ( * ) + - COUNT ( * ) + - 47 * - COUNT ( * ) FROM tab0 cor0
----
135

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col0 - + 22 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 + - 27 - - + col0 col2 FROM tab2 AS cor0
----
-46
-57
-75

query I rowsort
SELECT DISTINCT col1 * + 98 FROM tab1
----
1372
4606
490

query I rowsort
SELECT DISTINCT + col2 + - - col2 * 68 FROM tab2
----
1587
2760
4002

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4936
SELECT CAST( NULL AS DECIMAL ) * col2 / - - 18 AS col1, + 26 AS col0 FROM tab1
----
NULL
26
NULL
26
NULL
26

skipif mysql # not compatible
query II rowsort label-4936
SELECT CAST ( NULL AS REAL ) * col2 / - - 18 AS col1, + 26 AS col0 FROM tab1
----
NULL
26
NULL
26
NULL
26

query I rowsort
SELECT DISTINCT + 86 AS col0 FROM tab2 WHERE - 20 IS NOT NULL
----
86

query I rowsort
SELECT ALL 67 - - 2 FROM tab0
----
69
69
69

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL > NULL )
----

query I rowsort
SELECT col0 + - 71 * - 45 * + col0 FROM tab2 AS cor0 WHERE NOT + 70 < + ( + + col2 )
----
147016
204544
239700

query I rowsort
SELECT ALL col1 * + 59 AS col0 FROM tab1 AS cor0
----
2773
295
826

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4942
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 NOT IN ( col1, - col0 - + - col0 + + + col1, 93 + 19 + - col1 * + CAST( NULL AS SIGNED ) * 34, - - 29 * + col2 * - ( - - col0 ) )
----

skipif mysql # not compatible
query III rowsort label-4942
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 NOT IN ( col1, - col0 - + - col0 + + + col1, 93 + 19 + - col1 * + CAST ( NULL AS INTEGER ) * 34, - - 29 * + col2 * - ( - - col0 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT + col0 * + - 37 AS col1 FROM tab1
----
-1887
-3145
-3367

onlyif mysql # aggregate syntax: 
query II rowsort label-4945
SELECT ALL COUNT( * ), + COUNT( ALL - + 44 ) AS col0 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-4945
SELECT ALL COUNT ( * ), + COUNT ( ALL - + 44 ) AS col0 FROM tab1
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4946
SELECT + col0 DIV col0 * 34 * col0 AS col2 FROM tab1
----
1734
2890
3094

skipif mysql # not compatible
query I rowsort label-4946
SELECT + col0 / col0 * 34 * col0 AS col2 FROM tab1
----
1734
2890
3094

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4947
SELECT + - col1 / CAST( NULL AS SIGNED ) * - col2 + - + col0 + col0 + col0 AS col2, + col1 AS col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-4947
SELECT + - col1 / CAST ( NULL AS INTEGER ) * - col2 + - + col0 + col0 + col0 AS col2, + col1 AS col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT + + 21 * + + 56 FROM tab0 AS cor0
----
1176
1176
1176

query I rowsort
SELECT DISTINCT col1 * col0 + ( 74 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1289
171
1901

query II rowsort
SELECT - 97 AS col2, + col2 AS col0 FROM tab1 AS cor0
----
-97
59
-97
68
-97
96

query II rowsort
SELECT - + 89, - ( - - col1 ) AS col0 FROM tab1 cor0
----
-89
-14
-89
-47
-89
-5

query I rowsort
SELECT ALL + col1 + - 93 FROM tab2
----
-16
-26
-42

query I rowsort
SELECT ALL 73 + col1 AS col2 FROM tab2
----
124
140
150

query I rowsort
SELECT DISTINCT + ( ( 20 ) ) + 34 + - + col1 FROM tab2
----
-13
-23
3

query I rowsort
SELECT DISTINCT 81 * - - col2 + - col2 FROM tab1
----
4720
5440
7680

query II rowsort
SELECT DISTINCT 40 * + 19 AS col1, 31 AS col0 FROM tab0
----
760
31

query II rowsort
SELECT ALL col2 + col0, col0 AS col1 FROM tab0
----
196
97
62
15
97
87

query I rowsort
SELECT DISTINCT col1 * ( - + col1 ) + - + col0 + 52 + - ( - 46 ) FROM tab0 WHERE NOT NULL NOT IN ( + col1, + 27 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4959
SELECT MAX( DISTINCT col2 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4959
SELECT MAX ( DISTINCT col2 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4960
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4960
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4961
SELECT * FROM tab2 AS cor0 WHERE 34 * 37 * + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4961
SELECT * FROM tab2 AS cor0 WHERE 34 * 37 * + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 * + col1 - - ( col2 ) col1 FROM tab2 WHERE - - col1 / - ( - ( col2 ) ) IS NOT NULL
----
2114
2805
3197

query I rowsort
SELECT DISTINCT ( + col2 ) + - - 56 + + col0 AS col2 FROM tab0
----
118
153
252

query I rowsort
SELECT - - col1 FROM tab2 WHERE + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - + 45 FROM tab2 cor0
----
-45
-45
-45

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-4967
SELECT DISTINCT - COUNT( - - col1 ) AS col2 FROM tab2 AS cor0 WHERE ( + col2 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4967
SELECT DISTINCT - COUNT ( - - col1 ) AS col2 FROM tab2 AS cor0 WHERE ( + col2 ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT + MIN( + - ( col1 ) ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4968
SELECT + MIN ( + - ( col1 ) ) AS col2 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT 5 + - + 35 AS col2 FROM tab0
----
-30
-30
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4970
SELECT DISTINCT - CAST( 76 AS SIGNED ) * + 57 * + 14 + 72 FROM tab0
----
-60576

skipif mysql # not compatible
query I rowsort label-4970
SELECT DISTINCT - CAST ( 76 AS INTEGER ) * + 57 * + 14 + 72 FROM tab0
----
-60576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4971
SELECT - CAST( + 12 AS SIGNED ) AS col1 FROM tab2 WHERE + + col1 + - col2 > 90 * + 36
----

skipif mysql # not compatible
query I rowsort label-4971
SELECT - CAST ( + 12 AS INTEGER ) AS col1 FROM tab2 WHERE + + col1 + - col2 > 90 * + 36
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4972
SELECT 46 + + CAST( NULL AS DECIMAL ) AS col2, col1 col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4972
SELECT 46 + + CAST ( NULL AS REAL ) AS col2, col1 col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN NULL AND + 73
----

query II rowsort
SELECT + col2 AS col1, + 81 * - col0 FROM tab0 AS cor0
----
10
-7047
47
-1215
99
-7857

query I rowsort
SELECT DISTINCT + - 83 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT SUM( - - col2 ) * + MAX( + ( col0 ) ) AS col0 FROM tab0 AS cor0
----
15132

skipif mysql # not compatible
query I rowsort label-4977
SELECT SUM ( - - col2 ) * + MAX ( + ( col0 ) ) AS col0 FROM tab0 AS cor0
----
15132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4978
SELECT DISTINCT + - CAST( - COUNT( + 49 ) AS SIGNED ) AS col0, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4978
SELECT DISTINCT + - CAST ( - COUNT ( + 49 ) AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
3
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4979
SELECT - ( 7 ) DIV + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4979
SELECT - ( 7 ) / + col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4980
SELECT + col1 DIV + + col2 + + col1 FROM tab0
----
1
23
82

skipif mysql # not compatible
query I rowsort label-4980
SELECT + col1 / + + col2 + + col1 FROM tab0
----
1
23
82

query I rowsort
SELECT ALL 64 + - + 82 AS col2 FROM tab0
----
-18
-18
-18

query I rowsort
SELECT DISTINCT 34 * + col1 + col0 FROM tab0
----
131
2769
801

query I rowsort
SELECT + ( - - 47 ) * + - col1 * 90 AS col2 FROM tab2
----
-215730
-283410
-325710

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT DISTINCT + 45 + - COUNT( * ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-4984
SELECT DISTINCT + 45 + - COUNT ( * ) FROM tab0 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT DISTINCT SUM( + col0 ) + + 36 col1 FROM tab0
----
235

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4985
SELECT DISTINCT SUM ( + col0 ) + + 36 col1 FROM tab0
----
235

query I rowsort
SELECT - 40 + + 37 * col0 AS col2 FROM tab0 AS cor0
----
3179
3549
515

query I rowsort
SELECT - col2 + - + col0 + + col0 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT ALL - - 59 + col0 + - 23 AS col1 FROM tab1 AS cor0
----
121
127
87

query I rowsort
SELECT ALL - col2 - - col2 * + 47 - - 72 * col2 AS col2 FROM tab0 AS cor0
----
11682
1180
5546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4990
SELECT DISTINCT + 21 - + CAST( + 90 AS SIGNED ) * + COUNT( * ) * - 88 * + 79 + 78 FROM tab1 AS cor0
----
1877139

skipif mysql # not compatible
query I rowsort label-4990
SELECT DISTINCT + 21 - + CAST ( + 90 AS INTEGER ) * + COUNT ( * ) * - 88 * + 79 + 78 FROM tab1 AS cor0
----
1877139

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT ALL + COUNT( * ) - - 39 * + + COUNT( * ) FROM tab0 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL + COUNT ( * ) - - 39 * + + COUNT ( * ) FROM tab0 AS cor0
----
120

query I rowsort
SELECT - 98 AS col0 FROM tab1 cor0 WHERE - col2 > + 25
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4993
SELECT - col1 * - CAST( 49 AS SIGNED ) * + col0 col1 FROM tab0
----
4753
59535
89523

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4993
SELECT - col1 * - CAST ( 49 AS INTEGER ) * + col0 col1 FROM tab0
----
4753
59535
89523

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4994
SELECT DISTINCT SUM( ALL - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4994
SELECT DISTINCT SUM ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query II rowsort
SELECT ALL col0, - col0 * + col1 FROM tab0
----
15
-1215
87
-1827
97
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4996
SELECT ALL * FROM tab1 WHERE NOT ( NOT - CAST( NULL AS SIGNED ) + + col2 + + col2 IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-4996
SELECT ALL * FROM tab1 WHERE NOT ( NOT - CAST ( NULL AS INTEGER ) + + col2 + + col2 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4997
SELECT CAST( - + 29 AS SIGNED ) FROM tab0
----
-29
-29
-29

skipif mysql # not compatible
query I rowsort label-4997
SELECT CAST ( - + 29 AS INTEGER ) FROM tab0
----
-29
-29
-29

query I rowsort
SELECT ALL + 71 * - col0 * - - 99 FROM tab1 AS cor0 WHERE NOT col2 * + col0 * ( 0 ) * + col2 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT - col1, - ( + col1 ) FROM tab0 cor0
----
-1
-1
-21
-21
-81
-81

query I rowsort
SELECT DISTINCT - - col0 * 9 FROM tab0 AS cor0
----
135
783
873

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5001
SELECT + col1 * + CAST( NULL AS SIGNED ), ( + 53 ) AS col1 FROM tab2 AS cor0
----
NULL
53
NULL
53
NULL
53

skipif mysql # not compatible
query II rowsort label-5001
SELECT + col1 * + CAST ( NULL AS INTEGER ), ( + 53 ) AS col1 FROM tab2 AS cor0
----
NULL
53
NULL
53
NULL
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5002
SELECT col0 * + CAST( NULL AS SIGNED ) AS col1, - col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-5002
SELECT col0 * + CAST ( NULL AS INTEGER ) AS col1, - col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT DISTINCT + - ( - + MAX( + + col0 ) ) AS col1 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-5003
SELECT DISTINCT + - ( - + MAX ( + + col0 ) ) AS col1 FROM tab2 cor0
----
75

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT ( + MIN( - - col1 ) ) col2 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5005
SELECT ( + MIN ( - - col1 ) ) col2 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT - COUNT( * ) col1 FROM tab2 WHERE col1 >= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5006
SELECT - COUNT ( * ) col1 FROM tab2 WHERE col1 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT ALL COUNT( * ) + + - 97 - 60 FROM tab1
----
-154

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL COUNT ( * ) + + - 97 - 60 FROM tab1
----
-154

query II rowsort
SELECT ALL + col0 + col2 + + col2 * + 77 + - col1, - col0 AS col1 FROM tab1
----
4682
-85
5348
-91
7525
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT COUNT( DISTINCT - + ( col1 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5009
SELECT COUNT ( DISTINCT - + ( col1 ) ) AS col2 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + + col0 col1 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT SUM( 95 ) FROM tab2 WHERE NOT ( NOT ( NULL > + col0 ) ) OR NOT - 92 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5011
SELECT SUM ( 95 ) FROM tab2 WHERE NOT ( NOT ( NULL > + col0 ) ) OR NOT - 92 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT ALL - 10 * 38 + COUNT( * ) FROM tab0
----
-377

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL - 10 * 38 + COUNT ( * ) FROM tab0
----
-377

query II rowsort
SELECT DISTINCT + + col2 AS col2, + 73 FROM tab2 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT 53 * - 83 + + col2 AS col2 FROM tab2
----
-4341
-4359
-4376

query I rowsort
SELECT DISTINCT + col2 * - + col2 - - - col0 * col2 AS col1 FROM tab2 AS cor0
----
-1587
-4160
-7714

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT DISTINCT - COUNT( * ) * + + 77 + + MIN( col2 ) FROM tab1 AS cor0
----
-172

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT - COUNT ( * ) * + + 77 + + MIN ( col2 ) FROM tab1 AS cor0
----
-172

query I rowsort
SELECT ALL col1 * + 32 + - col2 FROM tab1 AS cor0
----
101
1436
352

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 33 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5019
SELECT DISTINCT - SUM( ALL + + 70 ) + + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5019
SELECT DISTINCT - SUM ( ALL + + 70 ) + + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5020
SELECT DISTINCT col2 - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5020
SELECT DISTINCT col2 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 + - ( + + col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5022
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) + + 89 > + 79 - - - col2
----

skipif mysql # not compatible
query III rowsort label-5022
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) + + 89 > + 79 - - - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5023
SELECT DISTINCT COUNT( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5023
SELECT DISTINCT COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0
----
0

query II rowsort
SELECT 41, col0 FROM tab0 AS cor0
----
41
15
41
87
41
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT ALL - + SUM( + col1 ) * MIN( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-3366

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL - + SUM ( + col1 ) * MIN ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-3366

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col0 col1 FROM tab2
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-5027
SELECT ALL col2 DIV col0 * - col2 FROM tab0
----
-141
-99
0

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL col2 / col0 * - col2 FROM tab0
----
-141
-99
0

query I rowsort
SELECT + - col1 AS col2 FROM tab1 WHERE NOT - + 67 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT + COUNT( * ) * - - COUNT( * ) * + + 90 AS col0 FROM tab1
----
810

skipif mysql # not compatible
query I rowsort label-5029
SELECT + COUNT ( * ) * - - COUNT ( * ) * + + 90 AS col0 FROM tab1
----
810

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT ALL COUNT( - 47 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL COUNT ( - 47 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT DISTINCT COUNT( DISTINCT + 37 ) * COUNT( * ) + + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + - col1 / 12
----
0

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT COUNT ( DISTINCT + 37 ) * COUNT ( * ) + + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + - col1 / 12
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT DISTINCT - COUNT( + 23 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5032
SELECT DISTINCT - COUNT ( + 23 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5033
SELECT DISTINCT - COUNT( * ) AS col2, 14 FROM tab0 AS cor0
----
-3
14

skipif mysql # not compatible
query II rowsort label-5033
SELECT DISTINCT - COUNT ( * ) AS col2, 14 FROM tab0 AS cor0
----
-3
14

query I rowsort
SELECT 16 * 7 + + 46 FROM tab0 AS cor0
----
158
158
158

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT - - 36 + - COUNT( * ) FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-5035
SELECT - - 36 + - COUNT ( * ) FROM tab1 AS cor0
----
33

query I rowsort
SELECT + 66 + + col2 FROM tab2 AS cor0
----
106
124
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5037
SELECT + + 66 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5037
SELECT + + 66 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 * - + 87 >= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + col1 AS col2 FROM tab0 AS cor0 WHERE 42 < NULL
----

query I rowsort
SELECT + 74 + - 92 * - col1 AS col2 FROM tab0 cor0
----
166
2006
7526

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT ALL + MIN( ALL 85 ) AS col2 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-5041
SELECT ALL + MIN ( ALL 85 ) AS col2 FROM tab1 AS cor0
----
85

query III rowsort
SELECT * FROM tab2 WHERE - + 24 - - col2 + 13 > NULL
----

query I rowsort
SELECT DISTINCT + col1 + col0 * col0 AS col2 FROM tab0
----
306
7590
9410

query I rowsort
SELECT + col1 FROM tab0 WHERE - col2 + 55 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5045
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5045
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT - MAX( + 61 ) AS col2 FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-5046
SELECT - MAX ( + 61 ) AS col2 FROM tab0
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-5047
SELECT DISTINCT + 94 DIV ( + 43 ) col0 FROM tab0, tab2 AS cor0
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5047
SELECT DISTINCT + 94 / ( + 43 ) col0 FROM tab0, tab2 AS cor0
----
2

query I rowsort
SELECT ALL + col1 + 7 FROM tab0
----
28
8
88

query I rowsort
SELECT - col0 AS col0 FROM tab2 cor0 WHERE col0 BETWEEN - col2 * - - col1 - + col2 * + + 9 AND - - 5 + col1
----
-46
-64

query I rowsort
SELECT ALL - col0 - col2 - - 87 FROM tab1 AS cor0
----
-57
-60
-72

query I rowsort
SELECT + 49 - + + ( + col0 ) AS col1 FROM tab1 AS cor0
----
-2
-36
-42

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 IN ( col2, col0 * + + ( 88 ), + - col1 * - col1 )
----
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5053
SELECT + MIN( DISTINCT + 41 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT + col1 BETWEEN - CAST( NULL AS SIGNED ) AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5053
SELECT + MIN ( DISTINCT + 41 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT + col1 BETWEEN - CAST ( NULL AS INTEGER ) AND NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5054
SELECT DISTINCT col1 * - ( col1 ) DIV + - col1 AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5054
SELECT DISTINCT col1 * - ( col1 ) / + - col1 AS col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT - ( col2 ) FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT ALL - - col2 * + - col1 * col0 AS col0 FROM tab1 AS cor0
----
-25075
-290836
-68544

query I rowsort
SELECT - col1 * + + 2 FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT 40 * + 18 FROM tab1
----
720
720
720

query II rowsort
SELECT + col2, col2 * + - ( + col0 ) AS col0 FROM tab2
----
23
-1058
40
-2560
58
-4350

query II rowsort
SELECT DISTINCT + 92 AS col0, - col0 AS col2 FROM tab0
----
92
-15
92
-87
92
-97

query I rowsort
SELECT ALL col2 * + + 62 AS col2 FROM tab2
----
1426
2480
3596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5062
SELECT DISTINCT + 49 / - col1 - + CAST( + col1 AS SIGNED ) + + 10 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT + 49 / - col1 - + CAST ( + col1 AS INTEGER ) + + 10 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = + - col1 + - 53
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5065
SELECT ALL SUM( + - 97 ), CAST( NULL AS SIGNED ) + - + 36 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-873
NULL

skipif mysql # not compatible
query II rowsort label-5065
SELECT ALL SUM ( + - 97 ), CAST ( NULL AS INTEGER ) + - + 36 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-873
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT DISTINCT - + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5067
SELECT DISTINCT - + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-5068
SELECT + 81 DIV 74 - 9 AS col1, col2 * - col2 FROM tab0
----
-8
-100
-8
-2209
-8
-9801

skipif mysql # not compatible
query II rowsort label-5068
SELECT + 81 / 74 - 9 AS col1, col2 * - col2 FROM tab0
----
-8
-100
-8
-2209
-8
-9801

query I rowsort
SELECT - col1 * col2 * - - ( - + col0 ) * + ( + 45 ) - - + col1 + - - col2 AS col1 FROM tab0
----
2569853
432235
822181

query I rowsort
SELECT ALL - 11 - - 57 AS col0 FROM tab2
----
46
46
46

query I rowsort
SELECT 80 + + 74 FROM tab2
----
154
154
154

query I rowsort
SELECT 98 + - col2 * - ( - 41 ) AS col2 FROM tab0
----
-1829
-312
-3961

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5073
SELECT * FROM tab2 WHERE - - CAST( NULL AS SIGNED ) <> col2 * + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5073
SELECT * FROM tab2 WHERE - - CAST ( NULL AS INTEGER ) <> col2 * + + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 + ( col2 ) NOT BETWEEN + ( col2 ) / col2 AND 49
----
87
21
10

query I rowsort
SELECT ALL - 8 - 62 FROM tab0 AS cor0
----
-70
-70
-70

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + + col2 AND - + col2 + + - 43
----

query I rowsort
SELECT DISTINCT - 50 - - col0 FROM tab2 AS cor0
----
-4
14
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT DISTINCT COUNT( DISTINCT 65 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-5078
SELECT DISTINCT COUNT ( DISTINCT 65 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT - - MAX( DISTINCT 66 ) AS col2 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5079
SELECT - - MAX ( DISTINCT 66 ) AS col2 FROM tab0 AS cor0
----
66

query I rowsort
SELECT - 28 FROM tab1 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT - - COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5081
SELECT - - COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5082
SELECT + col2 DIV - - col1 col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5082
SELECT + col2 / - - col1 col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT COUNT( * ) * + MAX( DISTINCT + 81 ) FROM tab1 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-5083
SELECT COUNT ( * ) * + MAX ( DISTINCT + 81 ) FROM tab1 AS cor0
----
243

query I rowsort
SELECT + + 16 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN NULL AND - col1
----
16
16
16

query I rowsort
SELECT + - col2 * - - col0 AS col1 FROM tab0 AS cor0 WHERE NOT col2 + - 53 + - col0 * col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 * + col2 * + - col1 col2 FROM tab0 cor0
----
2475
5250
95175

query I rowsort
SELECT ALL - 11 * - ( ( 30 ) ) FROM tab1
----
330
330
330

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5088
SELECT ALL * FROM tab0 WHERE NOT ( NULL NOT IN ( - col2 - - col1 * col1, + col0 * + CAST( - 38 AS SIGNED ), + col2 ) )
----

skipif mysql # not compatible
query III rowsort label-5088
SELECT ALL * FROM tab0 WHERE NOT ( NULL NOT IN ( - col2 - - col1 * col1, + col0 * + CAST ( - 38 AS INTEGER ), + col2 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5089
SELECT - 27 * - - col2 AS col0 FROM tab2 WHERE NOT col1 BETWEEN NULL AND - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-5089
SELECT - 27 * - - col2 AS col0 FROM tab2 WHERE NOT col1 BETWEEN NULL AND - CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5090
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1, + 46 FROM tab0 AS cor0
----
NULL
46

skipif mysql # not compatible
query II rowsort label-5090
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1, + 46 FROM tab0 AS cor0
----
NULL
46

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 22 NOT BETWEEN + - 39 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 * - - col2 * - col0 AS col1 FROM tab0
----
33135
8700
950697

query I rowsort
SELECT ALL - col2 + - - col0 - - 88 AS col2 FROM tab2
----
105
111
112

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT MIN( + 35 ) + - MIN( DISTINCT + 16 ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-5094
SELECT MIN ( + 35 ) + - MIN ( DISTINCT + 16 ) FROM tab1
----
19

query I rowsort
SELECT + 55 + col0 - col1 AS col0 FROM tab1 AS cor0
----
135
92
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT DISTINCT - COUNT( * ) + + ( MIN( DISTINCT - 99 ) ) FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-5096
SELECT DISTINCT - COUNT ( * ) + + ( MIN ( DISTINCT - 99 ) ) FROM tab1 AS cor0
----
-102

query I rowsort
SELECT ALL - 22 + col2 AS col1 FROM tab0 AS cor0
----
-12
25
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 36 + + col0 AS col0, + 25 col2 FROM tab2
----
100
25
111
25
82
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col2 * + 9 col1 FROM tab1
----
590
680
960

onlyif mysql # DIV for integer division: 
query I rowsort label-5100
SELECT ALL + 65 + - - col1 DIV + col1 + ( - col1 ) FROM tab2
----
-1
-11
15

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL + 65 + - - col1 / + col1 + ( - col1 ) FROM tab2
----
-1
-11
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT COUNT( * ) - COUNT( * ) AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5101
SELECT COUNT ( * ) - COUNT ( * ) AS col2 FROM tab0 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5102
SELECT DISTINCT - - 58 * 79 DIV col2 * col0 - col2 FROM tab1 AS cor0
----
2301
6029
6486

skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT - - 58 * 79 / col2 * col0 - col2 FROM tab1 AS cor0
----
2301
6029
6486

query I rowsort
SELECT ALL + - col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 89 * + col2 AS col2 FROM tab0
----
4183
8811
890

query I rowsort
SELECT + 56 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT DISTINCT + 27 * + col2 AS col2 FROM tab1
----
1593
1836
2592

onlyif mysql # DIV for integer division: 
query I rowsort label-5107
SELECT - col0 DIV + + col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5107
SELECT - col0 / + + col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + ( 64 ) AS col1 FROM tab2 AS cor0
----
64
64
64

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 AS cor0 WHERE ( NULL ) <= - 76
----

query I rowsort
SELECT DISTINCT 32 * - + col2 FROM tab1 AS cor0
----
-1888
-2176
-3072

query II rowsort
SELECT ALL col2, col0 AS col1 FROM tab0 cor0
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT + col2 * + 55 * - 96 AS col1 FROM tab2
----
-121440
-211200
-306240

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + 4 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN ( + col2 * + 41 - + col1 ) AND col2
----

query II rowsort
SELECT 97 AS col2, + col1 AS col1 FROM tab2
----
97
51
97
67
97
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT COUNT( * ) * - - 97 * SUM( ALL - 93 ) FROM tab0
----
-81189

skipif mysql # not compatible
query I rowsort label-5116
SELECT COUNT ( * ) * - - 97 * SUM ( ALL - 93 ) FROM tab0
----
-81189

query II rowsort
SELECT ALL col1, + col1 AS col0 FROM tab0
----
1
1
21
21
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * + - 21 col2, + col2 AS col0 FROM tab0 AS cor0 WHERE NOT - 69 * 92 >= ( + + 28 )
----
1701
47
21
99
441
10

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 59 * - 51 IS NULL
----

query II rowsort
SELECT ALL + col1, - col1 + + col1 FROM tab1 AS cor0
----
14
0
47
0
5
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5121
SELECT - + col1 + - + col2 + - col0 DIV + col0 col1, col1 * col1 * - 66 AS col2 FROM tab0 AS cor0
----
-101
-66
-129
-433026
-32
-29106

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5121
SELECT - + col1 + - + col2 + - col0 / + col0 col1, col1 * col1 * - 66 AS col2 FROM tab0 AS cor0
----
-101
-66
-129
-433026
-32
-29106

query I rowsort
SELECT + 8 + col1 + - 0 * col1 AS col0 FROM tab2
----
59
75
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5123
SELECT DISTINCT + col0 + - 24 + 73 + + col0 * + col1 - 28 DIV + col1 AS col0 FROM tab2
----
2441
5041
5149

skipif mysql # not compatible
query I rowsort label-5123
SELECT DISTINCT + col0 + - 24 + 73 + + col0 * + col1 - 28 / + col1 AS col0 FROM tab2
----
2441
5041
5149

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 60
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 IN ( + col1 * + + col1, col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 84 col0 FROM tab0 cor0
----
-84
-84
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5127
SELECT DISTINCT - 44 - + MAX( DISTINCT + 74 ) - COUNT( * ) / - AVG ( + col1 ) + - - ( - + 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-5127
SELECT DISTINCT - 44 - + MAX ( DISTINCT + 74 ) - COUNT ( * ) / - AVG ( + col1 ) + - - ( - + CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 - - - col2 + - col2 AS col2 FROM tab0 AS cor0 WHERE NULL <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 99 BETWEEN NULL AND + 5 - + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5130
SELECT ALL - - MAX( DISTINCT + + col1 ), - 97 AS col2 FROM tab0 AS cor0
----
81
-97

skipif mysql # not compatible
query II rowsort label-5130
SELECT ALL - - MAX ( DISTINCT + + col1 ), - 97 AS col2 FROM tab0 AS cor0
----
81
-97

query I rowsort
SELECT DISTINCT - 28 AS col0 FROM tab2 AS cor0 WHERE NOT 27 * - col1 * - col0 IS NULL
----
-28

query III rowsort
SELECT * FROM tab1 cor0 WHERE 88 < NULL
----

query I rowsort
SELECT + ( + - col2 ) - col0 - + + col2 AS col0 FROM tab2 cor0
----
-144
-191
-92

query I rowsort
SELECT ALL + - col2 + - 27 * - col2 * col2 AS col0 FROM tab1 AS cor0
----
124780
248736
93928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5135
SELECT 31 - + + CAST( NULL AS SIGNED ) + - ( 27 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5135
SELECT 31 - + + CAST ( NULL AS INTEGER ) + - ( 27 ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5136
SELECT COUNT( * ) * + - ( MAX( + CAST( + + col1 AS SIGNED ) ) ) + + COUNT( * ) FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-5136
SELECT COUNT ( * ) * + - ( MAX ( + CAST ( + + col1 AS INTEGER ) ) ) + + COUNT ( * ) FROM tab2
----
-228

query I rowsort
SELECT ALL + 49 + + - col0 AS col0 FROM tab2
----
-15
-26
3

query I rowsort
SELECT DISTINCT col0 * - - col2 + - - 78 FROM tab2
----
1136
2638
4428

query III rowsort
SELECT * FROM tab2 WHERE - col1 * - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5140
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) < - - 69
----

skipif mysql # not compatible
query III rowsort label-5140
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) < - - 69
----

query II rowsort
SELECT ALL + 6, col2 AS col2 FROM tab2 cor0
----
6
23
6
40
6
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT - COUNT( ALL + col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5142
SELECT - COUNT ( ALL + col2 ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT DISTINCT - col0, 52 AS col0 FROM tab0 AS cor0 WHERE NOT 8 IS NULL
----
-15
52
-87
52
-97
52

query I rowsort
SELECT + - ( 45 ) AS col2 FROM tab0 cor0
----
-45
-45
-45

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col1 ) / - 14 * - col2 + col2 * + + col0 BETWEEN NULL AND - col2 + + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5147
SELECT ALL - col0 DIV col0 + + col1 FROM tab1
----
13
4
46

skipif mysql # not compatible
query I rowsort label-5147
SELECT ALL - col0 / col0 + + col1 FROM tab1
----
13
4
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT ALL COUNT( * ) + COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5149
SELECT ALL * FROM tab2 WHERE ( NULL ) >= ( - ( 10 ) - + CAST( NULL AS SIGNED ) * - col2 )
----

skipif mysql # not compatible
query III rowsort label-5149
SELECT ALL * FROM tab2 WHERE ( NULL ) >= ( - ( 10 ) - + CAST ( NULL AS INTEGER ) * - col2 )
----

query I rowsort
SELECT DISTINCT + 31 + col2 FROM tab2
----
54
71
89

query III rowsort
SELECT * FROM tab2 WHERE - 30 * 14 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5152
SELECT ALL CAST( - 6 AS SIGNED ) + + col2 DIV col0 AS col2 FROM tab2
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL CAST ( - 6 AS INTEGER ) + + col2 / col0 AS col2 FROM tab2
----
-6
-6
-6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 IN ( - ( col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT ALL SUM( ALL col2 ) col2 FROM tab2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5154
SELECT ALL SUM ( ALL col2 ) col2 FROM tab2
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5155
SELECT MAX( CAST( 9 AS SIGNED ) ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5155
SELECT MAX ( CAST ( 9 AS INTEGER ) ) FROM tab2
----
9

query I rowsort
SELECT - col1 / col2 FROM tab2 WHERE NOT + 66 >= ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT 2 * 54 NOT BETWEEN ( 95 * + col2 ) AND 7
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> col0 / 78
----

query I rowsort
SELECT 69 * col2 + + col0 AS col2 FROM tab0
----
3258
6928
777

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT 88 + + COUNT( col1 ) col2 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5161
SELECT 88 + + COUNT ( col1 ) col2 FROM tab1
----
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5162
SELECT ALL col2 AS col0 FROM tab1 WHERE ( CAST( - 70 AS DECIMAL ) ) <= + 83
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5162
SELECT ALL col2 AS col0 FROM tab1 WHERE ( CAST ( - 70 AS REAL ) ) <= + 83
----
59
68
96

query I rowsort
SELECT - AVG ( ALL - col1 ) FROM tab0 WHERE NOT - col2 IS NOT NULL
----
NULL

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT col2 * col2 IN ( col2 )
----
23
40
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + + 81 IS NULL
----

query I rowsort
SELECT col1 * - 45 AS col2 FROM tab2 AS cor0
----
-2295
-3015
-3465

query I rowsort
SELECT ALL + 39 * ( + ( 1 ) * + 41 ) AS col1 FROM tab2 cor0 WHERE NOT ( col1 ) <> - 62
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 + - col0 * col2 col0 FROM tab1 AS cor0
----
-4984
-5103
-6276

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE - col1 BETWEEN - col1 AND 44
----
14
47
5

query I rowsort
SELECT ALL + 61 + - col1 * - 69 AS col0 FROM tab0
----
130
1510
5650

query I rowsort
SELECT col2 + - 50 FROM tab1
----
18
46
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT COUNT( * ) + + 35 AS col0 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-5172
SELECT COUNT ( * ) + + 35 AS col0 FROM tab2
----
38

query I rowsort
SELECT ALL - col2 + ( col2 + col1 * - col2 ) * + col1 AS col2 FROM tab0 AS cor0
----
-304607
-4210
-99

query I rowsort
SELECT DISTINCT + - col2 - - col0 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE - col2 / + 73 NOT BETWEEN 41 AND NULL
----
-23
-40
-58

query I rowsort
SELECT ALL + - col2 * + 62 FROM tab2 AS cor0
----
-1426
-2480
-3596

query I rowsort
SELECT 4 + - col1 * + col0 FROM tab0 AS cor0
----
-1211
-1823
-93

query I rowsort
SELECT ( 93 ) FROM tab2 AS cor0 WHERE ( + col2 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT - COUNT( DISTINCT col0 ) FROM tab2 WHERE ( col0 ) NOT BETWEEN col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5179
SELECT - COUNT ( DISTINCT col0 ) FROM tab2 WHERE ( col0 ) NOT BETWEEN col2 AND NULL
----
0

query I rowsort
SELECT DISTINCT - col1 * - 26 AS col0 FROM tab2
----
1326
1742
2002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5181
SELECT ALL CAST( 10 AS SIGNED ) FROM tab2 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL CAST ( 10 AS INTEGER ) FROM tab2 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5182
SELECT DISTINCT - col2 + col1 * CAST( - CAST( NULL AS SIGNED ) * ( col1 ) AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5182
SELECT DISTINCT - col2 + col1 * CAST ( - CAST ( NULL AS INTEGER ) * ( col1 ) AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5183
SELECT * FROM tab0 WHERE 46 = ( + 75 ) OR NOT NULL < ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5183
SELECT * FROM tab0 WHERE 46 = ( + 75 ) OR NOT NULL < ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT DISTINCT SUM( - 43 ) AS col0 FROM tab2
----
-129

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT SUM ( - 43 ) AS col0 FROM tab2
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT - + ( + COUNT( col0 ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5185
SELECT - + ( + COUNT ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col0 * - 0 + col1 * 52 FROM tab2 AS cor0
----
2652
3484
4004

onlyif mysql # DIV for integer division: 
query I rowsort label-5187
SELECT ALL + col2 DIV + + col2 AS col0 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5187
SELECT ALL + col2 / + + col2 AS col0 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT + col2 * - 22 FROM tab2 AS cor0
----
-1276
-506
-880

query I rowsort
SELECT ALL ( + + 10 ) AS col2 FROM tab0 AS cor0
----
10
10
10

onlyif mysql # aggregate syntax: 
query II rowsort label-5190
SELECT ALL - 87 AS col2, COUNT( * ) col2 FROM tab1
----
-87
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5190
SELECT ALL - 87 AS col2, COUNT ( * ) col2 FROM tab1
----
-87
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 91 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5192
SELECT DISTINCT - + COUNT( * ) * ( - ( MIN( CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) ) ) + MIN( - 24 + 38 ) ) + CAST( 34 AS DECIMAL ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5192
SELECT DISTINCT - + COUNT ( * ) * ( - ( MIN ( CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) ) ) + MIN ( - 24 + 38 ) ) + CAST ( 34 AS REAL ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT DISTINCT + SUM( + col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT + SUM ( + col0 ) AS col0 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT + MIN( + 44 ) FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-5194
SELECT + MIN ( + 44 ) FROM tab0 AS cor0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-5195
SELECT col2 DIV 93 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5195
SELECT col2 / 93 AS col1 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5196
SELECT COUNT( * ) * - 30 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 * 23 / + col1 + + CAST( NULL AS SIGNED ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5196
SELECT COUNT ( * ) * - 30 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 * 23 / + col1 + + CAST ( NULL AS INTEGER ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT DISTINCT - MAX( col2 ) col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5197
SELECT DISTINCT - MAX ( col2 ) col0 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT ALL 96 * col1 FROM tab2 AS cor0 WHERE 58 NOT IN ( col2 * 66 )
----
4896
6432
7392

query II rowsort
SELECT + + 68 AS col1, col1 FROM tab1 AS cor0
----
68
14
68
47
68
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 54 ) col2 FROM tab1
----
-54
-54
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 * + 59 col1 FROM tab1 WHERE ( + col1 * + col0 + - col2 + - col2 * - col2 ) BETWEEN ( - col1 * - 21 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5202
SELECT DISTINCT - col0 DIV - 98 + + col0 AS col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5202
SELECT DISTINCT - col0 / - 98 + + col0 AS col0 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5203
SELECT CAST( - - 62 AS SIGNED ) FROM tab1
----
62
62
62

skipif mysql # not compatible
query I rowsort label-5203
SELECT CAST ( - - 62 AS INTEGER ) FROM tab1
----
62
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - ( + col2 ) col0 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT DISTINCT + col0 * + col0 + + + 51 * - col1 AS col1 FROM tab0
----
-3906
6498
9358

query I rowsort
SELECT DISTINCT + col1 * + col1 * - - ( - - 50 ) + - 81 AS col1 FROM tab2
----
129969
224369
296369

query III rowsort
SELECT * FROM tab1 WHERE - - col0 / - + col2 + - col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5208
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - 27 AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5208
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - 27 AND CAST ( NULL AS REAL )
----

query I rowsort
SELECT DISTINCT + 28 + - - col2 AS col2 FROM tab1
----
124
87
96

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( - - 44 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT - SUM( - + col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-5211
SELECT - SUM ( - + col0 ) AS col2 FROM tab0
----
199

query III rowsort
SELECT * FROM tab1 WHERE 83 <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NOT + 74 * + 34 IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 * col0 FROM tab1 AS cor0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
2601
7225
8281

query I rowsort
SELECT 55 + + - col1 FROM tab2 AS cor0
----
-12
-22
4

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 88 ) < - 36 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 35 IN ( - - col1 * + 38 )
----

query I rowsort
SELECT ALL + col1 + - 18 FROM tab2 cor0
----
33
49
59

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 62 * - - col2 * + col2 + col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5220
SELECT DISTINCT - col0 DIV - CAST( + col2 AS SIGNED ) + - - col2 FROM tab0
----
18
47
99

skipif mysql # not compatible
query I rowsort label-5220
SELECT DISTINCT - col0 / - CAST ( + col2 AS INTEGER ) + - - col2 FROM tab0
----
18
47
99

query I rowsort
SELECT ALL + - 93 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT DISTINCT col1 - + 8 + + col1 AS col1 FROM tab1
----
2
20
86

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 98 NOT IN ( col1 / - col0 - + 57 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - 90 FROM tab1 AS cor0 WHERE - col1 BETWEEN NULL AND - col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 = ( - 16 + - - 5 ) AND NOT - 73 IS NOT NULL
----

query I rowsort
SELECT + - col1 - 55 FROM tab1 AS cor0
----
-102
-60
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5227
SELECT DISTINCT COUNT( * ) - + COUNT( + - CAST( + col1 AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT COUNT ( * ) - + COUNT ( + - CAST ( + col1 AS INTEGER ) ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 + - col1 + - col2 NOT BETWEEN NULL AND + + col2
----

query I rowsort
SELECT ALL + 86 - - + col0 FROM tab1 AS cor0
----
137
171
177

query II rowsort
SELECT 27 - col2 * - + 40 AS col0, 28 FROM tab1 AS cor0
----
2387
28
2747
28
3867
28

query I rowsort
SELECT DISTINCT 44 * + - col0 + 9 * + 83 - - col1 AS col2 FROM tab1 AS cor0
----
-1483
-2988
-3210

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5232
SELECT * FROM tab2 WHERE NOT ( + col2 + col0 > - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5232
SELECT * FROM tab2 WHERE NOT ( + col2 + col0 > - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL + + col0 * col2 AS col1 FROM tab2 WHERE NOT - - 27 > col2
----
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5234
SELECT DISTINCT col0 AS col2, CAST( NULL AS SIGNED ) + - + col0 + - ( - + ( + col0 ) ) AS col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-5234
SELECT DISTINCT col0 AS col2, CAST ( NULL AS INTEGER ) + - + col0 + - ( - + ( + col0 ) ) AS col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab1 cor0 WHERE NULL NOT BETWEEN + col0 * - 38 AND - + 36
----

query I rowsort
SELECT ALL col1 * + + 47 FROM tab2 AS cor0
----
2397
3149
3619

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5237
SELECT + 30 DIV 59 + MIN( ALL + + 56 ) AS col1 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-5237
SELECT + 30 / 59 + MIN ( ALL + + 56 ) AS col1 FROM tab1 AS cor0
----
56

query I rowsort
SELECT 45 * - col0 AS col0 FROM tab0 AS cor0
----
-3915
-4365
-675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + 81 col1, - col1 AS col1 FROM tab2
----
4131
-51
5427
-67
6237
-77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col0 > - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT ( NULL ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5241
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( NULL ) = NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5242
SELECT - 75 DIV - 76 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5242
SELECT - 75 / - 76 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * + ( + - col1 ) * col2 FROM tab2 cor0
----
-237160
-260362
-59823

query II rowsort
SELECT + - col2 * - col2 AS col1, 61 AS col2 FROM tab2 AS cor0
----
1600
61
3364
61
529
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5245
SELECT - COUNT( * ) DIV - + 52 AS col0, - COUNT( * ) * - + 97 * + COUNT( * ) + - MIN( - + col2 ) FROM tab1 AS cor0
----
0
969

skipif mysql # not compatible
query II rowsort label-5245
SELECT - COUNT ( * ) / - + 52 AS col0, - COUNT ( * ) * - + 97 * + COUNT ( * ) + - MIN ( - + col2 ) FROM tab1 AS cor0
----
0
969

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT ( + SUM( DISTINCT + + 58 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT ( - col0 IS NULL )
----
58

skipif mysql # not compatible
query I rowsort label-5246
SELECT ( + SUM ( DISTINCT + + 58 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT ( - col0 IS NULL )
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5247
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + 71 AS col2, col0 col1 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-5247
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + 71 AS col2, col0 col1 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5248
SELECT MAX( + ( + + 14 ) ) DIV ( + + COUNT( * ) ) AS col0 FROM tab1 cor0
----
4

skipif mysql # not compatible
query I rowsort label-5248
SELECT MAX ( + ( + + 14 ) ) / ( + + COUNT ( * ) ) AS col0 FROM tab1 cor0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5249
SELECT - - 27 + + 62 DIV + col0 FROM tab0 cor0
----
27
27
31

skipif mysql # not compatible
query I rowsort label-5249
SELECT - - 27 + + 62 / + col0 FROM tab0 cor0
----
27
27
31

query I rowsort
SELECT - col0 * 18 * + 54 * + - col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col1 + col1 AS col0, + col0 * + col2 AS col1 FROM tab2 AS cor0
----
102
1058
134
4350
154
2560

query I rowsort
SELECT + col1 + col0 + - col2 * + col0 + col1 * - col1 * + 93 FROM tab1 AS cor0
----
-211487
-23059
-7250

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) IS NULL OR NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col0 * + col2 + 80 + - col2 + + + col1 AS col2 FROM tab1
----
4894
5041
6247

query I rowsort
SELECT DISTINCT + + 30 * col1 FROM tab2 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT ( col2 ) + - 86 AS col0 FROM tab0
----
-39
-76
13

query I rowsort
SELECT ALL + 27 + - - 2 AS col0 FROM tab2
----
29
29
29

query II rowsort
SELECT ALL + col2 AS col1, col1 AS col0 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT SUM( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-5259
SELECT SUM ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT 95 + + col2 FROM tab0 AS cor0
----
105
142
194

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT ALL - MIN( + 97 ) FROM tab2
----
-97

skipif mysql # not compatible
query I rowsort label-5262
SELECT ALL - MIN ( + 97 ) FROM tab2
----
-97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 < col1 + + col1 + - 16 * + - 91
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 44 + - col0 AS col2 FROM tab0
----
-43
-53
29

query I rowsort
SELECT + col2 + - col1 * + col2 + + - 12 FROM tab1 AS cor0
----
-1260
-248
-3140

query I rowsort
SELECT ALL + - ( - 94 ) * + col0 AS col1 FROM tab2 AS cor0 WHERE - 57 + + - col0 + - col0 IS NULL
----

query II rowsort
SELECT - col2 * + col0 AS col0, 75 FROM tab2 AS cor0
----
-1058
75
-2560
75
-4350
75

query I rowsort
SELECT ALL + 18 * col2 FROM tab0 AS cor0
----
1782
180
846

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5269
SELECT DISTINCT - + CAST( + 39 AS SIGNED ), col1 AS col1 FROM tab2 AS cor0
----
-39
51
-39
67
-39
77

skipif mysql # not compatible
query II rowsort label-5269
SELECT DISTINCT - + CAST ( + 39 AS INTEGER ), col1 AS col1 FROM tab2 AS cor0
----
-39
51
-39
67
-39
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5270
SELECT ALL + col1 * + CAST( - 98 AS SIGNED ) col0 FROM tab0 AS cor0
----
-2058
-7938
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5270
SELECT ALL + col1 * + CAST ( - 98 AS INTEGER ) col0 FROM tab0 AS cor0
----
-2058
-7938
-98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 89 >= col1 + - col2 * + 72 / + 69
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5272
SELECT 93 DIV - - COUNT( * ) col0 FROM tab2
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5272
SELECT 93 / - - COUNT ( * ) col0 FROM tab2
----
31

query I rowsort
SELECT col1 * - 56 FROM tab1
----
-2632
-280
-784

query I rowsort
SELECT ( + 45 ) AS col0 FROM tab1
----
45
45
45

query I rowsort
SELECT DISTINCT 50 * + 52 AS col1 FROM tab1
----
2600

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT + 50 < - + 68 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT + COUNT( + col0 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5277
SELECT + COUNT ( + col0 ) col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT 95 + - COUNT( * ) AS col1 FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-5278
SELECT 95 + - COUNT ( * ) AS col1 FROM tab0
----
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 39 * - 51 col2 FROM tab2
----
-1912
-1922
-1938

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT col1 + - col0 <> NULL
----

query I rowsort
SELECT ALL col1 + col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
10
28
94

query II rowsort
SELECT ALL ( - col1 ), + col0 AS col2 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

query I rowsort
SELECT ALL + col1 + + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 6 col0 FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL - 60 + 40 FROM tab2
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT COUNT( * ) + 8 FROM tab2 WHERE NULL > NULL
----
8

skipif mysql # not compatible
query I rowsort label-5286
SELECT COUNT ( * ) + 8 FROM tab2 WHERE NULL > NULL
----
8

query I rowsort
SELECT ALL - 91 FROM tab2 WHERE + col0 + + - col2 / + + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5288
SELECT DISTINCT col1 DIV 57 + col1 FROM tab2
----
51
68
78

skipif mysql # not compatible
query I rowsort label-5288
SELECT DISTINCT col1 / 57 + col1 FROM tab2
----
51
68
78

query II rowsort
SELECT DISTINCT ( - col0 ), - 64 FROM tab1 WHERE + - 59 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5290
SELECT ALL CAST( + MAX( + col2 ) AS SIGNED ) - - + 87 FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL CAST ( + MAX ( + col2 ) AS INTEGER ) - - + 87 FROM tab0
----
186

query I rowsort
SELECT DISTINCT 42 + 24 FROM tab0
----
66

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) NOT IN ( + + col2, 40 + - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT ALL - + ( - MAX( DISTINCT col2 ) ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5293
SELECT ALL - + ( - MAX ( DISTINCT col2 ) ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT + 22 * + + col1 FROM tab1
----
1034
110
308

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT + SUM( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-5295
SELECT + SUM ( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT DISTINCT + + 30 AS col0 FROM tab1 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT ALL + - SUM( + 28 ) col2 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5297
SELECT ALL + - SUM ( + 28 ) col2 FROM tab0 AS cor0
----
-84

query II rowsort
SELECT ALL ( + col2 ) AS col2, - col2 + - + col1 AS col1 FROM tab1
----
59
-64
68
-115
96
-110

query I rowsort
SELECT DISTINCT col1 * - 94 AS col2 FROM tab0
----
-1974
-7614
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab1 WHERE NOT - col0 * - 34 + + col2 <> ( - 87 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT DISTINCT ( - + MIN( DISTINCT + - 90 ) ) FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-5301
SELECT DISTINCT ( - + MIN ( DISTINCT + - 90 ) ) FROM tab0 AS cor0
----
90

query I rowsort
SELECT ALL + 78 + - + col1 FROM tab0 AS cor0
----
-3
57
77

query I rowsort
SELECT + 58 FROM tab1 WHERE NOT col1 > + col2
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT ALL + COUNT( + col0 ) + + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL + COUNT ( + col0 ) + + COUNT ( * ) FROM tab0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5305
SELECT CAST( - ( - col2 ) AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5305
SELECT CAST ( - ( - col2 ) AS INTEGER ) FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5306
SELECT DISTINCT + 96 + + + col2 + - + col0 * - CAST( NULL AS SIGNED ) / - col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5306
SELECT DISTINCT + 96 + + + col2 + - + col0 * - CAST ( NULL AS INTEGER ) / - col1 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col1 + - + col2 * + 11 - + ( col2 ) FROM tab0 AS cor0
----
-1189
-141
-645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5308
SELECT - - CAST( NULL AS SIGNED ) / + col1 + + 82 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5308
SELECT - - CAST ( NULL AS INTEGER ) / + col1 + + 82 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - - col1 + - - col0 + col0 AS col1 FROM tab2 cor0
----
189
269
292

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + ( col2 ), + col2 / col2 * + col1 * 15 )
----

query I rowsort
SELECT DISTINCT + - ( - 98 ) FROM tab2 cor0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-5312
SELECT 38 DIV - 51 + col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5312
SELECT 38 / - 51 + col0 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5313
SELECT ALL COUNT( ALL + 35 ) + + CAST( - COUNT( * ) AS SIGNED ) * - MAX( DISTINCT + col0 ) AS col2 FROM tab2
----
228

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL COUNT ( ALL + 35 ) + + CAST ( - COUNT ( * ) AS INTEGER ) * - MAX ( DISTINCT + col0 ) AS col2 FROM tab2
----
228

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5314
SELECT ALL * FROM tab1 WHERE NULL <> + col1 + ( CAST( + ( - + col1 ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5314
SELECT ALL * FROM tab1 WHERE NULL <> + col1 + ( CAST ( + ( - + col1 ) AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5315
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 * - + col1 * - 6 + + col1 / - + col1 * - col0 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5315
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 * - + col1 * - 6 + + col1 / - + col1 * - col0 AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT ALL COUNT( - 38 ) - + + 48 AS col0 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL COUNT ( - 38 ) - + + 48 AS col0 FROM tab0
----
-45

query I rowsort
SELECT DISTINCT + 76 + - col2 AS col1 FROM tab1 WHERE + col0 BETWEEN 0 AND + col0 * + col0 + - 72
----
-20
17
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT DISTINCT + + 83 * - COUNT( * ) + - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-5318
SELECT DISTINCT + + 83 * - COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5319
SELECT ALL CAST( col2 AS SIGNED ) * - + col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-5319
SELECT ALL CAST ( col2 AS INTEGER ) * - + col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT - 73 * col1 AS col2 FROM tab1 AS cor0
----
-1022
-3431
-365

query I rowsort
SELECT DISTINCT - 3 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-3

query I rowsort
SELECT - + col2 * - - col0 FROM tab0 AS cor0
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 86 col1 FROM tab0 AS cor0
----
86
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, col1 AS col2 FROM tab0
----
10
21
47
81
99
1

query II rowsort
SELECT DISTINCT 21 AS col1, ( + col2 ) AS col2 FROM tab1
----
21
59
21
68
21
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5326
SELECT DISTINCT + - CAST( + col1 AS SIGNED ), col1 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
1
-21
21
-81
81

skipif mysql # not compatible
query II rowsort label-5326
SELECT DISTINCT + - CAST ( + col1 AS INTEGER ), col1 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
1
-21
21
-81
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 NOT IN ( - col1, - col2, + + 42 * + col1, - col1, + col0 / - - col2 + - 82 + - - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 56 + - ( - - col1 ) + + col0 AS col2 FROM tab2 AS cor0
----
43
51
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT COUNT( * ) + + - 75 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-5329
SELECT COUNT ( * ) + + - 75 FROM tab1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT ALL 76 + - COUNT( * ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-5330
SELECT ALL 76 + - COUNT ( * ) FROM tab0
----
73

query I rowsort
SELECT col0 + - ( - - 19 ) * + - 22 * + 78 + + + col0 + - + 44 * 43 * - 6 * - col0 AS col2 FROM tab2
----
-489496
-693796
-818646

query I rowsort
SELECT DISTINCT 0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 + + 6 AND + 96
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 <= - + 73 / - col1 + - 12
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 86 * - + 0 FROM tab2 AS cor0 WHERE ( NULL ) <= - 7 * - col0 / + - col2 + - ( col1 ) + + ( - + 2 )
----

query I rowsort
SELECT 49 * + - col0 * + col2 AS col0 FROM tab2 AS cor0
----
-125440
-213150
-51842

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * col2 + col2 * - - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5337
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN + CAST( NULL AS DECIMAL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5337
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN + CAST ( NULL AS REAL ) AND NULL
----
0

query I rowsort
SELECT col0 - - 0 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT 22 - + - COUNT( * ) - 80 * - COUNT( * ) + COUNT( * ) AS col2 FROM tab1
----
268

skipif mysql # not compatible
query I rowsort label-5339
SELECT 22 - + - COUNT ( * ) - 80 * - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1
----
268

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col0 * col1 + - col0 - - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT DISTINCT ( - - COUNT( * ) ) + - ( 43 ) AS col2 FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-5341
SELECT DISTINCT ( - - COUNT ( * ) ) + - ( 43 ) AS col2 FROM tab0
----
-40

query I rowsort
SELECT DISTINCT - 16 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5343
SELECT - - ( - col1 ) + - CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL <> 90
----

skipif mysql # not compatible
query I rowsort label-5343
SELECT - - ( - col1 ) + - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL <> 90
----

query I rowsort
SELECT ALL + col2 - + 62 AS col0 FROM tab1 AS cor0
----
-3
34
6

query I rowsort
SELECT col2 * col2 * 22 AS col0 FROM tab1 AS cor0
----
101728
202752
76582

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5346
SELECT + + col1 AS col2, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND NULL
----

skipif mysql # not compatible
query II rowsort label-5346
SELECT + + col1 AS col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT DISTINCT + 54 * + 0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 54 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-54

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5349
SELECT + + 80 AS col1, - col2 / + + ( + + col2 ) * - col0 FROM tab1 AS cor0 WHERE NOT col2 + col2 + ( 93 ) + col1 + + CAST( NULL AS DECIMAL ) <> - col2
----

skipif mysql # not compatible
query II rowsort label-5349
SELECT + + 80 AS col1, - col2 / + + ( + + col2 ) * - col0 FROM tab1 AS cor0 WHERE NOT col2 + col2 + ( 93 ) + col1 + + CAST ( NULL AS REAL ) <> - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col2, ( - col2 ) FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

query I rowsort
SELECT DISTINCT col1 * - 4 * + col0 FROM tab1 AS cor0
----
-1700
-17108
-2856

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5352
SELECT col2, - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-5352
SELECT col2, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT ALL col2 * 23 AS col2 FROM tab0 AS cor0
----
1081
2277
230

query II rowsort
SELECT - col2 AS col1, - 17 AS col1 FROM tab0 AS cor0
----
-10
-17
-47
-17
-99
-17

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - 84
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5356
SELECT ALL + COUNT( * ) AS col0, - 68 FROM tab2 AS cor0
----
3
-68

skipif mysql # not compatible
query II rowsort label-5356
SELECT ALL + COUNT ( * ) AS col0, - 68 FROM tab2 AS cor0
----
3
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT + MAX( 21 ) AS col1 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-5357
SELECT + MAX ( 21 ) AS col1 FROM tab0 AS cor0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5358
SELECT 8 * + col1 FROM tab2 cor0 WHERE NOT - col2 + - + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5358
SELECT 8 * + col1 FROM tab2 cor0 WHERE NOT - col2 + - + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE NOT + 44 < 89
----

query I rowsort
SELECT DISTINCT - col1 + + col2 - + - ( col1 ) * - col0 AS col0 FROM tab0
----
-1249
-1838
1

query I rowsort
SELECT ALL - col2 + col1 - + - ( + - ( + ( + col0 ) ) ) FROM tab2
----
-18
-27
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * - ( - col1 ) AS col0, 87 col2 FROM tab2
----
2601
87
4489
87
5929
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT - + MIN( col0 ) AS col1 FROM tab1 cor0 WHERE NOT col0 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5363
SELECT - + MIN ( col0 ) AS col1 FROM tab1 cor0 WHERE NOT col0 > NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5364
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT - + CAST( NULL AS SIGNED ) * - 6 IS NULL )
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5364
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT - + CAST ( NULL AS INTEGER ) * - 6 IS NULL )
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + - col1 + + - 44 FROM tab0 AS cor0
----
-125
-45
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT 47 * - COUNT( * ) FROM tab0 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-5366
SELECT 47 * - COUNT ( * ) FROM tab0 AS cor0
----
-141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 76 * col0 col2 FROM tab1 AS cor0
----
3876
6460
6916

query I rowsort
SELECT + 28 * - col1 + + col2 - - + col1 + + 1 AS col2 FROM tab2 AS cor0
----
-1353
-1750
-2038

query I rowsort
SELECT 89 + + col0 + - col0 FROM tab0 cor0
----
89
89
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5370
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + CAST( NULL AS DECIMAL ) AND - - col2 * col2 + - 83
----

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + CAST ( NULL AS REAL ) AND - - col2 * col2 + - 83
----

query I rowsort
SELECT + 66 + - 5 AS col0 FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT - col0 + + - col0 FROM tab2 AS cor0
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT DISTINCT - + 99 * ( - - COUNT( ALL - ( - + col2 ) ) ) AS col1 FROM tab2 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-5373
SELECT DISTINCT - + 99 * ( - - COUNT ( ALL - ( - + col2 ) ) ) AS col1 FROM tab2 AS cor0
----
-297

query I rowsort
SELECT ALL col2 * - 83 * + 36 AS col2 FROM tab1 AS cor0
----
-176292
-203184
-286848

query III rowsort
SELECT * FROM tab2 WHERE ( NOT - col1 * + 64 * + col2 > NULL )
----

query I rowsort
SELECT ALL 1 * + + 42 + - col2 FROM tab2
----
-16
19
2

query I rowsort
SELECT ALL - col1 + - col0 + + ( col2 ) * col0 * + col0 FROM tab1
----
249631
426185
562970

query I rowsort
SELECT DISTINCT - 84 * + + col1 + - col2 FROM tab0
----
-1774
-183
-6851

onlyif mysql # DIV for integer division: 
query I rowsort label-5379
SELECT col0 - col2 - 15 DIV - col0 col0 FROM tab2
----
17
23
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5379
SELECT col0 - col2 - 15 / - col0 col0 FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5380
SELECT DISTINCT + COUNT( col0 ) DIV - ( SUM( - + 30 ) ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT + COUNT ( col0 ) / - ( SUM ( - + 30 ) ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT + COUNT( - - 74 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5381
SELECT + COUNT ( - - 74 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5382
SELECT ALL CAST( - + MIN( - ( - 89 ) ) AS SIGNED ) FROM tab1 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL CAST ( - + MIN ( - ( - 89 ) ) AS INTEGER ) FROM tab1 AS cor0
----
-89

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 65 + - - 72 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 51 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT DISTINCT COUNT( * ) * + 6 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-5385
SELECT DISTINCT COUNT ( * ) * + 6 FROM tab2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT ( + COUNT( * ) ) * + 3 AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5386
SELECT ( + COUNT ( * ) ) * + 3 AS col2 FROM tab2
----
9

query II rowsort
SELECT col0, 40 * + col0 FROM tab2
----
46
1840
64
2560
75
3000

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 94 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 28 < ( NULL ) )
----

query I rowsort
SELECT DISTINCT 12 AS col1 FROM tab0 AS cor0 WHERE NOT col1 + - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT 59 NOT IN ( - - col1 + + col0 + - + ( + col1 ), - col0 + - col1, - col0 )
----

query II rowsort
SELECT + 21, + col2 FROM tab0
----
21
10
21
47
21
99

query I rowsort
SELECT + + col0 + col0 + + col0 AS col2 FROM tab2 WHERE NOT - col0 IS NULL
----
138
192
225

query I rowsort
SELECT - + ( col0 ) + + col0 AS col2 FROM tab1 WHERE col2 IS NULL OR + col2 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col2, 18 col0 FROM tab2
----
51
18
67
18
77
18

query I rowsort
SELECT ALL - col0 * - 40 FROM tab1
----
2040
3400
3640

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT - MIN( ALL - 9 ) col1 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5399
SELECT - MIN ( ALL - 9 ) col1 FROM tab2
----
9

query I rowsort
SELECT DISTINCT col0 * - + col2 * - col2 AS col0 FROM tab0
----
33135
8700
950697

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN - 40 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5402
SELECT 5 * col1 DIV - col1 FROM tab2
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-5402
SELECT 5 * col1 / - col1 FROM tab2
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT DISTINCT - COUNT( * ) * MAX( ALL + - 99 ) FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-5403
SELECT DISTINCT - COUNT ( * ) * MAX ( ALL + - 99 ) FROM tab0
----
297

onlyif mysql # DIV for integer division: 
query I rowsort label-5404
SELECT - ( + col0 ) DIV + col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5404
SELECT - ( + col0 ) / + col2 FROM tab2
----
-1
-1
-2

query II rowsort
SELECT ALL - col2 * + col0 AS col2, col2 FROM tab2
----
-1058
23
-2560
40
-4350
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5406
SELECT DISTINCT COUNT( * ) * 52 + 89 * 26, - 84 AS col1 FROM tab0
----
2470
-84

skipif mysql # not compatible
query II rowsort label-5406
SELECT DISTINCT COUNT ( * ) * 52 + 89 * 26, - 84 AS col1 FROM tab0
----
2470
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-5407
SELECT DISTINCT + + 79, + MAX( DISTINCT col1 ) AS col0 FROM tab2 cor0
----
79
77

skipif mysql # not compatible
query II rowsort label-5407
SELECT DISTINCT + + 79, + MAX ( DISTINCT col1 ) AS col0 FROM tab2 cor0
----
79
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <= 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT DISTINCT + COUNT( * ) + + - 2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
7

skipif mysql # not compatible
query I rowsort label-5409
SELECT DISTINCT + COUNT ( * ) + + - 2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
7

query II rowsort
SELECT col0 + 4 AS col1, col0 * - 64 + - col0 AS col0 FROM tab2
----
50
-2990
68
-4160
79
-4875

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5411
SELECT DISTINCT + col0 + + col0, - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
128
NULL
150
NULL
92
NULL

skipif mysql # not compatible
query II rowsort label-5411
SELECT DISTINCT + col0 + + col0, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
128
NULL
150
NULL
92
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT DISTINCT + 54 * COUNT( * ) + + 20 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
506

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT + 54 * COUNT ( * ) + + 20 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
506

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= col1 * - col1 * + ( + ( - 6 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5414
SELECT DISTINCT col2 + - + CAST( 38 AS SIGNED ) col1 FROM tab2 AS cor0
----
-15
2
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5414
SELECT DISTINCT col2 + - + CAST ( 38 AS INTEGER ) col1 FROM tab2 AS cor0
----
-15
2
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5415
SELECT DISTINCT - + col0 / + col2 * - + CAST( NULL AS SIGNED ) - + + col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5415
SELECT DISTINCT - + col0 / + col2 * - + CAST ( NULL AS INTEGER ) - + + col0 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 / 7 AS col2 FROM tab2 AS cor0 WHERE col0 + col1 - 59 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( - col2 ) col0, 76 AS col1 FROM tab0 AS cor0
----
-10
76
-47
76
-99
76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 67 * + + 22 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 43 * + 71 + col0 * - 23 FROM tab2
----
1328
1581
1995

query I rowsort
SELECT - ( - + ( + - col1 ) ) + - - col2 FROM tab1
----
21
54
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 80 ) col2 FROM tab2
----
80
80
80

query I rowsort
SELECT DISTINCT 83 * + ( - - 53 ) AS col0 FROM tab1
----
4399

query I rowsort
SELECT ALL 70 * - 38 FROM tab0 AS cor0
----
-2660
-2660
-2660

query I rowsort
SELECT - col0 * - + col0 FROM tab0 cor0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT DISTINCT COUNT( col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5425
SELECT DISTINCT COUNT ( col1 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + + col1 * + col2 FROM tab1 cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT + ( + 87 ) * 26 + - - 77 + + COUNT( * ) * - SUM( DISTINCT - + col2 ) FROM tab1 AS cor0
----
3008

skipif mysql # not compatible
query I rowsort label-5427
SELECT + ( + 87 ) * 26 + - - 77 + + COUNT ( * ) * - SUM ( DISTINCT - + col2 ) FROM tab1 AS cor0
----
3008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5428
SELECT + 29 / + 40 * + + ( + 27 ) * + CAST( NULL AS SIGNED ) * + + col0 + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5428
SELECT + 29 / + 40 * + + ( + 27 ) * + CAST ( NULL AS INTEGER ) * + + col0 + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5429
SELECT - - ( - - col1 ) DIV + col1 + + col2 * - - col0 AS col0 FROM tab0 AS cor0
----
706
871
9604

skipif mysql # not compatible
query I rowsort label-5429
SELECT - - ( - - col1 ) / + col1 + + col2 * - - col0 AS col0 FROM tab0 AS cor0
----
706
871
9604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5430
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE col2 + - col2 + + col1 * - CAST( + col0 AS SIGNED ) IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE col2 + - col2 + + col1 * - CAST ( + col0 AS INTEGER ) IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5431
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5431
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5432
SELECT col2 DIV + + col1 AS col0 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-5432
SELECT col2 / + + col1 AS col0 FROM tab0
----
0
0
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5433
SELECT ALL - SUM( + col2 ) * - - CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5433
SELECT ALL - SUM ( + col2 ) * - - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col0 * - - col2 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5435
SELECT ( - + MIN( - + CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5435
SELECT ( - + MIN ( - + CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5436
SELECT DISTINCT 82 DIV col1 * col2 * + - col2 AS col1 FROM tab1 cor0
----
-46080
-4624
-55696

skipif mysql # not compatible
query I rowsort label-5436
SELECT DISTINCT 82 / col1 * col2 * + - col2 AS col1 FROM tab1 cor0
----
-46080
-4624
-55696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab2 AS cor0 WHERE col0 / + 16 IS NOT NULL
----
-51
-67
-77

query II rowsort
SELECT - 48 + col1 AS col1, 13 * col0 AS col1 FROM tab1
----
-1
1183
-34
663
-43
1105

query I rowsort
SELECT + col0 + - 87 FROM tab0
----
-72
0
10

query I rowsort
SELECT DISTINCT 99 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
99

query I rowsort
SELECT ALL + col2 + - - col2 AS col0 FROM tab2
----
116
46
80

onlyif mysql # DIV for integer division: 
query I rowsort label-5442
SELECT ALL - col1 * col1 DIV + col1 - 0 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5442
SELECT ALL - col1 * col1 / + col1 - 0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5443
SELECT + - col2 AS col0, col0, + col1 * + CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
9 values hashing to b311209235897532a21fc42ac83609df

skipif mysql # not compatible
query III rowsort label-5443
SELECT + - col2 AS col0, col0, + col1 * + CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
9 values hashing to b311209235897532a21fc42ac83609df

query I rowsort
SELECT DISTINCT + col2 * col0 - col2 FROM tab2 AS cor0
----
1035
2520
4292

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 7 / col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT ALL + ( - MAX( DISTINCT + - 9 ) ) FROM tab1 AS cor0 WHERE NOT col1 / - col2 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL + ( - MAX ( DISTINCT + - 9 ) ) FROM tab1 AS cor0 WHERE NOT col1 / - col2 BETWEEN NULL AND NULL
----
NULL

query II rowsort
SELECT DISTINCT col0 AS col1, ( - col0 ) FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT DISTINCT - 85 - COUNT( * ) FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-5448
SELECT DISTINCT - 85 - COUNT ( * ) FROM tab1 AS cor0
----
-88

query II rowsort
SELECT ALL - 99 AS col2, - 72 AS col2 FROM tab1 AS cor0
----
-99
-72
-99
-72
-99
-72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > 66
----

query I rowsort
SELECT DISTINCT col0 * + col0 AS col0 FROM tab0 AS cor0 WHERE NOT col2 * 53 * 60 * 52 + - col0 IS NULL
----
225
7569
9409

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT - COUNT( * ) * 99 FROM tab1
----
-297

skipif mysql # not compatible
query I rowsort label-5453
SELECT - COUNT ( * ) * 99 FROM tab1
----
-297

query I rowsort
SELECT + 85 * + ( ( 36 ) ) AS col1 FROM tab2
----
3060
3060
3060

onlyif mysql # DIV for integer division: 
query I rowsort label-5455
SELECT 91 DIV col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5455
SELECT 91 / col0 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 47 col2 FROM tab0 AS cor0
----
47
47
47

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < col2
----

query I rowsort
SELECT DISTINCT col1 * + col2 * - 54 FROM tab2
----
-166320
-209844
-63342

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT ALL COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT ALL - - SUM( ALL + + col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL - - SUM ( ALL + + col0 ) AS col1 FROM tab2 AS cor0
----
185

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 > + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5462
SELECT + col1 * + + col1 + - CAST( NULL AS SIGNED ) - col2 * - 63 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5462
SELECT + col1 * + + col1 + - CAST ( NULL AS INTEGER ) - col2 * - 63 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT ALL - COUNT( + 3 ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5463
SELECT ALL - COUNT ( + 3 ) col0 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + + col1 + - col0 + + + col2 col2 FROM tab1 AS cor0 WHERE 47 + - + 74 + 12 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT - MIN( DISTINCT 21 ) AS col2 FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-5465
SELECT - MIN ( DISTINCT 21 ) AS col2 FROM tab2 AS cor0
----
-21

query I rowsort
SELECT ALL - 92 AS col2 FROM tab0 cor0
----
-92
-92
-92

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 * + col1 IS NULL
----

query I rowsort
SELECT - col0 * + - col0 + col2 FROM tab2
----
2139
4136
5683

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT COUNT( * ) * - - 75 + + 83 FROM tab2 AS cor0
----
308

skipif mysql # not compatible
query I rowsort label-5469
SELECT COUNT ( * ) * - - 75 + + 83 FROM tab2 AS cor0
----
308

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT + MIN( ALL - col0 ) + 85 AS col1 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-5470
SELECT + MIN ( ALL - col0 ) + 85 AS col1 FROM tab0 AS cor0
----
-12

query I rowsort
SELECT ALL col0 * + + col1 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT col0 * + + col2 * + - 99 AS col2 FROM tab0 AS cor0
----
-69795
-86130
-950697

query I rowsort
SELECT 58 * col2 FROM tab1
----
3422
3944
5568

query I rowsort
SELECT ALL + 37 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= ( + 78 )
----

query I rowsort
SELECT ALL - col2 - + 42 AS col0 FROM tab2
----
-100
-65
-82

query I rowsort
SELECT DISTINCT + 2 * col2 AS col0 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT DISTINCT - col0 * + col2 + - + col2 FROM tab2 AS cor0
----
-1081
-2600
-4408

query I rowsort
SELECT - 75 * - - col2 AS col2 FROM tab0 AS cor0
----
-3525
-7425
-750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 * + col1 + - - col2 col0 FROM tab1 AS cor0
----
-1010
-336
-3645

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT COUNT( * ) * - ( + MAX( ALL + - col0 ) ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-5481
SELECT COUNT ( * ) * - ( + MAX ( ALL + - col0 ) ) FROM tab0
----
45

query I rowsort
SELECT col2 * + + 99 AS col2 FROM tab1
----
5841
6732
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT COUNT( * ) * - COUNT( DISTINCT col2 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5483
SELECT COUNT ( * ) * - COUNT ( DISTINCT col2 ) FROM tab2
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-5484
SELECT ALL 49 DIV - col1, col1 AS col0 FROM tab1
----
-1
47
-3
14
-9
5

skipif mysql # not compatible
query II rowsort label-5484
SELECT ALL 49 / - col1, col1 AS col0 FROM tab1
----
-1
47
-3
14
-9
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5485
SELECT + COUNT( * ) AS col0, + COUNT( ALL + col2 ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-5485
SELECT + COUNT ( * ) AS col0, + COUNT ( ALL + col2 ) FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT DISTINCT - COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5486
SELECT DISTINCT - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
-3

query I rowsort
SELECT ALL + + 27 AS col2 FROM tab2 cor0
----
27
27
27

query I rowsort
SELECT DISTINCT + col0 * col0 / + 46 FROM tab0 AS cor0 WHERE NOT - 4 IS NOT NULL
----

query II rowsort
SELECT + 30 AS col2, + 80 FROM tab0 cor0
----
30
80
30
80
30
80

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 82 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5491
SELECT DISTINCT 93 AS col0, - SUM( DISTINCT + + 24 ) FROM tab2 AS cor0
----
93
-24

skipif mysql # not compatible
query II rowsort label-5491
SELECT DISTINCT 93 AS col0, - SUM ( DISTINCT + + 24 ) FROM tab2 AS cor0
----
93
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5492
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT + + 4 / + - 56 * - col0 BETWEEN + 60 + - 41 AND col2 * col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5492
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT + + 4 / + - 56 * - col0 BETWEEN + 60 + - 41 AND col2 * col1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5493
SELECT DISTINCT ( - + CAST( NULL AS SIGNED ) ) AS col1, col2 col1 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-5493
SELECT DISTINCT ( - + CAST ( NULL AS INTEGER ) ) AS col1, col2 col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * + col1 * col0 * col2 + 20 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - ( ( - col2 ) ) * - col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

query II rowsort
SELECT - col2 + - col2 AS col1, + 9 * - col0 FROM tab0 AS cor0
----
-198
-873
-20
-783
-94
-135

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5497
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * + col2 * + col1 + + col1 <> CAST( + 36 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5497
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * + col2 * + col1 + + col1 <> CAST ( + 36 AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( NOT - ( + col0 ) IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5499
SELECT + - CAST( 13 AS SIGNED ) DIV col0 * - ( + ( + - col1 ) ) + col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5499
SELECT + - CAST ( 13 AS INTEGER ) / col0 * - ( + ( + - col1 ) ) + col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT DISTINCT + COUNT( + + 32 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5500
SELECT DISTINCT + COUNT ( + + 32 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 57 AS col1 FROM tab1 AS cor0 WHERE 74 < - - 41 + - - 77
----
-57
-57
-57

query I rowsort
SELECT 96 + - - ( 90 ) + + - col1 AS col1 FROM tab0 AS cor0
----
105
165
185

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT - 66 + COUNT( * ) + - - 78 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5503
SELECT - 66 + COUNT ( * ) + - - 78 FROM tab1 AS cor0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5504
SELECT - - col1 + + + col1 DIV + col2 FROM tab2 AS cor0
----
53
68
78

skipif mysql # not compatible
query I rowsort label-5504
SELECT - - col1 + + + col1 / + col2 FROM tab2 AS cor0
----
53
68
78

query I rowsort
SELECT + col2 + - + col2 * + 64 AS col0 FROM tab2 cor0
----
-1449
-2520
-3654

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( 12, + 5, - + 28, col1 + - col1, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT ALL + MIN( + - col0 ) col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5507
SELECT ALL + MIN ( + - col0 ) col2 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT ALL + col1 + - col1 * ( - col2 ) FROM tab0 AS cor0
----
100
231
3888

query III rowsort
SELECT ALL * FROM tab0 WHERE - 60 + - col0 + - 27 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 col0 FROM tab1
----
16
16
16

query I rowsort
SELECT + 7 - + 56 * - col0 FROM tab2 cor0
----
2583
3591
4207

query I rowsort
SELECT ALL - col2 - - col1 + - col1 + + col1 * + col0 * + ( col1 ) * - col0 AS col2 FROM tab1 AS cor0
----
-180684
-18292797
-509892

query I rowsort
SELECT DISTINCT + - ( col0 ) * col2 AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5514
SELECT ALL + CAST( NULL AS SIGNED ) / - - MAX( - col0 ) * + 57 + 28 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5514
SELECT ALL + CAST ( NULL AS INTEGER ) / - - MAX ( - col0 ) * + 57 + 28 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT 95 * 81 * + 70 * + MAX( + 36 ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
19391400

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5515
SELECT 95 * 81 * + 70 * + MAX ( + 36 ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
19391400

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT ALL + 74 * COUNT( * ) + - - COUNT( * ) FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL + 74 * COUNT ( * ) + - - COUNT ( * ) FROM tab2 AS cor0
----
225

query I rowsort
SELECT DISTINCT 62 * - - col2 * - + col0 AS col2 FROM tab1 AS cor0
----
-303552
-310930
-383656

onlyif mysql # DIV for integer division: 
query I rowsort label-5518
SELECT ALL + - 42 DIV + col0 + + col2 + + - col1 * + - 16 AS col0 FROM tab0 AS cor0
----
115
1341
346

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL + - 42 / + col0 + + col2 + + - col1 * + - 16 AS col0 FROM tab0 AS cor0
----
115
1341
346

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 * - col1 col0 FROM tab1 AS cor0
----
-2820
-300
-840

query I rowsort
SELECT - col1 * + ( - col0 ) * - 6 AS col0 FROM tab2
----
-14076
-29568
-30150

query I rowsort
SELECT + 7 * - col2 AS col2 FROM tab2
----
-161
-280
-406

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT - MIN( + + col1 ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-5522
SELECT - MIN ( + + col1 ) AS col2 FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT 65 * 9 * + COUNT( col0 ) FROM tab1
----
1755

skipif mysql # not compatible
query I rowsort label-5523
SELECT 65 * 9 * + COUNT ( col0 ) FROM tab1
----
1755

query I rowsort
SELECT 83 * + + col0 * - - col1 FROM tab2
----
194718
409024
417075

query I rowsort
SELECT col2 * + ( - col2 ) AS col2 FROM tab0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT ALL - MAX( ALL - col1 ) AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL - MAX ( ALL - col1 ) AS col0 FROM tab0 cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5527
SELECT DISTINCT + 6 + - CAST( - col1 AS SIGNED ) DIV col2 AS col1 FROM tab2
----
7
8

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT + 6 + - CAST ( - col1 AS INTEGER ) / col2 AS col1 FROM tab2
----
7
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 + + 93 col0 FROM tab0
----
14
14
14

query I rowsort
SELECT col1 * + col1 * - col1 AS col1 FROM tab0
----
-1
-531441
-9261

onlyif mysql # DIV for integer division: 
query I rowsort label-5530
SELECT - col2 DIV - - 65 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5530
SELECT - col2 / - - 65 FROM tab1
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 * - 86 col1 FROM tab1 AS cor0
----
3784
3784
3784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5532
SELECT DISTINCT + - SUM( ALL + 94 ) - + 99 AS col1, CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT 54 >= + + col2
----
-193
NULL

skipif mysql # not compatible
query II rowsort label-5532
SELECT DISTINCT + - SUM ( ALL + 94 ) - + 99 AS col1, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 54 >= + + col2
----
-193
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5533
SELECT DISTINCT CAST( - 26 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-5533
SELECT DISTINCT CAST ( - 26 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-26

query II rowsort
SELECT DISTINCT + + col0 AS col0, + col1 AS col0 FROM tab2 cor0
----
46
51
64
77
75
67

query II rowsort
SELECT - 50 AS col1, col0 * - - col0 FROM tab1 AS cor0
----
-50
2601
-50
7225
-50
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT 57 * - COUNT( * ) - - + COUNT( * ) FROM tab0
----
-168

skipif mysql # not compatible
query I rowsort label-5536
SELECT 57 * - COUNT ( * ) - - + COUNT ( * ) FROM tab0
----
-168

query I rowsort
SELECT ALL 45 * col2 AS col0 FROM tab1
----
2655
3060
4320

query I rowsort
SELECT ALL + col0 + col1 + 13 + + col0 FROM tab0
----
124
208
208

query I rowsort
SELECT 56 - + + col2 + - col0 * - - col2 AS col1 FROM tab1
----
-4936
-5018
-6200

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT DISTINCT 77 + - COUNT( * ) col1 FROM tab0
----
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5540
SELECT DISTINCT 77 + - COUNT ( * ) col1 FROM tab0
----
74

query I rowsort
SELECT DISTINCT ( - - 77 ) + - col0 FROM tab2
----
13
2
31

query III rowsort
SELECT * FROM tab2 WHERE - 29 + - col2 + - + 75 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT - MAX( DISTINCT 55 ) + - 67 FROM tab1
----
-122

skipif mysql # not compatible
query I rowsort label-5543
SELECT - MAX ( DISTINCT 55 ) + - 67 FROM tab1
----
-122

query I rowsort
SELECT ALL - col2 * + col0 * - col0 - + - col1 AS col1 FROM tab1 cor0
----
249710
426280
563155

query I rowsort
SELECT DISTINCT col1 * - + col2 AS col2 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT + 82 * + + col1 FROM tab1
----
1148
3854
410

onlyif mysql # aggregate syntax: 
query II rowsort label-5547
SELECT DISTINCT 40 AS col1, 26 * + SUM( - 11 ) FROM tab2
----
40
-858

skipif mysql # not compatible
query II rowsort label-5547
SELECT DISTINCT 40 AS col1, 26 * + SUM ( - 11 ) FROM tab2
----
40
-858

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5548
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5548
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 0 col1, - col1 AS col0 FROM tab0 AS cor0
----
0
-1
0
-21
0
-81

query I rowsort
SELECT - col2 * - col1 + - 85 + + col1 FROM tab0 AS cor0
----
146
15
3803

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5551
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5551
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT - SUM( - + col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5552
SELECT - SUM ( - + col1 ) AS col0 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT + + COUNT( * ) * + + 65 AS col1 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-5553
SELECT + + COUNT ( * ) * + + 65 AS col1 FROM tab2 cor0
----
195

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - + col1 ) <> - ( + 93 )
----

query I rowsort
SELECT ALL ( - ( + 57 ) ) + + 85 AS col0 FROM tab1
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT ALL 22 * + MAX( DISTINCT - - 74 ) FROM tab0
----
1628

skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL 22 * + MAX ( DISTINCT - - 74 ) FROM tab0
----
1628

query I rowsort
SELECT DISTINCT - 67 * col1 FROM tab0
----
-1407
-5427
-67

query I rowsort
SELECT DISTINCT 70 * - col2 AS col0 FROM tab1
----
-4130
-4760
-6720

query I rowsort
SELECT + col2 - col2 FROM tab2 WHERE NOT - col2 / + col2 + + - col0 + - ( + ( col2 ) ) + - 65 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( - col0 ) * 73 + - ( 53 ) FROM tab1 AS cor0
----
-3776
-6258
-6696

onlyif mysql # DIV for integer division: 
query II rowsort label-5561
SELECT - col2 DIV + 59, - col1 * - col2 * + - col2 AS col1 FROM tab2 AS cor0
----
0
-123200
0
-225388
0
-26979

skipif mysql # not compatible
query II rowsort label-5561
SELECT - col2 / + 59, - col1 * - col2 * + - col2 AS col1 FROM tab2 AS cor0
----
0
-123200
0
-225388
0
-26979

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT + + MIN( - 57 ) col2 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5562
SELECT + + MIN ( - 57 ) col2 FROM tab0 AS cor0
----
-57

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 > ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE + col0 * - col0 * - col2 * + 91 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT + ( + + COUNT( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5565
SELECT + ( + + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT ALL - COUNT( * ) + + 7 AS col0 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL - COUNT ( * ) + + 7 AS col0 FROM tab1 AS cor0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5567
SELECT DISTINCT + - col2 * col2 + col0 DIV col0 AS col0 FROM tab0 AS cor0
----
-2208
-9800
-99

skipif mysql # not compatible
query I rowsort label-5567
SELECT DISTINCT + - col2 * col2 + col0 / col0 AS col0 FROM tab0 AS cor0
----
-2208
-9800
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 32 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT + COUNT( * ) + - COUNT( * ) * - 65 FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-5569
SELECT + COUNT ( * ) + - COUNT ( * ) * - 65 FROM tab1 AS cor0
----
198

query I rowsort
SELECT + 22 + + 70 AS col0 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT - + col2 + - - 71 FROM tab1 AS cor0
----
-25
12
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT DISTINCT - + MIN( + 82 ) FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT - + MIN ( + 82 ) FROM tab1 AS cor0
----
-82

query I rowsort
SELECT DISTINCT col1 + - 97 + + 51 * col2 * - col0 AS col0 FROM tab2
----
-130580
-221880
-54004

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5574
SELECT ALL * FROM tab2 WHERE NOT NULL = - + CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5574
SELECT ALL * FROM tab2 WHERE NOT NULL = - + CAST ( + col2 AS INTEGER )
----

query I rowsort
SELECT ALL + col2 + + + 10 + + 96 AS col2 FROM tab1
----
165
174
202

onlyif mysql # DIV for integer division: 
query I rowsort label-5576
SELECT - 27 DIV + + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5576
SELECT - 27 / + + col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT ( + ( - COUNT( * ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5577
SELECT ( + ( - COUNT ( * ) ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT ALL 28 + - COUNT( * ) FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-5578
SELECT ALL 28 + - COUNT ( * ) FROM tab2
----
25

query I rowsort
SELECT DISTINCT - col1 - - + 8 FROM tab1
----
-39
-6
3

query I rowsort
SELECT - col2 - + + 93 * - - col0 AS col2 FROM tab2
----
-4301
-5992
-7033

query I rowsort
SELECT + col2 - - col0 + + col1 * + + col0 AS col2 FROM tab2 AS cor0
----
2415
5032
5158

query I rowsort
SELECT ALL + 4 AS col2 FROM tab2 AS cor0 WHERE - 77 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col0 col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + - col2 BETWEEN + col1 * - 68 - + 20 / + col1 AND col0 * 40 - col0 - - 10
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > col2 * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5586
SELECT + + col0 DIV 40 AS col2 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5586
SELECT + + col0 / 40 AS col2 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + 50 * - - ( - + 96 ) FROM tab1 AS cor0
----
-4800

query I rowsort
SELECT - col0 * + + 46 + ( + - 89 ) FROM tab0 AS cor0
----
-4091
-4551
-779

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5589
SELECT - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5589
SELECT - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * - + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 48 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5592
SELECT DISTINCT + col1 * + ( col0 ) DIV - col0 + + col0 + - + ( - col2 ) col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
112
133
139

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5592
SELECT DISTINCT + col1 * + ( col0 ) / - col0 + + col0 + - + ( - col2 ) col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
112
133
139

query II rowsort
SELECT ALL col2 AS col0, col1 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT DISTINCT ( SUM( 48 ) ) FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-5594
SELECT DISTINCT ( SUM ( 48 ) ) FROM tab1
----
144

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * 73 * + + col0 < 20
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( - 37 ) FROM tab0 WHERE 42 IS NOT NULL
----
-37

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5597
SELECT DISTINCT - ( CAST( - CAST( 28 AS DECIMAL ) AS SIGNED ) ) * + col2 + + 43 AS col0 FROM tab2
----
1163
1667
687

skipif mysql # not compatible
query I rowsort label-5597
SELECT DISTINCT - ( CAST ( - CAST ( 28 AS REAL ) AS INTEGER ) ) * + col2 + + 43 AS col0 FROM tab2
----
1163
1667
687

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5598
SELECT ALL 80 DIV COUNT( * ) FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL 80 / COUNT ( * ) FROM tab1
----
26

query I rowsort
SELECT DISTINCT + 13 * + 87 AS col0 FROM tab1
----
1131

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab0 WHERE NOT col1 * ( + col0 ) < + 67
----
1
21
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 - + col1 * col1 * + 80 * col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 + 52 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 + 8 * + 50 FROM tab2
----
423
440
458

query I rowsort
SELECT ALL 48 FROM tab2 WHERE ( col2 + 90 ) IS NULL
----

query I rowsort
SELECT + col0 * ( - 66 ) FROM tab0
----
-5742
-6402
-990

query I rowsort
SELECT DISTINCT col0 * - 62 FROM tab1
----
-3162
-5270
-5642

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE NOT col2 IN ( 78 * 81 )
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 67 >= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5609
SELECT DISTINCT + COUNT( * ) * MAX( col2 DIV 40 ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5609
SELECT DISTINCT + COUNT ( * ) * MAX ( col2 / 40 ) AS col2 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT ALL 23 * COUNT( * ) col0 FROM tab1
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5610
SELECT ALL 23 * COUNT ( * ) col0 FROM tab1
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5611
SELECT col1 + 32 DIV 33 AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5611
SELECT col1 + 32 / 33 AS col1 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5612
SELECT col0 * - 3 + - 83 AS col1 FROM tab2 WHERE NOT - CAST( 10 AS DECIMAL ) + - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5612
SELECT col0 * - 3 + - 83 AS col1 FROM tab2 WHERE NOT - CAST ( 10 AS REAL ) + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5613
SELECT col1 + col2 * CAST( col0 AS SIGNED ) AS col1 FROM tab0
----
786
891
9604

skipif mysql # not compatible
query I rowsort label-5613
SELECT col1 + col2 * CAST ( col0 AS INTEGER ) AS col1 FROM tab0
----
786
891
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT - COUNT( * ) FROM tab2 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5614
SELECT - COUNT ( * ) FROM tab2 WHERE col2 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> ( - col0 ) * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT ( + ( - SUM( 73 ) ) ) AS col0 FROM tab2 WHERE col2 / 91 + - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5616
SELECT ( + ( - SUM ( 73 ) ) ) AS col0 FROM tab2 WHERE col2 / 91 + - col0 IS NULL
----
NULL

query I rowsort
SELECT - ( - 91 ) AS col0 FROM tab1
----
91
91
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5618
SELECT - col1 DIV 41 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5618
SELECT - col1 / 41 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT DISTINCT SUM( col0 ) + 44 AS col2 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-5619
SELECT DISTINCT SUM ( col0 ) + 44 AS col2 FROM tab0
----
243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5620
SELECT + CAST( - 60 AS SIGNED ) FROM tab0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5620
SELECT + CAST ( - 60 AS INTEGER ) FROM tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT ALL - ( COUNT( * ) ) AS col0 FROM tab0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5621
SELECT ALL - ( COUNT ( * ) ) AS col0 FROM tab0 WHERE NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT MIN( ALL col2 ) * + 82 AS col2 FROM tab0
----
820

skipif mysql # not compatible
query I rowsort label-5622
SELECT MIN ( ALL col2 ) * + 82 AS col2 FROM tab0
----
820

query I rowsort
SELECT col0 - + 19 * + 47 FROM tab2
----
-818
-829
-847

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5624
SELECT CAST( MAX( col0 ) AS SIGNED ) * + 56 FROM tab2
----
4200

skipif mysql # not compatible
query I rowsort label-5624
SELECT CAST ( MAX ( col0 ) AS INTEGER ) * + 56 FROM tab2
----
4200

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT 68 * + COUNT( * ) FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-5625
SELECT 68 * + COUNT ( * ) FROM tab0
----
204

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col2 * col1 - - col0 * 48 AS col1 FROM tab1
----
3792
4375
7564

query I rowsort
SELECT DISTINCT + ( 65 ) AS col1 FROM tab2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5629
SELECT ALL - 5 * CAST( col2 * col2 AS SIGNED ) FROM tab1
----
-17405
-23120
-46080

skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL - 5 * CAST ( col2 * col2 AS INTEGER ) FROM tab1
----
-17405
-23120
-46080

query III rowsort
SELECT * FROM tab2 WHERE col2 - - 8 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5631
SELECT * FROM tab2 WHERE NOT NULL >= col0 + - 6 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5631
SELECT * FROM tab2 WHERE NOT NULL >= col0 + - 6 * CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT ( + 85 ) * COUNT( * ) col2 FROM tab2
----
255

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5632
SELECT ( + 85 ) * COUNT ( * ) col2 FROM tab2
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT SUM( - ( - 77 ) ) FROM tab0 WHERE NULL BETWEEN col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5633
SELECT SUM ( - ( - 77 ) ) FROM tab0 WHERE NULL BETWEEN col1 AND NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5635
SELECT col0 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN + col2 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5635
SELECT col0 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN + col2 AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - 46 * col2 FROM tab0
----
-2162
-4554
-460

query I rowsort
SELECT + col0 * col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + - col2 * + 44 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT DISTINCT MAX( DISTINCT 69 ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5639
SELECT DISTINCT MAX ( DISTINCT 69 ) FROM tab2 AS cor0
----
69

query I rowsort
SELECT 84 * + col2 FROM tab2 AS cor0
----
1932
3360
4872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

onlyif mysql # DIV for integer division: 
query I rowsort label-5642
SELECT - col1 DIV - 15 AS col0 FROM tab2 AS cor0
----
3
4
5

skipif mysql # not compatible
query I rowsort label-5642
SELECT - col1 / - 15 AS col0 FROM tab2 AS cor0
----
3
4
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + col0 * 3 )
----

query I rowsort
SELECT ALL - 76 AS col1 FROM tab1 cor0 WHERE NOT + col1 > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN - col1 * - 92 AND ( ( col2 ) - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5646
SELECT * FROM tab0 cor0 WHERE NOT col2 = ( - CAST( col1 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5646
SELECT * FROM tab0 cor0 WHERE NOT col2 = ( - CAST ( col1 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5647
SELECT + + 4 DIV col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5647
SELECT + + 4 / col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT + MIN( col1 ) AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5648
SELECT + MIN ( col1 ) AS col0 FROM tab0 cor0
----
1

query I rowsort
SELECT + - col0 + + ( col2 ) * 19 FROM tab1 AS cor0
----
1036
1201
1773

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5650
SELECT * FROM tab0 WHERE NOT - col0 BETWEEN NULL AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5650
SELECT * FROM tab0 WHERE NOT - col0 BETWEEN NULL AND CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5651
SELECT col1 col2 FROM tab1 WHERE NOT ( CAST( NULL AS SIGNED ) + col0 ) BETWEEN NULL AND ( col2 + - 76 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5651
SELECT col1 col2 FROM tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) + col0 ) BETWEEN NULL AND ( col2 + - 76 )
----

query I rowsort
SELECT 19 + + + col1 AS col2 FROM tab1
----
24
33
66

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE ( 84 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - 14
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5655
SELECT CAST( - ( 88 ) AS SIGNED ) * + col0 AS col2 FROM tab0
----
-1320
-7656
-8536

skipif mysql # not compatible
query I rowsort label-5655
SELECT CAST ( - ( 88 ) AS INTEGER ) * + col0 AS col2 FROM tab0
----
-1320
-7656
-8536

query I rowsort
SELECT DISTINCT col1 + col0 + + col0 AS col1 FROM tab0
----
111
195

query I rowsort
SELECT ALL 63 + + + 38 AS col0 FROM tab0
----
101
101
101

query I rowsort
SELECT ALL 0 * 82 AS col1 FROM tab2 WHERE NOT + col1 + + col2 IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT DISTINCT MAX( - + 64 ) FROM tab1
----
-64

skipif mysql # not compatible
query I rowsort label-5659
SELECT DISTINCT MAX ( - + 64 ) FROM tab1
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-5660
SELECT - - 53 DIV col1 * col0 + col2 AS col1 FROM tab0 cor0
----
184
47
5240

skipif mysql # not compatible
query I rowsort label-5660
SELECT - - 53 / col1 * col0 + col2 AS col1 FROM tab0 cor0
----
184
47
5240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 41 col1 FROM tab0 AS cor0
----
41
41
41

query I rowsort
SELECT + ( - + 81 ) FROM tab2 AS cor0
----
-81
-81
-81

query I rowsort
SELECT DISTINCT - 25 FROM tab2 cor0 WHERE NOT NULL < + 20
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( 48 - 39 ) AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT ALL + COUNT( * ) AS col1 FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5665
SELECT ALL + COUNT ( * ) AS col1 FROM tab1, tab2 AS cor0
----
9

query I rowsort
SELECT - 75 - + col1 FROM tab2
----
-126
-142
-152

query I rowsort
SELECT DISTINCT col1 + - 46 FROM tab2
----
21
31
5

query I rowsort
SELECT DISTINCT - 23 + + - 73 AS col2 FROM tab2
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5669
SELECT ALL col1 + - - col0 + col2 + col2 DIV col1 FROM tab1
----
160
167
207

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL col1 + - - col0 + col2 + col2 / col1 FROM tab1
----
160
167
207

query I rowsort
SELECT DISTINCT - 68 - col1 * + + 72 FROM tab0
----
-140
-1580
-5900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 91 * - 23 col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ee689a7b3c3b7872028d018597cfc49a

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT - 7 + COUNT( * ) FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-5672
SELECT - 7 + COUNT ( * ) FROM tab0 AS cor0
----
-4

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( col0 * col1 )
----

query I rowsort
SELECT col2 * - + col1 + + col1 AS col1 FROM tab0 AS cor0
----
-189
-3726
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT ALL 91 * +