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 * + 32 * + 47 * + SUM( ALL 54 * ( + col1 ) ) FROM tab0 AS cor0
----
761237568

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL 91 * + 32 * + 47 * + SUM ( ALL 54 * ( + col1 ) ) FROM tab0 AS cor0
----
761237568

onlyif mysql # DIV for integer division: 
query I rowsort label-5676
SELECT - 22 DIV col0 * col0 + 85 * col2 FROM tab2 cor0
----
1955
3400
4930

skipif mysql # not compatible
query I rowsort label-5676
SELECT - 22 / col0 * col0 + 85 * col2 FROM tab2 cor0
----
1955
3400
4930

query I rowsort
SELECT ( col1 ) - - 91 FROM tab1 AS cor0 WHERE col1 * + + col0 + 24 = ( NULL )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5679
SELECT ALL - - col0 * + col2 + - 45 DIV + 90 FROM tab0 AS cor0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-5679
SELECT ALL - - col0 * + col2 + - 45 / + 90 FROM tab0 AS cor0
----
705
870
9603

query II rowsort
SELECT 89 AS col0, col1 + - col2 AS col2 FROM tab0 AS cor0
----
89
-98
89
11
89
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT DISTINCT SUM( DISTINCT - - col2 ) + 91 + + COUNT( * ) * COUNT( * ) AS col2 FROM tab1
----
323

skipif mysql # not compatible
query I rowsort label-5681
SELECT DISTINCT SUM ( DISTINCT - - col2 ) + 91 + + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1
----
323

query I rowsort
SELECT DISTINCT - - 53 AS col0 FROM tab1 WHERE NOT NULL <> - - col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 / - - 66 + - col2 ) BETWEEN col1 AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * col1 FROM tab2 WHERE ( + 70 ) BETWEEN NULL AND - 73
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT ( + ( - + col0 ) ) NOT BETWEEN col2 AND col0
----

query I rowsort
SELECT 21 + + col0 FROM tab0 WHERE NOT + - col0 * - ( col1 ) + + col1 / col2 - - col0 * ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE - 69 >= + 22
----

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = 56
----

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

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 WHERE NOT + + 13 NOT BETWEEN - - col1 AND NULL
----

query I rowsort
SELECT DISTINCT - 80 FROM tab0 WHERE NOT + col0 * - - 64 * col0 * - col2 >= ( + col0 )
----
-80

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5695
SELECT - ( + - CAST( NULL AS SIGNED ) ) / + + 48 * - AVG ( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5695
SELECT - ( + - CAST ( NULL AS INTEGER ) ) / + + 48 * - AVG ( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5697
SELECT DISTINCT - + col2, - 76 DIV + col2 AS col2 FROM tab0 AS cor0
----
-10
-7
-47
-1
-99
0

skipif mysql # not compatible
query II rowsort label-5697
SELECT DISTINCT - + col2, - 76 / + col2 AS col2 FROM tab0 AS cor0
----
-10
-7
-47
-1
-99
0

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

query I rowsort
SELECT + 47 / - 80 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 + col1 AND - 77 * 34
----

query II rowsort
SELECT - 68, - 45 AS col1 FROM tab0 AS cor0
----
-68
-45
-68
-45
-68
-45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = 9
----

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

query II rowsort
SELECT col2, - col2 + + + col1 FROM tab0
----
10
11
47
34
99
-98

query I rowsort
SELECT ALL - col1 * col2 + - col1 * + 66 FROM tab0
----
-1596
-165
-9153

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

query I rowsort
SELECT DISTINCT 86 * + col2 FROM tab0
----
4042
8514
860

query I rowsort
SELECT col1 * - + 19 AS col2 FROM tab2 WHERE 22 IS NOT NULL
----
-1273
-1463
-969

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT - SUM( + - 42 ) - + 73 FROM tab2, tab1 AS cor0
----
305

skipif mysql # not compatible
query I rowsort label-5708
SELECT - SUM ( + - 42 ) - + 73 FROM tab2, tab1 AS cor0
----
305

onlyif mysql # DIV for integer division: 
query II rowsort label-5709
SELECT ALL + 18 + + - col0 + + - 97 DIV + + 37 AS col1, col2 FROM tab0
----
-71
10
-81
99
1
47

skipif mysql # not compatible
query II rowsort label-5709
SELECT ALL + 18 + + - col0 + + - 97 / + + 37 AS col1, col2 FROM tab0
----
-71
10
-81
99
1
47

onlyif mysql # aggregate syntax: 
query II rowsort label-5710
SELECT DISTINCT COUNT( * ) AS col2, - 25 * + - 88 AS col0 FROM tab2 AS cor0
----
3
2200

skipif mysql # not compatible
query II rowsort label-5710
SELECT DISTINCT COUNT ( * ) AS col2, - 25 * + - 88 AS col0 FROM tab2 AS cor0
----
3
2200

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5713
SELECT + 92 DIV - 53 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5713
SELECT + 92 / - 53 AS col0 FROM tab2
----
-1
-1
-1

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col2 < - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NOT ( NULL <> 38 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT + MIN( - - 66 ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
66

skipif mysql # not compatible
query I rowsort label-5718
SELECT + MIN ( - - 66 ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5719
SELECT DISTINCT 88 AS col2 FROM tab1 WHERE NULL NOT BETWEEN + col2 / - + col1 + - - CAST( 87 AS SIGNED ) AND + col0 + 23
----

skipif mysql # not compatible
query I rowsort label-5719
SELECT DISTINCT 88 AS col2 FROM tab1 WHERE NULL NOT BETWEEN + col2 / - + col1 + - - CAST ( 87 AS INTEGER ) AND + col0 + 23
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5720
SELECT DISTINCT + col2 * 60 FROM tab1 WHERE NOT + col2 > - CAST( 58 AS SIGNED ) AND NOT CAST( + col0 AS DECIMAL ) BETWEEN + col2 AND + col1
----

skipif mysql # not compatible
query I rowsort label-5720
SELECT DISTINCT + col2 * 60 FROM tab1 WHERE NOT + col2 > - CAST ( 58 AS INTEGER ) AND NOT CAST ( + col0 AS REAL ) BETWEEN + col2 AND + col1
----

query I rowsort
SELECT DISTINCT 42 - - 14 AS col1 FROM tab0 AS cor0
----
56

query I rowsort
SELECT ALL 48 FROM tab0 AS cor0 WHERE ( - col1 + - + 88 + - col1 ) IS NULL
----

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

query I rowsort
SELECT DISTINCT - 86 FROM tab2 AS cor0 WHERE NOT col2 * - col2 + - - col0 BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT DISTINCT - COUNT( * ) * 68 * - + 20 FROM tab1 AS cor0
----
4080

skipif mysql # not compatible
query I rowsort label-5725
SELECT DISTINCT - COUNT ( * ) * 68 * - + 20 FROM tab1 AS cor0
----
4080

onlyif mysql # aggregate syntax: 
query II rowsort label-5726
SELECT MAX( ALL col0 ) - + - COUNT( * ) AS col2, 81 AS col2 FROM tab0 AS cor0
----
100
81

skipif mysql # not compatible
query II rowsort label-5726
SELECT MAX ( ALL col0 ) - + - COUNT ( * ) AS col2, 81 AS col2 FROM tab0 AS cor0
----
100
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT + - MIN( - - ( - col0 ) ) - - MIN( - + col2 ) AS col1 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-5728
SELECT + - MIN ( - - ( - col0 ) ) - - MIN ( - + col2 ) AS col1 FROM tab2 AS cor0
----
17

query II rowsort
SELECT - 36 + + col2 + - ( + 29 ) * + col1, 17 AS col1 FROM tab1 AS cor0
----
-122
17
-1331
17
-346
17

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5732
SELECT + col0 DIV 55 AS col1 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5732
SELECT + col0 / 55 AS col1 FROM tab0
----
0
1
1

query II rowsort
SELECT + col1 AS col2, - col0 * + - col1 * - 5 + - col1 FROM tab1
----
14
-3584
47
-21432
5
-2130

query I rowsort
SELECT ALL - ( - ( + col0 ) ) FROM tab0
----
15
87
97

query I rowsort
SELECT ALL 26 * - + col1 FROM tab1 AS cor0
----
-1222
-130
-364

query I rowsort
SELECT col1 + - 13 + - col0 * - - col0 FROM tab1 AS cor0
----
-2600
-7233
-8247

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5737
SELECT + 43 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 WHERE ( - col1 ) NOT BETWEEN NULL AND - col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5737
SELECT + 43 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 WHERE ( - col1 ) NOT BETWEEN NULL AND - col0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * - 11 + - ( col1 ) AS col0 FROM tab2 cor0
----
-557
-781
-892

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5739
SELECT + col2 + col1, 64 * col2 + - 25 * CAST( ( 2 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
100
6286
128
2958
31
590

skipif mysql # not compatible
query II rowsort label-5739
SELECT + col2 + col1, 64 * col2 + - 25 * CAST ( ( 2 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
100
6286
128
2958
31
590

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT MAX( DISTINCT 18 ) + + - 76 FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5740
SELECT MAX ( DISTINCT 18 ) + + - 76 FROM tab1 AS cor0
----
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT DISTINCT MIN( - ( + 30 ) ) AS col1 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-5742
SELECT DISTINCT MIN ( - ( + 30 ) ) AS col1 FROM tab0 AS cor0
----
-30

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5745
SELECT DISTINCT 13 * AVG ( ALL CAST( NULL AS SIGNED ) ) / - MIN( 87 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5745
SELECT DISTINCT 13 * AVG ( ALL CAST ( NULL AS INTEGER ) ) / - MIN ( 87 ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 90 FROM tab0 AS cor0 WHERE NULL IS NULL
----
90
90
90

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col0 + 62 ) IN ( 73, + col0 * - - col2 * - col1 / + - col2 )
----

query II rowsort
SELECT ALL col2 AS col1, - 41 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 85 * 53 AS col0 FROM tab0
----
4505
4505
4505

query III rowsort
SELECT ALL * FROM tab2 WHERE - 5 * + + col2 - - - col0 BETWEEN 58 AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT DISTINCT - MAX( DISTINCT - col2 ) col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5752
SELECT DISTINCT - MAX ( DISTINCT - col2 ) col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 + col1 * - col1 * + - 29 FROM tab2
----
130239
171981
75452

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

query I rowsort
SELECT ALL + - 4 + + col0 AS col0 FROM tab1 AS cor0
----
47
81
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5756
SELECT ALL - ( COUNT( * ) ) * + + 2 * - CAST( SUM( ALL + col0 ) AS SIGNED ) FROM tab2 AS cor0
----
1110

skipif mysql # not compatible
query I rowsort label-5756
SELECT ALL - ( COUNT ( * ) ) * + + 2 * - CAST ( SUM ( ALL + col0 ) AS INTEGER ) FROM tab2 AS cor0
----
1110

query I rowsort
SELECT DISTINCT - 74 - - col1 + + 11 * + - 51 FROM tab0 AS cor0
----
-554
-614
-634

query I rowsort
SELECT ALL - - 13 * + + 6 + - + 4 AS col2 FROM tab2 AS cor0
----
74
74
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5759
SELECT DISTINCT - - 93 + - + CAST( 31 AS SIGNED ) FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
62

skipif mysql # not compatible
query I rowsort label-5759
SELECT DISTINCT - - 93 + - + CAST ( 31 AS INTEGER ) FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
62

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

query I rowsort
SELECT ALL 69 + col0 + - col0 FROM tab1
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT MAX( + + col2 ) + COUNT( * ) AS col0 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-5762
SELECT MAX ( + + col2 ) + COUNT ( * ) AS col0 FROM tab2
----
61

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 40 - + col1 AS col2, col1 col2 FROM tab1
----
-45
5
-54
14
-87
47

query I rowsort
SELECT ALL + col2 + - - ( 41 ) * - - 88 + + - 37 AS col0 FROM tab2 AS cor0
----
3594
3611
3629

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT ALL - 99 - 27 * + MIN( - + col2 ) FROM tab1 AS cor0
----
2493

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL - 99 - 27 * + MIN ( - + col2 ) FROM tab1 AS cor0
----
2493

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5768
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE ( + col0 ) + - col0 > - - 27
----

skipif mysql # not compatible
query I rowsort label-5768
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE ( + col0 ) + - col0 > - - 27
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5769
SELECT + 29, - MIN( DISTINCT - 9 ) AS col0 FROM tab2 AS cor0
----
29
9

skipif mysql # not compatible
query II rowsort label-5769
SELECT + 29, - MIN ( DISTINCT - 9 ) AS col0 FROM tab2 AS cor0
----
29
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5770
SELECT + 29 col0, + col1 * - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
29
NULL
29
NULL
29
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5770
SELECT + 29 col0, + col1 * - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
29
NULL
29
NULL
29
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5773
SELECT ALL + + 29 AS col0, + MIN( ALL - + col0 ) FROM tab2 AS cor0
----
29
-75

skipif mysql # not compatible
query II rowsort label-5773
SELECT ALL + + 29 AS col0, + MIN ( ALL - + col0 ) FROM tab2 AS cor0
----
29
-75

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

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

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

query I rowsort
SELECT DISTINCT + 19 * - col2 AS col1 FROM tab1
----
-1121
-1292
-1824

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5780
SELECT - col1 + col1 FROM tab1 AS cor0 WHERE NOT 33 * col2 - + + 83 + 30 + col1 + - CAST( col1 AS SIGNED ) + - col2 * - + 16 - col1 BETWEEN NULL AND + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5780
SELECT - col1 + col1 FROM tab1 AS cor0 WHERE NOT 33 * col2 - + + 83 + 30 + col1 + - CAST ( col1 AS INTEGER ) + - col2 * - + 16 - col1 BETWEEN NULL AND + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT ALL + COUNT( * ) * + MAX( DISTINCT + + col2 ) AS col0 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-5781
SELECT ALL + COUNT ( * ) * + MAX ( DISTINCT + + col2 ) AS col0 FROM tab1 AS cor0
----
288

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5783
SELECT - 6 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5783
SELECT - 6 / + col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5784
SELECT DISTINCT - + col0 DIV 48 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5784
SELECT DISTINCT - + col0 / 48 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT 20 AS col0 FROM tab0 AS cor0 WHERE ( 12 * + 3 / + col2 NOT IN ( - + 98 ) )
----
20
20
20

query I rowsort
SELECT - 47 * col2 FROM tab2 AS cor0
----
-1081
-1880
-2726

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5788
SELECT ALL CAST( NULL AS SIGNED ) AS col0, - col0 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-5788
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, - col0 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

query II rowsort
SELECT + + col0 AS col0, 97 * + col1 AS col0 FROM tab0 AS cor0
----
15
7857
87
2037
97
97

query I rowsort
SELECT DISTINCT + + col0 + - 78 FROM tab0 AS cor0 WHERE 50 <> - + 92
----
-63
19
9

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

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

query I rowsort
SELECT - col1 - 81 AS col0 FROM tab1
----
-128
-86
-95

query I rowsort
SELECT col1 * + 26 + + + col1 AS col1 FROM tab2
----
1377
1809
2079

query I rowsort
SELECT DISTINCT + 91 + + col1 AS col1 FROM tab1
----
105
138
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5795
SELECT ALL + col2 * col0 DIV - + 99 FROM tab1 WHERE - col0 + - col2 IS NOT NULL
----
-49
-50
-62

skipif mysql # not compatible
query I rowsort label-5795
SELECT ALL + col2 * col0 / - + 99 FROM tab1 WHERE - col0 + - col2 IS NOT NULL
----
-49
-50
-62

query I rowsort
SELECT ALL + 81 * - + col0 * - 38 - 66 FROM tab0
----
267720
298500
46104

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE 38 >= col1
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT 80 + - MIN( - col0 ) AS col1 FROM tab1
----
171

skipif mysql # not compatible
query I rowsort label-5799
SELECT 80 + - MIN ( - col0 ) AS col1 FROM tab1
----
171

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

query I rowsort
SELECT DISTINCT 54 - + col1 + - 96 * - col2 AS col1 FROM tab2 cor0
----
2211
3817
5555

query I rowsort
SELECT + 84 FROM tab2 WHERE - col1 * 19 IS NOT NULL
----
84
84
84

query II rowsort
SELECT ALL 18 AS col0, - 79 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 6e3ea9fcdf1c132a038767579a3ac2a8

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 66 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT - col1 * col2 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query II rowsort label-5808
SELECT + - ( - - ( + + 69 ) ) AS col0, + col1 DIV - 93 FROM tab0 AS cor0
----
-69
0
-69
0
-69
0

skipif mysql # not compatible
query II rowsort label-5808
SELECT + - ( - - ( + + 69 ) ) AS col0, + col1 / - 93 FROM tab0 AS cor0
----
-69
0
-69
0
-69
0

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

query I rowsort
SELECT 12 * + col2 FROM tab2
----
276
480
696

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5814
SELECT ALL CAST( NULL AS SIGNED ) * - 19 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5814
SELECT ALL CAST ( NULL AS INTEGER ) * - 19 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5815
SELECT ALL 69 DIV + SUM( + + col1 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5815
SELECT ALL 69 / + SUM ( + + col1 ) FROM tab1
----
1

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, col1 + + col2 col1 FROM tab2 AS cor0
----
-46
74
-64
117
-75
125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 53, + 74 col2 FROM tab2 AS cor0
----
53
74
53
74
53
74

query I rowsort
SELECT DISTINCT + ( col0 ) + + 31 + + 10 AS col2 FROM tab0
----
128
138
56

onlyif mysql # DIV for integer division: 
query II rowsort label-5821
SELECT DISTINCT col1 DIV - col0, + col2 FROM tab2 AS cor0
----
-1
23
-1
40
0
58

skipif mysql # not compatible
query II rowsort label-5821
SELECT DISTINCT col1 / - col0, + col2 FROM tab2 AS cor0
----
-1
23
-1
40
0
58

query II rowsort
SELECT - - col0 + - - 33, + col0 AS col1 FROM tab2 cor0
----
108
75
79
46
97
64

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5825
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col1 NOT IN ( - + ( + col1 ) * CAST( - - col0 AS DECIMAL ), - col2 )
----

skipif mysql # not compatible
query III rowsort label-5825
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col1 NOT IN ( - + ( + col1 ) * CAST ( - - col0 AS REAL ), - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5826
SELECT CAST( NULL AS SIGNED ) AS col0, + COUNT( * ) AS col2 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5826
SELECT CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) AS col2 FROM tab2
----
NULL
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5828
SELECT CAST( + ( + AVG ( DISTINCT + 80 ) ) AS SIGNED ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-5828
SELECT CAST ( + ( + AVG ( DISTINCT + 80 ) ) AS INTEGER ) FROM tab2
----
80

query I rowsort
SELECT DISTINCT + col1 + - - col2 - + col1 + - col1 AS col1 FROM tab1
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5830
SELECT ALL - 35 * + 69 FROM tab0 WHERE NOT + + CAST( NULL AS SIGNED ) / - - col1 = NULL
----

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL - 35 * + 69 FROM tab0 WHERE NOT + + CAST ( NULL AS INTEGER ) / - - col1 = NULL
----

query I rowsort
SELECT - 44 * 63 AS col0 FROM tab0
----
-2772
-2772
-2772

query I rowsort
SELECT DISTINCT + + 43 AS col1 FROM tab0 cor0
----
43

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT - MIN( 46 ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5836
SELECT - MIN ( 46 ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT - COUNT( DISTINCT + - 89 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5838
SELECT - COUNT ( DISTINCT + - 89 ) FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT DISTINCT + SUM( DISTINCT + col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-5839
SELECT DISTINCT + SUM ( DISTINCT + col1 ) FROM tab1 cor0
----
66

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0, + 12 col1 FROM tab2 WHERE NOT NULL <= 35 - ( + + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 NOT IN ( 80, + 83 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5844
SELECT 81 DIV - 3 FROM tab0
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-5844
SELECT 81 / - 3 FROM tab0
----
-27
-27
-27

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

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

query I rowsort
SELECT ALL col1 * - 41 AS col2 FROM tab1
----
-1927
-205
-574

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT - SUM( + 52 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-5848
SELECT - SUM ( + 52 ) FROM tab0
----
-156

query I rowsort
SELECT ALL + col1 * + 69 * - 46 * - + col2 * 35 + - - col0 AS col0 FROM tab2 cor0
----
130308616
342157264
431695815

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + - 86 * + + 73 col0, 74 AS col2 FROM tab0 AS cor0
----
-6179
74
-6231
74
-6268
74

query I rowsort
SELECT - 0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5853
SELECT DISTINCT - - COUNT ( * ) col2 FROM tab0 WHERE NOT + - 44 NOT BETWEEN NULL AND - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5854
SELECT ALL + ( - col0 ) * + + 70 - + CAST( - ( + col1 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3169
-4403
-5183

skipif mysql # not compatible
query I rowsort label-5854
SELECT ALL + ( - col0 ) * + + 70 - + CAST ( - ( + col1 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3169
-4403
-5183

query I rowsort
SELECT - ( 88 ) - - - col2 FROM tab2 AS cor0
----
-111
-128
-146

query I rowsort
SELECT + 46 - col1 FROM tab2 AS cor0
----
-21
-31
-5

query I rowsort
SELECT - 40 + - 72 FROM tab1
----
-112
-112
-112

onlyif mysql # DIV for integer division: 
query I rowsort label-5858
SELECT ALL + col1 DIV - - col0 col1 FROM tab1
----
0
0
0

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

query I rowsort
SELECT DISTINCT + 40 + col0 * col1 AS col0 FROM tab0
----
1255
137
1867

query I rowsort
SELECT DISTINCT - col2 + col2 * + 41 * - - 46 * - + col0 * - - 32 FROM tab0
----
-42548207
-52506250
-579560355

query I rowsort
SELECT DISTINCT 87 - 84 * - + ( + col2 ) FROM tab2
----
2019
3447
4959

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5862
SELECT ALL - COUNT( * ) + + 29 AS col0 FROM tab2 WHERE 39 * + col2 - col1 + col0 * col2 * CAST( + + col2 AS SIGNED ) + - 38 IS NOT NULL
----
26

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL - COUNT ( * ) + + 29 AS col0 FROM tab2 WHERE 39 * + col2 - col1 + col0 * col2 * CAST ( + + col2 AS INTEGER ) + - 38 IS NOT NULL
----
26

query I rowsort
SELECT DISTINCT - + col0 * col2 FROM tab1 WHERE + 53 / - - col1 * col2 * col2 * - col0 IS NULL
----

query II rowsort
SELECT col0 * - + col2 + + col1 * - + col0 + col2, ( - col0 ) AS col2 FROM tab0
----
-1873
-15
-2687
-87
-9601
-97

query I rowsort
SELECT - - col0 AS col2 FROM tab2 AS cor0 WHERE 51 / + - 90 IS NULL
----

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

query I rowsort
SELECT - col2 * - + col1 * + + 70 FROM tab0
----
14700
266490
6930

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT ALL + ( ( ( + - COUNT( * ) ) ) ) * MAX( - col0 ) FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL + ( ( ( + - COUNT ( * ) ) ) ) * MAX ( - col0 ) FROM tab2 AS cor0
----
138

onlyif mysql # aggregate syntax: 
query II rowsort label-5869
SELECT + + 73 AS col1, 19 * + - ( - 97 ) * - SUM( - ( 29 ) ) FROM tab2 cor0
----
73
160341

skipif mysql # not compatible
query II rowsort label-5869
SELECT + + 73 AS col1, 19 * + - ( - 97 ) * - SUM ( - ( 29 ) ) FROM tab2 cor0
----
73
160341

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

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

query I rowsort
SELECT 60 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 >= ( col2 / + 32 + - 57 )
----
60
60

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5873
SELECT col0 + + 26 DIV + 96 * + col2 + + - col2 FROM tab2
----
17
23
24

skipif mysql # not compatible
query I rowsort label-5873
SELECT col0 + + 26 / + 96 * + col2 + + - col2 FROM tab2
----
17
23
24

query I rowsort
SELECT + col0 * + col2 + + 49 + + + 67 * + ( - col2 ) FROM tab2
----
-434
-71
513

query I rowsort
SELECT DISTINCT - col0 * col0 * - 2 FROM tab1 WHERE NOT + col0 - 40 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( 70 ) AS col0 FROM tab1, tab0 cor0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-5877
SELECT col2 DIV + 73 * + 82 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5877
SELECT col2 / + 73 * + 82 FROM tab2
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT + COUNT( * ) * - - 53 AS col2 FROM tab0 AS cor0 WHERE - col2 <= - 43
----
106

skipif mysql # not compatible
query I rowsort label-5879
SELECT + COUNT ( * ) * - - 53 AS col2 FROM tab0 AS cor0 WHERE - col2 <= - 43
----
106

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

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

query II rowsort
SELECT ALL + col1 + + col2 AS col1, 30 FROM tab2 AS cor0
----
117
30
125
30
74
30

query I rowsort
SELECT ALL - col1 + + - col1 * col1 * 96 FROM tab0
----
-42357
-629937
-97

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 99 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5884
SELECT - - col0 + col2 + 61 col1, CAST( NULL AS SIGNED ) / + col0 / - col0 FROM tab1 cor0
----
205
NULL
208
NULL
220
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5884
SELECT - - col0 + col2 + 61 col1, CAST ( NULL AS INTEGER ) / + col0 / - col0 FROM tab1 cor0
----
205
NULL
208
NULL
220
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5886
SELECT + 5 * + CAST( - ( 26 ) AS SIGNED ) * + col1 + - col2 + 12 AS col2 FROM tab1 AS cor0
----
-1904
-6166
-697

skipif mysql # not compatible
query I rowsort label-5886
SELECT + 5 * + CAST ( - ( 26 ) AS INTEGER ) * + col1 + - col2 + 12 AS col2 FROM tab1 AS cor0
----
-1904
-6166
-697

query I rowsort
SELECT + + 56 + + 29 AS col1 FROM tab2 AS cor0
----
85
85
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 63 col0 FROM tab2 AS cor0
----
1449
2520
3654

query I rowsort
SELECT - col2 * + - 63 + + ( col2 ) FROM tab1 cor0
----
3776
4352
6144

query I rowsort
SELECT DISTINCT 43 * col2 FROM tab1 cor0
----
2537
2924
4128

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5891
SELECT - CAST( 19 AS DECIMAL ) FROM tab1 WHERE - ( + 17 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5891
SELECT - CAST ( 19 AS REAL ) FROM tab1 WHERE - ( + 17 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT COUNT( * ) * 65 FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-5892
SELECT COUNT ( * ) * 65 FROM tab1
----
195

query I rowsort
SELECT 1 - - col1 FROM tab1
----
15
48
6

query I rowsort
SELECT 11 * - - col0 + + + col1 FROM tab0 WHERE col0 * - - 73 + + + col1 - col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5895
SELECT DISTINCT + col2 + col2 col1, + CAST( NULL AS DECIMAL ) FROM tab1
----
118
NULL
136
NULL
192
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5895
SELECT DISTINCT + col2 + col2 col1, + CAST ( NULL AS REAL ) FROM tab1
----
118
NULL
136
NULL
192
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT ALL 62 * + MIN( 43 ) FROM tab2
----
2666

skipif mysql # not compatible
query I rowsort label-5896
SELECT ALL 62 * + MIN ( 43 ) FROM tab2
----
2666

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5898
SELECT ALL CAST( - ( + + col1 ) AS SIGNED ) AS col0 FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL CAST ( - ( + + col1 ) AS INTEGER ) AS col0 FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5899
SELECT ALL - COUNT( * ) * - COUNT( * ) DIV 95 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5899
SELECT ALL - COUNT ( * ) * - COUNT ( * ) / 95 AS col1 FROM tab1
----
0

query I rowsort
SELECT + 3 * - col1 AS col1 FROM tab1
----
-141
-15
-42

query I rowsort
SELECT + - col1 * + 32 * - col0 AS col0 FROM tab1 cor0
----
13600
136864
22848

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 * - 53 col1 FROM tab0 AS cor0
----
-37365
-46110
-508959

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 95 BETWEEN NULL AND + col2
----
85
5
59
91
47
68

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

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

query I rowsort
SELECT DISTINCT col0 * - col0 + + 77 * + - col1 AS col0 FROM tab1
----
-11900
-3679
-7610

query II rowsort
SELECT - col2 AS col0, 29 AS col0 FROM tab0
----
-10
29
-47
29
-99
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5908
SELECT - 44, - col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-44
NULL
-44
NULL
-44
NULL

skipif mysql # not compatible
query II rowsort label-5908
SELECT - 44, - col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-44
NULL
-44
NULL
-44
NULL

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

query I rowsort
SELECT DISTINCT + col2 + 10 FROM tab2
----
33
50
68

query I rowsort
SELECT 30 + - col0 + 9 + - col1 + + 70 - 92 + + col1 + + col1 + - col1 * + - col0 FROM tab0
----
1298
1778
18

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 58 + 67 - - col0 + + + ( 48 ) AND - - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5914
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, - MIN( - col1 ) AS col0 FROM tab1 AS cor0
----
NULL
47

skipif mysql # not compatible
query II rowsort label-5914
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, - MIN ( - col1 ) AS col0 FROM tab1 AS cor0
----
NULL
47

query I rowsort
SELECT ALL + 30 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT ALL + ( + 19 ) AS col1 FROM tab2 WHERE NOT NULL IN ( + col2 + + col1, - col1 + - col2, col0, + ( + - 91 ) * + + col1 * + col0 * - col1 + - + 99 )
----

query I rowsort
SELECT DISTINCT 72 + + - 74 FROM tab0
----
-2

query I rowsort
SELECT ALL 88 + + col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
139
155
165

query I rowsort
SELECT ALL + col2 * - + 87 + col1 + - col1 AS col1 FROM tab2 AS cor0
----
-2001
-3480
-5046

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5920
SELECT ALL col0 * col2 - + + 33 + - 82 + col2 * + - CAST( NULL AS DECIMAL ) - + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5920
SELECT ALL col0 * col2 - + + 33 + - 82 + col2 * + - CAST ( NULL AS REAL ) - + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * - + col0 + - 50 FROM tab0 AS cor0
----
1165
1777
47

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

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

query II rowsort
SELECT 93, 78 * col2 AS col1 FROM tab0
----
93
3666
93
7722
93
780

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

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

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

query I rowsort
SELECT ( + - 95 ) FROM tab2
----
-95
-95
-95

query I rowsort
SELECT DISTINCT 93 * 91 * + col2 FROM tab1
----
499317
575484
812448

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT 49 * - + COUNT( * ) FROM tab2
----
-147

skipif mysql # not compatible
query I rowsort label-5929
SELECT 49 * - + COUNT ( * ) FROM tab2
----
-147

query I rowsort
SELECT DISTINCT 65 * - - 28 FROM tab1
----
1820

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

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

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

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

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

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

query II rowsort
SELECT ALL + 81 AS col0, col2 FROM tab2 AS cor0
----
81
23
81
40
81
58

query II rowsort
SELECT 52 / + 56 AS col1, - 98 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL ( - + col1 ) + - col2 AS col1 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT + 6 + col1 AS col1 FROM tab0 AS cor0
----
27
7
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5940
SELECT DISTINCT CAST( - col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5940
SELECT DISTINCT CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59
-68
-96

query I rowsort
SELECT + - col2 * + + col1 * + col1 * col1 + - col0 AS col2 FROM tab0 AS cor0
----
-196
-24977742
-92697

query I rowsort
SELECT DISTINCT + col0 * + - 87 + - col1 AS col2 FROM tab2
----
-4053
-5645
-6592

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + + - col0 col0, - col0 * - - col0 * - 1 FROM tab1
----
-23
8281
-26
7225
45
2601

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT DISTINCT - 43 + - 20 + - COUNT( * ) FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-5945
SELECT DISTINCT - 43 + - 20 + - COUNT ( * ) FROM tab0
----
-66

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

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

query I rowsort
SELECT - 32 - - col2 - - + 26 - ( - 40 ) FROM tab0 AS cor0
----
133
44
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5949
SELECT + 29 DIV + ( - col1 ) + + + 88 AS col0 FROM tab0
----
59
87
88

skipif mysql # not compatible
query I rowsort label-5949
SELECT + 29 / + ( - col1 ) + + + 88 AS col0 FROM tab0
----
59
87
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5950
SELECT - 2 AS col1 FROM tab1 WHERE NULL <= + CAST( NULL AS SIGNED ) + - + col1 * - + col1
----

skipif mysql # not compatible
query I rowsort label-5950
SELECT - 2 AS col1 FROM tab1 WHERE NULL <= + CAST ( NULL AS INTEGER ) + - + col1 * - + col1
----

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

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

query I rowsort
SELECT col2 * - 87 + ( + col2 ) FROM tab1 AS cor0
----
-5074
-5848
-8256

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

query I rowsort
SELECT ALL col0 + + 10 AS col0 FROM tab0 AS cor0
----
107
25
97

query I rowsort
SELECT - - 91 * + - 2 AS col2 FROM tab1 AS cor0
----
-182
-182
-182

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5957
SELECT - 82, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-82
-3

skipif mysql # not compatible
query II rowsort label-5957
SELECT - 82, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-82
-3

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5959
SELECT ALL - + 74, ( col0 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-74
NULL
-74
NULL
-74
NULL

skipif mysql # not compatible
query II rowsort label-5959
SELECT ALL - + 74, ( col0 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-74
NULL
-74
NULL
-74
NULL

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

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

query I rowsort
SELECT DISTINCT ( - 94 ) FROM tab2
----
-94

query I rowsort
SELECT - 42 * + + ( - col0 ) AS col1 FROM tab1
----
2142
3570
3822

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5963
SELECT ( COUNT( * ) ) * - - ( MAX( - col0 ) ) + ( CAST( NULL AS DECIMAL ) ) FROM tab1 WHERE NOT NULL > + + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-5963
SELECT ( COUNT ( * ) ) * - - ( MAX ( - col0 ) ) + ( CAST ( NULL AS REAL ) ) FROM tab1 WHERE NOT NULL > + + 82
----
NULL

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

query I rowsort
SELECT ALL + col1 * - ( - 68 ) AS col1 FROM tab0
----
1428
5508
68

query I rowsort
SELECT + col2 * ( col2 ) AS col2 FROM tab1
----
3481
4624
9216

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

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

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

query I rowsort
SELECT 18 + - + col2 FROM tab0
----
-29
-81
8

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

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

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

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL - CAST ( NULL AS INTEGER ) * - SUM ( + ( - col1 ) ) AS col0 FROM tab1
----
NULL

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

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

query II rowsort
SELECT col0, 45 * + ( - col0 ) FROM tab1
----
51
-2295
85
-3825
91
-4095

query I rowsort
SELECT DISTINCT - 20 + + col1 FROM tab0
----
-19
1
61

query I rowsort
SELECT - col0 * + 26 FROM tab1 AS cor0
----
-1326
-2210
-2366

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - col1 * - + col0 + col1 FROM tab2 WHERE + - 68 <= - + 50 + 59 / + col2 + - col1 + + 41
----
2397

onlyif mysql # DIV for integer division: 
query I rowsort label-5982
SELECT 69 DIV + 44 FROM tab1, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-5982
SELECT 69 / + 44 FROM tab1, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # DIV for integer division: 
query I rowsort label-5983
SELECT + col0 + - 31 - - 76 DIV - - 46 col1 FROM tab2
----
16
34
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5983
SELECT + col0 + - 31 - - 76 / - - 46 col1 FROM tab2
----
16
34
45

query II rowsort
SELECT DISTINCT + 10 + col0 AS col0, + 12 FROM tab2
----
56
12
74
12
85
12

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

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

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

query I rowsort
SELECT DISTINCT 67 + - col2 - - 92 AS col1 FROM tab1
----
100
63
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5988
SELECT + col1 DIV - 88 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5988
SELECT + col1 / - 88 FROM tab2
----
0
0
0

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

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

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

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

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

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

query I rowsort
SELECT ALL 53 * - col0 * col2 - + 21 FROM tab0 AS cor0
----
-37386
-46131
-508980

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * + 54 col0 FROM tab0 AS cor0
----
-2538
-5346
-540

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5997
SELECT - CAST( - 52 AS SIGNED ) * - col2 * - + 83 FROM tab0 AS cor0
----
202852
427284
43160

skipif mysql # not compatible
query I rowsort label-5997
SELECT - CAST ( - 52 AS INTEGER ) * - col2 * - + 83 FROM tab0 AS cor0
----
202852
427284
43160

query I rowsort
SELECT DISTINCT 34 + + ( - col0 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-53
-63
19

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5999
SELECT * FROM tab2 WHERE NOT NULL < - CAST( NULL AS SIGNED ) - + 68
----

skipif mysql # not compatible
query III rowsort label-5999
SELECT * FROM tab2 WHERE NOT NULL < - CAST ( NULL AS INTEGER ) - + 68
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6001
SELECT ALL col2 DIV col2 * - col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-6001
SELECT ALL col2 / col2 * - col1 FROM tab1
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-6002
SELECT ALL col0 DIV 49 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6002
SELECT ALL col0 / 49 AS col2 FROM tab2
----
0
1
1

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + - 63 / + col0 - 58 * + 53 )
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6005
SELECT DISTINCT + col1, - col0 DIV - 64 + - col2 FROM tab1 AS cor0
----
14
-96
47
-67
5
-58

skipif mysql # not compatible
query II rowsort label-6005
SELECT DISTINCT + col1, - col0 / - 64 + - col2 FROM tab1 AS cor0
----
14
-96
47
-67
5
-58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT ALL - COUNT( ALL - 29 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6007
SELECT ALL - COUNT ( ALL - 29 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + 82 + + - 7 FROM tab1 AS cor0
----
75
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6009
SELECT - col2 + 1 DIV col2 DIV + - 78 - - + 79 AS col1 FROM tab2 AS cor0
----
21
39
56

skipif mysql # not compatible
query I rowsort label-6009
SELECT - col2 + 1 / col2 / + - 78 - - + 79 AS col1 FROM tab2 AS cor0
----
21
39
56

query I rowsort
SELECT - col0 + 13 - + + 4 * - col2 AS col0 FROM tab1 cor0
----
164
194
346

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

query I rowsort
SELECT ALL + col0 * + + col1 * - + col0 FROM tab1 AS cor0
----
-36125
-36414
-389207

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT DISTINCT - COUNT( * ) + MIN( DISTINCT + + col0 ) FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-6013
SELECT DISTINCT - COUNT ( * ) + MIN ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
43

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 82 * - col0 + + - 46 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT ( + ( MIN( ALL 48 ) ) ) FROM tab2 WHERE NULL IS NULL
----
48

skipif mysql # not compatible
query I rowsort label-6017
SELECT ( + ( MIN ( ALL 48 ) ) ) FROM tab2 WHERE NULL IS NULL
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT ALL 58 + COUNT( * ) col2 FROM tab0
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6018
SELECT ALL 58 + COUNT ( * ) col2 FROM tab0
----
61

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 75 col0 FROM tab0 cor0 WHERE NOT + 90 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6022
SELECT - col1 DIV - - col2 * - 84 + - col2 - + col2 AS col1 FROM tab1 AS cor0
----
-118
-136
-192

skipif mysql # not compatible
query I rowsort label-6022
SELECT - col1 / - - col2 * - 84 + - col2 - + col2 AS col1 FROM tab1 AS cor0
----
-118
-136
-192

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

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

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

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

query I rowsort
SELECT DISTINCT 84 - - - col0 + col1 AS col2 FROM tab0 AS cor0
----
-12
150
18

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

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

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

query II rowsort
SELECT - col0, - 97 AS col2 FROM tab2
----
-46
-97
-64
-97
-75
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6029
SELECT + - COUNT( * ) DIV + - SUM( ALL + - col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6029
SELECT + - COUNT ( * ) / + - SUM ( ALL + - col1 ) FROM tab2 AS cor0
----
0

query II rowsort
SELECT + col2 AS col2, col0 * col1 FROM tab1 AS cor0
----
59
425
68
4277
96
714

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

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

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

skipif mysql # not compatible
query I rowsort label-6033
SELECT DISTINCT + - ( - - 15 ) * + col2 + + - CAST ( NULL AS INTEGER ) * + + 97 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 78 * col1 FROM tab2 AS cor0 WHERE NOT + col1 = + - col0 + - col1 * + 24
----
3978
5226
6006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6035
SELECT + col1 AS col1 FROM tab0 WHERE NOT 84 IN ( - - CAST( NULL AS SIGNED ), col2, col2 * - 20 + - - col0 + - col2 )
----

skipif mysql # not compatible
query I rowsort label-6035
SELECT + col1 AS col1 FROM tab0 WHERE NOT 84 IN ( - - CAST ( NULL AS INTEGER ), col2, col2 * - 20 + - - col0 + - col2 )
----

query III rowsort
SELECT ALL 77 * + 8 AS col0, col2 AS col1, + 72 AS col1 FROM tab1
----
9 values hashing to 16ba75327f46202fb9e87cc0b2fad43c

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT + 17 * - + COUNT( * ) AS col2 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-6037
SELECT + 17 * - + COUNT ( * ) AS col2 FROM tab0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-6038
SELECT DISTINCT col2 DIV + - col1 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-6038
SELECT DISTINCT col2 / + - col1 FROM tab1
----
-1
-11
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6039
SELECT DISTINCT + ( + col2 ) + - + ( + + col0 ) + - + col1 + col2 + + + CAST( NULL AS SIGNED ) * + col0 + + + col1 * + col2 + + + 25 / - col0 AS col1, + col2 FROM tab0 WHERE NOT NULL = 16
----

skipif mysql # not compatible
query II rowsort label-6039
SELECT DISTINCT + ( + col2 ) + - + ( + + col0 ) + - + col1 + col2 + + + CAST ( NULL AS INTEGER ) * + col0 + + + col1 * + col2 + + + 25 / - col0 AS col1, + col2 FROM tab0 WHERE NOT NULL = 16
----

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

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

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

skipif mysql # not compatible
query I rowsort label-6041
SELECT - ( 8 ) * - COUNT ( col1 ) + 64 FROM tab1
----
88

query I rowsort
SELECT - 51 * + col1 FROM tab1
----
-2397
-255
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 65 col1 FROM tab2
----
-3315
-4355
-5005

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT SUM( ALL - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-6044
SELECT SUM ( ALL - col0 ) FROM tab2 AS cor0
----
-185

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT ALL SUM( 49 ) AS col1 FROM tab0 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL SUM ( 49 ) AS col1 FROM tab0 AS cor0
----
147

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

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

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

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

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

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

query I rowsort
SELECT ALL 31 * col1 * - col1 * - + col2 + - col1 FROM tab2 AS cor0
----
1854462
7351883
8071155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6051
SELECT ALL - CAST( 83 AS SIGNED ) * col0 FROM tab1 AS cor0 WHERE NOT ( - + 17 IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL - CAST ( 83 AS INTEGER ) * col0 FROM tab1 AS cor0 WHERE NOT ( - + 17 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6052
SELECT ALL - ( col2 ) DIV - - col1 + + col0 AS col2, col1 AS col2 FROM tab0 AS cor0
----
-2
1
15
81
87
21

skipif mysql # not compatible
query II rowsort label-6052
SELECT ALL - ( col2 ) / - - col1 + + col0 AS col2, col1 AS col2 FROM tab0 AS cor0
----
-2
1
15
81
87
21

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6054
SELECT ALL - col0 * + - col0 * + 99 + 45 DIV col1 AS col0 FROM tab2
----
209484
405504
556875

skipif mysql # not compatible
query I rowsort label-6054
SELECT ALL - col0 * + - col0 * + 99 + 45 / col1 AS col0 FROM tab2
----
209484
405504
556875

onlyif mysql # DIV for integer division: 
query I rowsort label-6055
SELECT ALL 3 DIV - 63 + + col0 AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6055
SELECT ALL 3 / - 63 + + col0 AS col1 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT DISTINCT 41 - COUNT( * ) col0 FROM tab1
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6056
SELECT DISTINCT 41 - COUNT ( * ) col0 FROM tab1
----
38

query I rowsort
SELECT + col0 * + col0 + - + col2 + + 39 FROM tab2
----
2132
4095
5606

onlyif mysql # DIV for integer division: 
query II rowsort label-6058
SELECT ALL col0 * + - ( + col1 ) + + 26 AS col0, + 40 DIV + col0 + + col2 FROM tab1
----
-399
59
-4251
68
-688
96

skipif mysql # not compatible
query II rowsort label-6058
SELECT ALL col0 * + - ( + col1 ) + + 26 AS col0, + 40 / + col0 + + col2 FROM tab1
----
-399
59
-4251
68
-688
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 + col2 * - 46 col2 FROM tab0
----
-2128
-449
-4652

query I rowsort
SELECT ALL - 32 - col2 FROM tab0
----
-131
-42
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - col1 + + 38 col2 FROM tab1 AS cor0
----
103
128
176

query I rowsort
SELECT DISTINCT + 30 - col2 + + + col2 AS col0 FROM tab0 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT COUNT( ALL col0 ) * - COUNT( * ) col1 FROM tab2 AS cor0
----
-9

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

query I rowsort
SELECT 90 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 11 * + 36 * - col2 + col2 * + - col1 + col2 IS NOT NULL
----

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NOT + 55 * + col2 = ( - col0 )
----
51
67
77

query I rowsort
SELECT ALL - 79 * + 63 FROM tab0 AS cor0
----
-4977
-4977
-4977

query I rowsort
SELECT ALL + - col0 * + 61 + - - col1 - col1 FROM tab2 AS cor0
----
-2806
-3904
-4575

query I rowsort
SELECT ( + 13 ) FROM tab2 cor0
----
13
13
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6070
SELECT DISTINCT COUNT( + - 97 ) DIV - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6070
SELECT DISTINCT COUNT ( + - 97 ) / - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT - SUM( DISTINCT - 56 ) AS col0 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-6071
SELECT - SUM ( DISTINCT - 56 ) AS col0 FROM tab2 AS cor0
----
56

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

query II rowsort
SELECT + + col2 AS col0, + 76 AS col1 FROM tab1 AS cor0
----
59
76
68
76
96
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6074
SELECT ALL col2 AS col2, CAST( NULL AS SIGNED ) * - - col0 AS col2 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-6074
SELECT ALL col2 AS col2, CAST ( NULL AS INTEGER ) * - - col0 AS col2 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6075
SELECT ( + col2 ) * + - 73 + - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-1702
-2960
-4292

skipif mysql # not compatible
query I rowsort label-6075
SELECT ( + col2 ) * + - 73 + - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-1702
-2960
-4292

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT + SUM( ALL - col2 ) FROM tab2 WHERE NOT - 68 IS NULL
----
-121

skipif mysql # not compatible
query I rowsort label-6076
SELECT + SUM ( ALL - col2 ) FROM tab2 WHERE NOT - 68 IS NULL
----
-121

query I rowsort
SELECT 3 * + - 90 AS col0 FROM tab0
----
-270
-270
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT DISTINCT + 25 * - MAX( ALL - - 36 ) FROM tab0
----
-900

skipif mysql # not compatible
query I rowsort label-6078
SELECT DISTINCT + 25 * - MAX ( ALL - - 36 ) FROM tab0
----
-900

query I rowsort
SELECT ALL + 81 * col1 FROM tab0
----
1701
6561
81

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

query II rowsort
SELECT - 12 AS col0, 61 * col0 + + + col0 FROM tab0 AS cor0
----
-12
5394
-12
6014
-12
930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 50 ) * - col2 col2 FROM tab1 AS cor0
----
2950
3400
4800

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6083
SELECT - - col1, + 26 * CAST( col2 AS SIGNED ) col0 FROM tab1 AS cor0
----
14
2496
47
1768
5
1534

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6083
SELECT - - col1, + 26 * CAST ( col2 AS INTEGER ) col0 FROM tab1 AS cor0
----
14
2496
47
1768
5
1534

query II rowsort
SELECT + col0 + col1 AS col1, 76 FROM tab2
----
141
76
142
76
97
76

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

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

query I rowsort
SELECT + col2 + + 72 FROM tab2 AS cor0
----
112
130
95

query I rowsort
SELECT col1 + - 33 + col0 + - - col0 FROM tab1 AS cor0
----
142
196
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6088
SELECT ALL - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - col1 - - + CAST( + col2 AS SIGNED ) >= - col0
----
-1

skipif mysql # not compatible
query I rowsort label-6088
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - col1 - - + CAST ( + col2 AS INTEGER ) >= - col0
----
-1

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 / - + 33 + + - 86 < 28 + - col0
----

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

query I rowsort
SELECT DISTINCT + col2 * - + 24 * + 83 FROM tab1 cor0
----
-117528
-135456
-191232

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

query I rowsort
SELECT DISTINCT + col0 * - 98 + - + 52 FROM tab2 cor0
----
-4560
-6324
-7402

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6095
SELECT 47 AS col1 FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) * - + 91 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6095
SELECT 47 AS col1 FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * - + 91 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + 8 * + + ( + - 83 ) IS NULL
----

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

query I rowsort
SELECT col2 - 33 + + col2 + + 87 * - + 63 FROM tab0
----
-5316
-5420
-5494

query I rowsort
SELECT DISTINCT - 71 + - + col1 AS col2 FROM tab2
----
-122
-138
-148

onlyif mysql # DIV for integer division: 
query I rowsort label-6100
SELECT ALL 60 * col0 DIV col0 + + - 8 + + col0 + + col1 FROM tab1
----
117
142
190

skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL 60 * col0 / col0 + + - 8 + + col0 + + col1 FROM tab1
----
117
142
190

query I rowsort
SELECT + 59 - 83 AS col2 FROM tab1 AS cor0
----
-24
-24
-24

query I rowsort
SELECT ALL + 42 - col2 FROM tab2 AS cor0
----
-16
19
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT ALL - COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT DISTINCT COUNT( * ) * + + 60 FROM tab1 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-6104
SELECT DISTINCT COUNT ( * ) * + + 60 FROM tab1 AS cor0
----
180

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 + + ( + col1 ) * col1 col1 FROM tab2
----
1428
2849
603

query I rowsort
SELECT - ( 44 ) * col0 + + col1 AS col0 FROM tab0
----
-3807
-4267
-579

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6108
SELECT ALL - col0 FROM tab0 WHERE NOT + CAST( + 74 AS DECIMAL ) * + col0 >= NULL
----

skipif mysql # not compatible
query I rowsort label-6108
SELECT ALL - col0 FROM tab0 WHERE NOT + CAST ( + 74 AS REAL ) * + col0 >= NULL
----

query I rowsort
SELECT ( - 36 ) + + 29 * - col0 FROM tab0
----
-2559
-2849
-471

query I rowsort
SELECT DISTINCT + 48 * - 12 - + col0 AS col1 FROM tab2
----
-622
-640
-651

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT MAX( DISTINCT + col0 ) + + COUNT( * ) AS col1 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-6111
SELECT MAX ( DISTINCT + col0 ) + + COUNT ( * ) AS col1 FROM tab0
----
100

query I rowsort
SELECT col1 * 62 + + col2 AS col0 FROM tab2
----
3185
4212
4814

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

skipif mysql # not compatible
query I rowsort label-6113
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 WHERE ( + ( + ( col1 ) ) ) <= - 92
----

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

query I rowsort
SELECT ALL ( 37 ) AS col2 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND - 23 * col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 IN ( - col2 * - 38 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT + SUM( ALL - col1 ) - - 93 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-6120
SELECT + SUM ( ALL - col1 ) - - 93 FROM tab1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-6121
SELECT ( + 7 ) - + 97 DIV + col1 AS col1 FROM tab0
----
-90
3
6

skipif mysql # not compatible
query I rowsort label-6121
SELECT ( + 7 ) - + 97 / + col1 AS col1 FROM tab0
----
-90
3
6

query I rowsort
SELECT + col0 + + 26 FROM tab1 WHERE 54 IS NOT NULL
----
111
117
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6123
SELECT ALL col1 * - col2 + 48 FROM tab0 WHERE NOT - 48 <= + CAST( NULL AS SIGNED ) + col0 * col0
----

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL col1 * - col2 + 48 FROM tab0 WHERE NOT - 48 <= + CAST ( NULL AS INTEGER ) + col0 * col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 37 * - ( + col1 ) <> + 70
----

query I rowsort
SELECT ALL + 70 * - col2 FROM tab0 AS cor0
----
-3290
-6930
-700

onlyif mysql # DIV for integer division: 
query I rowsort label-6126
SELECT ALL col1 DIV 36 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL col1 / 36 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6127
SELECT ALL - col0 DIV + col1 + + col2 FROM tab2 AS cor0
----
23
40
57

skipif mysql # not compatible
query I rowsort label-6127
SELECT ALL - col0 / + col1 + + col2 FROM tab2 AS cor0
----
23
40
57

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 18 * col2 IS NULL
----

query I rowsort
SELECT ALL + col2 + + col0 * - 52 FROM tab2
----
-2369
-3288
-3842

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT - 76 + COUNT( * ) AS col1 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-6130
SELECT - 76 + COUNT ( * ) AS col1 FROM tab1
----
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN col2 / - col2 AND 7 * 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE + col1 <= + 30 * - 96
----
0

skipif mysql # not compatible
query I rowsort label-6132
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE + col1 <= + 30 * - 96
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6133
SELECT CAST( col2 AS SIGNED ) * + 71 AS col2 FROM tab2 AS cor0
----
1633
2840
4118

skipif mysql # not compatible
query I rowsort label-6133
SELECT CAST ( col2 AS INTEGER ) * + 71 AS col2 FROM tab2 AS cor0
----
1633
2840
4118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6134
SELECT DISTINCT CAST( NULL AS SIGNED ) - col0 * + 58 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6134
SELECT DISTINCT CAST ( NULL AS INTEGER ) - col0 * + 58 FROM tab1 cor0
----
NULL

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

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

query I rowsort
SELECT ALL 69 * + 59 - + col2 FROM tab2 cor0
----
4013
4031
4048

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT ALL - MAX( DISTINCT 67 ) FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-6138
SELECT ALL - MAX ( DISTINCT 67 ) FROM tab1 AS cor0
----
-67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6139
SELECT ALL CAST( NULL AS DECIMAL ) col0 FROM tab2 AS cor0 WHERE ( + col0 - - col0 ) < col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6139
SELECT ALL CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0 WHERE ( + col0 - - col0 ) < col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 65 * - 56 col0 FROM tab1 cor0
----
-3640

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT 22 + - COUNT( * ) FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-6142
SELECT 22 + - COUNT ( * ) FROM tab0 AS cor0
----
19

query I rowsort
SELECT col0 * 96 + + 64 * 69 AS col1 FROM tab1 AS cor0
----
12576
13152
9312

query I rowsort
SELECT - col2 + + 52 * + 60 AS col1 FROM tab2
----
3062
3080
3097

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6146
SELECT DISTINCT col1 + - + 17 + + col1 DIV col1 AS col1 FROM tab1
----
-11
-2
31

skipif mysql # not compatible
query I rowsort label-6146
SELECT DISTINCT col1 + - + 17 + + col1 / col1 AS col1 FROM tab1
----
-11
-2
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT - COUNT( * ) FROM tab2 WHERE ( 94 ) NOT BETWEEN NULL AND + 29
----
-3

skipif mysql # not compatible
query I rowsort label-6147
SELECT - COUNT ( * ) FROM tab2 WHERE ( 94 ) NOT BETWEEN NULL AND + 29
----
-3

query I rowsort
SELECT - 76 + col0 AS col1 FROM tab2
----
-1
-12
-30

query I rowsort
SELECT - col1 + - col2 - + col0 FROM tab2
----
-120
-181
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT MAX( + 77 ) FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-6150
SELECT MAX ( + 77 ) FROM tab0
----
77

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

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE ( NULL ) IN ( - ( col0 ) * + 31 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6153
SELECT ALL * FROM tab1 AS cor0 WHERE - 25 * col0 > ( CAST( - 97 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-6153
SELECT ALL * FROM tab1 AS cor0 WHERE - 25 * col0 > ( CAST ( - 97 AS REAL ) )
----

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 92 - col0 IN ( + col1 )
----

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

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

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE + 72 NOT IN ( + 42 )
----
51
67
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT + 17 + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT 80 IS NULL
----
20

skipif mysql # not compatible
query I rowsort label-6159
SELECT + 17 + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 80 IS NULL
----
20

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6161
SELECT + col0 + + - col2 DIV ( col1 ) AS col1 FROM tab1 cor0
----
45
74
90

skipif mysql # not compatible
query I rowsort label-6161
SELECT + col0 + + - col2 / ( col1 ) AS col1 FROM tab1 cor0
----
45
74
90

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 IN ( - 50 )
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6163
SELECT col2 * - col2 + + - 39 DIV + ( + col1 + col2 ) AS col1 FROM tab2 cor0
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-6163
SELECT col2 * - col2 + + - 39 / + ( + col1 + col2 ) AS col1 FROM tab2 cor0
----
-1600
-3364
-529

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 >= ( - - col1 )
----

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

query I rowsort
SELECT ALL - col1 - col0 FROM tab1 WHERE - - col0 IS NOT NULL
----
-138
-65
-90

query I rowsort
SELECT ALL - 4 * + 35 * - + col1 FROM tab2
----
10780
7140
9380

query I rowsort
SELECT + 14 + + + col1 AS col1 FROM tab2
----
65
81
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6169
SELECT DISTINCT - col0 DIV + 40 FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-6169
SELECT DISTINCT - col0 / + 40 FROM tab0
----
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 col2 FROM tab1 WHERE col2 IS NOT NULL
----
1344
295
3196

query I rowsort
SELECT - 21 * + - col0 * col2 FROM tab2
----
22218
53760
91350

query I rowsort
SELECT ALL - 69 FROM tab2 WHERE NOT NULL NOT IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab1 WHERE ( - 64 ) NOT IN ( + 73 + col2 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT + 87 * + COUNT( * ) FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-6174
SELECT + 87 * + COUNT ( * ) FROM tab0
----
261

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 23 <> NULL
----

query I rowsort
SELECT DISTINCT + col1 * col1 + 26 * + 24 - + col2 FROM tab2 AS cor0
----
3202
5055
6513

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

skipif mysql # not compatible
query II rowsort label-6177
SELECT DISTINCT - MIN ( DISTINCT + 4 ), + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-4
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6178
SELECT + 50 DIV + - col2 - - col0 AS col1 FROM tab2 cor0
----
44
63
75

skipif mysql # not compatible
query I rowsort label-6178
SELECT + 50 / + - col2 - - col0 AS col1 FROM tab2 cor0
----
44
63
75

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

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

query I rowsort
SELECT ALL col1 + - + 26 FROM tab0
----
-25
-5
55

query I rowsort
SELECT DISTINCT + 66 + 86 AS col1 FROM tab1 AS cor0 WHERE NOT col2 - + 34 NOT IN ( - col2 + 17 * ( col2 + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT + ( - COUNT( * ) ) + + ( - ( + + 28 ) ) + - 16 AS col2 FROM tab0 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-6182
SELECT + ( - COUNT ( * ) ) + + ( - ( + + 28 ) ) + - 16 AS col2 FROM tab0 AS cor0
----
-47

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

skipif mysql # not compatible
query II rowsort label-6183
SELECT ALL - - ( - CAST ( NULL AS INTEGER ) ) - 69, col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

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

query I rowsort
SELECT - 64 * + col0 - 62 * col0 AS col2 FROM tab0 AS cor0
----
-10962
-12222
-1890

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

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

query I rowsort
SELECT DISTINCT col0 + col0 AS col0 FROM tab2 cor0 WHERE NOT col1 = - col1 * + col1 - col2
----
128
150
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6188
SELECT * FROM tab2 WHERE NOT ( 69 * + + 64 - - CAST( NULL AS SIGNED ) + + - col0 ) IN ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-6188
SELECT * FROM tab2 WHERE NOT ( 69 * + + 64 - - CAST ( NULL AS INTEGER ) + + - col0 ) IN ( + col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT DISTINCT + MAX( + 51 ) AS col0 FROM tab2 WHERE NOT + 50 IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-6190
SELECT DISTINCT + MAX ( + 51 ) AS col0 FROM tab2 WHERE NOT + 50 IS NULL
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-6191
SELECT + col2 col1, + col0 * + - ( + + col2 ) DIV + col2 - - - 11 AS col1 FROM tab2
----
23
-57
40
-75
58
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6191
SELECT + col2 col1, + col0 * + - ( + + col2 ) / + col2 - - - 11 AS col1 FROM tab2
----
23
-57
40
-75
58
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, + col2 * - col0 col2 FROM tab0
----
-10
-870
-47
-705
-99
-9603

query I rowsort
SELECT + ( - + 87 ) FROM tab0
----
-87
-87
-87

query II rowsort
SELECT - col2, - ( + + col2 ) FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

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

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

query II rowsort
SELECT - + 14, 3 AS col1 FROM tab2 AS cor0
----
-14
3
-14
3
-14
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 <> 10
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < - 15
----

query I rowsort
SELECT ALL + col0 * + 77 AS col1 FROM tab1 WHERE NOT NULL BETWEEN ( - - 88 ) AND + col2
----

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

query II rowsort
SELECT DISTINCT - col2, col2 FROM tab0 WHERE ( NULL ) IS NULL
----
-10
10
-47
47
-99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6202
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - 5 + + col2 * - col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6202
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - 5 + + col2 * - col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
NULL

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

query I rowsort
SELECT DISTINCT - ( - + col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col0 * - - 26 )
----

query I rowsort
SELECT ALL + + col1 * + col2 * col2 AS col2 FROM tab1 AS cor0
----
129024
17405
217328

query I rowsort
SELECT ALL 49 * - col2 FROM tab1 AS cor0
----
-2891
-3332
-4704

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6208
SELECT - col2 AS col2 FROM tab0 WHERE - col2 + - - 0 - + 64 * - 57 - + CAST( + 58 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6208
SELECT - col2 AS col2 FROM tab0 WHERE - col2 + - - 0 - + 64 * - 57 - + CAST ( + 58 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + - - 64 + + col2 * - col0 * - - col0 FROM tab1
----
-249536
-426152
-562976

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

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

query I rowsort
SELECT ALL - col0 * - + col0 + - col1 + 34 AS col2 FROM tab0
----
178
7582
9442

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN ( + - 30 * - col0 * + 42 + - + col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT DISTINCT COUNT( * ) + - + MIN( - 81 ) AS col0 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-6213
SELECT DISTINCT COUNT ( * ) + - + MIN ( - 81 ) AS col0 FROM tab0
----
84

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

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

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

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

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - - col2 + - 5 + + col1 / 7
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6218
SELECT ALL - CAST( NULL AS DECIMAL ), + col1 AS col2 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-6218
SELECT ALL - CAST ( NULL AS REAL ), + col1 AS col2 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query II rowsort
SELECT ALL col0 * - col2 * + col0 AS col0, - 7 * - col2 FROM tab2 AS cor0
----
-163840
280
-326250
406
-48668
161

query I rowsort
SELECT DISTINCT col2 + + col2 + - col2 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL + col2 + - col1 + + + col0 * 11 + - col0 + + col1 * - ( - col2 ) * + - 4 * - 7 AS col1 FROM tab2
----
109549
33276
86843

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6223
SELECT DISTINCT col1 - + CAST( + ( + col2 ) AS SIGNED ) AS col2 FROM tab1 cor0
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-6223
SELECT DISTINCT col1 - + CAST ( + ( + col2 ) AS INTEGER ) AS col2 FROM tab1 cor0
----
-21
-54
-82

query I rowsort
SELECT col0 * - col0 + + 97 FROM tab1 AS cor0
----
-2504
-7128
-8184

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

query I rowsort
SELECT DISTINCT - - col2 * - 91 FROM tab2 AS cor0 WHERE NOT + col1 + col2 < - ( - 54 ) * - - 63
----

query I rowsort
SELECT + + col1 * - 33 * + 37 FROM tab1 AS cor0
----
-17094
-57387
-6105

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT DISTINCT COUNT( 82 ) col2 FROM tab1
----
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6229
SELECT ALL 67 DIV col2 * - - 88 * - + col0 FROM tab1
----
-7480
0
0

skipif mysql # not compatible
query I rowsort label-6229
SELECT ALL 67 / col2 * - - 88 * - + col0 FROM tab1
----
-7480
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT ALL MAX( 22 ) FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL MAX ( 22 ) FROM tab0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6231
SELECT DISTINCT - CAST( + 2 AS SIGNED ) * + AVG ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6231
SELECT DISTINCT - CAST ( + 2 AS INTEGER ) * + AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6233
SELECT col0 AS col2, - col2 DIV - col1 + 6 DIV - 63 FROM tab1
----
51
6
85
11
91
1

skipif mysql # not compatible
query II rowsort label-6233
SELECT col0 AS col2, - col2 / - col1 + 6 / - 63 FROM tab1
----
51
6
85
11
91
1

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

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

query I rowsort
SELECT + + 40 FROM tab2 WHERE NOT col1 + + col0 + - + col2 * - + col2 + - - 19 IS NOT NULL
----

query II rowsort
SELECT 50 AS col1, 86 * - - 38 AS col0 FROM tab0 AS cor0
----
50
3268
50
3268
50
3268

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6238
SELECT + + CAST( 8 AS SIGNED ) + col0 AS col2 FROM tab2 cor0
----
54
72
83

skipif mysql # not compatible
query I rowsort label-6238
SELECT + + CAST ( 8 AS INTEGER ) + col0 AS col2 FROM tab2 cor0
----
54
72
83

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6241
SELECT ALL - 97 + 0 DIV 60 FROM tab2 AS cor0
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL - 97 + 0 / 60 FROM tab2 AS cor0
----
-97
-97
-97

query I rowsort
SELECT - + col0 + + col0 * - + 94 AS col1 FROM tab0 AS cor0
----
-1425
-8265
-9215

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT ALL - COUNT( 67 ) * - 90 AS col2 FROM tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-6243
SELECT ALL - COUNT ( 67 ) * - 90 AS col2 FROM tab0 AS cor0
----
270

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

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

query I rowsort
SELECT + - 58 + - 68 - 35 + - col1 - + 80 + - + col0 AS col0 FROM tab1 AS cor0
----
-306
-331
-379

onlyif mysql # DIV for integer division: 
query I rowsort label-6246
SELECT ALL col1 + 79 DIV - - ( ( + - col2 ) ) FROM tab0
----
1
14
80

skipif mysql # not compatible
query I rowsort label-6246
SELECT ALL col1 + 79 / - - ( ( + - col2 ) ) FROM tab0
----
1
14
80

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 39 * - ( col2 ) = + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( col1 * ( - col1 ) * 73, col1 )
----

query I rowsort
SELECT DISTINCT - ( - col0 ) + - 72 FROM tab1
----
-21
13
19

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6251
SELECT * FROM tab1 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) * - col0 ) BETWEEN NULL AND - 82 - - - 20 + + + col2 + + col1 + - - col0 / + col0 + - + col2
----

skipif mysql # not compatible
query III rowsort label-6251
SELECT * FROM tab1 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) * - col0 ) BETWEEN NULL AND - 82 - - - 20 + + + col2 + + col1 + - - col0 / + col0 + - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6252
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND - CAST( + 58 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6252
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND - CAST ( + 58 AS INTEGER )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT DISTINCT + COUNT( ALL ( + + 71 ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6254
SELECT DISTINCT + COUNT ( ALL ( + + 71 ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6255
SELECT ALL + CAST( + - 1 AS SIGNED ) + - 14 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL + CAST ( + - 1 AS INTEGER ) + - 14 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT DISTINCT + + COUNT( * ) * ( MAX( + col1 ) ) - - + ( - MAX( ALL + + 95 ) ) FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-6256
SELECT DISTINCT + + COUNT ( * ) * ( MAX ( + col1 ) ) - - + ( - MAX ( ALL + + 95 ) ) FROM tab1 AS cor0
----
46

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 BETWEEN + - col0 AND - - ( + col1 )
----
85
5
59
91
47
68

query I rowsort
SELECT ALL + 53 * 74 AS col2 FROM tab0 AS cor0
----
3922
3922
3922

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 19 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6261
SELECT DISTINCT - 14 DIV col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6261
SELECT DISTINCT - 14 / col2 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 4 * 31 col1 FROM tab1 AS cor0
----
-124
-124
-124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6263
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 WHERE NOT + - CAST( NULL AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6263
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
3

query I rowsort
SELECT 24 * + - col0 AS col2 FROM tab0
----
-2088
-2328
-360

query II rowsort
SELECT ALL - col0 * 17 AS col0, - col1 FROM tab0
----
-1479
-21
-1649
-1
-255
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-6266
SELECT 47 DIV - 6 FROM tab2
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-6266
SELECT 47 / - 6 FROM tab2
----
-7
-7
-7

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

query I rowsort
SELECT ALL 79 * - col0 FROM tab0
----
-1185
-6873
-7663

onlyif mysql # DIV for integer division: 
query I rowsort label-6269
SELECT 65 DIV 84 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6269
SELECT 65 / 84 FROM tab0
----
0
0
0

query I rowsort
SELECT - col1 * - + 26 AS col1 FROM tab2
----
1326
1742
2002

query I rowsort
SELECT DISTINCT + col2 * + 84 FROM tab2
----
1932
3360
4872

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0 + col0 + 64 + - + 13
----

query I rowsort
SELECT ALL - col0 * - + 65 AS col2 FROM tab1 AS cor0
----
3315
5525
5915

query I rowsort
SELECT ALL 25 FROM tab0 AS cor0 WHERE col2 + 55 IS NULL
----

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

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

query II rowsort
SELECT DISTINCT 19 AS col2, 73 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
19
73

query I rowsort
SELECT ALL - 3 + + 34 FROM tab0
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT MIN( + - 56 ) FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-6278
SELECT MIN ( + - 56 ) FROM tab0 AS cor0
----
-56

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

query I rowsort
SELECT ALL - col1 * - + col0 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6282
SELECT ALL - SUM( ALL col2 ) + COUNT( * ), - 40 DIV - - COUNT( * ) - - + SUM( + col2 ) AS col0 FROM tab2 AS cor0
----
-118
108

skipif mysql # not compatible
query II rowsort label-6282
SELECT ALL - SUM ( ALL col2 ) + COUNT ( * ), - 40 / - - COUNT ( * ) - - + SUM ( + col2 ) AS col0 FROM tab2 AS cor0
----
-118
108

query I rowsort
SELECT col1 * + col2 + - col1 + + - col1 * col1 FROM tab1
----
1134
265
940

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT - 76 * + - 99 + - - COUNT( * ) FROM tab0
----
7527

skipif mysql # not compatible
query I rowsort label-6284
SELECT - 76 * + - 99 + - - COUNT ( * ) FROM tab0
----
7527

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

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

query I rowsort
SELECT DISTINCT - col1 + + col2 + + col0 AS col1 FROM tab1
----
112
133
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6287
SELECT ALL CAST( + - 36 AS SIGNED ) + - col1 FROM tab0
----
-117
-37
-57

skipif mysql # not compatible
query I rowsort label-6287
SELECT ALL CAST ( + - 36 AS INTEGER ) + - col1 FROM tab0
----
-117
-37
-57

query I rowsort
SELECT 38 + + 2 AS col1 FROM tab2
----
40
40
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6289
SELECT * FROM tab1 WHERE ( NULL ) >= - col2 * - 77 - - CAST( - col1 AS SIGNED ) + 49 * col1
----

skipif mysql # not compatible
query III rowsort label-6289
SELECT * FROM tab1 WHERE ( NULL ) >= - col2 * - 77 - - CAST ( - col1 AS INTEGER ) + 49 * col1
----

query I rowsort
SELECT DISTINCT 70 - + - col2 AS col2 FROM tab2
----
110
128
93

query I rowsort
SELECT DISTINCT 84 - + col2 FROM tab2
----
26
44
61

query I rowsort
SELECT col0 + 18 AS col2 FROM tab0
----
105
115
33

query II rowsort
SELECT DISTINCT 23 + + - col0 AS col0, 50 FROM tab2
----
-23
50
-41
50
-52
50

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

query I rowsort
SELECT DISTINCT 30 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6298
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 = - + col1 + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6298
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 = - + col1 + CAST ( NULL AS REAL )
----

query I rowsort
SELECT + ( - col1 ) * + + col0 + + col2 AS col0 FROM tab2
----
-2323
-4888
-4967

query I rowsort
SELECT DISTINCT 43 * col0 AS col0 FROM tab0
----
3741
4171
645

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT DISTINCT COUNT( * ) * + - 80 AS col0 FROM tab2 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-6302
SELECT DISTINCT COUNT ( * ) * + - 80 AS col0 FROM tab2 AS cor0
----
-240

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

query I rowsort
SELECT ALL - 59 AS col0 FROM tab1 cor0
----
-59
-59
-59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 = col2
----
-3

skipif mysql # not compatible
query I rowsort label-6307
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 = col2
----
-3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT ALL - COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----
0

query II rowsort
SELECT ALL - 34 AS col0, - 96 AS col1 FROM tab1
----
-34
-96
-34
-96
-34
-96

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

query I rowsort
SELECT + 64 + - + 34 FROM tab1 WHERE NOT - ( - col1 ) IS NULL
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT - COUNT( + 72 ) * + COUNT( * ) AS col0 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6314
SELECT - COUNT ( + 72 ) * + COUNT ( * ) AS col0 FROM tab2 cor0
----
-9

query I rowsort
SELECT - col1 * + + col1 AS col2 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT DISTINCT - col1 + + - col2 * - - col1 FROM tab1
----
-1358
-300
-3243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6317
SELECT DISTINCT + CAST( + col2 AS SIGNED ) + + + col1 FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-6317
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) + + + col1 FROM tab2
----
117
125
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 56 * - 47 + + col2 col0 FROM tab1 AS cor0
----
2691
2700
2728

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

query I rowsort
SELECT - col0 * - col1 + - - 22 / + 2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

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

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

query II rowsort
SELECT - - col0 + + + col0, + col0 AS col1 FROM tab1 AS cor0
----
102
51
170
85
182
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6323
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * col2 NOT IN ( - col0, 10, col0, - 50 * - col1, 67 )
----

skipif mysql # not compatible
query III rowsort label-6323
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * col2 NOT IN ( - col0, 10, col0, - 50 * - col1, 67 )
----

query I rowsort
SELECT ALL + ( + + col1 ) + + 95 FROM tab0 AS cor0
----
116
176
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6325
SELECT CAST( + col0 AS SIGNED ) AS col2, 91 FROM tab0 AS cor0
----
15
91
87
91
97
91

skipif mysql # not compatible
query II rowsort label-6325
SELECT CAST ( + col0 AS INTEGER ) AS col2, 91 FROM tab0 AS cor0
----
15
91
87
91
97
91

query I rowsort
SELECT ALL - - 85 FROM tab1 WHERE NULL IS NULL
----
85
85
85

query I rowsort
SELECT col0 - + 50 FROM tab0
----
-35
37
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT ALL - 65 * + COUNT( * ) - + + COUNT( * ) AS col2 FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-6328
SELECT ALL - 65 * + COUNT ( * ) - + + COUNT ( * ) AS col2 FROM tab0
----
-198

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6330
SELECT + CAST ( NULL AS INTEGER ) - + - ( 53 ) col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT - - 13 - - + COUNT( * ) col0 FROM tab2 AS cor0
----
16

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

query I rowsort
SELECT - col2 * 89 + + - col2 - + col2 FROM tab2 AS cor0
----
-2093
-3640
-5278

query I rowsort
SELECT 94 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # DIV for integer division: 
query I rowsort label-6334
SELECT + 73 DIV - col2 FROM tab2
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-6334
SELECT + 73 / - col2 FROM tab2
----
-1
-1
-3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * + col0 AS col0, col2 * - 86 col0 FROM tab1
----
4896
-8256
5015
-5074
6188
-5848

query II rowsort
SELECT - 68 AS col2, col2 - + col0 * - col0 + 83 FROM tab0 cor0
----
-68
355
-68
7662
-68
9591

query II rowsort
SELECT col1, + col2 * col0 - - 21 AS col1 FROM tab0 cor0
----
1
9624
21
891
81
726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6339
SELECT + col2 * + + CAST( - - col2 AS SIGNED ) + + col2 AS col2 FROM tab1 AS cor0
----
3540
4692
9312

skipif mysql # not compatible
query I rowsort label-6339
SELECT + col2 * + + CAST ( - - col2 AS INTEGER ) + + col2 AS col2 FROM tab1 AS cor0
----
3540
4692
9312

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 + - 30 IN ( + + 49, 78 )
----

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

query I rowsort
SELECT ALL - col0 * + - 66 * col1 AS col2 FROM tab2
----
154836
325248
331650

query II rowsort
SELECT ALL - col0 * - col2, 93 AS col2 FROM tab1
----
4896
93
5015
93
6188
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT DISTINCT 72 * - MIN( DISTINCT + + 70 ) * - - 51 AS col1 FROM tab2
----
-257040

skipif mysql # not compatible
query I rowsort label-6345
SELECT DISTINCT 72 * - MIN ( DISTINCT + + 70 ) * - - 51 AS col1 FROM tab2
----
-257040

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT DISTINCT - MIN( ALL + + 66 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-6346
SELECT DISTINCT - MIN ( ALL + + 66 ) FROM tab1
----
-66

query I rowsort
SELECT + 20 * - col2 FROM tab1
----
-1180
-1360
-1920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col1 + + col2 col2 FROM tab1 AS cor0
----
-1248
-236
-3128

query II rowsort
SELECT - col1, + 68 FROM tab1 AS cor0 WHERE ( NOT + col0 / + 80 + 90 IS NOT NULL )
----

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE 12 >= NULL
----

query I rowsort
SELECT - + 24 AS col0 FROM tab0 AS cor0
----
-24
-24
-24

query II rowsort
SELECT ALL + col0 - - 27 AS col1, + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT + - col0 + - col0, 33 FROM tab2 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT ALL - - 9 * + 4 AS col1 FROM tab0 AS cor0
----
36
36
36

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

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

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

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

query I rowsort
SELECT + col0 + ( + - 23 ) AS col0 FROM tab0
----
-8
64
74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 80 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6360
SELECT 66 * - - CAST( - - 11 AS SIGNED ) * + col1 - col2 FROM tab1 AS cor0
----
10068
34054
3571

skipif mysql # not compatible
query I rowsort label-6360
SELECT 66 * - - CAST ( - - 11 AS INTEGER ) * + col1 - col2 FROM tab1 AS cor0
----
10068
34054
3571

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 23 >= - ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT 86 * - COUNT( * ) col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-258

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6363
SELECT 86 * - COUNT ( * ) col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-258

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL BETWEEN + + col0 AND + 44 * - col1 - - + col2 + + - 7 )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6366
SELECT COUNT( * ) + - 65, COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
-65
0

skipif mysql # not compatible
query II rowsort label-6366
SELECT COUNT ( * ) + - 65, COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
-65
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT ALL + - MAX( DISTINCT - + col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6367
SELECT ALL + - MAX ( DISTINCT - + col1 ) AS col2 FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL 22 AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6370
SELECT - MIN( + CAST( + col1 AS SIGNED ) ) + - + MAX( ALL + 95 ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-6370
SELECT - MIN ( + CAST ( + col1 AS INTEGER ) ) + - + MAX ( ALL + 95 ) FROM tab0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT DISTINCT + MAX( DISTINCT - - col0 ) FROM tab2 WHERE - col2 IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-6371
SELECT DISTINCT + MAX ( DISTINCT - - col0 ) FROM tab2 WHERE - col2 IS NOT NULL
----
75

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col0 col1 FROM tab1
----
-45
23
26

onlyif mysql # aggregate syntax: 
query II rowsort label-6374
SELECT ALL 75, COUNT( * ) col0 FROM tab2
----
75
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6375
SELECT - CAST( NULL AS SIGNED ) AS col0, col0 - col1 AS col0 FROM tab0 AS cor0
----
NULL
-66
NULL
66
NULL
96

skipif mysql # not compatible
query II rowsort label-6375
SELECT - CAST ( NULL AS INTEGER ) AS col0, col0 - col1 AS col0 FROM tab0 AS cor0
----
NULL
-66
NULL
66
NULL
96

query I rowsort
SELECT - - col0 * + col2 + 42 FROM tab0 cor0
----
747
912
9645

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 23 * - col0 AS col2, col0 col2 FROM tab0 AS cor0
----
-2001
87
-2231
97
-345
15

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

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

query I rowsort
SELECT - + col2 * 55 + 47 AS col2 FROM tab2 AS cor0
----
-1218
-2153
-3143

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6382
SELECT DISTINCT + - col1 DIV - + col1 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6382
SELECT DISTINCT + - col1 / - + col1 FROM tab1 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT - + ( + + COUNT( * ) ) * 60 col1 FROM tab0 cor0
----
-180

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

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

query I rowsort
SELECT ALL + col1 + - col1 + + col1 AS col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-6386
SELECT DISTINCT 55 * MAX( - 30 ) col0, SUM( + col1 ) FROM tab0
----
-1650
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6386
SELECT DISTINCT 55 * MAX ( - 30 ) col0, SUM ( + col1 ) FROM tab0
----
-1650
103

query I rowsort
SELECT + ( - 36 ) FROM tab2 WHERE NULL IN ( - - col0 / + ( - - col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6388
SELECT DISTINCT + CAST( + 74 AS SIGNED ) + + - col0 AS col0 FROM tab2
----
-1
10
28

skipif mysql # not compatible
query I rowsort label-6388
SELECT DISTINCT + CAST ( + 74 AS INTEGER ) + + - col0 AS col0 FROM tab2
----
-1
10
28

query II rowsort
SELECT - 60 - ( - ( col2 ) ), col1 * col1 AS col2 FROM tab2
----
-2
4489
-20
5929
-37
2601

query I rowsort
SELECT DISTINCT col1 * + ( - col0 ) FROM tab0 WHERE NULL IS NULL
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT ( + 74 ) + col2 + - + 32 + 99 / + col1 FROM tab2 WHERE NULL BETWEEN - col1 AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 * - 18 col2 FROM tab2
----
1710

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 86 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-6394
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 86 < NULL
----
0

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

query I rowsort
SELECT + col2 * - 29 FROM tab1 AS cor0
----
-1711
-1972
-2784

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6398
SELECT DISTINCT + col2 DIV + + col1 AS col0, - 98 AS col2 FROM tab0 AS cor0
----
0
-98
99
-98

skipif mysql # not compatible
query II rowsort label-6398
SELECT DISTINCT + col2 / + + col1 AS col0, - 98 AS col2 FROM tab0 AS cor0
----
0
-98
99
-98

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col2 / + + 36 + + 2 <= - - col1 * 48 - - col0 + - ( - col1 ) * - col2 + - col2 * + col2 / + ( col2 ) + + col2
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT + MAX( - 72 ) FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-6400
SELECT + MAX ( - 72 ) FROM tab1
----
-72

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

query I rowsort
SELECT DISTINCT + 44 + 25 AS col1 FROM tab0
----
69

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

query I rowsort
SELECT - 46 + + 43 FROM tab2
----
-3
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6405
SELECT ALL - - ( - col1 ) + - col0 + + - 47 + + col1 + col2 + + 99 * - + ( + col2 ) + col0 * + col1 / - col1 * 11 + + + 63 + - 50 * CAST( 91 AS SIGNED ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6405
SELECT ALL - - ( - col1 ) + - col0 + + - 47 + + col1 + col2 + + 99 * - + ( + col2 ) + col0 * + col1 / - col1 * 11 + + + 63 + - 50 * CAST ( 91 AS INTEGER ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT + col1 * - ( + - col1 ) AS col0 FROM tab0
----
1
441
6561

query I rowsort
SELECT ALL col2 * col1 - + col2 FROM tab0
----
0
200
3760

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + + col2 + col1 col1 FROM tab0
----
175
199
41

query I rowsort
SELECT DISTINCT + col0 - + col1 + - - col1 FROM tab2
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 <= - 23
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6414
SELECT DISTINCT + + 60 DIV + 90 - - col2 AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6414
SELECT DISTINCT + + 60 / + 90 - - col2 AS col2 FROM tab1 AS cor0
----
59
68
96

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

query I rowsort
SELECT DISTINCT - 81 - col1 AS col2 FROM tab0 AS cor0
----
-102
-162
-82

query I rowsort
SELECT ( + + col0 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( - 2 ) col2, col1 * col0 - + 24 + - col2 AS col2 FROM tab1
----
-2
342
-2
4185
-2
594

query I rowsort
SELECT ( - 67 ) * - col1 FROM tab2
----
3417
4489
5159

query I rowsort
SELECT + 18 * 19 FROM tab2
----
342
342
342

query II rowsort
SELECT DISTINCT 84 * - 33, col1 AS col0 FROM tab1
----
-2772
14
-2772
47
-2772
5

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 * + 56 / - + col2 <= col1
----

query I rowsort
SELECT DISTINCT ( 89 ) * 99 FROM tab2 AS cor0
----
8811

onlyif mysql # DIV for integer division: 
query I rowsort label-6426
SELECT DISTINCT - col1 DIV col1 * 36 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-6426
SELECT DISTINCT - col1 / col1 * 36 FROM tab0 AS cor0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6427
SELECT ALL col2, + col2 * - CAST( - col1 AS SIGNED ) AS col2 FROM tab1
----
59
295
68
3196
96
1344

skipif mysql # not compatible
query II rowsort label-6427
SELECT ALL col2, + col2 * - CAST ( - col1 AS INTEGER ) AS col2 FROM tab1
----
59
295
68
3196
96
1344

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6432
SELECT ALL - MAX( - CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6432
SELECT ALL - MAX ( - CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL ( + 58 ) AS col0 FROM tab1 AS cor0
----
58
58
58

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6434
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( col1 AS DECIMAL ) + - 22 * + col1 + + + col2 * col2 NOT BETWEEN NULL AND - 36 * - col0
----
97
1
99

skipif mysql # not compatible
query III rowsort label-6434
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( col1 AS REAL ) + - 22 * + col1 + + + col2 * col2 NOT BETWEEN NULL AND - 36 * - col0
----
97
1
99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6436
SELECT + - col2 * + col1 FROM tab2 WHERE + 39 > + - CAST( + col0 AS SIGNED )
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-6436
SELECT + - col2 * + col1 FROM tab2 WHERE + 39 > + - CAST ( + col0 AS INTEGER )
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6437
SELECT ALL * FROM tab1 WHERE + CAST( + 79 AS DECIMAL ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-6437
SELECT ALL * FROM tab1 WHERE + CAST ( + 79 AS REAL ) >= NULL
----

query I rowsort
SELECT ALL 28 + - 59 FROM tab0
----
-31
-31
-31

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NOT - - col0 < col1
----
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 * - col0 col0 FROM tab1 AS cor0
----
2244
3740
4004

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( ( + + col1 ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT DISTINCT + 14 - + + MIN( DISTINCT - 95 ) AS col1 FROM tab2 AS cor0
----
109

skipif mysql # not compatible
query I rowsort label-6443
SELECT DISTINCT + 14 - + + MIN ( DISTINCT - 95 ) AS col1 FROM tab2 AS cor0
----
109

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 * 65 - - + col0 * + - 44 col0 FROM tab1 AS cor0
----
1196
1460
2956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 AS col2, 75 * - col2 col2 FROM tab1 AS cor0
----
14
-7200
47
-5100
5
-4425

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6448
SELECT DISTINCT + MIN( ALL - CAST( - - 13 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-6448
SELECT DISTINCT + MIN ( ALL - CAST ( - - 13 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-13

query I rowsort
SELECT col2 * col0 * 70 AS col1 FROM tab2
----
179200
304500
74060

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT 48 * - - col2 + col0 <= 25 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6451
SELECT ALL COUNT( * ) AS col1, 85 AS col1 FROM tab1
----
3
85

skipif mysql # not compatible
query II rowsort label-6451
SELECT ALL COUNT ( * ) AS col1, 85 AS col1 FROM tab1
----
3
85

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6454
SELECT ALL - + col0 AS col0, + 55 DIV - 63 + - + col0 * - - ( + col0 ) FROM tab0 AS cor0
----
-15
-225
-87
-7569
-97
-9409

skipif mysql # not compatible
query II rowsort label-6454
SELECT ALL - + col0 AS col0, + 55 / - 63 + - + col0 * - - ( + col0 ) FROM tab0 AS cor0
----
-15
-225
-87
-7569
-97
-9409

query I rowsort
SELECT col0 AS col1 FROM tab2 cor0 WHERE NOT 21 / col2 + - col0 + 56 IS NULL
----
46
64
75

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

query I rowsort
SELECT - ( - - ( - - 69 ) ) AS col0 FROM tab1 AS cor0
----
-69
-69
-69

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

query I rowsort
SELECT ALL 58 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL >= NULL
----

query I rowsort
SELECT + 34 * - 63 FROM tab2
----
-2142
-2142
-2142

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

query I rowsort
SELECT + - col0 * + 82 * - col0 FROM tab0 AS cor0
----
18450
620658
771538

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT + COUNT( * ) * + + ( + 81 ) FROM tab1 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-6463
SELECT + COUNT ( * ) * + + ( + 81 ) FROM tab1 AS cor0
----
243

query I rowsort
SELECT ALL - + 83 * - col1 + + + col1 AS col2 FROM tab2 AS cor0
----
4284
5628
6468

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

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

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

query I rowsort
SELECT DISTINCT + - 50 AS col2 FROM tab1 cor0
----
-50

query I rowsort
SELECT ALL 52 + - 17 FROM tab1
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT + 18 + + MAX( col0 ) * - SUM( - col0 ) col1 FROM tab2
----
13893

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6469
SELECT + 18 + + MAX ( col0 ) * - SUM ( - col0 ) col1 FROM tab2
----
13893

query I rowsort
SELECT 11 + - + col2 AS col0 FROM tab2
----
-12
-29
-47

query I rowsort
SELECT col0 + - col2 * + 71 AS col2 FROM tab0
----
-3322
-623
-6932

query I rowsort
SELECT ALL col2 + + ( - 36 ) AS col0 FROM tab2
----
-13
22
4

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6473
SELECT DISTINCT col0 AS col2, CAST( NULL AS DECIMAL ) + + + 29 AS col2 FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-6473
SELECT DISTINCT col0 AS col2, CAST ( NULL AS REAL ) + + + 29 AS col2 FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT COUNT( * ) * + + COUNT( * ) * + 41 * - + 52 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-172692

skipif mysql # not compatible
query I rowsort label-6475
SELECT COUNT ( * ) * + + COUNT ( * ) * + 41 * - + 52 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-172692

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT - COUNT( * ) + + 54 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
45

skipif mysql # not compatible
query I rowsort label-6476
SELECT - COUNT ( * ) + + 54 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
45

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6478
SELECT 58, COUNT( * ) AS col0 FROM tab2 WHERE + ( + - 74 ) > NULL
----
58
0

skipif mysql # not compatible
query II rowsort label-6478
SELECT 58, COUNT ( * ) AS col0 FROM tab2 WHERE + ( + - 74 ) > NULL
----
58
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT ALL + 56 - + ( + COUNT( * ) ) FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-6480
SELECT ALL + 56 - + ( + COUNT ( * ) ) FROM tab2
----
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 21 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT + 47 * - COUNT( * ) * - COUNT( * ) FROM tab0 cor0
----
423

skipif mysql # not compatible
query I rowsort label-6483
SELECT + 47 * - COUNT ( * ) * - COUNT ( * ) FROM tab0 cor0
----
423

query II rowsort
SELECT ( + - col2 ) * col0, + col0 AS col1 FROM tab1
----
-4896
51
-5015
85
-6188
91

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

skipif mysql # not compatible
query I rowsort label-6485
SELECT ( COUNT ( * ) ) * - COUNT ( * ) FROM tab2
----
-9

query I rowsort
SELECT ALL 44 * - col0 FROM tab0
----
-3828
-4268
-660

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT ALL SUM( 53 ) AS col2 FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-6487
SELECT ALL SUM ( 53 ) AS col2 FROM tab2
----
159

query II rowsort
SELECT ALL - + 97 AS col1, col2 AS col1 FROM tab1 AS cor0
----
-97
59
-97
68
-97
96

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

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

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

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

query II rowsort
SELECT col1, col0 * col2 FROM tab1
----
14
4896
47
6188
5
5015

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6492
SELECT * FROM tab2 WHERE col2 IN ( + - CAST( NULL AS SIGNED ), col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6492
SELECT * FROM tab2 WHERE col2 IN ( + - CAST ( NULL AS INTEGER ), col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL col0 AS col2, + col2 + - col2 + - - col1 AS col0, + col2 col0 FROM tab1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT - 61 * - 17 + - - 49 + - - COUNT( * ) FROM tab1 AS cor0
----
1089

skipif mysql # not compatible
query I rowsort label-6495
SELECT - 61 * - 17 + - - 49 + - - COUNT ( * ) FROM tab1 AS cor0
----
1089

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

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

query I rowsort
SELECT - col0 + - - col2 * - col2 * + + col1 FROM tab2 AS cor0
----
-123264
-225463
-27025

query II rowsort
SELECT + 43 + - col2 + - 39 + - + 47 * - col1 - - col1, + col0 FROM tab0 cor0
----
-47
97
1002
87
3845
15

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6500
SELECT 19 DIV col1 DIV col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6500
SELECT 19 / col1 / col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6501
SELECT ALL + col0 AS col2, - col0 FROM tab1 WHERE + CAST( NULL AS SIGNED ) / - col1 IS NULL
----
51
-51
85
-85
91
-91

skipif mysql # not compatible
query II rowsort label-6501
SELECT ALL + col0 AS col2, - col0 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) / - col1 IS NULL
----
51
-51
85
-85
91
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + + col1 + + col1 col2 FROM tab0
----
-420
-6480
0

query I rowsort
SELECT ALL 35 + + col0 FROM tab2
----
110
81
99

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

query II rowsort
SELECT + + 50 + + col1, - 45 AS col1 FROM tab2 AS cor0
----
101
-45
117
-45
127
-45

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6507
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / + + 25 + 43 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6507
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / + + 25 + 43 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT DISTINCT + 59 * - 30 * COUNT( - col1 ) FROM tab1 AS cor0
----
-5310

skipif mysql # not compatible
query I rowsort label-6508
SELECT DISTINCT + 59 * - 30 * COUNT ( - col1 ) FROM tab1 AS cor0
----
-5310

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6509
SELECT + - COUNT( * ) AS col1, 12 DIV + - 33 FROM tab0 AS cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-6509
SELECT + - COUNT ( * ) AS col1, 12 / + - 33 FROM tab0 AS cor0
----
-3
0

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

query II rowsort
SELECT col0, 3 - - col1 AS col2 FROM tab1 AS cor0
----
51
17
85
8
91
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT ALL MAX( - col2 ) * - + 96 FROM tab2 AS cor0 WHERE NOT ( NOT + - col2 IS NOT NULL )
----
2208

skipif mysql # not compatible
query I rowsort label-6512
SELECT ALL MAX ( - col2 ) * - + 96 FROM tab2 AS cor0 WHERE NOT ( NOT + - col2 IS NOT NULL )
----
2208

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6514
SELECT + + col0 * + 62 + col1 DIV - + 29 FROM tab1 cor0
----
3162
5270
5641

skipif mysql # not compatible
query I rowsort label-6514
SELECT + + col0 * + 62 + col1 / - + 29 FROM tab1 cor0
----
3162
5270
5641

onlyif mysql # DIV for integer division: 
query II rowsort label-6515
SELECT ALL 87 DIV 94 DIV + 47 * - col0 AS col0, col0 FROM tab1
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-6515
SELECT ALL 87 / 94 / + 47 * - col0 AS col0, col0 FROM tab1
----
0
51
0
85
0
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT + COUNT( * ) * - 84 AS col2 FROM tab0
----
-252

skipif mysql # not compatible
query I rowsort label-6516
SELECT + COUNT ( * ) * - 84 AS col2 FROM tab0
----
-252

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

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

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

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

query I rowsort
SELECT ( + 55 ) FROM tab0
----
55
55
55

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

query I rowsort
SELECT ALL - + 53 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( - 98 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( - 98 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6524
SELECT DISTINCT - col1 + + + CAST( NULL AS DECIMAL ) AS col0, + col1 + 63 * col0 * + - 6 FROM tab2
----
NULL
-17337
NULL
-24115
NULL
-28283

skipif mysql # not compatible
query II rowsort label-6524
SELECT DISTINCT - col1 + + + CAST ( NULL AS REAL ) AS col0, + col1 + 63 * col0 * + - 6 FROM tab2
----
NULL
-17337
NULL
-24115
NULL
-28283

query I rowsort
SELECT col1 + + 5 * + 70 AS col2 FROM tab2
----
401
417
427

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - + 47 col1 FROM tab1
----
-52
-61
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + + col2 + - + col1 col0 FROM tab1
----
3476
4577
9202

query I rowsort
SELECT ALL 65 + + + col2 AS col0 FROM tab1
----
124
133
161

query I rowsort
SELECT - col0 AS col2 FROM tab0 cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6530
SELECT - COUNT( ALL + - col1 ) AS col2, SUM( ALL - col0 ) col1 FROM tab1 AS cor0
----
-3
-227

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

query I rowsort
SELECT + col1 * - - 81 FROM tab2 AS cor0
----
4131
5427
6237

query I rowsort
SELECT - + col0 * - 19 AS col2 FROM tab0 AS cor0
----
1653
1843
285

query I rowsort
SELECT DISTINCT - - 7 * + col2 FROM tab0 WHERE NOT NULL > + - col1 * - 39
----

query II rowsort
SELECT 33 * - col2, col2 + - col1 * - col1 * 49 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT - MAX( col0 ) + + 70 FROM tab1 cor0 WHERE NOT + 24 * col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6536
SELECT - MAX ( col0 ) + + 70 FROM tab1 cor0 WHERE NOT + 24 * col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT - 83 * + SUM( 39 ) FROM tab1 AS cor0
----
-9711

skipif mysql # not compatible
query I rowsort label-6537
SELECT - 83 * + SUM ( 39 ) FROM tab1 AS cor0
----
-9711

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6538
SELECT + - col2 + - + col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT col0 NOT IN ( 0, CAST( + col0 AS SIGNED ) )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6538
SELECT + - col2 + - + col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT col0 NOT IN ( 0, CAST ( + col0 AS INTEGER ) )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6539
SELECT DISTINCT + COUNT( * ) col0, + 13 AS col0 FROM tab0
----
3
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6539
SELECT DISTINCT + COUNT ( * ) col0, + 13 AS col0 FROM tab0
----
3
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - - col1 col1 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT - MIN( - col2 ) FROM tab0 WHERE NOT ( NULL <= ( NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6541
SELECT - MIN ( - col2 ) FROM tab0 WHERE NOT ( NULL <= ( NULL ) )
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6542
SELECT + MAX ( + - col2 ) col0 FROM tab1 AS cor0
----
-59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT MAX( + 74 ) FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-6544
SELECT MAX ( + 74 ) FROM tab2
----
74

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

query I rowsort
SELECT ALL col0 FROM tab2 WHERE 41 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT + 52 * COUNT( * ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-6547
SELECT + 52 * COUNT ( * ) FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT - MIN( 18 ) * - 50 AS col2 FROM tab1
----
900

skipif mysql # not compatible
query I rowsort label-6548
SELECT - MIN ( 18 ) * - 50 AS col2 FROM tab1
----
900

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

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

query I rowsort
SELECT + 52 * 57 FROM tab1
----
2964
2964
2964

query I rowsort
SELECT DISTINCT col0 + col1 FROM tab1 WHERE ( + col0 ) <= - 37
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 77 ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6553
SELECT col2 * ( + ( col2 ) DIV - col0 ) + col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6553
SELECT col2 * ( + ( col2 ) / - col0 ) + col1 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT 4 * COUNT( * ) + + COUNT( * ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-6554
SELECT 4 * COUNT ( * ) + + COUNT ( * ) FROM tab0
----
15

query I rowsort
SELECT ( - 58 ) * 64 FROM tab0
----
-3712
-3712
-3712

query I rowsort
SELECT 52 * - ( + 92 ) + col0 AS col0 FROM tab2
----
-4709
-4720
-4738

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

skipif mysql # not compatible
query I rowsort label-6557
SELECT 5 * + ( - COUNT ( * ) / COUNT ( * ) ) AS col0 FROM tab0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT COUNT( * ) + + ( - ( - COUNT( * ) ) - + 20 ) FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-6558
SELECT COUNT ( * ) + + ( - ( - COUNT ( * ) ) - + 20 ) FROM tab1
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6559
SELECT ALL CAST( NULL AS SIGNED ) + + col0 * 33 col0 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT 11 * SUM( DISTINCT col2 ) col2 FROM tab1
----
2453

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6560
SELECT 11 * SUM ( DISTINCT col2 ) col2 FROM tab1
----
2453

query I rowsort
SELECT 48 * ( col0 ) AS col1 FROM tab2
----
2208
3072
3600

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

query I rowsort
SELECT + 18 FROM tab1 WHERE - ( - 13 ) * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT DISTINCT - 34 * + SUM( 26 ) FROM tab2
----
-2652

skipif mysql # not compatible
query I rowsort label-6564
SELECT DISTINCT - 34 * + SUM ( 26 ) FROM tab2
----
-2652

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6566
SELECT col0 DIV col1 + col2 * col2 FROM tab0
----
104
2209
9898

skipif mysql # not compatible
query I rowsort label-6566
SELECT col0 / col1 + col2 * col2 FROM tab0
----
104
2209
9898

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT ALL 80 * MIN( ALL col2 ) AS col2 FROM tab0
----
800

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL 80 * MIN ( ALL col2 ) AS col2 FROM tab0
----
800

query I rowsort
SELECT - 25 - col0 * + col0 AS col1 FROM tab1
----
-2626
-7250
-8306

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6569
SELECT 90 DIV - MAX( + 87 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6569
SELECT 90 / - MAX ( + 87 ) AS col1 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT ALL COUNT( * ) + 37 AS col1 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL COUNT ( * ) + 37 AS col1 FROM tab1
----
40

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

query I rowsort
SELECT ALL 93 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 70 NOT IN ( ( - 28 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT DISTINCT SUM( 1 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6574
SELECT DISTINCT SUM ( 1 ) col2 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6575
SELECT DISTINCT + col1 DIV 76 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6575
SELECT DISTINCT + col1 / 76 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col0 * - 28 FROM tab1 AS cor0
----
-1428
-2380
-2548

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT + col0 <= ( + 14 )
----
59
68
96

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
138
65
90

query I rowsort
SELECT - 89 * + 94 FROM tab1 AS cor0
----
-8366
-8366
-8366

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

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

query I rowsort
SELECT ALL - ( col1 ) * 78 AS col2 FROM tab0 cor0
----
-1638
-6318
-78

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

query I rowsort
SELECT DISTINCT 67 * + 32 AS col2 FROM tab2 AS cor0
----
2144

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT ALL - SUM( + col0 ) FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-6586
SELECT ALL - SUM ( + col0 ) FROM tab2 cor0
----
-185

query I rowsort
SELECT ALL - 22 + - col2 * col0 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col2 AND col0 + - col1
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6589
SELECT DISTINCT - + CAST( col0 AS SIGNED ) + 71 AS col1 FROM tab0 AS cor0
----
-16
-26
56

skipif mysql # not compatible
query I rowsort label-6589
SELECT DISTINCT - + CAST ( col0 AS INTEGER ) + 71 AS col1 FROM tab0 AS cor0
----
-16
-26
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT DISTINCT SUM( ALL col0 ) + + COUNT( * ) FROM tab0
----
202

skipif mysql # not compatible
query I rowsort label-6590
SELECT DISTINCT SUM ( ALL col0 ) + + COUNT ( * ) FROM tab0
----
202

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT - COUNT( * ) * + + ( + COUNT( * ) ) * 92 FROM tab1
----
-828

skipif mysql # not compatible
query I rowsort label-6591
SELECT - COUNT ( * ) * + + ( + COUNT ( * ) ) * 92 FROM tab1
----
-828

query I rowsort
SELECT ALL - col0 + - 13 AS col0 FROM tab2
----
-59
-77
-88

query I rowsort
SELECT col1 * col2 FROM tab1 WHERE NOT ( + col1 ) BETWEEN NULL AND - 39
----
1344
295
3196

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 < col2
----

query I rowsort
SELECT ALL - col2 + + + 1 FROM tab1
----
-58
-67
-95

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 42 <> NULL
----

query I rowsort
SELECT - col1 + col2 + + col1 * 84 AS col0 FROM tab2
----
4256
5619
6431

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6598
SELECT CAST( + - ( + col0 ) AS SIGNED ) + + ( - 32 ) AS col1 FROM tab2
----
-107
-78
-96

skipif mysql # not compatible
query I rowsort label-6598
SELECT CAST ( + - ( + col0 ) AS INTEGER ) + + ( - 32 ) AS col1 FROM tab2
----
-107
-78
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT 44 + MIN( - 97 ) col1 FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6599
SELECT 44 + MIN ( - 97 ) col1 FROM tab0 AS cor0
----
-53

query I rowsort
SELECT - 30 + + col0 AS col1 FROM tab2 AS cor0
----
16
34
45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6601
SELECT - SUM( ALL - 28 ) * COUNT( * ) + - CAST( NULL AS DECIMAL ) / 54 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6601
SELECT - SUM ( ALL - 28 ) * COUNT ( * ) + - CAST ( NULL AS REAL ) / 54 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6602
SELECT DISTINCT 34 + + 97 + - + col0 DIV - col1 AS col2 FROM tab1
----
132
134
148

skipif mysql # not compatible
query I rowsort label-6602
SELECT DISTINCT 34 + + 97 + - + col0 / - col1 AS col2 FROM tab1
----
132
134
148

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6604
SELECT - SUM( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6604
SELECT - SUM ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6605
SELECT ALL + col2 + + col0 + CAST( + col0 AS SIGNED ) * - col1 FROM tab0
----
-1153
-1730
99

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL + col2 + + col0 + CAST ( + col0 AS INTEGER ) * - col1 FROM tab0
----
-1153
-1730
99

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IN ( + 59 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT - - 31 + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
34

skipif mysql # not compatible
query I rowsort label-6609
SELECT - - 31 + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
34

query I rowsort
SELECT col2 * - col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT 49 FROM tab1 AS cor0 WHERE NOT - 31 BETWEEN NULL AND + col1
----

query I rowsort
SELECT + col0 + - 75 AS col2 FROM tab0
----
-60
12
22

query III rowsort
SELECT * FROM tab1 WHERE + col1 = + + 1 + col2 * - col2
----

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

query I rowsort
SELECT ( + col2 ) * 95 * - col0 + - ( + col0 ) AS col0 FROM tab1
----
-465171
-476510
-587951

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col1 ) = - 79
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 21 + col1 + - - col1 AS col2 FROM tab1
----
115
31
49

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

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

query I rowsort
SELECT DISTINCT 64 FROM tab0 WHERE NOT - ( - col0 ) <> ( - col0 ) / 42
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE NOT + - col2 + col0 IS NULL
----
15
87
97

query I rowsort
SELECT 59 * + + col0 AS col1 FROM tab2
----
2714
3776
4425

query I rowsort
SELECT col2 * col0 AS col1 FROM tab0 WHERE NOT 6 IS NOT NULL
----

query I rowsort
SELECT + ( - col1 ) AS col2 FROM tab2 WHERE NOT + - 42 IS NULL
----
-51
-67
-77

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

query I rowsort
SELECT DISTINCT + - col1 * - 30 FROM tab1 cor0
----
1410
150
420

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE 9 IN ( + col1 * - + col1 )
----

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT ( 81 ) NOT BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6628
SELECT * FROM tab0 WHERE NOT ( + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) ) IN ( 90 )
----

skipif mysql # not compatible
query III rowsort label-6628
SELECT * FROM tab0 WHERE NOT ( + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) ) IN ( 90 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT DISTINCT COUNT( * ) * 24 col0 FROM tab1
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6629
SELECT DISTINCT COUNT ( * ) * 24 col0 FROM tab1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT ALL - COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL <> 60
----
0

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL <> 60
----
0

query II rowsort
SELECT DISTINCT + col2, + 70 AS col1 FROM tab2 AS cor0
----
23
70
40
70
58
70

query II rowsort
SELECT ALL 91 AS col2, - col2 + + - ( + - 18 ) + - col0 * + col2 FROM tab2 AS cor0
----
91
-1063
91
-2582
91
-4390

query I rowsort
SELECT - col1 + - 82 FROM tab1 AS cor0
----
-129
-87
-96

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6635
SELECT - CAST( + + 30 AS SIGNED ) + COUNT( * ) DIV + SUM( ALL - 82 ) AS col1 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-6635
SELECT - CAST ( + + 30 AS INTEGER ) + COUNT ( * ) / + SUM ( ALL - 82 ) AS col1 FROM tab0 AS cor0
----
-30

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 / - 54 IS NOT NULL
----

query I rowsort
SELECT 81 + + - col1 FROM tab2 AS cor0
----
14
30
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6638
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( CAST( NULL AS SIGNED ) / - 77 ) AND ( col1 )
----

skipif mysql # not compatible
query III rowsort label-6638
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( CAST ( NULL AS INTEGER ) / - 77 ) AND ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6639
SELECT DISTINCT 53 * MIN( CAST( NULL AS SIGNED ) ) FROM tab1 WHERE ( NOT ( NOT + 12 BETWEEN + col2 AND col0 - col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6639
SELECT DISTINCT 53 * MIN ( CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE ( NOT ( NOT + 12 BETWEEN + col2 AND col0 - col0 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT MIN( ALL - col1 ) + + - COUNT( * ) FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-6640
SELECT MIN ( ALL - col1 ) + + - COUNT ( * ) FROM tab1
----
-50

query I rowsort
SELECT 33 * - 91 FROM tab1
----
-3003
-3003
-3003

onlyif mysql # DIV for integer division: 
query I rowsort label-6642
SELECT - + col2 * col2 + col2 DIV 79 AS col1 FROM tab0 WHERE col2 NOT BETWEEN NULL AND - col0 * - col1
----
-9800

skipif mysql # not compatible
query I rowsort label-6642
SELECT - + col2 * col2 + col2 / 79 AS col1 FROM tab0 WHERE col2 NOT BETWEEN NULL AND - col0 * - col1
----
-9800

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 65 + + 74 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6644
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-6644
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

query II rowsort
SELECT ALL + - col0 AS col1, 44 FROM tab1 AS cor0
----
-51
44
-85
44
-91
44

query I rowsort
SELECT + 89 - - 93 AS col0 FROM tab1 AS cor0
----
182
182
182

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

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

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

query I rowsort
SELECT ALL - ( col0 ) * + + col0 + + ( - - 73 ) - - 25 FROM tab2
----
-2018
-3998
-5527

query I rowsort
SELECT + + col0 * - col0 + + 84 AS col2 FROM tab1 AS cor0 WHERE 3 IS NULL
----

query I rowsort
SELECT ALL - - 57 * 14 FROM tab0 AS cor0
----
798
798
798

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT - - 16 * MAX( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
1456

skipif mysql # not compatible
query I rowsort label-6652
SELECT - - 16 * MAX ( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
1456

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

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

query I rowsort
SELECT DISTINCT + - 12 FROM tab1 cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6655
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL <> CAST( CAST( 64 AS SIGNED ) AS SIGNED ) * + + col0 )
----

skipif mysql # not compatible
query III rowsort label-6655
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL <> CAST ( CAST ( 64 AS INTEGER ) AS INTEGER ) * + + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6656
SELECT ALL + SUM( + 36 ) * + - AVG ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL + SUM ( + 36 ) * + - AVG ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6657
SELECT ( 9 ) DIV COUNT( * ) + MAX( 7 ) + + - ( 53 ) FROM tab0
----
-43

skipif mysql # not compatible
query I rowsort label-6657
SELECT ( 9 ) / COUNT ( * ) + MAX ( 7 ) + + - ( 53 ) FROM tab0
----
-43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT - SUM( ALL + - 66 ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-6659
SELECT - SUM ( ALL + - 66 ) FROM tab1
----
198

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT DISTINCT + MAX( ALL + - 4 ) col0 FROM tab0 AS cor0
----
-4

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

query I rowsort
SELECT DISTINCT + ( 32 ) * - + ( - 52 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1664

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT DISTINCT + MAX( + - col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6664
SELECT DISTINCT + MAX ( + - col1 ) FROM tab0
----
-1

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

skipif mysql # not compatible
query I rowsort label-6665
SELECT ALL + 77 / - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-8

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( + 1 ) col2, 99 - + col2 AS col2 FROM tab0 AS cor0
----
-1
0
-1
52
-1
89

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

query I rowsort
SELECT col2 * - 92 AS col0 FROM tab1 AS cor0
----
-5428
-6256
-8832

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT 91 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6671
SELECT ALL - 7 DIV - - 35 + COUNT( * ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL - 7 / - - 35 + COUNT ( * ) AS col2 FROM tab2
----
3

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

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

query I rowsort
SELECT DISTINCT col1 + - + col2 AS col0 FROM tab1
----
-21
-54
-82

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

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

query III rowsort
SELECT * FROM tab1 WHERE NULL IS NOT NULL AND NOT NULL <= NULL
----

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( + col0 ) > col1 * - col1 + col2 + + col0
----
15
81
47
87
21
10

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6681
SELECT - + 72 * + 90 * - + col0 + + - col0 + + 48 AS col0 FROM tab1 AS cor0 WHERE 46 + + CAST( col0 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-6681
SELECT - + 72 * + 90 * - + col0 + + - col0 + + 48 AS col0 FROM tab1 AS cor0 WHERE 46 + + CAST ( col0 AS INTEGER ) >= NULL
----

query I rowsort
SELECT ALL + - 88 + col0 FROM tab1 cor0
----
-3
-37
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6683
SELECT col0 * col2 + 86 DIV + col1 FROM tab2 AS cor0
----
1059
2561
4351

skipif mysql # not compatible
query I rowsort label-6683
SELECT col0 * col2 + 86 / + col1 FROM tab2 AS cor0
----
1059
2561
4351

query I rowsort
SELECT ALL 40 + + - col1 AS col0 FROM tab2
----
-11
-27
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT DISTINCT COUNT( * ) + + 66 AS col2 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-6685
SELECT DISTINCT COUNT ( * ) + + 66 AS col2 FROM tab1
----
69

onlyif mysql # DIV for integer division: 
query II rowsort label-6686
SELECT - col1 DIV - col0 AS col1, - 28 col0 FROM tab2 AS cor0 WHERE + 85 IS NOT NULL
----
0
-28
1
-28
1
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6686
SELECT - col1 / - col0 AS col1, - 28 col0 FROM tab2 AS cor0 WHERE + 85 IS NOT NULL
----
0
-28
1
-28
1
-28

query I rowsort
SELECT ALL - col0 - + col0 - + - 33 * col2 FROM tab2 AS cor0
----
1192
1764
667

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6688
SELECT + 92 AS col1, - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
92
NULL
92
NULL
92
NULL

skipif mysql # not compatible
query II rowsort label-6688
SELECT + 92 AS col1, - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
92
NULL
92
NULL
92
NULL

query I rowsort
SELECT - 4 * - + 2 FROM tab2 AS cor0
----
8
8
8

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

query I rowsort
SELECT DISTINCT 74 FROM tab1 WHERE NOT - + 80 IS NULL
----
74

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT - col2 NOT IN ( 86, + col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6693
SELECT DISTINCT 59 * - + CAST( NULL AS DECIMAL ), col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-6693
SELECT DISTINCT 59 * - + CAST ( NULL AS REAL ), col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6694
SELECT + 7 DIV col2 * - col0 col1 FROM tab0
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6695
SELECT ALL + ( + 15 ) AS col0, + col1 * + - col2 + + col0 DIV 13 FROM tab2
----
15
-1170
15
-3076
15
-3881

skipif mysql # not compatible
query II rowsort label-6695
SELECT ALL + ( + 15 ) AS col0, + col1 * + - col2 + + col0 / 13 FROM tab2
----
15
-1170
15
-3076
15
-3881

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT DISTINCT MIN( DISTINCT - - col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-6696
SELECT DISTINCT MIN ( DISTINCT - - col2 ) AS col0 FROM tab2
----
23

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

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

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

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

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE NULL <> ( + 23 )
----

query I rowsort
SELECT + - ( + 49 ) + + 3 AS col1 FROM tab2 AS cor0
----
-46
-46
-46

query I rowsort
SELECT ( + - col0 ) * + - col2 + - col0 AS col2 FROM tab0 AS cor0
----
690
783
9506

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT + MAX( ALL + col0 ) AS col0 FROM tab0 cor0 WHERE - 45 NOT IN ( - - ( - col0 ) )
----
97

skipif mysql # not compatible
query I rowsort label-6704
SELECT + MAX ( ALL + col0 ) AS col0 FROM tab0 cor0 WHERE - 45 NOT IN ( - - ( - col0 ) )
----
97

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE + col1 * + col1 * col2 IN ( + col2, - col0 )
----
99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6707
SELECT 60 / + AVG ( - CAST( + col2 AS SIGNED ) ) + - - 70 AS col0 FROM tab2 WHERE + + 36 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6707
SELECT 60 / + AVG ( - CAST ( + col2 AS INTEGER ) ) + - - 70 AS col0 FROM tab2 WHERE + + 36 IS NULL
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 32 IS NULL
----

query I rowsort
SELECT ALL - ( col1 ) + + 24 * 63 - - 66 FROM tab2 AS cor0 WHERE NOT - 53 IS NULL
----
1501
1511
1527

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( - col1 ) * - col2 = + col2
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col1 IS NULL AND + 59 * - 86 <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + 17 * - col1 FROM tab2 AS cor0
----
1139
1309
867

query I rowsort
SELECT + 77 + 88 + + ( col0 ) + col2 AS col1 FROM tab1 WHERE col0 IS NULL
----

query II rowsort
SELECT 53 AS col0, + 55 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 3741ec1abe6cbee1fe94409175af798e

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6717
SELECT ALL - + col0 DIV col0 * - + col1 AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL - + col0 / col0 * - + col1 AS col1 FROM tab0 AS cor0
----
1
21
81

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

skipif mysql # not compatible
query I rowsort label-6718
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * MIN ( - col1 ) FROM tab0 AS cor0
----
NULL

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 22 * - 20 * col1 AS col0 FROM tab1 cor0
----
20680
2200
6160

onlyif mysql # DIV for integer division: 
query II rowsort label-6723
SELECT ALL col1 AS col2, 56 DIV + 64 * + 72 - + col0 AS col1 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

skipif mysql # not compatible
query II rowsort label-6723
SELECT ALL col1 AS col2, 56 / + 64 * + 72 - + col0 AS col1 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

query II rowsort
SELECT DISTINCT 69 AS col0, 9 FROM tab2
----
69
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6725
SELECT + col2 DIV + - 79 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6725
SELECT + col2 / + - 79 AS col2 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT DISTINCT - MIN( ALL - + col0 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-6726
SELECT DISTINCT - MIN ( ALL - + col0 ) AS col2 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT + SUM( ALL + + 12 ) AS col0 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-6727
SELECT + SUM ( ALL + + 12 ) AS col0 FROM tab0
----
36

query I rowsort
SELECT + col0 * - 73 FROM tab2
----
-3358
-4672
-5475

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT COUNT( * ) * - - SUM( DISTINCT col0 ) AS col1 FROM tab0
----
597

skipif mysql # not compatible
query I rowsort label-6730
SELECT COUNT ( * ) * - - SUM ( DISTINCT col0 ) AS col1 FROM tab0
----
597

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

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

query I rowsort
SELECT ALL - col2 * - 98 FROM tab2
----
2254
3920
5684

query I rowsort
SELECT DISTINCT 69 * + + 67 * - + col1 AS col2 FROM tab2
----
-235773
-309741
-355971

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6734
SELECT ALL col1 * col1 + + ( CAST( - col1 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
182
20
2162

skipif mysql # not compatible
query I rowsort label-6734
SELECT ALL col1 * col1 + + ( CAST ( - col1 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
182
20
2162

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

skipif mysql # not compatible
query I rowsort label-6735
SELECT - + 71 / + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
23

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 / + col1 IN ( col0, 91 + + col0 / + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * - 3 AS col0 FROM tab1 AS cor0
----
-141
-15
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT ALL - MIN( + col1 ) col0 FROM tab2 cor0
----
-51

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

query I rowsort
SELECT DISTINCT col2 * - - 86 AS col2 FROM tab2 AS cor0
----
1978
3440
4988

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT ALL + + SUM( col1 ) AS col2 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-6741
SELECT ALL + + SUM ( col1 ) AS col2 FROM tab1 cor0
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6742
SELECT + 78 + - - COUNT( * ) DIV - + MIN( ALL 10 ) AS col2 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-6742
SELECT + 78 + - - COUNT ( * ) / - + MIN ( ALL 10 ) AS col2 FROM tab2 AS cor0
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6743
SELECT + COUNT( * ) DIV - MAX( DISTINCT - 63 ) + - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6743
SELECT + COUNT ( * ) / - MAX ( DISTINCT - 63 ) + - COUNT ( * ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6744
SELECT DISTINCT + 46 * - col0 + + - CAST( + - col0 AS SIGNED ) FROM tab1 WHERE + + col1 IS NOT NULL
----
-2295
-3825
-4095

skipif mysql # not compatible
query I rowsort label-6744
SELECT DISTINCT + 46 * - col0 + + - CAST ( + - col0 AS INTEGER ) FROM tab1 WHERE + + col1 IS NOT NULL
----
-2295
-3825
-4095

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6745
SELECT * FROM tab0 WHERE ( ( NOT ( 46 * col1 * + - col2 / + col0 + + 15 + CAST( NULL AS SIGNED ) * 90 BETWEEN NULL AND NULL ) ) )
----

skipif mysql # not compatible
query III rowsort label-6745
SELECT * FROM tab0 WHERE ( ( NOT ( 46 * col1 * + - col2 / + col0 + + 15 + CAST ( NULL AS INTEGER ) * 90 BETWEEN NULL AND NULL ) ) )
----

query II rowsort
SELECT + - col0 AS col2, + col0 * col0 AS col1 FROM tab2 WHERE NULL >= + col1
----

query I rowsort
SELECT DISTINCT - 50 + col1 * + col0 AS col2 FROM tab0
----
1165
1777
47

query I rowsort
SELECT 38 + + 12 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6749
SELECT DISTINCT * FROM tab0 WHERE - - col0 + - col2 + + CAST( NULL AS SIGNED ) >= + + col2
----

skipif mysql # not compatible
query III rowsort label-6749
SELECT DISTINCT * FROM tab0 WHERE - - col0 + - col2 + + CAST ( NULL AS INTEGER ) >= + + col2
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6752
SELECT - col1 + - col1 * col1 DIV - 36 FROM tab1
----
-5
-9
14

skipif mysql # not compatible
query I rowsort label-6752
SELECT - col1 + - col1 * col1 / - 36 FROM tab1
----
-5
-9
14

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

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

query I rowsort
SELECT ALL - - col0 * + + col1 - - 40 + + col0 - - + col0 AS col2 FROM tab0 AS cor0
----
1285
2041
331

query III rowsort
SELECT * FROM tab1 cor0 WHERE 85 * + 54 BETWEEN - + 63 AND + 5 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT DISTINCT SUM( DISTINCT col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-6756
SELECT DISTINCT SUM ( DISTINCT col2 ) FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6757
SELECT + + CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-6757
SELECT + + CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT - - 45 - 33 FROM tab0 AS cor0
----
12
12
12

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

query I rowsort
SELECT DISTINCT 11 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
11

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6762
SELECT DISTINCT CAST( + - col0 AS SIGNED ) + - col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1
----

skipif mysql # not compatible
query I rowsort label-6762
SELECT DISTINCT CAST ( + - col0 AS INTEGER ) + - col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6764
SELECT ALL ( - col0 ) * - 14 - col0 DIV + 91 + + col2 FROM tab0 AS cor0
----
1228
1456
257

skipif mysql # not compatible
query I rowsort label-6764
SELECT ALL ( - col0 ) * - 14 - col0 / + 91 + + col2 FROM tab0 AS cor0
----
1228
1456
257

onlyif mysql # aggregate syntax: 
query II rowsort label-6765
SELECT ALL - COUNT( * ) AS col1, - MAX( DISTINCT col2 ) FROM tab2 AS cor0 WHERE - ( + col1 ) IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6765
SELECT ALL - COUNT ( * ) AS col1, - MAX ( DISTINCT col2 ) FROM tab2 AS cor0 WHERE - ( + col1 ) IS NULL
----
0
NULL

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

query I rowsort
SELECT + col1 * 80 FROM tab2 cor0
----
4080
5360
6160

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

skipif mysql # not compatible
query I rowsort label-6768
SELECT + COUNT ( * ) / - 35 AS col2 FROM tab0
----
0

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT + 63 * + - COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6773
SELECT + 63 * + - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6774
SELECT ALL + CAST( - ( - 46 ) AS SIGNED ) * + col1 FROM tab1 AS cor0
----
2162
230
644

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL + CAST ( - ( - 46 ) AS INTEGER ) * + col1 FROM tab1 AS cor0
----
2162
230
644

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6776
SELECT ALL 80 * + - CAST( - MIN( DISTINCT + col2 ) AS SIGNED ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6776
SELECT ALL 80 * + - CAST ( - MIN ( DISTINCT + col2 ) AS INTEGER ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT 8 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6778
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE - CAST( + - 23 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-6778
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE - CAST ( + - 23 AS INTEGER ) IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT ALL + SUM( - 53 ) AS col2 FROM tab1 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-6781
SELECT ALL + SUM ( - 53 ) AS col2 FROM tab1 AS cor0
----
-159

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

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

query I rowsort
SELECT DISTINCT + col2 + + col1 + - col1 AS col0 FROM tab2
----
23
40
58

onlyif mysql # DIV for integer division: 
query II rowsort label-6784
SELECT col1 - + 20 DIV col1, col2 col0 FROM tab0
----
-19
99
21
10
81
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6784
SELECT col1 - + 20 / col1, col2 col0 FROM tab0
----
-19
99
21
10
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6785
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE col2 NOT BETWEEN ( NULL ) AND ( - col2 + + + 28 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6785
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE col2 NOT BETWEEN ( NULL ) AND ( - col2 + + + 28 )
----
NULL
NULL
NULL

query I rowsort
SELECT - - 57 * + 3 + - 40 - - ( col2 ) FROM tab0 AS cor0
----
141
178
230

onlyif mysql # DIV for integer division: 
query II rowsort label-6787
SELECT - col2 AS col1, - col2 + 80 DIV - + col1 + col0 FROM tab1 cor0
----
-59
10
-68
22
-96
-50

skipif mysql # not compatible
query II rowsort label-6787
SELECT - col2 AS col1, - col2 + 80 / - + col1 + col0 FROM tab1 cor0
----
-59
10
-68
22
-96
-50

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT DISTINCT - COUNT( * ) * 8 FROM tab2 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-6789
SELECT DISTINCT - COUNT ( * ) * 8 FROM tab2 cor0
----
-24

query I rowsort
SELECT col1 * - col1 * ( 93 ) * + + col1 FROM tab2
----
-12336543
-27970959
-42457569

query I rowsort
SELECT col1 + - - 53 FROM tab0
----
134
54
74

onlyif mysql # DIV for integer division: 
query I rowsort label-6792
SELECT DISTINCT 97 DIV col0 * - col1 * + col0 * + col1 FROM tab1 AS cor0
----
-201019
-2125
-9996

skipif mysql # not compatible
query I rowsort label-6792
SELECT DISTINCT 97 / col0 * - col1 * + col0 * + col1 FROM tab1 AS cor0
----
-201019
-2125
-9996

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = 23
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE - col0 BETWEEN col1 AND ( - col2 )
----

query II rowsort
SELECT DISTINCT + ( + col2 ) + + + 20, col2 AS col1 FROM tab0
----
119
99
30
10
67
47

query II rowsort
SELECT DISTINCT + + 47 AS col0, + col2 * - 10 AS col1 FROM tab1 AS cor0
----
47
-590
47
-680
47
-960

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 6 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 96 > NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT ALL COUNT( * ) + - + 70 FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-6801
SELECT ALL COUNT ( * ) + - + 70 FROM tab2 AS cor0
----
-67

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

query I rowsort
SELECT ALL - 40 + - 3 AS col0 FROM tab1 AS cor0
----
-43
-43
-43

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6804
SELECT DISTINCT col2 * CAST( - + 93 AS SIGNED ) DIV - - 84 AS col0 FROM tab1
----
-106
-65
-75

skipif mysql # not compatible
query I rowsort label-6804
SELECT DISTINCT col2 * CAST ( - + 93 AS INTEGER ) / - - 84 AS col0 FROM tab1
----
-106
-65
-75

query I rowsort
SELECT ALL - col2 * - - col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6806
SELECT DISTINCT + COUNT( * ) DIV 65 + - + MAX( + - col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT + COUNT ( * ) / 65 + - + MAX ( + - col2 ) FROM tab2
----
23

query I rowsort
SELECT + 60 * + - col1 + - 66 AS col2 FROM tab2
----
-3126
-4086
-4686

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

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

query II rowsort
SELECT col0 + - col1, + col2 AS col0 FROM tab1
----
37
96
44
68
80
59

query II rowsort
SELECT + col0 AS col1, col1 + + col2 FROM tab1
----
51
110
85
64
91
115

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT ALL COUNT( * ) + MIN( col1 ) col1 FROM tab1
----
8

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

query II rowsort
SELECT ALL + + col2 AS col1, col0 + + col0 + + col2 + 22 + - + col1 FROM tab2 AS cor0
----
23
86
40
113
58
163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 * - col0 + - col1 col1 FROM tab1 AS cor0
----
25070
290789
68530

query II rowsort
SELECT col2, + 65 + 93 AS col2 FROM tab1 AS cor0
----
59
158
68
158
96
158

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6816
SELECT COUNT( * ) + - 41, 37 AS col2 FROM tab0 cor0
----
-38
37

skipif mysql # not compatible
query II rowsort label-6816
SELECT COUNT ( * ) + - 41, 37 AS col2 FROM tab0 cor0
----
-38
37

query I rowsort
SELECT DISTINCT - - col0 + col1 FROM tab1 AS cor0 WHERE 60 >= + 45
----
138
65
90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + - + ( - 92 ) >= - + col1 - + + ( - 90 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6819
SELECT ALL - col2 + + CAST( 76 AS SIGNED ) FROM tab0 AS cor0
----
-23
29
66

skipif mysql # not compatible
query I rowsort label-6819
SELECT ALL - col2 + + CAST ( 76 AS INTEGER ) FROM tab0 AS cor0
----
-23
29
66

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6821
SELECT DISTINCT col0 * + col2 + + col2 AS col0, col2 * - + col0 * + - CAST( - - col0 AS SIGNED ) AS col1 FROM tab2
----
1081
48668
2600
163840
4408
326250

skipif mysql # not compatible
query II rowsort label-6821
SELECT DISTINCT col0 * + col2 + + col2 AS col0, col2 * - + col0 * + - CAST ( - - col0 AS INTEGER ) AS col1 FROM tab2
----
1081
48668
2600
163840
4408
326250

query I rowsort
SELECT DISTINCT col2 + 86 FROM tab2
----
109
126
144

query I rowsort
SELECT ALL - col1 * - 12 + - col0 FROM tab1
----
-25
117
473

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6824
SELECT - CAST( - - col0 AS SIGNED ) * - ( - + 35 ) FROM tab0 AS cor0
----
-3045
-3395
-525

skipif mysql # not compatible
query I rowsort label-6824
SELECT - CAST ( - - col0 AS INTEGER ) * - ( - + 35 ) FROM tab0 AS cor0
----
-3045
-3395
-525

query I rowsort
SELECT DISTINCT + 64 FROM tab1 AS cor0 WHERE NOT 67 / - col1 * + 78 / - col1 IS NOT NULL
----

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

query I rowsort
SELECT + col0 * + 41 - - 35 FROM tab1 AS cor0
----
2126
3520
3766

query I rowsort
SELECT - 50 * + 80 FROM tab2 AS cor0
----
-4000
-4000
-4000

query I rowsort
SELECT - + col1 * + + col1 AS col1 FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT - 64 + col1 FROM tab2 AS cor0
----
-13
13
3

query I rowsort
SELECT ALL - 53 * + + col2 FROM tab1 AS cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT ALL COUNT( * ) * - 2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6832
SELECT ALL COUNT ( * ) * - 2 FROM tab1 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-6833
SELECT + 73 DIV - + 67 + + col0 FROM tab0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-6833
SELECT + 73 / - + 67 + + col0 FROM tab0
----
14
86
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2, col2 * + ( + col2 ), - col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 / ( + col0 ) + - + col0 + - col1 <> NULL
----

query I rowsort
SELECT col1 * - 11 AS col1 FROM tab1 AS cor0
----
-154
-517
-55

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - 7 * + col2 / 40 AND + 88
----

query I rowsort
SELECT DISTINCT - col0 * - - col2 * - col1 FROM tab0 AS cor0
----
18270
57105
9603

query I rowsort
SELECT DISTINCT + - 93 + 54 AS col0 FROM tab2 WHERE NOT ( NOT ( + + col1 ) NOT IN ( + - col0, 37 ) )
----
-39

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 * + 36 + + 67 / 29 / col0 BETWEEN - col2 AND + col0 * - - col2 * col0 - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6842
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6842
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6843
SELECT ALL 53 * COUNT( * ) DIV - + COUNT( * ) FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-6843
SELECT ALL 53 * COUNT ( * ) / - + COUNT ( * ) FROM tab1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT DISTINCT + + COUNT( * ) + ( - 90 ) FROM tab1, tab0 AS cor0 WHERE NULL >= NULL
----
-90

skipif mysql # not compatible
query I rowsort label-6844
SELECT DISTINCT + + COUNT ( * ) + ( - 90 ) FROM tab1, tab0 AS cor0 WHERE NULL >= NULL
----
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab1 cor0 WHERE 2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT ALL 38 * - MIN( ALL + col2 ) FROM tab0
----
-380

skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL 38 * - MIN ( ALL + col2 ) FROM tab0
----
-380

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

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

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

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

query II rowsort
SELECT + col0 AS col1, - ( col2 ) + - col0 * + - 54 AS col0 FROM tab1 AS cor0
----
51
2658
85
4531
91
4846

query II rowsort
SELECT ALL + col2, - ( + ( - col1 ) ) * ( + col2 ) + col0 AS col0 FROM tab1 AS cor0
----
59
380
68
3287
96
1395

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT ALL + MIN( + col2 ) FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL + MIN ( + col2 ) FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----
NULL

query II rowsort
SELECT DISTINCT col2 AS col0, 15 FROM tab2 cor0
----
23
15
40
15
58
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT ALL MAX( - 49 ) FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-6855
SELECT ALL MAX ( - 49 ) FROM tab2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT DISTINCT COUNT( + - col1 ) + + 4 AS col1 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-6856
SELECT DISTINCT COUNT ( + - col1 ) + + 4 AS col1 FROM tab0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT - MAX( - - 18 ) AS col2 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-6857
SELECT - MAX ( - - 18 ) AS col2 FROM tab0
----
-18

query I rowsort
SELECT DISTINCT + 25 + - col1 + + - col2 FROM tab0
----
-103
-6
-75

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( + col2 ) col1, col1 * col1 FROM tab0
----
-10
441
-47
6561
-99
1

query I rowsort
SELECT + col1 * col2 + - 5 FROM tab0 AS cor0
----
205
3802
94

query I rowsort
SELECT ALL - 49 * + col1 + + 95 AS col0 FROM tab0 AS cor0
----
-3874
-934
46

onlyif mysql # aggregate syntax: 
query II rowsort label-6863
SELECT + COUNT( * ) AS col0, - COUNT( ALL col2 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3
-3

skipif mysql # not compatible
query II rowsort label-6863
SELECT + COUNT ( * ) AS col0, - COUNT ( ALL col2 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3
-3

query I rowsort
SELECT DISTINCT - col0 + - col2 + - + col1 FROM tab1 AS cor0
----
-149
-161
-206

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

skipif mysql # not compatible
query I rowsort label-6865
SELECT ALL MIN ( ALL col2 ) FROM tab0 cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6866
SELECT DISTINCT - col2 * + + CAST( - ( + - col0 ) AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-6866
SELECT DISTINCT - col2 * + + CAST ( - ( + - col0 ) AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1058
-2560
-4350

query I rowsort
SELECT + col2 + - col0 + + - 74 + - col1 + - col0 AS col0 FROM tab0 cor0
----
-138
-170
-259

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6868
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 0 * CAST( col1 AS SIGNED ) * 76 * ( col0 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6868
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 0 * CAST ( col1 AS INTEGER ) * 76 * ( col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 8 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 22 + + - 63 AND ( - col0 * - - 36 / + 82 + - 83 * + 22 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6871
SELECT + CAST( NULL AS SIGNED ) * - + col2 * ( + col2 ) AS col2, 1 AS col2 FROM tab0
----
NULL
1
NULL
1
NULL
1

skipif mysql # not compatible
query II rowsort label-6871
SELECT + CAST ( NULL AS INTEGER ) * - + col2 * ( + col2 ) AS col2, 1 AS col2 FROM tab0
----
NULL
1
NULL
1
NULL
1

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

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

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

query II rowsort
SELECT DISTINCT col2 * + col2 AS col2, col1 * + 69 FROM tab1
----
3481
345
4624
3243
9216
966

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6876
SELECT ALL - - col2 DIV + 19 AS col2, col2 AS col0 FROM tab0 AS cor0
----
0
10
2
47
5
99

skipif mysql # not compatible
query II rowsort label-6876
SELECT ALL - - col2 / + 19 AS col2, col2 AS col0 FROM tab0 AS cor0
----
0
10
2
47
5
99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6878
SELECT 80 * + - CAST( - - 98 AS SIGNED ) AS col1 FROM tab0
----
-7840
-7840
-7840

skipif mysql # not compatible
query I rowsort label-6878
SELECT 80 * + - CAST ( - - 98 AS INTEGER ) AS col1 FROM tab0
----
-7840
-7840
-7840

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6880
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6880
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT ALL - ( 39 ) * - col1 AS col1 FROM tab0 cor0
----
3159
39
819

query I rowsort
SELECT DISTINCT col2 * - col1 + + + col2 + - col0 FROM tab0 AS cor0
----
-287
-3775
-97

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6884
SELECT DISTINCT - + 39 DIV - - 90 * - 60 - + - 96 AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-6884
SELECT DISTINCT - + 39 / - - 90 * - 60 - + - 96 AS col1 FROM tab1 AS cor0
----
96

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

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

query I rowsort
SELECT 39 + + - ( - col1 ) * col0 FROM tab1 AS cor0
----
4316
464
753

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + + col0 + ( + - 68 ) col0, col0 FROM tab1
----
-3
51
22
85
70
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6889
SELECT DISTINCT col2 * + CAST( - col2 AS SIGNED ) + - col1 + + col2 AS col0 FROM tab1
----
-3427
-4603
-9134

skipif mysql # not compatible
query I rowsort label-6889
SELECT DISTINCT col2 * + CAST ( - col2 AS INTEGER ) + - col1 + + col2 AS col0 FROM tab1
----
-3427
-4603
-9134

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT DISTINCT + SUM( DISTINCT - + col0 ) AS col2 FROM tab1 AS cor0 WHERE 28 * + col0 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6890
SELECT DISTINCT + SUM ( DISTINCT - + col0 ) AS col2 FROM tab1 AS cor0 WHERE 28 * + col0 <> NULL
----
NULL

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

query I rowsort
SELECT ALL + 65 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT ALL - 47 - col2 FROM tab1
----
-106
-115
-143

query I rowsort
SELECT - 15 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, + ( - col2 ) * - ( 77 ) FROM tab1
----
51
7392
85
4543
91
5236

query I rowsort
SELECT ALL + 27 * - col2 AS col1 FROM tab0 AS cor0
----
-1269
-2673
-270

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

skipif mysql # not compatible
query I rowsort label-6899
SELECT - MIN ( + 57 ) FROM tab2 AS cor0
----
-57

query I rowsort
SELECT - 82 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT + 71 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6902
SELECT ALL 5 * - - CAST( NULL AS DECIMAL ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6902
SELECT ALL 5 * - - CAST ( NULL AS REAL ) col0 FROM tab1
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 + - + col0 col0 FROM tab2
----
-109
-127
-138

query I rowsort
SELECT ALL ( - ( col2 ) ) + ( + - col1 ) FROM tab2
----
-117
-125
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6906
SELECT ALL 10 DIV - MIN( ALL - + col0 ) - + SUM( DISTINCT + col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL 10 / - MIN ( ALL - + col0 ) - + SUM ( DISTINCT + col2 ) FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT 77 + + COUNT( * ) FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-6907
SELECT 77 + + COUNT ( * ) FROM tab1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT - COUNT( * ) + + 65 AS col0 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-6908
SELECT - COUNT ( * ) + + 65 AS col0 FROM tab1
----
62

query I rowsort
SELECT 84 + - col2 FROM tab2
----
26
44
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT ALL 62 + + COUNT( * ) FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-6910
SELECT ALL 62 + + COUNT ( * ) FROM tab1
----
65

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 81 col0, + col1 * - col1 * + col1 FROM tab0 AS cor0
----
-81
-1
-81
-531441
-81
-9261

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT MAX( - col0 ) * 52 AS col0 FROM tab2 AS cor0
----
-2392

skipif mysql # not compatible
query I rowsort label-6913
SELECT MAX ( - col0 ) * 52 AS col0 FROM tab2 AS cor0
----
-2392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6914
SELECT + CAST( + - CAST( + 41 AS SIGNED ) AS SIGNED ) - + 45 * - col0 FROM tab2
----
2029
2839
3334

skipif mysql # not compatible
query I rowsort label-6914
SELECT + CAST ( + - CAST ( + 41 AS INTEGER ) AS INTEGER ) - + 45 * - col0 FROM tab2
----
2029
2839
3334

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

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

query II rowsort
SELECT DISTINCT + ( + col1 ), - col2 FROM tab1
----
14
-96
47
-68
5
-59

query I rowsort
SELECT ALL 80 + col2 + col1 * + - col2 * - ( + col2 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6920
SELECT ALL CAST ( - 66 AS INTEGER ) col1 FROM tab2 AS cor0
----
-66
-66
-66

query I rowsort
SELECT DISTINCT - - 29 FROM tab1 cor0
----
29

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

query II rowsort
SELECT DISTINCT + 67 AS col0, - col2 FROM tab2 WHERE NOT ( NOT NULL = col2 )
----

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

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

query I rowsort
SELECT 78 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT 1 * + MIN( - col2 ) FROM tab1 WHERE NOT + 66 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6926
SELECT 1 * + MIN ( - col2 ) FROM tab1 WHERE NOT + 66 <> NULL
----
NULL

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

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

query II rowsort
SELECT ALL + 87 * + 33 * - 17 AS col2, - col1 AS col2 FROM tab0 AS cor0
----
-48807
-1
-48807
-21
-48807
-81

query I rowsort
SELECT DISTINCT ( 26 ) + col1 * + - col0 FROM tab2 AS cor0
----
-2320
-4902
-4999

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT ALL + 93 * - - COUNT( * ) + 40 + + 61 FROM tab1 AS cor0
----
380

skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL + 93 * - - COUNT ( * ) + 40 + + 61 FROM tab1 AS cor0
----
380

query III rowsort
SELECT * FROM tab0 WHERE 71 BETWEEN + + col1 / col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6932
SELECT ALL 60 + + 36 DIV - col1 AS col0 FROM tab0
----
24
59
60

skipif mysql # not compatible
query I rowsort label-6932
SELECT ALL 60 + + 36 / - col1 AS col0 FROM tab0
----
24
59
60

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

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

skipif mysql # not compatible
query I rowsort label-6934
SELECT DISTINCT 87 - + - COUNT ( * ) FROM tab2
----
90

query I rowsort
SELECT ALL 26 + + col0 AS col2 FROM tab2
----
101
72
90

query II rowsort
SELECT ( + 81 ) - + 71 + col0 AS col0, 11 FROM tab2
----
56
11
74
11
85
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT ALL + - COUNT( * ) * - 67 + + 16 FROM tab2 AS cor0
----
217

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL + - COUNT ( * ) * - 67 + + 16 FROM tab2 AS cor0
----
217

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT - 42 + + MAX( - col0 ) FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-6938
SELECT - 42 + + MAX ( - col0 ) FROM tab0 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT + 46 + - 87 + COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-6939
SELECT + 46 + - 87 + COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT + MAX( 48 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
48

skipif mysql # not compatible
query I rowsort label-6940
SELECT + MAX ( 48 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 76 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
76

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6943
SELECT + CAST( + MAX( DISTINCT col1 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-6943
SELECT + CAST ( + MAX ( DISTINCT col1 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
77

query II rowsort
SELECT + 87 AS col1, col0 * - col1 FROM tab0 AS cor0
----
87
-1215
87
-1827
87
-97

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 * col1 NOT IN ( 83 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 74 * col2 <= - col2 / - col0 - + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6948
SELECT COUNT( DISTINCT col0 ) * - 49 FROM tab1
----
-147

skipif mysql # not compatible
query I rowsort label-6948
SELECT COUNT ( DISTINCT col0 ) * - 49 FROM tab1
----
-147

onlyif mysql # DIV for integer division: 
query I rowsort label-6949
SELECT - 50 * - col0 DIV + col0 FROM tab1
----
50
50
50

skipif mysql # not compatible
query I rowsort label-6949
SELECT - 50 * - col0 / + col0 FROM tab1
----
50
50
50

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

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

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

query I rowsort
SELECT ALL - + col0 + + 63 AS col2 FROM tab2 cor0
----
-1
-12
17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT COUNT( * ) * - 72 * - COUNT( ALL - + col0 ) AS col0 FROM tab2
----
648

skipif mysql # not compatible
query I rowsort label-6954
SELECT COUNT ( * ) * - 72 * - COUNT ( ALL - + col0 ) AS col0 FROM tab2
----
648

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT - MAX( DISTINCT col0 ) * 47 FROM tab1 AS cor0
----
-4277

skipif mysql # not compatible
query I rowsort label-6955
SELECT - MAX ( DISTINCT col0 ) * 47 FROM tab1 AS cor0
----
-4277

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6958
SELECT col1 FROM tab0 AS cor0 WHERE NOT NULL <> + col2 AND NOT - CAST( + ( - 98 ) AS SIGNED ) >= col2
----

skipif mysql # not compatible
query I rowsort label-6958
SELECT col1 FROM tab0 AS cor0 WHERE NOT NULL <> + col2 AND NOT - CAST ( + ( - 98 ) AS INTEGER ) >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT - 79 + COUNT( * ) FROM tab1 cor0
----
-76

skipif mysql # not compatible
query I rowsort label-6959
SELECT - 79 + COUNT ( * ) FROM tab1 cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT - 85 + + - COUNT( * ) + + 32 * 38 FROM tab2
----
1128

skipif mysql # not compatible
query I rowsort label-6960
SELECT - 85 + + - COUNT ( * ) + + 32 * 38 FROM tab2
----
1128

query I rowsort
SELECT ALL col1 * + - 90 FROM tab0
----
-1890
-7290
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 5 * col2 + - 53 col1 FROM tab1
----
-24533
-25128
-30993

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6963
SELECT * FROM tab2 WHERE - 94 * + col1 IN ( - col2 * + - CAST( NULL AS SIGNED ) + + col1 + - + col2, - ( + col1 ), - col0 + - 44 + + col0 * + col2 )
----

skipif mysql # not compatible
query III rowsort label-6963
SELECT * FROM tab2 WHERE - 94 * + col1 IN ( - col2 * + - CAST ( NULL AS INTEGER ) + + col1 + - + col2, - ( + col1 ), - col0 + - 44 + + col0 * + col2 )
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE + 56 IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6966
SELECT ALL + + col1 DIV 91 * + 80 + - 42 FROM tab2 AS cor0
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-6966
SELECT ALL + + col1 / 91 * + 80 + - 42 FROM tab2 AS cor0
----
-42
-42
-42

query I rowsort
SELECT col0 * - + 44 - + col0 AS col2 FROM tab1 AS cor0
----
-2295
-3825
-4095

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6968
SELECT + CAST( + ( MAX( ALL 69 ) ) AS DECIMAL ) FROM tab1 WHERE NOT 8 * + 92 + + 89 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6968
SELECT + CAST ( + ( MAX ( ALL 69 ) ) AS REAL ) FROM tab1 WHERE NOT 8 * + 92 + + 89 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6969
SELECT DISTINCT - 24 DIV - 13 + 80 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6969
SELECT DISTINCT - 24 / - 13 + 80 FROM tab0
----
81

query I rowsort
SELECT + ( - 25 ) AS col0 FROM tab1
----
-25
-25
-25

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

query III rowsort
SELECT * FROM tab0 WHERE - 9 = col2 * - col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT ALL + MIN( col0 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-6974
SELECT ALL + MIN ( col0 ) AS col2 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN ( col0 / - col1 ) AND ( - 71 * col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6975
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN ( col0 / - col1 ) AND ( - 71 * col1 )
----
0

query I rowsort
SELECT 65 AS col0 FROM tab1 WHERE + col1 / - col0 - col1 NOT BETWEEN - col2 AND ( + 5 )
----

query I rowsort
SELECT 35 + - col1 FROM tab2
----
-16
-32
-42

query III rowsort
SELECT * FROM tab1 WHERE NOT 97 NOT IN ( - 67 )
----

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( + col0 / - 35 ) AND ( + col2 )
----

query I rowsort
SELECT DISTINCT ( + 67 ) AS col1 FROM tab0
----
67

query I rowsort
SELECT ALL col2 / col1 + 52 FROM tab0 WHERE NOT + ( + col2 ) + col1 NOT IN ( 67 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT MAX( DISTINCT + col1 ) - 33 AS col2 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-6982
SELECT MAX ( DISTINCT + col1 ) - 33 AS col2 FROM tab1
----
14

query I rowsort
SELECT DISTINCT - col2 * 5 AS col2 FROM tab2 WHERE col2 IS NOT NULL
----
-115
-200
-290

query I rowsort
SELECT col2 - + 7 * + 63 FROM tab1
----
-345
-373
-382

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE NULL = ( + col1 )
----

query I rowsort
SELECT ALL col2 * col1 FROM tab2 WHERE 13 BETWEEN - 77 AND ( + col1 )
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT COUNT( * ) * 31 + + 96 FROM tab0
----
189

skipif mysql # not compatible
query I rowsort label-6987
SELECT COUNT ( * ) * 31 + + 96 FROM tab0
----
189

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

skipif mysql # not compatible
query I rowsort label-6988
SELECT DISTINCT MAX ( ALL - 29 ) AS col0 FROM tab1
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 * + ( 42 * col2 ) + - col0 col1 FROM tab2
----
125936
182625
72404

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT ALL - COUNT( * ) * + COUNT( - col0 * ( col1 ) ) AS col2 FROM tab1 WHERE NOT ( NULL ) >= ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6990
SELECT ALL - COUNT ( * ) * + COUNT ( - col0 * ( col1 ) ) AS col2 FROM tab1 WHERE NOT ( NULL ) >= ( col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6991
SELECT * FROM tab2 AS cor0 WHERE ( 75 - CAST( NULL AS SIGNED ) ) > - 17
----

skipif mysql # not compatible
query III rowsort label-6991
SELECT * FROM tab2 AS cor0 WHERE ( 75 - CAST ( NULL AS INTEGER ) ) > - 17
----

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( 93 / col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT DISTINCT - 91 + COUNT( * ) AS col0 FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-6994
SELECT DISTINCT - 91 + COUNT ( * ) AS col0 FROM tab2
----
-88

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( ( + 33 ) )
----

query I rowsort
SELECT DISTINCT ( col0 ) + - col1 AS col1 FROM tab0
----
-66
66
96

query I rowsort
SELECT ALL 89 + - 8 FROM tab1 AS cor0 WHERE ( - 57 ) < col2
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT DISTINCT + MIN( - col1 ) FROM tab0 cor0 WHERE NOT 14 + col1 * + ( ( 89 ) + - 67 ) BETWEEN col1 AND - col1
----
-81

skipif mysql # not compatible
query I rowsort label-6998
SELECT DISTINCT + MIN ( - col1 ) FROM tab0 cor0 WHERE NOT 14 + col1 * + ( ( 89 ) + - 67 ) BETWEEN col1 AND - col1
----
-81

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 64 < ( - col0 )
----
87
21
10
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7001
SELECT + col0 DIV - 52 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7001
SELECT + col0 / - 52 FROM tab0 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 21 col1 FROM tab0 AS cor0
----
-1701
-21
-441

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7005
SELECT + + col0 DIV 62 AS col0 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7005
SELECT + + col0 / 62 AS col0 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT + ( + ( - col1 ) ) / 74 + 23 FROM tab0 AS cor0 WHERE NULL IN ( + col0 )
----

query I rowsort
SELECT + + 92 FROM tab2 cor0
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT DISTINCT + + 96 + + COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-7008
SELECT DISTINCT + + 96 + + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
105

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7009
SELECT DISTINCT MAX ( - col2 ) col2 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT MAX( ALL col2 ) AS col2 FROM tab0 WHERE NULL > ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7010
SELECT MAX ( ALL col2 ) AS col2 FROM tab0 WHERE NULL > ( col0 )
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + 61 + - col2 IS NULL
----

query I rowsort
SELECT ALL + 86 + + col2 AS col2 FROM tab1
----
145
154
182

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( col1 ) = col2 - + 96
----

query I rowsort
SELECT DISTINCT - 27 * - col0 AS col0 FROM tab0 AS cor0
----
2349
2619
405

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT + MAX( DISTINCT - 75 ) * 14 AS col2 FROM tab0 AS cor0
----
-1050

skipif mysql # not compatible
query I rowsort label-7017
SELECT + MAX ( DISTINCT - 75 ) * 14 AS col2 FROM tab0 AS cor0
----
-1050

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

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

query I rowsort
SELECT - - 69 * + 66 FROM tab1 cor0
----
4554
4554
4554

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 * 42 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
3738

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

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

query I rowsort
SELECT DISTINCT + + 80 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
80

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 44 / + 82 + - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - ( - col0 ) * + col2 * + 9 FROM tab0 AS cor0
----
6345
7830
86427

query I rowsort
SELECT DISTINCT - 73 * ( + + col2 ) * col1 FROM tab0 cor0
----
-15330
-277911
-7227

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 + - + 16 ) <> NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 * + col0 + + 40 ) BETWEEN + 68 / col1 + - 54 AND NULL
----

query I rowsort
SELECT ALL + + col2 + 68 / ( + 89 + - col1 * + col1 ) FROM tab0 WHERE - - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + - 92 AS col0 FROM tab2
----
-17
-28
-46

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

query I rowsort
SELECT ALL 53 * - col2 AS col0 FROM tab1
----
-3127
-3604
-5088

query I rowsort
SELECT DISTINCT 71 * col2 AS col2 FROM tab0
----
3337
7029
710

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = + 59
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7037
SELECT 19 + + - COUNT( * ) * MAX( + + col2 ) + 66 DIV - 79 AS col1 FROM tab1
----
-269

skipif mysql # not compatible
query I rowsort label-7037
SELECT 19 + + - COUNT ( * ) * MAX ( + + col2 ) + 66 / - 79 AS col1 FROM tab1
----
-269

query I rowsort
SELECT DISTINCT + 53 * ( - col1 ) * - 86 AS col2 FROM tab0
----
369198
4558
95718

query I rowsort
SELECT ( col2 ) * - ( + 92 ) + - 19 + + col1 AS col1 FROM tab0
----
-4262
-9126
-918

query I rowsort
SELECT DISTINCT + col2 + - col0 * + col1 + col1 AS col1 FROM tab0
----
-1087
-1796
3

query I rowsort
SELECT DISTINCT - 42 + col0 * 1 FROM tab2 AS cor0 WHERE NOT + 77 IN ( + col2 )
----
22
33
4

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7044
SELECT ALL + 60 DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-7044
SELECT ALL + 60 / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-20

query I rowsort
SELECT DISTINCT col1 + - 47 AS col0 FROM tab2 WHERE NULL IN ( col0 * + 65 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7046
SELECT col0 * - CAST( col1 AS SIGNED ) FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-7046
SELECT col0 * - CAST ( col1 AS INTEGER ) FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT - - col0 * ( - 51 ) - - col1 AS col2 FROM tab2 AS cor0
----
-2295
-3187
-3758

query I rowsort
SELECT col0 * 50 FROM tab2 AS cor0 WHERE NOT col2 + - 39 + - - 59 IS NULL AND col2 + + col1 IS NOT NULL
----
2300
3200
3750

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7050
SELECT col1 + col1 DIV + col2 + - - col0 DIV + col1 AS col2 FROM tab2 AS cor0
----
53
69
78

skipif mysql # not compatible
query I rowsort label-7050
SELECT col1 + col1 / + col2 + - - col0 / + col1 AS col2 FROM tab2 AS cor0
----
53
69
78

onlyif mysql # DIV for integer division: 
query I rowsort label-7051
SELECT ALL + 48 DIV col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
2
48

skipif mysql # not compatible
query I rowsort label-7051
SELECT ALL + 48 / col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
2
48

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 ) * + - 8 <> ( - 63 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT - col1 * 6 * ( - + 94 ) FROM tab0
----
11844
45684
564

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

query I rowsort
SELECT 20 * ( 47 ) AS col2 FROM tab2 WHERE NOT - col2 BETWEEN + - col2 * - ( col2 ) + + col0 * 65 AND col2 + + col2 * + col1
----
940
940
940

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

query I rowsort
SELECT ( + - 24 ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 73 / - col0 * - + ( + 65 ) IN ( + + 81 * - col2 + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7061
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + + col2 * + CAST( 52 AS SIGNED ) >= 57
----

skipif mysql # not compatible
query III rowsort label-7061
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + + col2 * + CAST ( 52 AS INTEGER ) >= 57
----

query I rowsort
SELECT 67 AS col1 FROM tab1 WHERE NOT NULL <> ( - - 43 / + - col1 + col2 + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT ALL - 56 * - col2 FROM tab2 AS cor0
----
1288
2240
3248

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

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

query II rowsort
SELECT - - 37 + col0, col0 FROM tab2 AS cor0
----
101
64
112
75
83
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT + - 82 + + + COUNT( * ) FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-7068
SELECT + - 82 + + + COUNT ( * ) FROM tab0 AS cor0
----
-79

query II rowsort
SELECT ALL - 99, ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-99
-46
-99
-64
-99
-75

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE - + 17 < - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 25 + - col2 + ( + 5 ) FROM tab0
----
-17
-69
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7074
SELECT DISTINCT + col0 * CAST( col0 AS SIGNED ) FROM tab2
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-7074
SELECT DISTINCT + col0 * CAST ( col0 AS INTEGER ) FROM tab2
----
2116
4096
5625

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

skipif mysql # not compatible
query I rowsort label-7075
SELECT + MIN ( - - col1 ) AS col2 FROM tab2
----
51

query I rowsort
SELECT + - col0 * 95 + 66 FROM tab0 AS cor0
----
-1359
-8199
-9149

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7079
SELECT DISTINCT CAST( MAX( DISTINCT + + col1 ) AS SIGNED ) + + 19 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7079
SELECT DISTINCT CAST ( MAX ( DISTINCT + + col1 ) AS INTEGER ) + + 19 FROM tab2 AS cor0
----
96

query I rowsort
SELECT 76 AS col1 FROM tab2 AS cor0 WHERE col2 * + col1 >= ( col1 * + col0 + - 21 + + 66 )
----

query I rowsort
SELECT ALL 67 + - + col1 AS col2 FROM tab1
----
20
53
62

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) > - 98 * + col0 + + col0 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT + COUNT( * ) + + + MAX( - - 24 ) + - 66 * + COUNT( * ) FROM tab1 cor0 WHERE - col1 IN ( - + col0 * + col1 * - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7084
SELECT + COUNT ( * ) + + + MAX ( - - 24 ) + - 66 * + COUNT ( * ) FROM tab1 cor0 WHERE - col1 IN ( - + col0 * + col1 * - col1 )
----
NULL

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

query I rowsort
SELECT DISTINCT + 39 * col0 - - 19 - + + ( + 60 ) * - - col2 * + ( 44 ) AS col0 FROM tab0 AS cor0
----
-123476
-22988
-257558

query I rowsort
SELECT ALL - col2 FROM tab2 cor0 WHERE NOT + 13 > ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-7088
SELECT + MAX ( ALL 4 ) FROM tab1 AS cor0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7089
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( - - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7089
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( - - col1 AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col2 - - 3 AS col0, col1 FROM tab2 AS cor0
----
26
51
43
77
61
67

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

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

query I rowsort
SELECT ALL - col1 * + 12 AS col0 FROM tab1 AS cor0
----
-168
-564
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7093
SELECT DISTINCT - - col2 * CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-7093
SELECT DISTINCT - - col2 * CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7094
SELECT ALL - AVG ( DISTINCT col2 ) AS col0 FROM tab2 WHERE NOT col1 NOT BETWEEN col2 + + 33 - + - 74 + - + 22 * - - ( + CAST( NULL AS SIGNED ) ) + + - col2 AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7094
SELECT ALL - AVG ( DISTINCT col2 ) AS col0 FROM tab2 WHERE NOT col1 NOT BETWEEN col2 + + 33 - + - 74 + - + 22 * - - ( + CAST ( NULL AS INTEGER ) ) + + - col2 AND + col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7095
SELECT - col1 / ( + - col0 ) AS col0 FROM tab0
----
0
0
5

query I rowsort
SELECT DISTINCT col0 * - 78 AS col1 FROM tab0
----
-1170
-6786
-7566

onlyif mysql # DIV for integer division: 
query I rowsort label-7097
SELECT DISTINCT + 90 DIV + 64 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7097
SELECT DISTINCT + 90 / + 64 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0, - col2 * + col1 col1 FROM tab1 AS cor0
----
51
-1344
85
-295
91
-3196

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT ALL + ( - SUM( DISTINCT + col0 ) ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL + ( - SUM ( DISTINCT + col0 ) ) AS col2 FROM tab1 AS cor0
----
-227

query II rowsort
SELECT + col2, - 31 FROM tab1 WHERE NOT NULL NOT IN ( + col0 * - col0, + 87 )
----

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7108
SELECT DISTINCT - - CAST ( + ( COUNT ( * ) ) AS INTEGER ) + + 18 AS col1 FROM tab0 AS cor0
----
21

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

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

skipif mysql # not compatible
query I rowsort label-7110
SELECT - CAST ( NULL AS INTEGER ) * + 69 * col0 / col0 * col0 * + col2 FROM tab2 WHERE 12 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col1 + - ( - col0 ) + + ( col0 ) AS col1 FROM tab1
----
116
175
229

onlyif mysql # DIV for integer division: 
query I rowsort label-7112
SELECT DISTINCT col0 DIV + + col0 + col2 AS col2 FROM tab1
----
60
69
97

skipif mysql # not compatible
query I rowsort label-7112
SELECT DISTINCT col0 / + + col0 + col2 AS col2 FROM tab1
----
60
69
97

query I rowsort
SELECT col2 * - 11 * + + col1 + - col2 FROM tab1
----
-14880
-3304
-35224

query I rowsort
SELECT DISTINCT col1 / - ( + 85 ) AS col1 FROM tab2 WHERE NOT NULL <= ( + - col2 )
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - 86, + col2, - - col1 )
----

query II rowsort
SELECT col1 + 32, ( + col1 ) FROM tab0
----
113
81
33
1
53
21

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7119
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) > + CAST( NULL AS SIGNED ) + + 41 - - - col2 * + col0
----

skipif mysql # not compatible
query III rowsort label-7119
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) > + CAST ( NULL AS INTEGER ) + + 41 - - - col2 * + col0
----

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 64 + col0 >= ( - - col2 / - 76 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT ALL - 80 + - - COUNT( * ) col1 FROM tab1
----
-77

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

query II rowsort
SELECT DISTINCT + ( - col2 ) - - 6 AS col1, col2 FROM tab1 AS cor0
----
-53
59
-62
68
-90
96

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL + + 14 / - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * + 88 + - - col1 AS col0 FROM tab2 AS cor0
----
-3997
-5555
-6533

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7132
SELECT ALL 85 DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7132
SELECT ALL 85 / - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT col1 * - col0 * 42 FROM tab0
----
-4074
-51030
-76734

query I rowsort
SELECT 10 * - ( - 30 ) AS col0 FROM tab2
----
300
300
300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 * - col1 + + col1 col0 FROM tab0 WHERE NOT ( - ( col2 ) ) IS NULL
----
-2349
-29
-609

query I rowsort
SELECT - 54 FROM tab2 WHERE NOT 4 IS NOT NULL
----

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT DISTINCT + + MAX( DISTINCT + 90 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
90

skipif mysql # not compatible
query I rowsort label-7140
SELECT DISTINCT + + MAX ( DISTINCT + 90 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT ALL + COUNT( * ) * - - COUNT( * ) + - COUNT( * ) + - + 20 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
52

skipif mysql # not compatible
query I rowsort label-7141
SELECT ALL + COUNT ( * ) * - - COUNT ( * ) + - COUNT ( * ) + - + 20 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
52

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

query I rowsort
SELECT + col1 + - - col2 AS col0 FROM tab1 cor0
----
110
115
64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 90 + 80 NOT IN ( col0, - col2 / + - 54 * - col1, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ( col2 ) + - col1 * - col0 * - - col2 AS col1, + 71 FROM tab0 AS cor0
----
18280
71
57152
71
9702
71

query I rowsort
SELECT - 67 + + + col1 FROM tab2 AS cor0
----
-16
0
10

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

query I rowsort
SELECT - + 43 + 83 FROM tab2 AS cor0
----
40
40
40

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT ALL SUM( ALL 37 ) AS col2 FROM tab1 WHERE NOT + + 71 IS NULL
----
111

skipif mysql # not compatible
query I rowsort label-7151
SELECT ALL SUM ( ALL 37 ) AS col2 FROM tab1 WHERE NOT + + 71 IS NULL
----
111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + + ( + + 2 ) col0 FROM tab0
----
101
12
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, + col2 * - col1 + col2 FROM tab2
----
51
-1150
67
-3828
77
-3040

query II rowsort
SELECT col2, col2 * + col1 AS col1 FROM tab0
----
10
210
47
3807
99
99

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

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

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

query I rowsort
SELECT - + col0 - - 92 FROM tab1 cor0
----
1
41
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7158
SELECT ( + - CAST( col0 AS SIGNED ) ) + + col1 * - - col2 AS col0 FROM tab0 AS cor0
----
123
2
3792

skipif mysql # not compatible
query I rowsort label-7158
SELECT ( + - CAST ( col0 AS INTEGER ) ) + + col1 * - - col2 AS col0 FROM tab0 AS cor0
----
123
2
3792

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

query I rowsort
SELECT + ( - 70 ) + - + col1 AS col0 FROM tab0 AS cor0
----
-151
-71
-91

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

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

query II rowsort
SELECT ALL - col1 * 49, + col2 AS col1 FROM tab1
----
-2303
68
-245
59
-686
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7163
SELECT DISTINCT col2 - - - 0 AS col2 FROM tab2 WHERE NOT - + col0 / 58 * - col2 + - col1 + + - 66 = - - col0 / + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7163
SELECT DISTINCT col2 - - - 0 AS col2 FROM tab2 WHERE NOT - + col0 / 58 * - col2 + - col1 + + - 66 = - - col0 / + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 14 * + + col2 * - 80 FROM tab1
----
-107520
-66080
-76160

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT DISTINCT - SUM( + col2 ) * ( + SUM( DISTINCT + 13 ) ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col1 * - col0 / + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7165
SELECT DISTINCT - SUM ( + col2 ) * ( + SUM ( DISTINCT + 13 ) ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col1 * - col0 / + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT ALL - - 21 * + 65 + - COUNT( DISTINCT + 87 ) FROM tab0 AS cor0
----
1364

skipif mysql # not compatible
query I rowsort label-7166
SELECT ALL - - 21 * + 65 + - COUNT ( DISTINCT + 87 ) FROM tab0 AS cor0
----
1364

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7168
SELECT ALL - COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1, - 39 AS col1 FROM tab2 AS cor0
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-7168
SELECT ALL - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1, - 39 AS col1 FROM tab2 AS cor0
----
NULL
-39

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

query I rowsort
SELECT DISTINCT + + col1 * - 50 FROM tab1 AS cor0
----
-2350
-250
-700

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7171
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + + col0 / + - 44 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7171
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + + col0 / + - 44 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7172
SELECT ALL col0 DIV - col2, 5 AS col2 FROM tab0 cor0
----
-8
5
0
5
0
5

skipif mysql # not compatible
query II rowsort label-7172
SELECT ALL col0 / - col2, 5 AS col2 FROM tab0 cor0
----
-8
5
0
5
0
5

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7174
SELECT ALL - - CAST( NULL AS SIGNED ) * 0 - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7174
SELECT ALL - - CAST ( NULL AS INTEGER ) * 0 - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT col2 * + ( + col2 ) AS col0 FROM tab2
----
1600
3364
529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7177
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - SUM( ALL + ( 28 ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7177
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - SUM ( ALL + ( 28 ) ) AS col0 FROM tab1
----
NULL

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

query II rowsort
SELECT DISTINCT - - 37 AS col0, - col1 + + + col0 + - 43 + - 95 + 57 + - col2 * - col1 * + col0 FROM tab0 AS cor0
----
37
18255
37
56958
37
9618

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 NOT IN ( 98 - 25 * + col2 + - + col0, - 80 * + + col1 )
----

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

query I rowsort
SELECT DISTINCT - 60 * - + col1 FROM tab2 AS cor0
----
3060
4020
4620

query I rowsort
SELECT ALL + 51 + + - 78 FROM tab0 AS cor0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT + 27 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
27

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

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

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

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE ( - ( 78 ) + - 21 IS NOT NULL )
----
59
68
96

query I rowsort
SELECT - 44 + + col2 FROM tab1 AS cor0
----
15
24
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7190
SELECT ALL - col1 * col0 + + CAST( NULL AS SIGNED ) + 99 + col0 AS col2, CAST( - col1 AS SIGNED ) * - col0 AS col0 FROM tab1 cor0
----
NULL
425
NULL
4277
NULL
714

skipif mysql # not compatible
query II rowsort label-7190
SELECT ALL - col1 * col0 + + CAST ( NULL AS INTEGER ) + 99 + col0 AS col2, CAST ( - col1 AS INTEGER ) * - col0 AS col0 FROM tab1 cor0
----
NULL
425
NULL
4277
NULL
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7191
SELECT - col0 * col1 + CAST( - col0 AS SIGNED ) FROM tab2
----
-2392
-4992
-5100

skipif mysql # not compatible
query I rowsort label-7191
SELECT - col0 * col1 + CAST ( - col0 AS INTEGER ) FROM tab2
----
-2392
-4992
-5100

query I rowsort
SELECT + ( - col2 ) * + col0 AS col2 FROM tab0 WHERE col2 / - col0 * - col2 - 52 IS NOT NULL
----
-705
-870
-9603

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

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

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

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

query I rowsort
SELECT 11 + + 76 AS col2 FROM tab0
----
87
87
87

query I rowsort
SELECT + col1 + - - 20 FROM tab1
----
25
34
67

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7198
SELECT DISTINCT + COUNT( * ), COUNT( * ) col0 FROM tab1
----
3
3

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7199
SELECT ALL col0 * col1 * + + CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT ALL ( COUNT( DISTINCT - - 92 ) ) * - COUNT( * ) - - 50 col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7200
SELECT ALL ( COUNT ( DISTINCT - - 92 ) ) * - COUNT ( * ) - - 50 col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7201
SELECT + + 16, CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
16
NULL
16
NULL
16
NULL

skipif mysql # not compatible
query II rowsort label-7201
SELECT + + 16, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
16
NULL
16
NULL
16
NULL

query I rowsort
SELECT - 50 * + col1 FROM tab1 cor0
----
-2350
-250
-700

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

query I rowsort
SELECT ALL + col2 * + ( col2 ) FROM tab1
----
3481
4624
9216

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

query I rowsort
SELECT DISTINCT 43 * - 2 AS col0 FROM tab1
----
-86

query I rowsort
SELECT ALL - col1 * + 71 * col1 FROM tab0
----
-31311
-465831
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT + 97 * MAX( - col2 ) AS col0 FROM tab1
----
-5723

skipif mysql # not compatible
query I rowsort label-7208
SELECT + 97 * MAX ( - col2 ) AS col0 FROM tab1
----
-5723

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT DISTINCT 91 + MAX( + + 62 ) * - ( 89 ) FROM tab0
----
-5427

skipif mysql # not compatible
query I rowsort label-7209
SELECT DISTINCT 91 + MAX ( + + 62 ) * - ( 89 ) FROM tab0
----
-5427

query I rowsort
SELECT ALL col0 + - + col2 + + col1 + - 77 FROM tab1
----
-108
-46
-7

query I rowsort
SELECT ALL - + col0 + + + 99 AS col1 FROM tab1 AS cor0
----
14
48
8

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

query I rowsort
SELECT 26 + - col1 + 63 * - - col2 AS col2 FROM tab1 AS cor0
----
3738
4263
6060

query I rowsort
SELECT 61 + + col0 FROM tab1 AS cor0
----
112
146
152

query I rowsort
SELECT - col1 * col1 * - 50 * - ( col0 ) FROM tab0 AS cor0
----
-1918350
-4850
-4920750

query I rowsort
SELECT + - col2 * - 95 * + ( + col0 ) + + - 34 FROM tab1 AS cor0
----
465086
476391
587826

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT + ( + 80 ) * + + 84 * - - COUNT( * ) - ( + COUNT( * ) ) FROM tab2 cor0
----
20157

skipif mysql # not compatible
query I rowsort label-7217
SELECT + ( + 80 ) * + + 84 * - - COUNT ( * ) - ( + COUNT ( * ) ) FROM tab2 cor0
----
20157

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

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-51
-85
-91

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

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

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

query I rowsort
SELECT ALL - 73 AS col0 FROM tab2 WHERE NOT 79 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + - col1 > + ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7225
SELECT ALL - 27 DIV col0 + - + col1 - - col2 * - 13 AS col1 FROM tab0
----
-1288
-151
-693

skipif mysql # not compatible
query I rowsort label-7225
SELECT ALL - 27 / col0 + - + col1 - - col2 * - 13 AS col1 FROM tab0
----
-1288
-151
-693

onlyif mysql # DIV for integer division: 
query I rowsort label-7226
SELECT DISTINCT - col0 - - col1 DIV + + col2 col2 FROM tab2
----
-44
-63
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7226
SELECT DISTINCT - col0 - - col1 / + + col2 col2 FROM tab2
----
-44
-63
-74

query I rowsort
SELECT - + 94 * col1 FROM tab2 AS cor0
----
-4794
-6298
-7238

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7229
SELECT CAST( NULL AS SIGNED ) * - 68 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7230
SELECT - - 74 DIV - col1 FROM tab1 AS cor0
----
-1
-14
-5

skipif mysql # not compatible
query I rowsort label-7230
SELECT - - 74 / - col1 FROM tab1 AS cor0
----
-1
-14
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7231
SELECT 18 DIV - 84 + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col0, + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7231
SELECT 18 / - 84 + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col0, + col1 )
----
0

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 87 * - + 66 * + - 55 = NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - + 82 col2 FROM tab0
----
-1230
-7134
-7954

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 73 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= - 74
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7239
SELECT + 22 * + COUNT( - CAST( col0 AS SIGNED ) ) AS col0 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-7239
SELECT + 22 * + COUNT ( - CAST ( col0 AS INTEGER ) ) AS col0 FROM tab0
----
66

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

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

query I rowsort
SELECT DISTINCT col1 + + + col2 + - - col2 * - - 21 AS col0 FROM tab2
----
1343
557
957

query II rowsort
SELECT + 88 + - ( - 88 ) * + 2 AS col1, - 6 AS col2 FROM tab0
----
264
-6
264
-6
264
-6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT DISTINCT + - MAX( + 77 ) AS col2 FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-7245
SELECT DISTINCT + - MAX ( + 77 ) AS col2 FROM tab0 AS cor0
----
-77

query II rowsort
SELECT + col0 * + ( - 44 ) * + col1 + - col1 + + 84 AS col2, col2 FROM tab1 AS cor0
----
-18621
59
-188151
68
-31346
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> col2 / - 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT ALL + + ( ( + MIN( DISTINCT - - 5 ) ) ) AS col0 FROM tab2 cor0
----
5

skipif mysql # not compatible
query I rowsort label-7248
SELECT ALL + + ( ( + MIN ( DISTINCT - - 5 ) ) ) AS col0 FROM tab2 cor0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7249
SELECT ALL col0 * - + col2 DIV + col2 AS col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7249
SELECT ALL col0 * - + col2 / + col2 AS col2 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL - 7 + - + col2 FROM tab2 WHERE NOT NULL = NULL
----

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

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

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

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

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

query I rowsort
SELECT - 45 + - - col0 + + col1 + 10 * + + 69 * - 8 * + + col2 AS col0 FROM tab1
----
-325635
-375267
-529900

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE - col1 = - col0 / + - col0
----

query I rowsort
SELECT DISTINCT col1 + - col2 + + + col1 + - 59 AS col2 FROM tab2
----
17
20
55

query I rowsort
SELECT ALL ( - + 68 ) FROM tab0
----
-68
-68
-68

query I rowsort
SELECT ALL + 21 + + 25 FROM tab1
----
46
46
46

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 74 ) col0 FROM tab2
----
74
74
74

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE + 88 * - col1 / - col2 * - 87 * - 66 + + + col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7263
SELECT DISTINCT COUNT( * ) + - COUNT( * ) DIV - 99 AS col1 FROM tab1 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7263
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) / - 99 AS col1 FROM tab1 WHERE col2 IS NOT NULL
----
3

query I rowsort
SELECT ALL - 59 * - + 17 + - col1 + 2 * - - 11 FROM tab1
----
1011
1020
978

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7265
SELECT + CAST( col1 AS SIGNED ) * ( + 87 ) AS col0 FROM tab1 AS cor0
----
1218
4089
435

skipif mysql # not compatible
query I rowsort label-7265
SELECT + CAST ( col1 AS INTEGER ) * ( + 87 ) AS col0 FROM tab1 AS cor0
----
1218
4089
435

onlyif mysql # DIV for integer division: 
query II rowsort label-7266
SELECT DISTINCT - col1 DIV - - col0 AS col1, col1 AS col0 FROM tab1
----
0
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-7266
SELECT DISTINCT - col1 / - - col0 AS col1, col1 AS col0 FROM tab1
----
0
14
0
47
0
5

query I rowsort
SELECT 46 * 27 AS col0 FROM tab2
----
1242
1242
1242

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7268
SELECT ALL CAST( col2 AS SIGNED ), 28 + - + col1 AS col0 FROM tab1 AS cor0
----
59
23
68
-19
96
14

skipif mysql # not compatible
query II rowsort label-7268
SELECT ALL CAST ( col2 AS INTEGER ), 28 + - + col1 AS col0 FROM tab1 AS cor0
----
59
23
68
-19
96
14

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL > - 36
----

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

skipif mysql # not compatible
query I rowsort label-7270
SELECT + 96 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
99

query I rowsort
SELECT - + 43 + + 65 AS col0 FROM tab2 AS cor0
----
22
22
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7272
SELECT COUNT( col0 ) AS col0, SUM( CAST( NULL AS SIGNED ) ) * COUNT( * ) + + + ( - 82 ) FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7272
SELECT COUNT ( col0 ) AS col0, SUM ( CAST ( NULL AS INTEGER ) ) * COUNT ( * ) + + + ( - 82 ) FROM tab2 AS cor0
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7273
SELECT * FROM tab2 WHERE NOT + + 89 * col0 + CAST( + col0 AS SIGNED ) * + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7273
SELECT * FROM tab2 WHERE NOT + + 89 * col0 + CAST ( + col0 AS INTEGER ) * + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 + 14 FROM tab1
----
19
28
61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT ALL - - SUM( col1 ) + + ( - SUM( DISTINCT - col0 ) ) AS col1 FROM tab2 AS cor0
----
380

skipif mysql # not compatible
query I rowsort label-7276
SELECT ALL - - SUM ( col1 ) + + ( - SUM ( DISTINCT - col0 ) ) AS col1 FROM tab2 AS cor0
----
380

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT + - MAX( - 79 ) + + COUNT( * ) FROM tab2 cor0
----
82

skipif mysql # not compatible
query I rowsort label-7277
SELECT + - MAX ( - 79 ) + + COUNT ( * ) FROM tab2 cor0
----
82

query III rowsort
SELECT * FROM tab2 WHERE - col1 + - + 76 - + - col0 BETWEEN - col0 AND + + col0
----
75
67
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col1 ) < + 86
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL 56 - - 7 FROM tab0
----
63
63
63

query II rowsort
SELECT ALL + col1 - - col1 AS col2, col0 * - col0 AS col0 FROM tab0
----
162
-225
2
-9409
42
-7569

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + ( + + 50 ) * + ( - - ( + col2 ) ) BETWEEN + 40 * - + col1 * - - col1 / - col1 + + 96 AND NULL
----

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE - 40 / 74 + + + 86 = NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7287
SELECT + col0 DIV - - col1 - + - col1 * - - col1 + col1 AS col0 FROM tab2 AS cor0
----
2652
4557
6006

skipif mysql # not compatible
query I rowsort label-7287
SELECT + col0 / - - col1 - + - col1 * - - col1 + col1 AS col0 FROM tab2 AS cor0
----
2652
4557
6006

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

skipif mysql # not compatible
query I rowsort label-7288
SELECT ALL - - CAST ( NULL AS REAL ) * + 27 * - col2 * - + 12 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT - + COUNT( * ) - - + 69 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7289
SELECT - + COUNT ( * ) - - + 69 FROM tab0 AS cor0
----
66

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

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

query II rowsort
SELECT ALL 57 * col2 AS col2, - col1 * + - 41 + + 81 + + ( + col0 ) AS col2 FROM tab0
----
2679
3417
5643
219
570
1029

query II rowsort
SELECT col0 * col0, - col1 * - col0 * - 80 * - col2 AS col2 FROM tab2 WHERE NOT + - col0 * + - col2 * col2 IS NULL
----
2116
4316640
4096
15769600
5625
23316000

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7294
SELECT ALL + MAX( + col1 ) AS col1, - MAX( col0 ) + - 30 FROM tab1
----
47
-121

skipif mysql # not compatible
query II rowsort label-7294
SELECT ALL + MAX ( + col1 ) AS col1, - MAX ( col0 ) + - 30 FROM tab1
----
47
-121

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

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

query I rowsort
SELECT DISTINCT - - col0 * - + 9 AS col2 FROM tab0 AS cor0
----
-135
-783
-873

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT SUM( + 6 ) FROM tab2 cor0
----
18

skipif mysql # not compatible
query I rowsort label-7298
SELECT SUM ( + 6 ) FROM tab2 cor0
----
18

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

query I rowsort
SELECT 15 * - 1 FROM tab2
----
-15
-15
-15

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

query II rowsort
SELECT 83 AS col2, col1 - 92 AS col1 FROM tab2 AS cor0
----
83
-15
83
-25
83
-41

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

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

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

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

query II rowsort
SELECT ALL 21 AS col2, 52 * - + 75 FROM tab2 cor0
----
21
-3900
21
-3900
21
-3900

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT DISTINCT 48 + + MAX( ALL + - col0 ) FROM tab0 cor0
----
33

skipif mysql # not compatible
query I rowsort label-7307
SELECT DISTINCT 48 + + MAX ( ALL + - col0 ) FROM tab0 cor0
----
33

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

skipif mysql # not compatible
query I rowsort label-7308
SELECT - ( + MIN ( col2 ) ) AS col2 FROM tab0
----
-10

query I rowsort
SELECT ALL ( - 49 ) + + 77 AS col1 FROM tab0
----
28
28
28

query II rowsort
SELECT DISTINCT ( + - col0 ) AS col1, + 4 AS col2 FROM tab1
----
-51
4
-85
4
-91
4

onlyif mysql # DIV for integer division: 
query I rowsort label-7311
SELECT - 19 * col2 * col2 + col2 DIV - col0 - + 23 AS col1 FROM tab0
----
-186243
-1923
-41997

skipif mysql # not compatible
query I rowsort label-7311
SELECT - 19 * col2 * col2 + col2 / - col0 - + 23 AS col1 FROM tab0
----
-186243
-1923
-41997

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT 2 + + COUNT( * ) FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-7312
SELECT 2 + + COUNT ( * ) FROM tab0
----
5

query I rowsort
SELECT + 14 + - 18 AS col2 FROM tab1
----
-4
-4
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7314
SELECT ( - col2 ) + + CAST( col2 AS SIGNED ) * + 73 FROM tab0
----
3384
7128
720

skipif mysql # not compatible
query I rowsort label-7314
SELECT ( - col2 ) + + CAST ( col2 AS INTEGER ) * + 73 FROM tab0
----
3384
7128
720

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 + + 28 col2 FROM tab0 AS cor0
----
-5
-5
-5

query I rowsort
SELECT + 37 + col2 * - ( 20 ) AS col2 FROM tab2 AS cor0
----
-1123
-423
-763

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col1 + - col2 - col2 col0 FROM tab2 AS cor0
----
1127
3000
3770

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

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

query II rowsort
SELECT ALL - col1 - - col1 * col2, + 39 * 68 AS col2 FROM tab1
----
1330
2652
290
2652
3149
2652

query I rowsort
SELECT ALL + col0 * + + col1 - col0 AS col0 FROM tab1 AS cor0
----
340
4186
663

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

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

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

query I rowsort
SELECT + + col0 * ( + col2 ) + + + col2 AS col2 FROM tab0 AS cor0
----
752
880
9702

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT DISTINCT COUNT( * ) - 72 FROM tab0 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-7325
SELECT DISTINCT COUNT ( * ) - 72 FROM tab0 cor0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7326
SELECT + CAST( - 40 AS SIGNED ) * + col0 * + col2 * - - col2 + - col0 AS col0 FROM tab0 cor0
----
-1325415
-348087
-38027977

skipif mysql # not compatible
query I rowsort label-7326
SELECT + CAST ( - 40 AS INTEGER ) * + col0 * + col2 * - - col2 + - col0 AS col0 FROM tab0 cor0
----
-1325415
-348087
-38027977

query I rowsort
SELECT - - 70 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
70
70
70

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7329
SELECT - 38 DIV - + 80 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7329
SELECT - 38 / - + 80 FROM tab0
----
0
0
0

query II rowsort
SELECT 75 * + col0, col2 AS col2 FROM tab2
----
3450
23
4800
40
5625
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7331
SELECT + + CAST( NULL AS SIGNED ) * + col2 + + col1 AS col0 FROM tab0 WHERE NOT + 12 > - 67
----

skipif mysql # not compatible
query I rowsort label-7331
SELECT + + CAST ( NULL AS INTEGER ) * + col2 + + col1 AS col0 FROM tab0 WHERE NOT + 12 > - 67
----

query II rowsort
SELECT + 83 AS col2, - col1 + - - col2 FROM tab0
----
83
-11
83
-34
83
98

query I rowsort
SELECT DISTINCT 42 + + col0 AS col1 FROM tab2 WHERE + col0 IS NOT NULL
----
106
117
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 col0 FROM tab0, tab0 cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT ALL col1 * - col0 * + col0 * + - col0 AS col1 FROM tab2
----
20185088
28265625
4964136

query I rowsort
SELECT DISTINCT col0 * - - col1 AS col1 FROM tab0 AS cor0
----
1215
1827
97

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + - 3 + - 75 + + ( + - col0 ) AS col1 FROM tab0 AS cor0
----
-165
-175
-93

query I rowsort
SELECT col2 * - col1 + + col0 AS col1 FROM tab2 cor0
----
-1127
-3016
-3811

query I rowsort
SELECT ALL - col2 + - ( - col2 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ALL + 69 + + 71, col2 FROM tab2 AS cor0
----
140
23
140
40
140
58

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

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

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE + col2 <> + col1
----
10
47
99

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

query I rowsort
SELECT ALL + col0 + col1 + - + 23 AS col0 FROM tab0
----
73
75
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7351
SELECT ALL - COUNT( * ) AS col2 FROM tab0 WHERE - - col1 NOT IN ( col2, + ( + col0 ), + col1, + CAST( + 59 AS SIGNED ) * - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7351
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 WHERE - - col1 NOT IN ( col2, + ( + col0 ), + col1, + CAST ( + 59 AS INTEGER ) * - col1 )
----
0

query I rowsort
SELECT ALL + col1 + + - col1 * col1 AS col1 FROM tab0
----
-420
-6480
0

query I rowsort
SELECT ( + col1 ) * + col1 + + col0 AS col2 FROM tab0
----
528
6576
98

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7355
SELECT ALL - CAST( NULL AS SIGNED ) + - 16 / 94 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7355
SELECT ALL - CAST ( NULL AS INTEGER ) + - 16 / 94 FROM tab1
----
NULL
NULL
NULL

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

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

skipif mysql # not compatible
query I rowsort label-7357
SELECT ALL - CAST ( - + ( + + SUM ( 15 ) ) AS INTEGER ) FROM tab2 AS cor0
----
45

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

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

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT COUNT( * ) * + - 36 col2 FROM tab0
----
-108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7361
SELECT COUNT ( * ) * + - 36 col2 FROM tab0
----
-108

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7362
SELECT ALL col1 DIV 92 * col1 * CAST( - col0 AS SIGNED ), col0 AS col2 FROM tab0
----
0
15
0
87
0
97

skipif mysql # not compatible
query II rowsort label-7362
SELECT ALL col1 / 92 * col1 * CAST ( - col0 AS INTEGER ), col0 AS col2 FROM tab0
----
0
15
0
87
0
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7363
SELECT + col0 DIV + - col0 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7363
SELECT + col0 / + - col0 AS col1 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 89 * + 37 col1 FROM tab0
----
-3293

onlyif mysql # DIV for integer division: 
query I rowsort label-7365
SELECT + col0 DIV - col1 + + col2 col2 FROM tab0 AS cor0
----
2
47
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7365
SELECT + col0 / - col1 + + col2 col2 FROM tab0 AS cor0
----
2
47
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT ALL + - 20 * - COUNT( * ) col2 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7366
SELECT ALL + - 20 * - COUNT ( * ) col2 FROM tab2 AS cor0
----
60

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE + 97 - + - 85 IS NOT NULL
----
14
47
5

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab0 AS cor0 WHERE NOT 58 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7375
SELECT ALL - 26 DIV SUM( - - 31 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7375
SELECT ALL - 26 / SUM ( - - 31 ) FROM tab1 AS cor0
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, col1 * 70 * + col0 AS col2 FROM tab2 AS cor0
----
-23
164220
-40
344960
-58
351750

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 78 IS NULL AND - col0 + - + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7380
SELECT + 93 DIV + col2 + + col0 * col0 FROM tab0 AS cor0
----
226
7578
9409

skipif mysql # not compatible
query I rowsort label-7380
SELECT + 93 / + col2 + + col0 * col0 FROM tab0 AS cor0
----
226
7578
9409

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7382
SELECT + COUNT( * ) + + - COUNT( * ) DIV - 63 AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7382
SELECT + COUNT ( * ) + + - COUNT ( * ) / - 63 AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT DISTINCT + SUM( - 4 ) + - 14 col2 FROM tab1
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7383
SELECT DISTINCT + SUM ( - 4 ) + - 14 col2 FROM tab1
----
-26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT ALL COUNT( * ) - 69 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-7385
SELECT ALL COUNT ( * ) - 69 FROM tab0
----
-66

query II rowsort
SELECT col2 + - col1 AS col1, + col0 - + 83 FROM tab1
----
21
8
54
2
82
-32

query I rowsort
SELECT ALL + 6 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7388
SELECT - col2 DIV col0 * - + 2 * - col0 - + col0 + + - col1 FROM tab2 AS cor0
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-7388
SELECT - col2 / col0 * - + 2 * - col0 - + col0 + + - col1 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT ( - col2 ) - 96 + col2 AS col2 FROM tab0
----
-96
-96
-96

query III rowsort
SELECT ALL * FROM tab2 WHERE + 12 = NULL
----

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7394
SELECT + CAST( - - SUM( ALL + 21 ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7394
SELECT + CAST ( - - SUM ( ALL + 21 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 * + col0 + + col2 + + - col0 col2 FROM tab0 AS cor0
----
1663
1942
332

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

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

query II rowsort
SELECT DISTINCT - col2 AS col1, col2 + + + 96 FROM tab1 cor0
----
-59
155
-68
164
-96
192

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

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

query II rowsort
SELECT + col0 * - col2 AS col2, col2 FROM tab1
----
-4896
96
-5015
59
-6188
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT - COUNT( + col1 ) * - MIN( ALL + 49 ) FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-7401
SELECT - COUNT ( + col1 ) * - MIN ( ALL + 49 ) FROM tab2
----
147

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

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

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

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

query I rowsort
SELECT ALL ( 72 ) * - col2 FROM tab1 AS cor0
----
-4248
-4896
-6912

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7406
SELECT DISTINCT + col2 * - - 28 + ( - + col1 ) DIV + 72 FROM tab0 cor0
----
1315
2772
280

skipif mysql # not compatible
query I rowsort label-7406
SELECT DISTINCT + col2 * - - 28 + ( - + col1 ) / + 72 FROM tab0 cor0
----
1315
2772
280

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7408
SELECT - 22 + - + col2 DIV ( + 53 ) AS col1 FROM tab1 cor0
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-7408
SELECT - 22 + - + col2 / ( + 53 ) AS col1 FROM tab1 cor0
----
-23
-23
-23

query I rowsort
SELECT ALL + 92 AS col2 FROM tab1 cor0
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT + MAX( DISTINCT + col0 ) + - COUNT( * ) FROM tab2 cor0
----
72

skipif mysql # not compatible
query I rowsort label-7410
SELECT + MAX ( DISTINCT + col0 ) + - COUNT ( * ) FROM tab2 cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT - + SUM( + col0 ) col0 FROM tab1 cor0
----
-227

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7412
SELECT ALL + CAST ( 82 AS INTEGER ) col0 FROM tab0 AS cor0
----
82
82
82

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

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

query II rowsort
SELECT col1, col1 * + - col0 AS col0 FROM tab1 AS cor0
----
14
-714
47
-4277
5
-425

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

skipif mysql # not compatible
query I rowsort label-7415
SELECT SUM ( + 38 ) FROM tab2
----
114

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7416
SELECT - CAST( ( - + col0 ) AS SIGNED ) DIV col2 * - + ( 59 ), col0 AS col1 FROM tab2
----
-118
46
-59
64
-59
75

skipif mysql # not compatible
query II rowsort label-7416
SELECT - CAST ( ( - + col0 ) AS INTEGER ) / col2 * - + ( 59 ), col0 AS col1 FROM tab2
----
-118
46
-59
64
-59
75

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * - + col1 * + col2 + col1, - col1 + + col0 col1 FROM tab0 AS cor0
----
-308286
-66
-4389
66
-98
96

query I rowsort
SELECT DISTINCT col0 * col0 - - - 60 AS col2 FROM tab2 AS cor0
----
2056
4036
5565

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT + 48 + COUNT( DISTINCT col2 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7420
SELECT + 48 + COUNT ( DISTINCT col2 ) FROM tab1 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - + col2 col2 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT ALL - - col2 * + 20 + - col0 AS col0 FROM tab2 AS cor0
----
1085
414
736

query I rowsort
SELECT DISTINCT + + 59 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7424
SELECT DISTINCT col1 DIV 42 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT col1 / 42 FROM tab1
----
0
1

query II rowsort
SELECT - - ( + col2 ), 43 AS col2 FROM tab1 cor0
----
59
43
68
43
96
43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT + COUNT( * ) + 4 col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 * + 29 AND - col1
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7427
SELECT + COUNT ( * ) + 4 col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 * + 29 AND - col1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7428
SELECT - 72 * - + ( - CAST( NULL AS SIGNED ) ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7428
SELECT - 72 * - + ( - CAST ( NULL AS INTEGER ) ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT DISTINCT - SUM( DISTINCT col1 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7429
SELECT DISTINCT - SUM ( DISTINCT col1 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT DISTINCT col0 AS col0, 37 FROM tab2
----
46
37
64
37
75
37

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

skipif mysql # not compatible
query I rowsort label-7431
SELECT - CAST ( NULL AS INTEGER ) * AVG ( ALL col2 ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - 42 * - ( - col1 ) AS col0 FROM tab2
----
-2142
-2814
-3234

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT col1 = - - 63 )
----

query I rowsort
SELECT + 28 * - + col1 + + ( - - col2 ) FROM tab0
----
-2221
-578
71

query II rowsort
SELECT DISTINCT - col2 AS col1, 61 FROM tab2 AS cor0
----
-23
61
-40
61
-58
61

query I rowsort
SELECT - + col1 + + - col0 + col1 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7437
SELECT ALL CAST( NULL AS SIGNED ) + - - 31 * SUM( DISTINCT - 50 ) / - 15 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL CAST ( NULL AS INTEGER ) + - - 31 * SUM ( DISTINCT - 50 ) / - 15 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE 14 BETWEEN col1 AND ( 73 )
----
51
14
96
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT + 64 * + COUNT( * ) col2 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col1 + - col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7439
SELECT + 64 * + COUNT ( * ) col2 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col1 + - col2
----
0

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

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT 59 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-7442
SELECT COUNT ( - 51 ) AS col1 FROM tab2
----
3

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

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE NOT col2 = + 98
----
59
68
96

query I rowsort
SELECT + 99 + - col0 * 78 FROM tab1
----
-3879
-6531
-6999

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

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

query I rowsort
SELECT 61 * + 58 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * - 96 FROM tab1
----
-1344
-4512
-480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7449
SELECT ALL + 81 DIV COUNT( * ) AS col2 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-7449
SELECT ALL + 81 / COUNT ( * ) AS col2 FROM tab0
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + ( col2 ) + col0 * + col2 col2 FROM tab2
----
1587
4160
7714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7451
SELECT 9 DIV COUNT( * ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7451
SELECT 9 / COUNT ( * ) AS col2 FROM tab0
----
3

query I rowsort
SELECT col2 * 23 + + col2 AS col0 FROM tab1
----
1416
1632
2304

query I rowsort
SELECT DISTINCT - 38 AS col1 FROM tab1 WHERE ( - col1 + + col1 ) <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 35 + + 76 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT DISTINCT - 97 - + 88 * COUNT( * ) FROM tab1
----
-361

skipif mysql # not compatible
query I rowsort label-7455
SELECT DISTINCT - 97 - + 88 * COUNT ( * ) FROM tab1
----
-361

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 ) <= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7457
SELECT + CAST( col1 AS SIGNED ) * 10 col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
510
670
770

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7457
SELECT + CAST ( col1 AS INTEGER ) * 10 col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
510
670
770

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

skipif mysql # not compatible
query I rowsort label-7458
SELECT ALL - 38 + COUNT ( * ) FROM tab0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT MIN( + 72 ) * + 66 FROM tab0
----
4752

skipif mysql # not compatible
query I rowsort label-7459
SELECT MIN ( + 72 ) * + 66 FROM tab0
----
4752

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT ALL + MIN( DISTINCT - col2 ) * COUNT( ALL - col0 ) + - 98 AS col2 FROM tab2
----
-272

skipif mysql # not compatible
query I rowsort label-7460
SELECT ALL + MIN ( DISTINCT - col2 ) * COUNT ( ALL - col0 ) + - 98 AS col2 FROM tab2
----
-272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 + col2 col0 FROM tab1
----
51
60
88

query I rowsort
SELECT 51 - + col1 AS col0 FROM tab2
----
-16
-26
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7463
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7463
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7464
SELECT ALL + col1 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * + col0 IN ( 86 / + col0 + + 1 )
----

skipif mysql # not compatible
query I rowsort label-7464
SELECT ALL + col1 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * + col0 IN ( 86 / + col0 + + 1 )
----

query I rowsort
SELECT - ( col2 ) + - col0 * - 86 AS col2 FROM tab2
----
3933
5464
6392

onlyif mysql # DIV for integer division: 
query I rowsort label-7466
SELECT ALL + col2 DIV ( - 28 ) FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-7466
SELECT ALL + col2 / ( - 28 ) FROM tab0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT - MIN( 27 ) FROM tab2 WHERE ( NULL ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7467
SELECT - MIN ( 27 ) FROM tab2 WHERE ( NULL ) <= NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7468
SELECT + col1 DIV + 38 + + col2 AS col1 FROM tab2
----
24
42
59

skipif mysql # not compatible
query I rowsort label-7468
SELECT + col1 / + 38 + + col2 AS col1 FROM tab2
----
24
42
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7469
SELECT DISTINCT col2 DIV + 48 AS col0 FROM tab1
----
1
2

skipif mysql # not compatible
query I rowsort label-7469
SELECT DISTINCT col2 / + 48 AS col0 FROM tab1
----
1
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT ALL - 9 * MAX( ALL - 7 ) AS col0 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL - 9 * MAX ( ALL - 7 ) AS col0 FROM tab2 AS cor0
----
63

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> 69 * 22 + col1 * 34
----

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

query I rowsort
SELECT DISTINCT - col0 * - 44 AS col2 FROM tab1
----
2244
3740
4004

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7475
SELECT ALL + 82 DIV ( - ( - COUNT( * ) ) ) AS col1 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-7475
SELECT ALL + 82 / ( - ( - COUNT ( * ) ) ) AS col1 FROM tab0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-7476
SELECT - col2 DIV 70 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7476
SELECT - col2 / 70 AS col2 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT + 77 FROM tab1 AS cor0 CROSS JOIN tab0
----
77

query I rowsort
SELECT ALL + + col2 * + 74 AS col2 FROM tab1 AS cor0
----
4366
5032
7104

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

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

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

query I rowsort
SELECT 24 FROM tab0 cor0 WHERE NOT col2 BETWEEN - col1 / col0 AND + col1
----
24

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * + col1 > + 68
----

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + col0 = + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT ALL col2 + + ( col2 ) * 17 AS col0 FROM tab1 WHERE ( col1 ) IS NULL
----

query I rowsort
SELECT - 65 * + 83 * col0 AS col2 FROM tab1
----
-275145
-458575
-490945

query I rowsort
SELECT DISTINCT + col2 + 14 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
37
54
72

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

query I rowsort
SELECT ALL 20 + + + col1 AS col2 FROM tab0
----
101
21
41

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 24 * - col2 - + 73 BETWEEN NULL AND - 87
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 = col0 + 77
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * + 11 - col1 AS col0 FROM tab1 WHERE NOT NULL > + 29
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7495
SELECT * FROM tab2 AS cor0 WHERE 84 NOT BETWEEN + col2 + CAST( NULL AS SIGNED ) / col0 AND col1 / col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7495
SELECT * FROM tab2 AS cor0 WHERE 84 NOT BETWEEN + col2 + CAST ( NULL AS INTEGER ) / col0 AND col1 / col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * + 17 AS col0 FROM tab0 AS cor0 WHERE ( 35 ) BETWEEN - col1 / col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 64 ) * + col2 col2 FROM tab2 AS cor0
----
1472
2560
3712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7498
SELECT CAST( + 0 AS SIGNED ) + - 87 FROM tab0 AS cor0
----
-87
-87
-87

skipif mysql # not compatible
query I rowsort label-7498
SELECT CAST ( + 0 AS INTEGER ) + - 87 FROM tab0 AS cor0
----
-87
-87
-87

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7500
SELECT ALL + - 23 * CAST( - 14 AS SIGNED ) - 21 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 754ef61c735f369dfe9f92e66460e5de

skipif mysql # not compatible
query I rowsort label-7500
SELECT ALL + - 23 * CAST ( - 14 AS INTEGER ) - 21 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 754ef61c735f369dfe9f92e66460e5de

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

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

query I rowsort
SELECT - 49 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7503
SELECT * FROM tab1 AS cor0 WHERE col2 / - col2 * CAST( + 49 AS DECIMAL ) < col2 / - 19 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7503
SELECT * FROM tab1 AS cor0 WHERE col2 / - col2 * CAST ( + 49 AS REAL ) < col2 / - 19 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 + 77 AS col2 FROM tab2 AS cor0
----
0
10
26

query I rowsort
SELECT ALL col1 * + col2 - - col2 FROM tab1 AS cor0
----
1440
3264
354

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7506
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT CAST( col0 AS SIGNED ) * 93 <> col2
----

skipif mysql # not compatible
query III rowsort label-7506
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT CAST ( col0 AS INTEGER ) * 93 <> col2
----

query I rowsort
SELECT - + ( - col2 ) * + ( + col1 ) + 78 FROM tab1 AS cor0
----
1422
3274
373

query I rowsort
SELECT + col0 / + col2 - 68 FROM tab2 cor0 WHERE ( NULL ) >= ( + - 93 )
----

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

skipif mysql # not compatible
query I rowsort label-7509
SELECT - - COUNT ( * ) * + + 97 AS col2 FROM tab1 AS cor0
----
291

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

query I rowsort
SELECT ALL + - 56 * 8 * - - 87 FROM tab2 AS cor0
----
-38976
-38976
-38976

query I rowsort
SELECT ALL + col1 * ( - col2 ) * 33 - 69 FROM tab2 cor0
----
-101709
-128307
-38778

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> - 54
----

query I rowsort
SELECT DISTINCT - - 59 + + 82 AS col2 FROM tab1 AS cor0
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7515
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) * + COUNT( * ) + 75 AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) * + COUNT ( * ) + 75 AS col1 FROM tab1 AS cor0
----
66

query I rowsort
SELECT ALL - col1 * - col1 + col1 FROM tab0 AS cor0
----
2
462
6642

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 + col0 ) IN ( + ( - 1 ) )
----

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

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

query I rowsort
SELECT 10 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL AND NOT ( NULL ) NOT BETWEEN NULL AND - 83
----

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

skipif mysql # not compatible
query I rowsort label-7520
SELECT DISTINCT - COUNT ( * ) * + 38 * COUNT ( * ) FROM tab2
----
-342

query I rowsort
SELECT + AVG ( col1 ) FROM tab1 AS cor0 WHERE NOT ( 48 ) NOT BETWEEN ( col0 ) AND ( col1 * col0 )
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7522
SELECT MAX ( + - 18 ) col0 FROM tab2 AS cor0
----
-18

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7524
SELECT + CAST( 75 AS SIGNED ) - col0 * 32 col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-1557
-2645
-2837

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7524
SELECT + CAST ( 75 AS INTEGER ) - col0 * 32 col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-1557
-2645
-2837

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT ALL - ( + SUM( - 9 ) ) FROM tab2 cor0
----
27

skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL - ( + SUM ( - 9 ) ) FROM tab2 cor0
----
27

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

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

query I rowsort
SELECT + 12 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

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

skipif mysql # not compatible
query II rowsort label-7529
SELECT + 69 AS col0, - COUNT ( * ) FROM tab2 AS cor0
----
69
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7530
SELECT - 58 DIV - - col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7530
SELECT - 58 / - - col0 FROM tab2 AS cor0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 34 + + + 54 * col2 IS NOT NULL
----

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7535
SELECT DISTINCT col2 DIV + - 43 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7535
SELECT DISTINCT col2 / + - 43 FROM tab0 AS cor0
----
-1
-2
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 94 >= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7537
SELECT ALL * FROM tab1 WHERE NOT + col2 * + col2 * CAST( - col0 AS SIGNED ) + 86 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7537
SELECT ALL * FROM tab1 WHERE NOT + col2 * + col2 * CAST ( - col0 AS INTEGER ) + 86 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7539
SELECT col1 * CAST( - 21 AS SIGNED ) FROM tab1
----
-105
-294
-987

skipif mysql # not compatible
query I rowsort label-7539
SELECT col1 * CAST ( - 21 AS INTEGER ) FROM tab1
----
-105
-294
-987

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 95 + col0 * + col2 * - - 39 col0, - 58 FROM tab0
----
27590
-58
34025
-58
374612
-58

query I rowsort
SELECT DISTINCT + 14 * - col1 AS col0 FROM tab2 WHERE NOT 73 / + + 50 <= + col2
----

query III rowsort
SELECT * FROM tab2 WHERE + - 79 > ( col1 - - - col0 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT 44 + + COUNT( * ) * + 52 AS col0 FROM tab1
----
200

skipif mysql # not compatible
query I rowsort label-7544
SELECT 44 + + COUNT ( * ) * + 52 AS col0 FROM tab1
----
200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7545
SELECT + col0 AS col2 FROM tab1 WHERE ( NULL ) <= 83 / + col2 * 85 * - col2 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7545
SELECT + col0 AS col2 FROM tab1 WHERE ( NULL ) <= 83 / + col2 * 85 * - col2 * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7547
SELECT DISTINCT - col1 DIV - - 6 + + 75 AS col0 FROM tab0 AS cor0
----
62
72
75

skipif mysql # not compatible
query I rowsort label-7547
SELECT DISTINCT - col1 / - - 6 + + 75 AS col0 FROM tab0 AS cor0
----
62
72
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7548
SELECT ALL - CAST( + 61 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-61
-61
-61

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

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7553
SELECT + COUNT ( * ) + + - ( + + 21 ) + - - COUNT ( * ) col1 FROM tab1 AS cor0
----
-15

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

query I rowsort
SELECT DISTINCT + 62 - - + col2 * + col1 AS col0 FROM tab2 AS cor0
----
1235
3142
3948

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

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

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

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

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

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

query II rowsort
SELECT ALL col2, col2 * - - 96 AS col2 FROM tab0
----
10
960
47
4512
99
9504

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

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

query II rowsort
SELECT col1 AS col2, 16 AS col0 FROM tab0
----
1
16
21
16
81
16

query II rowsort
SELECT DISTINCT col0, + 56 AS col2 FROM tab1
----
51
56
85
56
91
56

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN ( + 50 ) AND + col2
----

query II rowsort
SELECT + 41 AS col2, 3 AS col0 FROM tab2 cor0
----
41
3
41
3
41
3

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

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( - 83 IS NULL )
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

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

skipif mysql # not compatible
query I rowsort label-7570
SELECT DISTINCT - 40 * - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - 76 <> + + col2
----
0

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

query I rowsort
SELECT col0 + + + col0 * - col1 + col1 FROM tab1 AS cor0
----
-335
-4139
-649

query I rowsort
SELECT DISTINCT - - col0 + - col1 + - + 32 FROM tab1 AS cor0
----
12
48
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT MAX( DISTINCT - 22 ) FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-7576
SELECT MAX ( DISTINCT - 22 ) FROM tab2
----
-22

query I rowsort
SELECT ALL - col2 + - 14 * col0 - - col0 FROM tab0
----
-1141
-1360
-242

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

skipif mysql # not compatible
query I rowsort label-7578
SELECT DISTINCT col1 + + - CAST ( col0 AS INTEGER ) + - col1 AS col0 FROM tab2
----
-46
-64
-75

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

query I rowsort
SELECT ALL col1 * - 36 + 85 - - - col1 AS col1 FROM tab2
----
-1802
-2394
-2764

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

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

query II rowsort
SELECT ALL + col2 * - col1 + + col0, 83 AS col1 FROM tab0
----
-123
83
-2
83
-3792
83

query I rowsort
SELECT col2 * + 97 + + col0 AS col1 FROM tab1 cor0
----
5808
6687
9363

query I rowsort
SELECT - col1 + + - 25 FROM tab1 AS cor0
----
-30
-39
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7585
SELECT - col1 * - ( + - CAST( - 88 AS SIGNED ) ) * + col0 col0 FROM tab1 cor0
----
37400
376376
62832

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7585
SELECT - col1 * - ( + - CAST ( - 88 AS INTEGER ) ) * + col0 col0 FROM tab1 cor0
----
37400
376376
62832

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT - + MIN( ALL - - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7586
SELECT - + MIN ( ALL - - col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7587
SELECT + 67 * - - CAST( + 52 AS SIGNED ), + 27 * + - col2 / col1 AS col1 FROM tab1 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query II rowsort label-7587
SELECT + 67 * - - CAST ( + 52 AS INTEGER ), + 27 * + - col2 / col1 AS col1 FROM tab1 WHERE NOT NULL > NULL
----

query II rowsort
SELECT ALL ( - - 29 ), col1 FROM tab0
----
29
1
29
21
29
81

query I rowsort
SELECT + ( - 66 ) * - col0 * + 94 FROM tab0
----
539748
601788
93060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7590
SELECT - CAST( - COUNT( * ) AS SIGNED ) AS col2, 64 FROM tab0
----
3
64

skipif mysql # not compatible
query II rowsort label-7590
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col2, 64 FROM tab0
----
3
64

query I rowsort
SELECT ALL + - 18 + 44 FROM tab0 cor0 WHERE ( NULL ) >= - - col2
----

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

query I rowsort
SELECT DISTINCT 97 + + col2 FROM tab2
----
120
137
155

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

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

query I rowsort
SELECT DISTINCT - col0 * + - col1 * - - 96 * col2 FROM tab0 AS cor0
----
1753920
5482080
921888

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

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

query I rowsort
SELECT col0 * + col2 + + col2 FROM tab0 AS cor0
----
752
880
9702

query I rowsort
SELECT DISTINCT + col2 + - 18 FROM tab1 AS cor0 WHERE - col2 = ( 27 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 * 7 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7600
SELECT COUNT( * ) DIV + MIN( DISTINCT + col0 ) + + ( - 3 ) col1 FROM tab0 AS cor0
----
-3

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

query I rowsort
SELECT DISTINCT + col0 + + - col1 AS col2 FROM tab0 cor0 WHERE 21 IN ( + 12 * - col0 * - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7602
SELECT ALL - col1 AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-7602
SELECT ALL - col1 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

query I rowsort
SELECT ALL - 62 * col1 * col1 * + col2 + + col1 AS col1 FROM tab2 AS cor0
----
-14703843
-16142377
-3708975

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

query I rowsort
SELECT ALL + - 27 + - - col1 FROM tab2 cor0
----
24
40
50

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

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

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

query I rowsort
SELECT ALL - col0 + - 77 - 41 FROM tab1
----
-169
-203
-209

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7609
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN ( ( + + 80 ) * - - col0 - - col2 ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7609
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN ( ( + + 80 ) * - - col0 - - col2 ) AND ( NULL )
----

query II rowsort
SELECT ALL + col2 * col0, col0 FROM tab1 cor0
----
4896
51
5015
85
6188
91

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

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

query I rowsort
SELECT + 38 + + col1 AS col1 FROM tab2 AS cor0 WHERE col2 + + - 88 <> + + col0
----
105
115
89

query I rowsort
SELECT + col2 - - - 80 + + col0 * 52 FROM tab0
----
4454
5063
747

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7614
SELECT COUNT( * ) DIV 27 - - + 9 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7614
SELECT COUNT ( * ) / 27 - - + 9 FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7615
SELECT col0 * - 43 + col2, CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-2097
NULL
-3596
NULL
-3845
NULL

skipif mysql # not compatible
query II rowsort label-7615
SELECT col0 * - 43 + col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-2097
NULL
-3596
NULL
-3845
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7616
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-7616
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) <> NULL
----

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * 31 + + 86 > NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT DISTINCT ( ( - MAX( - ( - 12 ) ) ) ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-7620
SELECT DISTINCT ( ( - MAX ( - ( - 12 ) ) ) ) FROM tab0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT + 7 * - MIN( DISTINCT + col2 ) AS col1 FROM tab0
----
-70

skipif mysql # not compatible
query I rowsort label-7621
SELECT + 7 * - MIN ( DISTINCT + col2 ) AS col1 FROM tab0
----
-70

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 / col2 * - 13 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7623
SELECT - SUM( DISTINCT + - 42 ) DIV + 18 + - 1 * - 47 AS col1 FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-7623
SELECT - SUM ( DISTINCT + - 42 ) / + 18 + - 1 * - 47 AS col1 FROM tab0
----
49

query III rowsort
SELECT * FROM tab1 WHERE NOT - 5 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7625
SELECT DISTINCT col2 + + 73 AS col2, - ( + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 WHERE NOT + 74 + + CAST( NULL AS DECIMAL ) IS NOT NULL
----
120
NULL
172
NULL
83
NULL

skipif mysql # not compatible
query II rowsort label-7625
SELECT DISTINCT col2 + + 73 AS col2, - ( + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 WHERE NOT + 74 + + CAST ( NULL AS REAL ) IS NOT NULL
----
120
NULL
172
NULL
83
NULL

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

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

query II rowsort
SELECT ALL col0 AS col2, col1 + 67 AS col2 FROM tab1 cor0
----
51
81
85
72
91
114

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT + + MAX( - col2 ) * - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-7628
SELECT + + MAX ( - col2 ) * - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
69

query I rowsort
SELECT DISTINCT + + 40 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, 84 * + 95 col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT COUNT( * ) FROM tab0 WHERE NOT ( - col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7631
SELECT COUNT ( * ) FROM tab0 WHERE NOT ( - col2 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7632
SELECT DISTINCT col1 + col2 + - col0 + - + ( + + 78 ) + - + 99 * - CAST( NULL AS DECIMAL ) / 35 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7632
SELECT DISTINCT col1 + col2 + - col0 + - + ( + + 78 ) + - + 99 * - CAST ( NULL AS REAL ) / 35 AS col0 FROM tab0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT DISTINCT + - SUM( 48 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7634
SELECT DISTINCT + - SUM ( 48 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + + 2 * 34 col1 FROM tab0 AS cor0
----
115
167
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT + COUNT( * ) + - 8 * + 0 AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7636
SELECT + COUNT ( * ) + - 8 * + 0 AS col0 FROM tab0 AS cor0
----
3

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 54 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT + 71 * - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-7639
SELECT + 71 * - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
213

onlyif mysql # DIV for integer division: 
query II rowsort label-7640
SELECT - col2 DIV + + 30 AS col0, - col1 + + col0 FROM tab0 AS cor0
----
-1
-66
-3
96
0
66

skipif mysql # not compatible
query II rowsort label-7640
SELECT - col2 / + + 30 AS col0, - col1 + + col0 FROM tab0 AS cor0
----
-1
-66
-3
96
0
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT ALL - MIN( + 41 ) * + 28 + - 86 AS col1 FROM tab1 AS cor0
----
-1234

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL - MIN ( + 41 ) * + 28 + - 86 AS col1 FROM tab1 AS cor0
----
-1234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 + 21 * + col2 col2 FROM tab2 AS cor0
----
1656
3920
5104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7643
SELECT ALL CAST( MAX( ALL - + 99 ) AS SIGNED ) + - - 64 FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-7643
SELECT ALL CAST ( MAX ( ALL - + 99 ) AS INTEGER ) + - - 64 FROM tab2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT - + COUNT( * ) - - COUNT( * ) FROM tab2 WHERE - + 96 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7644
SELECT - + COUNT ( * ) - - COUNT ( * ) FROM tab2 WHERE - + 96 IS NULL
----
0

query I rowsort
SELECT - 61 FROM tab0, tab2 AS cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query III rowsort
SELECT * FROM tab0 WHERE + - 82 <= 18
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * col0 * ( - + col0 ) AS col2 FROM tab1 WHERE + + col2 < + col2 + col0
----
-36125
-36414
-389207

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7648
SELECT + 85 - - + CAST( NULL AS DECIMAL ) - + 72 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7648
SELECT + 85 - - + CAST ( NULL AS REAL ) - + 72 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT + + 59 * - - MAX( ALL + col2 ) + - 55 AS col1 FROM tab1 AS cor0
----
5609

skipif mysql # not compatible
query I rowsort label-7649
SELECT + + 59 * - - MAX ( ALL + col2 ) + - 55 AS col1 FROM tab1 AS cor0
----
5609

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 81 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 13 + - 53 FROM tab1 cor0
----
-66
-66
-66

query I rowsort
SELECT + 17 + col1 + - 6 AS col1 FROM tab0 AS cor0
----
12
32
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7653
SELECT + - 56 + - - CAST( NULL AS SIGNED ) * col2 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7653
SELECT + - 56 + - - CAST ( NULL AS INTEGER ) * col2 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 75 FROM tab0 cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT + col1 + 52 + col0 FROM tab1 AS cor0
----
117
142
190

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7656
SELECT ALL 52 / - col0 * CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7656
SELECT ALL 52 / - col0 * CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 47 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7658
SELECT + COUNT( * ) DIV 89 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7658
SELECT + COUNT ( * ) / 89 FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7659
SELECT DISTINCT + - MAX( - 70 ) * - MAX( DISTINCT ( + col1 ) ) + CAST( 4 AS SIGNED ) FROM tab2 AS cor0
----
-5386

skipif mysql # not compatible
query I rowsort label-7659
SELECT DISTINCT + - MAX ( - 70 ) * - MAX ( DISTINCT ( + col1 ) ) + CAST ( 4 AS INTEGER ) FROM tab2 AS cor0
----
-5386

onlyif mysql # aggregate syntax: 
query II rowsort label-7660
SELECT - ( - 82 ) * + MIN( - col1 ) AS col1, 45 FROM tab1 AS cor0
----
-3854
45

skipif mysql # not compatible
query II rowsort label-7660
SELECT - ( - 82 ) * + MIN ( - col1 ) AS col1, 45 FROM tab1 AS cor0
----
-3854
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT ALL - COUNT( * ) * + + 37 + - + 26 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL - COUNT ( * ) * + + 37 + - + 26 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT COUNT( * ) * + MAX( col0 ) FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-7662
SELECT COUNT ( * ) * + MAX ( col0 ) FROM tab0 AS cor0
----
291

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7663
SELECT ALL - COUNT( * ) DIV - 64 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL - COUNT ( * ) / - 64 AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col1 NOT BETWEEN 33 AND + 72
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7665
SELECT DISTINCT - col1 DIV - 15 col0 FROM tab1
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7665
SELECT DISTINCT - col1 / - 15 col0 FROM tab1
----
0
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7666
SELECT ALL 7 AS col0, col2 + - + 80 + + + col2 DIV col2 * CAST( + col1 AS SIGNED ) AS col0 FROM tab1
----
7
-16
7
30
7
35

skipif mysql # not compatible
query II rowsort label-7666
SELECT ALL 7 AS col0, col2 + - + 80 + + + col2 / col2 * CAST ( + col1 AS INTEGER ) AS col0 FROM tab1
----
7
-16
7
30
7
35

query I rowsort
SELECT ALL - - ( + col1 ) FROM tab0 WHERE NOT 98 IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7668
SELECT + col2 / + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7668
SELECT + col2 / + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7669
SELECT + 92 DIV - - COUNT( * ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-7669
SELECT + 92 / - - COUNT ( * ) FROM tab0
----
30

query I rowsort
SELECT - 46 * - 3 FROM tab0 WHERE NOT NULL IS NOT NULL
----
138
138
138

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col1 * 81 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 27 * + 34 * + - col2 FROM tab0
----
-43146
-90882
-9180

query I rowsort
SELECT col2 * - - ( - col0 ) FROM tab2
----
-1058
-2560
-4350

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 / - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - ( + + col1 ) + + - col1 AS col0 FROM tab1 AS cor0
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT ALL + 62 * COUNT( * ) * + 29 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
16182

skipif mysql # not compatible
query I rowsort label-7676
SELECT ALL + 62 * COUNT ( * ) * + 29 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
16182

query I rowsort
SELECT DISTINCT + + 82 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
82

query I rowsort
SELECT ALL col0 + + + col1 AS col2 FROM tab1 WHERE - - col0 IS NULL
----

query I rowsort
SELECT ALL 64 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT ALL + col1 + - 92 FROM tab0
----
-11
-71
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7681
SELECT + 8 * - col2 FROM tab0 WHERE NULL < + 54 * - CAST( + 15 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7681
SELECT + 8 * - col2 FROM tab0 WHERE NULL < + 54 * - CAST ( + 15 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7682
SELECT + COUNT( * ) col1, COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7682
SELECT + COUNT ( * ) col1, COUNT ( * ) FROM tab2 AS cor0
----
3
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7683
SELECT + - 77 DIV COUNT( + + col1 ) AS col1 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-7683
SELECT + - 77 / COUNT ( + + col1 ) AS col1 FROM tab2 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT ALL - SUM( + - col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7684
SELECT ALL - SUM ( + - col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, col1 col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( + col2 * - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7686
SELECT 27 DIV - 36 + + ( + + ( + ( - col1 ) ) ) col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7686
SELECT 27 / - 36 + + ( + + ( + ( - col1 ) ) ) col1 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 81 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col2 + - 58, col0 FROM tab0
----
-105
15
-157
97
-68
87

query II rowsort
SELECT ALL col1 + + col2, + col1 AS col1 FROM tab2
----
117
77
125
67
74
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7690
SELECT DISTINCT AVG ( + 5 ) - - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7690
SELECT DISTINCT AVG ( + 5 ) - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7691
SELECT - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7691
SELECT - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + - col0 * - col2 FROM tab2
----
1035
2520
4292

query III rowsort
SELECT * FROM tab0 WHERE NULL <= - 98 / col0 / + 67 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - - 13 col2 FROM tab0
----
1287
130
611

query I rowsort
SELECT DISTINCT - col1 * - col2 - - - col2 AS col1 FROM tab2 AS cor0
----
1150
3040
3828

query I rowsort
SELECT - col0 - 85 FROM tab1 AS cor0
----
-136
-170
-176

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 94 * - col0 = + + col0
----

query I rowsort
SELECT - + 96 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 45 * + - col0 AND col2
----

query II rowsort
SELECT + + 61, col2 AS col0 FROM tab1 AS cor0
----
61
59
61
68
61
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT - MAX( - - col0 ) col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7700
SELECT - MAX ( - - col0 ) col1 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT DISTINCT - SUM( - - col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-7701
SELECT DISTINCT - SUM ( - - col0 ) FROM tab2
----
-185

query I rowsort
SELECT ALL + ( 40 ) * 67 FROM tab2
----
2680
2680
2680

query I rowsort
SELECT + 96 FROM tab2 cor0 WHERE NOT col1 * col2 IS NULL
----
96
96
96

query I rowsort
SELECT ALL - - col2 * + 47 AS col2 FROM tab1 AS cor0
----
2773
3196
4512

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 63 col1 FROM tab2 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT + MIN( ALL - - col2 ) * - ( - ( - - 94 ) ) - COUNT( * ) + - COUNT( * ) AS col0 FROM tab2
----
2156

skipif mysql # not compatible
query I rowsort label-7706
SELECT + MIN ( ALL - - col2 ) * - ( - ( - - 94 ) ) - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2
----
2156

query I rowsort
SELECT ALL col2 + ( - col0 ) FROM tab1
----
-23
-26
45

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7708
SELECT ALL - col2 col2, CAST( NULL AS DECIMAL ) + col2, - col2 AS col0 FROM tab0 cor0
----
9 values hashing to f238dfa5d9e1157928df32d695ce27be

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-7708
SELECT ALL - col2 col2, CAST ( NULL AS REAL ) + col2, - col2 AS col0 FROM tab0 cor0
----
9 values hashing to f238dfa5d9e1157928df32d695ce27be

query I rowsort
SELECT ALL 26 - - col1 + + - col0 + col0 * col0 FROM tab2 AS cor0
----
2147
4135
5643

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT ALL + - MAX( DISTINCT + 69 ) AS col0 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-7710
SELECT ALL + - MAX ( DISTINCT + 69 ) AS col0 FROM tab1 AS cor0
----
-69

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT NULL > NULL )
----

query I rowsort
SELECT - col1 * - - 93 AS col2 FROM tab1 AS cor0
----
-1302
-4371
-465

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7713
SELECT ALL + - 38 DIV + 46 * - + MIN( col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7713
SELECT ALL + - 38 / + 46 * - + MIN ( col0 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 11 * + 75 - col0 AS col1 FROM tab0 AS cor0
----
-840
-912
-922

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 62 + - ( - 33 ) IS NOT NULL
----

query I rowsort
SELECT 57 * col2 AS col2 FROM tab2 cor0
----
1311
2280
3306

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7717
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - 44 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7717
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - 44 FROM tab1
----
NULL

query I rowsort
SELECT col2 - col0 - + 86 FROM tab1
----
-109
-112
-41

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 59 * 85 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT MAX( DISTINCT - + col1 ) + + COUNT( * ) AS col0 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-7720
SELECT MAX ( DISTINCT - + col1 ) + + COUNT ( * ) AS col0 FROM tab1
----
-2

query III rowsort
SELECT * FROM tab2 WHERE - col0 < - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - ( + - 97 ) IN ( 59, - col1 / - col1 * + + col2, - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + - col2 AS col1, + 50 * - - col1 AS col1 FROM tab2 AS cor0
----
-23
2550
-40
3850
-58
3350

onlyif mysql # DIV for integer division: 
query I rowsort label-7724
SELECT - + 87 DIV 46 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7724
SELECT - + 87 / 46 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7725
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( + col2 AS SIGNED ) * + 39 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7725
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( + col2 AS INTEGER ) * + 39 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT ALL 10 + COUNT( * ) FROM tab1, tab0 cor0
----
19

skipif mysql # not compatible
query I rowsort label-7726
SELECT ALL 10 + COUNT ( * ) FROM tab1, tab0 cor0
----
19

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT NULL NOT IN ( + 59 - + - 25, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT MIN( ALL + + 55 ) AS col2 FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-7728
SELECT MIN ( ALL + + 55 ) AS col2 FROM tab1 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col1 - + col1 + + col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7729
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col1 - + col1 + + col1 = NULL
----
0

query I rowsort
SELECT - - col1 * 14 FROM tab0 AS cor0
----
1134
14
294

query I rowsort
SELECT - + 1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL ( - - 47 ) AS col2 FROM tab2 AS cor0
----
47
47
47

query I rowsort
SELECT ALL ( + 43 ) + + col2 + - col1 AS col1 FROM tab0
----
141
32
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT DISTINCT 45 + + COUNT( * ) + - 68 * + - COUNT( * ) * + ( 56 ) AS col1 FROM tab2
----
11472

skipif mysql # not compatible
query I rowsort label-7734
SELECT DISTINCT 45 + + COUNT ( * ) + - 68 * + - COUNT ( * ) * + ( 56 ) AS col1 FROM tab2
----
11472

query I rowsort
SELECT + 11 + - col2 AS col1 FROM tab2
----
-12
-29
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7736
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 68 * + 45 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7736
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 68 * + 45 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7737
SELECT CAST( + - col1 AS SIGNED ) + - col0 FROM tab0 WHERE NULL NOT BETWEEN + col0 * col1 + 0 AND - 24 * + col2
----

skipif mysql # not compatible
query I rowsort label-7737
SELECT CAST ( + - col1 AS INTEGER ) + - col0 FROM tab0 WHERE NULL NOT BETWEEN + col0 * col1 + 0 AND - 24 * + col2
----

query I rowsort
SELECT col0 + - 89 AS col0 FROM tab2
----
-14
-25
-43

query I rowsort
SELECT col1 + - - 79 AS col1 FROM tab2 AS cor0
----
130
146
156

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 72 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col0 * - + col0 / - - col2 - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT ( + COUNT( DISTINCT + - col2 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7742
SELECT ( + COUNT ( DISTINCT + - col2 ) ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT col1 + - + col2 AS col1 FROM tab2
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7744
SELECT + AVG ( - 54 ) - - - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7744
SELECT + AVG ( - 54 ) - - - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT ALL - 37 - MIN( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL - 37 - MIN ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
-88

query II rowsort
SELECT + col2 + 30 AS col1, col2 FROM tab1 AS cor0
----
126
96
89
59
98
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT ALL - - ( COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7747
SELECT ALL - - ( COUNT ( * ) ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 7 * col2 AND NULL
----

query I rowsort
SELECT ALL col1 + - 30 FROM tab0
----
-29
-9
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT MAX( ALL + + col1 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7750
SELECT MAX ( ALL + + col1 ) AS col2 FROM tab2
----
77

query II rowsort
SELECT DISTINCT - 20 AS col0, - col2 AS col2 FROM tab0
----
-20
-10
-20
-47
-20
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-7752
SELECT DISTINCT - col2 DIV + + 93 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-7752
SELECT DISTINCT - col2 / + + 93 FROM tab1
----
-1
0

query III rowsort
SELECT * FROM tab1 WHERE NOT 41 * - col1 IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col0, - 77 FROM tab2 AS cor0
----
46
-77
64
-77
75
-77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN ( - 25 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7756
SELECT DISTINCT 51 * - + 54 FROM tab2 AS cor0 WHERE NOT - CAST( + + col0 AS DECIMAL ) / - CAST( NULL AS SIGNED ) IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-7756
SELECT DISTINCT 51 * - + 54 FROM tab2 AS cor0 WHERE NOT - CAST ( + + col0 AS REAL ) / - CAST ( NULL AS INTEGER ) IN ( col2 )
----

query I rowsort
SELECT 27 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT col2 * - + 42 AS col0 FROM tab1
----
-2478
-2856
-4032

query I rowsort
SELECT ALL + col2 * - + 39 FROM tab2
----
-1560
-2262
-897

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7760
SELECT ALL - 97 + + + CAST( + + 70 AS SIGNED ) * ( - 60 ) + - CAST( NULL AS DECIMAL ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7760
SELECT ALL - 97 + + + CAST ( + + 70 AS INTEGER ) * ( - 60 ) + - CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 32 * - 20 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col0 AS col0, - col0 * + 35 FROM tab1 AS cor0
----
-51
-1785
-85
-2975
-91
-3185

query I rowsort
SELECT - - col0 AS col0 FROM tab1 cor0 WHERE NOT NULL >= + 90
----

query I rowsort
SELECT DISTINCT - + 72 AS col0 FROM tab1 AS cor0
----
-72

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <= - col1 + - - col2 * + 68
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 24 NOT IN ( + col1 + - col0, - col0, + - 3 * - + col0, - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7767
SELECT ALL - + col1 + - col0 + col1 DIV - col0 + - - col1 FROM tab2 AS cor0
----
-47
-65
-75

skipif mysql # not compatible
query I rowsort label-7767
SELECT ALL - + col1 + - col0 + col1 / - col0 + - - col1 FROM tab2 AS cor0
----
-47
-65
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT DISTINCT - 62 * - - MAX( col0 ) * + 89 * 55 AS col1 FROM tab1
----
-27617590

skipif mysql # not compatible
query I rowsort label-7768
SELECT DISTINCT - 62 * - - MAX ( col0 ) * + 89 * 55 AS col1 FROM tab1
----
-27617590

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7769
SELECT * FROM tab2 WHERE NOT + - 29 BETWEEN + + col0 - + col0 + + CAST( NULL AS SIGNED ) AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7769
SELECT * FROM tab2 WHERE NOT + - 29 BETWEEN + + col0 - + col0 + + CAST ( NULL AS INTEGER ) AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT MAX( ALL + - 61 ) AS col0 FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-7770
SELECT MAX ( ALL + - 61 ) AS col0 FROM tab2
----
-61

query II rowsort
SELECT DISTINCT - col1 + - col0, + 36 * - - col0 AS col2 FROM tab1
----
-138
3276
-65
1836
-90
3060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7772
SELECT - col2 FROM tab2 WHERE NULL NOT BETWEEN - col0 / + - 94 - + - CAST( 94 AS SIGNED ) - + ( CAST( NULL AS SIGNED ) ) AND + - 90
----

skipif mysql # not compatible
query I rowsort label-7772
SELECT - col2 FROM tab2 WHERE NULL NOT BETWEEN - col0 / + - 94 - + - CAST ( 94 AS INTEGER ) - + ( CAST ( NULL AS INTEGER ) ) AND + - 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT DISTINCT 75 + - - COUNT( * ) FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-7773
SELECT DISTINCT 75 + - - COUNT ( * ) FROM tab1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7774
SELECT + - CAST( + - col0 AS SIGNED ) FROM tab2 WHERE - 8 * + - col1 IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7774
SELECT + - CAST ( + - col0 AS INTEGER ) FROM tab2 WHERE - 8 * + - col1 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT MAX( ALL - + 96 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-96

skipif mysql # not compatible
query I rowsort label-7775
SELECT MAX ( ALL - + 96 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-96

query I rowsort
SELECT col2 * 36 + col2 FROM tab0 AS cor0
----
1739
3663
370

query I rowsort
SELECT - 22 + - col1 * - + 65 FROM tab2 AS cor0
----
3293
4333
4983

query I rowsort
SELECT ALL - col0 + - col1 * - - col1 FROM tab1 AS cor0
----
-110
-2300
-247

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 95 col1 FROM tab2 AS cor0
----
-95

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 65 <> NULL
----

query I rowsort
SELECT + 42 + + 16 FROM tab1
----
58
58
58

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN col0 AND - col1
----

query I rowsort
SELECT DISTINCT col0 * 36 AS col1 FROM tab0 WHERE NULL IS NULL
----
3132
3492
540

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT DISTINCT COUNT( * ) - - 50 + + MAX( + - col0 ) FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-7784
SELECT DISTINCT COUNT ( * ) - - 50 + + MAX ( + - col0 ) FROM tab2
----
7

query I rowsort
SELECT - - col0 * + + col2 AS col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT ALL - 46 - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-7786
SELECT ALL - 46 - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-49

query I rowsort
SELECT + + col1 * - col0 * - 39 FROM tab1 cor0
----
16575
166803
27846

query I rowsort
SELECT col0 - + + col2 + 19 - - + col2 AS col2 FROM tab1 AS cor0
----
104
110
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7789
SELECT DISTINCT - - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) - - + AVG ( DISTINCT + + 78 ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7789
SELECT DISTINCT - - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) - - + AVG ( DISTINCT + + 78 ) col0 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL + 51 AS col2, + 14 * col0 AS col1 FROM tab2 AS cor0
----
51
1050
51
644
51
896

query II rowsort
SELECT + col1 * - - 40 AS col0, - col0 FROM tab0
----
3240
-15
40
-97
840
-87

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 45 + - 26 NOT IN ( col2, + 88 )
----

query I rowsort
SELECT DISTINCT + 61 AS col1 FROM tab2 WHERE NULL IS NULL
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT - MIN( ( + 40 ) ) AS col1 FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-7794
SELECT - MIN ( ( + 40 ) ) AS col1 FROM tab0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT DISTINCT + SUM( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-7795
SELECT DISTINCT + SUM ( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7796
SELECT CAST( NULL AS SIGNED ) * - CAST( + + col0 AS SIGNED ) * - col1 * col0 + - - 91 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7796
SELECT CAST ( NULL AS INTEGER ) * - CAST ( + + col0 AS INTEGER ) * - col1 * col0 + - - 91 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab0 AS cor0 WHERE NOT NULL < ( - + col1 )
----

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT - col2 + + + ( col0 ) < - - col2
----
-23

query I rowsort
SELECT + col2 + + col0 FROM tab1 AS cor0 WHERE NOT NULL = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT DISTINCT - 33 * - COUNT( * ) col2 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7800
SELECT DISTINCT - 33 * - COUNT ( * ) col2 FROM tab1 AS cor0
----
99

query I rowsort
SELECT ALL + + col1 * + + col1 * - + 1 FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT 25 * 40 FROM tab2
----
1000
1000
1000

onlyif mysql # aggregate syntax: 
query II rowsort label-7803
SELECT ALL COUNT( * ), - 26 AS col0 FROM tab2 AS cor0
----
3
-26

skipif mysql # not compatible
query II rowsort label-7803
SELECT ALL COUNT ( * ), - 26 AS col0 FROM tab2 AS cor0
----
3
-26

query I rowsort
SELECT DISTINCT col0 + col1 + + - 71 * col1 FROM tab2 AS cor0
----
-3524
-4615
-5326

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN - col1 * + + col0 * + 81 + + col1 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7806
SELECT DISTINCT 52 * + + CAST( NULL AS SIGNED ) + + 23 + + 73 / - ( + col1 ) + - col2 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7806
SELECT DISTINCT 52 * + + CAST ( NULL AS INTEGER ) + + 23 + + 73 / - ( + col1 ) + - col2 AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7807
SELECT ALL CAST( NULL AS SIGNED ) + + + 20 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL CAST ( NULL AS INTEGER ) + + + 20 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 24 + 51 * + col1 FROM tab2
----
2625
3441
3951

query I rowsort
SELECT ALL - 40 + - - 84 AS col2 FROM tab1
----
44
44
44

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 50 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 + 8 AS col2 FROM tab1
----
59
93
99

query II rowsort
SELECT - 39 + col0, col1 AS col0 FROM tab0
----
-24
81
48
21
58
1

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7814
SELECT DISTINCT + col2 DIV + col0 + col0 FROM tab0
----
18
87
98

skipif mysql # not compatible
query I rowsort label-7814
SELECT DISTINCT + col2 / + col0 + col0 FROM tab0
----
18
87
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT ALL + COUNT( + 83 ) - + 71 * - 2 AS col1 FROM tab0 AS cor0
----
145

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL + COUNT ( + 83 ) - + 71 * - 2 AS col1 FROM tab0 AS cor0
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT ALL 50 - ( + + COUNT( * ) ) FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7816
SELECT ALL 50 - ( + + COUNT ( * ) ) FROM tab0 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT DISTINCT + COUNT( * ) * COUNT( * ) * + 89 + + + 9 AS col0 FROM tab2 AS cor0
----
810

skipif mysql # not compatible
query I rowsort label-7817
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) * + 89 + + + 9 AS col0 FROM tab2 AS cor0
----
810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7818
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * - 43 FROM tab2 cor0
----
2193
2881
3311

skipif mysql # not compatible
query I rowsort label-7818
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * - 43 FROM tab2 cor0
----
2193
2881
3311

query I rowsort
SELECT ALL col0 * + - col1 AS col2 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT + + 16 AS col2 FROM tab1 WHERE NOT NULL > NULL
----

query II rowsort
SELECT ALL + col1 AS col2, col1 * col1 * + + 89 * col2 AS col2 FROM tab0
----
1
8811
21
392490
81
27444663

onlyif mysql # aggregate syntax: 
query II rowsort label-7822
SELECT DISTINCT ( - ( + + 97 ) ) col0, + COUNT( * ) + + - 4 + SUM( - - 23 ) AS col2 FROM tab0
----
-97
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7822
SELECT DISTINCT ( - ( + + 97 ) ) col0, + COUNT ( * ) + + - 4 + SUM ( - - 23 ) AS col2 FROM tab0
----
-97
68

query I rowsort
SELECT DISTINCT - 1 * + 25 * + col2 AS col1 FROM tab2
----
-1000
-1450
-575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7824
SELECT CAST( NULL AS SIGNED ) AS col1, MAX( DISTINCT 61 ) AS col0 FROM tab2
----
NULL
61

skipif mysql # not compatible
query II rowsort label-7824
SELECT CAST ( NULL AS INTEGER ) AS col1, MAX ( DISTINCT 61 ) AS col0 FROM tab2
----
NULL
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7825
SELECT ALL + col1 AS col2 FROM tab1 WHERE NULL NOT IN ( - col2 - CAST( NULL AS SIGNED ) - - 46 * - + 11 + - - ( + col0 ), col0, - col2 + + + col2 * - - 72 * + col0 * + + col0 )
----

skipif mysql # not compatible
query I rowsort label-7825
SELECT ALL + col1 AS col2 FROM tab1 WHERE NULL NOT IN ( - col2 - CAST ( NULL AS INTEGER ) - - 46 * - + 11 + - - ( + col0 ), col0, - col2 + + + col2 * - - 72 * + col0 * + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT + MAX( DISTINCT - 60 ) FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-7826
SELECT + MAX ( DISTINCT - 60 ) FROM tab0
----
-60

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 * + col0 + ( 47 ) + + col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col2 <> - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 >= - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7830
SELECT DISTINCT + MIN( DISTINCT + CAST( - col0 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7830
SELECT DISTINCT + MIN ( DISTINCT + CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7831
SELECT * FROM tab0 AS cor0 WHERE 80 * + col1 IN ( + CAST( NULL AS SIGNED ) * - 42 + - 11 + - + col2 )
----

skipif mysql # not compatible
query III rowsort label-7831
SELECT * FROM tab0 AS cor0 WHERE 80 * + col1 IN ( + CAST ( NULL AS INTEGER ) * - 42 + - 11 + - + col2 )
----

query I rowsort
SELECT + col2 + + + 81 FROM tab1 AS cor0
----
140
149
177

onlyif mysql # DIV for integer division: 
query I rowsort label-7833
SELECT - col2 DIV - 68 AS col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7833
SELECT - col2 / - 68 AS col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
0
1
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL OR NOT col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT + MAX( DISTINCT 59 ) AS col1 FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-7835
SELECT + MAX ( DISTINCT 59 ) AS col1 FROM tab0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT DISTINCT - ( ( + 89 ) ) * + + COUNT( * ) FROM tab1 WHERE + col1 < - col1
----
0

skipif mysql # not compatible
query I rowsort label-7836
SELECT DISTINCT - ( ( + 89 ) ) * + + COUNT ( * ) FROM tab1 WHERE + col1 < - col1
----
0

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE 10 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7838
SELECT ALL - 67 + - - col1 DIV + col1 AS col0 FROM tab1
----
-66
-66
-66

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL - 67 + - - col1 / + col1 AS col0 FROM tab1
----
-66
-66
-66

query I rowsort
SELECT DISTINCT + 90 * + col0 + + - 46 + - - col1 FROM tab1
----
4558
7609
8191

query I rowsort
SELECT DISTINCT col1 + 29 AS col2 FROM tab0
----
110
30
50

query I rowsort
SELECT ALL - 74 FROM tab0 WHERE NULL IS NULL
----
-74
-74
-74

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT ( - - col0 * + col0 + + - 83 * - - 71 * + col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 60 < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 >= + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + col1 - col0 FROM tab2 cor0
----
28
50
53

query I rowsort
SELECT + col0 * + 13 + + col0 AS col2 FROM tab2 cor0
----
1050
644
896

query II rowsort
SELECT ALL col2, 4 AS col1 FROM tab0
----
10
4
47
4
99
4

query II rowsort
SELECT + col2 AS col1, - 25 AS col1 FROM tab1 WHERE NULL > + col1
----

query I rowsort
SELECT ALL - 68 * + - col2 FROM tab1
----
4012
4624
6528

query I rowsort
SELECT DISTINCT 19 * col0 AS col0 FROM tab1 AS cor0
----
1615
1729
969

query I rowsort
SELECT ALL + col2 * ( + col1 ) AS col0 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT MIN( DISTINCT col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7852
SELECT MIN ( DISTINCT col0 ) FROM tab1 AS cor0
----
51

query II rowsort
SELECT DISTINCT + - 29 AS col1, + col1 * + col0 * - col0 FROM tab2 AS cor0
----
-29
-107916
-29
-315392
-29
-376875

query I rowsort
SELECT 93 * + + 69 FROM tab1 AS cor0
----
6417
6417
6417

query II rowsort
SELECT ALL - - col2, col1 AS col2 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7856
SELECT COUNT( * ) AS col0, + 27 FROM tab2 AS cor0
----
3
27

skipif mysql # not compatible
query II rowsort label-7856
SELECT COUNT ( * ) AS col0, + 27 FROM tab2 AS cor0
----
3
27

query I rowsort
SELECT - col1 * - 83 FROM tab1 AS cor0
----
1162
3901
415

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT - 3 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT ALL + COUNT( * ) FROM tab2, tab1 AS cor0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7859
SELECT ALL + COUNT ( * ) FROM tab2, tab1 AS cor0 WHERE NULL >= NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7860
SELECT col2 DIV + - col1 AS col2, col1 + col2 FROM tab1
----
-1
115
-11
64
-6
110

skipif mysql # not compatible
query II rowsort label-7860
SELECT col2 / + - col1 AS col2, col1 + col2 FROM tab1
----
-1
115
-11
64
-6
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7861
SELECT + 92 * CAST( + COUNT( DISTINCT ( - + 28 ) ) AS SIGNED ) * + 36 * + COUNT( ALL - col0 ), - 89 AS col2 FROM tab2
----
9936
-89

skipif mysql # not compatible
query II rowsort label-7861
SELECT + 92 * CAST ( + COUNT ( DISTINCT ( - + 28 ) ) AS INTEGER ) * + 36 * + COUNT ( ALL - col0 ), - 89 AS col2 FROM tab2
----
9936
-89

onlyif mysql # DIV for integer division: 
query II rowsort label-7862
SELECT DISTINCT col2 * + - col1 AS col1, + col1 DIV - col2 AS col1 FROM tab2 AS cor0
----
-1173
-2
-3080
-1
-3886
-1

skipif mysql # not compatible
query II rowsort label-7862
SELECT DISTINCT col2 * + - col1 AS col1, + col1 / - col2 AS col1 FROM tab2 AS cor0
----
-1173
-2
-3080
-1
-3886
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT - - MAX( DISTINCT ( col0 ) ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7863
SELECT - - MAX ( DISTINCT ( col0 ) ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT DISTINCT 59 + - col2 + col2 * + - 96 AS col1 FROM tab1
----
-5664
-6537
-9253

query I rowsort
SELECT ALL - 44 + - col2 FROM tab1
----
-103
-112
-140

query II rowsort
SELECT - col2, col1 + - col2 AS col2 FROM tab0
----
-10
11
-47
34
-99
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-7867
SELECT ALL + col2 DIV - 37 AS col0 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7867
SELECT ALL + col2 / - 37 AS col0 FROM tab1
----
-1
-1
-2

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN + + col1 AND NULL
----

query I rowsort
SELECT + - 3 * - col2 FROM tab2 cor0
----
120
174
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7870
SELECT DISTINCT + ( MIN( + CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7870
SELECT DISTINCT + ( MIN ( + CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 + - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT DISTINCT 85 + + COUNT( * ) * + 94 + - - 46 AS col0 FROM tab0 AS cor0
----
413

skipif mysql # not compatible
query I rowsort label-7872
SELECT DISTINCT 85 + + COUNT ( * ) * + 94 + - - 46 AS col0 FROM tab0 AS cor0
----
413

query I rowsort
SELECT col1 + + + col1 + - 52 * - col1 FROM tab1 cor0
----
2538
270
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( - col1 ) + - col1 + - col0, col2 col0 FROM tab2
----
-148
23
-209
58
-218
40

query III rowsort
SELECT ALL * FROM tab2 WHERE - + ( + 55 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7876
SELECT col0 DIV + + 49 - + - col2 FROM tab0 AS cor0
----
100
11
47

skipif mysql # not compatible
query I rowsort label-7876
SELECT col0 / + + 49 - + - col2 FROM tab0 AS cor0
----
100
11
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT ALL COUNT( ALL + ( - + col1 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7877
SELECT ALL COUNT ( ALL + ( - + col1 ) ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7878
SELECT DISTINCT 77 + + col0 DIV - 52 + 56 FROM tab2
----
132
133

skipif mysql # not compatible
query I rowsort label-7878
SELECT DISTINCT 77 + + col0 / - 52 + 56 FROM tab2
----
132
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7879
SELECT ( - CAST( NULL AS SIGNED ) ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7879
SELECT ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE + 17 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT DISTINCT + - MIN( - col1 ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7881
SELECT DISTINCT + - MIN ( - col1 ) AS col1 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT - MAX( ALL + col2 ) FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7882
SELECT - MAX ( ALL + col2 ) FROM tab0 cor0
----
-99

query I rowsort
SELECT DISTINCT col1 * col1 * 51 AS col1 FROM tab1 AS cor0 WHERE col0 < + col2
----
9996

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT - 77 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-7884
SELECT - 77 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-231

query I rowsort
SELECT ALL col2 * + - col2 * - + col1 * + - 30 AS col2 FROM tab0
----
-294030
-5367870
-63000

query I rowsort
SELECT DISTINCT 37 * col1 AS col1 FROM tab0
----
2997
37
777

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-7887
SELECT CAST( NULL AS SIGNED ) * - + 3 AS col1, + col2 DIV + col2 AS col2, + col0 + + col1 FROM tab1
----
9 values hashing to 6c25e060da41ed7831ac0d881cb95379

skipif mysql # not compatible
query III rowsort label-7887
SELECT CAST ( NULL AS INTEGER ) * - + 3 AS col1, + col2 / + col2 AS col2, + col0 + + col1 FROM tab1
----
9 values hashing to 6c25e060da41ed7831ac0d881cb95379

query I rowsort
SELECT ALL - col0 * - - 32 * col2 - col2 + + col0 / + 40 FROM tab2 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT + - ( - 68 ) + + + 98 FROM tab2 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7891
SELECT 27 + + - 31, COUNT( * ) AS col0 FROM tab0
----
-4
3

skipif mysql # not compatible
query II rowsort label-7891
SELECT 27 + + - 31, COUNT ( * ) AS col0 FROM tab0
----
-4
3

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT + 33 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT + + 26 * - + MIN( + - 18 ) AS col0 FROM tab0 cor0
----
468

skipif mysql # not compatible
query I rowsort label-7895
SELECT + + 26 * - + MIN ( + - 18 ) AS col0 FROM tab0 cor0
----
468

query I rowsort
SELECT ALL - - 92 FROM tab1 cor0
----
92
92
92

query II rowsort
SELECT - col2 * 47 + + 83, + col2 AS col2 FROM tab0 cor0
----
-2126
47
-387
10
-4570
99

query I rowsort
SELECT DISTINCT + col0 * - + 26 AS col2 FROM tab2 AS cor0
----
-1196
-1664
-1950

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * + 97 <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( - col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + - 84 col0 FROM tab2
----
130
148
159

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT MAX( - col2 ) - COUNT( * ) FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-7902
SELECT MAX ( - col2 ) - COUNT ( * ) FROM tab1
----
-62

query I rowsort
SELECT DISTINCT + 11 + - + col2 + + + col0 FROM tab2
----
28
34
35

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 - 41 FROM tab0
----
-20
-40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT ALL MAX( - - 73 ) FROM tab0, tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL MAX ( - - 73 ) FROM tab0, tab2 AS cor0
----
73

query I rowsort
SELECT ALL + col1 + + 76 + + + ( col0 ) AS col2 FROM tab0
----
172
174
184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 38 col1 FROM tab1 AS cor0
----
38
38
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 col1 FROM tab1 AS cor0
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT COUNT( * ) + - + SUM( ALL - - col2 ) AS col2 FROM tab2 AS cor0
----
-118

skipif mysql # not compatible
query I rowsort label-7910
SELECT COUNT ( * ) + - + SUM ( ALL - - col2 ) AS col2 FROM tab2 AS cor0
----
-118

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 NOT BETWEEN + col2 AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col1 AS col2, - 3 AS col0 FROM tab2 AS cor0
----
-51
-3
-67
-3
-77
-3

query I rowsort
SELECT col0 + 8 * + col1 FROM tab2
----
454
611
680

query I rowsort
SELECT ALL + col1 * col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT ( - ( 53 ) ) FROM tab1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT ALL 75 + - COUNT( * ) AS col2 FROM tab1 WHERE NOT 34 > NULL
----
75

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL 75 + - COUNT ( * ) AS col2 FROM tab1 WHERE NOT 34 > NULL
----
75

query I rowsort
SELECT + 46 + - col0 * col0 AS col1 FROM tab0
----
-179
-7523
-9363

query I rowsort
SELECT - col2 + 10 FROM tab2
----
-13
-30
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT ALL COUNT( * ) + 99 AS col1 FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-7919
SELECT ALL COUNT ( * ) + 99 AS col1 FROM tab2
----
102

query I rowsort
SELECT ( + 11 ) FROM tab1
----
11
11
11

query I rowsort
SELECT ALL 91 + - col0 FROM tab1
----
0
40
6

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( - col2 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT COUNT( - 19 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7923
SELECT COUNT ( - 19 ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7924
SELECT DISTINCT - CAST( NULL AS SIGNED ) / 20 + col2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7924
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / 20 + col2 AS col1 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - 23 >= col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 * + 80 NOT BETWEEN NULL AND col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN ( - col0 ) AND col2 + 87 * + 38
----

query III rowsort
SELECT * FROM tab0 WHERE 68 / + col1 + 2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7929
SELECT - col1 + - ( 68 ) FROM tab2 WHERE NOT + CAST( NULL AS DECIMAL ) * 47 NOT BETWEEN 70 AND ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-7929
SELECT - col1 + - ( 68 ) FROM tab2 WHERE NOT + CAST ( NULL AS REAL ) * 47 NOT BETWEEN 70 AND ( + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7930
SELECT COUNT( * ) FROM tab0 WHERE + col0 * - col0 NOT IN ( col1 * + CAST( NULL AS DECIMAL ) - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7930
SELECT COUNT ( * ) FROM tab0 WHERE + col0 * - col0 NOT IN ( col1 * + CAST ( NULL AS REAL ) - col2 )
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 / + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7932
SELECT DISTINCT col1 DIV CAST( col1 AS SIGNED ) FROM tab2 WHERE NOT ( col0 ) = 29
----
1

skipif mysql # not compatible
query I rowsort label-7932
SELECT DISTINCT col1 / CAST ( col1 AS INTEGER ) FROM tab2 WHERE NOT ( col0 ) = 29
----
1

query III rowsort
SELECT * FROM tab0 WHERE 19 / - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 81 * + col1 NOT IN ( - col1 * + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( - 21 ) FROM tab0
----
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 88 col0 FROM tab2
----
-4488
-5896
-6776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7937
SELECT DISTINCT CAST( NULL AS SIGNED ) - - col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7937
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - col0 FROM tab2
----
NULL

query I rowsort
SELECT - ( - col2 ) * col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
100
2209
9801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7939
SELECT DISTINCT - 95 + CAST( 27 AS SIGNED ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-176

skipif mysql # not compatible
query I rowsort label-7939
SELECT DISTINCT - 95 + CAST ( 27 AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT ( COUNT( * ) ) + COUNT( DISTINCT col1 + col0 ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7940
SELECT ( COUNT ( * ) ) + COUNT ( DISTINCT col1 + col0 ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT 75 + + 1 FROM tab2 AS cor0
----
76
76
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7942
SELECT - ( 58 ) * + col1 + CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1305
-155
-4713

skipif mysql # not compatible
query I rowsort label-7942
SELECT - ( 58 ) * + col1 + CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1305
-155
-4713

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7943
SELECT DISTINCT + - 82 * + col2 - - col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7943
SELECT DISTINCT + - 82 * + col2 - - col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT DISTINCT - + COUNT( * ) * ( - 6 * - COUNT( * ) ) FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-7944
SELECT DISTINCT - + COUNT ( * ) * ( - 6 * - COUNT ( * ) ) FROM tab0 AS cor0
----
-54

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 <> ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > + ( col1 )
----

query I rowsort
SELECT - 51 + col1 FROM tab1 AS cor0
----
-37
-4
-46

query I rowsort
SELECT col0 + + col1 * 79 FROM tab1
----
1157
3804
480

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 32 + col2 > - 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT DISTINCT ( COUNT( * ) ) + 84 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-7950
SELECT DISTINCT ( COUNT ( * ) ) + 84 FROM tab1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7951
SELECT 66 AS col0 FROM tab1 WHERE - 79 / + CAST( col1 / col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7951
SELECT 66 AS col0 FROM tab1 WHERE - 79 / + CAST ( col1 / col1 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT ALL ( - 93 ) + - COUNT( * ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-7952
SELECT ALL ( - 93 ) + - COUNT ( * ) FROM tab0
----
-96

query I rowsort
SELECT - 51 * col2 AS col2 FROM tab0
----
-2397
-5049
-510

query I rowsort
SELECT DISTINCT 69 FROM tab0 WHERE ( ( 0 ) ) IS NULL
----

query I rowsort
SELECT ALL 38 * - - 38 FROM tab0
----
1444
1444
1444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 col2 FROM tab2
----
-21
-21
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) col2 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT + col1 * + 91 FROM tab2
----
4641
6097
7007

onlyif mysql # DIV for integer division: 
query I rowsort label-7959
SELECT col0 DIV + 49 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7959
SELECT col0 / + 49 FROM tab2
----
0
1
1

query I rowsort
SELECT ALL + col2 - + 75 * col2 FROM tab1
----
-4366
-5032
-7104

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT ALL + COUNT( * ) FROM tab1 WHERE + col1 NOT BETWEEN NULL AND + 80
----
0

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL + COUNT ( * ) FROM tab1 WHERE + col1 NOT BETWEEN NULL AND + 80
----
0

query I rowsort
SELECT - - ( - - col2 ) * col0 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-7963
SELECT DISTINCT col1 DIV + - col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7963
SELECT DISTINCT col1 / + - col2 FROM tab0 AS cor0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - ( - col2 ) col1 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT - col1 * + 56 FROM tab0
----
-1176
-4536
-56

query I rowsort
SELECT ALL - 40 * + col1 AS col1 FROM tab1 WHERE NOT + col0 + - 76 * col0 <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT ALL + ( - - MAX( - + col0 ) ) col0 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7967
SELECT ALL + ( - - MAX ( - + col0 ) ) col0 FROM tab0
----
-15

query I rowsort
SELECT ALL - 20 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT DISTINCT + ( 79 ) AS col0 FROM tab2
----
79

query I rowsort
SELECT DISTINCT + ( + col2 ) * - - col2 FROM tab1 AS cor0
----
3481
4624
9216

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 <> + col0 * - ( - col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 ) <= 80
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT DISTINCT - MAX( 14 ) FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT - MAX ( 14 ) FROM tab1 AS cor0
----
-14

query I rowsort
SELECT + col1 / - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 32 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT MAX( - + 59 ) AS col1 FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7975
SELECT MAX ( - + 59 ) AS col1 FROM tab0 AS cor0
----
-59

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( - col2 ) AND + col2 * + col2
----

query II rowsort
SELECT DISTINCT - 41 AS col0, col0 * + col2 FROM tab0 AS cor0
----
-41
705
-41
870
-41
9603

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + + col2 )
----

query I rowsort
SELECT DISTINCT - col0 * - col2 * + - 84 * + col1 + + 34 AS col1 FROM tab2 AS cor0
----
-16558046
-24481766
-4532438

onlyif mysql # DIV for integer division: 
query I rowsort label-7980
SELECT ALL col2 DIV 34 FROM tab1 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL col2 / 34 FROM tab1 AS cor0
----
1
2
2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 70 - + 98 ) NOT BETWEEN ( col1 ) AND ( - 37 - + 88 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT - - MAX( DISTINCT - - 75 ) AS col0 FROM tab1 cor0
----
75

skipif mysql # not compatible
query I rowsort label-7982
SELECT - - MAX ( DISTINCT - - 75 ) AS col0 FROM tab1 cor0
----
75

query I rowsort
SELECT col1 * + - 95 AS col2 FROM tab1
----
-1330
-4465
-475

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col2 IN ( - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7985
SELECT ALL 59 DIV - + COUNT( * ) + + CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-7985
SELECT ALL 59 / - + COUNT ( * ) + + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7986
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 73 + + col0 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7986
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 73 + + col0 AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col0 + - - 83 + 69 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * - + col1 + + col1 FROM tab2
----
2397
5005
5092

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col2 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ALL + col0 * - col1 + + col1 FROM tab2 AS cor0 WHERE NOT 28 BETWEEN ( 2 / - col0 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + col0 = col1 - - 84 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT ALL - + MAX( + col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL - + MAX ( + col1 ) AS col2 FROM tab1 AS cor0
----
-47

query III rowsort
SELECT * FROM tab2 WHERE ( - + 16 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7994
SELECT - MIN( 41 ) * - MIN( DISTINCT + ( + col0 ) ) FROM tab0 WHERE ( - - col0 + + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7994
SELECT - MIN ( 41 ) * - MIN ( DISTINCT + ( + col0 ) ) FROM tab0 WHERE ( - - col0 + + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT DISTINCT COUNT( ALL 32 ) * - - 89 + + COUNT( * ) col1 FROM tab0
----
270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7995
SELECT DISTINCT COUNT ( ALL 32 ) * - - 89 + + COUNT ( * ) col1 FROM tab0
----
270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 9 * + 70 * + col2 + col0 col0 FROM tab2
----
-14444
-25136
-36465

query I rowsort
SELECT DISTINCT + 2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT ALL + COUNT( * ) - + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL + COUNT ( * ) - + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT + COUNT( * ) * - + 72 AS col0 FROM tab0 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-7999
SELECT + COUNT ( * ) * - + 72 AS col0 FROM tab0 AS cor0
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT - 25 * - COUNT( - 58 ) + - COUNT( * ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-8000
SELECT - 25 * - COUNT ( - 58 ) + - COUNT ( * ) FROM tab2 AS cor0
----
72

query I rowsort
SELECT col1 * - + col2 * + col0 * col2 FROM tab0 AS cor0
----
-182700
-2683935
-950697

query I rowsort
SELECT DISTINCT + 26 * col2 FROM tab0 cor0 WHERE 29 NOT BETWEEN + 91 AND ( + col0 * - col2 + col1 )
----
1222
2574
260

query I rowsort
SELECT ALL + col1 * - col1 - col0 * col2 * - + col1 FROM tab1 AS cor0
----
25050
288627
68348

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 39 ) > + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8005
SELECT DISTINCT CAST( col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8005
SELECT DISTINCT CAST ( col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT - - 84 - COUNT( * ) + COUNT( + 35 ) AS col1 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-8006
SELECT - - 84 - COUNT ( * ) + COUNT ( + 35 ) AS col1 FROM tab1 AS cor0
----
84

query I rowsort
SELECT + col0 - 11 AS col0 FROM tab0 cor0
----
4
76
86

query III rowsort
SELECT * FROM tab1 WHERE - + 80 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8009
SELECT DISTINCT - ( - col0 ) + ( col0 + + col0 * col0 ) AS col0 FROM tab0 WHERE NOT ( - - ( + CAST( col1 AS DECIMAL ) ) / + col1 + col0 ) > - col2
----

skipif mysql # not compatible
query I rowsort label-8009
SELECT DISTINCT - ( - col0 ) + ( col0 + + col0 * col0 ) AS col0 FROM tab0 WHERE NOT ( - - ( + CAST ( col1 AS REAL ) ) / + col1 + col0 ) > - col2
----

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 - + + col0 + + + ( 32 ) + - col2 * - ( col2 ) IS NULL )
----

query I rowsort
SELECT - col2 - + 8 + + + col1 * col2 + + + col0 FROM tab1
----
1291
313
3211

query I rowsort
SELECT DISTINCT 70 * + + 27 FROM tab1 AS cor0
----
1890

query III rowsort
SELECT 37 AS col0, col1 AS col1, + 61 FROM tab1 AS cor0
----
9 values hashing to 1f2f9ff08f887dcdd689cc2567dce832

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < + col2 + 62
----

query I rowsort
SELECT DISTINCT + col0 * + 15 * 33 AS col2 FROM tab1 AS cor0
----
25245
42075
45045

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + ( - col2 ) )
----

query I rowsort
SELECT + 60 * 16 AS col2 FROM tab0 AS cor0
----
960
960
960

onlyif mysql # DIV for integer division: 
query I rowsort label-8018
SELECT + col0 DIV + - col0 col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8018
SELECT + col0 / + - col0 col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - + 73 * + col0 + - + ( - col1 ) FROM tab0 AS cor0
----
-1014
-6330
-7080

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - col2 ) >= 41
----
46
51
23
64
77
40

query I rowsort
SELECT + col0 * - + col2 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT - col1 + + + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT - MIN( DISTINCT + 91 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> col1 * ( + ( + 83 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8023
SELECT - MIN ( DISTINCT + 91 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> col1 * ( + ( + 83 ) )
----
NULL

query I rowsort
SELECT ALL + 95 * col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 50 + - col2 * + col1 AND ( col2 ) - + - col1 + ( - col1 ) * + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 41 + - - col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 73 NOT IN ( col2 * + col0 )
----

query II rowsort
SELECT DISTINCT - + ( 92 ) AS col1, col2 AS col1 FROM tab0 cor0
----
-92
10
-92
47
-92
99

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8029
SELECT ALL 33 / + col2 * + - 46 + CAST( NULL AS SIGNED ) / - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL 33 / + col2 * + - 46 + CAST ( NULL AS INTEGER ) / - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8030
SELECT + ( - + col0 ) DIV 11 + - col2 FROM tab0
----
-107
-17
-48

skipif mysql # not compatible
query I rowsort label-8030
SELECT + ( - + col0 ) / 11 + - col2 FROM tab0
----
-107
-17
-48

query I rowsort
SELECT ALL + col0 * - + col2 + - + col0 + - col0 AS col2 FROM tab0
----
-1044
-735
-9797

query II rowsort
SELECT ALL + col0 AS col1, ( - 58 ) FROM tab2
----
46
-58
64
-58
75
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8033
SELECT COUNT( * ) + MIN( col0 ) DIV - 96 + + 80 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-8033
SELECT COUNT ( * ) + MIN ( col0 ) / - 96 + + 80 FROM tab2 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT - ( - COUNT( ALL - 71 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8034
SELECT - ( - COUNT ( ALL - 71 ) ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE ( col0 ) NOT IN ( + - col2 )
----
14
47
5

query II rowsort
SELECT 88 - - col0, - col1 AS col1 FROM tab0
----
103
-81
175
-21
185
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col0 ) NOT IN ( - - 7, col2 * + 96 * - - col1 + - + 67 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT DISTINCT - 58 * - 80 - - COUNT( * ) FROM tab2 AS cor0
----
4643

skipif mysql # not compatible
query I rowsort label-8038
SELECT DISTINCT - 58 * - 80 - - COUNT ( * ) FROM tab2 AS cor0
----
4643

query I rowsort
SELECT 69 + + - col0 FROM tab2 AS cor0
----
-6
23
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8040
SELECT DISTINCT CAST( - 81 AS SIGNED ) * 29 - COUNT( DISTINCT + - 27 ) FROM tab1 cor0
----
-2350

skipif mysql # not compatible
query I rowsort label-8040
SELECT DISTINCT CAST ( - 81 AS INTEGER ) * 29 - COUNT ( DISTINCT + - 27 ) FROM tab1 cor0
----
-2350

query I rowsort
SELECT DISTINCT + 79 * col0 + - + 41 * col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3306
3686
570

query II rowsort
SELECT - + col0 + col0, col1 FROM tab0 AS cor0
----
0
1
0
21
0
81

query I rowsort
SELECT ALL col2 + col1 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
117
125
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8044
SELECT + + SUM( DISTINCT - col0 ) DIV - + 83 + - COUNT( * ) * - 37 FROM tab0 AS cor0
----
113

skipif mysql # not compatible
query I rowsort label-8044
SELECT + + SUM ( DISTINCT - col0 ) / - + 83 + - COUNT ( * ) * - 37 FROM tab0 AS cor0
----
113

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8045
SELECT ALL - - 52 + col2 AS col2 FROM tab0 WHERE NOT - 54 = - + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-8045
SELECT ALL - - 52 + col2 AS col2 FROM tab0 WHERE NOT - 54 = - + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT ( SUM( - - col2 ) ) * 53 + - 63 FROM tab1
----
11756

skipif mysql # not compatible
query I rowsort label-8046
SELECT ( SUM ( - - col2 ) ) * 53 + - 63 FROM tab1
----
11756

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT COUNT( ALL - - 88 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8047
SELECT COUNT ( ALL - - 88 ) AS col2 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 * + 92 col0 FROM tab0
----
6900
6900
6900

query I rowsort
SELECT - 19 FROM tab2 WHERE NOT - + col1 BETWEEN NULL AND NULL
----

query II rowsort
SELECT - col2 * 35 * + col2, + col0 FROM tab0
----
-343035
97
-3500
87
-77315
15

query I rowsort
SELECT ALL 91 FROM tab0 WHERE NULL NOT IN ( + + 90 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 43 * + - 22 = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8053
SELECT DISTINCT 58 * - col1 + - col2 AS col2, - col1 / - + col1 + - + col0 - + CAST( NULL AS SIGNED ) / + col2 - - col0 * col2 AS col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-2794
NULL
-349
NULL
-908
NULL

skipif mysql # not compatible
query II rowsort label-8053
SELECT DISTINCT 58 * - col1 + - col2 AS col2, - col1 / - + col1 + - + col0 - + CAST ( NULL AS INTEGER ) / + col2 - - col0 * col2 AS col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-2794
NULL
-349
NULL
-908
NULL

query II rowsort
SELECT DISTINCT - 42 AS col1, col2 AS col2 FROM tab0 AS cor0
----
-42
10
-42
47
-42
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8055
SELECT DISTINCT col2 DIV 45 FROM tab1 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT col2 / 45 FROM tab1 AS cor0
----
1
2

query I rowsort
SELECT ALL col1 * + col2 * col0 + - col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
18260
57058
9504

onlyif mysql # DIV for integer division: 
query I rowsort label-8057
SELECT DISTINCT - col0 DIV - + col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT - col0 / - + col0 FROM tab1
----
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 26 >= ( NULL )
----

query II rowsort
SELECT DISTINCT 10 AS col1, col1 FROM tab2 cor0
----
10
51
10
67
10
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL 38 col1, col2 AS col2, + + 8 * col1 * - col0 * 85 AS col2 FROM tab1 AS cor0
----
9 values hashing to cd5ee45155aa2a4debbbd37c3e47303f

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT + MIN( ALL - + col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-8061
SELECT + MIN ( ALL - + col2 ) FROM tab2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-8062
SELECT DISTINCT - col0 * 97 DIV - col0 + + + col0 FROM tab0
----
112
184
194

skipif mysql # not compatible
query I rowsort label-8062
SELECT DISTINCT - col0 * 97 / - col0 + + + col0 FROM tab0
----
112
184
194

onlyif mysql # DIV for integer division: 
query I rowsort label-8063
SELECT DISTINCT ( - col2 ) DIV + + col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8063
SELECT DISTINCT ( - col2 ) / + + col2 FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8064
SELECT ALL + col0 DIV 9 DIV - - col2 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL + col0 / 9 / - - col2 AS col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8065
SELECT - CAST( col0 AS SIGNED ) + col0 + + col1 + - col2 FROM tab2 AS cor0
----
28
37
9

skipif mysql # not compatible
query I rowsort label-8065
SELECT - CAST ( col0 AS INTEGER ) + col0 + + col1 + - col2 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8066
SELECT - COUNT( * ) DIV - - 63 + + 59 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8066
SELECT - COUNT ( * ) / - - 63 + + 59 FROM tab0 AS cor0
----
59

query I rowsort
SELECT DISTINCT ( 6 ) AS col1 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8068
SELECT ALL - col1 * - 34 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8068
SELECT ALL - col1 * - 34 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT - + 74 + - COUNT( * ) FROM tab2 WHERE + 58 - 35 NOT BETWEEN col0 AND - 22
----
-77

skipif mysql # not compatible
query I rowsort label-8069
SELECT - + 74 + - COUNT ( * ) FROM tab2 WHERE + 58 - 35 NOT BETWEEN col0 AND - 22
----
-77

query I rowsort
SELECT ALL 94 - + + ( 32 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT - 66 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT ALL ( - - 52 ) + col2 FROM tab2
----
110
75
92

query I rowsort
SELECT DISTINCT - col0 + + + 0 AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT + col1 * - 62 FROM tab2 AS cor0
----
-3162
-4154
-4774

query I rowsort
SELECT - - col0 * - 23 AS col2 FROM tab0 AS cor0
----
-2001
-2231
-345

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = col0 * - 89
----

query I rowsort
SELECT + + col1 * - 61 FROM tab0 AS cor0
----
-1281
-4941
-61

query I rowsort
SELECT DISTINCT col1 * + 10 * col1 + 8 - col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8079
SELECT + col1 * - - 37 FROM tab2 AS cor0 WHERE NOT ( NOT + CAST( - col0 AS SIGNED ) IS NOT NULL )
----
1887
2479
2849

skipif mysql # not compatible
query I rowsort label-8079
SELECT + col1 * - - 37 FROM tab2 AS cor0 WHERE NOT ( NOT + CAST ( - col0 AS INTEGER ) IS NOT NULL )
----
1887
2479
2849

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT + + MIN( ALL - + col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8080
SELECT + + MIN ( ALL - + col2 ) AS col0 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT col2 FROM tab0 WHERE NOT - 20 * - - 9 NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT DISTINCT + 51 FROM tab0 WHERE NOT 29 IS NULL
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-8083
SELECT 6 DIV col1 AS col1 FROM tab0
----
0
0
6

skipif mysql # not compatible
query I rowsort label-8083
SELECT 6 / col1 AS col1 FROM tab0
----
0
0
6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 53 * col1 NOT IN ( + col2 )
----

query I rowsort
SELECT ALL + col1 + - + col0 AS col2 FROM tab2
----
-8
13
5

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 86 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT + - col1 * + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-8088
SELECT ALL + 82, + SUM( + 0 ) AS col1 FROM tab1 AS cor0
----
82
0

skipif mysql # not compatible
query II rowsort label-8088
SELECT ALL + 82, + SUM ( + 0 ) AS col1 FROM tab1 AS cor0
----
82
0

query I rowsort
SELECT col2 * - col2 + 64 FROM tab2 AS cor0
----
-1536
-3300
-465

query I rowsort
SELECT - col0 + 20 + col2 * + col0 FROM tab2 AS cor0
----
1032
2516
4295

query I rowsort
SELECT DISTINCT col1 * ( + 57 ) FROM tab2
----
2907
3819
4389

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT ALL MAX( 65 ) + COUNT( * ) AS col2 FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-8092
SELECT ALL MAX ( 65 ) + COUNT ( * ) AS col2 FROM tab1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT MIN( DISTINCT 3 ) + + SUM( - col0 ) AS col0 FROM tab1
----
-224

skipif mysql # not compatible
query I rowsort label-8093
SELECT MIN ( DISTINCT 3 ) + + SUM ( - col0 ) AS col0 FROM tab1
----
-224

query I rowsort
SELECT ALL + col2 + - - 16 + col2 AS col1 FROM tab0
----
110
214
36

query I rowsort
SELECT ALL - ( col1 ) + - col0 FROM tab2
----
-141
-142
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 1 <= + - col1 - + col1 + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 col0 FROM tab1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT COUNT( * ) + COUNT( * ) + - 42 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-8098
SELECT COUNT ( * ) + COUNT ( * ) + - 42 FROM tab1
----
-36

query I rowsort
SELECT ALL + col2 - 6 FROM tab0
----
4
41
93

query II rowsort
SELECT col2 AS col2, 35 * - + col1 + col0 FROM tab1
----
59
-90
68
-1554
96
-439

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE ( NOT + col1 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - 51 * col2 - + 13 * 75 FROM tab2 cor0
----
-2148
-3015
-3933

query I rowsort
SELECT - 50 * - ( - col0 ) - - + col0 FROM tab1
----
-2499
-4165
-4459

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT DISTINCT ( - MIN( DISTINCT + + col1 ) ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-8104
SELECT DISTINCT ( - MIN ( DISTINCT + + col1 ) ) FROM tab2
----
-51

query I rowsort
SELECT - 13 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-13
-13
-13

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - - 55 )
----

query I rowsort
SELECT ALL col1 * 69 AS col0 FROM tab1 AS cor0
----
3243
345
966

query I rowsort
SELECT 28 * + + col1 FROM tab1 AS cor0
----
1316
140
392

onlyif mysql # DIV for integer division: 
query I rowsort label-8109
SELECT col0 DIV col0 * + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8109
SELECT col0 / col0 * + col2 FROM tab1
----
59
68
96

query II rowsort
SELECT - col2 AS col1, col0 AS col2 FROM tab0
----
-10
87
-47
15
-99
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 62 ) col1 FROM tab1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT COUNT( * ) * 40 AS col0 FROM tab0
----
120

skipif mysql # not compatible
query I rowsort label-8112
SELECT COUNT ( * ) * 40 AS col0 FROM tab0
----
120

query I rowsort
SELECT - 74 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - col0 AS col0, - col1 * + col2 AS col2 FROM tab0 cor0
----
-15
-3807
-87
-210
-97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT DISTINCT + - ( + + COUNT( * ) ) AS col2 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8115
SELECT DISTINCT + - ( + + COUNT ( * ) ) AS col2 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8116
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8116
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT DISTINCT 71 + - 2 FROM tab1
----
69

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 + - col2 IN ( col2, + col1, col2 )
----
64
77
40
75
67
58

query I rowsort
SELECT col1 * + - 14 * col0 FROM tab0 AS cor0
----
-1358
-17010
-25578

query II rowsort
SELECT ALL 66 * - + 89, + col0 FROM tab1 cor0
----
-5874
51
-5874
85
-5874
91

query I rowsort
SELECT - 34 * - col0 * - col1 AS col0 FROM tab0 AS cor0
----
-3298
-41310
-62118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 * 65 col1 FROM tab2 cor0
----
4615
4615
4615

query I rowsort
SELECT ALL - col2 * 67 + - - 8 FROM tab1 AS cor0
----
-3945
-4548
-6424

onlyif mysql # aggregate syntax: 
query II rowsort label-8124
SELECT COUNT( * ), MIN( + - col2 ) AS col1 FROM tab2
----
3
-58

skipif mysql # not compatible
query II rowsort label-8124
SELECT COUNT ( * ), MIN ( + - col2 ) AS col1 FROM tab2
----
3
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8125
SELECT ALL - 48 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE + - 18 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8125
SELECT ALL - 48 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE + - 18 IS NULL
----

query I rowsort
SELECT + 61 FROM tab2 WHERE ( - 95 ) / + - 75 * - + col2 IS NOT NULL
----
61
61
61

query I rowsort
SELECT DISTINCT - col0 * + col0 * ( - 91 ) AS col2 FROM tab1
----
236691
657475
753571

query I rowsort
SELECT ALL col2 + + 47 FROM tab2
----
105
70
87

query III rowsort
SELECT * FROM tab1 WHERE col1 * + col2 + + + col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 >= - 46 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col2 + - + 5 AS col1 FROM tab2 cor0
----
-28
-45
-63

query I rowsort
SELECT + + col1 * - - col0 * + col1 AS col0 FROM tab1 AS cor0
----
201019
2125
9996

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( + 73 ) * - 93 FROM tab1, tab0 cor0
----
9 values hashing to 98368d04c696a4401260d98401959d72

query II rowsort
SELECT - col0, ( col2 ) FROM tab1
----
-51
96
-85
59
-91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1, col2 + + col2 col2 FROM tab2 AS cor0
----
-51
46
-67
116
-77
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 25 * + col1 * + col0 col1 FROM tab0 AS cor0
----
-2425
-30375
-45675

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0 WHERE NOT - col0 + + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8138
SELECT ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0 WHERE NOT - col0 + + col1 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8139
SELECT DISTINCT - + col0 DIV - 52 AS col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8139
SELECT DISTINCT - + col0 / - 52 AS col0 FROM tab2 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8140
SELECT - CAST( NULL AS SIGNED ), col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-8140
SELECT - CAST ( NULL AS INTEGER ), col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8141
SELECT DISTINCT - 45 * - col0 - + 9 DIV col1 FROM tab2 AS cor0
----
2070
2880
3375

skipif mysql # not compatible
query I rowsort label-8141
SELECT DISTINCT - 45 * - col0 - + 9 / col1 FROM tab2 AS cor0
----
2070
2880
3375

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + + 38 * - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8143
SELECT ALL - col1 DIV + 30 AS col1, - 6 + + col2 AS col1 FROM tab1
----
-1
62
0
53
0
90

skipif mysql # not compatible
query II rowsort label-8143
SELECT ALL - col1 / + 30 AS col1, - 6 + + col2 AS col1 FROM tab1
----
-1
62
0
53
0
90

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 8 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col1 + col1, - col0 AS col0, + col1 col2 FROM tab2
----
9 values hashing to ffd8edb3dfc9115deacc2cce2052c91b

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT ALL + + COUNT( * ) * - SUM( DISTINCT - col0 ) FROM tab0 AS cor0
----
597

skipif mysql # not compatible
query I rowsort label-8146
SELECT ALL + + COUNT ( * ) * - SUM ( DISTINCT - col0 ) FROM tab0 AS cor0
----
597

query II rowsort
SELECT col0 * - - col1 + + col0 - + col0 + + + col2 * + col2 * + col2 AS col2, 16 FROM tab2 AS cor0 WHERE NOT + ( - 70 ) IS NULL
----
14513
16
200137
16
68928
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT ALL 62 + - - COUNT( * ) FROM tab0 cor0
----
65

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL 62 + - - COUNT ( * ) FROM tab0 cor0
----
65

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 + - col2 NOT IN ( 40, - col2 + - ( + col1 ) + + 44 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-8150
SELECT col2 AS col1, 3 DIV - 72 FROM tab2
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-8150
SELECT col2 AS col1, 3 / - 72 FROM tab2
----
23
0
40
0
58
0

query II rowsort
SELECT ALL + col1 AS col0, col2 AS col0 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT - col1 * + + col1 AS col1 FROM tab0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT 61 + - - COUNT( * ) FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-8153
SELECT 61 + - - COUNT ( * ) FROM tab1 AS cor0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8154
SELECT - CAST( + ( - col1 ) AS SIGNED ) + - 82 + - - 83 * col2 - - + col0 AS col0 FROM tab2 cor0
----
1924
3379
4874

skipif mysql # not compatible
query I rowsort label-8154
SELECT - CAST ( + ( - col1 ) AS INTEGER ) + - 82 + - - 83 * col2 - - + col0 AS col0 FROM tab2 cor0
----
1924
3379
4874

query II rowsort
SELECT ALL - - 34, - 91 * + 3 AS col2 FROM tab2 AS cor0
----
34
-273
34
-273
34
-273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 col0, 98 AS col1 FROM tab0 cor0
----
10
98
47
98
99
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT COUNT( * ) AS col1 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8158
SELECT COUNT ( * ) AS col1 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8159
SELECT ALL COUNT( * ) * - MIN( ALL CAST( col0 AS SIGNED ) ) + - - 76 * + 86 * - 36 FROM tab2
----
-235434

skipif mysql # not compatible
query I rowsort label-8159
SELECT ALL COUNT ( * ) * - MIN ( ALL CAST ( col0 AS INTEGER ) ) + - - 76 * + 86 * - 36 FROM tab2
----
-235434

query I rowsort
SELECT ALL + col1 + + 70 AS col0 FROM tab2
----
121
137
147

query I rowsort
SELECT ALL - 31 - col0 FROM tab1
----
-116
-122
-82

query I rowsort
SELECT DISTINCT + col0 + - col2 * - 76 FROM tab1
----
4569
5259
7347

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT COUNT( DISTINCT + col2 ) * + 22 AS col1 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-8163
SELECT COUNT ( DISTINCT + col2 ) * + 22 AS col1 FROM tab2
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 96 ) col1 FROM tab1
----
96
96
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8165
SELECT - CAST( + COUNT( ALL + - col2 ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8165
SELECT - CAST ( + COUNT ( ALL + - col2 ) AS INTEGER ) FROM tab2
----
-3

query I rowsort
SELECT + 86 * - col0 AS col0 FROM tab1
----
-4386
-7310
-7826

query I rowsort
SELECT DISTINCT col2 - - - col1 * + + col0 + + - col1 AS col2 FROM tab0
----
-1249
-1838
1

query I rowsort
SELECT DISTINCT + col0 - + col1 * col2 FROM tab1 AS cor0
----
-1293
-210
-3105

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + - col1 IN ( - + 72, + col1, + col2, + col1, col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8170
SELECT DISTINCT + - ( - col0 ) DIV + 73 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8170
SELECT DISTINCT + - ( - col0 ) / + 73 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT + ( 88 ) * col0 + + 7 AS col0 FROM tab1 AS cor0
----
4495
7487
8015

query I rowsort
SELECT col1 * + + 27 AS col2 FROM tab0
----
2187
27
567

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT SUM( - - 76 ) FROM tab1
----
228

skipif mysql # not compatible
query I rowsort label-8173
SELECT SUM ( - - 76 ) FROM tab1
----
228

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8174
SELECT DISTINCT - col2 * 66 + CAST( NULL AS SIGNED ) AS col1, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-8174
SELECT DISTINCT - col2 * 66 + CAST ( NULL AS INTEGER ) AS col1, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT ALL + col0 * + col2 + - 62 * - + col2 + + - col1 AS col0 FROM tab2 AS cor0
----
2433
4963
7879

query I rowsort
SELECT DISTINCT ( ( + - 80 ) ) FROM tab2 AS cor0
----
-80

query I rowsort
SELECT + col0 * + - ( 65 ) AS col2 FROM tab1 AS cor0
----
-3315
-5525
-5915

query I rowsort
SELECT ALL 26 * - + ( col0 ) FROM tab1
----
-1326
-2210
-2366

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 < - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col2, + col2 AS col0 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT ALL COUNT( * ) * COUNT( * ) + COUNT( * ) AS col2 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL COUNT ( * ) * COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT ALL COUNT( * ) * - MIN( + + col1 ) FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL COUNT ( * ) * - MIN ( + + col1 ) FROM tab2
----
-153

onlyif mysql # DIV for integer division: 
query II rowsort label-8183
SELECT DISTINCT + col2 AS col2, + col0 DIV + - ( col0 ) FROM tab0
----
10
-1
47
-1
99
-1

skipif mysql # not compatible
query II rowsort label-8183
SELECT DISTINCT + col2 AS col2, + col0 / + - ( col0 ) FROM tab0
----
10
-1
47
-1
99
-1

query I rowsort
SELECT ALL 60 * - col0 FROM tab2
----
-2760
-3840
-4500

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= - 85
----

query I rowsort
SELECT ALL + col0 * 98 AS col0 FROM tab2
----
4508
6272
7350

onlyif mysql # DIV for integer division: 
query I rowsort label-8187
SELECT DISTINCT 68 DIV - - col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8187
SELECT DISTINCT 68 / - - col2 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT ALL - col1 + + ( - 32 ) AS col0 FROM tab1 AS cor0
----
-37
-46
-79

query I rowsort
SELECT DISTINCT - col2 * - col1 + 52 AS col1 FROM tab0 AS cor0
----
151
262
3859

query I rowsort
SELECT ALL + col0 + - 30 AS col1 FROM tab2
----
16
34
45

query I rowsort
SELECT DISTINCT 20 + + - 52 AS col0 FROM tab2, tab2 cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT DISTINCT COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-8192
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT - 64 * MIN( DISTINCT + + col1 ) AS col2 FROM tab1
----
-320

skipif mysql # not compatible
query I rowsort label-8194
SELECT - 64 * MIN ( DISTINCT + + col1 ) AS col2 FROM tab1
----
-320

query I rowsort
SELECT - + col1 * + col2 * - 22 FROM tab2 AS cor0
----
25806
67760
85492

onlyif mysql # DIV for integer division: 
query I rowsort label-8196
SELECT col1 DIV 15 DIV + - col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8196
SELECT col1 / 15 / + - col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - + 9 * - col1 + + col1 AS col2 FROM tab2 AS cor0
----
510
670
770

query I rowsort
SELECT - - ( ( - - col1 ) ) FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL + + 77 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL OR NULL <> + col0
----
77
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8200
SELECT ALL + + ( - - 72 ) * + + col2 + + + 44 - - col1 FROM tab2 WHERE NOT NULL <= - col0 - - - CAST( NULL AS SIGNED ) AND NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL + + ( - - 72 ) * + + col2 + + + 44 - - col1 FROM tab2 WHERE NOT NULL <= - col0 - - - CAST ( NULL AS INTEGER ) AND NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + + col0 AS col1 FROM tab1 WHERE - 71 IS NOT NULL
----
51
85
91

query I rowsort
SELECT + col2 * + 69 - 14 AS col1 FROM tab2
----
1573
2746
3988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - + 8 - + col2 col1 FROM tab1
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8204
SELECT ALL col1 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8205
SELECT DISTINCT + 70 + + + MIN( + col2 ) AS col0, 36 FROM tab0
----
80
36

skipif mysql # not compatible
query II rowsort label-8205
SELECT DISTINCT + 70 + + + MIN ( + col2 ) AS col0, 36 FROM tab0
----
80
36

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8206
SELECT ALL - col1 - + col2 + - CAST( 76 AS SIGNED ) DIV - col2 FROM tab2
----
-116
-124
-71

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL - col1 - + col2 + - CAST ( 76 AS INTEGER ) / - col2 FROM tab2
----
-116
-124
-71

query III rowsort
SELECT * FROM tab2 WHERE + - 30 + + 87 < NULL
----

query I rowsort
SELECT DISTINCT ( - 80 ) - + + 36 FROM tab1
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT - COUNT( * ) + - - 57 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-8209
SELECT - COUNT ( * ) + - - 57 FROM tab2
----
54

query II rowsort
SELECT DISTINCT - col1 AS col0, - col2 + 42 FROM tab1
----
-14
-54
-47
-26
-5
-17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8211
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + + - col1 * + + CAST( + 51 AS SIGNED ) * col2 + + - col1 IN ( - - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8211
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + + - col1 * + + CAST ( + 51 AS INTEGER ) * col2 + + - col1 IN ( - - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT col1 * col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8212
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col1 * col2 IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 NOT BETWEEN + 90 AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8214
SELECT + 74 DIV - + ( col0 ) + - col0 + + col2 + - - col0 * + col1 * + + 52 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
22074
222381
37172

skipif mysql # not compatible
query I rowsort label-8214
SELECT + 74 / - + ( col0 ) + - col0 + + col2 + - - col0 * + col1 * + + 52 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
22074
222381
37172

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT - 35 * - 97 * + COUNT( * ) FROM tab1
----
10185

skipif mysql # not compatible
query I rowsort label-8215
SELECT - 35 * - 97 * + COUNT ( * ) FROM tab1
----
10185

query I rowsort
SELECT ALL - 70 * + + col1 AS col1 FROM tab0
----
-1470
-5670
-70

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * - col1 IN ( + col1, + 47, + + 72 * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-8218
SELECT - - col2 DIV col1, + col1 FROM tab1 AS cor0
----
1
47
11
5
6
14

skipif mysql # not compatible
query II rowsort label-8218
SELECT - - col2 / col1, + col1 FROM tab1 AS cor0
----
1
47
11
5
6
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT SUM( ALL + + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8219
SELECT SUM ( ALL + + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0 )
----
NULL

query II rowsort
SELECT col1 * + + col1 * - col0 * - col2, col2 FROM tab2 AS cor0
----
15178240
40
19527150
58
2751858
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT DISTINCT - COUNT( + + col2 ) AS col1 FROM tab1 AS cor0 WHERE col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8221
SELECT DISTINCT - COUNT ( + + col2 ) AS col1 FROM tab1 AS cor0 WHERE col0 > NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8222
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) DIV 54 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8222
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) / 54 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8223
SELECT col2 - - col1 AS col0 FROM tab2 AS cor0 WHERE NOT CAST( col0 AS DECIMAL ) + - col1 > col0
----
117
125
74

skipif mysql # not compatible
query I rowsort label-8223
SELECT col2 - - col1 AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( col0 AS REAL ) + - col1 > col0
----
117
125
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8224
SELECT ALL CAST( NULL AS SIGNED ) + + ( - - COUNT( * ) ) AS col1, + 6 col2 FROM tab2
----
NULL
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8224
SELECT ALL CAST ( NULL AS INTEGER ) + + ( - - COUNT ( * ) ) AS col1, + 6 col2 FROM tab2
----
NULL
6

query I rowsort
SELECT ALL col0 * + + col0 + col0 FROM tab1
----
2652
7310
8372

query I rowsort
SELECT DISTINCT col1 * + + 90 FROM tab0
----
1890
7290
90

query I rowsort
SELECT col1 + + + 28 FROM tab2
----
105
79
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT + 65 + - - COUNT( * ) FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-8228
SELECT + 65 + - - COUNT ( * ) FROM tab0 AS cor0
----
68

query I rowsort
SELECT DISTINCT col0 + + + ( + col0 ) + - 4 FROM tab2
----
124
146
88

query II rowsort
SELECT DISTINCT col0, 1 + + col1 FROM tab1
----
51
15
85
6
91
48

query I rowsort
SELECT ALL - - col2 + col2 AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT - + COUNT( * ) + - + COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8232
SELECT - + COUNT ( * ) + - + COUNT ( * ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT ALL - - 25 - col0 + + - col2 FROM tab0 AS cor0
----
-171
-37
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT ALL COUNT( * ) * - + 40 FROM tab1 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL COUNT ( * ) * - + 40 FROM tab1 AS cor0
----
-120

query I rowsort
SELECT + 12 FROM tab2 AS cor0 WHERE - 51 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8237
SELECT DISTINCT col0 + - + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8237
SELECT DISTINCT col0 + - + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + - col1 AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-8239
SELECT DISTINCT ( - - COUNT( * ) ) AS col0, + 86 - - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
83

skipif mysql # not compatible
query II rowsort label-8239
SELECT DISTINCT ( - - COUNT ( * ) ) AS col0, + 86 - - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT + 78 * + 85 * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
59670

skipif mysql # not compatible
query I rowsort label-8240
SELECT + 78 * + 85 * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
59670

query I rowsort
SELECT + - 48 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT + - 54 + + 9 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT + MAX( DISTINCT - 34 ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-34

skipif mysql # not compatible
query I rowsort label-8243
SELECT + MAX ( DISTINCT - 34 ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-34

query I rowsort
SELECT ALL + - ( col1 ) AS col1 FROM tab0 WHERE NOT + - col1 IS NULL
----
-1
-21
-81

query II rowsort
SELECT DISTINCT + + 88, col1 FROM tab1 AS cor0
----
88
14
88
47
88
5

query II rowsort
SELECT DISTINCT - col0, 37 AS col2 FROM tab1 AS cor0
----
-51
37
-85
37
-91
37

query II rowsort
SELECT + + col0, col1 * + 18 * - 76 FROM tab1 AS cor0
----
51
-19152
85
-6840
91
-64296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8248
SELECT DISTINCT + - CAST( + + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8248
SELECT DISTINCT + - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8249
SELECT - - CAST( NULL AS SIGNED ), + col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-8249
SELECT - - CAST ( NULL AS INTEGER ), + col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 - - col2 + - col0 <> + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT SUM( DISTINCT - col0 ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-8251
SELECT SUM ( DISTINCT - col0 ) AS col2 FROM tab1
----
-227

query III rowsort
SELECT * FROM tab2 WHERE ( - - ( + col0 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT - MIN( ALL - col2 ) + MIN( - col1 ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8254
SELECT - MIN ( ALL - col2 ) + MIN ( - col1 ) FROM tab0 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT + 95 + + MIN( col1 ) AS col2 FROM tab1 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-8255
SELECT + 95 + + MIN ( col1 ) AS col2 FROM tab1 AS cor0
----
100

query I rowsort
SELECT ALL + - col1 + + - 97 FROM tab0 AS cor0
----
-118
-178
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 + + col1 * col1 AS col2, 69 col0 FROM tab2
----
2578
69
4431
69
5889
69

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8258
SELECT ALL col1 / + ( + col0 ) * + col2 + + CAST( NULL AS DECIMAL ) + - CAST( NULL AS SIGNED ) - + 60 * + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8258
SELECT ALL col1 / + ( + col0 ) * + col2 + + CAST ( NULL AS REAL ) + - CAST ( NULL AS INTEGER ) - + 60 * + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 66 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8260
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 49 / + col0 <> - - CAST( NULL AS SIGNED ) * + col0 + col2
----

skipif mysql # not compatible
query III rowsort label-8260
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 49 / + col0 <> - - CAST ( NULL AS INTEGER ) * + col0 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8261
SELECT * FROM tab0 AS cor0 WHERE + CAST( - - 52 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8261
SELECT * FROM tab0 AS cor0 WHERE + CAST ( - - 52 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col0 * 97 FROM tab2 AS cor0
----
4462
6208
7275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 84 * - 81 * - + 82 * + 15 - - - 82 * + col1 + + + col0 col0 FROM tab1 AS cor0
----
8365157
8367823
8368595

query I rowsort
SELECT DISTINCT - - 52 - - col2 + col0 AS col2 FROM tab1 AS cor0
----
196
199
211

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8265
SELECT ALL + 69 - - ( + col1 ) AS col1, CAST( + - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
116
-68
74
-59
83
-96

skipif mysql # not compatible
query II rowsort label-8265
SELECT ALL + 69 - - ( + col1 ) AS col1, CAST ( + - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
116
-68
74
-59
83
-96

query I rowsort
SELECT - col2 - 15 AS col2 FROM tab0 AS cor0
----
-114
-25
-62

query I rowsort
SELECT ALL - 15 * - 3 FROM tab2 AS cor0
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT ALL + 46 * MIN( DISTINCT col0 ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-6348

skipif mysql # not compatible
query I rowsort label-8268
SELECT ALL + 46 * MIN ( DISTINCT col0 ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-6348

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 * - + col1 * - 59 + + col2 IS NOT NULL
----

query I rowsort
SELECT ALL ( - - ( + col2 ) ) * + col0 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8271
SELECT DISTINCT COUNT( DISTINCT - - col2 ) DIV - 26 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8271
SELECT DISTINCT COUNT ( DISTINCT - - col2 ) / - 26 FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - 13 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT + MAX( 39 ) FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-8273
SELECT + MAX ( 39 ) FROM tab0
----
39

query II rowsort
SELECT 33 AS col2, 16 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 99f91d9378207a2e02cc8c64732040b6

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT + COUNT( + 90 ) * - 88 * + - 43 FROM tab0
----
11352

skipif mysql # not compatible
query I rowsort label-8275
SELECT + COUNT ( + 90 ) * - 88 * + - 43 FROM tab0
----
11352

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT ALL - - MIN( 98 ) FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-8276
SELECT ALL - - MIN ( 98 ) FROM tab0 AS cor0
----
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 >= - - ( + + col1 ) + + ( - + ( - 75 ) )
----
15
81
47
87
21
10

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 18 BETWEEN NULL AND col2
----
87
21
10

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 + - + 99 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT MIN( - 33 ) AS col0 FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-8281
SELECT MIN ( - 33 ) AS col0 FROM tab1 AS cor0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8282
SELECT - col2 * - CAST( - col2 AS SIGNED ), - ( 98 ) FROM tab0 WHERE col1 IS NULL
----

skipif mysql # not compatible
query II rowsort label-8282
SELECT - col2 * - CAST ( - col2 AS INTEGER ), - ( 98 ) FROM tab0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT - 65 + - col0 + + col1 AS col1 FROM tab1
----
-102
-109
-145

query II rowsort
SELECT DISTINCT 58 AS col0, col1 FROM tab0
----
58
1
58
21
58
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8285
SELECT 77 + - col0 / + col0 * ( + CAST( NULL AS SIGNED ) ) - 25 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8285
SELECT 77 + - col0 / + col0 * ( + CAST ( NULL AS INTEGER ) ) - 25 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT - col1 + + - 26 + + 28 + col1 AS col1, col2 FROM tab1
----
2
59
2
68
2
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8287
SELECT + col1 + - 82 DIV 99 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8287
SELECT + col1 + - 82 / 99 FROM tab2
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 + - col2 col2 FROM tab0
----
-14
38
75

query I rowsort
SELECT ALL + 97 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 42 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN + col2 AND 33
----

query I rowsort
SELECT DISTINCT - + 83 * + 59 AS col0 FROM tab2 AS cor0
----
-4897

query I rowsort
SELECT + ( - col0 ) - - + col2 + + + col0 * + col2 FROM tab2 AS cor0
----
1035
2536
4333

query I rowsort
SELECT ALL + - 36 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT COUNT( * ) * + 31 - - COUNT( * ) AS col2 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-8295
SELECT COUNT ( * ) * + 31 - - COUNT ( * ) AS col2 FROM tab2
----
96

query I rowsort
SELECT 64 + - col1 FROM tab2
----
-13
-3
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT ALL 95 - SUM( ALL - 54 ) AS col0 FROM tab0
----
257

skipif mysql # not compatible
query I rowsort label-8297
SELECT ALL 95 - SUM ( ALL - 54 ) AS col0 FROM tab0
----
257

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT DISTINCT + 3 + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8298
SELECT DISTINCT + 3 + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8299
SELECT DISTINCT - col1 * col0 DIV 10 FROM tab0 AS cor0
----
-121
-182
-9

skipif mysql # not compatible
query I rowsort label-8299
SELECT DISTINCT - col1 * col0 / 10 FROM tab0 AS cor0
----
-121
-182
-9

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
10
47
99

query II rowsort
SELECT - 44 * - col0 + col1 AS col1, 18 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT - col1 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col2 + 88 * col0 * - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT MAX( DISTINCT - + 68 ) FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-8304
SELECT MAX ( DISTINCT - + 68 ) FROM tab0
----
-68

query I rowsort
SELECT col0 * + - 29 AS col2 FROM tab1
----
-1479
-2465
-2639

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT + COUNT( 97 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8306
SELECT + COUNT ( 97 ) col0 FROM tab1
----
3

query II rowsort
SELECT DISTINCT + col2 AS col0, col1 + - ( col0 ) AS col0 FROM tab2
----
23
5
40
13
58
-8

query II rowsort
SELECT DISTINCT - col0 AS col0, col0 AS col2 FROM tab1
----
-51
51
-85
85
-91
91

query I rowsort
SELECT ALL + col1 * - col2 * + col0 AS col1 FROM tab1
----
-25075
-290836
-68544

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT BETWEEN ( col1 ) + + col2 AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8311
SELECT ALL + 69 DIV col1 AS col0 FROM tab0
----
0
3
69

skipif mysql # not compatible
query I rowsort label-8311
SELECT ALL + 69 / col1 AS col0 FROM tab0
----
0
3
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8312
SELECT DISTINCT - col1 + ( col0 ) * + CAST( NULL AS SIGNED ) * - col0 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8312
SELECT DISTINCT - col1 + ( col0 ) * + CAST ( NULL AS INTEGER ) * - col0 col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col2 + - col0 FROM tab0 WHERE NOT + col0 - - 35 + + - ( col0 ) < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 33 + col2 - col0 > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IS NULL AND NOT ( NOT col0 < - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT MIN( DISTINCT 35 ) FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-8316
SELECT MIN ( DISTINCT 35 ) FROM tab2 AS cor0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8317
SELECT DISTINCT - CAST( + col0 AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8317
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT DISTINCT + COUNT( DISTINCT - 14 ) * + SUM( ALL + - col0 ) * - 88 AS col0 FROM tab1 AS cor0
----
19976

skipif mysql # not compatible
query I rowsort label-8318
SELECT DISTINCT + COUNT ( DISTINCT - 14 ) * + SUM ( ALL + - col0 ) * - 88 AS col0 FROM tab1 AS cor0
----
19976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8319
SELECT - CAST( NULL AS SIGNED ) * - - COUNT( * ) * - 28 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8319
SELECT - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) * - 28 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 58 FROM tab2 cor0 WHERE NOT col1 * - - col2 * - - ( - + col1 ) * - col1 + + 74 IS NULL
----
58
58
58

query II rowsort
SELECT - ( + + ( 67 ) ) * - - col1, col0 - + 19 + 3 + ( ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
-1407
-16
-5427
-16
-67
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 57 ) + - - col2 + + col2 * col2 col1 FROM tab1 AS cor0
----
3483
4635
9255

query I rowsort
SELECT DISTINCT - col1 + - 26 - 24 AS col0 FROM tab0 AS cor0
----
-131
-51
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT - ( + + SUM( DISTINCT + 81 ) ) AS col1 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-8324
SELECT - ( + + SUM ( DISTINCT + 81 ) ) AS col1 FROM tab1
----
-81

query III rowsort
SELECT * FROM tab2 WHERE 25 + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + + 88 col1 FROM tab1 WHERE + col0 > + - col0
----
102
135
93

query I rowsort
SELECT - - 14 + - - 99 * 52 FROM tab0 AS cor0
----
5162
5162
5162

query I rowsort
SELECT DISTINCT 50 * - ( - - col0 ) FROM tab1 AS cor0
----
-2550
-4250
-4550

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8329
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8329
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT 95 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 37 ) col2 FROM tab2
----
-37
-37
-37

query I rowsort
SELECT + - 31 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 + - col2 * 74 <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8334
SELECT + col1 FROM tab1 WHERE NOT col1 >= + CAST( - - col1 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-8334
SELECT + col1 FROM tab1 WHERE NOT col1 >= + CAST ( - - col1 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT - COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( + 69 ) + - + 89
----
0

skipif mysql # not compatible
query I rowsort label-8335
SELECT - COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( + 69 ) + - + 89
----
0

query I rowsort
SELECT - + col2 * + 91 AS col2 FROM tab1 cor0
----
-5369
-6188
-8736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8337
SELECT ALL - CAST( NULL AS SIGNED ) * + - ( + col0 ) * + + ( 4 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8337
SELECT ALL - CAST ( NULL AS INTEGER ) * + - ( + col0 ) * + + ( 4 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT col1, col0 + - col0 + + + 79 AS col2, 41 + - col1 FROM tab2 AS cor0
----
9 values hashing to 949458a351af80db9154f77c95d30ec4

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE NOT col1 * + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT DISTINCT 99 * COUNT( * ) + - ( + COUNT( * ) ) - 11 + + COUNT( * ) - COUNT( * ) FROM tab2 WHERE NOT + + 38 IS NOT NULL
----
-11

skipif mysql # not compatible
query I rowsort label-8340
SELECT DISTINCT 99 * COUNT ( * ) + - ( + COUNT ( * ) ) - 11 + + COUNT ( * ) - COUNT ( * ) FROM tab2 WHERE NOT + + 38 IS NOT NULL
----
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 * - + 72 col2 FROM tab1
----
-2664
-2664
-2664

query I rowsort
SELECT DISTINCT + col1 * - 12 FROM tab1
----
-168
-564
-60

query I rowsort
SELECT + + col2 - col1 AS col1 FROM tab0 WHERE NOT NULL BETWEEN + + 10 - + col0 AND NULL
----

query I rowsort
SELECT DISTINCT col1 * - 32 FROM tab2
----
-1632
-2144
-2464

onlyif mysql # DIV for integer division: 
query II rowsort label-8345
SELECT DISTINCT - col0 * - col1 AS col0, + col0 DIV - + 95 FROM tab2 AS cor0
----
2346
0
4928
0
5025
0

skipif mysql # not compatible
query II rowsort label-8345
SELECT DISTINCT - col0 * - col1 AS col0, + col0 / - + 95 FROM tab2 AS cor0
----
2346
0
4928
0
5025
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( + 70 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( - 84 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 + col2 BETWEEN + col1 AND - - 95 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - 65, + col1 AS col1 FROM tab0
----
-65
1
-65
21
-65
81

query I rowsort
SELECT - col0 * - 38 AS col0 FROM tab2 AS cor0
----
1748
2432
2850

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE 7 > NULL
----

query I rowsort
SELECT 15 * - - 97 FROM tab0 AS cor0
----
1455
1455
1455

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT SUM( DISTINCT - + col1 ) + - COUNT( * ) FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-8353
SELECT SUM ( DISTINCT - + col1 ) + - COUNT ( * ) FROM tab2 AS cor0
----
-198

query I rowsort
SELECT col2 + + ( - 37 ) * - ( - - col0 ) AS col1 FROM tab0 AS cor0
----
3229
3688
602

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 89 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8356
SELECT DISTINCT + AVG ( ALL - - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8356
SELECT DISTINCT + AVG ( ALL - - CAST ( NULL AS REAL ) ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col2 <= col0 * col2 / col0 + - col2 + - col2 * - ( - 7 )
----

query I rowsort
SELECT DISTINCT 69 + + + col2 FROM tab1
----
128
137
165

query I rowsort
SELECT DISTINCT - 97 + col2 FROM tab0
----
-50
-87
2

query I rowsort
SELECT DISTINCT 43 * - col0 * col2 * - col2 + - + 12 FROM tab0
----
1424793
374088
40879959

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT ALL - 74 * - MAX( - ( 66 ) ) - - 40 FROM tab2
----
-4844

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL - 74 * - MAX ( - ( 66 ) ) - - 40 FROM tab2
----
-4844

query I rowsort
SELECT ( 86 ) AS col1 FROM tab0
----
86
86
86

query II rowsort
SELECT DISTINCT + 70 - + col1 AS col2, col0 * - col2 AS col1 FROM tab1
----
23
-6188
56
-4896
65
-5015

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 * + - 35 col2 FROM tab1 AS cor0
----
1435
1435
1435

query I rowsort
SELECT ALL + col0 - 8 AS col1 FROM tab0 AS cor0
----
7
79
89

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-8367
SELECT col1 DIV - - col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8367
SELECT col1 / - - col0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - - ( col1 ) FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT SUM( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8369
SELECT SUM ( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 21 col0 FROM tab1 cor0
----
-21
-21
-21

query II rowsort
SELECT DISTINCT col1 + - 34, col1 FROM tab0 AS cor0 WHERE NULL >= ( + col0 + - + col1 )
----

query I rowsort
SELECT - - col0 * - col2 - + 70 + - + 87 FROM tab2 AS cor0
----
-1215
-2717
-4507

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT col2 * + - 64 + 4 * + - col2 IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8374
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-8374
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IN ( col1 )
----

query I rowsort
SELECT - col2 * - 14 * - 62 AS col2 FROM tab1 AS cor0
----
-51212
-59024
-83328

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT ALL MIN( 2 ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL MIN ( 2 ) FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT SUM( ALL - 79 ) FROM tab0
----
-237

skipif mysql # not compatible
query I rowsort label-8377
SELECT SUM ( ALL - 79 ) FROM tab0
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT ALL - MAX( DISTINCT 98 ) FROM tab2 WHERE NOT + 74 IS NULL
----
-98

skipif mysql # not compatible
query I rowsort label-8378
SELECT ALL - MAX ( DISTINCT 98 ) FROM tab2 WHERE NOT + 74 IS NULL
----
-98

query I rowsort
SELECT - col2 * + 84 FROM tab2
----
-1932
-3360
-4872

query II rowsort
SELECT 74 AS col2, + 73 FROM tab0
----
74
73
74
73
74
73

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 NOT BETWEEN - 43 + + - col2 AND NULL
----

query II rowsort
SELECT DISTINCT 0 AS col2, col2 FROM tab2 AS cor0
----
0
23
0
40
0
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8383
SELECT + SUM( ALL CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8383
SELECT + SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT DISTINCT - 59 * + MIN( DISTINCT + 72 ) + 60 FROM tab2
----
-4188

skipif mysql # not compatible
query I rowsort label-8384
SELECT DISTINCT - 59 * + MIN ( DISTINCT + 72 ) + 60 FROM tab2
----
-4188

query III rowsort
SELECT * FROM tab2 WHERE NOT 62 - 33 IN ( + col1 * + ( + col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 + col0 FROM tab1 WHERE NOT - 52 IS NOT NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT col1 BETWEEN + col0 + 41 AND NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT + MAX( ALL 52 ) * - MAX( + col1 * - col2 ) FROM tab1
----
15340

skipif mysql # not compatible
query I rowsort label-8388
SELECT + MAX ( ALL 52 ) * - MAX ( + col1 * - col2 ) FROM tab1
----
15340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8389
SELECT DISTINCT - 8 * - col1 + + CAST( + col1 AS SIGNED ) AS col0 FROM tab2
----
459
603
693

skipif mysql # not compatible
query I rowsort label-8389
SELECT DISTINCT - 8 * - col1 + + CAST ( + col1 AS INTEGER ) AS col0 FROM tab2
----
459
603
693

query I rowsort
SELECT 82 * 2 AS col2 FROM tab0
----
164
164
164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8391
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 + + 73 FROM tab2 WHERE 19 / col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8391
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 + + 73 FROM tab2 WHERE 19 / col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8392
SELECT DISTINCT 57 * col1 + CAST( NULL AS SIGNED ) * + 88 FROM tab1 WHERE col2 + + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8392
SELECT DISTINCT 57 * col1 + CAST ( NULL AS INTEGER ) * + 88 FROM tab1 WHERE col2 + + col2 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 <= - 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT - 23 + ( - COUNT( * ) + + 62 ) AS col1 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-8394
SELECT - 23 + ( - COUNT ( * ) + + 62 ) AS col1 FROM tab0
----
36

query III rowsort
SELECT * FROM tab1 WHERE ( + 49 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT MAX( ALL + 7 ) * - ( + 19 ) + COUNT( * ) * COUNT( * ) AS col2 FROM tab0
----
-124

skipif mysql # not compatible
query I rowsort label-8396
SELECT MAX ( ALL + 7 ) * - ( + 19 ) + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0
----
-124

query I rowsort
SELECT + 14 - col0 * - col0 FROM tab1
----
2615
7239
8295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8398
SELECT DISTINCT - COUNT( * ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NOT col2 + col1 / 27 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8398
SELECT DISTINCT - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT col2 + col1 / 27 <= NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8399
SELECT ALL col2 - col2 DIV - col1 AS col2 FROM tab0 WHERE NOT col1 * col0 IS NULL
----
10
198
47

skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL col2 - col2 / - col1 AS col2 FROM tab0 WHERE NOT col1 * col0 IS NULL
----
10
198
47

query I rowsort
SELECT DISTINCT + ( 56 ) * col1 FROM tab0
----
1176
4536
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT ALL COUNT( * ) - + COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8401
SELECT ALL COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 BETWEEN 56 + + col1 AND ( + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8403
SELECT 60 DIV + col0 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8403
SELECT 60 / + col0 AS col1 FROM tab2
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8404
SELECT + 11 DIV + 7 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8404
SELECT + 11 / + 7 AS col2 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8405
SELECT SUM( 90 ) DIV - SUM( - CAST( col2 AS SIGNED ) - col2 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8405
SELECT SUM ( 90 ) / - SUM ( - CAST ( col2 AS INTEGER ) - col2 ) AS col2 FROM tab1
----
0

query I rowsort
SELECT col1 + 92 AS col2 FROM tab0
----
113
173
93

query III rowsort
SELECT * FROM tab0 WHERE + 22 + - 29 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT DISTINCT 7 * - COUNT( * ) AS col0 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-8408
SELECT DISTINCT 7 * - COUNT ( * ) AS col0 FROM tab0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8409
SELECT ALL col0 * - 7 AS col1 FROM tab2 WHERE CAST( - col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8409
SELECT ALL col0 * - 7 AS col1 FROM tab2 WHERE CAST ( - col2 AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8410
SELECT ALL - 20 DIV col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8410
SELECT ALL - 20 / col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col1 - 29 FROM tab2 cor0
----
22
38
48

onlyif mysql # DIV for integer division: 
query I rowsort label-8412
SELECT - col2 * 74 + + col0 DIV col1 AS col1 FROM tab1 AS cor0
----
-4349
-5031
-7101

skipif mysql # not compatible
query I rowsort label-8412
SELECT - col2 * 74 + + col0 / col1 AS col1 FROM tab1 AS cor0
----
-4349
-5031
-7101

query I rowsort
SELECT DISTINCT col1 - - col1 * col0 FROM tab1 AS cor0
----
430
4324
728

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 < col1 + + col1 * col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8415
SELECT DISTINCT - 24 DIV + COUNT( * ) AS col0 FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-8415
SELECT DISTINCT - 24 / + COUNT ( * ) AS col0 FROM tab2
----
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 59 col1 FROM tab1 AS cor0
----
-59
-59
-59

query I rowsort
SELECT DISTINCT - 78 - + 84 * 49 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT ALL - MAX( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8418
SELECT ALL - MAX ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT ALL - MAX( DISTINCT 53 ) FROM tab2 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-8419
SELECT ALL - MAX ( DISTINCT 53 ) FROM tab2 AS cor0
----
-53

query I rowsort
SELECT ALL ( 1 ) AS col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT - COUNT( * ) * + COUNT( * ) AS col2 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8421
SELECT - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2 cor0
----
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 43 + + col0 <> 71
----

query I rowsort
SELECT ALL - - 22 AS col1 FROM tab0 cor0
----
22
22
22

query I rowsort
SELECT ALL + ( + 50 ) FROM tab1
----
50
50
50

query I rowsort
SELECT - 46 + col2 AS col0 FROM tab2 WHERE NOT ( + 61 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 NOT BETWEEN NULL AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8427
SELECT ALL 25 DIV + col1 + 95 FROM tab1
----
100
95
96

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL 25 / + col1 + 95 FROM tab1
----
100
95
96

query I rowsort
SELECT + col2 + + ( + 10 - + col1 ) AS col2 FROM tab2 WHERE NOT col2 IN ( + col1 * 23 )
----
-18
-27
1

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col0 ) < 26 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT COUNT( * ) + + SUM( col2 ) AS col1 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-8430
SELECT COUNT ( * ) + + SUM ( col2 ) AS col1 FROM tab0
----
159

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 / col1 NOT BETWEEN - ( col1 ) AND - col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 39 / col2 - col0 FROM tab0 WHERE NOT + col0 + col1 * col0 BETWEEN ( col2 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8434
SELECT col2 * + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8434
SELECT col2 * + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 73 = ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT COUNT( * ) * + 45 FROM tab0 cor0 WHERE col0 - + col1 IS NOT NULL
----
135

skipif mysql # not compatible
query I rowsort label-8436
SELECT COUNT ( * ) * + 45 FROM tab0 cor0 WHERE col0 - + col1 IS NOT NULL
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT + COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0 WHERE col1 * + col1 NOT BETWEEN ( - col2 * 61 ) AND ( - col0 ) AND - col0 IN ( col2 / - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8437
SELECT + COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0 WHERE col1 * + col1 NOT BETWEEN ( - col2 * 61 ) AND ( - col0 ) AND - col0 IN ( col2 / - col2 )
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > 26 + col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8439
SELECT CAST( + - col1 AS SIGNED ) DIV col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8439
SELECT CAST ( + - col1 AS INTEGER ) / col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE col0 * col2 IS NULL
----

query I rowsort
SELECT - 8 AS col2 FROM tab1 cor0 WHERE NULL BETWEEN col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT col2 + col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 - - - 38 AS col1 FROM tab1
----
21
30
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8444
SELECT ALL + col0 - - col1 * - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8444
SELECT ALL + col0 - - col1 * - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 59 * + 52 + 90 FROM tab1 AS cor0
----
3158
3158
3158

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT DISTINCT MIN( + col0 ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-8446
SELECT DISTINCT MIN ( + col0 ) FROM tab2 cor0
----
46

query I rowsort
SELECT DISTINCT + - 66 * col1 AS col2 FROM tab1 AS cor0
----
-3102
-330
-924

query I rowsort
SELECT - col0 * - col1 * - ( 60 ) + + 5 AS col2 FROM tab2 AS cor0
----
-140755
-295675
-301495

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) < - col2
----

query I rowsort
SELECT ALL - 59 AS col2 FROM tab0 cor0
----
-59
-59
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 AS cor0 WHERE col0 BETWEEN ( 54 ) AND NULL
----

query I rowsort
SELECT ALL col2 * - 3 AS col2 FROM tab2 AS cor0
----
-120
-174
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT - COUNT( - 14 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8453
SELECT - COUNT ( - 14 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8454
SELECT DISTINCT 30 * 30 AS col1, col1 * + CAST( NULL AS SIGNED ) FROM tab1
----
900
NULL

skipif mysql # not compatible
query II rowsort label-8454
SELECT DISTINCT 30 * 30 AS col1, col1 * + CAST ( NULL AS INTEGER ) FROM tab1
----
900
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8455
SELECT 92 DIV 48 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8455
SELECT 92 / 48 AS col2 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 78 ) * col1 col2 FROM tab0
----
1638
6318
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT ALL - SUM( DISTINCT - col1 ) + + + COUNT( * ) FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-8457
SELECT ALL - SUM ( DISTINCT - col1 ) + + + COUNT ( * ) FROM tab2
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-8458
SELECT ALL - col2 - + - 74 - ( - 38 ) + 98 DIV col1 * + col0 AS col2 FROM tab1
----
1668
226
373

skipif mysql # not compatible
query I rowsort label-8458
SELECT ALL - col2 - + - 74 - ( - 38 ) + 98 / col1 * + col0 AS col2 FROM tab1
----
1668
226
373

query I rowsort
SELECT col0 * - 87 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> 56 + - col1 * + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8460
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN ( NULL ) AND ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8460
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN ( NULL ) AND ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8461
SELECT - CAST( + + col2 AS SIGNED ) DIV - - col1 + + + 89 * 90 + col0 FROM tab1
----
8055
8084
8100

skipif mysql # not compatible
query I rowsort label-8461
SELECT - CAST ( + + col2 AS INTEGER ) / - - col1 + + + 89 * 90 + col0 FROM tab1
----
8055
8084
8100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8462
SELECT ( 5 ) + CAST( AVG ( ALL 94 ) AS DECIMAL ) col0 FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NULL IS NOT NULL WHERE 86 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8462
SELECT ( 5 ) + CAST ( AVG ( ALL 94 ) AS REAL ) col0 FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NULL IS NOT NULL WHERE 86 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > + ( + col1 )
----

query I rowsort
SELECT ALL + 27 * - col1 * col1 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( - 56, + 34 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT DISTINCT + - SUM( + 4 ) + - 65 AS col0 FROM tab1 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8465
SELECT DISTINCT + - SUM ( + 4 ) + - 65 AS col0 FROM tab1 cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT ALL + + MIN( DISTINCT - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL + + MIN ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-8467
SELECT 48 AS col2, ( + COUNT( * ) ) + - 70 AS col1 FROM tab2
----
48
-67

skipif mysql # not compatible
query II rowsort label-8467
SELECT 48 AS col2, ( + COUNT ( * ) ) + - 70 AS col1 FROM tab2
----
48
-67

query I rowsort
SELECT + + 75 + + col2 FROM tab2 AS cor0
----
115
133
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT DISTINCT 41 + + COUNT( * ) + + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8469
SELECT DISTINCT 41 + + COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8470
SELECT CAST( - COUNT( * ) AS SIGNED ) + COUNT( col1 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8470
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + COUNT ( col1 ) AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + 84 * - + col2 AS col1 FROM tab2 cor0
----
-1932
-3360
-4872

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT + 20 * COUNT( * ) + - COUNT( * ) FROM tab1 cor0
----
57

skipif mysql # not compatible
query I rowsort label-8472
SELECT + 20 * COUNT ( * ) + - COUNT ( * ) FROM tab1 cor0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-8473
SELECT DISTINCT + - col0 DIV col2 * + 8 - - - col2 DIV col1 + - 28 + - - 79 AS col1 FROM tab0 AS cor0
----
-13
-48
51

skipif mysql # not compatible
query I rowsort label-8473
SELECT DISTINCT + - col0 / col2 * + 8 - - - col2 / col1 + - 28 + - - 79 AS col1 FROM tab0 AS cor0
----
-13
-48
51

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT + 50 < NULL
----

query I rowsort
SELECT - 81 AS col1 FROM tab2 cor0
----
-81
-81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8476
SELECT + CAST( NULL AS SIGNED ) - + 74 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8476
SELECT + CAST ( NULL AS INTEGER ) - + 74 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 45 * - col1 - col2 + col0 FROM tab2 AS cor0
----
2318
3032
3489

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 26 / col1 col1 FROM tab1 AS cor0 WHERE NOT NULL = col0
----

query I rowsort
SELECT + + ( + 80 ) - 50 FROM tab0 AS cor0
----
30
30
30

onlyif mysql # DIV for integer division: 
query I rowsort label-8480
SELECT DISTINCT - col0 DIV ( + col2 ) * - 44 + + - col0 AS col2 FROM tab2 AS cor0
----
-20
-31
42

skipif mysql # not compatible
query I rowsort label-8480
SELECT DISTINCT - col0 / ( + col2 ) * - 44 + + - col0 AS col2 FROM tab2 AS cor0
----
-20
-31
42

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 * - col1 * - col1 + + col1 IS NOT NULL
----

query II rowsort
SELECT col1 - col1 - - col0, col1 AS col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

query I rowsort
SELECT col1 - col2 - - col1 + + col0 FROM tab1
----
-17
117
36

onlyif mysql # DIV for integer division: 
query I rowsort label-8484
SELECT ALL + col1 * col1 DIV - 11 FROM tab0
----
-40
-596
0

skipif mysql # not compatible
query I rowsort label-8484
SELECT ALL + col1 * col1 / - 11 FROM tab0
----
-40
-596
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 21 + + col2 * + col0 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT ALL + MAX( DISTINCT - - 6 ) * + 54 AS col1 FROM tab1 AS cor0
----
324

skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL + MAX ( DISTINCT - - 6 ) * + 54 AS col1 FROM tab1 AS cor0
----
324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8487
SELECT DISTINCT + - ( MAX( ALL CAST( NULL AS SIGNED ) ) ) * + 0 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8487
SELECT DISTINCT + - ( MAX ( ALL CAST ( NULL AS INTEGER ) ) ) * + 0 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8488
SELECT ALL + col2 DIV - 9 - + col0 AS col1 FROM tab2 cor0
----
-48
-68
-81

skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL + col2 / - 9 - + col0 AS col1 FROM tab2 cor0
----
-48
-68
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT ALL + ( - COUNT( * ) ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL + ( - COUNT ( * ) ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8490
SELECT 7 * - + col2 AS col2, CAST( + + col1 AS SIGNED ) AS col1 FROM tab0
----
-329
81
-693
1
-70
21

skipif mysql # not compatible
query II rowsort label-8490
SELECT 7 * - + col2 AS col2, CAST ( + + col1 AS INTEGER ) AS col1 FROM tab0
----
-329
81
-693
1
-70
21

query I rowsort
SELECT DISTINCT - 86 * + 49 * col0 FROM tab2 AS cor0
----
-193844
-269696
-316050

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT DISTINCT + - 2 * - MIN( ALL - col0 ) AS col0 FROM tab2 cor0
----
-150

skipif mysql # not compatible
query I rowsort label-8492
SELECT DISTINCT + - 2 * - MIN ( ALL - col0 ) AS col0 FROM tab2 cor0
----
-150

onlyif mysql # aggregate syntax: 
query II rowsort label-8493
SELECT ALL - COUNT( * ) AS col2, 62 * - + SUM( DISTINCT 84 ) * - SUM( - col2 ) FROM tab0 AS cor0 WHERE + col2 * + 49 IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8493
SELECT ALL - COUNT ( * ) AS col2, 62 * - + SUM ( DISTINCT 84 ) * - SUM ( - col2 ) FROM tab0 AS cor0 WHERE + col2 * + 49 IS NULL
----
0
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col0, - col0 AS col2 FROM tab0 cor0 WHERE col2 BETWEEN - col0 * ( + col1 ) AND + 52
----
-21
-87
-81
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-8495
SELECT ALL 10 DIV - - col2, col2 DIV + 89 AS col1 FROM tab0 AS cor0
----
0
0
0
1
1
0

skipif mysql # not compatible
query II rowsort label-8495
SELECT ALL 10 / - - col2, col2 / + 89 AS col1 FROM tab0 AS cor0
----
0
0
0
1
1
0

query I rowsort
SELECT 36 AS col2 FROM tab1 cor0
----
36
36
36

query I rowsort
SELECT DISTINCT col0 * + - col2 AS col2 FROM tab1 WHERE + + 37 * + col0 + col0 * + 71 <= ( - 34 )
----

query I rowsort
SELECT 42 + + col2 FROM tab1
----
101
110
138

query I rowsort
SELECT ALL col1 * + 73 * col1 FROM tab1
----
14308
161257
1825

query I rowsort
SELECT DISTINCT - ( - 65 ) AS col1 FROM tab2 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT + SUM( + + col0 ) FROM tab1 AS cor0 WHERE ( col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8501
SELECT + SUM ( + + col0 ) FROM tab1 AS cor0 WHERE ( col0 ) IS NULL
----
NULL

query I rowsort
SELECT + col0 - ( - col1 ) AS col0 FROM tab1
----
138
65
90

query I rowsort
SELECT col0 + + 94 FROM tab0 cor0
----
109
181
191

query I rowsort
SELECT DISTINCT + - ( - ( - col1 ) ) FROM tab2 cor0
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = - 96 * 95
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8506
SELECT ALL CAST( + col2 AS SIGNED ) FROM tab2 WHERE NOT ( - col0 ) + - - col1 > - - 41 * + col1 * col2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8506
SELECT ALL CAST ( + col2 AS INTEGER ) FROM tab2 WHERE NOT ( - col0 ) + - - col1 > - - 41 * + col1 * col2
----
23
40
58

query I rowsort
SELECT - ( col1 ) * - 79 + - + 76 AS col2 FROM tab2
----
3953
5217
6007

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - 44
----

query I rowsort
SELECT - col2 * - col1 * col0 * col2 AS col1 FROM tab2
----
1241034
16904100
7884800

query II rowsort
SELECT ALL - col1 * - col2 AS col1, 12 FROM tab2
----
1173
12
3080
12
3886
12

query I rowsort
SELECT DISTINCT + col2 * - 73 AS col2 FROM tab0 AS cor0
----
-3431
-7227
-730

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8512
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( - - ( - col0 ) AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8512
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( - - ( - col0 ) AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8513
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8513
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + col0 + + 86 AS col0 FROM tab1
----
137
171
177

query III rowsort
SELECT * FROM tab0 WHERE NOT - + ( + col1 ) * + 92 <> NULL
----

query I rowsort
SELECT 76 + - + col2 FROM tab1
----
-20
17
8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL < 72 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8518
SELECT + 99 DIV + col2 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8518
SELECT + 99 / + col2 AS col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT DISTINCT SUM( 32 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8519
SELECT DISTINCT SUM ( 32 ) AS col2 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT - MIN( ALL + col2 ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-8520
SELECT - MIN ( ALL + col2 ) AS col2 FROM tab2
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 + - col2 col2 FROM tab1
----
-18
-27
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT + ( MAX( + col0 ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8522
SELECT + ( MAX ( + col0 ) ) FROM tab2
----
75

query I rowsort
SELECT DISTINCT col1 + col1 + - col2 AS col0 FROM tab1
----
-49
-68
26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8524
SELECT + - CAST( col2 AS DECIMAL ) AS col0 FROM tab0 WHERE NULL NOT IN ( - 79 + + col1, 29 + - 58 )
----

skipif mysql # not compatible
query I rowsort label-8524
SELECT + - CAST ( col2 AS REAL ) AS col0 FROM tab0 WHERE NULL NOT IN ( - 79 + + col1, 29 + - 58 )
----

query I rowsort
SELECT DISTINCT 61 - 90 AS col1 FROM tab2
----
-29

query II rowsort
SELECT + 35 + col0 AS col2, 10 + - col1 AS col1 FROM tab0 cor0
----
122
-11
132
9
50
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT - + COUNT( * ) + - SUM( + col0 ) FROM tab0 AS cor0
----
-202

skipif mysql # not compatible
query I rowsort label-8527
SELECT - + COUNT ( * ) + - SUM ( + col0 ) FROM tab0 AS cor0
----
-202

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT 66 * - - MAX( ALL - + 58 ) + MAX( + col2 ) AS col0 FROM tab1 AS cor0
----
-3732

skipif mysql # not compatible
query I rowsort label-8528
SELECT 66 * - - MAX ( ALL - + 58 ) + MAX ( + col2 ) AS col0 FROM tab1 AS cor0
----
-3732

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - - 21 ) + + col2 FROM tab0 AS cor0
----
120
31
68

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 45 >= - col0 - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 56 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8533
SELECT * FROM tab2 WHERE NULL IN ( + CAST( NULL AS SIGNED ), col2, 17 + - ( + col1 ), - col1 )
----

skipif mysql # not compatible
query III rowsort label-8533
SELECT * FROM tab2 WHERE NULL IN ( + CAST ( NULL AS INTEGER ), col2, 17 + - ( + col1 ), - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * + 94 FROM tab1 AS cor0
----
1316
4418
470

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab2 cor0 WHERE col0 NOT BETWEEN - col0 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2 col0, - col2 AS col2 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT ALL - + COUNT( * ) - 95 AS col0 FROM tab1 AS cor0 WHERE ( 11 * + - col0 ) < col1
----
-98

skipif mysql # not compatible
query I rowsort label-8538
SELECT ALL - + COUNT ( * ) - 95 AS col0 FROM tab1 AS cor0 WHERE ( 11 * + - col0 ) < col1
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-8539
SELECT ALL + + COUNT( * ) AS col0, + 9 AS col2 FROM tab0 AS cor0
----
3
9

skipif mysql # not compatible
query II rowsort label-8539
SELECT ALL + + COUNT ( * ) AS col0, + 9 AS col2 FROM tab0 AS cor0
----
3
9

query I rowsort
SELECT DISTINCT ( - col0 ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( col2 ) NOT BETWEEN 93 / - col2 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT - - ( + - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8542
SELECT - - ( + - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8543
SELECT COUNT( - col1 ), 96 AS col0 FROM tab1
----
3
96

skipif mysql # not compatible
query II rowsort label-8543
SELECT COUNT ( - col1 ), 96 AS col0 FROM tab1
----
3
96

query I rowsort
SELECT ALL ( - 92 ) FROM tab1
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-8545
SELECT DISTINCT COUNT( * ) AS col1, - 97 FROM tab0
----
3
-97

skipif mysql # not compatible
query II rowsort label-8545
SELECT DISTINCT COUNT ( * ) AS col1, - 97 FROM tab0
----
3
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * + 0 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8547
SELECT - COUNT( * ) AS col1, + 22 AS col2 FROM tab1
----
-3
22

skipif mysql # not compatible
query II rowsort label-8547
SELECT - COUNT ( * ) AS col1, + 22 AS col2 FROM tab1
----
-3
22

query I rowsort
SELECT ALL - col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE 59 IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 >= + 61 + - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8551
SELECT ALL col1 * + CAST( NULL AS SIGNED ), 13 col0 FROM tab1
----
NULL
13
NULL
13
NULL
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8551
SELECT ALL col1 * + CAST ( NULL AS INTEGER ), 13 col0 FROM tab1
----
NULL
13
NULL
13
NULL
13

query I rowsort
SELECT - 58 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

query I rowsort
SELECT - col2 * + 0 * + col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + - 34 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL IN ( - col0, col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col0 - col1 AND - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8557
SELECT ALL col2 * + CAST( NULL AS SIGNED ) + - - ( - col0 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8557
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) + - - ( - col0 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8558
SELECT DISTINCT + CAST( 37 AS SIGNED ) - - col2 FROM tab0 WHERE NULL IS NULL
----
136
47
84

skipif mysql # not compatible
query I rowsort label-8558
SELECT DISTINCT + CAST ( 37 AS INTEGER ) - - col2 FROM tab0 WHERE NULL IS NULL
----
136
47
84

query I rowsort
SELECT - col1 + + col0 + + + 87 + - 34 + + 52 * ( + + col1 ) * col2 AS col1 FROM tab2
----
160200
202133
61044

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8560
SELECT SUM( - + 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-8560
SELECT SUM ( - + CAST ( NULL AS INTEGER ) ) col0 FROM tab0
----
NULL

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE ( NOT ( - + col1 IS NOT NULL ) )
----

query I rowsort
SELECT ALL - col1 - - - 33 AS col0 FROM tab1
----
-38
-47
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT DISTINCT MAX( ALL + + 45 ) + + 92 + + 35 * - - COUNT( * ) AS col2 FROM tab1
----
242

skipif mysql # not compatible
query I rowsort label-8563
SELECT DISTINCT MAX ( ALL + + 45 ) + + 92 + + 35 * - - COUNT ( * ) AS col2 FROM tab1
----
242

query I rowsort
SELECT ALL - col2 + + + col2 + + + col2 + - - col2 AS col2 FROM tab0
----
198
20
94

onlyif mysql # DIV for integer division: 
query II rowsort label-8565
SELECT DISTINCT + col1 + 85 + + ( + - col0 ) DIV + ( col2 ) AS col0, - col0 FROM tab0
----
166
-15
86
-97
98
-87

skipif mysql # not compatible
query II rowsort label-8565
SELECT DISTINCT + col1 + 85 + + ( + - col0 ) / + ( col2 ) AS col0, - col0 FROM tab0
----
166
-15
86
-97
98
-87

query I rowsort
SELECT ALL + 48 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT - 3 * 52 - COUNT( - - 28 ) AS col1 FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-8567
SELECT - 3 * 52 - COUNT ( - - 28 ) AS col1 FROM tab0 AS cor0
----
-159

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8568
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-8568
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + CAST ( NULL AS INTEGER ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT ALL - + COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL - + COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT ALL 69 * + col1 * + col0 FROM tab1
----
29325
295113
49266

query I rowsort
SELECT ALL - + 4 AS col2 FROM tab0 cor0 WHERE col2 + + + col2 <= + 82 * + + col1 + + - col1
----
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT DISTINCT - SUM( 82 ) AS col0 FROM tab2 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-8572
SELECT DISTINCT - SUM ( 82 ) AS col0 FROM tab2 AS cor0
----
-246

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT col2 IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT SUM( DISTINCT + + 22 ) FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-8575
SELECT SUM ( DISTINCT + + 22 ) FROM tab2
----
22

query I rowsort
SELECT DISTINCT - 29 + - + col0 * + col2 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT 25 * 35 FROM tab1
----
875
875
875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8578
SELECT + CAST( NULL AS SIGNED ) / ( + + ( col0 ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8578
SELECT + CAST ( NULL AS INTEGER ) / ( + + ( col0 ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 33 * col2 AS col1 FROM tab2
----
1320
1914
759

query I rowsort
SELECT DISTINCT ( + + 75 ) FROM tab0
----
75

query I rowsort
SELECT col0 FROM tab1 WHERE NOT + col2 IS NULL
----
51
85
91

query I rowsort
SELECT 74 * col1 * ( + + 2 ) AS col0 FROM tab2
----
11396
7548
9916

query II rowsort
SELECT DISTINCT ( col1 ) * - + col2 AS col0, - 97 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col0, - col1 FROM tab0 cor0
----
-10
-21
-47
-81
-99
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - 16 ) col0 FROM tab2 AS cor0
----
16
16
16

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE ( NULL ) <= 26
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - col0 - - 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT ALL - MAX( + 3 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL - MAX ( + 3 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL col1 * + - col1 AS col2 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT ALL COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT ( NULL IS NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-8590
SELECT ALL COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT ( NULL IS NULL ) )
----
0

query I rowsort
SELECT ALL ( + ( 17 ) ) AS col0 FROM tab0
----
17
17
17

query II rowsort
SELECT DISTINCT col1, + 37 * 13 FROM tab1 AS cor0
----
14
481
47
481
5
481

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT MIN( ALL ( col2 ) ) AS col1 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-8593
SELECT MIN ( ALL ( col2 ) ) AS col1 FROM tab2 cor0
----
23

query II rowsort
SELECT col0 AS col2, col2 * - col1 AS col2 FROM tab0 cor0
----
15
-3807
87
-210
97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT - + MAX( ALL + col0 ) col0 FROM tab2 AS cor0 WHERE NULL >= col2 + - col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8595
SELECT - + MAX ( ALL + col0 ) col0 FROM tab2 AS cor0 WHERE NULL >= col2 + - col1
----
NULL

query I rowsort
SELECT + - 71 * 6 + + 34 FROM tab2 AS cor0
----
-392
-392
-392

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8597
SELECT DISTINCT 45 AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) = - ( - ( - CAST( + + col1 AS DECIMAL ) ) ) * - 13 - - col0 - + 58 - CAST( - 67 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8597
SELECT DISTINCT 45 AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) = - ( - ( - CAST ( + + col1 AS REAL ) ) ) * - 13 - - col0 - + 58 - CAST ( - 67 AS INTEGER )
----

query I rowsort
SELECT + col2 - + col2 + - ( + col2 ) FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8599
SELECT ALL - col0 + + col2 + - - CAST( NULL AS SIGNED ) * - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL - col0 + + col2 + - - CAST ( NULL AS INTEGER ) * - col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 - 61 + + col2 FROM tab2
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8601
SELECT col2 / - - CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8601
SELECT col2 / - - CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IS NOT NULL AND 13 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL > 87
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 38 * + col1 + - col1 col0 FROM tab0 AS cor0
----
-16779
-249399
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT DISTINCT - - COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8605
SELECT DISTINCT - - COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8606
SELECT 73 + - 94 - + 50 DIV - 11 AS col1 FROM tab0 AS cor0
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-8606
SELECT 73 + - 94 - + 50 / - 11 AS col1 FROM tab0 AS cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT ALL - ( + - MAX( DISTINCT + 87 ) ) - + + COUNT( * ) FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-8607
SELECT ALL - ( + - MAX ( DISTINCT + 87 ) ) - + + COUNT ( * ) FROM tab2 AS cor0
----
84

query II rowsort
SELECT ALL col0, col2 + ( - col1 ) AS col0 FROM tab2
----
46
-28
64
-37
75
-9

query I rowsort
SELECT ALL ( + ( - ( + 21 ) ) ) AS col1 FROM tab1 AS cor0
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-8610
SELECT ALL - - 85 * - + 60 * - COUNT( * ), - 45 - - 61 AS col2 FROM tab1 AS cor0
----
15300
16

skipif mysql # not compatible
query II rowsort label-8610
SELECT ALL - - 85 * - + 60 * - COUNT ( * ), - 45 - - 61 AS col2 FROM tab1 AS cor0
----
15300
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 61 col1 FROM tab0 AS cor0
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT ALL - SUM( DISTINCT - col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8612
SELECT ALL - SUM ( DISTINCT - col1 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT ALL + - col0 AS col1 FROM tab0 AS cor0 WHERE - 15 * + - col2 - + col1 BETWEEN + 42 AND - + col2 * - + col0 * - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT DISTINCT + COUNT( * ) * - MAX( - 85 ) + - - 91 * COUNT( * ) FROM tab1 AS cor0 WHERE + col2 + col2 * col2 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8614
SELECT DISTINCT + COUNT ( * ) * - MAX ( - 85 ) + - - 91 * COUNT ( * ) FROM tab1 AS cor0 WHERE + col2 + col2 * col2 NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT ALL col2 * + col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col1, col2 + col2 + + - 44 col1 FROM tab0 AS cor0
----
15
50
87
-24
97
154

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8617
SELECT ALL * FROM tab2 WHERE NOT CAST( + - 74 AS DECIMAL ) > - col2 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8617
SELECT ALL * FROM tab2 WHERE NOT CAST ( + - 74 AS REAL ) > - col2 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( 80 ) AS col0 FROM tab0
----
80
80
80

query I rowsort
SELECT col1 + 15 AS col1 FROM tab2 AS cor0
----
66
82
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8620
SELECT DISTINCT - 56 AS col0, + 46 * - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-8620
SELECT DISTINCT - 56 AS col0, + 46 * - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 98 * - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - + col1 + + col0 + - 40 col0 FROM tab0
----
-121
-41
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8623
SELECT ALL - MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8623
SELECT ALL - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-8624
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 83 BETWEEN ( CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-8624
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 83 BETWEEN ( CAST ( NULL AS INTEGER ) ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8625
SELECT ALL + CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8625
SELECT ALL + CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT + MAX( DISTINCT col0 ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-8626
SELECT + MAX ( DISTINCT col0 ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
100

query I rowsort
SELECT 56 + + col2 + - - col0 FROM tab1 AS cor0
----
200
203
215

query I rowsort
SELECT DISTINCT + col2 + + col1 - col2 AS col1 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT col2 + 47 * - 4 AS col1 FROM tab2
----
-130
-148
-165

query I rowsort
SELECT DISTINCT col1 - + + 46 FROM tab0
----
-25
-45
35

query I rowsort
SELECT DISTINCT - col1 + + - ( + ( + - col0 ) ) AS col0 FROM tab0
----
-66
66
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab2 WHERE NULL = + + col0
----

query III rowsort
SELECT 20 AS col0, 57 AS col2, + + 34 FROM tab0
----
9 values hashing to 30c5f8efd49745fb99fa5a8d30bc65a3

query I rowsort
SELECT ALL - 92 * + col0 - col1 FROM tab2
----
-4283
-5965
-6967

query I rowsort
SELECT + + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT DISTINCT ( + ( COUNT( * ) ) ) - - 51 + COUNT( * ) * 92 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
330

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8636
SELECT DISTINCT ( + ( COUNT ( * ) ) ) - - 51 + COUNT ( * ) * 92 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
330

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 69 col2 FROM tab0
----
-69
-69
-69

query I rowsort
SELECT + - 17 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT DISTINCT ( + 21 ) * + - ( + col2 ) FROM tab2 AS cor0
----
-1218
-483
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NULL < + 98
----
0

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NULL < + 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT - - 90 * + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> - col1 * - 2
----
0

skipif mysql # not compatible
query I rowsort label-8641
SELECT - - 90 * + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> - col1 * - 2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT + MAX( DISTINCT - + 79 ) col0 FROM tab0 cor0
----
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8642
SELECT + MAX ( DISTINCT - + 79 ) col0 FROM tab0 cor0
----
-79

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( + + 44 ) ) + + ( + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8644
SELECT ALL - 91 DIV MIN( DISTINCT col1 ) FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8644
SELECT ALL - 91 / MIN ( DISTINCT col1 ) FROM tab0 AS cor0
----
-91

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col2 NOT BETWEEN NULL AND - + 79
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col1 AS col0, col2 AS col2 FROM tab1
----
-14
96
-47
68
-5
59

query I rowsort
SELECT + 28 * + + col0 AS col0 FROM tab1
----
1428
2380
2548

query II rowsort
SELECT + col0, 23 * + col2 FROM tab1
----
51
2208
85
1357
91
1564

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 > - 60 * col1 + - col2
----

query I rowsort
SELECT ALL 64 + + 73 AS col2 FROM tab1
----
137
137
137

query I rowsort
SELECT DISTINCT - col0 * ( - - col2 ) AS col2 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query II rowsort label-8652
SELECT DISTINCT + COUNT( * ) AS col0, COUNT( * ) AS col1 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-8652
SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) AS col1 FROM tab2
----
3
3

query I rowsort
SELECT ALL - 87 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-87
-87
-87

query I rowsort
SELECT + - 4 + + col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
42
60
71

query I rowsort
SELECT - col2 * + col1 + - - 65 FROM tab1 AS cor0
----
-1279
-230
-3131

query I rowsort
SELECT ALL + - 82 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 22 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND - 73 * + col2 / - - col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * col0 + + 93 / + 24 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8660
SELECT - 95 * - CAST( + + COUNT( * ) AS SIGNED ) FROM tab0 cor0
----
285

skipif mysql # not compatible
query I rowsort label-8660
SELECT - 95 * - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab0 cor0
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT DISTINCT - SUM( + + 61 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-183

skipif mysql # not compatible
query I rowsort label-8661
SELECT DISTINCT - SUM ( + + 61 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-183

onlyif mysql # aggregate syntax: 
query II rowsort label-8662
SELECT ALL SUM( + 49 ) AS col1, + ( - ( 60 ) ) FROM tab0 AS cor0
----
147
-60

skipif mysql # not compatible
query II rowsort label-8662
SELECT ALL SUM ( + 49 ) AS col1, + ( - ( 60 ) ) FROM tab0 AS cor0
----
147
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8663
SELECT + col2 / - CAST( NULL AS SIGNED ) - + - col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8663
SELECT + col2 / - CAST ( NULL AS INTEGER ) - + - col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + col0 * col0 AS col2 FROM tab2
----
2167
4173
5692

onlyif mysql # DIV for integer division: 
query I rowsort label-8665
SELECT ALL - col2 - + 2 + - 45 DIV - - 12 AS col0 FROM tab1
----
-101
-64
-73

skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL - col2 - + 2 + - 45 / - - 12 AS col0 FROM tab1
----
-101
-64
-73

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 + - 61 + - col1 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 44 * - col0 AS col0 FROM tab0
----
3828
4268
660

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8668
SELECT DISTINCT - - CAST( NULL AS SIGNED ), + col2 AS col1 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-8668
SELECT DISTINCT - - CAST ( NULL AS INTEGER ), + col2 AS col1 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 57 * + + ( - - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 36 * + col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - col1 AS col0, 25 FROM tab2 AS cor0
----
-51
25
-67
25
-77
25

query I rowsort
SELECT + 87 * - + col0 AS col1 FROM tab2 cor0
----
-4002
-5568
-6525

query II rowsort
SELECT + 20 AS col2, col2 + 28 FROM tab1 cor0
----
20
124
20
87
20
96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8674
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( ( col0 ) + CAST( - - 79 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-8674
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( ( col0 ) + CAST ( - - 79 AS REAL ) )
----

query I rowsort
SELECT DISTINCT - - col2 FROM tab2 cor0 WHERE - 29 - col0 IS NULL
----

query I rowsort
SELECT + 50 + - 32 * + - col2 * + col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( + 3 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT - COUNT( ALL ( + 67 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8677
SELECT - COUNT ( ALL ( + 67 ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT MIN( ALL + + col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8678
SELECT MIN ( ALL + + col1 ) AS col1 FROM tab1 AS cor0
----
5

query II rowsort
SELECT ALL - 3, 53 * - 35 AS col2 FROM tab2 AS cor0
----
-3
-1855
-3
-1855
-3
-1855

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND - ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 80 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8682
SELECT DISTINCT + col1 DIV 7 col0, - 53 FROM tab0
----
0
-53
11
-53
3
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8682
SELECT DISTINCT + col1 / 7 col0, - 53 FROM tab0
----
0
-53
11
-53
3
-53

query II rowsort
SELECT - 79 + 15 AS col2, 10 FROM tab1
----
-64
10
-64
10
-64
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT DISTINCT ( + COUNT( * ) ) * - 41 FROM tab1
----
-123

skipif mysql # not compatible
query I rowsort label-8684
SELECT DISTINCT ( + COUNT ( * ) ) * - 41 FROM tab1
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT 2 + - - COUNT( ALL col2 ) col0 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8685
SELECT 2 + - - COUNT ( ALL col2 ) col0 FROM tab1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8686
SELECT DISTINCT ( - col0 ) DIV + col2 col0 FROM tab0
----
-8
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8686
SELECT DISTINCT ( - col0 ) / + col2 col0 FROM tab0
----
-8
0

query I rowsort
SELECT - 59 + + col2 AS col2 FROM tab1
----
0
37
9

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( + - col1 ) NOT IN ( col1 )
----

query I rowsort
SELECT + 11 * + 18 FROM tab1 AS cor0
----
198
198
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8690
SELECT CAST( col2 AS SIGNED ) * + + CAST( NULL AS SIGNED ) * 94 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8690
SELECT CAST ( col2 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) * 94 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT + - COUNT( * ) * 92 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) < col0
----
0

skipif mysql # not compatible
query I rowsort label-8691
SELECT + - COUNT ( * ) * 92 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) < col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT + ( - ( + COUNT( * ) ) ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8693
SELECT + ( - ( + COUNT ( * ) ) ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT col2 + 66 AS col0 FROM tab0
----
113
165
76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + + ( - col0 ) * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT COUNT( * ) * 62 AS col2 FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-8696
SELECT COUNT ( * ) * 62 AS col2 FROM tab2 AS cor0
----
186

query I rowsort
SELECT AVG ( - col1 ) FROM tab2 AS cor0 WHERE NULL <> + col2 * 1
----
NULL

query II rowsort
SELECT + 20 AS col0, 42 + col0 FROM tab1 WHERE NOT + col0 >= - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8699
SELECT ALL + col1 FROM tab0 AS cor0 WHERE CAST( - 30 AS SIGNED ) / + col2 IN ( col1, + 12 + - + col0 + + col1 * + CAST( - 37 AS SIGNED ) / - col1, + col0 + + ( + 4 ) )
----

skipif mysql # not compatible
query I rowsort label-8699
SELECT ALL + col1 FROM tab0 AS cor0 WHERE CAST ( - 30 AS INTEGER ) / + col2 IN ( col1, + 12 + - + col0 + + col1 * + CAST ( - 37 AS INTEGER ) / - col1, + col0 + + ( + 4 ) )
----

query I rowsort
SELECT + col2 * + col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL + ( - - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT + col1 IS NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE - 42 * - 26 - - 37 BETWEEN NULL AND NULL OR NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - - 96 ) col1 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT + - col1 * + 14 + + col1 * col2 AS col0 FROM tab2 AS cor0
----
2002
2948
459

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT ALL - COUNT( + 98 ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8705
SELECT ALL - COUNT ( + 98 ) col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE + col1 * - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8707
SELECT DISTINCT - + 44 AS col2, COUNT( * ) FROM tab2 AS cor0
----
-44
3

skipif mysql # not compatible
query II rowsort label-8707
SELECT DISTINCT - + 44 AS col2, COUNT ( * ) FROM tab2 AS cor0
----
-44
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + - col2 = NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE - 78 IS NULL
----

query II rowsort
SELECT ALL - col1 AS col2, 90 FROM tab1
----
-14
90
-47
90
-5
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT DISTINCT + 66 + 24 * COUNT( * ) AS col0 FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-8711
SELECT DISTINCT + 66 + 24 * COUNT ( * ) AS col0 FROM tab1
----
138

query I rowsort
SELECT ALL col0 * + ( - col2 ) + - col2 AS col0 FROM tab0
----
-752
-880
-9702

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8713
SELECT ALL * FROM tab2 WHERE + ( + + CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8713
SELECT ALL * FROM tab2 WHERE + ( + + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 83 * + + col1 * - 97 FROM tab2
----
410601
539417
619927

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col1 * + - 69 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8716
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) + - 16 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8716
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) + - 16 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ( + col1 ) + + - col2 / + + 34 FROM tab1 AS cor0 WHERE ( + col1 ) <> NULL
----

query I rowsort
SELECT + col1 + - 19 AS col2 FROM tab0 AS cor0
----
-18
2
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8719
SELECT - + CAST( NULL AS SIGNED ) + + col0 - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8719
SELECT - + CAST ( NULL AS INTEGER ) + + col0 - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) > - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + col1 col1, 98 AS col1 FROM tab0
----
108
98
96
98
98
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8722
SELECT ALL + col0 DIV - CAST( col1 AS SIGNED ) + + col1 FROM tab1
----
-12
11
46

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL + col0 / - CAST ( col1 AS INTEGER ) + + col1 FROM tab1
----
-12
11
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT DISTINCT - ( + SUM( ALL + col2 ) ) AS col1 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8723
SELECT DISTINCT - ( + SUM ( ALL + col2 ) ) AS col1 FROM tab0 cor0
----
-156

query I rowsort
SELECT 86 - + col2 AS col1 FROM tab0 cor0
----
-13
39
76

query I rowsort
SELECT - 31 - + 59 AS col0 FROM tab2 AS cor0
----
-90
-90
-90

query I rowsort
SELECT ALL col0 * + 18 + + 36 AS col2 FROM tab2 AS cor0
----
1188
1386
864

query I rowsort
SELECT DISTINCT - + 40 AS col0 FROM tab0 AS cor0
----
-40

query I rowsort
SELECT ALL - col2 * - 82 * - col2 AS col1 FROM tab1 AS cor0
----
-285442
-379168
-755712

onlyif mysql # DIV for integer division: 
query I rowsort label-8729
SELECT DISTINCT 15 DIV + + col1 + - col0 AS col2 FROM tab0 AS cor0
----
-15
-82
-87

skipif mysql # not compatible
query I rowsort label-8729
SELECT DISTINCT 15 / + + col1 + - col0 AS col2 FROM tab0 AS cor0
----
-15
-82
-87

query I rowsort
SELECT col1 * - + col1 * - + col1 FROM tab1 AS cor0
----
103823
125
2744

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = 16
----

query I rowsort
SELECT + - 58 * - - 72 FROM tab2 AS cor0
----
-4176
-4176
-4176

query II rowsort
SELECT ALL col2 AS col1, - col2 * - col0 AS col2 FROM tab0
----
10
870
47
705
99
9603

query I rowsort
SELECT ALL - ( - + col1 ) FROM tab2 WHERE NOT + 38 IS NULL
----
51
67
77

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col0 BETWEEN + + 90 AND + - col2 * + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT ALL - + MIN( DISTINCT - - 26 ) AS col1 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-8736
SELECT ALL - + MIN ( DISTINCT - - 26 ) AS col1 FROM tab2 AS cor0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8737
SELECT + + CAST( ( - 15 ) AS SIGNED ), col0 FROM tab1 AS cor0
----
-15
51
-15
85
-15
91

skipif mysql # not compatible
query II rowsort label-8737
SELECT + + CAST ( ( - 15 ) AS INTEGER ), col0 FROM tab1 AS cor0
----
-15
51
-15
85
-15
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8739
SELECT DISTINCT * FROM tab2 WHERE - + CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8739
SELECT DISTINCT * FROM tab2 WHERE - + CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8740
SELECT DISTINCT * FROM tab0 WHERE NOT + ( + 40 ) / - 38 - CAST( + - col0 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-8740
SELECT DISTINCT * FROM tab0 WHERE NOT + ( + 40 ) / - 38 - CAST ( + - col0 AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT COUNT( + col2 ) * 38 AS col0 FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-8741
SELECT COUNT ( + col2 ) * 38 AS col0 FROM tab2 AS cor0
----
114

query I rowsort
SELECT 46 * - 11 AS col1 FROM tab2 AS cor0
----
-506
-506
-506

query I rowsort
SELECT + - col2 + + 27 AS col0 FROM tab2 AS cor0
----
-13
-31
4

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 BETWEEN + ( + - 44 ) AND col1 * col1 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + 35 ) + col1 * col1 AS col0 FROM tab2
----
2566
4454
5894

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8746
SELECT ALL - 23 + + + col0 + - 23 * CAST( NULL AS SIGNED ) * + 48 * 9 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8746
SELECT ALL - 23 + + + col0 + - 23 * CAST ( NULL AS INTEGER ) * + 48 * 9 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8747
SELECT DISTINCT + 95 AS col1, COUNT( * ) * 4 * - - COUNT( * ) - - + CAST( + + 65 AS SIGNED ) AS col0 FROM tab1 WHERE NULL < - col1 + col2
----
95
65

skipif mysql # not compatible
query II rowsort label-8747
SELECT DISTINCT + 95 AS col1, COUNT ( * ) * 4 * - - COUNT ( * ) - - + CAST ( + + 65 AS INTEGER ) AS col0 FROM tab1 WHERE NULL < - col1 + col2
----
95
65

onlyif mysql # aggregate syntax: 
query II rowsort label-8748
SELECT - ( - 25 ) + + COUNT( * ) AS col0, + ( 40 ) AS col1 FROM tab2
----
28
40

skipif mysql # not compatible
query II rowsort label-8748
SELECT - ( - 25 ) + + COUNT ( * ) AS col0, + ( 40 ) AS col1 FROM tab2
----
28
40

query I rowsort
SELECT - col1 + + 61 * - col1 * col2 + - col0 + + col2 AS col2 FROM tab1
----
-18026
-195026
-81953

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8750
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST( - col1 AS SIGNED ) + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8750
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( - col1 AS INTEGER ) + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 54 + - + col0 + + - 38 + + - col2 * + 28 * col1 AS col1 FROM tab0
----
-106595
-2853
-5951

onlyif mysql # aggregate syntax: 
query II rowsort label-8752
SELECT ALL COUNT( * ) AS col2, 52 FROM tab1
----
3
52

skipif mysql # not compatible
query II rowsort label-8752
SELECT ALL COUNT ( * ) AS col2, 52 FROM tab1
----
3
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT DISTINCT COUNT( * ) * - 35 AS col2 FROM tab0 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-8753
SELECT DISTINCT COUNT ( * ) * - 35 AS col2 FROM tab0 AS cor0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT DISTINCT - 21 + - COUNT( * ) FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-8754
SELECT DISTINCT - 21 + - COUNT ( * ) FROM tab2
----
-24

query I rowsort
SELECT ALL 59 + + 20 FROM tab1
----
79
79
79

query I rowsort
SELECT col2 * - + 71 + - col1 AS col1 FROM tab2
----
-1684
-2917
-4185

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8758
SELECT DISTINCT + + 19 col2, - COUNT( * ) col0 FROM tab2 cor0
----
19
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8758
SELECT DISTINCT + + 19 col2, - COUNT ( * ) col0 FROM tab2 cor0
----
19
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 22 col1 FROM tab1 AS cor0
----
-22

query II rowsort
SELECT ALL - - col1, + col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query I rowsort
SELECT ALL + 49 * - + col2 FROM tab1 AS cor0
----
-2891
-3332
-4704

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 * - + col2 IS NOT NULL
----

query I rowsort
SELECT + - col2 * - 13 AS col2 FROM tab2 AS cor0
----
299
520
754

query I rowsort
SELECT ALL col0 * - - 13 + - 30 * + col0 FROM tab0 cor0
----
-1479
-1649
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT ALL - - MAX( 1 ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8765
SELECT ALL - - MAX ( 1 ) AS col2 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8766
SELECT ALL - col0 DIV CAST( col2 AS SIGNED ) col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8766
SELECT ALL - col0 / CAST ( col2 AS INTEGER ) col2 FROM tab1
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT + COUNT( * ) * ( + 90 ) FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-8767
SELECT + COUNT ( * ) * ( + 90 ) FROM tab0
----
270

query I rowsort
SELECT ALL + col0 * - + 67 * + + ( 86 ) AS col1 FROM tab1
----
-293862
-489770
-524342

onlyif mysql # aggregate syntax: 
query II rowsort label-8769
SELECT + ( - 51 ) AS col0, SUM( + - col2 ) * - 73 - - - 35 + 31 AS col1 FROM tab2
----
-51
8829

skipif mysql # not compatible
query II rowsort label-8769
SELECT + ( - 51 ) AS col0, SUM ( + - col2 ) * - 73 - - - 35 + 31 AS col1 FROM tab2
----
-51
8829

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * + 48 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + + - 24 FROM tab0 AS cor0
----
-23
-3
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 col0 FROM tab2 AS cor0
----
-48
-48
-48

query I rowsort
SELECT 20 * ( - col2 ) AS col0 FROM tab2
----
-1160
-460
-800

query I rowsort
SELECT ( col1 ) + col0 AS col2 FROM tab2
----
141
142
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8775
SELECT col0 * CAST( + + col2 AS SIGNED ) + - col0 FROM tab1
----
4845
4930
6097

skipif mysql # not compatible
query I rowsort label-8775
SELECT col0 * CAST ( + + col2 AS INTEGER ) + - col0 FROM tab1
----
4845
4930
6097

query I rowsort
SELECT DISTINCT - + 31 + - 75 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT - 91 + - + COUNT( ALL - - col2 ) AS col1 FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-8777
SELECT - 91 + - + COUNT ( ALL - - col2 ) AS col1 FROM tab2
----
-94

query I rowsort
SELECT + 96 * + ( - col1 ) AS col0 FROM tab2 AS cor0 WHERE - 3 + + col1 * + ( - - 13 ) * col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT ALL 20 * + + 10 + - - COUNT( + col1 ) FROM tab1 AS cor0
----
203

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL 20 * + + 10 + - - COUNT ( + col1 ) FROM tab1 AS cor0
----
203

query I rowsort
SELECT DISTINCT 82 AS col1 FROM tab1 cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT ( + - COUNT( ALL + col0 ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8781
SELECT ( + - COUNT ( ALL + col0 ) ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT DISTINCT COUNT( * ) * - + 0 col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8782
SELECT DISTINCT COUNT ( * ) * - + 0 col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT 10 * + col1 + - col0 * - col0 FROM tab2
----
2626
4866
6295

query III rowsort
SELECT * FROM tab2 WHERE - - 69 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT DISTINCT 18 * - SUM( DISTINCT col1 ) - 42 AS col0 FROM tab1
----
-1230

skipif mysql # not compatible
query I rowsort label-8785
SELECT DISTINCT 18 * - SUM ( DISTINCT col1 ) - 42 AS col0 FROM tab1
----
-1230

query I rowsort
SELECT ALL - 82 + - + 21 FROM tab0 AS cor0
----
-103
-103
-103

query II rowsort
SELECT ALL - + ( - 27 ) AS col2, + col1 AS col1 FROM tab2 AS cor0
----
27
51
27
67
27
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8788
SELECT DISTINCT + CAST( + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8788
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8789
SELECT DISTINCT CAST( - - 35 AS SIGNED ) FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-8789
SELECT DISTINCT CAST ( - - 35 AS INTEGER ) FROM tab0 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT COUNT( ALL - - col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8790
SELECT COUNT ( ALL - - col0 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL 91 * + col0 FROM tab2 AS cor0
----
4186
5824
6825

query II rowsort
SELECT DISTINCT + 18 AS col0, ( - 64 ) * - 1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
18
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8793
SELECT DISTINCT ( + COUNT( * ) ) * + - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8793
SELECT DISTINCT ( + COUNT ( * ) ) * + - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8794
SELECT DISTINCT - CAST( + CAST( - + COUNT( * ) AS SIGNED ) AS SIGNED ) * - - SUM( + col0 ) FROM tab2 AS cor0
----
555

skipif mysql # not compatible
query I rowsort label-8794
SELECT DISTINCT - CAST ( + CAST ( - + COUNT ( * ) AS INTEGER ) AS INTEGER ) * - - SUM ( + col0 ) FROM tab2 AS cor0
----
555

query I rowsort
SELECT ALL + col1 * col1 - + col1 * + 32 FROM tab2 AS cor0
----
2345
3465
969

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT ( - SUM( ALL - ( + 69 ) ) ) * + - 1 FROM tab1 cor0
----
-207

skipif mysql # not compatible
query I rowsort label-8796
SELECT ( - SUM ( ALL - ( + 69 ) ) ) * + - 1 FROM tab1 cor0
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT + 81 * - - MIN( - 52 ) FROM tab1 AS cor0
----
-4212

skipif mysql # not compatible
query I rowsort label-8797
SELECT + 81 * - - MIN ( - 52 ) FROM tab1 AS cor0
----
-4212

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT + COUNT( * ) * 95 AS col2 FROM tab2 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-8798
SELECT + COUNT ( * ) * 95 AS col2 FROM tab2 AS cor0
----
285

onlyif mysql # DIV for integer division: 
query I rowsort label-8799
SELECT ALL col2 DIV + 94 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8799
SELECT ALL col2 / + 94 FROM tab0 AS cor0
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN 56 + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT ALL MAX( DISTINCT - 14 ) FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL MAX ( DISTINCT - 14 ) FROM tab1
----
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, + col1 * - 44 FROM tab0
----
1
-44
21
-924
81
-3564

query II rowsort
SELECT DISTINCT - 72 * + 88 AS col2, - ( + col2 ) AS col1 FROM tab2
----
-6336
-23
-6336
-40
-6336
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8804
SELECT ALL 98 FROM tab2 WHERE NOT - col1 IN ( + - CAST( NULL AS DECIMAL ) + + 49, + 98, - - col1 )
----

skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL 98 FROM tab2 WHERE NOT - col1 IN ( + - CAST ( NULL AS REAL ) + + 49, + 98, - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT + MIN( ALL + - 80 ) * - 24 col1 FROM tab2
----
1920

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8805
SELECT + MIN ( ALL + - 80 ) * - 24 col1 FROM tab2
----
1920

onlyif mysql # DIV for integer division: 
query I rowsort label-8806
SELECT ALL + + col0 DIV + - ( + col1 ) + + col1 AS col2 FROM tab1 AS cor0
----
-12
11
46

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL + + col0 / + - ( + col1 ) + + col1 AS col2 FROM tab1 AS cor0
----
-12
11
46

query II rowsort
SELECT + 40 * + 9 AS col2, + col2 * + 1 AS col1 FROM tab0 AS cor0
----
360
10
360
47
360
99

query II rowsort
SELECT 62 AS col2, - col2 + - col0 FROM tab2 cor0
----
62
-104
62
-133
62
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT + SUM( ALL ( + col2 ) ) col0 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8809
SELECT + SUM ( ALL ( + col2 ) ) col0 FROM tab0
----
156

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> - - ( 61 ) * col2 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8811
SELECT DISTINCT - col2 * + + CAST( col0 AS SIGNED ) FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-8811
SELECT DISTINCT - col2 * + + CAST ( col0 AS INTEGER ) FROM tab0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-8812
SELECT ALL + 49 DIV col2 * - - col2 AS col1 FROM tab2
----
0
40
46

skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL + 49 / col2 * - - col2 AS col1 FROM tab2
----
0
40
46

query II rowsort
SELECT DISTINCT - ( - col0 ) * - col0 AS col1, - col0 AS col2 FROM tab0 AS cor0
----
-225
-15
-7569
-87
-9409
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 96 col1 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT ( + COUNT( ALL - col2 ) ) FROM tab2 cor0 WHERE 85 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8815
SELECT ( + COUNT ( ALL - col2 ) ) FROM tab2 cor0 WHERE 85 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT - COUNT( * ) + SUM( + col0 ) * + 69 FROM tab1 AS cor0
----
15660

skipif mysql # not compatible
query I rowsort label-8816
SELECT - COUNT ( * ) + SUM ( + col0 ) * + 69 FROM tab1 AS cor0
----
15660

query I rowsort
SELECT DISTINCT - ( + - col1 ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - col0 + - - 52 * + 0 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT DISTINCT 20 AS col2 FROM tab0 cor0
----
20

query I rowsort
SELECT ALL 45 + col2 * + - 35 AS col2 FROM tab0
----
-1600
-305
-3420

onlyif mysql # DIV for integer division: 
query II rowsort label-8821
SELECT ( ( col2 ) ), - col1 DIV col1 + - + 55 FROM tab2
----
23
-56
40
-56
58
-56

skipif mysql # not compatible
query II rowsort label-8821
SELECT ( ( col2 ) ), - col1 / col1 + - + 55 FROM tab2
----
23
-56
40
-56
58
-56

query I rowsort
SELECT + col2 FROM tab0 WHERE NULL >= - col2 / - 23 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT DISTINCT + MAX( DISTINCT - 44 ) + 57 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-8823
SELECT DISTINCT + MAX ( DISTINCT - 44 ) + 57 FROM tab1
----
13

query I rowsort
SELECT DISTINCT + col1 * + 31 FROM tab0
----
2511
31
651

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8825
SELECT DISTINCT + + col1 - + + CAST( 38 AS SIGNED ) + - col0 AS col1 FROM tab0 AS cor0
----
-104
-134
28

skipif mysql # not compatible
query I rowsort label-8825
SELECT DISTINCT + + col1 - + + CAST ( 38 AS INTEGER ) + - col0 AS col1 FROM tab0 AS cor0
----
-104
-134
28

onlyif mysql # DIV for integer division: 
query I rowsort label-8826
SELECT + + ( - + col2 ) * col0 + - ( + + col2 ) DIV col2 - + 72 col1 FROM tab0 AS cor0
----
-778
-943
-9676

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8826
SELECT + + ( - + col2 ) * col0 + - ( + + col2 ) / col2 - + 72 col1 FROM tab0 AS cor0
----
-778
-943
-9676

query I rowsort
SELECT DISTINCT + - 2 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
-2

query I rowsort
SELECT col0 * - 47 AS col2 FROM tab2 AS cor0
----
-2162
-3008
-3525

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 63 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 97 + + col2 AS col2 FROM tab2
----
120
137
155

query III rowsort
SELECT * FROM tab0 WHERE NOT 71 / + ( + col0 * - col1 ) > ( NULL )
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT 73 / - 38 >= ( - 97 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) col1 FROM tab2 WHERE - col2 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col0 ) BETWEEN NULL AND ( col1 + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8835
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * col2 BETWEEN NULL AND CAST( NULL AS SIGNED ) + - col0
----

skipif mysql # not compatible
query III rowsort label-8835
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * col2 BETWEEN NULL AND CAST ( NULL AS INTEGER ) + - col0
----

query I rowsort
SELECT col1 * 43 AS col2 FROM tab0 WHERE NULL NOT BETWEEN col0 * + col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= - col2 * + col1 + 27
----

query I rowsort
SELECT ALL + col0 + + 30 AS col1 FROM tab0
----
117
127
45

query I rowsort
SELECT DISTINCT ( + col0 ) + 34 AS col2 FROM tab0
----
121
131
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT MIN( ALL - 34 ) AS col2 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-8840
SELECT MIN ( ALL - 34 ) AS col2 FROM tab0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT COUNT( * ) * COUNT( * ) + - 52 * - COUNT( * ) FROM tab0
----
165

skipif mysql # not compatible
query I rowsort label-8841
SELECT COUNT ( * ) * COUNT ( * ) + - 52 * - COUNT ( * ) FROM tab0
----
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 col0 FROM tab1
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8843
SELECT ALL * FROM tab1 WHERE + col0 BETWEEN ( - col1 ) AND col0 + + ( CAST( - col0 AS SIGNED ) ) * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8843
SELECT ALL * FROM tab1 WHERE + col0 BETWEEN ( - col1 ) AND col0 + + ( CAST ( - col0 AS INTEGER ) ) * CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT + MIN( DISTINCT 69 ) * SUM( DISTINCT - col1 ) FROM tab2 WHERE NOT NULL NOT IN ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8844
SELECT + MIN ( DISTINCT 69 ) * SUM ( DISTINCT - col1 ) FROM tab2 WHERE NOT NULL NOT IN ( + col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8845
SELECT DISTINCT * FROM tab2 WHERE col0 - + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8845
SELECT DISTINCT * FROM tab2 WHERE col0 - + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT COUNT( * ) - COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8846
SELECT COUNT ( * ) - COUNT ( * ) AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8847
SELECT ALL + 80 + - CAST( + 53 AS SIGNED ) AS col0 FROM tab1
----
27
27
27

skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL + 80 + - CAST ( + 53 AS INTEGER ) AS col0 FROM tab1
----
27
27
27

query I rowsort
SELECT col1 + 88 AS col2 FROM tab2
----
139
155
165

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 88 BETWEEN NULL AND - col0
----
91
47
68

query I rowsort
SELECT + col2 * col1 + 17 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
116
227
3824

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT MIN( + 43 ) AS col2 FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-8851
SELECT MIN ( + 43 ) AS col2 FROM tab0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8852
SELECT col0 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * 54 IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-8852
SELECT col0 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * 54 IN ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 91 * col0 NOT BETWEEN NULL AND + col0 + 86
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * + 87 + col1 FROM tab1 AS cor0
----
5138
5963
8366

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > - 8
----

query I rowsort
SELECT + 86 + + col2 FROM tab1
----
145
154
182

query III rowsort
SELECT * FROM tab1 WHERE 44 NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 81 * 89 FROM tab0 AS cor0 WHERE NOT ( + 78 + col2 ) = + col0
----
7209
7209
7209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8859
SELECT ALL MAX( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL MAX ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN - col2 AND col1
----
46
51
23
64
77
40

query I rowsort
SELECT - + 57 * + 88 FROM tab1 AS cor0
----
-5016
-5016
-5016

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8862
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8863
SELECT + - col2 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8863
SELECT + - col2 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 5 ) col0 FROM tab1 cor0
----
-5
-5
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 > ( + col1 + + 80 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8866
SELECT ALL - + 66 DIV col1 + 40 * col0 FROM tab0 AS cor0
----
3477
3814
600

skipif mysql # not compatible
query I rowsort label-8866
SELECT ALL - + 66 / col1 + 40 * col0 FROM tab0 AS cor0
----
3477
3814
600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8867
SELECT - - COUNT( * ) DIV + ( 87 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8867
SELECT - - COUNT ( * ) / + ( 87 ) FROM tab1 cor0
----
0

query I rowsort
SELECT 89 - - + col1 FROM tab0
----
110
170
90

query I rowsort
SELECT 7 - + col0 * + col2 FROM tab1
----
-4889
-5008
-6181

query I rowsort
SELECT col2 - col2 * - col0 AS col0 FROM tab0
----
752
880
9702

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE ( NULL ) IS NULL
----
-10
-47
-99

query I rowsort
SELECT + 9 + 31 FROM tab2
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 <= ( - 18 + + col0 * - col1 )
----
3

skipif mysql # not compatible
query I rowsort label-8873
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 <= ( - 18 + + col0 * - col1 )
----
3

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 cor0 WHERE NOT 9 * ( + 32 ) = ( - col0 )
----
10
47
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 >= ( col1 )
----

query I rowsort
SELECT 36 FROM tab0 cor0 WHERE NOT 32 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT IN ( - col2 * - col1 / + 68 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8878
SELECT - - 38 col2, COUNT( * ) FROM tab2 AS cor0
----
38
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8878
SELECT - - 38 col2, COUNT ( * ) FROM tab2 AS cor0
----
38
3

query II rowsort
SELECT + + 39 AS col1, + col2 * col1 - col1 * col2 AS col0 FROM tab0 AS cor0
----
39
0
39
0
39
0

query II rowsort
SELECT - - col2 AS col1, col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 31 col1 FROM tab1 AS cor0
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 col0 FROM tab0 AS cor0
----
66

query I rowsort
SELECT ALL ( - 12 ) + col0 + + col0 AS col0 FROM tab1
----
158
170
90

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 <= + col1
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE ( + col1 ) NOT IN ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8885
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE ( + col1 ) NOT IN ( + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NOT NULL AND - 71 * col1 IN ( 71 )
----
0

skipif mysql # not compatible
query I rowsort label-8886
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NOT NULL AND - 71 * col1 IN ( 71 )
----
0

query III rowsort
SELECT * FROM tab0 WHERE col2 IS NOT NULL AND NOT NULL <= col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col2 + + col2 BETWEEN - 14 AND ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * 11 FROM tab2 WHERE NOT - + col1 NOT IN ( col2 + col1 )
----

query I rowsort
SELECT + 95 + + - col1 FROM tab0
----
14
74
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT MAX( col0 ) + + + MAX( DISTINCT + 84 ) FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-8891
SELECT MAX ( col0 ) + + + MAX ( DISTINCT + 84 ) FROM tab2
----
159

query I rowsort
SELECT col0 * - - col1 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT - - MIN( DISTINCT + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8893
SELECT - - MIN ( DISTINCT + col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT ALL COUNT( + col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8894
SELECT ALL COUNT ( + col0 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT 20 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE 89 - + 45 + + 58 - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 24 - + 99 AS col0 FROM tab2 cor0
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col1, + col2 * + 21 col0 FROM tab0 AS cor0
----
10
210
47
987
99
2079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8899
SELECT ALL MAX( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8899
SELECT ALL MAX ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 92 BETWEEN ( + col1 ) AND 89
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8901
SELECT ALL col2 + + + CAST( + 75 AS SIGNED ) * + col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( col1 ) <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL col2 + + + CAST ( + 75 AS INTEGER ) * + col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( col1 ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT 23 + 26 * - 17 * MIN( DISTINCT - col1 ) AS col1 FROM tab0 WHERE ( - - 95 ) IS NOT NULL
----
35825

skipif mysql # not compatible
query I rowsort label-8902
SELECT 23 + 26 * - 17 * MIN ( DISTINCT - col1 ) AS col1 FROM tab0 WHERE ( - - 95 ) IS NOT NULL
----
35825

query I rowsort
SELECT ALL col0 * - col0 * - 16 * + col1 - - col0 + col2 + + col0 FROM tab1
----
578229
582822
6227562

onlyif mysql # DIV for integer division: 
query II rowsort label-8904
SELECT DISTINCT col2 AS col0, + col1 DIV + col0 * + - col1 FROM tab1
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-8904
SELECT DISTINCT col2 AS col0, + col1 / + col0 * + - col1 FROM tab1
----
59
0
68
0
96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT ALL - COUNT( DISTINCT ( + col2 ) ) * + COUNT( col1 ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL - COUNT ( DISTINCT ( + col2 ) ) * + COUNT ( col1 ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-27

query III rowsort
SELECT ALL + col1, + col1, col2 AS col2 FROM tab2 AS cor0
----
9 values hashing to cb6a6ba5755f92071bf8a8a82b944fe1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8907
SELECT ALL 35 DIV + - COUNT( * ) + 41 + - - 81 FROM tab2 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-8907
SELECT ALL 35 / + - COUNT ( * ) + 41 + - - 81 FROM tab2 AS cor0
----
111

query I rowsort
SELECT DISTINCT - + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + col2 * col0 AND + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8909
SELECT ALL COUNT( * ) DIV 91 * + 82 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8909
SELECT ALL COUNT ( * ) / 91 * + 82 AS col2 FROM tab2
----
0

query I rowsort
SELECT + ( - 98 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= col0 * - 84
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8914
SELECT + + CAST( + ( - col0 ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8914
SELECT + + CAST ( + ( - col0 ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT DISTINCT - + MAX( ALL - col1 ) AS col1 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-8915
SELECT DISTINCT - + MAX ( ALL - col1 ) AS col1 FROM tab1 cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 19 col0 FROM tab0 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT + COUNT( ALL - + ( + 72 ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8917
SELECT + COUNT ( ALL - + ( + 72 ) ) AS col2 FROM tab1
----
3

query I rowsort
SELECT ALL - 49 + 61 FROM tab1
----
12
12
12

query I rowsort
SELECT ALL - + 41 FROM tab1 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 33 AS col2, + col0 AS col0 FROM tab2
----
33
46
33
64
33
75

query III rowsort
SELECT * FROM tab1 cor0 WHERE 75 * - - col0 = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT + COUNT( * ) + 42 + - + 94 * + - COUNT( * ) FROM tab0 AS cor0
----
327

skipif mysql # not compatible
query I rowsort label-8922
SELECT + COUNT ( * ) + 42 + - + 94 * + - COUNT ( * ) FROM tab0 AS cor0
----
327

query I rowsort
SELECT + 56 + + 52 FROM tab1 AS cor0
----
108
108
108

query I rowsort
SELECT - - col1 + 71 FROM tab2 AS cor0
----
122
138
148

query I rowsort
SELECT - col1 FROM tab0 cor0 WHERE - col1 * col2 / + 73 * col1 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT - - col0 + - + 33 FROM tab2 AS cor0
----
13
31
42

query I rowsort
SELECT ALL 71 * + - 35 + ( - 31 ) FROM tab0
----
-2516
-2516
-2516

query I rowsort
SELECT ALL + + 17 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT ALL + ( + col1 ) - col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 - - 68 AS col0 FROM tab1 AS cor0
----
119
153
159

query I rowsort
SELECT DISTINCT - ( ( + ( - col0 ) ) ) * + 15 AS col0 FROM tab0 AS cor0
----
1305
1455
225

query I rowsort
SELECT ALL 9 * - col2 * col0 FROM tab1 AS cor0
----
-44064
-45135
-55692

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT - 77 - COUNT( * ) AS col2 FROM tab1 cor0
----
-80

skipif mysql # not compatible
query I rowsort label-8933
SELECT - 77 - COUNT ( * ) AS col2 FROM tab1 cor0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT + SUM( - + col2 ) FROM tab2 AS cor0 WHERE + col1 / + 6 + + + col0 >= + col2
----
-121

skipif mysql # not compatible
query I rowsort label-8934
SELECT + SUM ( - + col2 ) FROM tab2 AS cor0 WHERE + col1 / + 6 + + + col0 >= + col2
----
-121

query I rowsort
SELECT ALL - 14 AS col2 FROM tab0 cor0 WHERE NOT 2 >= NULL
----

query I rowsort
SELECT DISTINCT + 14 * - 11 - + col1 FROM tab0 AS cor0
----
-155
-175
-235

onlyif mysql # DIV for integer division: 
query I rowsort label-8937
SELECT + 10 DIV - col2 * - ( - 99 ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8937
SELECT + 10 / - col2 * - ( - 99 ) AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8938
SELECT + COUNT( * ) DIV 62 col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8938
SELECT + COUNT ( * ) / 62 col1 FROM tab0
----
0

query I rowsort
SELECT ALL 50 * - col0 FROM tab1
----
-2550
-4250
-4550

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT SUM( ALL - col0 ) * COUNT( * ) FROM tab0 AS cor0
----
-597

skipif mysql # not compatible
query I rowsort label-8940
SELECT SUM ( ALL - col0 ) * COUNT ( * ) FROM tab0 AS cor0
----
-597

query II rowsort
SELECT + col1, + 84 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 < NULL
----

query I rowsort
SELECT DISTINCT + col0 * - + 14 AS col2 FROM tab1 AS cor0
----
-1190
-1274
-714

query III rowsort
SELECT ALL - col1 AS col1, col0, - - col1 AS col0 FROM tab1
----
9 values hashing to fca5c454bef48c98a9adc51beffe0229

query II rowsort
SELECT - col2 AS col1, 5 FROM tab2
----
-23
5
-40
5
-58
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8945
SELECT - col1 DIV + - col2 * - + col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8945
SELECT - col1 / + - col2 * - + col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT ALL - - COUNT( * ) + 80 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
89

skipif mysql # not compatible
query I rowsort label-8946
SELECT ALL - - COUNT ( * ) + 80 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8947
SELECT DISTINCT + COUNT( * ) * - SUM( col1 ) * CAST( COUNT( * ) AS SIGNED ) FROM tab2
----
-1755

skipif mysql # not compatible
query I rowsort label-8947
SELECT DISTINCT + COUNT ( * ) * - SUM ( col1 ) * CAST ( COUNT ( * ) AS INTEGER ) FROM tab2
----
-1755

onlyif mysql # DIV for integer division: 
query I rowsort label-8948
SELECT - 88 DIV + col1 - + col0 AS col1 FROM tab1 AS cor0
----
-102
-57
-92

skipif mysql # not compatible
query I rowsort label-8948
SELECT - 88 / + col1 - + col0 AS col1 FROM tab1 AS cor0
----
-102
-57
-92

query I rowsort
SELECT - col2 * - 25 + - 26 AS col2 FROM tab2 AS cor0
----
1424
549
974

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8950
SELECT COUNT( * ) DIV + MAX( DISTINCT - col0 ) * + - COUNT( * ) + - MAX( ALL - col0 ) col0 FROM tab0 cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8950
SELECT COUNT ( * ) / + MAX ( DISTINCT - col0 ) * + - COUNT ( * ) + - MAX ( ALL - col0 ) col0 FROM tab0 cor0
----
15

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 61 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT DISTINCT - SUM( - 39 ) * + 16 AS col1 FROM tab1 AS cor0
----
1872

skipif mysql # not compatible
query I rowsort label-8952
SELECT DISTINCT - SUM ( - 39 ) * + 16 AS col1 FROM tab1 AS cor0
----
1872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8953
SELECT CAST( 88 AS SIGNED ) FROM tab1 cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-8953
SELECT CAST ( 88 AS INTEGER ) FROM tab1 cor0
----
88
88
88

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 0 IS NULL
----

query I rowsort
SELECT ALL + col1 * + col0 + + - col0 AS col1 FROM tab1 cor0
----
340
4186
663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) * + 3 / + 51 col2 FROM tab0 AS cor0 WHERE 7 / + ( + col0 ) <= + - col0
----

query I rowsort
SELECT DISTINCT - col2 + - - ( col2 ) + + col2 FROM tab2
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 IN ( + - 20 * + col2 / - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 68 + - - 34 + + 14 FROM tab0
----
116
116
116

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT ALL + MAX( ALL col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL + MAX ( ALL col1 ) AS col1 FROM tab2
----
77

query II rowsort
SELECT - col1 + 88 AS col1, - 22 AS col0 FROM tab1
----
41
-22
74
-22
83
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8962
SELECT DISTINCT - CAST( - col2 AS SIGNED ) + col1 FROM tab0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-8962
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) + col1 FROM tab0
----
100
128
31

onlyif mysql # DIV for integer division: 
query II rowsort label-8963
SELECT - col2 DIV - - 17, col2 AS col2 FROM tab1 AS cor0
----
-3
59
-4
68
-5
96

skipif mysql # not compatible
query II rowsort label-8963
SELECT - col2 / - - 17, col2 AS col2 FROM tab1 AS cor0
----
-3
59
-4
68
-5
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8964
SELECT DISTINCT CAST( - - col2 AS SIGNED ) AS col2 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8964
SELECT DISTINCT CAST ( - - col2 AS INTEGER ) AS col2 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT ALL - + col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT COUNT( * ) + + MIN( ALL col2 ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-8966
SELECT COUNT ( * ) + + MIN ( ALL col2 ) FROM tab0
----
13

query I rowsort
SELECT - col1 + + - col0 AS col1 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT - - COUNT( ALL - col1 ) + - COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8968
SELECT - - COUNT ( ALL - col1 ) + - COUNT ( * ) FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT 68 - + - col2 AS col1 FROM tab0 AS cor0
----
115
167
78

onlyif mysql # aggregate syntax: 
query II rowsort label-8970
SELECT ALL + + COUNT( * ) AS col0, + MAX( ALL col1 ) AS col1 FROM tab1 AS cor0
----
3
47

skipif mysql # not compatible
query II rowsort label-8970
SELECT ALL + + COUNT ( * ) AS col0, + MAX ( ALL col1 ) AS col1 FROM tab1 AS cor0
----
3
47

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8971
SELECT ALL 0 AS col1, - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-8971
SELECT ALL 0 AS col1, - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
0
NULL
0
NULL
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT ALL + COUNT( ALL - 92 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8972
SELECT ALL + COUNT ( ALL - 92 ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8973
SELECT col2 * - - ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8973
SELECT col2 * - - ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8974
SELECT + 92 DIV - SUM( DISTINCT - col0 ) col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8974
SELECT + 92 / - SUM ( DISTINCT - col0 ) col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + col2 * - + col0 AS col1 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT - col0 * - + col0 - - - col2 AS col1 FROM tab1 AS cor0
----
2505
7166
8213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8977
SELECT CAST( NULL AS SIGNED ) * - col1 * - col2 / - + 64 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8977
SELECT CAST ( NULL AS INTEGER ) * - col1 * - col2 / - + 64 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT DISTINCT COUNT( + - col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8978
SELECT DISTINCT COUNT ( + - col1 ) AS col2 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT NULL NOT BETWEEN col2 * - col1 * + - col1 AND col2 * - col0 + + 86 * - col2 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col1 + + + col1 * + col0 >= + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 col1 FROM tab2 AS cor0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8982
SELECT ALL - 42 DIV - col2 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL - 42 / - col2 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT + MIN( + 90 ) FROM tab2 cor0
----
90

skipif mysql # not compatible
query I rowsort label-8983
SELECT + MIN ( + 90 ) FROM tab2 cor0
----
90

query I rowsort
SELECT ALL - + col2 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT ALL + 49 + + ( + 66 ) * 28 FROM tab2 AS cor0
----
1897
1897
1897

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8986
SELECT + CAST( + 62 AS SIGNED ) col1 FROM tab2
----
62
62
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8986
SELECT + CAST ( + 62 AS INTEGER ) col1 FROM tab2
----
62
62
62

query I rowsort
SELECT - col2 * - + 47 FROM tab2
----
1081
1880
2726

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT ALL 78 + - - MAX( DISTINCT + - col2 ) AS col1 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-8988
SELECT ALL 78 + - - MAX ( DISTINCT + - col2 ) AS col1 FROM tab0
----
68

query I rowsort
SELECT DISTINCT + col0 + + col2 + - - col0 FROM tab1
----
198
229
250

query I rowsort
SELECT ALL 81 + col1 AS col2 FROM tab2 AS cor0
----
132
148
158

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT - 95 + + COUNT( * ) FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-8991
SELECT - 95 + + COUNT ( * ) FROM tab1 AS cor0
----
-92

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8993
SELECT 43 DIV 56 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8993
SELECT 43 / 56 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + ( + + col1 ) * + col0 * + + 83 FROM tab2
----
194718
409024
417075

query III rowsort
SELECT * FROM tab2 WHERE + 22 <> - + col2 + + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8996
SELECT DISTINCT col2 - + + col1 DIV + 91 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8996
SELECT DISTINCT col2 - + + col1 / + 91 FROM tab1
----
59
68
96

query II rowsort
SELECT DISTINCT col2 AS col1, - ( - - ( + 53 ) ) FROM tab1
----
59
-53
68
-53
96
-53

query I rowsort
SELECT col1 + + col1 + + 68 AS col0 FROM tab2 cor0 WHERE NOT col1 NOT BETWEEN - col0 AND + - col0 * - col1 * + 14 + col2
----
170
202
222

query II rowsort
SELECT - + 33, 36 AS col0 FROM tab1 AS cor0
----
-33
36
-33
36
-33
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col0, + 17 col0 FROM tab1 AS cor0
----
-59
17
-68
17
-96
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9001
SELECT ALL + col0 * + - CAST( - - 70 AS SIGNED ) AS col0 FROM tab0
----
-1050
-6090
-6790

skipif mysql # not compatible
query I rowsort label-9001
SELECT ALL + col0 * + - CAST ( - - 70 AS INTEGER ) AS col0 FROM tab0
----
-1050
-6090
-6790

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9002
SELECT CAST( NULL AS SIGNED ) + col1 + - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9002
SELECT CAST ( NULL AS INTEGER ) + col1 + - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 24 + - - col1 + - - col0 + + ( + + col0 ) AS col2 FROM tab0 AS cor0
----
171
171
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT - COUNT( * ) + - - 40 FROM tab0 cor0 WHERE ( 21 BETWEEN + - col2 AND NULL )
----
40

skipif mysql # not compatible
query I rowsort label-9004
SELECT - COUNT ( * ) + - - 40 FROM tab0 cor0 WHERE ( 21 BETWEEN + - col2 AND NULL )
----
40

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 cor0 WHERE NOT NULL < col0
----

query I rowsort
SELECT DISTINCT + - 9 AS col2 FROM tab2 cor0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9007
SELECT + - COUNT( * ), + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( + - CAST( NULL AS DECIMAL ) ) IS NULL
----
-3
3

skipif mysql # not compatible
query II rowsort label-9007
SELECT + - COUNT ( * ), + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( + - CAST ( NULL AS REAL ) ) IS NULL
----
-3
3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 28 + + col0 IS NULL
----

query I rowsort
SELECT - + col2 * - + col2 * - col1 + - 50 AS col1 FROM tab2 AS cor0
----
-123250
-225438
-27029

query I rowsort
SELECT DISTINCT - col1 + + - col1 * + ( + col2 ) FROM tab0
----
-100
-231
-3888

query I rowsort
SELECT ALL 63 + + 50 FROM tab0
----
113
113
113

query I rowsort
SELECT col1 + - 92 AS col1 FROM tab0
----
-11
-71
-91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 54 - - - 86 * - - col1 - 48 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE - + 43 BETWEEN - col0 - col2 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9015
SELECT DISTINCT CAST( + - col1 AS SIGNED ) DIV - 96 + + 32 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-9015
SELECT DISTINCT CAST ( + - col1 AS INTEGER ) / - 96 + + 32 FROM tab2
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col2 - col0 col1 FROM tab2
----
-120
-181
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT 59 * - COUNT( * ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-9017
SELECT 59 * - COUNT ( * ) FROM tab1
----
-177

query III rowsort
SELECT * FROM tab1 WHERE + ( col1 ) / + + 26 + - col1 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col0 FROM tab2 WHERE + col0 IS NOT NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query II rowsort label-9020
SELECT col2, 48 DIV col1 AS col1 FROM tab2
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-9020
SELECT col2, 48 / col1 AS col1 FROM tab2
----
23
0
40
0
58
0

query I rowsort
SELECT DISTINCT - ( 96 ) - + col1 FROM tab2 AS cor0
----
-147
-163
-173

query I rowsort
SELECT DISTINCT col2 + - 1 + + col1 * + ( - 36 ) FROM tab1
----
-122
-1625
-409

query II rowsort
SELECT ALL 14, + 80 + - col1 AS col1 FROM tab0
----
14
-1
14
59
14
79

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( - col1 IN ( - ( - - 22 ) ) ) )
----

query II rowsort
SELECT + col2 AS col0, col0 + + 48 FROM tab2 AS cor0
----
23
94
40
112
58
123

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT ALL SUM( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9026
SELECT ALL SUM ( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT ALL + 76 * - COUNT( * ) FROM tab1 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-9027
SELECT ALL + 76 * - COUNT ( * ) FROM tab1 AS cor0
----
-228

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NULL BETWEEN + 79 AND col1 * + col0
----

query II rowsort
SELECT + col1, + col0 AS col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 + col2 * + 36 IS NOT NULL
----

query II rowsort
SELECT - col2 * - - col0 AS col2, + 52 FROM tab0
----
-705
52
-870
52
-9603
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9032
SELECT ALL CAST( 96 AS SIGNED ) col2, - col0 + - ( - + col0 ) col1 FROM tab0
----
96
0
96
0
96
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9032
SELECT ALL CAST ( 96 AS INTEGER ) col2, - col0 + - ( - + col0 ) col1 FROM tab0
----
96
0
96
0
96
0

query I rowsort
SELECT 56 AS col0 FROM tab2 WHERE NOT + col2 IS NULL
----
56
56
56

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col1 / - col2 BETWEEN - 22 AND + col2 * - - 39
----

query I rowsort
SELECT - col1 * + - col0 * col1 FROM tab1
----
201019
2125
9996

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE NOT - - col2 IS NOT NULL
----

query I rowsort
SELECT - 36 + 23 AS col0 FROM tab2 cor0
----
-13
-13
-13

query I rowsort
SELECT - 85 + + col1 AS col2 FROM tab0
----
-4
-64
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT ALL - + MAX( ALL 23 ) FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9039
SELECT ALL - + MAX ( ALL 23 ) FROM tab1 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT ALL SUM( ALL + - col2 ) AS col0 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9040
SELECT ALL SUM ( ALL + - col2 ) AS col0 FROM tab0 cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT COUNT( * ) * COUNT( - 70 ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9041
SELECT COUNT ( * ) * COUNT ( - 70 ) FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT 95 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-9042
SELECT 95 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-285

query I rowsort
SELECT 1 - - + col0 * - ( col2 ) + + col0 AS col0 FROM tab1 AS cor0 WHERE + col1 > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9044
SELECT - CAST( NULL AS SIGNED ) - - 81 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9044
SELECT - CAST ( NULL AS INTEGER ) - - 81 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT DISTINCT 91 + - - SUM( + + 25 ) + + 99 FROM tab1 AS cor0
----
265

skipif mysql # not compatible
query I rowsort label-9045
SELECT DISTINCT 91 + - - SUM ( + + 25 ) + + 99 FROM tab1 AS cor0
----
265

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT 64 - COUNT( * ) * ( - 12 ) - 68 + 88 FROM tab0 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-9046
SELECT 64 - COUNT ( * ) * ( - 12 ) - 68 + 88 FROM tab0 AS cor0
----
120

query I rowsort
SELECT ALL - col0 * - - ( col0 ) FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT ALL 72 + - - col0 AS col0 FROM tab1
----
123
157
163

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9049
SELECT * FROM tab0 WHERE - col0 + col0 + col0 * - + CAST( col1 AS SIGNED ) / + + 81 IN ( + - col1 + - col1 )
----

skipif mysql # not compatible
query III rowsort label-9049
SELECT * FROM tab0 WHERE - col0 + col0 + col0 * - + CAST ( col1 AS INTEGER ) / + + 81 IN ( + - col1 + - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9050
SELECT ALL - 67 + + - COUNT( * ) col0 FROM tab2 WHERE - - 52 NOT BETWEEN - - CAST( col2 AS SIGNED ) AND - col1
----
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9050
SELECT ALL - 67 + + - COUNT ( * ) col0 FROM tab2 WHERE - - 52 NOT BETWEEN - - CAST ( col2 AS INTEGER ) AND - col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT ALL MAX( + - col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-9051
SELECT ALL MAX ( + - col0 ) FROM tab0
----
-15

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 92 <= - - col1 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 73 - + - col0 col1 FROM tab1
----
124
158
164

query I rowsort
SELECT + col1 - - + 60 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT DISTINCT + SUM( ALL - 44 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9055
SELECT DISTINCT + SUM ( ALL - 44 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - ( - - col2 ) FROM tab2 cor0 WHERE NOT - col2 = NULL
----

query I rowsort
SELECT - - 59 AS col2 FROM tab0 AS cor0
----
59
59
59

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT NULL > + 86 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT 37 + + + SUM( ALL - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT 43 * col2 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9060
SELECT 37 + + + SUM ( ALL - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT 43 * col2 >= NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 38 + + + col0 * - 84 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT ALL - ( COUNT( * ) ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9062
SELECT ALL - ( COUNT ( * ) ) col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT COUNT( - - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9063
SELECT COUNT ( - - col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9064
SELECT + AVG ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9064
SELECT + AVG ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 92 col2 FROM tab1 AS cor0
----
92

query I rowsort
SELECT DISTINCT + + 59 AS col0 FROM tab0 cor0
----
59

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT + + col2 IN ( + col2 * + col1, - col0 + + col2, + col0, + col0, - col0 / - + col0 )
----
-15
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, col0 col0 FROM tab1
----
-51
51
-85
85
-91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT + COUNT( * ) + - 98 AS col2 FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-9069
SELECT + COUNT ( * ) + - 98 AS col2 FROM tab0
----
-95

query I rowsort
SELECT + 29 * col2 FROM tab1
----
1711
1972
2784

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9071
SELECT col2, CAST( NULL AS SIGNED ) FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-9071
SELECT col2, CAST ( NULL AS INTEGER ) FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT - COUNT( * ) * - 21 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-9072
SELECT - COUNT ( * ) * - 21 FROM tab1
----
63

query I rowsort
SELECT DISTINCT ( ( + 87 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 <> + col1
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 col1, 7 * 50 FROM tab2 AS cor0
----
-46
350
-64
350
-75
350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) col0 FROM tab2 cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9076
SELECT ALL + CAST( NULL AS SIGNED ) col1, col1 AS col2 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9076
SELECT ALL + CAST ( NULL AS INTEGER ) col1, col1 AS col2 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5

query II rowsort
SELECT 12, col2 FROM tab1 AS cor0
----
12
59
12
68
12
96

query I rowsort
SELECT DISTINCT 34 + col1 + + col2 + 83 FROM tab2 AS cor0
----
191
234
242

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT + COUNT( * ) + - 55 AS col2 FROM tab2 WHERE - - 23 + 80 IS NULL
----
-55

skipif mysql # not compatible
query I rowsort label-9079
SELECT + COUNT ( * ) + - 55 AS col2 FROM tab2 WHERE - - 23 + 80 IS NULL
----
-55

query I rowsort
SELECT ALL + col0 + + ( col2 ) AS col2 FROM tab1
----
144
147
159

query I rowsort
SELECT ALL ( 9 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT DISTINCT - - 95 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
95

query I rowsort
SELECT + col1 + - 8 AS col1 FROM tab2
----
43
59
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9084
SELECT - CAST( NULL AS SIGNED ) + - col2 * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9084
SELECT - CAST ( NULL AS INTEGER ) + - col2 * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT AVG ( ALL 64 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col1
----
NULL

query I rowsort
SELECT - col0 + ( + 75 ) + - 64 FROM tab0 AS cor0
----
-4
-76
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9087
SELECT DISTINCT CAST( NULL AS SIGNED ) * + COUNT( * ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9087
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + COUNT ( * ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9088
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * + 16 + - - col0 = + col1
----

skipif mysql # not compatible
query III rowsort label-9088
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + 16 + - - col0 = + col1
----

query I rowsort
SELECT ALL - col2 * - col0 * - 88 * - - col0 FROM tab1 AS cor0
----
-21973248
-37512200
-49553504

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT DISTINCT COUNT( * ) * COUNT( * ) col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9090
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) col1 FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 98 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT DISTINCT - SUM( - + 49 ) FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-9092
SELECT DISTINCT - SUM ( - + 49 ) FROM tab2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT DISTINCT + - COUNT( * ) + - + 13 AS col0 FROM tab2 WHERE NOT + ( + - col1 ) IS NULL
----
-16

skipif mysql # not compatible
query I rowsort label-9093
SELECT DISTINCT + - COUNT ( * ) + - + 13 AS col0 FROM tab2 WHERE NOT + ( + - col1 ) IS NULL
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9094
SELECT ALL 83 + + COUNT( * ) DIV - 3 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL 83 + + COUNT ( * ) / - 3 FROM tab1
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9095
SELECT DISTINCT + col2 * + ( - - ( - - 54 ) ) + - 66 AS col0 FROM tab0 WHERE + + CAST( col0 AS SIGNED ) * + - col2 IS NOT NULL
----
2472
474
5280

skipif mysql # not compatible
query I rowsort label-9095
SELECT DISTINCT + col2 * + ( - - ( - - 54 ) ) + - 66 AS col0 FROM tab0 WHERE + + CAST ( col0 AS INTEGER ) * + - col2 IS NOT NULL
----
2472
474
5280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 92 col0, 36 FROM tab2
----
92
36
92
36
92
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9097
SELECT ALL 55 - 0 * col1 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL 55 - 0 * col1 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 82 * - col2 FROM tab1
----
-4838
-5576
-7872

query I rowsort
SELECT ALL + ( + + ( - - col2 ) ) - - 29 + col2 AS col0 FROM tab2 AS cor0
----
109
145
75

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 * - col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9101
SELECT 21, + SUM( 34 ) + + + 50 AS col1 FROM tab1 cor0
----
21
152

skipif mysql # not compatible
query II rowsort label-9101
SELECT 21, + SUM ( 34 ) + + + 50 AS col1 FROM tab1 cor0
----
21
152

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT DISTINCT + + MIN( ALL col0 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9102
SELECT DISTINCT + + MIN ( ALL col0 ) AS col1 FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL 92 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - - 96 col1 FROM tab2
----
2208
3840
5568

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT + COUNT( + - 50 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9105
SELECT + COUNT ( + - 50 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - col0 * - - 60 AS col1 FROM tab1 AS cor0
----
-3060
-5100
-5460

query I rowsort
SELECT DISTINCT + - ( + + 34 ) AS col1 FROM tab0 cor0
----
-34

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + - col1 IS NOT NULL
----

query II rowsort
SELECT ALL + 81 AS col0, ( + 46 ) FROM tab1 WHERE NOT NULL = + col1 * 60 / + col0
----

query I rowsort
SELECT - col0 + 26 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - col2 + + 9 + - + col1 * + - 66 * - col0 AS col0, 32 * 56 AS col1 FROM tab1 WHERE NULL NOT BETWEEN + 63 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9112
SELECT ALL 74 + + CAST( - + col2 AS SIGNED ) * - col0 FROM tab1
----
4970
5089
6262

skipif mysql # not compatible
query I rowsort label-9112
SELECT ALL 74 + + CAST ( - + col2 AS INTEGER ) * - col0 FROM tab1
----
4970
5089
6262

query I rowsort
SELECT 73 * + + ( ( + - col0 ) ) FROM tab2
----
-3358
-4672
-5475

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 + 82 - 55 >= NULL
----

query II rowsort
SELECT - col1, 68 AS col2 FROM tab2
----
-51
68
-67
68
-77
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT ALL 71 * + + COUNT( * ) * + - 48 AS col2 FROM tab0, tab0 AS cor0
----
-30672

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL 71 * + + COUNT ( * ) * + - 48 AS col2 FROM tab0, tab0 AS cor0
----
-30672

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT COUNT( * ) * - 45 AS col1 FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-9117
SELECT COUNT ( * ) * - 45 AS col1 FROM tab0
----
-135

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 * - col1 col1 FROM tab0 cor0
----
1617
6237
77

query I rowsort
SELECT DISTINCT - + 35 * col0 AS col0 FROM tab0 AS cor0
----
-3045
-3395
-525

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 86 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( - col0 ) + + ( - col2 ) * + col1 AS col0 FROM tab1 AS cor0
----
-1395
-3287
-380

query III rowsort
SELECT * FROM tab0 WHERE - col0 < - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL 92 - + - col2, - col2 AS col1 FROM tab2
----
115
-23
132
-40
150
-58

query I rowsort
SELECT 69 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query II rowsort
SELECT ALL 95 AS col1, col2 AS col2 FROM tab1 AS cor0
----
95
59
95
68
95
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT DISTINCT + MAX( + col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9127
SELECT DISTINCT + MAX ( + col0 ) AS col1 FROM tab0 AS cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9128
SELECT ALL ( - col1 ) DIV col0 * + 60 - + col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL ( - col1 ) / col0 * + 60 - + col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ( + col0 ) FROM tab0 AS cor0 WHERE ( + 25 + - col2 = - col0 * - 23 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9130
SELECT + col1 / + CAST( NULL AS SIGNED ) * - - 68 * - col0 - + CAST( NULL AS DECIMAL ) * col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9130
SELECT + col1 / + CAST ( NULL AS INTEGER ) * - - 68 * - col0 - + CAST ( NULL AS REAL ) * col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 - col0 + col2 + col0 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT - 55 - - 81 FROM tab2 cor0
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT + 44 + + 89 * + + MIN( - col0 ) FROM tab2
----
-6631

skipif mysql # not compatible
query I rowsort label-9133
SELECT + 44 + + 89 * + + MIN ( - col0 ) FROM tab2
----
-6631

onlyif mysql # aggregate syntax: 
query II rowsort label-9134
SELECT ALL COUNT( * ) + - + COUNT( * ), 85 AS col0 FROM tab0 WHERE NOT + + 55 IS NULL
----
0
85

skipif mysql # not compatible
query II rowsort label-9134
SELECT ALL COUNT ( * ) + - + COUNT ( * ), 85 AS col0 FROM tab0 WHERE NOT + + 55 IS NULL
----
0
85

query I rowsort
SELECT DISTINCT + - col2 FROM tab2 WHERE - 60 / col0 * - ( - 82 ) + - - col0 IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( - - col0, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9137
SELECT ALL col2 DIV - + CAST( col1 AS SIGNED ) - + + col0 AS col0 FROM tab1
----
-57
-92
-96

skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL col2 / - + CAST ( col1 AS INTEGER ) - + + col0 AS col0 FROM tab1
----
-57
-92
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT ALL COUNT( * ) + - COUNT( DISTINCT + col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9138
SELECT ALL COUNT ( * ) + - COUNT ( DISTINCT + col1 ) FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 23 - col1 <= + 56
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 84 col0 FROM tab1
----
84
84
84

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
10
47
99

query I rowsort
SELECT ALL col1 * - - 86 FROM tab1
----
1204
4042
430

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9143
SELECT - COUNT( ALL - CAST( - 80 AS DECIMAL ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9143
SELECT - COUNT ( ALL - CAST ( - 80 AS REAL ) ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9144
SELECT DISTINCT - 35 DIV + 17 AS col2 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-9144
SELECT DISTINCT - 35 / + 17 AS col2 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT - 67 * - + col2 AS col1 FROM tab2 AS cor0
----
1541
2680
3886

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 / + + 9 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + ( - 71 ) ) col0 FROM tab1 AS cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT - COUNT( * ) + COUNT( * ) * 89 AS col1 FROM tab1 cor0
----
264

skipif mysql # not compatible
query I rowsort label-9148
SELECT - COUNT ( * ) + COUNT ( * ) * 89 AS col1 FROM tab1 cor0
----
264

query I rowsort
SELECT ALL 57 FROM tab0 AS cor0 WHERE NULL IS NULL
----
57
57
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - - 62 col0 FROM tab2
----
-15
-5
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT DISTINCT + 74 * COUNT( * ) * 24 FROM tab1
----
5328

skipif mysql # not compatible
query I rowsort label-9151
SELECT DISTINCT + 74 * COUNT ( * ) * 24 FROM tab1
----
5328

onlyif mysql # aggregate syntax: 
query II rowsort label-9152
SELECT + 89 + + + COUNT( * ), - 90 col2 FROM tab2
----
92
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9152
SELECT + 89 + + + COUNT ( * ), - 90 col2 FROM tab2
----
92
-90

query I rowsort
SELECT 42 + + - ( col1 ) AS col2 FROM tab0
----
-39
21
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT + COUNT( * ) + 16 AS col0 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-9154
SELECT + COUNT ( * ) + 16 AS col0 FROM tab1
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9155
SELECT ALL * FROM tab2 WHERE NOT NULL >= + + CAST( + 69 AS SIGNED ) * - col0 + + + col1
----

skipif mysql # not compatible
query III rowsort label-9155
SELECT ALL * FROM tab2 WHERE NOT NULL >= + + CAST ( + 69 AS INTEGER ) * - col0 + + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9156
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + col0 * + - col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9156
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + col0 * + - col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT COUNT( * ) * + SUM( col1 ) AS col1 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-9157
SELECT COUNT ( * ) * + SUM ( col1 ) AS col1 FROM tab1
----
198

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT ( - 66 IS NULL )
----
23
40
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9159
SELECT ALL col0 / - CAST( NULL AS DECIMAL ) + col2 + - - 36 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9159
SELECT ALL col0 / - CAST ( NULL AS REAL ) + col2 + - - 36 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN + - col1 AND col2
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9161
SELECT DISTINCT - COUNT( * ) DIV - SUM( + col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9161
SELECT DISTINCT - COUNT ( * ) / - SUM ( + col2 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * - - col0 * - col0 + - - 52 * + + col2, - 57 col0 FROM tab2
----
-106720
-57
-313312
-57
-373859
-57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9164
SELECT 43 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9164
SELECT 43 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 81 * + col2 * - + col0 + - + col0 AS col2 FROM tab2 AS cor0
----
-207424
-352425
-85744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 + - + col0 col1 FROM tab0 AS cor0
----
-145
-155
-73

query I rowsort
SELECT DISTINCT + 41 - - col0 AS col2 FROM tab2 cor0
----
105
116
87

query II rowsort
SELECT DISTINCT + col1 + - col1, + 48 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + col0 * 5 FROM tab2 AS cor0
----
230
320
375

query I rowsort
SELECT + - col2 * - + 45 AS col1 FROM tab0 AS cor0 WHERE + col0 <= 25
----
2115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9171
SELECT + 20 * + + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
1180
1360
1920

skipif mysql # not compatible
query I rowsort label-9171
SELECT + 20 * + + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
1180
1360
1920

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT - 61 * - + COUNT( * ) FROM tab2
----
183

skipif mysql # not compatible
query I rowsort label-9172
SELECT - 61 * - + COUNT ( * ) FROM tab2
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT MIN( DISTINCT + col2 ) - + SUM( DISTINCT - 74 ) FROM tab1 WHERE NOT col1 < col2 + + 50 - - col1 / - + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9173
SELECT MIN ( DISTINCT + col2 ) - + SUM ( DISTINCT - 74 ) FROM tab1 WHERE NOT col1 < col2 + + 50 - - col1 / - + col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9174
SELECT 41 DIV - col1 FROM tab1
----
-2
-8
0

skipif mysql # not compatible
query I rowsort label-9174
SELECT 41 / - col1 FROM tab1
----
-2
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT - 28 * SUM( + col2 ) FROM tab2
----
-3388

skipif mysql # not compatible
query I rowsort label-9175
SELECT - 28 * SUM ( + col2 ) FROM tab2
----
-3388

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9176
SELECT ALL - CAST( NULL AS SIGNED ) col1, + 24 * - col1 AS col1 FROM tab0
----
NULL
-1944
NULL
-24
NULL
-504

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9176
SELECT ALL - CAST ( NULL AS INTEGER ) col1, + 24 * - col1 AS col1 FROM tab0
----
NULL
-1944
NULL
-24
NULL
-504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - 99 col1 FROM tab2
----
51
-99
67
-99
77
-99

query I rowsort
SELECT ( - + ( + col2 ) ) FROM tab0
----
-10
-47
-99

query II rowsort
SELECT ALL + 7, + 60 AS col2 FROM tab2
----
7
60
7
60
7
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT + SUM( - col1 ) FROM tab2 AS cor0 WHERE NOT - col2 + - 65 * + + col1 * + ( + 5 ) IS NULL
----
-195

skipif mysql # not compatible
query I rowsort label-9180
SELECT + SUM ( - col1 ) FROM tab2 AS cor0 WHERE NOT - col2 + - 65 * + + col1 * + ( + 5 ) IS NULL
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 col2, col1 AS col0 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT + 95 * - + ( col2 ) FROM tab2
----
-2185
-3800
-5510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9183
SELECT - col1 * - CAST( NULL AS SIGNED ) * - 89 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9183
SELECT - col1 * - CAST ( NULL AS INTEGER ) * - 89 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9184
SELECT DISTINCT COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9184
SELECT DISTINCT COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9185
SELECT ALL col2 DIV + col2 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL col2 / + col2 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT ( - ( + + col2 ) ) FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT ALL SUM( - ( col1 ) ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-9187
SELECT ALL SUM ( - ( col1 ) ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT ALL col1 + + 35 AS col0 FROM tab1 AS cor0 WHERE 64 BETWEEN - 36 + + + 39 AND - - col0
----
40
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9189
SELECT - ( ( - CAST( + 5 AS SIGNED ) ) ) AS col2 FROM tab1 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-9189
SELECT - ( ( - CAST ( + 5 AS INTEGER ) ) ) AS col2 FROM tab1 AS cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT - MIN( ALL col2 ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9190
SELECT - MIN ( ALL col2 ) FROM tab1 cor0
----
-59

query I rowsort
SELECT DISTINCT - col0 * - col1 * col0 + col0 AS col2 FROM tab1
----
36210
36465
389298

onlyif mysql # DIV for integer division: 
query I rowsort label-9192
SELECT ALL + 8 DIV - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL + 8 / - col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 80 + 30 AS col1 FROM tab2
----
110

query I rowsort
SELECT DISTINCT + - col2 * col2 FROM tab2 WHERE col2 < NULL
----

query I rowsort
SELECT ALL - col2 + ( 82 ) + col0 * col1 + + + 47 * + col1 FROM tab1
----
1358
6500
683

onlyif mysql # DIV for integer division: 
query I rowsort label-9196
SELECT col2 + + 98 DIV - - 23 AS col1 FROM tab2
----
27
44
62

skipif mysql # not compatible
query I rowsort label-9196
SELECT col2 + + 98 / - - 23 AS col1 FROM tab2
----
27
44
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT DISTINCT 10 * COUNT( * ) + - + COUNT( * ) col2 FROM tab1
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9197
SELECT DISTINCT 10 * COUNT ( * ) + - + COUNT ( * ) col2 FROM tab1
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9198
SELECT - + CAST( - 12 AS SIGNED ) * col0 * - 38 + + + col1 AS col2 FROM tab0 AS cor0
----
-39651
-44231
-6759

skipif mysql # not compatible
query I rowsort label-9198
SELECT - + CAST ( - 12 AS INTEGER ) * col0 * - 38 + + + col1 AS col2 FROM tab0 AS cor0
----
-39651
-44231
-6759

query I rowsort
SELECT - col1 + col1 + + 65 AS col0 FROM tab1 AS cor0
----
65
65
65

query I rowsort
SELECT + col1 * + 36 + 45 - + col0 + col1 FROM tab0 AS cor0
----
-15
3027
735

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT + MAX( - 64 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-64

skipif mysql # not compatible
query I rowsort label-9201
SELECT + MAX ( - 64 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT ( - MAX( ALL + + col2 ) ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9202
SELECT ( - MAX ( ALL + + col2 ) ) FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT COUNT( * ) + + - MIN( + 10 ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9203
SELECT COUNT ( * ) + + - MIN ( + 10 ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT DISTINCT - 11 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT ALL SUM( ALL + 81 ) FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-9205
SELECT ALL SUM ( ALL + 81 ) FROM tab0 AS cor0
----
243

query I rowsort
SELECT DISTINCT + 33 + - 4 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - ( - + 88 ) FROM tab1 AS cor0
----
88
88
88

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT + col0 = col1
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 36 col2 FROM tab2
----
36
36
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9210
SELECT ALL CAST( - AVG ( ALL - 13 ) AS SIGNED ) * - COUNT( * ) FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-9210
SELECT ALL CAST ( - AVG ( ALL - 13 ) AS INTEGER ) * - COUNT ( * ) FROM tab2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT ALL + 0 * COUNT( - col2 ) * + 40 + + COUNT( * ) FROM tab1 WHERE NOT + col0 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL + 0 * COUNT ( - col2 ) * + 40 + + COUNT ( * ) FROM tab1 WHERE NOT + col0 BETWEEN NULL AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT ALL - COUNT( ALL + - col0 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL - COUNT ( ALL + - col0 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + col0 * col0 AS col1 FROM tab1 AS cor0 WHERE col1 <= 99
----
2601
7225
8281

query I rowsort
SELECT DISTINCT 76 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
76

query I rowsort
SELECT + col0 * + 4 AS col1 FROM tab0
----
348
388
60

query I rowsort
SELECT + - col1 * col1 + - + col1 AS col2 FROM tab0 AS cor0
----
-2
-462
-6642

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT + MAX( ALL - - col0 ) * + - 8 col1 FROM tab0 AS cor0
----
-776

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9218
SELECT + MAX ( ALL - - col0 ) * + - 8 col1 FROM tab0 AS cor0
----
-776

query I rowsort
SELECT - + col1 + - col1 * - 90 AS col2 FROM tab2 AS cor0
----
4539
5963
6853

query I rowsort
SELECT 62 + + col0 - - col1 FROM tab0 AS cor0
----
158
160
170

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) >= - 61
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <= - - col2 * + col1
----

query III rowsort
SELECT * FROM tab2 WHERE + + 18 < + 69
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9224
SELECT CAST( - - ( + - 93 ) AS SIGNED ) * CAST( + 5 AS SIGNED ) + - - ( - col0 ) col1 FROM tab1
----
-516
-550
-556

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9224
SELECT CAST ( - - ( + - 93 ) AS INTEGER ) * CAST ( + 5 AS INTEGER ) + - - ( - col0 ) col1 FROM tab1
----
-516
-550
-556

query II rowsort
SELECT ALL col0 + - + ( + col0 ) AS col1, ( - - col0 ) + + 44 + + col2 * - - col0 FROM tab1
----
0
4991
0
5144
0
6323

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 * + 33 + - + 84 * + col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * + - col1 BETWEEN NULL AND NULL
----

query II rowsort
SELECT 78 AS col2, + col2 FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + - col2 * col0 + + 93 AS col2 FROM tab1 AS cor0
----
-4803
-4922
-6095

query III rowsort
SELECT * FROM tab2 WHERE - col0 + + - 89 + col1 - 4 * + - 77 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0, 70 col0 FROM tab2 AS cor0
----
46
70
64
70
75
70

query I rowsort
SELECT DISTINCT + 3 * - col2 + - col2 FROM tab0 AS cor0
----
-188
-396
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-9233
SELECT DISTINCT - col1 DIV - - 83 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9233
SELECT DISTINCT - col1 / - - 83 FROM tab2 cor0
----
0

query I rowsort
SELECT col1 * 77 AS col1 FROM tab1 AS cor0
----
1078
3619
385

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT ALL - COUNT( * ) * 48 AS col0 FROM tab1 cor0
----
-144

skipif mysql # not compatible
query I rowsort label-9235
SELECT ALL - COUNT ( * ) * 48 AS col0 FROM tab1 cor0
----
-144

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( - 98, - 58, 90 )
----

query I rowsort
SELECT col1 * - 36 FROM tab1
----
-1692
-180
-504

onlyif mysql # DIV for integer division: 
query I rowsort label-9238
SELECT 15 * col0 DIV - + 50 AS col0 FROM tab0
----
-26
-29
-4

skipif mysql # not compatible
query I rowsort label-9238
SELECT 15 * col0 / - + 50 AS col0 FROM tab0
----
-26
-29
-4

query I rowsort
SELECT ( - 41 ) FROM tab1
----
-41
-41
-41

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 + - col1 IN ( - + 55, - 3 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + - ( + 69 ) ) AS col1 FROM tab1
----
69
69
69

query I rowsort
SELECT DISTINCT + 8 * - col0 FROM tab2 cor0
----
-368
-512
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT ALL + MAX( + col1 ) * + + 85 AS col0 FROM tab1 AS cor0
----
3995

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL + MAX ( + col1 ) * + + 85 AS col0 FROM tab1 AS cor0
----
3995

query II rowsort
SELECT - ( - 69 ), ( - + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
69
-51
69
-67
69
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT ALL 67 * - COUNT( * ) FROM tab2
----
-201

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL 67 * - COUNT ( * ) FROM tab2
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT ALL + COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
81

query I rowsort
SELECT DISTINCT + + ( - - 93 ) FROM tab0 AS cor0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9248
SELECT - col1, 77 * + 65 - - + col0 + + + ( - + col0 ) * CAST( NULL AS SIGNED ) * 21 AS col1 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-9248
SELECT - col1, 77 * + 65 - - + col0 + + + ( - + col0 ) * CAST ( NULL AS INTEGER ) * 21 AS col1 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9249
SELECT + COUNT( * ) col2, 1 col1 FROM tab0 AS cor0
----
3
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9249
SELECT + COUNT ( * ) col2, 1 col1 FROM tab0 AS cor0
----
3
1

query I rowsort
SELECT ALL - + 83 FROM tab0 AS cor0 WHERE - 81 NOT BETWEEN - col1 AND NULL
----
-83
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - col1 col1, - col0 + + + 81, - col0 AS col0 FROM tab1 AS cor0
----
9 values hashing to 5d044e6e4c7b14588f714f645c336f86

onlyif mysql # DIV for integer division: 
query II rowsort label-9252
SELECT ALL 40 + 35 + - 88 - + 7, col2 DIV - - col0 AS col2 FROM tab2
----
-20
0
-20
0
-20
0

skipif mysql # not compatible
query II rowsort label-9252
SELECT ALL 40 + 35 + - 88 - + 7, col2 / - - col0 AS col2 FROM tab2
----
-20
0
-20
0
-20
0

query I rowsort
SELECT DISTINCT ( - ( + + 42 ) ) * + col1 + 55 AS col2 FROM tab2
----
-2087
-2759
-3179

query I rowsort
SELECT ALL 73 + - - 88 FROM tab2
----
161
161
161

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT DISTINCT + SUM( + col2 ) + + COUNT( * ) AS col0 FROM tab1
----
226

skipif mysql # not compatible
query I rowsort label-9255
SELECT DISTINCT + SUM ( + col2 ) + + COUNT ( * ) AS col0 FROM tab1
----
226

query I rowsort
SELECT ALL col0 * - - col2 + col0 FROM tab0
----
720
957
9700

query I rowsort
SELECT DISTINCT - - 25 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9258
SELECT DISTINCT - - col2 - - 75 + + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9258
SELECT DISTINCT - - col2 - - 75 + + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT - + 25 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9259
SELECT - + 25 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-75

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NOT + + col2 >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT - MAX( - 66 ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-9261
SELECT - MAX ( - 66 ) FROM tab0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT ALL + + SUM( ALL 53 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
477

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL + + SUM ( ALL 53 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
477

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 col2 FROM tab1
----
-27
-27
-27

onlyif mysql # DIV for integer division: 
query III rowsort label-9264
SELECT col0 DIV - 73 AS col1, col1, + col2 AS col2 FROM tab2
----
9 values hashing to 02fd14f65a1ca686793f76d075e6ca01

skipif mysql # not compatible
query III rowsort label-9264
SELECT col0 / - 73 AS col1, col1, + col2 AS col2 FROM tab2
----
9 values hashing to 02fd14f65a1ca686793f76d075e6ca01

query I rowsort
SELECT DISTINCT + 35 * - + col0 FROM tab2 AS cor0
----
-1610
-2240
-2625

query I rowsort
SELECT + col1 * + - 20 * col2 AS col1 FROM tab2 cor0
----
-23460
-61600
-77720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9267
SELECT + 76 * CAST( NULL AS SIGNED ) col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9267
SELECT + 76 * CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col1 * - + col2 * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9269
SELECT 13 * + col0 * 73 col2, - CAST( + - 56 AS SIGNED ) * + col2 FROM tab0
----
14235
2632
82563
560
92053
5544

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9269
SELECT 13 * + col0 * 73 col2, - CAST ( + - 56 AS INTEGER ) * + col2 FROM tab0
----
14235
2632
82563
560
92053
5544

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT DISTINCT - SUM( + + 14 ) FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-9270
SELECT DISTINCT - SUM ( + + 14 ) FROM tab2
----
-42

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT ( + 50 ) AS col0 FROM tab0
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9273
SELECT + + COUNT( * ) DIV - 64 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9273
SELECT + + COUNT ( * ) / - 64 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT - SUM( ALL col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9274
SELECT - SUM ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9275
SELECT * FROM tab0 WHERE NOT col2 + - col1 * col2 BETWEEN col2 * + col0 + 94 * CAST( 14 AS SIGNED ) AND ( + col2 / - CAST( col1 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9275
SELECT * FROM tab0 WHERE NOT col2 + - col1 * col2 BETWEEN col2 * + col0 + 94 * CAST ( 14 AS INTEGER ) AND ( + col2 / - CAST ( col1 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 83 * - 26 AS col2 FROM tab0
----
-2158

query I rowsort
SELECT DISTINCT 94 * 60 AS col1 FROM tab2
----
5640

query I rowsort
SELECT ALL col1 * 81 FROM tab0
----
1701
6561
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9279
SELECT ALL * FROM tab2 WHERE NOT - CAST( + col2 AS SIGNED ) BETWEEN + col0 AND + 17 * - ( col2 ) - - col1 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9279
SELECT ALL * FROM tab2 WHERE NOT - CAST ( + col2 AS INTEGER ) BETWEEN + col0 AND + 17 * - ( col2 ) - - col1 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9280
SELECT + 73 + - ( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9280
SELECT + 73 + - ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + 50 AS col1 FROM tab2
----
1150
2000
2900

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT DISTINCT + COUNT( * ) * + 51 AS col0 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-9282
SELECT DISTINCT + COUNT ( * ) * + 51 AS col0 FROM tab1
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT SUM( DISTINCT 60 ) col0 FROM tab0 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9283
SELECT SUM ( DISTINCT 60 ) col0 FROM tab0 WHERE - col0 IS NULL
----
NULL

query I rowsort
SELECT - col2 + + col1 FROM tab1 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9285
SELECT * FROM tab0 WHERE CAST( NULL AS SIGNED ) / 79 + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9285
SELECT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) / 79 + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9286
SELECT CAST( - ( + COUNT( * ) ) AS SIGNED ) * - 84 + - COUNT( * ) DIV 89 FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-9286
SELECT CAST ( - ( + COUNT ( * ) ) AS INTEGER ) * - 84 + - COUNT ( * ) / 89 FROM tab1
----
252

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 92 * col1 AS col2 FROM tab0
----
1932
7452
92

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 ) < col1 - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT ( COUNT( * ) ) * 43 AS col0 FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-9290
SELECT ( COUNT ( * ) ) * 43 AS col0 FROM tab2
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT SUM( ALL col1 ) * COUNT( * ) + COUNT( * ) AS col0 FROM tab0
----
312

skipif mysql # not compatible
query I rowsort label-9291
SELECT SUM ( ALL col1 ) * COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0
----
312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9292
SELECT col0 * CAST( + 2 AS SIGNED ) AS col1 FROM tab0
----
174
194
30

skipif mysql # not compatible
query I rowsort label-9292
SELECT col0 * CAST ( + 2 AS INTEGER ) AS col1 FROM tab0
----
174
194
30

query I rowsort
SELECT ALL ( col0 ) * col1 + col2 AS col1 FROM tab1
----
4345
484
810

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT - 22 * MAX( DISTINCT + 75 ) AS col1 FROM tab1
----
-1650

skipif mysql # not compatible
query I rowsort label-9294
SELECT - 22 * MAX ( DISTINCT + 75 ) AS col1 FROM tab1
----
-1650

query I rowsort
SELECT DISTINCT col1 + 23 * - col2 FROM tab0
----
-1000
-209
-2276

query I rowsort
SELECT DISTINCT - col2 + col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-21
-54
-82

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) = ( + col1 * + col1 + col0 )
----

query I rowsort
SELECT ALL - col0 * 29 FROM tab1
----
-1479
-2465
-2639

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT ALL 56 * - COUNT( * ) FROM tab0
----
-168

skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL 56 * - COUNT ( * ) FROM tab0
----
-168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 col1 FROM tab2 WHERE NOT ( + col1 * + 36 + + ( - col0 ) ) <= NULL
----

query I rowsort
SELECT col1 FROM tab0 WHERE 34 + + col2 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT DISTINCT 46 * - COUNT( * ) AS col1 FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-9302
SELECT DISTINCT 46 * - COUNT ( * ) AS col1 FROM tab0
----
-138

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE NOT - col1 IN ( col0 * + 28 )
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9304
SELECT COUNT( * ) + - CAST( - COUNT( * ) AS SIGNED ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9304
SELECT COUNT ( * ) + - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9305
SELECT * FROM tab1 WHERE col1 + col1 IN ( - ( - col1 ) * CAST( NULL AS SIGNED ) - col2 )
----

skipif mysql # not compatible
query III rowsort label-9305
SELECT * FROM tab1 WHERE col1 + col1 IN ( - ( - col1 ) * CAST ( NULL AS INTEGER ) - col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) >= - 31
----

query I rowsort
SELECT DISTINCT - col1 + - col2 * 58 AS col0 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT - COUNT( * ) + - 95 AS col1 FROM tab2
----
-98

skipif mysql # not compatible
query I rowsort label-9308
SELECT - COUNT ( * ) + - 95 AS col1 FROM tab2
----
-98

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE + col1 - + 56 * - 42 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 / + 21 + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( - 39 * 76 ) NOT IN ( + col0 )
----

query I rowsort
SELECT ALL ( + 9 ) FROM tab1 AS cor0
----
9
9
9

query I rowsort
SELECT - 91 * col1 + + 69 * - col1 FROM tab2 cor0 WHERE NOT NULL NOT IN ( - 22 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9314
SELECT ( COUNT( - ( ( - col0 ) ) ) ) DIV + COUNT( * ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9314
SELECT ( COUNT ( - ( ( - col0 ) ) ) ) / + COUNT ( * ) AS col2 FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9315
SELECT DISTINCT CAST( + 84 AS SIGNED ) * 10 AS col0 FROM tab1 AS cor0
----
840

skipif mysql # not compatible
query I rowsort label-9315
SELECT DISTINCT CAST ( + 84 AS INTEGER ) * 10 AS col0 FROM tab1 AS cor0
----
840

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 81 + - 71 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 25 AS col2 FROM tab1 AS cor0 WHERE - 22 IS NOT NULL
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 21 col0 FROM tab1 AS cor0
----
21
21
21

query I rowsort
SELECT - - 5 * + 48 AS col2 FROM tab1 AS cor0
----
240
240
240

query I rowsort
SELECT ALL col0 - - col0 * + col0 FROM tab0 WHERE col0 - - ( col1 ) * + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 16 ) <> - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT DISTINCT + COUNT( * ) * + + 1 AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9322
SELECT DISTINCT + COUNT ( * ) * + + 1 AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9323
SELECT + CAST( + ( col0 ) AS SIGNED ) FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9323
SELECT + CAST ( + ( col0 ) AS INTEGER ) FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9324
SELECT + col2 * + CAST( 29 AS SIGNED ) * col2 AS col1 FROM tab0
----
284229
2900
64061

skipif mysql # not compatible
query I rowsort label-9324
SELECT + col2 * + CAST ( 29 AS INTEGER ) * col2 AS col1 FROM tab0
----
284229
2900
64061

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT ALL SUM( - col0 ) * - COUNT( * ) FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-9325
SELECT ALL SUM ( - col0 ) * - COUNT ( * ) FROM tab2
----
555

query I rowsort
SELECT DISTINCT col0 + - + col0 + + 66 * col0 FROM tab2
----
3036
4224
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT - 43 * + ( + COUNT( * ) ) FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-9327
SELECT - 43 * + ( + COUNT ( * ) ) FROM tab1
----
-129

query I rowsort
SELECT ALL + col0 * 60 FROM tab1
----
3060
5100
5460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9329
SELECT ALL + CAST( NULL AS SIGNED ) / COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9329
SELECT ALL + CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - 96 + 74 NOT BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT DISTINCT 89 * ( + COUNT( - col1 ) ) FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-9331
SELECT DISTINCT 89 * ( + COUNT ( - col1 ) ) FROM tab2
----
267

query I rowsort
SELECT col0 + - col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( 57 * - 63 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9333
SELECT ALL - - CAST( - ( col0 ) AS SIGNED ) DIV col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL - - CAST ( - ( col0 ) AS INTEGER ) / col1 FROM tab1 AS cor0
----
-1
-17
-3

query I rowsort
SELECT - col0 + col1 * col0 AS col0 FROM tab1 cor0
----
340
4186
663

query I rowsort
SELECT ALL + col1 * col0 FROM tab2 cor0 WHERE + col0 IS NOT NULL
----
2346
4928
5025

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT BETWEEN col2 + 31 AND ( + 15 )
----

query I rowsort
SELECT ALL - 47 + + 30 * col2 FROM tab2
----
1153
1693
643

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9338
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT BETWEEN CAST( 50 AS SIGNED ) AND ( + 88 )
----

skipif mysql # not compatible
query IIIIII rowsort label-9338
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT BETWEEN CAST ( 50 AS INTEGER ) AND ( + 88 )
----

query II rowsort
SELECT + 27, + col2 FROM tab1 AS cor0
----
27
59
27
68
27
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, 69 FROM tab2 AS cor0
----
23
69
40
69
58
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9341
SELECT col1 DIV 6 FROM tab2 cor0
----
11
12
8

skipif mysql # not compatible
query I rowsort label-9341
SELECT col1 / 6 FROM tab2 cor0
----
11
12
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT DISTINCT + SUM( + 60 ) FROM tab1 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-9342
SELECT DISTINCT + SUM ( + 60 ) FROM tab1 AS cor0
----
180

query I rowsort
SELECT - + col1 + col1 AS col0 FROM tab1 AS cor0 WHERE - 48 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 79 IN ( 87 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9345
SELECT ALL - - AVG ( - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL - - AVG ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - col1 - 32 + col0 - 4 AS col2 FROM tab2 AS cor0
----
105
106
61

onlyif mysql # DIV for integer division: 
query I rowsort label-9347
SELECT - 36 DIV + - 23 + + + 72 AS col1 FROM tab0
----
73
73
73

skipif mysql # not compatible
query I rowsort label-9347
SELECT - 36 / + - 23 + + + 72 AS col1 FROM tab0
----
73
73
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9348
SELECT + COUNT( * ) + + + SUM( ALL - ( + + col0 ) ) DIV - COUNT( * ) AS col2 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-9348
SELECT + COUNT ( * ) + + + SUM ( ALL - ( + + col0 ) ) / - COUNT ( * ) AS col2 FROM tab0
----
69

query I rowsort
SELECT + col2 * ( 93 / - 58 ) FROM tab0 WHERE ( + + col0 ) >= NULL
----

query I rowsort
SELECT ALL ( + col1 ) + - col0 AS col1 FROM tab0
----
-66
-96
66

query I rowsort
SELECT ALL - 1 + - - col2 - - + col2 + - col2 + 45 * + 30 AS col2 FROM tab0
----
1359
1396
1448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9352
SELECT ALL - COUNT( + + col1 ) + - 36 * + - MIN( 29 ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9352
SELECT ALL - COUNT ( + + col1 ) + - 36 * + - MIN ( 29 ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 / col2 / - col1 + col2 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE ( NULL ) <> ( col1 + - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9354
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE ( NULL ) <> ( col1 + - col0 )
----
0

query III rowsort
SELECT * FROM tab0 WHERE ( + col0 ) NOT IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + + col1 * - col2 AS col0 FROM tab1
----
-1293
-210
-3105

query III rowsort
SELECT * FROM tab1 WHERE + + col0 BETWEEN ( - col1 * col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT + COUNT( * ) * + + 8 + 1 + COUNT( * ) FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-9358
SELECT + COUNT ( * ) * + + 8 + 1 + COUNT ( * ) FROM tab2 AS cor0
----
28

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 91 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= - col1 - - 70
----

query II rowsort
SELECT ALL + col0 AS col2, + col1 AS col2 FROM tab2
----
46
51
64
77
75
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 34 NOT IN ( - col1 / 55 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 18 col2 FROM tab1 AS cor0
----
18
18
18

query I rowsort
SELECT DISTINCT - 25 FROM tab1 cor0 WHERE col0 < ( - - 76 + - 14 + 80 )
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-9365
SELECT + - col1 DIV - col0 + - - col1 FROM tab0 AS cor0
----
1
21
86

skipif mysql # not compatible
query I rowsort label-9365
SELECT + - col1 / - col0 + - - col1 FROM tab0 AS cor0
----
1
21
86

query I rowsort
SELECT + - ( - + col0 ) * - - col0 * + + 0 * - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( + + col1 ) + + 83 * col1
----

query I rowsort
SELECT DISTINCT + + AVG ( ALL - col0 ) AS col0 FROM tab1 WHERE + - col2 = + + 12
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col2 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + 86 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT ALL 45 FROM tab0 WHERE col0 * + col0 + + col1 / col1 <= - 73 - + 88
----

query I rowsort
SELECT col0 FROM tab1 WHERE NOT + 96 * + 38 + + + 85 BETWEEN ( NULL ) AND 6
----
51
85
91

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE NOT ( ( + col2 * col0 + 28 BETWEEN ( col1 ) AND 58 * col1 ) )
----
67

query I rowsort
SELECT DISTINCT + col1 * - + col0 + + col1 FROM tab0 AS cor0
----
-1134
-1806
-96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * - 84 BETWEEN + col2 AND 89
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - 77 ) AS col1 FROM tab0 cor0
----
-77
-77
-77

query I rowsort
SELECT ALL 35 AS col0 FROM tab1 cor0
----
35
35
35

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT ALL - SUM( DISTINCT + 7 ) FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL - SUM ( DISTINCT + 7 ) FROM tab1 AS cor0
----
-7

query III rowsort
SELECT * FROM tab1 WHERE + col1 * - ( + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT + 39 + + COUNT( * ) + + 89 FROM tab1
----
131

skipif mysql # not compatible
query I rowsort label-9381
SELECT + 39 + + COUNT ( * ) + + 89 FROM tab1
----
131

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + col0 col1, + col0 + + - col1 - - - col2 FROM tab2
----
141
-53
142
-50
97
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-9383
SELECT - col2 * col2 * + col2 DIV + - col2 + - col2 FROM tab1
----
3422
4556
9120

skipif mysql # not compatible
query I rowsort label-9383
SELECT - col2 * col2 * + col2 / + - col2 + - col2 FROM tab1
----
3422
4556
9120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9384
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - col0 + col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9384
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - col0 + col1 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 + - 53 AS col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 60 * - 61 + + 83 * + col2 AND NULL
----

query I rowsort
SELECT col0 * + 60 AS col2 FROM tab0 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT + COUNT( - col2 ) + + - ( - 61 ) col0 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9388
SELECT + COUNT ( - col2 ) + + - ( - 61 ) col0 FROM tab0 AS cor0
----
64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * ( col1 ) <> ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT DISTINCT + 64 * - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-9390
SELECT DISTINCT + 64 * - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9391
SELECT ALL + CAST( + + COUNT( * ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9391
SELECT ALL + CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT - col2 * + 72 FROM tab0
----
-3384
-7128
-720

onlyif mysql # DIV for integer division: 
query I rowsort label-9393
SELECT DISTINCT col2 DIV + col1 col0 FROM tab1
----
1
11
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9393
SELECT DISTINCT col2 / + col1 col0 FROM tab1
----
1
11
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9394
SELECT ALL - + col1 AS col2 FROM tab2 WHERE + 29 + - + 30 + + col0 + - + 2 / + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL - + col1 AS col2 FROM tab2 WHERE + 29 + - + 30 + + col0 + - + 2 / + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9395
SELECT DISTINCT COUNT( * ) AS col1, 1 FROM tab1 cor0
----
3
1

skipif mysql # not compatible
query II rowsort label-9395
SELECT DISTINCT COUNT ( * ) AS col1, 1 FROM tab1 cor0
----
3
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9396
SELECT ALL + col0 FROM tab2 AS cor0 WHERE ( + col2 ) NOT BETWEEN NULL AND - CAST( - - 91 AS SIGNED )
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9396
SELECT ALL + col0 FROM tab2 AS cor0 WHERE ( + col2 ) NOT BETWEEN NULL AND - CAST ( - - 91 AS INTEGER )
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9397
SELECT DISTINCT + + CAST( + + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9397
SELECT DISTINCT + + CAST ( + + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( - 70 ) ) NOT BETWEEN col0 AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT 26 + - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT - + 63 - + 90 AS col0 FROM tab0 WHERE NOT - + col0 IS NOT NULL
----

query I rowsort
SELECT - 90 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9404
SELECT ALL * FROM tab0 WHERE CAST( + - ( - col0 ) AS SIGNED ) NOT IN ( + CAST( - col0 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9404
SELECT ALL * FROM tab0 WHERE CAST ( + - ( - col0 ) AS INTEGER ) NOT IN ( + CAST ( - col0 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9405
SELECT ALL + COUNT( * ) + - COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col0 <> + col1 * + + ( + 72 ) / + col2 * CAST( + col2 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL + COUNT ( * ) + - COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col0 <> + col1 * + + ( + 72 ) / + col2 * CAST ( + col2 AS INTEGER )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 99 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * + ( - col2 ) > ( + 84 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT - COUNT( * ) * + - COUNT( * ) AS col1 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9409
SELECT - COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab0 cor0
----
9

query I rowsort
SELECT DISTINCT + col1 FROM tab2 cor0 WHERE NULL IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT DISTINCT - ( - MAX( + col1 ) ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9411
SELECT DISTINCT - ( - MAX ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
81

query III rowsort
SELECT ALL - col2 + - + col2 + - 45 * + col1 + col2, col1 + - col2 AS col1, 75 AS col1 FROM tab2 AS cor0
----
9 values hashing to ef30c747f418106f0623224499d61ef5

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT ( - COUNT( * ) ) AS col0 FROM tab2 WHERE + ( col1 ) - - 81 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9413
SELECT ( - COUNT ( * ) ) AS col0 FROM tab2 WHERE + ( col1 ) - - 81 IS NOT NULL
----
-3

query II rowsort
SELECT - 53, col1 * - col1 * + 96 AS col2 FROM tab0
----
-53
-42336
-53
-629856
-53
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT ALL COUNT( * ) + 58 AS col0 FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-9415
SELECT ALL COUNT ( * ) + 58 AS col0 FROM tab1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9416
SELECT + col0 AS col2, + CAST( - 46 AS SIGNED ) + + - col2 FROM tab0
----
15
-93
87
-56
97
-145

skipif mysql # not compatible
query II rowsort label-9416
SELECT + col0 AS col2, + CAST ( - 46 AS INTEGER ) + + - col2 FROM tab0
----
15
-93
87
-56
97
-145

query I rowsort
SELECT ALL + col0 + 21 FROM tab1
----
106
112
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT ALL MIN( - 79 ) AS col2 FROM tab2
----
-79

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL MIN ( - 79 ) AS col2 FROM tab2
----
-79

query I rowsort
SELECT DISTINCT - - 40 FROM tab1 cor0
----
40

query I rowsort
SELECT - col2 + + 26 AS col1 FROM tab1 cor0
----
-33
-42
-70

query I rowsort
SELECT ALL + - col2 * + 55 * - ( 94 ) FROM tab1 AS cor0
----
305030
351560
496320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab2 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE - col2 >= col0 * + col1 + col0
----

query I rowsort
SELECT DISTINCT + 97 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9425
SELECT + 97 - 7 DIV + col1 + + 42 FROM tab1 AS cor0
----
138
139
139

skipif mysql # not compatible
query I rowsort label-9425
SELECT + 97 - 7 / + col1 + + 42 FROM tab1 AS cor0
----
138
139
139

query II rowsort
SELECT ALL - ( col2 ) * + ( col0 ), col0 FROM tab1 AS cor0
----
-4896
51
-5015
85
-6188
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT MAX( 26 ) - - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9427
SELECT MAX ( 26 ) - - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
23

query II rowsort
SELECT - col1 - - col1, + 35 AS col2 FROM tab2 cor0
----
0
35
0
35
0
35

onlyif mysql # DIV for integer division: 
query II rowsort label-9429
SELECT - 47 - - ( - - col2 ) DIV + col0 AS col1, - col1 AS col2 FROM tab2 AS cor0
----
-47
-51
-47
-67
-47
-77

skipif mysql # not compatible
query II rowsort label-9429
SELECT - 47 - - ( - - col2 ) / + col0 AS col1, - col1 AS col2 FROM tab2 AS cor0
----
-47
-51
-47
-67
-47
-77

query I rowsort
SELECT DISTINCT col0 - + 75 AS col1 FROM tab0 AS cor0
----
-60
12
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT MIN( DISTINCT - 33 ) + MAX( DISTINCT - - 45 ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-9431
SELECT MIN ( DISTINCT - 33 ) + MAX ( DISTINCT - - 45 ) FROM tab2 AS cor0
----
12

query II rowsort
SELECT 84, - col2 * col2 - - - col0 AS col2 FROM tab0 AS cor0
----
84
-187
84
-2224
84
-9898

query I rowsort
SELECT 58 * + col0 * - col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 * 48 * - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * 10 AS col2 FROM tab1
----
-510
-850
-910

query I rowsort
SELECT DISTINCT col2 * + col0 * + + 45 * - col1 AS col0 FROM tab1
----
-1128375
-13087620
-3084480

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col0 ) IN ( + 18 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9438
SELECT DISTINCT + MAX( 80 ) AS col1 FROM tab0 WHERE ( - CAST( + - col1 AS SIGNED ) * + + col1 * - col0 ) IS NOT NULL
----
80

skipif mysql # not compatible
query I rowsort label-9438
SELECT DISTINCT + MAX ( 80 ) AS col1 FROM tab0 WHERE ( - CAST ( + - col1 AS INTEGER ) * + + col1 * - col0 ) IS NOT NULL
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-9439
SELECT DISTINCT 56 + - MAX( ALL - 55 ), + COUNT( * ) AS col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9439
SELECT DISTINCT 56 + - MAX ( ALL - 55 ), + COUNT ( * ) AS col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL
0

query I rowsort
SELECT DISTINCT - 1 * + 30 AS col1 FROM tab2 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT + MIN( + - col1 ) * - 62 FROM tab2 AS cor0
----
4774

skipif mysql # not compatible
query I rowsort label-9441
SELECT + MIN ( + - col1 ) * - 62 FROM tab2 AS cor0
----
4774

query I rowsort
SELECT ALL + col0 * 24 + ( + 0 ) AS col1 FROM tab2 AS cor0 WHERE ( - 36 ) IS NOT NULL
----
1104
1536
1800

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL NOT IN ( + 82 ) )
----

query I rowsort
SELECT ALL - + col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-1
-21
-81

query I rowsort
SELECT ALL + 65 * - 46 + col2 * 97 - + col0 FROM tab2 AS cor0
----
-805
2561
826

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9446
SELECT DISTINCT col1, - CAST( col2 AS SIGNED ) * col1 FROM tab2 AS cor0
----
51
-1173
67
-3886
77
-3080

skipif mysql # not compatible
query II rowsort label-9446
SELECT DISTINCT col1, - CAST ( col2 AS INTEGER ) * col1 FROM tab2 AS cor0
----
51
-1173
67
-3886
77
-3080

query I rowsort
SELECT - - col1 AS col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE 45 * + col1 IS NOT NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 + + - 15 * + - col0 * + col1 col2 FROM tab0
----
11058
18930
28275

query I rowsort
SELECT DISTINCT + col1 / col2 + + 17 * - 44 * - 19 * + ( + col0 ) AS col0 FROM tab2 WHERE col2 * - col1 <= + col0 + - col1 * + col1
----

query I rowsort
SELECT DISTINCT 60 + col0 FROM tab0
----
147
157
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9452
SELECT ALL ( CAST( NULL AS SIGNED ) ) * 12 + - ( + - col0 ) * col2 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9452
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * 12 + - ( + - col0 ) * col2 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 FROM tab0 WHERE - - 75 + + 70 IS NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE ( - ( + col2 ) * + col1 - col1 <= NULL ) OR + + 55 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + + ( + - col2 ) AS col0 FROM tab1
----
-21
-54
-82

query III rowsort
SELECT ALL * FROM tab0 WHERE - 33 NOT BETWEEN - col2 AND ( NULL )
----
87
21
10

query I rowsort
SELECT - - 68 * - col2 * - + col0 FROM tab2 WHERE NULL > col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9458
SELECT CAST( - 91 AS SIGNED ) FROM tab2
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-9458
SELECT CAST ( - 91 AS INTEGER ) FROM tab2
----
-91
-91
-91

query I rowsort
SELECT DISTINCT + ( - 35 ) FROM tab0
----
-35

query I rowsort
SELECT - col1 + - 74 + 72 FROM tab1
----
-16
-49
-7

query I rowsort
SELECT ( col1 ) + + col0 AS col0 FROM tab0
----
108
96
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9462
SELECT DISTINCT - 28 * - - 15 / - + CAST( NULL AS DECIMAL ) + col1 + - col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9462
SELECT DISTINCT - 28 * - - 15 / - + CAST ( NULL AS REAL ) + col1 + - col1 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT ALL + + 2 * - COUNT( * ) + 27 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL + + 2 * - COUNT ( * ) + 27 FROM tab0 AS cor0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9464
SELECT ALL - + col0 DIV + 73 AS col1 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9464
SELECT ALL - + col0 / + 73 AS col1 FROM tab1 cor0
----
-1
-1
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * - col1 BETWEEN + col0 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT SUM( ( - col0 ) ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-9466
SELECT SUM ( ( - col0 ) ) AS col2 FROM tab0
----
-199

query I rowsort
SELECT ALL + col1 * - + col2 * + + col0 AS col0 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9468
SELECT DISTINCT * FROM tab2 WHERE + CAST( - - col1 AS SIGNED ) >= CAST( - CAST( NULL AS SIGNED ) AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9468
SELECT DISTINCT * FROM tab2 WHERE + CAST ( - - col1 AS INTEGER ) >= CAST ( - CAST ( NULL AS INTEGER ) AS REAL )
----

query I rowsort
SELECT - 64 * - col2 FROM tab0
----
3008
6336
640

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT SUM( ALL 76 ) AS col0 FROM tab1
----
228

skipif mysql # not compatible
query I rowsort label-9470
SELECT SUM ( ALL 76 ) AS col0 FROM tab1
----
228

query II rowsort
SELECT ALL - + col0 AS col2, + 21 * + col2 + - + 68 FROM tab2 AS cor0
----
-46
415
-64
772
-75
1150

query I rowsort
SELECT DISTINCT - - col1 * + 39 AS col1 FROM tab0 AS cor0
----
3159
39
819

query I rowsort
SELECT DISTINCT + col1 * - + col1 AS col2 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9474
SELECT ALL - 14 DIV + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL - 14 / + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-4

query I rowsort
SELECT DISTINCT - + 74 * - - 48 FROM tab0 AS cor0
----
-3552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9476
SELECT ALL CAST( - - 7 AS SIGNED ) * col0 + + col0 AS col0 FROM tab2
----
368
512
600

skipif mysql # not compatible
query I rowsort label-9476
SELECT ALL CAST ( - - 7 AS INTEGER ) * col0 + + col0 AS col0 FROM tab2
----
368
512
600

query I rowsort
SELECT ALL - 92 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT ALL - COUNT( - col1 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL - COUNT ( - col1 ) AS col0 FROM tab2 cor0
----
-3

query I rowsort
SELECT col0 * - col0 * + 31 FROM tab1 AS cor0
----
-223975
-256711
-80631

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT ALL - 50 * + COUNT( ALL - - col0 ) FROM tab1 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-9480
SELECT ALL - 50 * + COUNT ( ALL - - col0 ) FROM tab1 AS cor0
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9481
SELECT ALL 42 + + col2 * + 32 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL 42 + + col2 * + 32 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT DISTINCT + COUNT( * ) + - + COUNT( * ) * + ( + COUNT( * ) ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-9482
SELECT DISTINCT + COUNT ( * ) + - + COUNT ( * ) * + ( + COUNT ( * ) ) FROM tab1
----
-6

query II rowsort
SELECT DISTINCT 92 AS col0, + col1 FROM tab2
----
92
51
92
67
92
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9484
SELECT + 48, - CAST( + ( + col1 ) AS SIGNED ) + - col1 AS col1 FROM tab0
----
48
-162
48
-2
48
-42

skipif mysql # not compatible
query II rowsort label-9484
SELECT + 48, - CAST ( + ( + col1 ) AS INTEGER ) + - col1 AS col1 FROM tab0
----
48
-162
48
-2
48
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9485
SELECT DISTINCT ( CAST( + + COUNT( * ) AS SIGNED ) ) * - - MAX( - col1 ) - + + 97 DIV + + COUNT( * ) FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-9485
SELECT DISTINCT ( CAST ( + + COUNT ( * ) AS INTEGER ) ) * - - MAX ( - col1 ) - + + 97 / + + COUNT ( * ) FROM tab0
----
-35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9486
SELECT - col2 + - col1 + - + CAST( NULL AS DECIMAL ) * ( - col0 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9486
SELECT - col2 + - col1 + - + CAST ( NULL AS REAL ) * ( - col0 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT ALL MAX( - - 89 ) FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL MAX ( - - 89 ) FROM tab0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9488
SELECT - CAST( NULL AS SIGNED ) + + - col2 * + 37 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9488
SELECT - CAST ( NULL AS INTEGER ) + + - col2 * + 37 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 55 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * col2 - - + col1, - 31 col2 FROM tab2 cor0
----
1109
-31
2637
-31
4417
-31

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9492
SELECT - 68 DIV - ( - COUNT( * ) ) + + 10 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-9492
SELECT - 68 / - ( - COUNT ( * ) ) + + 10 FROM tab0 AS cor0
----
-12

query I rowsort
SELECT DISTINCT - 94 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-94

query I rowsort
SELECT ALL 53 * 15 AS col1 FROM tab2 AS cor0
----
795
795
795

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT SUM( DISTINCT + - col0 ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9496
SELECT SUM ( DISTINCT + - col0 ) AS col2 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT ALL - col1 * + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9498
SELECT ALL CAST( + - MIN( 74 ) AS SIGNED ) AS col1 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL CAST ( + - MIN ( 74 ) AS INTEGER ) AS col1 FROM tab1
----
-74

query I rowsort
SELECT ALL 61 * - + col1 FROM tab2
----
-3111
-4087
-4697

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 IS NULL OR ( NOT - 29 + - col1 * col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9501
SELECT DISTINCT + CAST( - - MAX( ALL - - 86 ) AS SIGNED ) AS col0 FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-9501
SELECT DISTINCT + CAST ( - - MAX ( ALL - - 86 ) AS INTEGER ) AS col0 FROM tab0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT DISTINCT SUM( DISTINCT + - col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-9502
SELECT DISTINCT SUM ( DISTINCT + - col1 ) AS col2 FROM tab1
----
-66

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = 35
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9504
SELECT + + col0 FROM tab0 WHERE NOT + - 97 NOT BETWEEN CAST( + 21 AS SIGNED ) AND - + col0
----

skipif mysql # not compatible
query I rowsort label-9504
SELECT + + col0 FROM tab0 WHERE NOT + - 97 NOT BETWEEN CAST ( + 21 AS INTEGER ) AND - + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 * - + col1 * - + 95 + col1 - + col2 IN ( - + col0, col1 + + + ( + 86 ), - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT DISTINCT 61 * + + COUNT( ALL + col1 ) AS col1 FROM tab2
----
183

skipif mysql # not compatible
query I rowsort label-9506
SELECT DISTINCT 61 * + + COUNT ( ALL + col1 ) AS col1 FROM tab2
----
183

query I rowsort
SELECT - - col0 * - 30 AS col1 FROM tab0 AS cor0
----
-2610
-2910
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT DISTINCT + - MAX( DISTINCT - - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9508
SELECT DISTINCT + - MAX ( DISTINCT - - col1 ) FROM tab0 AS cor0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 39 col0, + col1 FROM tab0
----
39
1
39
21
39
81

query I rowsort
SELECT ALL - 64 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9511
SELECT - CAST( NULL AS SIGNED ) * - - ( + col1 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9511
SELECT - CAST ( NULL AS INTEGER ) * - - ( + col1 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT 88 * + 31 + + - COUNT( - col1 ) AS col0 FROM tab1
----
2725

skipif mysql # not compatible
query I rowsort label-9512
SELECT 88 * + 31 + + - COUNT ( - col1 ) AS col0 FROM tab1
----
2725

query I rowsort
SELECT ALL + + col0 * 84 FROM tab1 AS cor0
----
4284
7140
7644

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9514
SELECT * FROM tab2 AS cor0 WHERE NULL <> - CAST( NULL AS SIGNED ) * + col1
----

skipif mysql # not compatible
query III rowsort label-9514
SELECT * FROM tab2 AS cor0 WHERE NULL <> - CAST ( NULL AS INTEGER ) * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9515
SELECT ALL + 13 + CAST( + 59 AS SIGNED ) FROM tab1 AS cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-9515
SELECT ALL + 13 + CAST ( + 59 AS INTEGER ) FROM tab1 AS cor0
----
72
72
72

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > 62
----

query I rowsort
SELECT - col0 + + 0 AS col1 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE - - col0 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9519
SELECT - COUNT( * ) * - CAST( - + 29 AS SIGNED ) FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-9519
SELECT - COUNT ( * ) * - CAST ( - + 29 AS INTEGER ) FROM tab2
----
-87

query I rowsort
SELECT ALL + col0 - - - ( 52 ) * - col2 FROM tab0
----
2459
5245
607

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT ALL + - COUNT( * ) + + 3 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL + - COUNT ( * ) + + 3 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col2 + + 56 - - - col1 FROM tab0 AS cor0
----
154
22
45

query I rowsort
SELECT + 25 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query II rowsort
SELECT ALL col1, - col1 * + 39 - - - ( - 72 ) AS col2 FROM tab2
----
51
-1917
67
-2541
77
-2931

query II rowsort
SELECT 65, col2 AS col1 FROM tab1 AS cor0
----
65
59
65
68
65
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9526
SELECT ALL + + CAST( NULL AS SIGNED ) AS col2, COUNT( * ) FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9526
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) FROM tab1 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT ALL + + SUM( - - col2 ) AS col1 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL + + SUM ( - - col2 ) AS col1 FROM tab2 cor0
----
121

query II rowsort
SELECT DISTINCT col1 AS col0, 89 FROM tab1 AS cor0
----
14
89
47
89
5
89

query I rowsort
SELECT DISTINCT + col0 + col0 + - + col0 * 93 * + + col0 * ( - 89 ) AS col0 FROM tab0 AS cor0 WHERE col2 + + col1 * - 7 IN ( + 66 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9530
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE NOT + 42 * col2 * + col0 >= + CAST( - col1 AS SIGNED ) + ( + col1 ) - + ( 33 ) * - CAST( - col1 AS SIGNED ) + + col0 * 82
----

skipif mysql # not compatible
query I rowsort label-9530
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE NOT + 42 * col2 * + col0 >= + CAST ( - col1 AS INTEGER ) + ( + col1 ) - + ( 33 ) * - CAST ( - col1 AS INTEGER ) + + col0 * 82
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9531
SELECT DISTINCT - col1 AS col1, CAST( NULL AS SIGNED ) * + 9 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-9531
SELECT DISTINCT - col1 AS col1, CAST ( NULL AS INTEGER ) * + 9 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT ( - MAX( ALL 5 ) ) FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-9532
SELECT ( - MAX ( ALL 5 ) ) FROM tab2
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9533
SELECT * FROM tab2 WHERE NOT - 81 < - CAST( col2 AS DECIMAL ) - + + 50
----
64
77
40
75
67
58

skipif mysql # not compatible
query III rowsort label-9533
SELECT * FROM tab2 WHERE NOT - 81 < - CAST ( col2 AS REAL ) - + + 50
----
64
77
40
75
67
58

query I rowsort
SELECT + 69 AS col0 FROM tab2, tab1 AS cor0 WHERE NULL IS NULL
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT + 24 * + MAX( + col2 ) FROM tab0
----
2376

skipif mysql # not compatible
query I rowsort label-9535
SELECT + 24 * + MAX ( + col2 ) FROM tab0
----
2376

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 26 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 98 * - - ( + - 0 ) FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( ( + - col2 ), - col2, col0, - - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 * - - col2 col1 FROM tab1
----
2301
2652
3744

query I rowsort
SELECT ALL - ( + 91 ) AS col0 FROM tab0 cor0
----
-91
-91
-91

query I rowsort
SELECT + - col2 * - + col0 + - col0 + 40 + + col2 FROM tab1 AS cor0
----
4981
5029
6205

onlyif mysql # aggregate syntax: 
query II rowsort label-9542
SELECT ALL SUM( 11 ) AS col0, + 13 FROM tab1 AS cor0
----
33
13

skipif mysql # not compatible
query II rowsort label-9542
SELECT ALL SUM ( 11 ) AS col0, + 13 FROM tab1 AS cor0
----
33
13

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + - 51 + + 28 - - col0 + - col2 + + col0 / + + 13, 67 )
----

query I rowsort
SELECT 74 + - - 13 FROM tab0
----
87
87
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 col1 FROM tab1 cor0
----
53

query I rowsort
SELECT + col0 * col1 - col1 AS col1 FROM tab0 AS cor0
----
1134
1806
96

query I rowsort
SELECT + - col2 - - ( + - col0 ) FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT col0 - + - 32 FROM tab1 AS cor0
----
117
123
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9549
SELECT DISTINCT + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9549
SELECT DISTINCT + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 <= + col2
----
85
5
59
91
47
68

query I rowsort
SELECT + 96 - - col1 FROM tab0
----
117
177
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT ALL + COUNT( * ) + - SUM( - col2 ) FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-9552
SELECT ALL + COUNT ( * ) + - SUM ( - col2 ) FROM tab0
----
159

query I rowsort
SELECT + 97 + - col2 + + 68 + col0 AS col2 FROM tab0
----
133
163
242

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT COUNT( * ) * + COUNT( * ) + + 17 AS col1 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-9554
SELECT COUNT ( * ) * + COUNT ( * ) + + 17 AS col1 FROM tab2
----
26

query I rowsort
SELECT ALL col1 + - 19 FROM tab2
----
32
48
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT ALL + 43 - + + MIN( ALL - 50 ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL + 43 - + + MIN ( ALL - 50 ) FROM tab0
----
93

query I rowsort
SELECT DISTINCT - col0 - + col0 + + col1 FROM tab0
----
-153
-193
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 16 col1 FROM tab1 AS cor0
----
16
16
16

query I rowsort
SELECT - col2 * - 49 FROM tab0 AS cor0
----
2303
4851
490

query I rowsort
SELECT ALL + ( + 16 ) AS col0 FROM tab1 AS cor0
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT DISTINCT + 92 * ( - SUM( DISTINCT col1 ) ) FROM tab0 AS cor0
----
-9476

skipif mysql # not compatible
query I rowsort label-9561
SELECT DISTINCT + 92 * ( - SUM ( DISTINCT col1 ) ) FROM tab0 AS cor0
----
-9476

query I rowsort
SELECT + - 73 - + + 68 + + col0 * col0 - - 84 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT + 7 * 6 FROM tab0 AS cor0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT ALL SUM( 90 ) AS col1 FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL SUM ( 90 ) AS col1 FROM tab0
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT DISTINCT + COUNT( ALL - col1 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9565
SELECT DISTINCT + COUNT ( ALL - col1 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - + 2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9567
SELECT ALL - col2 DIV ( col2 ) AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL - col2 / ( col2 ) AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT ALL - ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9568
SELECT ALL - ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT DISTINCT - + col0 * - 93 - + + col1 + - ( - col2 ) AS col1 FROM tab0 AS cor0 WHERE 58 / - - 42 * - - 82 + + + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9570
SELECT - - SUM( ALL ( CAST( NULL AS DECIMAL ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9570
SELECT - - SUM ( ALL ( CAST ( NULL AS REAL ) ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9571
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + CAST( NULL AS SIGNED ) NOT BETWEEN + - 93 AND 12
----

skipif mysql # not compatible
query III rowsort label-9571
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + CAST ( NULL AS INTEGER ) NOT BETWEEN + - 93 AND 12
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN col1 AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9573
SELECT ALL - col2 + 36 + - + 33 * + - ( 71 ) FROM tab0 cor0 WHERE - 80 <= ( - 57 ) * col0 + 7 * + 31 * + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL - col2 + 36 + - + 33 * + - ( 71 ) FROM tab0 cor0 WHERE - 80 <= ( - 57 ) * col0 + 7 * + 31 * + - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 58 ) col0 FROM tab1 AS cor0
----
58
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9575
SELECT - - col2 col2 FROM tab0 AS cor0 WHERE NOT CAST( 78 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9575
SELECT - - col2 col2 FROM tab0 AS cor0 WHERE NOT CAST ( 78 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 43 + + 71 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - col0 ) + col2 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NOT + col2 NOT IN ( - - 41 - + col2 * - + col0, - col0 )
----

query I rowsort
SELECT ALL + 30 AS col2 FROM tab1 WHERE NOT + + col1 * 58 IS NULL
----
30
30
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9580
SELECT DISTINCT col0 AS col0, - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-9580
SELECT DISTINCT col0 AS col0, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT 67 * + SUM( ALL - 15 ) AS col0 FROM tab2
----
-3015

skipif mysql # not compatible
query I rowsort label-9581
SELECT 67 * + SUM ( ALL - 15 ) AS col0 FROM tab2
----
-3015

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT - - 11 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9582
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT - - 11 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT ALL - ( + + COUNT( * ) ) FROM tab0 WHERE NOT NULL <> + col1 * - - 92
----
0

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL - ( + + COUNT ( * ) ) FROM tab0 WHERE NOT NULL <> + col1 * - - 92
----
0

query I rowsort
SELECT col2 * + - 59 FROM tab0
----
-2773
-5841
-590

query I rowsort
SELECT + 39 * + col0 FROM tab2 AS cor0
----
1794
2496
2925

query I rowsort
SELECT + ( - + col1 ) + 54 * col1 + - col2 FROM tab2
----
2680
3493
4041

query I rowsort
SELECT DISTINCT - 36 + - + 47 + col2 AS col0 FROM tab1
----
-15
-24
13

onlyif mysql # DIV for integer division: 
query I rowsort label-9588
SELECT - - 55 DIV + 68 * col2 * + - 48 + col1 AS col0 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9588
SELECT - - 55 / + 68 * col2 * + - 48 + col1 AS col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT - COUNT( * ) + MIN( DISTINCT - 66 ) FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-9589
SELECT - COUNT ( * ) + MIN ( DISTINCT - 66 ) FROM tab0 AS cor0
----
-69

query I rowsort
SELECT ALL ( 17 ) * col1 + - + col2 FROM tab1 cor0
----
142
26
731

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 87 + - col2 - col2 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9593
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 1 * + ( + - col0 ) >= ( CAST( col1 AS SIGNED ) ) - col0
----

skipif mysql # not compatible
query III rowsort label-9593
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 1 * + ( + - col0 ) >= ( CAST ( col1 AS INTEGER ) ) - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT DISTINCT + 65 + + COUNT( * ) * + - 83 AS col2 FROM tab1 AS cor0
----
-184

skipif mysql # not compatible
query I rowsort label-9594
SELECT DISTINCT + 65 + + COUNT ( * ) * + - 83 AS col2 FROM tab1 AS cor0
----
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT ALL COUNT( * ) + - - COUNT( * ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9595
SELECT ALL COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab1
----
6

query I rowsort
SELECT ALL + col2 + + 21 + - 50 AS col0 FROM tab1
----
30
39
67

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE - 94 IS NOT NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9598
SELECT DISTINCT + col2 + + - ( col1 ) / - + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9598
SELECT DISTINCT + col2 + + - ( col1 ) / - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9599
SELECT col1 DIV - col2 - col0 AS col0 FROM tab0
----
-16
-89
-97

skipif mysql # not compatible
query I rowsort label-9599
SELECT col1 / - col2 - col0 AS col0 FROM tab0
----
-16
-89
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9600
SELECT ALL - 53 DIV 81 + 32 + + + 9 FROM tab2
----
41
41
41

skipif mysql # not compatible
query I rowsort label-9600
SELECT ALL - 53 / 81 + 32 + + + 9 FROM tab2
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT DISTINCT - - SUM( + col0 ) AS col0 FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-9601
SELECT DISTINCT - - SUM ( + col0 ) AS col0 FROM tab1 cor0
----
227

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 * - + col2 BETWEEN - col0 AND - 80
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9603
SELECT COUNT( * ), - MIN( DISTINCT - col1 ) col0 FROM tab2
----
3
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9603
SELECT COUNT ( * ), - MIN ( DISTINCT - col1 ) col0 FROM tab2
----
3
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT ALL SUM( DISTINCT + 91 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
91

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL SUM ( DISTINCT + 91 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, + 88 col1 FROM tab1
----
14
88
47
88
5
88

query II rowsort
SELECT + 96 + 27, 87 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 1a1c1f43799c7c278820ab76ac1460e1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9607
SELECT + CAST( NULL AS SIGNED ) + + - ( - + COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9607
SELECT + CAST ( NULL AS INTEGER ) + + - ( - + COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
NULL

query II rowsort
SELECT ALL 48 AS col0, col1 FROM tab0
----
48
1
48
21
48
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT DISTINCT - MIN( DISTINCT - col2 ) * - 99 FROM tab2 AS cor0
----
-5742

skipif mysql # not compatible
query I rowsort label-9609
SELECT DISTINCT - MIN ( DISTINCT - col2 ) * - 99 FROM tab2 AS cor0
----
-5742

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9610
SELECT DISTINCT + 84 DIV MAX( + 21 ) FROM tab1 cor0
----
4

skipif mysql # not compatible
query I rowsort label-9610
SELECT DISTINCT + 84 / MAX ( + 21 ) FROM tab1 cor0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9611
SELECT COUNT( * ) AS col1, - 21 FROM tab2 AS cor0 WHERE NOT - col0 * - - 5 + - 49 < + col2
----
0
-21

skipif mysql # not compatible
query II rowsort label-9611
SELECT COUNT ( * ) AS col1, - 21 FROM tab2 AS cor0 WHERE NOT - col0 * - - 5 + - 49 < + col2
----
0
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 92 col2 FROM tab0 cor0
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-9613
SELECT 87 AS col2, MIN( ALL col2 ) FROM tab2 AS cor0
----
87
23

skipif mysql # not compatible
query II rowsort label-9613
SELECT 87 AS col2, MIN ( ALL col2 ) FROM tab2 AS cor0
----
87
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9614
SELECT DISTINCT - col2 DIV + col0 + 83 + - + col0 FROM tab2 AS cor0
----
19
37
8

skipif mysql # not compatible
query I rowsort label-9614
SELECT DISTINCT - col2 / + col0 + 83 + - + col0 FROM tab2 AS cor0
----
19
37
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT DISTINCT - COUNT( - col0 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9615
SELECT DISTINCT - COUNT ( - col0 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - ( 90 ) AS col0 FROM tab2 AS cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-9617
SELECT - COUNT( ALL - - col2 ), 74 AS col0 FROM tab1 cor0
----
-3
74

skipif mysql # not compatible
query II rowsort label-9617
SELECT - COUNT ( ALL - - col2 ), 74 AS col0 FROM tab1 cor0
----
-3
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 76 + - col1 col1 FROM tab0
----
-5
55
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT ALL SUM( + 60 ) col1 FROM tab2
----
180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9619
SELECT ALL SUM ( + 60 ) col1 FROM tab2
----
180

query I rowsort
SELECT - 78 * + - col2 FROM tab2
----
1794
3120
4524

query I rowsort
SELECT ALL + col1 * + - 72 FROM tab1
----
-1008
-3384
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT DISTINCT MIN( + - 97 ) + + 43 col1 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9622
SELECT DISTINCT MIN ( + - 97 ) + + 43 col1 FROM tab0 AS cor0
----
-54

query III rowsort
SELECT * FROM tab0 WHERE - - 92 > + 20 * + col0 + + 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT + + COUNT( 46 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9624
SELECT + + COUNT ( 46 ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9625
SELECT + col1 DIV + 56 col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9625
SELECT + col1 / + 56 col1 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT - 71 * col1 - + col2 + + - ( + col0 ) FROM tab0 AS cor0
----
-1588
-267
-5813

query I rowsort
SELECT ( - - col1 ) - - col0 FROM tab0 cor0
----
108
96
98

query I rowsort
SELECT ALL col2 - + - 98 AS col1 FROM tab0 cor0
----
108
145
197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col2 AS col0, - col1 col0 FROM tab2 AS cor0
----
-23
-51
-40
-77
-58
-67

query I rowsort
SELECT + AVG ( DISTINCT 89 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - col0 * - col2 - + 31 * - col1 FROM tab1 cor0
----
5170
5330
7645

query II rowsort
SELECT DISTINCT col0, 87 FROM tab1 AS cor0
----
51
87
85
87
91
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT 98 * + SUM( col2 ) + 1 * 12 FROM tab2 AS cor0
----
11870

skipif mysql # not compatible
query I rowsort label-9633
SELECT 98 * + SUM ( col2 ) + 1 * 12 FROM tab2 AS cor0
----
11870

query I rowsort
SELECT DISTINCT + col1 * - 52 FROM tab1
----
-2444
-260
-728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9635
SELECT - MIN( ALL + 74 ) + ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9635
SELECT - MIN ( ALL + 74 ) + ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + + 88 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT + - COUNT( * ) AS col0 FROM tab0 WHERE NOT 35 * - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9638
SELECT + - COUNT ( * ) AS col0 FROM tab0 WHERE NOT 35 * - col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT ALL 75 * + - ( - COUNT( * ) ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL 75 * + - ( - COUNT ( * ) ) FROM tab2
----
225

query I rowsort
SELECT DISTINCT + 75 FROM tab0 WHERE NOT + + col0 <= + + col0
----

query I rowsort
SELECT ALL col0 * - + 23 - + 18 * - col2 AS col2 FROM tab0 AS cor0
----
-1821
-449
501

query II rowsort
SELECT + col1, + ( - col0 ) - col2 FROM tab2 AS cor0
----
51
-69
67
-133
77
-104

query I rowsort
SELECT ALL col1 + + - 93 FROM tab0 AS cor0
----
-12
-72
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT ALL + - COUNT( * ) + + - COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9644
SELECT ALL + - COUNT ( * ) + + - COUNT ( * ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT - - col2 * + - col0 + - col0 + - + col0 + + col0 - - 31 + + col0 AS col2 FROM tab2 AS cor0
----
-1027
-2529
-4319

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9646
SELECT - 95 * - ( col0 ) + + CAST( + col1 AS SIGNED ) + - col1 + - col0 AS col0 FROM tab1 AS cor0
----
4794
7990
8554

skipif mysql # not compatible
query I rowsort label-9646
SELECT - 95 * - ( col0 ) + + CAST ( + col1 AS INTEGER ) + - col1 + - col0 AS col0 FROM tab1 AS cor0
----
4794
7990
8554

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9647
SELECT DISTINCT + col2 FROM tab1 WHERE NULL > - col0 + - 43 + col0 * + CAST( + col0 AS DECIMAL ) + + col0 * + col1
----

skipif mysql # not compatible
query I rowsort label-9647
SELECT DISTINCT + col2 FROM tab1 WHERE NULL > - col0 + - 43 + col0 * + CAST ( + col0 AS REAL ) + + col0 * + col1
----

query I rowsort
SELECT DISTINCT col2 * - 92 AS col2 FROM tab2
----
-2116
-3680
-5336

onlyif mysql # DIV for integer division: 
query I rowsort label-9649
SELECT DISTINCT col0 + + col0 DIV col2 AS col2 FROM tab0
----
15
95
97

skipif mysql # not compatible
query I rowsort label-9649
SELECT DISTINCT col0 + + col0 / col2 AS col2 FROM tab0
----
15
95
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 * col2 * col1 col2 FROM tab2
----
1241034
16904100
7884800

query II rowsort
SELECT ALL col1 * - 38 AS col1, col1 FROM tab2
----
-1938
51
-2546
67
-2926
77

query III rowsort
SELECT * FROM tab2 WHERE NULL < ( col2 ) * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9653
SELECT ALL col2 DIV + ( + col2 ) AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL col2 / + ( + col2 ) AS col0 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT + - COUNT( * ) * + - 81 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-9654
SELECT + - COUNT ( * ) * + - 81 FROM tab0 AS cor0
----
243

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9655
SELECT * FROM tab2 AS cor0 WHERE + 47 NOT BETWEEN col0 AND + col1 + - CAST( + col0 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9655
SELECT * FROM tab2 AS cor0 WHERE + 47 NOT BETWEEN col0 AND + col1 + - CAST ( + col0 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9657
SELECT DISTINCT + 78 DIV col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
1

skipif mysql # not compatible
query I rowsort label-9657
SELECT DISTINCT + 78 / col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
1

query I rowsort
SELECT DISTINCT col1 + + col1 + - - 52 * + 76 FROM tab2
----
4054
4086
4106

query I rowsort
SELECT 35 + + ( - 11 ) FROM tab0
----
24
24
24

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9661
SELECT - - 28 + col0 + + CAST( ( 31 ) AS SIGNED ) * + ( + 4 ) FROM tab0 AS cor0
----
167
239
249

skipif mysql # not compatible
query I rowsort label-9661
SELECT - - 28 + col0 + + CAST ( ( 31 ) AS INTEGER ) * + ( + 4 ) FROM tab0 AS cor0
----
167
239
249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * - col2 + 64 * col1 + col1 AS col0, + col1 col2 FROM tab2 AS cor0
----
2786
51
3405
77
991
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT - SUM( DISTINCT - 61 ) FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-9663
SELECT - SUM ( DISTINCT - 61 ) FROM tab0 AS cor0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9664
SELECT ALL col1 - + col2 col0, col2 * - CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-98
-9801
11
-100
34
-2209

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9664
SELECT ALL col1 - + col2 col0, col2 * - CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-98
-9801
11
-100
34
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT DISTINCT + MIN( - col1 ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9665
SELECT DISTINCT + MIN ( - col1 ) FROM tab2 cor0
----
-77

query II rowsort
SELECT DISTINCT - col0 AS col0, - 84 * col2 AS col2 FROM tab1
----
-51
-8064
-85
-4956
-91
-5712

query I rowsort
SELECT + col0 * + ( + 42 ) FROM tab0
----
3654
4074
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 81 col0 FROM tab2
----
-81
-81
-81

query II rowsort
SELECT 25, + col1 FROM tab1
----
25
14
25
47
25
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT ALL - MAX( - + col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-9670
SELECT ALL - MAX ( - + col0 ) FROM tab2
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col1, 97 col2 FROM tab2
----
-51
97
-67
97
-77
97

query II rowsort
SELECT ALL 9 AS col2, + 28 + + col2 FROM tab0
----
9
127
9
38
9
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9673
SELECT * FROM tab1 WHERE NOT col2 BETWEEN + 89 + + + col0 AND + + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + + - 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9673
SELECT * FROM tab1 WHERE NOT col2 BETWEEN + 89 + + + col0 AND + + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + + - 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9674
SELECT DISTINCT + CAST( NULL AS SIGNED ), + col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-9674
SELECT DISTINCT + CAST ( NULL AS INTEGER ), + col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT DISTINCT 75 * col0 AS col0 FROM tab0 AS cor0
----
1125
6525
7275

query I rowsort
SELECT DISTINCT - - col2 * - 51 * 37 FROM tab2 AS cor0
----
-109446
-43401
-75480

query II rowsort
SELECT DISTINCT + col0, 44 AS col2 FROM tab0 AS cor0
----
15
44
87
44
97
44

query I rowsort
SELECT - col1 * + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - col2 * - - 31 + col0, col0 * + col2 AS col1 FROM tab2
----
-1176
2560
-1723
4350
-667
1058

query III rowsort
SELECT * FROM tab0 WHERE 58 < + 20 * 98 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9681
SELECT ALL - 80 + + CAST( + MAX( 3 ) AS SIGNED ) AS col0 FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL - 80 + + CAST ( + MAX ( 3 ) AS INTEGER ) AS col0 FROM tab0
----
-77

query I rowsort
SELECT DISTINCT + 98 * + ( - col0 ) FROM tab1
----
-4998
-8330
-8918

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT ALL MAX( DISTINCT col1 ) + + COUNT( * ) AS col2 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL MAX ( DISTINCT col1 ) + + COUNT ( * ) AS col2 FROM tab1
----
50

query II rowsort
SELECT DISTINCT - 77, col0 FROM tab2
----
-77
46
-77
64
-77
75

onlyif mysql # DIV for integer division: 
query II rowsort label-9685
SELECT - col1 * 19 + + - col0 AS col2, + col2 + col1 + + col2 DIV col1 + 21 + + col1 FROM tab2 AS cor0
----
-1015
146
-1348
213
-1527
215

skipif mysql # not compatible
query II rowsort label-9685
SELECT - col1 * 19 + + - col0 AS col2, + col2 + col1 + + col2 / col1 + 21 + + col1 FROM tab2 AS cor0
----
-1015
146
-1348
213
-1527
215

query I rowsort
SELECT ( - 8 ) FROM tab2 AS cor0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT DISTINCT - MIN( - 56 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
56

skipif mysql # not compatible
query I rowsort label-9687
SELECT DISTINCT - MIN ( - 56 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
56

query I rowsort
SELECT + 93 * - - col2 + + 48 AS col0 FROM tab0 AS cor0
----
4419
9255
978

query II rowsort
SELECT DISTINCT - col0 AS col0, - col0 + + col2 AS col2 FROM tab0 AS cor0
----
-15
32
-87
-77
-97
2

query II rowsort
SELECT - col0, 53 + - 7 AS col2 FROM tab0 AS cor0
----
-15
46
-87
46
-97
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 75 ) col2 FROM tab0 AS cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT DISTINCT SUM( + - 8 ) FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-9692
SELECT DISTINCT SUM ( + - 8 ) FROM tab0 AS cor0
----
-24

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT + COUNT( * ) * - COUNT( * ) * + - 11 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-9694
SELECT + COUNT ( * ) * - COUNT ( * ) * + - 11 FROM tab1
----
99

onlyif mysql # DIV for integer division: 
query II rowsort label-9695
SELECT DISTINCT 76 DIV + 61, 5 + - col0 col0 FROM tab1
----
1
-46
1
-80
1
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9695
SELECT DISTINCT 76 / + 61, 5 + - col0 col0 FROM tab1
----
1
-46
1
-80
1
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9696
SELECT DISTINCT COUNT( * ) * CAST( - 51 AS SIGNED ) AS col2 FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-9696
SELECT DISTINCT COUNT ( * ) * CAST ( - 51 AS INTEGER ) AS col2 FROM tab2
----
-153

query I rowsort
SELECT DISTINCT 54 AS col0 FROM tab1 WHERE NOT ( 24 IS NULL )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT - MIN( ALL col0 ) * COUNT( * ) AS col1 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-9698
SELECT - MIN ( ALL col0 ) * COUNT ( * ) AS col1 FROM tab0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT DISTINCT MIN( col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-9699
SELECT DISTINCT MIN ( col0 ) AS col2 FROM tab1
----
51

query III rowsort
SELECT ALL * FROM tab0 WHERE 37 IS NULL
----

query II rowsort
SELECT ALL col1 * - col2 AS col1, 14 + 85 FROM tab2
----
-1173
99
-3080
99
-3886
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + + 35 ) > + + 61
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT COUNT( DISTINCT - col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9703
SELECT COUNT ( DISTINCT - col2 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL - ( col2 ), col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT DISTINCT + - ( 43 ) FROM tab1 cor0
----
-43

query I rowsort
SELECT ALL - col2 + 81 * - 65 + - 29 AS col1 FROM tab0 cor0
----
-5304
-5341
-5393

query I rowsort
SELECT 16 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT COUNT( * ) + - - 16 AS col0 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-9708
SELECT COUNT ( * ) + - - 16 AS col0 FROM tab2 AS cor0
----
19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9709
SELECT + col0 + + CAST( - + col0 AS SIGNED ) DIV + 53 AS col2 FROM tab0 AS cor0
----
15
86
96

skipif mysql # not compatible
query I rowsort label-9709
SELECT + col0 + + CAST ( - + col0 AS INTEGER ) / + 53 AS col2 FROM tab0 AS cor0
----
15
86
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9710
SELECT + + 70 + - col0 - col0 DIV + + col1 AS col1 FROM tab2 AS cor0
----
-6
24
6

skipif mysql # not compatible
query I rowsort label-9710
SELECT + + 70 + - col0 - col0 / + + col1 AS col1 FROM tab2 AS cor0
----
-6
24
6

query I rowsort
SELECT ( + 86 ) FROM tab0
----
86
86
86

query I rowsort
SELECT DISTINCT ( - + col2 ) FROM tab1
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 NOT BETWEEN + - 58 AND - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 33 col1 FROM tab2
----
1320
1914
759

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT 41 * ( + MAX( ALL - 53 ) ) AS col2 FROM tab2
----
-2173

skipif mysql # not compatible
query I rowsort label-9715
SELECT 41 * ( + MAX ( ALL - 53 ) ) AS col2 FROM tab2
----
-2173

query II rowsort
SELECT ALL ( + col2 ), 28 * - - 84 FROM tab0
----
10
2352
47
2352
99
2352

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT COUNT( * ) * - 99 AS col1 FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-9717
SELECT COUNT ( * ) * - 99 AS col1 FROM tab0 AS cor0
----
-297

query I rowsort
SELECT ALL - col2 * - - ( + col0 ) FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT 94 + + - 45 FROM tab1
----
49
49
49

query II rowsort
SELECT + col1 AS col1, - 69 AS col0 FROM tab2
----
51
-69
67
-69
77
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT + - MIN( + + 88 ) AS col1 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-9721
SELECT + - MIN ( + + 88 ) AS col1 FROM tab1 AS cor0
----
-88

query I rowsort
SELECT - col1 * - - col2 AS col2 FROM tab0 AS cor0
----
-210
-3807
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + col2 + - + col2 + + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9724
SELECT ALL + + col1 AS col0 FROM tab2 AS cor0 WHERE + col2 * + CAST( NULL AS DECIMAL ) + + 85 IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9724
SELECT ALL + + col1 AS col0 FROM tab2 AS cor0 WHERE + col2 * + CAST ( NULL AS REAL ) + + 85 IS NULL
----
51
67
77

query I rowsort
SELECT - 81 * - col0 - + - 91 AS col0 FROM tab2 AS cor0
----
3817
5275
6166

onlyif mysql # DIV for integer division: 
query I rowsort label-9726
SELECT DISTINCT + 21 DIV col1 + - 91 * - 1 FROM tab0 cor0
----
112
91
92

skipif mysql # not compatible
query I rowsort label-9726
SELECT DISTINCT + 21 / col1 + - 91 * - 1 FROM tab0 cor0
----
112
91
92

query II rowsort
SELECT + col0 * - col1 * - col1, col2 FROM tab2 AS cor0
----
119646
23
336675
58
379456
40

query I rowsort
SELECT - 26 * + - 17 AS col2 FROM tab0
----
442
442
442

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + - 21 + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 48 AS col2, col1 AS col0 FROM tab0
----
48
1
48
21
48
81

query II rowsort
SELECT DISTINCT + col1, ( + - 21 ) FROM tab0
----
1
-21
21
-21
81
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 24 + - + col0 col1 FROM tab1 cor0
----
1037
285
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT - 93 + - 65 * - MAX( + 73 ) FROM tab0
----
4652

skipif mysql # not compatible
query I rowsort label-9733
SELECT - 93 + - 65 * - MAX ( + 73 ) FROM tab0
----
4652

query I rowsort
SELECT DISTINCT + + 79 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT - COUNT( * ) col0 FROM tab0 AS cor0 WHERE col1 >= col1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9735
SELECT - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE col1 >= col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT COUNT( DISTINCT - 72 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9736
SELECT COUNT ( DISTINCT - 72 ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 11 NOT IN ( + + 47 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE 12 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9739
SELECT col0 - col2 DIV - - 1 FROM tab2 AS cor0
----
17
23
24

skipif mysql # not compatible
query I rowsort label-9739
SELECT col0 - col2 / - - 1 FROM tab2 AS cor0
----
17
23
24

query II rowsort
SELECT ALL col0, 90 - + 52 AS col0 FROM tab0
----
15
38
87
38
97
38

query I rowsort
SELECT col1 + col2 * + 67 AS col1 FROM tab2
----
1592
2757
3953

query I rowsort
SELECT DISTINCT - 76 - + col2 AS col0 FROM tab1 cor0
----
-135
-144
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT - MIN( DISTINCT - 27 ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-9743
SELECT - MIN ( DISTINCT - 27 ) FROM tab2 AS cor0
----
27

query I rowsort
SELECT ALL - col2 - + - col0 FROM tab1 AS cor0
----
-45
23
26

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - col0 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9746
SELECT ALL CAST( NULL AS SIGNED ) - + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL CAST ( NULL AS INTEGER ) - + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9747
SELECT col0 * - col1 * col1 * - ( col0 ) * + CAST( NULL AS SIGNED ) * + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9747
SELECT col0 * - col1 * col1 * - ( col0 ) * + CAST ( NULL AS INTEGER ) * + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL = - ( + - col2 ) + - col1
----

query I rowsort
SELECT DISTINCT + + col1 * + + ( + col2 ) FROM tab2 AS cor0
----
1173
3080
3886

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( 56 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9751
SELECT - col2 DIV CAST( col1 * col2 AS SIGNED ) + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9751
SELECT - col2 / CAST ( col1 * col2 AS INTEGER ) + col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT DISTINCT + MIN( DISTINCT + col2 ) FROM tab2 WHERE NULL IS NULL
----
23

skipif mysql # not compatible
query I rowsort label-9752
SELECT DISTINCT + MIN ( DISTINCT + col2 ) FROM tab2 WHERE NULL IS NULL
----
23

query I rowsort
SELECT ALL 71 + col2 AS col1 FROM tab1
----
130
139
167

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE col0 NOT BETWEEN col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9754
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE col0 NOT BETWEEN col0 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT ALL - COUNT( DISTINCT - col1 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL - COUNT ( DISTINCT - col1 ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT 26 + ( + 28 ) * ( - 0 ) AS col2 FROM tab0 WHERE + col2 = + 8
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE NOT + col2 + - col2 NOT IN ( - col1 )
----

query I rowsort
SELECT DISTINCT col1 * + 63 + + col1 AS col2 FROM tab1
----
3008
320
896

query I rowsort
SELECT ( - col1 ) + 28 FROM tab2
----
-23
-39
-49

query I rowsort
SELECT ALL col1 + 69 FROM tab2
----
120
136
146

query III rowsort
SELECT * FROM tab2 WHERE 36 IN ( - col0 * + col0 + 71 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col1 ) > ( NULL )
----

query I rowsort
SELECT col1 - 27 FROM tab0 WHERE NOT 39 IN ( + col0 )
----
-26
-6
54

query I rowsort
SELECT ( col1 ) + + col0 AS col1 FROM tab0
----
108
96
98

query I rowsort
SELECT + 78 + + 65 FROM tab1 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9766
SELECT - col0 * - 11 - + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9766
SELECT - col0 * - 11 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 WHERE NULL >= + col2
----
0

skipif mysql # not compatible
query I rowsort label-9768
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 WHERE NULL >= + col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9769
SELECT ALL col2 FROM tab2 WHERE - CAST( NULL AS SIGNED ) * col0 IS NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL col2 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) * col0 IS NULL
----
23
40
58

query I rowsort
SELECT col1 * - col1 - - 23 AS col0 FROM tab0
----
-418
-6538
22

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 98 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 76 * + col1 - + col1 FROM tab1
----
1050
3525
375

query I rowsort
SELECT 41 * + col0 AS col2 FROM tab0 WHERE - col0 > col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9774
SELECT ALL - MAX( - 91 ) DIV + COUNT( * ) AS col0 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL - MAX ( - 91 ) / + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9775
SELECT + col0 DIV - 9 FROM tab1 AS cor0
----
-10
-5
-9

skipif mysql # not compatible
query I rowsort label-9775
SELECT + col0 / - 9 FROM tab1 AS cor0
----
-10
-5
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT MIN( ALL ( col1 ) ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-9776
SELECT MIN ( ALL ( col1 ) ) FROM tab2 cor0
----
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( 74 ) IS NULL
----

query I rowsort
SELECT ALL 56 + + col0 FROM tab0
----
143
153
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT + 9 + COUNT( * ) AS col0 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-9779
SELECT + 9 + COUNT ( * ) AS col0 FROM tab1
----
12

query I rowsort
SELECT - 75 + - ( col1 ) * - col1 FROM tab2
----
2526
4414
5854

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9781
SELECT CAST( + CAST( 58 AS SIGNED ) AS SIGNED ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-9781
SELECT CAST ( + CAST ( 58 AS INTEGER ) AS INTEGER ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9782
SELECT + COUNT( * ) * + 60 AS col1 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN - CAST( 54 AS SIGNED ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9782
SELECT + COUNT ( * ) * + 60 AS col1 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN - CAST ( 54 AS INTEGER ) AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9783
SELECT DISTINCT CAST( ( - 32 ) AS SIGNED ) DIV - 77 col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9783
SELECT DISTINCT CAST ( ( - 32 ) AS INTEGER ) / - 77 col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 89 + - col0 <= + col0 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT DISTINCT COUNT( * ) * 36 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - 65
----
0

skipif mysql # not compatible
query I rowsort label-9785
SELECT DISTINCT COUNT ( * ) * 36 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - 65
----
0

query I rowsort
SELECT 98 + - col2 AS col1 FROM tab2 AS cor0 WHERE ( - 71 ) IS NOT NULL
----
40
58
75

query I rowsort
SELECT - col0 + col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-37
-44
-80

query I rowsort
SELECT DISTINCT + 40 + col1 * col2 FROM tab1 AS cor0
----
1384
3236
335

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT ALL MAX( ALL + 76 ) + - COUNT( * ) FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-9789
SELECT ALL MAX ( ALL + 76 ) + - COUNT ( * ) FROM tab1 AS cor0
----
73

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 NOT IN ( - col2 - 97 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9791
SELECT ALL 14 DIV col2 + - 19 FROM tab2
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-9791
SELECT ALL 14 / col2 + - 19 FROM tab2
----
-19
-19
-19

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE NULL IN ( + col2 + 90 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9793
SELECT ALL CAST( - 55 AS SIGNED ) + - col0 FROM tab1
----
-106
-140
-146

skipif mysql # not compatible
query I rowsort label-9793
SELECT ALL CAST ( - 55 AS INTEGER ) + - col0 FROM tab1
----
-106
-140
-146

query I rowsort
SELECT col2 - + + col1 * 89 AS col1 FROM tab2
----
-4516
-5905
-6813

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9795
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 14 col0 FROM tab0 WHERE NULL NOT IN ( col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9795
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 14 col0 FROM tab0 WHERE NULL NOT IN ( col2 )
----

query I rowsort
SELECT + col0 - col0 * + col0 AS col0 FROM tab2
----
-2070
-4032
-5550

query I rowsort
SELECT DISTINCT col2 * 6 FROM tab0 WHERE ( col2 ) >= ( NULL )
----

query I rowsort
SELECT ALL + 20 * + - col0 FROM tab1 AS cor0
----
-1020
-1700
-1820

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT + SUM( 57 ) AS col0 FROM tab0 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-9799
SELECT + SUM ( 57 ) AS col0 FROM tab0 AS cor0
----
171

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT + 90 + + 80 FROM tab0 WHERE NOT ( NULL = col1 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT + MIN( 53 ) + 6 * COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
107

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9802
SELECT + MIN ( 53 ) + 6 * COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT MIN( DISTINCT col2 ) * 2 * COUNT( * ) FROM tab1
----
354

skipif mysql # not compatible
query I rowsort label-9803
SELECT MIN ( DISTINCT col2 ) * 2 * COUNT ( * ) FROM tab1
----
354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9804
SELECT ALL - - CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL - - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL + 97 * 68 FROM tab1 WHERE NOT ( - col1 ) IS NULL
----
6596
6596
6596

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9806
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= col2 * - CAST( col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9806
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= col2 * - CAST ( col2 AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9807
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 / - col0 * CAST( NULL AS SIGNED ) IN ( 75 )
----

skipif mysql # not compatible
query III rowsort label-9807
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 / - col0 * CAST ( NULL AS INTEGER ) IN ( 75 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9809
SELECT ALL CAST( NULL AS SIGNED ) * - 64 AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL CAST ( NULL AS INTEGER ) * - 64 AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + 18 AS col0 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT + 22 * + + COUNT( * ) FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9811
SELECT + 22 * + + COUNT ( * ) FROM tab2 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9812
SELECT DISTINCT + col1, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-9812
SELECT DISTINCT + col1, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT DISTINCT 47 * + COUNT( * ) AS col2 FROM tab2
----
141

skipif mysql # not compatible
query I rowsort label-9813
SELECT DISTINCT 47 * + COUNT ( * ) AS col2 FROM tab2
----
141

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 WHERE NOT ( + + col1 ) IS NULL
----
51
67
77

query I rowsort
SELECT col2 * + 24 * col1 FROM tab0
----
2376
5040
91368

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab1 WHERE NOT ( - 31 ) IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9817
SELECT CAST( + - col2 AS SIGNED ) * - col0 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-9817
SELECT CAST ( + - col2 AS INTEGER ) * - col0 FROM tab0
----
705
870
9603

query I rowsort
SELECT DISTINCT col1 * col0 * + + col2 * + 71 AS col1 FROM tab0
----
1297170
4054455
681813

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9819
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( col2 AS SIGNED ) + - 7 * - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9819
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( col2 AS INTEGER ) + - 7 * - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col1 * + + 96 + - 2 / - col0 ) IS NULL
----

query II rowsort
SELECT DISTINCT + 81 AS col2, col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
81
59
81
68
81
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT + 50 + + COUNT( * ) FROM tab2 WHERE - 73 + + ( + col1 ) + col2 NOT IN ( + col2 * col0 )
----
53

skipif mysql # not compatible
query I rowsort label-9822
SELECT + 50 + + COUNT ( * ) FROM tab2 WHERE - 73 + + ( + col1 ) + col2 NOT IN ( + col2 * col0 )
----
53

query I rowsort
SELECT + + 44 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE ( 36 ) IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT ALL col2 * - - col2 + - 51 * 85 AS col0 FROM tab0 AS cor0
----
-2126
-4235
5466

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1 + col2 )
----

query I rowsort
SELECT 12 * + col1 - - ( - 7 ) AS col2 FROM tab2 AS cor0
----
605
797
917

query I rowsort
SELECT col2 * + col2 - - - col1 * + + col1 FROM tab1 AS cor0
----
2415
3456
9020

query I rowsort
SELECT 87 + col0 FROM tab2 AS cor0
----
133
151
162

query I rowsort
SELECT col2 + 83 AS col1 FROM tab0 WHERE - col2 NOT BETWEEN col2 AND ( + col2 )
----
130
182
93

query III rowsort
SELECT * FROM tab1 WHERE col1 + - 55 * - ( + + col0 ) IN ( col2 )
----

query I rowsort
SELECT - 84 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-84
-84
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9833
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, col2 + col1 col2 FROM tab1 AS cor0
----
NULL
110
NULL
115
NULL
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9833
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, col2 + col1 col2 FROM tab1 AS cor0
----
NULL
110
NULL
115
NULL
64

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9834
SELECT * FROM tab2 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON NOT NULL < - + CAST( NULL AS SIGNED ) WHERE NOT ( ( 98 ) <> NULL )
----

skipif mysql # not compatible
query IIIIII rowsort label-9834
SELECT * FROM tab2 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON NOT NULL < - + CAST ( NULL AS INTEGER ) WHERE NOT ( ( 98 ) <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT + - COUNT( * ) col2 FROM tab0 WHERE NOT - ( + col2 ) NOT BETWEEN - col1 AND col2
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9835
SELECT + - COUNT ( * ) col2 FROM tab0 WHERE NOT - ( + col2 ) NOT BETWEEN - col1 AND col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT DISTINCT + - SUM( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9836
SELECT DISTINCT + - SUM ( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9837
SELECT - MIN( + - CAST( NULL AS SIGNED ) ) / - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9837
SELECT - MIN ( + - CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col1 * - + 70 + + col2 + + + 71 * - col0 * + 86 AS col2 FROM tab0 AS cor0
----
-529742
-592113
-85873

onlyif mysql # aggregate syntax: 
query II rowsort label-9839
SELECT DISTINCT MIN( col1 ), + 89 AS col1 FROM tab0 AS cor0
----
1
89

skipif mysql # not compatible
query II rowsort label-9839
SELECT DISTINCT MIN ( col1 ), + 89 AS col1 FROM tab0 AS cor0
----
1
89

onlyif mysql # DIV for integer division: 
query I rowsort label-9840
SELECT ALL + + col2 + col2 + + - col0 DIV + - col1 FROM tab2 AS cor0
----
117
46
80

skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL + + col2 + col2 + + - col0 / + - col1 FROM tab2 AS cor0
----
117
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT ( + 72 ) * - - 58 + - COUNT( * ) + - COUNT( + - col1 ) FROM tab0 AS cor0
----
4170

skipif mysql # not compatible
query I rowsort label-9841
SELECT ( + 72 ) * - - 58 + - COUNT ( * ) + - COUNT ( + - col1 ) FROM tab0 AS cor0
----
4170

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT - + COUNT( * ) col2 FROM tab0 cor0 WHERE NOT ( - 34 ) + + 2 >= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9842
SELECT - + COUNT ( * ) col2 FROM tab0 cor0 WHERE NOT ( - 34 ) + + 2 >= NULL
----
0

query I rowsort
SELECT + col1 + col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( + col1 )
----

query I rowsort
SELECT DISTINCT 99 FROM tab0 WHERE NOT + col1 + + 91 - + col0 NOT BETWEEN + + 91 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT DISTINCT SUM( DISTINCT + col1 ) + - 17 AS col0 FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-9845
SELECT DISTINCT SUM ( DISTINCT + col1 ) + - 17 AS col0 FROM tab1
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * col1 * - 57 AS col2, + col2 col2 FROM tab1
----
-16815
59
-182172
68
-76608
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9847
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / + - col1 / - col0 * - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9847
SELECT DISTINCT - CAST ( NULL AS REAL ) / + - col1 / - col0 * - col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9848
SELECT + 66 AS col0, COUNT( * ) FROM tab2 AS cor0
----
66
3

skipif mysql # not compatible
query II rowsort label-9848
SELECT + 66 AS col0, COUNT ( * ) FROM tab2 AS cor0
----
66
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( col1 ) col2 FROM tab1 AS cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * - - col2 + + - 0 col2, 40 FROM tab0 AS cor0
----
100
40
2209
40
9801
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9851
SELECT DISTINCT 30 * 49 + + col1 + - + ( + + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9851
SELECT DISTINCT 30 * 49 + + col1 + - + ( + + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT DISTINCT - - COUNT( + col0 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT - - COUNT ( + col0 ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT ALL + MIN( DISTINCT ( + + col1 ) ) col2 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9853
SELECT ALL + MIN ( DISTINCT ( + + col1 ) ) col2 FROM tab1
----
5

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 23 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 87 * - 42 ) <> NULL
----

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 54 < - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + 29 AS col2, col1 AS col0 FROM tab0 WHERE NOT + 4 IN ( col2 * - col2 )
----
29
1
29
21
29
81

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 * - col0 * - col0 IS NULL
----

query I rowsort
SELECT ALL 48 + - + 15 + col2 * 99 * - - col1 AS col1 FROM tab2
----
116160
304953
384747

query I rowsort
SELECT - 48 / - col2 FROM tab2 WHERE NOT NULL <= ( ( 52 ) + - - 26 + col1 * - col1 + - col2 ) AND NOT NULL = + 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT + ( - MAX( DISTINCT + - col1 ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9862
SELECT + ( - MAX ( DISTINCT + - col1 ) ) FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT - SUM( DISTINCT 18 ) col0 FROM tab2
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9863
SELECT - SUM ( DISTINCT 18 ) col0 FROM tab2
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9864
SELECT - AVG ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9864
SELECT - AVG ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query II rowsort
SELECT + - col0 * - col1 AS col1, col2 * - col1 FROM tab2 AS cor0 WHERE NOT - 0 < 56
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9866
SELECT COUNT( * ) DIV - + 28 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9866
SELECT COUNT ( * ) / - + 28 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9867
SELECT DISTINCT SUM( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9867
SELECT DISTINCT SUM ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT col2 <> NULL
----

query II rowsort
SELECT DISTINCT + - col2, 16 + - col2 AS col1 FROM tab1 AS cor0
----
-59
-43
-68
-52
-96
-80

query II rowsort
SELECT + + col0, col0 AS col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT DISTINCT - + col1 / 33 / col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <> + 44 * - col2
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 95 = - - col0 + + 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9873
SELECT - + COUNT( * ) AS col1, COUNT( * ) FROM tab2 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-9873
SELECT - + COUNT ( * ) AS col1, COUNT ( * ) FROM tab2 cor0
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9874
SELECT DISTINCT CAST( - 59 AS SIGNED ) * + col2 + + 60 + + col1 DIV + col1 col2 FROM tab1 WHERE ( col1 NOT BETWEEN + col1 * + 48 + - col0 DIV + + col0 AND + col2 )
----
-3420
-3951
-5603

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9874
SELECT DISTINCT CAST ( - 59 AS INTEGER ) * + col2 + + 60 + + col1 / + col1 col2 FROM tab1 WHERE ( col1 NOT BETWEEN + col1 * + 48 + - col0 / + + col0 AND + col2 )
----
-3420
-3951
-5603

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT 68 IS NOT NULL )
----

query II rowsort
SELECT ALL - ( - + col1 ), + col2 * - col2 AS col1 FROM tab0
----
1
-9801
21
-100
81
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT - 72 * + MIN( DISTINCT - + 81 ) col2 FROM tab1
----
5832

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9877
SELECT - 72 * + MIN ( DISTINCT - + 81 ) col2 FROM tab1
----
5832

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col2 ) * - - col0 - 29 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 2 * + ( - col0 ) + + - 54 AS col0 FROM tab1 AS cor0
----
-156
-224
-236

query I rowsort
SELECT DISTINCT 72 * col1 * + + 30 FROM tab0
----
174960
2160
45360

query I rowsort
SELECT + col1 FROM tab0 WHERE - + 13 * col0 * + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT + COUNT( + 15 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9882
SELECT + COUNT ( + 15 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT + col2 - - col1 AS col0 FROM tab0
----
100
128
31

query I rowsort
SELECT ALL + col1 - - + col2 FROM tab2 AS cor0
----
117
125
74

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + 76 <> - + 41
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT DISTINCT + - COUNT( * ) * - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9886
SELECT DISTINCT + - COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-9

query II rowsort
SELECT ALL - col2 AS col1, col2 FROM tab0 cor0
----
-10
10
-47
47
-99
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 NOT IN ( - col2 + 16 - + 19 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT + 54 * COUNT( * ) FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-9889
SELECT + 54 * COUNT ( * ) FROM tab1 AS cor0
----
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9890
SELECT + 24 DIV - COUNT( * ) FROM tab1 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-9890
SELECT + 24 / - COUNT ( * ) FROM tab1 cor0
----
-8

query I rowsort
SELECT DISTINCT + + ( - ( + 56 ) ) * - 1 FROM tab1 AS cor0
----
56

query I rowsort
SELECT ALL - 88 FROM tab2 WHERE 1 NOT IN ( col1 )
----
-88
-88
-88

onlyif mysql # DIV for integer division: 
query II rowsort label-9893
SELECT + col0 DIV col0 AS col1, + 65 col1 FROM tab0
----
1
65
1
65
1
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9893
SELECT + col0 / col0 AS col1, + 65 col1 FROM tab0
----
1
65
1
65
1
65

onlyif mysql # DIV for integer division: 
query I rowsort label-9894
SELECT DISTINCT - ( - 68 ) DIV 83 + + col1 - + + col2 * col1 AS col1 FROM tab0
----
-189
-3726
-98

skipif mysql # not compatible
query I rowsort label-9894
SELECT DISTINCT - ( - 68 ) / 83 + + col1 - + + col2 * col1 AS col1 FROM tab0
----
-189
-3726
-98

query I rowsort
SELECT + col2 + col1 * - 77 + + - 51 AS col1 FROM tab0 WHERE NOT - col1 * + + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 91 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9897
SELECT - CAST( - - col0 AS SIGNED ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9897
SELECT - CAST ( - - col0 AS INTEGER ) FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 col2 FROM tab0, tab0 AS cor0
----
-69

query I rowsort
SELECT + 98 * - 22 FROM tab2
----
-2156
-2156
-2156

query I rowsort
SELECT ( - 93 ) AS col2 FROM tab2 AS cor0
----
-93
-93
-93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9901
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN - col0 AND ( + 8 * + CAST( NULL AS SIGNED ) / - 44 )
----

skipif mysql # not compatible
query III rowsort label-9901
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN - col0 AND ( + 8 * + CAST ( NULL AS INTEGER ) / - 44 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 65 + - col0 col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - 64 + - 76 AS col0 FROM tab0 AS cor0
----
-140
-140
-140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9904
SELECT + CAST( - col0 AS SIGNED ) + col2 AS col1 FROM tab0 AS cor0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-9904
SELECT + CAST ( - col0 AS INTEGER ) + col2 AS col1 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT ALL + + SUM( ALL - col1 ) * - 30 FROM tab0 AS cor0
----
3090

skipif mysql # not compatible
query I rowsort label-9905
SELECT ALL + + SUM ( ALL - col1 ) * - 30 FROM tab0 AS cor0
----
3090

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9906
SELECT DISTINCT - SUM( + - col0 ) DIV + + ( - COUNT( * ) ) + - COUNT( * ) FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-9906
SELECT DISTINCT - SUM ( + - col0 ) / + + ( - COUNT ( * ) ) + - COUNT ( * ) FROM tab2 AS cor0
----
-64

query I rowsort
SELECT 30 * - - col1 + - + col2 AS col1 FROM tab0 AS cor0
----
-69
2383
620

query I rowsort
SELECT - + col1 + 73 FROM tab1 cor0
----
26
59
68

query II rowsort
SELECT ALL col1, col2 AS col2 FROM tab1 cor0
----
14
96
47
68
5
59

query I rowsort
SELECT ALL col1 * - col2 * - + 74 FROM tab2 WHERE + - col0 * + + col0 NOT BETWEEN - + 68 AND - 23
----
227920
287564
86802

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9911
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col1 + + ( - 91 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9911
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col1 + + ( - 91 ) FROM tab2
----
NULL

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE + 33 * - - col1 <= NULL
----

query I rowsort
SELECT DISTINCT + - 56 FROM tab1 WHERE - 64 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9914
SELECT DISTINCT + col0 - + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9914
SELECT DISTINCT + col0 - + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL < 47 + - + 58
----

query II rowsort
SELECT ALL + col2, col1 * - 95 + + ( 59 ) FROM tab2
----
23
-4786
40
-7256
58
-6306

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT - SUM( - col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9917
SELECT - SUM ( - col2 ) AS col0 FROM tab1
----
223

onlyif mysql # DIV for integer division: 
query I rowsort label-9918
SELECT ALL col2 * + col0 + + + 43 + - col2 DIV 96 FROM tab2 cor0
----
1101
2603
4393

skipif mysql # not compatible
query I rowsort label-9918
SELECT ALL col2 * + col0 + + + 43 + - col2 / 96 FROM tab2 cor0
----
1101
2603
4393

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 AS cor0 WHERE NOT + 91 IS NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - - ( - AVG ( ALL + col0 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT - 24 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT DISTINCT + COUNT( * ) * - 50 + 60 * + 16 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
510

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT + COUNT ( * ) * - 50 + 60 * + 16 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
510

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT - + MIN( 47 ) FROM tab0 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9922
SELECT - + MIN ( 47 ) FROM tab0 cor0
----
-47

query I rowsort
SELECT - - 40 * - ( + col2 ) AS col2 FROM tab2 AS cor0
----
-1600
-2320
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT ALL SUM( DISTINCT + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL SUM ( DISTINCT + col0 ) FROM tab2 AS cor0
----
185

query II rowsort
SELECT ALL - - 74, col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 / 78 FROM tab2 AS cor0 WHERE NOT 8 - + - 72 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9927
SELECT col1 + - - col1 DIV col2 FROM tab0 cor0 WHERE NOT col2 + - col2 IS NULL
----
1
23
82

skipif mysql # not compatible
query I rowsort label-9927
SELECT col1 + - - col1 / col2 FROM tab0 cor0 WHERE NOT col2 + - col2 IS NULL
----
1
23
82

onlyif mysql # DIV for integer division: 
query I rowsort label-9928
SELECT ALL - col0 DIV - - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL - col0 / - - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 4 col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
4
4
4

query I rowsort
SELECT 74 * + col1 FROM tab2
----
3774
4958
5698

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < - ( + col1 )
----

query I rowsort
SELECT - + col0 FROM tab0 WHERE NOT ( ( NOT NULL IS NULL ) )
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9933
SELECT col1 * + col0 * - CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9933
SELECT col1 * + col0 * - CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9934
SELECT + 94 DIV + - 45 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-9934
SELECT + 94 / + - 45 FROM tab1
----
-2
-2
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9935
SELECT 15 DIV - 61 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9935
SELECT 15 / - 61 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT COUNT( ALL 7 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9936
SELECT COUNT ( ALL 7 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9937
SELECT * FROM tab1 WHERE NOT - col2 <= col2 * - - 88 + + CAST( NULL AS SIGNED ) - - col2 * + 65
----

skipif mysql # not compatible
query III rowsort label-9937
SELECT * FROM tab1 WHERE NOT - col2 <= col2 * - - 88 + + CAST ( NULL AS INTEGER ) - - col2 * + 65
----

query II rowsort
SELECT ALL + col2, + 9 FROM tab0
----
10
9
47
9
99
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 53 col0 FROM tab1
----
-3127
-3604
-5088

onlyif mysql # DIV for integer division: 
query I rowsort label-9940
SELECT DISTINCT - - 27 DIV + col1 + ( ( - + col2 ) ) FROM tab0 AS cor0
----
-47
-72
-9

skipif mysql # not compatible
query I rowsort label-9940
SELECT DISTINCT - - 27 / + col1 + ( ( - + col2 ) ) FROM tab0 AS cor0
----
-47
-72
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9942
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN 12 / - col0 / - 94 * - col2 AND - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9942
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN 12 / - col0 / - 94 * - col2 AND - + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 13 * - 11 + + 47 IS NULL
----

query I rowsort
SELECT ALL - + 24 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query II rowsort
SELECT ALL - col0, - 93 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9946
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE ( - + 65 + + - CAST( + 68 AS SIGNED ) + - col1 * col1 * - - col2 * col0 / - col2 * + 79 + - col0 * + 19 = NULL )
----

skipif mysql # not compatible
query I rowsort label-9946
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE ( - + 65 + + - CAST ( + 68 AS INTEGER ) + - col1 * col1 * - - col2 * col0 / - col2 * + 79 + - col0 * + 19 = NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9947
SELECT DISTINCT + col1 DIV - 69 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9947
SELECT DISTINCT + col1 / - 69 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + - 18 * col0 + + 89 + col0 * + 72 * - 54 + - 60 AS col0 FROM tab0 AS cor0
----
-339793
-378853
-58561

query I rowsort
SELECT + - 27 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT ALL 99 * + 25 + - - col1 AS col1 FROM tab1 AS cor0
----
2480
2489
2522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9951
SELECT + CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9951
SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 16 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT ALL - - col0 + + col1 * + col1 AS col0 FROM tab1 AS cor0
----
110
2300
247

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT MIN( DISTINCT - + ( + col0 ) ) + - 61 AS col0 FROM tab0
----
-158

skipif mysql # not compatible
query I rowsort label-9954
SELECT MIN ( DISTINCT - + ( + col0 ) ) + - 61 AS col0 FROM tab0
----
-158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 8 + + - col2 col2 FROM tab1
----
413
476
672

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9956
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) / - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9956
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) / - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9957
SELECT col2 * 39 + + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9957
SELECT col2 * 39 + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + 16 + - ( - 37 ) * - - col2 FROM tab1
----
2263
3268
3776

query I rowsort
SELECT DISTINCT - col0 * 32 + ( + col1 ) + - col0 FROM tab2
----
-1467
-2035
-2408

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT + 78 IN ( + + ( - 47 ), + 98 + col2 )
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < + col0 / - - 88 + + - col0
----

query I rowsort
SELECT ALL + - 16 + 31 AS col2 FROM tab1 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 55 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9964
SELECT 1 DIV + col0 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9964
SELECT 1 / + col0 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 17 * + - 16 + + col1 AS col0 FROM tab2 AS cor0
----
-195
-205
-221

query I rowsort
SELECT - 37 + + + 52 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9967
SELECT + - CAST( - + CAST( - col0 AS SIGNED ) AS SIGNED ) * + col0 + + 91 * - 39 col1, + col1 + + + ( - 93 ) AS col2, col2 * - col0 AS col1 FROM tab0 AS cor0
----
9 values hashing to 11186099a276d1b6a312b2e0a59572fe

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-9967
SELECT + - CAST ( - + CAST ( - col0 AS INTEGER ) AS INTEGER ) * + col0 + + 91 * - 39 col1, + col1 + + + ( - 93 ) AS col2, col2 * - col0 AS col1 FROM tab0 AS cor0
----
9 values hashing to 11186099a276d1b6a312b2e0a59572fe

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 NOT BETWEEN - col0 * + 32 AND - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( 66 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab2 AS cor0 WHERE NOT - col1 * col0 * + 1 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + - 60 * - - col2 * - - col1 FROM tab1 cor0
----
-17700
-191760
-80640

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT ALL - MAX( DISTINCT - - 44 ) col1 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9972
SELECT ALL - MAX ( DISTINCT - - 44 ) col1 FROM tab1 AS cor0
----
-44

query I rowsort
SELECT + col2 + - 28 FROM tab2 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9974
SELECT DISTINCT CAST( - col2 AS SIGNED ) * col2 AS col2 FROM tab0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-9974
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * col2 AS col2 FROM tab0
----
-100
-2209
-9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col0 * col1 col2, 63 AS col1, 1 FROM tab1
----
9 values hashing to 7ac6098ba409a9b75ab767abbb58fbd7

query I rowsort
SELECT ALL col0 * 31 FROM tab0
----
2697
3007
465

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT ALL COUNT( DISTINCT - col2 ) * + COUNT( * ) + + SUM( DISTINCT + ( + 88 ) ) FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-9977
SELECT ALL COUNT ( DISTINCT - col2 ) * + COUNT ( * ) + + SUM ( DISTINCT + ( + 88 ) ) FROM tab2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT 92 * - SUM( - 4 ) col1 FROM tab1
----
1104

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9978
SELECT 92 * - SUM ( - 4 ) col1 FROM tab1
----
1104

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9979
SELECT DISTINCT - col2 * 35 AS col1, CAST( - col0 AS SIGNED ) FROM tab0
----
-1645
-15
-3465
-97
-350
-87

skipif mysql # not compatible
query II rowsort label-9979
SELECT DISTINCT - col2 * 35 AS col1, CAST ( - col0 AS INTEGER ) FROM tab0
----
-1645
-15
-3465
-97
-350
-87

query I rowsort
SELECT ALL + + col1 * - ( - col0 ) * col1 * + col2 FROM tab2 AS cor0
----
15178240
19527150
2751858

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT DISTINCT - COUNT( * ) + 48 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-9981
SELECT DISTINCT - COUNT ( * ) + 48 FROM tab2 AS cor0
----
45

query I rowsort
SELECT DISTINCT col2 * - - 58 * col2 AS col2 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL + 90 * col1 AS col0 FROM tab2
----
4590
6030
6930

query III rowsort
SELECT ALL * FROM tab2 WHERE + 13 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 * + 39 FROM tab1
----
1833
195
546

query II rowsort
SELECT DISTINCT + col0 AS col2, + col0 * + col0 FROM tab0
----
15
225
87
7569
97
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT - ( + 59 ) + - MAX( DISTINCT + col2 ) FROM tab2 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-9987
SELECT - ( + 59 ) + - MAX ( DISTINCT + col2 ) FROM tab2 AS cor0
----
-117

query I rowsort
SELECT - col1 * + col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-441
-6561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9989
SELECT - MIN( col1 ) + - + COUNT( * ) * + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9989
SELECT - MIN ( col1 ) + - + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9990
SELECT DISTINCT col0 DIV - 17 FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-9990
SELECT DISTINCT col0 / - 17 FROM tab0 AS cor0
----
-5
0

query I rowsort
SELECT - col2 + - + 47 AS col1 FROM tab2 cor0
----
-105
-70
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9992
SELECT + 7 * + ( - - 30 ) + + COUNT( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-9992
SELECT + 7 * + ( - - 30 ) + + COUNT ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
210

onlyif mysql # DIV for integer division: 
query I rowsort label-9993
SELECT DISTINCT - - col0 DIV + 5 FROM tab2 AS cor0
----
12
15
9

skipif mysql # not compatible
query I rowsort label-9993
SELECT DISTINCT - - col0 / + 5 FROM tab2 AS cor0
----
12
15
9

query I rowsort
SELECT DISTINCT ( - 88 ) + + 59 AS col2 FROM tab1 AS cor0
----
-29

query I rowsort
SELECT - - 69 * + + col2 + + col0 AS col0 FROM tab0 cor0
----
3258
6928
777

query I rowsort
SELECT DISTINCT + + 18 - - 90 FROM tab0 AS cor0 WHERE col1 * + - ( + col1 ) IS NOT NULL
----
108

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col0 * + col0 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT DISTINCT 94 + - COUNT( * ) FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9998
SELECT DISTINCT 94 + - COUNT ( * ) FROM tab2 AS cor0
----
91

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 49 NOT BETWEEN NULL AND NULL
----

